HEX
Server: Apache/2.4.63 (Unix)
System: Linux Synopilou92 4.4.302+ #72806 SMP Mon Jul 21 23:16:00 CST 2025 x86_64
User: pilou92 (1026)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /volume1/@appstore/Spreadsheet/server/common/prosemirror/index.js
(()=>{var t={16:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=r(952),n=r(655),a=r(856),i=r(685),o=r(810);let l=Symbol(""),h=Symbol(""),u=Symbol(""),c=Symbol(""),p=Symbol(""),d=Symbol(""),y=Symbol(""),x=Symbol(""),g=Symbol(""),f=Symbol(""),m=Symbol(""),b=Symbol(""),_=Symbol(""),A=Symbol(""),M=Symbol(""),w=Symbol(""),S=Symbol(""),C=Symbol(""),P=Symbol(""),T=Symbol(""),v=Symbol(""),I=Symbol(""),k=Symbol(""),E=Symbol(""),N=Symbol(""),L=Symbol(""),j=Symbol(""),R=Symbol(""),O=Symbol(""),D=Symbol(""),F=Symbol(""),B=Symbol(""),V=Symbol(""),H=Symbol(""),G=Symbol(""),z=Symbol(""),U=Symbol(""),q=Symbol(""),$=Symbol(""),J={[l]:"Fragment",[h]:"Teleport",[u]:"Suspense",[c]:"KeepAlive",[p]:"BaseTransition",[d]:"openBlock",[y]:"createBlock",[x]:"createElementBlock",[g]:"createVNode",[f]:"createElementVNode",[m]:"createCommentVNode",[b]:"createTextVNode",[_]:"createStaticVNode",[A]:"resolveComponent",[M]:"resolveDynamicComponent",[w]:"resolveDirective",[S]:"resolveFilter",[C]:"withDirectives",[P]:"renderList",[T]:"renderSlot",[v]:"createSlots",[I]:"toDisplayString",[k]:"mergeProps",[E]:"normalizeClass",[N]:"normalizeStyle",[L]:"normalizeProps",[j]:"guardReactiveProps",[R]:"toHandlers",[O]:"camelize",[D]:"capitalize",[F]:"toHandlerKey",[B]:"setBlockTracking",[V]:"pushScopeId",[H]:"popScopeId",[G]:"withCtx",[z]:"unref",[U]:"isRef",[q]:"withMemo",[$]:"isMemoSame"},W={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Z(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:W}}function Y(t,e,r,s,n,a,i,o=!1,l=!1,h=!1,u=W){return t&&(o?(t.helper(d),t.helper(lt(t.inSSR,h))):t.helper(ot(t.inSSR,h)),i&&t.helper(C)),{type:13,tag:e,props:r,children:s,patchFlag:n,dynamicProps:a,directives:i,isBlock:o,disableTracking:l,isComponent:h,loc:u}}function X(t,e=W){return{type:17,loc:e,elements:t}}function K(t,e=W){return{type:15,loc:e,properties:t}}function Q(t,e){return{type:16,loc:W,key:s.isString(t)?tt(t,!0):t,value:e}}function tt(t,e=!1,r=W,s=0){return{type:4,loc:r,content:t,isStatic:e,constType:e?3:s}}function et(t,e=W){return{type:8,loc:e,children:t}}function rt(t,e=[],r=W){return{type:14,loc:r,callee:t,arguments:e}}function st(t,e,r=!1,s=!1,n=W){return{type:18,params:t,returns:e,newline:r,isSlot:s,loc:n}}function nt(t,e,r,s=!0){return{type:19,test:t,consequent:e,alternate:r,newline:s,loc:W}}function at(t,e,r=!1,s=!1){return{type:20,index:t,value:e,needPauseTracking:r,inVOnce:s,needArraySpread:!1,loc:W}}function it(t){return{type:21,body:t,loc:W}}function ot(t,e){return t||e?g:f}function lt(t,e){return t||e?y:x}function ht(t,{helper:e,removeHelper:r,inSSR:s}){t.isBlock||(t.isBlock=!0,r(ot(s,t.isComponent)),e(d),e(lt(s,t.isComponent)))}let ut=new Uint8Array([123,123]),ct=new Uint8Array([125,125]);function pt(t){return t>=97&&t<=122||t>=65&&t<=90}function dt(t){return 32===t||10===t||9===t||12===t||13===t}function yt(t){return 47===t||62===t||dt(t)}function xt(t){let e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}let gt={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])},ft={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:t=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${t}.sync\` should be changed to \`v-model:${t}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function mt(t,{compatConfig:e}){let r=e&&e[t];return"MODE"===t?r||3:r}function bt(t,e){let r=mt("MODE",e),s=mt(t,e);return 3===r?!0===s:!1!==s}function _t(t,e,r,...s){return bt(t,e)}function At(t){throw t}function Mt(t){}function wt(t,e,r,s){let n=SyntaxError(String((r||St)[t]+(s||"")));return n.code=t,n.loc=e,n}let St={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function Ct(t,e,r=!1,s=[],n=Object.create(null)){let a="Program"===t.type?"ExpressionStatement"===t.body[0].type&&t.body[0].expression:t;i.walk(t,{enter(t,a){if(a&&s.push(a),a&&a.type.startsWith("TS")&&!Bt.includes(a.type))return this.skip();if("Identifier"===t.type){let i=!!n[t.name],o=Pt(t,a,s);(r||o&&!i)&&e(t,a,s,o,i)}else if("ObjectProperty"===t.type&&(null==a?void 0:a.type)==="ObjectPattern")t.inPattern=!0;else if(Ot(t))t.scopeIds?t.scopeIds.forEach((t=>jt(t,n))):It(t,(e=>Rt(t,e,n)));else if("BlockStatement"===t.type)t.scopeIds?t.scopeIds.forEach((t=>jt(t,n))):kt(t,(e=>Rt(t,e,n)));else if("CatchClause"===t.type&&t.param)for(let e of Lt(t.param))Rt(t,e,n);else Et(t)&&Nt(t,!1,(e=>Rt(t,e,n)))},leave(t,e){if(e&&s.pop(),t!==a&&t.scopeIds)for(let e of t.scopeIds)n[e]--,0===n[e]&&delete n[e]}})}function Pt(t,e,r){if(!e)return!0;if("arguments"===t.name)return!1;if(function(t,e,r){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":if(e.property===t)return!!e.computed;return e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(e.key===t)return!!e.computed;return!1;case"ObjectProperty":if(e.key===t)return!!e.computed;return true;case"ClassProperty":case"TSPropertySignature":if(e.key===t)return!!e.computed;break;case"ClassPrivateProperty":case"ObjectTypeProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":case"AssignmentPattern":return e.right===t;case"ExportSpecifier":return e.local===t;case"TSEnumMember":return e.id!==t}return!0}(t,e))return!0;switch(e.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectPattern":case"ArrayPattern":return Tt(e,r)}return!1}function Tt(t,e){if(t&&("ObjectProperty"===t.type||"ArrayPattern"===t.type)){let t=e.length;for(;t--;){let r=e[t];if("AssignmentExpression"===r.type)return!0;if("ObjectProperty"!==r.type&&!r.type.endsWith("Pattern"))break}}return!1}function vt(t){let e=t.length;for(;e--;){let r=t[e];if("NewExpression"===r.type)return!0;if("MemberExpression"!==r.type)break}return!1}function It(t,e){for(let r of t.params)for(let t of Lt(r))e(t)}function kt(t,e){for(let r of t.body)if("VariableDeclaration"===r.type){if(r.declare)continue;for(let t of r.declarations)for(let r of Lt(t.id))e(r)}else if("FunctionDeclaration"===r.type||"ClassDeclaration"===r.type){if(r.declare||!r.id)continue;e(r.id)}else Et(r)&&Nt(r,!0,e)}function Et(t){return"ForOfStatement"===t.type||"ForInStatement"===t.type||"ForStatement"===t.type}function Nt(t,e,r){let s="ForStatement"===t.type?t.init:t.left;if(s&&"VariableDeclaration"===s.type&&("var"===s.kind?e:!e))for(let t of s.declarations)for(let e of Lt(t.id))r(e)}function Lt(t,e=[]){switch(t.type){case"Identifier":e.push(t);break;case"MemberExpression":let r=t;for(;"MemberExpression"===r.type;)r=r.object;e.push(r);break;case"ObjectPattern":for(let r of t.properties)"RestElement"===r.type?Lt(r.argument,e):Lt(r.value,e);break;case"ArrayPattern":t.elements.forEach((t=>{t&&Lt(t,e)}));break;case"RestElement":Lt(t.argument,e);break;case"AssignmentPattern":Lt(t.left,e)}return e}function jt(t,e){t in e?e[t]++:e[t]=1}function Rt(t,e,r){let{name:s}=e;t.scopeIds&&t.scopeIds.has(s)||(jt(s,r),(t.scopeIds||(t.scopeIds=new Set)).add(s))}let Ot=t=>/Function(?:Expression|Declaration)$|Method$/.test(t.type),Dt=t=>t&&("ObjectProperty"===t.type||"ObjectMethod"===t.type)&&!t.computed,Ft=(t,e)=>Dt(e)&&e.key===t,Bt=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Vt(t){return Bt.includes(t.type)?Vt(t.expression):t}let Ht=t=>4===t.type&&t.isStatic;function Gt(t){switch(t){case"Teleport":case"teleport":return h;case"Suspense":case"suspense":return u;case"KeepAlive":case"keep-alive":return c;case"BaseTransition":case"base-transition":return p}}let zt=/^\d|[^\$\w\xA0-\uFFFF]/,Ut=t=>!zt.test(t),qt=/[A-Za-z_$\xA0-\uFFFF]/,$t=/[\.\?\w$\xA0-\uFFFF]/,Jt=/\s+[.[]\s*|\s*[.[]\s+/g,Wt=t=>4===t.type?t.content:t.loc.source,Zt=(t,e)=>{try{let r=t.ast||a.parseExpression(Wt(t),{plugins:e.expressionPlugins?[...e.expressionPlugins,"typescript"]:["typescript"]});return r=Vt(r),"MemberExpression"===r.type||"OptionalMemberExpression"===r.type||"Identifier"===r.type&&"undefined"!==r.name}catch(t){return!1}},Yt=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Xt=(t,e)=>{try{let r=t.ast||a.parseExpression(Wt(t),{plugins:e.expressionPlugins?[...e.expressionPlugins,"typescript"]:["typescript"]});return"Program"===r.type&&(r=r.body[0],"ExpressionStatement"===r.type&&(r=r.expression)),r=Vt(r),"FunctionExpression"===r.type||"ArrowFunctionExpression"===r.type}catch(t){return!1}};function Kt(t,e,r=e.length){return Qt({offset:t.offset,line:t.line,column:t.column},e,r)}function Qt(t,e,r=e.length){let s=0,n=-1;for(let t=0;t<r;t++)10===e.charCodeAt(t)&&(s++,n=t);return t.offset+=r,t.line+=s,t.column=-1===n?t.column+r:r-n,t}function te(t,e,r=!1){for(let n=0;n<t.props.length;n++){let a=t.props[n];if(7===a.type&&(r||a.exp)&&(s.isString(e)?a.name===e:e.test(a.name)))return a}}function ee(t,e,r=!1,s=!1){for(let n=0;n<t.props.length;n++){let a=t.props[n];if(6===a.type){if(r)continue;if(a.name===e&&(a.value||s))return a}else if("bind"===a.name&&(a.exp||s)&&re(a.arg,e))return a}}function re(t,e){return!!(t&&Ht(t)&&t.content===e)}function se(t){return 5===t.type||2===t.type}function ne(t){return 7===t.type&&"slot"===t.name}function ae(t){return 1===t.type&&3===t.tagType}function ie(t){return 1===t.type&&2===t.tagType}let oe=new Set([L,j]);function le(t,e,r){let n,a,i=13===t.type?t.props:t.arguments[2],o=[];if(i&&!s.isString(i)&&14===i.type){let t=function t(e,r=[]){if(e&&!s.isString(e)&&14===e.type){let n=e.callee;if(!s.isString(n)&&oe.has(n))return t(e.arguments[0],r.concat(e))}return[e,r]}(i);i=t[0],a=(o=t[1])[o.length-1]}if(null==i||s.isString(i))n=K([e]);else if(14===i.type){let t=i.arguments[0];s.isString(t)||15!==t.type?i.callee===R?n=rt(r.helper(k),[K([e]),i]):i.arguments.unshift(K([e])):he(e,t)||t.properties.unshift(e),n||(n=i)}else 15===i.type?(he(e,i)||i.properties.unshift(e),n=i):(n=rt(r.helper(k),[K([e]),i]),a&&a.callee===j&&(a=o[o.length-2]));13===t.type?a?a.arguments[0]=n:t.props=n:a?a.arguments[0]=n:t.arguments[2]=n}function he(t,e){let r=!1;if(4===t.key.type){let s=t.key.content;r=e.properties.some((t=>4===t.key.type&&t.key.content===s))}return r}function ue(t,e){return`_${e}_${t.replace(/[^\w]/g,((e,r)=>"-"===e?"_":t.charCodeAt(r).toString()))}`}function ce(t,e){if(!t||0===Object.keys(e).length)return!1;switch(t.type){case 1:for(let r=0;r<t.props.length;r++){let s=t.props[r];if(7===s.type&&(ce(s.arg,e)||ce(s.exp,e)))return!0}return t.children.some((t=>ce(t,e)));case 11:if(ce(t.source,e))return!0;return t.children.some((t=>ce(t,e)));case 9:return t.branches.some((t=>ce(t,e)));case 10:if(ce(t.condition,e))return!0;return t.children.some((t=>ce(t,e)));case 4:return!t.isStatic&&Ut(t.content)&&!!e[t.content];case 8:return t.children.some((t=>s.isObject(t)&&ce(t,e)));case 5:case 12:return ce(t.content,e);default:return!1}}function pe(t){return 14===t.type&&t.callee===q?t.arguments[1].returns:t}let de=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ye={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s.NO,isPreTag:s.NO,isIgnoreNewlineTag:s.NO,isCustomElement:s.NO,onError:At,onWarn:Mt,comments:!1,prefixIdentifiers:!1},xe=ye,ge=null,fe="",me=null,be=null,_e="",Ae=-1,Me=-1,we=0,Se=!1,Ce=null,Pe=[],Te=new class{constructor(t,e){this.stack=t,this.cbs=e,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=ut,this.delimiterClose=ct,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0,this.entityDecoder=new n.EntityDecoder(n.htmlDecodeTree,((t,e)=>this.emitCodePoint(t,e)))}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=ut,this.delimiterClose=ct}getPos(t){let e=1,r=t+1;for(let s=this.newlines.length-1;s>=0;s--){let n=this.newlines[s];if(t>n){e=s+2,r=t-n;break}}return{column:r,line:e,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){60===t?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):38===t?this.startEntity():this.inVPre||t!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let t=this.index+1-this.delimiterOpen.length;t>this.sectionStart&&this.cbs.ontext(this.sectionStart,t),this.state=3,this.sectionStart=t}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){let e=this.sequenceIndex===this.currentSequence.length;if(e?yt(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(62===t||dt(t)){let e=this.index-this.currentSequence.length;if(this.sectionStart<e){let t=this.index;this.index=e,this.cbs.ontext(this.sectionStart,e),this.index=t}this.sectionStart=e+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(32|t)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence!==gt.TitleEnd&&(this.currentSequence!==gt.TextareaEnd||this.inSFCRoot)?this.fastForwardTo(60)&&(this.sequenceIndex=1):38===t?this.startEntity():this.inVPre||t!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.sequenceIndex=Number(60===t)}stateCDATASequence(t){t===gt.Cdata[this.sequenceIndex]?++this.sequenceIndex===gt.Cdata.length&&(this.state=28,this.currentSequence=gt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){let e=this.buffer.charCodeAt(this.index);if(10===e&&this.newlines.push(this.index),e===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===gt.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=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,e){this.enterRCDATA(t,e),this.state=31}enterRCDATA(t,e){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=e}stateBeforeTagName(t){33===t?(this.state=22,this.sectionStart=this.index+1):63===t?(this.state=24,this.sectionStart=this.index+1):pt(t)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:116===t?this.state=30:this.state=115===t?29:6):47===t?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){yt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(yt(t)){let e=this.buffer.slice(this.sectionStart,this.index);"template"!==e&&this.enterRCDATA(xt("</"+e),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){dt(t)||(62===t?(this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=pt(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(62===t||dt(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){62===t&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){62===t?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===t?(this.state=7,62!==this.peek()&&this.cbs.onerr(22,this.index)):60===t&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):dt(t)||(61===t&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){118===t&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===t||58===t||64===t||35===t?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){62===t?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):dt(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){61===t||yt(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):(34===t||39===t||60===t)&&this.cbs.onerr(17,this.index)}stateInDirName(t){61===t||yt(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):58===t?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===t&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){61===t||yt(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):91===t?this.state=15:46===t&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){93===t?this.state=14:(61===t||yt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),this.cbs.onerr(27,this.index))}stateInDirModifier(t){61===t||yt(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):46===t&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){61===t?this.state=18:47===t||62===t?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):dt(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){34===t?(this.state=19,this.sectionStart=this.index+1):39===t?(this.state=20,this.sectionStart=this.index+1):dt(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,e){t===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===e?3:2,this.index+1),this.state=11):38===t&&this.startEntity()}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){dt(t)||62===t?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):34===t||39===t||60===t||61===t||96===t?this.cbs.onerr(18,this.index):38===t&&this.startEntity()}stateBeforeDeclaration(t){91===t?(this.state=26,this.sequenceIndex=0):this.state=45===t?25:23}stateInDeclaration(t){(62===t||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(62===t||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){45===t?(this.state=28,this.currentSequence=gt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(62===t||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===gt.ScriptEnd[3]?this.startSpecial(gt.ScriptEnd,4):t===gt.StyleEnd[3]?this.startSpecial(gt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===gt.TitleEnd[3]?this.startSpecial(gt.TitleEnd,4):t===gt.TextareaEnd[3]?this.startSpecial(gt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=33,this.entityStart=this.index,this.entityDecoder.startEntity(1===this.baseState||32===this.baseState?n.DecodingMode.Legacy:n.DecodingMode.Attribute)}stateInEntity(){{let t=this.entityDecoder.write(this.buffer,this.index);t>=0?(this.state=this.baseState,0===t&&(this.index=this.entityStart)):this.index=this.buffer.length-1}}parse(t){for(this.buffer=t;this.index<this.buffer.length;){let t=this.buffer.charCodeAt(this.index);switch(10===t&&this.newlines.push(this.index),this.state){case 1:this.stateText(t);break;case 2:this.stateInterpolationOpen(t);break;case 3:this.stateInterpolation(t);break;case 4:this.stateInterpolationClose(t);break;case 31:this.stateSpecialStartSequence(t);break;case 32:this.stateInRCDATA(t);break;case 26:this.stateCDATASequence(t);break;case 19:this.stateInAttrValueDoubleQuotes(t);break;case 12:this.stateInAttrName(t);break;case 13:this.stateInDirName(t);break;case 14:this.stateInDirArg(t);break;case 15:this.stateInDynamicDirArg(t);break;case 16:this.stateInDirModifier(t);break;case 28:this.stateInCommentLike(t);break;case 27:this.stateInSpecialComment(t);break;case 11:this.stateBeforeAttrName(t);break;case 6:this.stateInTagName(t);break;case 34:this.stateInSFCRootTagName(t);break;case 9:this.stateInClosingTagName(t);break;case 5:this.stateBeforeTagName(t);break;case 17:this.stateAfterAttrName(t);break;case 20:this.stateInAttrValueSingleQuotes(t);break;case 18:this.stateBeforeAttrValue(t);break;case 8:this.stateBeforeClosingTagName(t);break;case 10:this.stateAfterClosingTagName(t);break;case 29:this.stateBeforeSpecialS(t);break;case 30:this.stateBeforeSpecialT(t);break;case 21:this.stateInAttrValueNoQuotes(t);break;case 7:this.stateInSelfClosingTag(t);break;case 23:this.stateInDeclaration(t);break;case 22:this.stateBeforeDeclaration(t);break;case 25:this.stateBeforeComment(t);break;case 24:this.stateInProcessingInstruction(t);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(19===this.state||20===this.state||21===this.state)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){33===this.state&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length;this.sectionStart>=t||(28===this.state?this.currentSequence===gt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,e){1!==this.baseState&&32!==this.baseState?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+e,this.index=this.sectionStart-1,this.cbs.onattribentity(n.fromCodePoint(t),this.entityStart,this.sectionStart)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+e,this.index=this.sectionStart-1,this.cbs.ontextentity(n.fromCodePoint(t),this.entityStart,this.sectionStart))}}(Pe,{onerr:Ue,ontext(t,e){Ne(ke(t,e),t,e)},ontextentity(t,e,r){Ne(t,e,r)},oninterpolation(t,e){if(Se)return Ne(ke(t,e),t,e);let r=t+Te.delimiterOpen.length,s=e-Te.delimiterClose.length;for(;dt(fe.charCodeAt(r));)r++;for(;dt(fe.charCodeAt(s-1));)s--;let a=ke(r,s);a.includes("&")&&(a=n.decodeHTML(a)),Ve({type:5,content:ze(a,!1,He(r,s)),loc:He(t,e)})},onopentagname(t,e){let r=ke(t,e);me={type:1,tag:r,ns:xe.getNamespace(r,Pe[0],xe.ns),tagType:0,props:[],children:[],loc:He(t-1,e),codegenNode:void 0}},onopentagend(t){Ee(t)},onclosetag(t,e){let r=ke(t,e);if(!xe.isVoidTag(r)){let s=!1;for(let t=0;t<Pe.length;t++)if(Pe[t].tag.toLowerCase()===r.toLowerCase()){s=!0,t>0&&Ue(24,Pe[0].loc.start.offset);for(let r=0;r<=t;r++)Le(Pe.shift(),e,r<t);break}s||Ue(23,je(t,60))}},onselfclosingtag(t){let e=me.tag;me.isSelfClosing=!0,Ee(t),Pe[0]&&Pe[0].tag===e&&Le(Pe.shift(),t)},onattribname(t,e){be={type:6,name:ke(t,e),nameLoc:He(t,e),value:void 0,loc:He(t)}},ondirname(t,e){let r=ke(t,e),s="."===r||":"===r?"bind":"@"===r?"on":"#"===r?"slot":r.slice(2);if(Se||""!==s||Ue(26,t),Se||""===s)be={type:6,name:r,nameLoc:He(t,e),value:void 0,loc:He(t)};else if(be={type:7,name:s,rawName:r,exp:void 0,arg:void 0,modifiers:"."===r?[tt("prop")]:[],loc:He(t)},"pre"===s){Se=Te.inVPre=!0,Ce=me;let t=me.props;for(let e=0;e<t.length;e++)7===t[e].type&&(t[e]=function(t){let e={type:6,name:t.rawName,nameLoc:He(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){let r=t.exp.loc;r.end.offset<t.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),e.value={type:2,content:t.exp.content,loc:r}}return e}(t[e]))}},ondirarg(t,e){if(t===e)return;let r=ke(t,e);if(Se)be.name+=r,Ge(be.nameLoc,e);else{let s="["!==r[0];be.arg=ze(s?r:r.slice(1,-1),s,He(t,e),3*!!s)}},ondirmodifier(t,e){let r=ke(t,e);if(Se)be.name+="."+r,Ge(be.nameLoc,e);else if("slot"===be.name){let t=be.arg;t&&(t.content+="."+r,Ge(t.loc,e))}else{let s=tt(r,!0,He(t,e));be.modifiers.push(s)}},onattribdata(t,e){_e+=ke(t,e),Ae<0&&(Ae=t),Me=e},onattribentity(t,e,r){_e+=t,Ae<0&&(Ae=e),Me=r},onattribnameend(t){let e=be.loc.start.offset,r=ke(e,t);7===be.type&&(be.rawName=r),me.props.some((t=>(7===t.type?t.rawName:t.name)===r))&&Ue(2,e)},onattribend(t,e){if(me&&be){if(Ge(be.loc,e),0!==t)if(6===be.type)"class"===be.name&&(_e=Be(_e).trim()),1!==t||_e||Ue(13,e),be.value={type:2,content:_e,loc:1===t?He(Ae,Me):He(Ae-1,Me+1)},Te.inSFCRoot&&"template"===me.tag&&"lang"===be.name&&_e&&"html"!==_e&&Te.enterRCDATA(xt("</template"),0);else{let t=0;"for"===be.name?t=3:"slot"===be.name?t=1:"on"===be.name&&_e.includes(";")&&(t=2),be.exp=ze(_e,!1,He(Ae,Me),0,t),"for"===be.name&&(be.forParseResult=function(t){let e=t.loc,r=t.content,s=r.match(de);if(!s)return;let[,n,a]=s,i=(t,r,s=!1)=>{let n=e.start.offset+r,a=n+t.length;return ze(t,!1,He(n,a),0,+!!s)},o={source:i(a.trim(),r.indexOf(a,n.length)),value:void 0,key:void 0,index:void 0,finalized:!1},l=n.trim().replace(Ie,"").trim(),h=n.indexOf(l),u=l.match(ve);if(u){let t;l=l.replace(ve,"").trim();let e=u[1].trim();if(e&&(t=r.indexOf(e,h+l.length),o.key=i(e,t,!0)),u[2]){let s=u[2].trim();s&&(o.index=i(s,r.indexOf(s,o.key?t+e.length:h+l.length),!0))}}return l&&(o.value=i(l,h,!0)),o}(be.exp));let e=-1;"bind"===be.name&&(e=be.modifiers.findIndex((t=>"sync"===t.content)))>-1&&_t("COMPILER_V_BIND_SYNC",xe,be.loc,be.rawName)&&(be.name="model",be.modifiers.splice(e,1))}(7!==be.type||"pre"!==be.name)&&me.props.push(be)}_e="",Ae=Me=-1},oncomment(t,e){xe.comments&&Ve({type:3,content:ke(t,e),loc:He(t-4,e+3)})},onend(){let t=fe.length;if(1!==Te.state)switch(Te.state){case 5:case 8:Ue(5,t);break;case 3:case 4:Ue(25,Te.sectionStart);break;case 28:Te.currentSequence===gt.CdataEnd?Ue(6,t):Ue(7,t);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:Ue(9,t)}for(let e=0;e<Pe.length;e++)Le(Pe[e],t-1),Ue(24,Pe[e].loc.start.offset)},oncdata(t,e){0!==Pe[0].ns?Ne(ke(t,e),t,e):Ue(1,t-9)},onprocessinginstruction(t){(Pe[0]?Pe[0].ns:xe.ns)===0&&Ue(21,t-1)}}),ve=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ie=/^\(|\)$/g;function ke(t,e){return fe.slice(t,e)}function Ee(t){Te.inSFCRoot&&(me.innerLoc=He(t+1,t+1)),Ve(me);let{tag:e,ns:r}=me;0===r&&xe.isPreTag(e)&&we++,xe.isVoidTag(e)?Le(me,t):(Pe.unshift(me),(1===r||2===r)&&(Te.inXML=!0)),me=null}function Ne(t,e,r){let s=Pe[0]||ge,n=s.children[s.children.length-1];n&&2===n.type?(n.content+=t,Ge(n.loc,r)):s.children.push({type:2,content:t,loc:He(e,r)})}function Le(t,e,r=!1){r?Ge(t.loc,je(e,60)):Ge(t.loc,function(t,e){let r=t;for(;62!==fe.charCodeAt(r)&&r<fe.length-1;)r++;return r}(e,62)+1),Te.inSFCRoot&&(t.children.length?t.innerLoc.end=s.extend({},t.children[t.children.length-1].loc.end):t.innerLoc.end=s.extend({},t.innerLoc.start),t.innerLoc.source=ke(t.innerLoc.start.offset,t.innerLoc.end.offset));let{tag:n,ns:a,children:i}=t;if(!Se&&("slot"===n?t.tagType=2:Oe(t)?t.tagType=3:function({tag:t,props:e}){var r;if(xe.isCustomElement(t))return!1;if("component"===t||(r=t.charCodeAt(0))>64&&r<91||Gt(t)||xe.isBuiltInComponent&&xe.isBuiltInComponent(t)||xe.isNativeTag&&!xe.isNativeTag(t))return!0;for(let t=0;t<e.length;t++){let r=e[t];if(6===r.type){if("is"===r.name&&r.value){if(r.value.content.startsWith("vue:"))return!0;else if(_t("COMPILER_IS_ON_ELEMENT",xe,r.loc))return!0}}else if("bind"===r.name&&re(r.arg,"is")&&_t("COMPILER_IS_ON_ELEMENT",xe,r.loc))return!0}return!1}(t)&&(t.tagType=1)),Te.inRCDATA||(t.children=Fe(i)),0===a&&xe.isIgnoreNewlineTag(n)){let t=i[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}0===a&&xe.isPreTag(n)&&we--,Ce===t&&(Se=Te.inVPre=!1,Ce=null),Te.inXML&&(Pe[0]?Pe[0].ns:xe.ns)===0&&(Te.inXML=!1);{let e=t.props;if(!Te.inSFCRoot&&bt("COMPILER_NATIVE_TEMPLATE",xe)&&"template"===t.tag&&!Oe(t)){let e=Pe[0]||ge,r=e.children.indexOf(t);e.children.splice(r,1,...t.children)}let r=e.find((t=>6===t.type&&"inline-template"===t.name));r&&_t("COMPILER_INLINE_TEMPLATE",xe,r.loc)&&t.children.length&&(r.value={type:2,content:ke(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:r.loc})}}function je(t,e){let r=t;for(;fe.charCodeAt(r)!==e&&r>=0;)r--;return r}let Re=new Set(["if","else","else-if","for","slot"]);function Oe({tag:t,props:e}){if("template"===t){for(let t=0;t<e.length;t++)if(7===e[t].type&&Re.has(e[t].name))return!0}return!1}let De=/\r\n/g;function Fe(t,e){let r="preserve"!==xe.whitespace,s=!1;for(let e=0;e<t.length;e++){let n=t[e];if(2===n.type)if(we)n.content=n.content.replace(De,"\n");else if(function(t){for(let e=0;e<t.length;e++)if(!dt(t.charCodeAt(e)))return!1;return!0}(n.content)){let a=t[e-1]&&t[e-1].type,i=t[e+1]&&t[e+1].type;!a||!i||r&&(3===a&&(3===i||1===i)||1===a&&(3===i||1===i&&function(t){for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);if(10===r||13===r)return!0}return!1}(n.content)))?(s=!0,t[e]=null):n.content=" "}else r&&(n.content=Be(n.content))}return s?t.filter(Boolean):t}function Be(t){let e="",r=!1;for(let s=0;s<t.length;s++)dt(t.charCodeAt(s))?r||(e+=" ",r=!0):(e+=t[s],r=!1);return e}function Ve(t){(Pe[0]||ge).children.push(t)}function He(t,e){return{start:Te.getPos(t),end:null==e?e:Te.getPos(e),source:null==e?e:ke(t,e)}}function Ge(t,e){t.end=Te.getPos(e),t.source=ke(t.start.offset,e)}function ze(t,e=!1,r,s=0,n=0){let i=tt(t,e,r,s);if(!e&&xe.prefixIdentifiers&&3!==n&&t.trim()){if(Ut(t))return i.ast=null,i;try{let e=xe.expressionPlugins,r={plugins:e?[...e,"typescript"]:["typescript"]};2===n?i.ast=a.parse(` ${t} `,r).program:1===n?i.ast=a.parseExpression(`(${t})=>{}`,r):i.ast=a.parseExpression(`(${t})`,r)}catch(t){i.ast=!1,Ue(45,r.start.offset,t.message)}}return i}function Ue(t,e,r){xe.onError(wt(t,He(e,e),void 0,r))}function qe(t,e){if(Te.reset(),me=null,be=null,_e="",Ae=-1,Me=-1,Pe.length=0,fe=t,xe=s.extend({},ye),e){let t;for(t in e)null!=e[t]&&(xe[t]=e[t])}Te.mode="html"===xe.parseMode?1:2*("sfc"===xe.parseMode),Te.inXML=1===xe.ns||2===xe.ns;let r=e&&e.delimiters;r&&(Te.delimiterOpen=xt(r[0]),Te.delimiterClose=xt(r[1]));let n=ge=Z([],t);return Te.parse(fe),n.loc=He(0,t.length),n.children=Fe(n.children),ge=null,n}function $e(t,e){let{children:r}=t;return 1===r.length&&1===e.type&&!ie(e)}function Je(t,e){let{constantCache:r}=e;switch(t.type){case 1:if(0!==t.tagType)return 0;let n=r.get(t);if(void 0!==n)return n;let a=t.codegenNode;if(13!==a.type||a.isBlock&&"svg"!==t.tag&&"foreignObject"!==t.tag&&"math"!==t.tag)return 0;if(void 0!==a.patchFlag)return r.set(t,0),0;{let s=3,n=Ze(t,e);if(0===n)return r.set(t,0),0;n<s&&(s=n);for(let n=0;n<t.children.length;n++){let a=Je(t.children[n],e);if(0===a)return r.set(t,0),0;a<s&&(s=a)}if(s>1)for(let n=0;n<t.props.length;n++){let a=t.props[n];if(7===a.type&&"bind"===a.name&&a.exp){let n=Je(a.exp,e);if(0===n)return r.set(t,0),0;n<s&&(s=n)}}if(a.isBlock){for(let e=0;e<t.props.length;e++)if(7===t.props[e].type)return r.set(t,0),0;e.removeHelper(d),e.removeHelper(lt(e.inSSR,a.isComponent)),a.isBlock=!1,e.helper(ot(e.inSSR,a.isComponent))}return r.set(t,s),s}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return Je(t.content,e);case 4:return t.constType;case 8:let i=3;for(let r=0;r<t.children.length;r++){let n=t.children[r];if(s.isString(n)||s.isSymbol(n))continue;let a=Je(n,e);if(0===a)return 0;a<i&&(i=a)}return i;case 20:return 2}}let We=new Set([E,N,L,j]);function Ze(t,e){let r=3,n=Ye(t);if(n&&15===n.type){let{properties:t}=n;for(let n=0;n<t.length;n++){let a,{key:i,value:o}=t[n],l=Je(i,e);if(0===l)return l;if(l<r&&(r=l),0===(a=4===o.type?Je(o,e):14===o.type?function t(e,r){if(14===e.type&&!s.isString(e.callee)&&We.has(e.callee)){let s=e.arguments[0];if(4===s.type)return Je(s,r);if(14===s.type)return t(s,r)}return 0}(o,e):0))return a;a<r&&(r=a)}}return r}function Ye(t){let e=t.codegenNode;if(13===e.type)return e.props}function Xe(t,{filename:e="",prefixIdentifiers:r=!1,hoistStatic:n=!1,hmr:a=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:l={},transformHoist:h=null,isBuiltInComponent:u=s.NOOP,isCustomElement:c=s.NOOP,expressionPlugins:p=[],scopeId:d=null,slotted:y=!0,ssr:x=!1,inSSR:g=!1,ssrCssVars:f="",bindingMetadata:m=s.EMPTY_OBJ,inline:b=!1,isTS:_=!1,onError:A=At,onWarn:M=Mt,compatConfig:w}){let S=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),C={filename:e,selfName:S&&s.capitalize(s.camelize(S[1])),prefixIdentifiers:r,hoistStatic:n,hmr:a,cacheHandlers:i,nodeTransforms:o,directiveTransforms:l,transformHoist:h,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:p,scopeId:d,slotted:y,ssr:x,inSSR:g,ssrCssVars:f,bindingMetadata:m,inline:b,isTS:_,onError:A,onWarn:M,compatConfig:w,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(t){let e=C.helpers.get(t)||0;return C.helpers.set(t,e+1),t},removeHelper(t){let e=C.helpers.get(t);if(e){let r=e-1;r?C.helpers.set(t,r):C.helpers.delete(t)}},helperString:t=>`_${J[C.helper(t)]}`,replaceNode(t){C.parent.children[C.childIndex]=C.currentNode=t},removeNode(t){let e=C.parent.children,r=t?e.indexOf(t):C.currentNode?C.childIndex:-1;t&&t!==C.currentNode?C.childIndex>r&&(C.childIndex--,C.onNodeRemoved()):(C.currentNode=null,C.onNodeRemoved()),C.parent.children.splice(r,1)},onNodeRemoved:s.NOOP,addIdentifiers(t){s.isString(t)?P(t):t.identifiers?t.identifiers.forEach(P):4===t.type&&P(t.content)},removeIdentifiers(t){s.isString(t)?T(t):t.identifiers?t.identifiers.forEach(T):4===t.type&&T(t.content)},hoist(t){s.isString(t)&&(t=tt(t)),C.hoists.push(t);let e=tt(`_hoisted_${C.hoists.length}`,!1,t.loc,2);return e.hoisted=t,e},cache(t,e=!1,r=!1){let s=at(C.cached.length,t,e,r);return C.cached.push(s),s}};function P(t){let{identifiers:e}=C;void 0===e[t]&&(e[t]=0),e[t]++}function T(t){C.identifiers[t]--}return C.filters=new Set,C}function Ke(t,e){let r=Xe(t,e);Qe(t,r),e.hoistStatic&&function t(e,r,n,a=!1,i=!1){let{children:o}=e,l=[];for(let r=0;r<o.length;r++){let s=o[r];if(1===s.type&&0===s.tagType){let t=a?0:Je(s,n);if(t>0){if(t>=2){s.codegenNode.patchFlag=-1,l.push(s);continue}}else{let t=s.codegenNode;if(13===t.type){let e=t.patchFlag;if((void 0===e||512===e||1===e)&&Ze(s,n)>=2){let e=Ye(s);e&&(t.props=n.hoist(e))}t.dynamicProps&&(t.dynamicProps=n.hoist(t.dynamicProps))}}}else if(12===s.type&&(a?0:Je(s,n))>=2){l.push(s);continue}if(1===s.type){let r=1===s.tagType;r&&n.scopes.vSlot++,t(s,e,n,!1,i),r&&n.scopes.vSlot--}else if(11===s.type)t(s,e,n,1===s.children.length,!0);else if(9===s.type)for(let r=0;r<s.branches.length;r++)t(s.branches[r],e,n,1===s.branches[r].children.length,i)}let h=!1;if(l.length===o.length&&1===e.type){if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&s.isArray(e.codegenNode.children))e.codegenNode.children=u(X(e.codegenNode.children)),h=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!s.isArray(e.codegenNode.children)&&15===e.codegenNode.children.type){let t=c(e.codegenNode,"default");t&&(t.returns=u(X(t.returns)),h=!0)}else if(3===e.tagType&&r&&1===r.type&&1===r.tagType&&r.codegenNode&&13===r.codegenNode.type&&r.codegenNode.children&&!s.isArray(r.codegenNode.children)&&15===r.codegenNode.children.type){let t=te(e,"slot",!0),s=t&&t.arg&&c(r.codegenNode,t.arg);s&&(s.returns=u(X(s.returns)),h=!0)}}if(!h)for(let t of l)t.codegenNode=n.cache(t.codegenNode);function u(t){let e=n.cache(t);return i&&n.hmr&&(e.needArraySpread=!0),e}function c(t,e){if(t.children&&!s.isArray(t.children)&&15===t.children.type){let r=t.children.properties.find((t=>t.key===e||t.key.content===e));return r&&r.value}}l.length&&n.transformHoist&&n.transformHoist(o,n,e)}(t,void 0,r,$e(t,t.children[0])),e.ssr||function(t,e){let{helper:r}=e,{children:s}=t;if(1===s.length){let r=s[0];if($e(t,r)&&r.codegenNode){let s=r.codegenNode;13===s.type&&ht(s,e),t.codegenNode=s}else t.codegenNode=r}else s.length>1&&(t.codegenNode=Y(e,r(l),void 0,t.children,64,void 0,void 0,!0,void 0,!1))}(t,r),t.helpers=new Set([...r.helpers.keys()]),t.components=[...r.components],t.directives=[...r.directives],t.imports=r.imports,t.hoists=r.hoists,t.temps=r.temps,t.cached=r.cached,t.transformed=!0,t.filters=[...r.filters]}function Qe(t,e){e.currentNode=t;let{nodeTransforms:r}=e,n=[];for(let a=0;a<r.length;a++){let i=r[a](t,e);if(i&&(s.isArray(i)?n.push(...i):n.push(i)),!e.currentNode)return;t=e.currentNode}switch(t.type){case 3:e.ssr||e.helper(m);break;case 5:e.ssr||e.helper(I);break;case 9:for(let r=0;r<t.branches.length;r++)Qe(t.branches[r],e);break;case 10:case 11:case 1:case 0:var a=t;let r=0,n=()=>{r--};for(;r<a.children.length;r++){let t=a.children[r];s.isString(t)||(e.grandParent=e.parent,e.parent=a,e.childIndex=r,e.onNodeRemoved=n,Qe(t,e))}}e.currentNode=t;let i=n.length;for(;i--;)n[i]()}function tr(t,e){let r=s.isString(t)?e=>e===t:e=>t.test(e);return(t,s)=>{if(1===t.type){let{props:n}=t;if(3===t.tagType&&n.some(ne))return;let a=[];for(let i=0;i<n.length;i++){let o=n[i];if(7===o.type&&r(o.name)){n.splice(i,1),i--;let r=e(t,o,s);r&&a.push(r)}}return a}}}let er="/*@__PURE__*/",rr=t=>`${J[t]}: _${J[t]}`;function sr(t,{mode:e="function",prefixIdentifiers:r="module"===e,sourceMap:s=!1,filename:n="template.vue.html",scopeId:a=null,optimizeImports:i=!1,runtimeGlobalName:l="Vue",runtimeModuleName:h="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:p=!1,inSSR:d=!1}){let y={mode:e,prefixIdentifiers:r,sourceMap:s,filename:n,scopeId:a,optimizeImports:i,runtimeGlobalName:l,runtimeModuleName:h,ssrRuntimeModuleName:u,ssr:c,isTS:p,inSSR:d,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:t=>`_${J[t]}`,push(t,e=-2,r){if(y.code+=t,y.map){if(r){let t;if(4===r.type&&!r.isStatic){let e=r.content.replace(/^_ctx\./,"");e!==r.content&&Ut(e)&&(t=e)}g(r.loc.start,t)}-3===e?Qt(y,t):(y.offset+=t.length,-2===e?y.column+=t.length:(-1===e&&(e=t.length-1),y.line++,y.column=t.length-e)),r&&r.loc!==W&&g(r.loc.end)}},indent(){x(++y.indentLevel)},deindent(t=!1){t?--y.indentLevel:x(--y.indentLevel)},newline(){x(y.indentLevel)}};function x(t){y.push("\n"+"  ".repeat(t),0)}function g(t,e=null){let{_names:r,_mappings:s}=y.map;null===e||r.has(e)||r.add(e),s.add({originalLine:t.line,originalColumn:t.column-1,generatedLine:y.line,generatedColumn:y.column-1,source:n,name:e})}return s&&(y.map=new o.SourceMapGenerator,y.map.setSourceContent(n,y.source),y.map._sources.add(n)),y}function nr(t,e={}){let r=sr(t,e);e.onContextCreated&&e.onContextCreated(r);let{mode:s,push:n,prefixIdentifiers:a,indent:i,deindent:o,newline:l,scopeId:h,ssr:u}=r,c=Array.from(t.helpers),p=c.length>0,d=!a&&"module"!==s,y=!!e.inline,x=y?sr(t,e):r;"module"===s?function(t,e,r,s){var n,a;let{push:i,newline:o,optimizeImports:l,runtimeModuleName:h,ssrRuntimeModuleName:u}=e;if(t.helpers.size){let e=Array.from(t.helpers);l?(i(`import { ${e.map((t=>J[t])).join(", ")} } from ${JSON.stringify(h)}\n`,-1),i(`\n// Binding optimization for webpack code-split\nconst ${e.map((t=>`_${J[t]} = ${J[t]}`)).join(", ")}\n`,-1)):i(`import { ${e.map((t=>`${J[t]} as _${J[t]}`)).join(", ")} } from ${JSON.stringify(h)}\n`,-1)}t.ssrHelpers&&t.ssrHelpers.length&&i(`import { ${t.ssrHelpers.map((t=>`${J[t]} as _${J[t]}`)).join(", ")} } from "${u}"\n`,-1),t.imports.length&&(n=t.imports,a=e,n.length&&n.forEach((t=>{a.push("import "),hr(t.exp,a),a.push(` from '${t.path}'`),a.newline()})),o()),ir(t.hoists,e),o(),s||i("export ")}(t,x,0,y):function(t,e){let{ssr:r,prefixIdentifiers:s,push:n,newline:a,runtimeModuleName:i,runtimeGlobalName:o,ssrRuntimeModuleName:l}=e,h=r?`require(${JSON.stringify(i)})`:o,u=Array.from(t.helpers);if(u.length>0){if(s)n(`const { ${u.map(rr).join(", ")} } = ${h}\n`,-1);else if(n(`const _Vue = ${h}\n`,-1),t.hoists.length){let t=[g,f,m,b,_].filter((t=>u.includes(t))).map(rr).join(", ");n(`const { ${t} } = _Vue\n`,-1)}}t.ssrHelpers&&t.ssrHelpers.length&&n(`const { ${t.ssrHelpers.map(rr).join(", ")} } = require("${l}")\n`,-1),ir(t.hoists,e),a(),n("return ")}(t,x);let A=u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];e.bindingMetadata&&!e.inline&&A.push("$props","$setup","$data","$options");let M=e.isTS?A.map((t=>`${t}: any`)).join(","):A.join(", ");if(n(y?`(${M}) => {`:`function ${u?"ssrRender":"render"}(${M}) {`),i(),d&&(n("with (_ctx) {"),i(),p&&(n(`const { ${c.map(rr).join(", ")} } = _Vue\n`,-1),l())),t.components.length&&(ar(t.components,"component",r),(t.directives.length||t.temps>0)&&l()),t.directives.length&&(ar(t.directives,"directive",r),t.temps>0&&l()),t.filters&&t.filters.length&&(l(),ar(t.filters,"filter",r),l()),t.temps>0){n("let ");for(let e=0;e<t.temps;e++)n(`${e>0?", ":""}_temp${e}`)}return(t.components.length||t.directives.length||t.temps)&&(n(`\n`,0),l()),u||n("return "),t.codegenNode?hr(t.codegenNode,r):n("null"),d&&(o(),n("}")),o(),n("}"),{ast:t,code:r.code,preamble:y?x.code:"",map:r.map?r.map.toJSON():void 0}}function ar(t,e,{helper:r,push:s,newline:n,isTS:a}){let i=r("filter"===e?S:"component"===e?A:w);for(let r=0;r<t.length;r++){let o=t[r],l=o.endsWith("__self");l&&(o=o.slice(0,-6)),s(`const ${ue(o,e)} = ${i}(${JSON.stringify(o)}${l?", true":""})${a?"!":""}`),r<t.length-1&&n()}}function ir(t,e){if(!t.length)return;e.pure=!0;let{push:r,newline:s}=e;s();for(let n=0;n<t.length;n++){let a=t[n];a&&(r(`const _hoisted_${n+1} = `),hr(a,e),s())}e.pure=!1}function or(t,e){let r=t.length>3||t.some((t=>s.isArray(t)||!s.isString(t)&&4!==t.type&&2!==t.type&&5!==t.type&&8!==t.type));e.push("["),r&&e.indent(),lr(t,e,r),r&&e.deindent(),e.push("]")}function lr(t,e,r=!1,n=!0){let{push:a,newline:i}=e;for(let o=0;o<t.length;o++){let l=t[o];s.isString(l)?a(l,-3):s.isArray(l)?or(l,e):hr(l,e),o<t.length-1&&(r?(n&&a(","),i()):n&&a(", "))}}function hr(t,e){if(s.isString(t))return void e.push(t,-3);if(s.isSymbol(t))return void e.push(e.helper(t));switch(t.type){case 1:case 9:case 11:case 12:hr(t.codegenNode,e);break;case 2:r=t,e.push(JSON.stringify(r.content),-3,r);break;case 4:ur(t,e);break;case 5:var r,n,a,i,o,l,h,u=t,c=e;let{push:T,helper:v,pure:k}=c;k&&T(er),T(`${v(I)}(`),hr(u.content,c),T(")");break;case 8:cr(t,e);break;case 3:var p=t,y=e;let{push:E,helper:N,pure:L}=y;L&&E(er),E(`${N(m)}(${JSON.stringify(p.content)})`,-3,p);break;case 13:let j;var x=t,g=e;let{push:R,helper:O,pure:D}=g,{tag:F,props:V,children:H,patchFlag:z,dynamicProps:U,directives:q,isBlock:$,disableTracking:W,isComponent:Z}=x;z&&(j=String(z)),q&&R(O(C)+"("),$&&R(`(${O(d)}(${W?"true":""}), `),D&&R(er),R(O($?lt(g.inSSR,Z):ot(g.inSSR,Z))+"(",-2,x),lr(function(t){let e=t.length;for(;e--&&null==t[e];);return t.slice(0,e+1).map((t=>t||"null"))}([F,V,H,j,U]),g),R(")"),$&&R(")"),q&&(R(", "),hr(q,g),R(")"));break;case 14:var f=t,b=e;let{push:Y,helper:X,pure:K}=b,Q=s.isString(f.callee)?f.callee:X(f.callee);K&&Y(er),Y(Q+"(",-2,f),lr(f.arguments,b),Y(")");break;case 15:!function(t,e){let{push:r,indent:s,deindent:n,newline:a}=e,{properties:i}=t;if(!i.length)return r("{}",-2,t);let o=i.length>1||i.some((t=>4!==t.value.type));r(o?"{":"{ "),o&&s();for(let t=0;t<i.length;t++){let{key:s,value:n}=i[t],{push:o}=e;8===s.type?(o("["),cr(s,e),o("]")):s.isStatic?o(Ut(s.content)?s.content:JSON.stringify(s.content),-2,s):o(`[${s.content}]`,-3,s),r(": "),hr(n,e),t<i.length-1&&(r(","),a())}o&&n(),r(o?"}":" }")}(t,e);break;case 17:n=t,a=e,or(n.elements,a);break;case 18:var _=t,A=e;let{push:tt,indent:et,deindent:rt}=A,{params:st,returns:nt,body:at,newline:it,isSlot:ht}=_;ht&&tt(`_${J[G]}(`),tt("(",-2,_),s.isArray(st)?lr(st,A):st&&hr(st,A),tt(") => "),(it||at)&&(tt("{"),et()),nt?(it&&tt("return "),s.isArray(nt)?or(nt,A):hr(nt,A)):at&&hr(at,A),(it||at)&&(rt(),tt("}")),ht&&(_.isNonScopedSlot&&tt(", undefined, true"),tt(")"));break;case 19:var M=t,w=e;let{test:ut,consequent:ct,alternate:pt,newline:dt}=M,{push:yt,indent:xt,deindent:gt,newline:ft}=w;if(4===ut.type){let t=!Ut(ut.content);t&&yt("("),ur(ut,w),t&&yt(")")}else yt("("),hr(ut,w),yt(")");dt&&xt(),w.indentLevel++,dt||yt(" "),yt("? "),hr(ct,w),w.indentLevel--,dt&&ft(),dt||yt(" "),yt(": ");let mt=19===pt.type;!mt&&w.indentLevel++,hr(pt,w),!mt&&w.indentLevel--,dt&&gt(!0);break;case 20:var S=t,P=e;let{push:bt,helper:_t,indent:At,deindent:Mt,newline:wt}=P,{needPauseTracking:St,needArraySpread:Ct}=S;Ct&&bt("[...("),bt(`_cache[${S.index}] || (`),St&&(At(),bt(`${_t(B)}(-1`),S.inVOnce&&bt(", true"),bt("),"),wt(),bt("(")),bt(`_cache[${S.index}] = `),hr(S.value,P),St&&(bt(`).cacheIndex = ${S.index},`),wt(),bt(`${_t(B)}(1),`),wt(),bt(`_cache[${S.index}]`),Mt()),bt(")"),Ct&&bt(")]");break;case 21:lr(t.body,e,!0,!1);break;case 22:!function(t,e){let{push:r,indent:n,deindent:a}=e;r("`");let i=t.elements.length,o=i>3;for(let l=0;l<i;l++){let i=t.elements[l];s.isString(i)?r(i.replace(/(`|\$|\\)/g,"\\$1"),-3):(r("${"),o&&n(),hr(i,e),o&&a(),r("}"))}r("`")}(t,e);break;case 23:!function t(e,r){let{push:s,indent:n,deindent:a}=r,{test:i,consequent:o,alternate:l}=e;s("if ("),hr(i,r),s(") {"),n(),hr(o,r),a(),s("}"),l&&(s(" else "),23===l.type?t(l,r):(s("{"),n(),hr(l,r),a(),s("}")))}(t,e);break;case 24:i=t,o=e,hr(i.left,o),o.push(" = "),hr(i.right,o);break;case 25:l=t,(h=e).push("("),lr(l.expressions,h),h.push(")");break;case 26:!function({returns:t},e){e.push("return "),s.isArray(t)?or(t,e):hr(t,e)}(t,e)}}function ur(t,e){let{content:r,isStatic:s}=t;e.push(s?JSON.stringify(r):r,-3,t)}function cr(t,e){for(let r=0;r<t.children.length;r++){let n=t.children[r];s.isString(n)?e.push(n,-3):hr(n,e)}}let pr=s.makeMap("true,false,null,this"),dr=(t,e)=>{if(5===t.type)t.content=yr(t.content,e);else if(1===t.type){let r=te(t,"memo");for(let s=0;s<t.props.length;s++){let n=t.props[s];if(7===n.type&&"for"!==n.name){let t=n.exp,s=n.arg;!t||4!==t.type||"on"===n.name&&s||r&&s&&4===s.type&&"key"===s.content||(n.exp=yr(t,e,"slot"===n.name)),s&&4===s.type&&!s.isStatic&&(n.arg=yr(s,e))}}}};function yr(t,e,r=!1,n=!1,i=Object.create(e.identifiers)){let o;if(!e.prefixIdentifiers||!t.content.trim())return t;let{inline:l,bindingMetadata:h}=e,u=(t,r,n)=>{let a=s.hasOwn(h,t)&&h[t];if(l){let o=r&&"AssignmentExpression"===r.type&&r.left===n,l=r&&"UpdateExpression"===r.type&&r.argument===n,u=r&&Tt(r,y),p=r&&vt(y),d=t=>{let r=`${e.helperString(z)}(${t})`;return p?`(${r})`:r};if(gr(a)||"setup-reactive-const"===a||i[t])return t;if("setup-ref"===a)return`${t}.value`;if("setup-maybe-ref"===a)return o||l||u?`${t}.value`:d(t);else if("setup-let"===a)if(o){let{right:s,operator:n}=r,a=xr(yr(tt(c.slice(s.start-1,s.end-1),!1),e,!1,!1,x));return`${e.helperString(U)}(${t})${e.isTS?` //@ts-ignore\n`:""} ? ${t}.value ${n} ${a} : ${t}`}else if(l){n.start=r.start,n.end=r.end;let{prefix:s,operator:a}=r,i=s?a:"",o=s?"":a;return`${e.helperString(U)}(${t})${e.isTS?` //@ts-ignore\n`:""} ? ${i}${t}.value${o} : ${i}${t}${o}`}else if(u)return t;else return d(t);else if("props"===a)return s.genPropsAccessExp(t);else if("props-aliased"===a)return s.genPropsAccessExp(h.__propsAliases[t])}else if(a&&a.startsWith("setup")||"literal-const"===a)return`$setup.${t}`;else if("props-aliased"===a)return`$props['${h.__propsAliases[t]}']`;else if(a)return`$${a}.${t}`;return`_ctx.${t}`},c=t.content,p=t.ast;if(!1===p)return t;if(null===p||!p&&Ut(c)){let n=e.identifiers[c],a=s.isGloballyAllowed(c),i=pr(c);return r||n||i||a&&!h[c]?n||(i?t.constType=3:t.constType=2):(gr(h[c])&&(t.constType=1),t.content=u(c)),t}if(!p){let s=n?` ${c} `:`(${c})${r?"=>{}":""}`;try{p=a.parseExpression(s,{sourceType:"module",plugins:e.expressionPlugins})}catch(r){return e.onError(wt(45,t.loc,void 0,r.message)),t}}let d=[],y=[],x=Object.create(e.identifiers);Ct(p,((t,e,r,n,a)=>{var i;if(Ft(t,e)||t.name.startsWith("_filter_"))return;let o=n&&(i=t,!s.isGloballyAllowed(i.name)&&"require"!==i.name);o&&!a?(Dt(e)&&e.shorthand&&(t.prefix=`${t.name}: `),t.name=u(t.name,e,t)):o&&a||e&&("CallExpression"===e.type||"NewExpression"===e.type||"MemberExpression"===e.type)||(t.isConstant=!0),d.push(t)}),!0,y,x);let g=[];return d.sort(((t,e)=>t.start-e.start)),d.forEach(((e,r)=>{let s=e.start-1,n=e.end-1,a=d[r-1],i=c.slice(a?a.end-1:0,s);(i.length||e.prefix)&&g.push(i+(e.prefix||""));let o=c.slice(s,n);g.push(tt(e.name,!1,{start:Kt(t.loc.start,o,s),end:Kt(t.loc.start,o,n),source:o},3*!!e.isConstant)),r===d.length-1&&n<c.length&&g.push(c.slice(n))})),g.length?(o=et(g,t.loc)).ast=p:(o=t).constType=3,o.identifiers=Object.keys(x),o}function xr(t){return s.isString(t)?t:4===t.type?t.content:t.children.map(xr).join("")}function gr(t){return"setup-const"===t||"literal-const"===t}let fr=tr(/^(if|else|else-if)$/,((t,e,r)=>mr(t,e,r,((t,e,s)=>{let n=r.parent.children,a=n.indexOf(t),i=0;for(;a-- >=0;){let t=n[a];t&&9===t.type&&(i+=t.branches.length)}return()=>{s?t.codegenNode=_r(e,i,r):(function(t){for(;;)if(19===t.type)if(19!==t.alternate.type)return t;else t=t.alternate;else 20===t.type&&(t=t.value)}(t.codegenNode)).alternate=_r(e,i+t.branches.length-1,r)}}))));function mr(t,e,r,s){if("else"!==e.name&&(!e.exp||!e.exp.content.trim())){let s=e.exp?e.exp.loc:t.loc;r.onError(wt(28,e.loc)),e.exp=tt("true",!1,s)}if(r.prefixIdentifiers&&e.exp&&(e.exp=yr(e.exp,r)),"if"===e.name){var n;let a=br(t,e),i={type:9,loc:He((n=t.loc).start.offset,n.end.offset),branches:[a]};if(r.replaceNode(i),s)return s(i,a,!0)}else{let n=r.parent.children,a=n.indexOf(t);for(;a-- >=-1;){let i=n[a];if(i&&3===i.type||i&&2===i.type&&!i.content.trim().length){r.removeNode(i);continue}if(i&&9===i.type){"else-if"===e.name&&void 0===i.branches[i.branches.length-1].condition&&r.onError(wt(30,t.loc)),r.removeNode();let n=br(t,e);{let t=n.userKey;t&&i.branches.forEach((({userKey:e})=>{(function(t,e){if(!t||t.type!==e.type)return!1;if(6===t.type){if(t.value.content!==e.value.content)return!1}else{let r=t.exp,s=e.exp;if(r.type!==s.type||4!==r.type||r.isStatic!==s.isStatic||r.content!==s.content)return!1}return!0})(e,t)&&r.onError(wt(29,n.userKey.loc))}))}i.branches.push(n);let a=s&&s(i,n,!1);Qe(n,r),a&&a(),r.currentNode=null}else r.onError(wt(30,t.loc));break}}}function br(t,e){let r=3===t.tagType;return{type:10,loc:t.loc,condition:"else"===e.name?void 0:e.exp,children:r&&!te(t,"for")?t.children:[t],userKey:ee(t,"key"),isTemplateIf:r}}function _r(t,e,r){return t.condition?nt(t.condition,Ar(t,e,r),rt(r.helper(m),['""',"true"])):Ar(t,e,r)}function Ar(t,e,r){let{helper:s}=r,n=Q("key",tt(`${e}`,!1,W,2)),{children:a}=t,i=a[0];if(1!==a.length||1!==i.type)if(1!==a.length||11!==i.type)return Y(r,s(l),K([n]),a,64,void 0,void 0,!0,!1,!1,t.loc);else{let t=i.codegenNode;return le(t,n,r),t}{let t=i.codegenNode,e=pe(t);return 13===e.type&&ht(e,r),le(e,n,r),t}}let Mr=(t,e,r)=>{let{modifiers:n,loc:a}=t,i=t.arg,{exp:o}=t;if(o&&4===o.type&&!o.content.trim())return r.onError(wt(34,a)),{props:[Q(i,tt("",!0,a))]};if(!o){if(4!==i.type||!i.isStatic)return r.onError(wt(52,i.loc)),{props:[Q(i,tt("",!0,a))]};wr(t,r),o=t.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),n.some((t=>"camel"===t.content))&&(4===i.type?i.isStatic?i.content=s.camelize(i.content):i.content=`${r.helperString(O)}(${i.content})`:(i.children.unshift(`${r.helperString(O)}(`),i.children.push(")"))),!r.inSSR&&(n.some((t=>"prop"===t.content))&&Sr(i,"."),n.some((t=>"attr"===t.content))&&Sr(i,"^")),{props:[Q(i,o)]}},wr=(t,e)=>{let r=t.arg;t.exp=tt(s.camelize(r.content),!1,r.loc),t.exp=yr(t.exp,e)},Sr=(t,e)=>{4===t.type?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},Cr=tr("for",((t,e,r)=>{let{helper:s,removeHelper:n}=r;return Pr(t,e,r,(e=>{let a=rt(s(P),[e.source]),i=ae(t),o=te(t,"memo"),h=ee(t,"key",!1,!0),u=h&&7===h.type;u&&!h.exp&&wr(h,r);let c=h&&(6===h.type?h.value?tt(h.value.content,!0):void 0:h.exp);o&&c&&u&&(h.exp=c=yr(c,r));let p=h&&c?Q("key",c):null;i&&(o&&(o.exp=yr(o.exp,r)),p&&6!==h.type&&(p.value=yr(p.value,r)));let y=4===e.source.type&&e.source.constType>0,x=y?64:h?128:256;return e.codegenNode=Y(r,s(l),void 0,a,x,void 0,void 0,!0,!y,!1,t.loc),()=>{let h,{children:u}=e;i&&t.children.some((t=>{if(1===t.type){let e=ee(t,"key");if(e)return r.onError(wt(33,e.loc)),!0}}));let x=1!==u.length||1!==u[0].type,g=ie(t)?t:i&&1===t.children.length&&ie(t.children[0])?t.children[0]:null;if(g?(h=g.codegenNode,i&&p&&le(h,p,r)):x?h=Y(r,s(l),p?K([p]):void 0,t.children,64,void 0,void 0,!0,void 0,!1):(h=u[0].codegenNode,i&&p&&le(h,p,r),!y!==h.isBlock&&(h.isBlock?(n(d),n(lt(r.inSSR,h.isComponent))):n(ot(r.inSSR,h.isComponent))),h.isBlock=!y,h.isBlock?(s(d),s(lt(r.inSSR,h.isComponent))):s(ot(r.inSSR,h.isComponent))),o){let t=st(vr(e.parseResult,[tt("_cached")]));t.body=it([et(["const _memo = (",o.exp,")"]),et(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${r.helperString($)}(_cached, _memo)) return _cached`]),et(["const _item = ",h]),tt("_item.memo = _memo"),tt("return _item")]),a.arguments.push(t,tt("_cache"),tt(String(r.cached.length))),r.cached.push(null)}else a.arguments.push(st(vr(e.parseResult),h,!0))}}))}));function Pr(t,e,r,s){if(!e.exp)return void r.onError(wt(31,e.loc));let n=e.forParseResult;if(!n)return void r.onError(wt(32,e.loc));Tr(n,r);let{addIdentifiers:a,removeIdentifiers:i,scopes:o}=r,{source:l,value:h,key:u,index:c}=n,p={type:11,loc:e.loc,source:l,valueAlias:h,keyAlias:u,objectIndexAlias:c,parseResult:n,children:ae(t)?t.children:[t]};r.replaceNode(p),o.vFor++,r.prefixIdentifiers&&(h&&a(h),u&&a(u),c&&a(c));let d=s&&s(p);return()=>{o.vFor--,r.prefixIdentifiers&&(h&&i(h),u&&i(u),c&&i(c)),d&&d()}}function Tr(t,e){t.finalized||(e.prefixIdentifiers&&(t.source=yr(t.source,e),t.key&&(t.key=yr(t.key,e,!0)),t.index&&(t.index=yr(t.index,e,!0)),t.value&&(t.value=yr(t.value,e,!0))),t.finalized=!0)}function vr({value:t,key:e,index:r},s=[]){var n=[t,e,r,...s];let a=n.length;for(;a--&&!n[a];);return n.slice(0,a+1).map(((t,e)=>t||tt("_".repeat(e+1),!1)))}let Ir=tt("undefined",!1),kr=(t,e)=>{if(1===t.type&&(1===t.tagType||3===t.tagType)){let r=te(t,"slot");if(r){let t=r.exp;return e.prefixIdentifiers&&t&&e.addIdentifiers(t),e.scopes.vSlot++,()=>{e.prefixIdentifiers&&t&&e.removeIdentifiers(t),e.scopes.vSlot--}}}},Er=(t,e)=>{let r;if(ae(t)&&t.props.some(ne)&&(r=te(t,"for"))){let t=r.forParseResult;if(t){Tr(t,e);let{value:r,key:s,index:n}=t,{addIdentifiers:a,removeIdentifiers:i}=e;return r&&a(r),s&&a(s),n&&a(n),()=>{r&&i(r),s&&i(s),n&&i(n)}}}},Nr=(t,e,r,s)=>st(t,r,!1,!0,r.length?r[0].loc:s);function Lr(t,e,r=Nr){e.helper(G);let{children:s,loc:n}=t,a=[],i=[],o=e.scopes.vSlot>0||e.scopes.vFor>0;!e.ssr&&e.prefixIdentifiers&&(o=ce(t,e.identifiers));let l=te(t,"slot",!0);if(l){let{arg:t,exp:e}=l;t&&!Ht(t)&&(o=!0),a.push(Q(t||tt("default",!0),r(e,void 0,s,n)))}let h=!1,u=!1,c=[],p=new Set,d=0;for(let t=0;t<s.length;t++){let n,y,x,g,f=s[t];if(!ae(f)||!(n=te(f,"slot",!0))){3!==f.type&&c.push(f);continue}if(l){e.onError(wt(37,n.loc));break}h=!0;let{children:m,loc:b}=f,{arg:_=tt("default",!0),exp:A,loc:M}=n;Ht(_)?y=_?_.content:"default":o=!0;let w=te(f,"for"),S=r(A,w,m,b);if(x=te(f,"if"))o=!0,i.push(nt(x.exp,jr(_,S,d++),Ir));else if(g=te(f,/^else(-if)?$/,!0)){let r,n=t;for(;n--&&3===(r=s[n]).type;);if(r&&ae(r)&&te(r,/^(else-)?if$/)){let t=i[i.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=g.exp?nt(g.exp,jr(_,S,d++),Ir):jr(_,S,d++)}else e.onError(wt(30,g.loc))}else if(w){o=!0;let t=w.forParseResult;t?(Tr(t,e),i.push(rt(e.helper(P),[t.source,st(vr(t),jr(_,S),!0)]))):e.onError(wt(32,w.loc))}else{if(y){if(p.has(y)){e.onError(wt(38,M));continue}p.add(y),"default"===y&&(u=!0)}a.push(Q(_,S))}}if(!l){let t=(t,s)=>{let a=r(t,void 0,s,n);return e.compatConfig&&(a.isNonScopedSlot=!0),Q("default",a)};h?c.length&&c.some((t=>function t(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():t(e.content))}(t)))&&(u?e.onError(wt(39,c[0].loc)):a.push(t(void 0,c))):a.push(t(void 0,s))}let y=o?2:!function t(e){for(let r=0;r<e.length;r++){let s=e[r];switch(s.type){case 1:if(2===s.tagType||t(s.children))return!0;break;case 9:if(t(s.branches))return!0;break;case 10:case 11:if(t(s.children))return!0}}return!1}(t.children)?1:3,x=K(a.concat(Q("_",tt(y+"",!1))),n);return i.length&&(x=rt(e.helper(v),[x,X(i)])),{slots:x,hasDynamicSlots:o}}function jr(t,e,r){let s=[Q("name",t),Q("fn",e)];return null!=r&&s.push(Q("key",tt(String(r),!0))),K(s)}let Rr=new WeakMap,Or=(t,e)=>function(){let r,n,a,i,o;if(1!==(t=e.currentNode).type||0!==t.tagType&&1!==t.tagType)return;let{tag:l,props:p}=t,d=1===t.tagType,y=d?Dr(t,e):`"${l}"`,x=s.isObject(y)&&y.callee===M,g=0,f=x||y===h||y===u||!d&&("svg"===l||"foreignObject"===l||"math"===l);if(p.length>0){let s=Br(t,e,void 0,d,x);r=s.props,g=s.patchFlag,i=s.dynamicPropNames;let n=s.directives;o=n&&n.length?X(n.map((t=>Hr(t,e)))):void 0,s.shouldUseBlock&&(f=!0)}if(t.children.length>0)if(y===c&&(f=!0,g|=1024),d&&y!==h&&y!==c){let{slots:r,hasDynamicSlots:s}=Lr(t,e);n=r,s&&(g|=1024)}else if(1===t.children.length&&y!==h){let r=t.children[0],s=r.type,a=5===s||8===s;a&&0===Je(r,e)&&(g|=1),n=a||2===s?r:t.children}else n=t.children;i&&i.length&&(a=function(t){let e="[";for(let r=0,s=t.length;r<s;r++)e+=JSON.stringify(t[r]),r<s-1&&(e+=", ");return e+"]"}(i)),t.codegenNode=Y(e,y,r,n,0===g?void 0:g,a,o,!!f,!1,d,t.loc)};function Dr(t,e,r=!1){let{tag:n}=t,a=Gr(n),i=ee(t,"is",!1,!0);if(i)if(a||bt("COMPILER_IS_ON_ELEMENT",e)){let t;if(6===i.type?t=i.value&&tt(i.value.content,!0):(t=i.exp)||(t=tt("is",!1,i.arg.loc),t=i.exp=yr(t,e)),t)return rt(e.helper(M),[t])}else 6===i.type&&i.value.content.startsWith("vue:")&&(n=i.value.content.slice(4));let o=Gt(n)||e.isBuiltInComponent(n);if(o)return r||e.helper(o),o;{let t=Fr(n,e);if(t)return t;let r=n.indexOf(".");if(r>0){let t=Fr(n.slice(0,r),e);if(t)return t+n.slice(r)}}return e.selfName&&s.capitalize(s.camelize(n))===e.selfName?(e.helper(A),e.components.add(n+"__self")):(e.helper(A),e.components.add(n)),ue(n,"component")}function Fr(t,e){let r=e.bindingMetadata;if(!r||!1===r.__isScriptSetup)return;let n=s.camelize(t),a=s.capitalize(n),i=e=>r[t]===e?t:r[n]===e?n:r[a]===e?a:void 0,o=i("setup-const")||i("setup-reactive-const")||i("literal-const");if(o)return e.inline?o:`$setup[${JSON.stringify(o)}]`;let l=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");if(l)return e.inline?`${e.helperString(z)}(${l})`:`$setup[${JSON.stringify(l)}]`;let h=i("props");if(h)return`${e.helperString(z)}(${e.inline?"__props":"$props"}[${JSON.stringify(h)}])`}function Br(t,e,r=t.props,n,a,i=!1){let o,{tag:l,loc:h,children:u}=t,c=[],p=[],d=[],y=u.length>0,x=!1,g=0,f=!1,m=!1,b=!1,_=!1,A=!1,M=!1,w=[],S=t=>{c.length&&(p.push(K(Vr(c),h)),c=[]),t&&p.push(t)},C=()=>{e.scopes.vFor>0&&c.push(Q(tt("ref_for",!0),tt("true")))},P=({key:t,value:r})=>{if(Ht(t)){let i=t.content,o=s.isOn(i);o&&(!n||a)&&"onclick"!==i.toLowerCase()&&"onUpdate:modelValue"!==i&&!s.isReservedProp(i)&&(_=!0),o&&s.isReservedProp(i)&&(M=!0),o&&14===r.type&&(r=r.arguments[0]),20===r.type||(4===r.type||8===r.type)&&Je(r,e)>0||("ref"===i?f=!0:"class"===i?m=!0:"style"===i?b=!0:"key"===i||w.includes(i)||w.push(i),n&&("class"===i||"style"===i)&&!w.includes(i)&&w.push(i))}else A=!0};for(let a=0;a<r.length;a++){let o=r[a];if(6===o.type){let{loc:t,name:r,nameLoc:s,value:n}=o,a=!0;if("ref"===r&&(f=!0,C(),n&&e.inline)){let t=e.bindingMetadata[n.content];("setup-let"===t||"setup-ref"===t||"setup-maybe-ref"===t)&&(a=!1,c.push(Q(tt("ref_key",!0),tt(n.content,!0,n.loc))))}if("is"===r&&(Gr(l)||n&&n.content.startsWith("vue:")||bt("COMPILER_IS_ON_ELEMENT",e)))continue;c.push(Q(tt(r,!0,s),tt(n?n.content:"",a,n?n.loc:t)))}else{let{name:r,arg:a,exp:u,loc:f,modifiers:m}=o,b="bind"===r,_="on"===r;if("slot"===r){n||e.onError(wt(40,f));continue}if("once"===r||"memo"===r||"is"===r||b&&re(a,"is")&&(Gr(l)||bt("COMPILER_IS_ON_ELEMENT",e))||_&&i)continue;if((b&&re(a,"key")||_&&y&&re(a,"vue:before-update"))&&(x=!0),b&&re(a,"ref")&&C(),!a&&(b||_)){if(A=!0,u)if(b){if(C(),S(),bt("COMPILER_V_BIND_OBJECT_ORDER",e)){p.unshift(u);continue}p.push(u)}else S({type:14,loc:f,callee:e.helper(R),arguments:n?[u]:[u,"true"]});else e.onError(wt(b?34:35,f));continue}b&&m.some((t=>"prop"===t.content))&&(g|=32);let M=e.directiveTransforms[r];if(M){let{props:r,needRuntime:n}=M(o,t,e);i||r.forEach(P),_&&a&&!Ht(a)?S(K(r,h)):c.push(...r),n&&(d.push(o),s.isSymbol(n)&&Rr.set(o,n))}else!s.isBuiltInDirective(r)&&(d.push(o),y&&(x=!0))}}if(p.length?(S(),o=p.length>1?rt(e.helper(k),p,h):p[0]):c.length&&(o=K(Vr(c),h)),A?g|=16:(m&&!n&&(g|=2),b&&!n&&(g|=4),w.length&&(g|=8),_&&(g|=32)),!x&&(0===g||32===g)&&(f||M||d.length>0)&&(g|=512),!e.inSSR&&o)switch(o.type){case 15:let t=-1,r=-1,s=!1;for(let e=0;e<o.properties.length;e++){let n=o.properties[e].key;Ht(n)?"class"===n.content?t=e:"style"===n.content&&(r=e):n.isHandlerKey||(s=!0)}let n=o.properties[t],a=o.properties[r];s?o=rt(e.helper(L),[o]):(n&&!Ht(n.value)&&(n.value=rt(e.helper(E),[n.value])),a&&(b||4===a.value.type&&"["===a.value.content.trim()[0]||17===a.value.type)&&(a.value=rt(e.helper(N),[a.value])));break;case 14:break;default:o=rt(e.helper(L),[rt(e.helper(j),[o])])}return{props:o,directives:d,patchFlag:g,dynamicPropNames:w,shouldUseBlock:x}}function Vr(t){let e=new Map,r=[];for(let i=0;i<t.length;i++){var n,a;let o=t[i];if(8===o.key.type||!o.key.isStatic){r.push(o);continue}let l=o.key.content,h=e.get(l);h?("style"===l||"class"===l||s.isOn(l))&&(n=h,a=o,17===n.value.type?n.value.elements.push(a.value):n.value=X([n.value,a.value],n.loc)):(e.set(l,o),r.push(o))}return r}function Hr(t,e){let r=[],s=Rr.get(t);if(s)r.push(e.helperString(s));else{let s=Fr("v-"+t.name,e);s?r.push(s):(e.helper(w),e.directives.add(t.name),r.push(ue(t.name,"directive")))}let{loc:n}=t;if(t.exp&&r.push(t.exp),t.arg&&(t.exp||r.push("void 0"),r.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||r.push("void 0"),r.push("void 0"));let e=tt("true",!1,n);r.push(K(t.modifiers.map((t=>Q(t,e))),n))}return X(r,t.loc)}function Gr(t){return"component"===t||"Component"===t}let zr=(t,e)=>{if(ie(t)){let{children:r,loc:s}=t,{slotName:n,slotProps:a}=Ur(t,e),i=[e.prefixIdentifiers?"_ctx.$slots":"$slots",n,"{}","undefined","true"],o=2;a&&(i[2]=a,o=3),r.length&&(i[3]=st([],r,!1,!1,s),o=4),e.scopeId&&!e.slotted&&(o=5),i.splice(o),t.codegenNode=rt(e.helper(T),i,s)}};function Ur(t,e){let r,n='"default"',a=[];for(let r=0;r<t.props.length;r++){let i=t.props[r];if(6===i.type)i.value&&("name"===i.name?n=JSON.stringify(i.value.content):(i.name=s.camelize(i.name),a.push(i)));else if("bind"===i.name&&re(i.arg,"name")){if(i.exp)n=i.exp;else if(i.arg&&4===i.arg.type){let t=s.camelize(i.arg.content);n=i.exp=tt(t,!1,i.arg.loc),n=i.exp=yr(i.exp,e)}}else"bind"===i.name&&i.arg&&Ht(i.arg)&&(i.arg.content=s.camelize(i.arg.content)),a.push(i)}if(a.length>0){let{props:s,directives:n}=Br(t,e,a,!1,!1);r=s,n.length&&e.onError(wt(36,n[0].loc))}return{slotName:n,slotProps:r}}let qr=(t,e,r,n)=>{let a,{loc:i,modifiers:o,arg:l}=t;if(t.exp||o.length||r.onError(wt(35,i)),4===l.type)if(l.isStatic){let t=l.content;t.startsWith("vue:")&&(t=`vnode-${t.slice(4)}`),a=tt(0!==e.tagType||t.startsWith("vnode")||!/[A-Z]/.test(t)?s.toHandlerKey(s.camelize(t)):`on:${t}`,!0,l.loc)}else a=et([`${r.helperString(F)}(`,l,")"]);else(a=l).children.unshift(`${r.helperString(F)}(`),a.children.push(")");let h=t.exp;h&&!h.content.trim()&&(h=void 0);let u=r.cacheHandlers&&!h&&!r.inVOnce;if(h){let s=Zt(h,r),n=!(s||Xt(h,r)),a=h.content.includes(";");r.prefixIdentifiers&&(n&&r.addIdentifiers("$event"),h=t.exp=yr(h,r,!1,a),n&&r.removeIdentifiers("$event"),(u=r.cacheHandlers&&!r.inVOnce&&!(4===h.type&&h.constType>0)&&!(s&&1===e.tagType)&&!ce(h,r.identifiers))&&s&&(4===h.type?h.content=`${h.content} && ${h.content}(...args)`:h.children=[...h.children," && ",...h.children,"(...args)"])),(n||u&&s)&&(h=et([`${n?r.isTS?"($event: any)":"$event":`${r.isTS?`\n//@ts-ignore\n`:""}(...args)`} => ${a?"{":"("}`,h,a?"}":")"]))}let c={props:[Q(a,h||tt("() => {}",!1,i))]};return n&&(c=n(c)),u&&(c.props[0].value=r.cache(c.props[0].value)),c.props.forEach((t=>t.key.isHandlerKey=!0)),c},$r=(t,e)=>{if(0===t.type||1===t.type||11===t.type||10===t.type)return()=>{let r,s=t.children,n=!1;for(let t=0;t<s.length;t++){let e=s[t];if(se(e)){n=!0;for(let n=t+1;n<s.length;n++){let a=s[n];if(se(a))r||(r=s[t]=et([e],e.loc)),r.children.push(" + ",a),s.splice(n,1),n--;else{r=void 0;break}}}}if(n&&(1!==s.length||0!==t.type&&(1!==t.type||0!==t.tagType||t.props.find((t=>7===t.type&&!e.directiveTransforms[t.name]))||"template"===t.tag)))for(let t=0;t<s.length;t++){let r=s[t];if(se(r)||8===r.type){let n=[];(2!==r.type||" "!==r.content)&&n.push(r),e.ssr||0!==Je(r,e)||n.push("1"),s[t]={type:12,content:r,loc:r.loc,codegenNode:rt(e.helper(b),n)}}}}},Jr=new WeakSet,Wr=(t,e)=>{if(1===t.type&&te(t,"once",!0)&&!Jr.has(t)&&!e.inVOnce&&!e.inSSR)return Jr.add(t),e.inVOnce=!0,e.helper(B),()=>{e.inVOnce=!1;let t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0,!0))}},Zr=(t,e,r)=>{let n,{exp:a,arg:i}=t;if(!a)return r.onError(wt(41,t.loc)),Yr();let o=a.loc.source.trim(),l=4===a.type?a.content:o,h=r.bindingMetadata[o];if("props"===h||"props-aliased"===h)return r.onError(wt(44,a.loc)),Yr();let u=r.inline&&("setup-let"===h||"setup-ref"===h||"setup-maybe-ref"===h);if(!l.trim()||!Zt(a,r)&&!u)return r.onError(wt(42,a.loc)),Yr();if(r.prefixIdentifiers&&Ut(l)&&r.identifiers[l])return r.onError(wt(43,a.loc)),Yr();let c=i||tt("modelValue",!0),p=i?Ht(i)?`onUpdate:${s.camelize(i.content)}`:et(['"onUpdate:" + ',i]):"onUpdate:modelValue",d=r.isTS?"($event: any)":"$event";if(u)if("setup-ref"===h)n=et([`${d} => ((`,tt(o,!1,a.loc),").value = $event)"]);else{let t="setup-let"===h?`${o} = $event`:"null";n=et([`${d} => (${r.helperString(U)}(${o}) ? (`,tt(o,!1,a.loc),`).value = $event : ${t})`])}else n=et([`${d} => ((`,a,") = $event)"]);let y=[Q(c,t.exp),Q(p,n)];if(r.prefixIdentifiers&&!r.inVOnce&&r.cacheHandlers&&!ce(a,r.identifiers)&&(y[1].value=r.cache(y[1].value)),t.modifiers.length&&1===e.tagType){let e=t.modifiers.map((t=>t.content)).map((t=>(Ut(t)?t:JSON.stringify(t))+": true")).join(", "),r=i?Ht(i)?`${i.content}Modifiers`:et([i,' + "Modifiers"']):"modelModifiers";y.push(Q(r,tt(`{ ${e} }`,!1,t.loc,2)))}return Yr(y)};function Yr(t=[]){return{props:t}}let Xr=/[\w).+\-_$\]]/,Kr=(t,e)=>{bt("COMPILER_FILTERS",e)&&(5===t.type?Qr(t.content,e):1===t.type&&t.props.forEach((t=>{7===t.type&&"for"!==t.name&&t.exp&&Qr(t.exp,e)})))};function Qr(t,e){if(4===t.type)ts(t,e);else for(let r=0;r<t.children.length;r++){let s=t.children[r];"object"==typeof s&&(4===s.type?ts(s,e):8===s.type?Qr(t,e):5===s.type&&Qr(s.content,e))}}function ts(t,e){let r=t.content,s=!1,n=!1,a=!1,i=!1,o=0,l=0,h=0,u=0,c,p,d,y,x=[];for(d=0;d<r.length;d++)if(p=c,c=r.charCodeAt(d),s)39===c&&92!==p&&(s=!1);else if(n)34===c&&92!==p&&(n=!1);else if(a)96===c&&92!==p&&(a=!1);else if(i)47===c&&92!==p&&(i=!1);else if(124!==c||124===r.charCodeAt(d+1)||124===r.charCodeAt(d-1)||o||l||h){switch(c){case 34:n=!0;break;case 39:s=!0;break;case 96:a=!0;break;case 40:h++;break;case 41:h--;break;case 91:l++;break;case 93:l--;break;case 123:o++;break;case 125:o--}if(47===c){let t,e=d-1;for(;e>=0&&" "===(t=r.charAt(e));e--);t&&Xr.test(t)||(i=!0)}}else void 0===y?(u=d+1,y=r.slice(0,d).trim()):g();function g(){x.push(r.slice(u,d).trim()),u=d+1}if(void 0===y?y=r.slice(0,d).trim():0!==u&&g(),x.length){for(d=0;d<x.length;d++)y=function(t,e,r){r.helper(S);let s=e.indexOf("(");if(s<0)return r.filters.add(e),`${ue(e,"filter")}(${t})`;{let n=e.slice(0,s),a=e.slice(s+1);return r.filters.add(n),`${ue(n,"filter")}(${t}${")"!==a?","+a:a}`}}(y,x[d],e);t.content=y,t.ast=void 0}}let es=new WeakSet,rs=(t,e)=>{if(1===t.type){let r=te(t,"memo");if(!(!r||es.has(t)))return es.add(t),()=>{let s=t.codegenNode||e.currentNode.codegenNode;s&&13===s.type&&(1!==t.tagType&&ht(s,e),t.codegenNode=rt(e.helper(q),[r.exp,st(void 0,s),"_cache",String(e.cached.length)]),e.cached.push(null))}}};function ss(t){return[[Wr,fr,rs,Cr,Kr,...t?[Er,dr]:[],zr,Or,kr,$r],{on:qr,bind:Mr,model:Zr}]}e.generateCodeFrame=s.generateCodeFrame,e.BASE_TRANSITION=p,e.BindingTypes={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},e.CAMELIZE=O,e.CAPITALIZE=D,e.CREATE_BLOCK=y,e.CREATE_COMMENT=m,e.CREATE_ELEMENT_BLOCK=x,e.CREATE_ELEMENT_VNODE=f,e.CREATE_SLOTS=v,e.CREATE_STATIC=_,e.CREATE_TEXT=b,e.CREATE_VNODE=g,e.CompilerDeprecationTypes={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},e.ConstantTypes={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},e.ElementTypes={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},e.ErrorCodes={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},e.FRAGMENT=l,e.GUARD_REACTIVE_PROPS=j,e.IS_MEMO_SAME=$,e.IS_REF=U,e.KEEP_ALIVE=c,e.MERGE_PROPS=k,e.NORMALIZE_CLASS=E,e.NORMALIZE_PROPS=L,e.NORMALIZE_STYLE=N,e.Namespaces={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},e.NodeTypes={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},e.OPEN_BLOCK=d,e.POP_SCOPE_ID=H,e.PUSH_SCOPE_ID=V,e.RENDER_LIST=P,e.RENDER_SLOT=T,e.RESOLVE_COMPONENT=A,e.RESOLVE_DIRECTIVE=w,e.RESOLVE_DYNAMIC_COMPONENT=M,e.RESOLVE_FILTER=S,e.SET_BLOCK_TRACKING=B,e.SUSPENSE=u,e.TELEPORT=h,e.TO_DISPLAY_STRING=I,e.TO_HANDLERS=R,e.TO_HANDLER_KEY=F,e.TS_NODE_TYPES=Bt,e.UNREF=z,e.WITH_CTX=G,e.WITH_DIRECTIVES=C,e.WITH_MEMO=q,e.advancePositionWithClone=Kt,e.advancePositionWithMutation=Qt,e.assert=function(t,e){if(!t)throw Error(e||"unexpected compiler condition")},e.baseCompile=function(t,e={}){let r=e.onError||At,n="module"===e.mode,a=!0===e.prefixIdentifiers||n;!a&&e.cacheHandlers&&r(wt(49)),e.scopeId&&!n&&r(wt(50));let i=s.extend({},e,{prefixIdentifiers:a}),o=s.isString(t)?qe(t,i):t,[l,h]=ss(a);if(e.isTS){let{expressionPlugins:t}=e;t&&t.includes("typescript")||(e.expressionPlugins=[...t||[],"typescript"])}return Ke(o,s.extend({},i,{nodeTransforms:[...l,...e.nodeTransforms||[]],directiveTransforms:s.extend({},h,e.directiveTransforms||{})})),nr(o,i)},e.baseParse=qe,e.buildDirectiveArgs=Hr,e.buildProps=Br,e.buildSlots=Lr,e.checkCompatEnabled=_t,e.convertToBlock=ht,e.createArrayExpression=X,e.createAssignmentExpression=function(t,e){return{type:24,left:t,right:e,loc:W}},e.createBlockStatement=it,e.createCacheExpression=at,e.createCallExpression=rt,e.createCompilerError=wt,e.createCompoundExpression=et,e.createConditionalExpression=nt,e.createForLoopParams=vr,e.createFunctionExpression=st,e.createIfStatement=function(t,e,r){return{type:23,test:t,consequent:e,alternate:r,loc:W}},e.createInterpolation=function(t,e){return{type:5,loc:e,content:s.isString(t)?tt(t,!1,e):t}},e.createObjectExpression=K,e.createObjectProperty=Q,e.createReturnStatement=function(t){return{type:26,returns:t,loc:W}},e.createRoot=Z,e.createSequenceExpression=function(t){return{type:25,expressions:t,loc:W}},e.createSimpleExpression=tt,e.createStructuralDirectiveTransform=tr,e.createTemplateLiteral=function(t){return{type:22,elements:t,loc:W}},e.createTransformContext=Xe,e.createVNodeCall=Y,e.errorMessages=St,e.extractIdentifiers=Lt,e.findDir=te,e.findProp=ee,e.forAliasRE=de,e.generate=nr,e.getBaseTransformPreset=ss,e.getConstantType=Je,e.getMemoedVNodeCall=pe,e.getVNodeBlockHelper=lt,e.getVNodeHelper=ot,e.hasDynamicKeyVBind=function(t){return t.props.some((t=>7===t.type&&"bind"===t.name&&(!t.arg||4!==t.arg.type||!t.arg.isStatic)))},e.hasScopeRef=ce,e.helperNameMap=J,e.injectProp=le,e.isCoreComponent=Gt,e.isFnExpression=Xt,e.isFnExpressionBrowser=t=>Yt.test(Wt(t)),e.isFnExpressionNode=Xt,e.isFunctionType=Ot,e.isInDestructureAssignment=Tt,e.isInNewExpression=vt,e.isMemberExpression=Zt,e.isMemberExpressionBrowser=t=>{let e=Wt(t).trim().replace(Jt,(t=>t.trim())),r=0,s=[],n=0,a=0,i=null;for(let t=0;t<e.length;t++){let o=e.charAt(t);switch(r){case 0:if("["===o)s.push(r),r=1,n++;else if("("===o)s.push(r),r=2,a++;else if(!(0===t?qt:$t).test(o))return!1;break;case 1:"'"===o||'"'===o||"`"===o?(s.push(r),r=3,i=o):"["===o?n++:"]"!==o||--n||(r=s.pop());break;case 2:if("'"===o||'"'===o||"`"===o)s.push(r),r=3,i=o;else if("("===o)a++;else if(")"===o){if(t===e.length-1)return!1;--a||(r=s.pop())}break;case 3:o===i&&(r=s.pop(),i=null)}}return!n&&!a},e.isMemberExpressionNode=Zt,e.isReferencedIdentifier=Pt,e.isSimpleIdentifier=Ut,e.isSlotOutlet=ie,e.isStaticArgOf=re,e.isStaticExp=Ht,e.isStaticProperty=Dt,e.isStaticPropertyKey=Ft,e.isTemplateNode=ae,e.isText=se,e.isVSlot=ne,e.locStub=W,e.noopDirectiveTransform=()=>({props:[]}),e.processExpression=yr,e.processFor=Pr,e.processIf=mr,e.processSlotOutlet=Ur,e.registerRuntimeHelpers=function(t){Object.getOwnPropertySymbols(t).forEach((e=>{J[e]=t[e]}))},e.resolveComponentType=Dr,e.stringifyExpression=xr,e.toValidAssetId=ue,e.trackSlotScopes=kr,e.trackVForSlotScopes=Er,e.transform=Ke,e.transformBind=Mr,e.transformElement=Or,e.transformExpression=dr,e.transformModel=Zr,e.transformOn=qr,e.traverseNode=Qe,e.unwrapTSNode=Vt,e.walkBlockDeclarations=kt,e.walkFunctionParams=It,e.walkIdentifiers=Ct,e.warnDeprecation=function(t,e,r,...s){if("suppress-warning"===mt(t,e))return;let{message:n,link:a}=ft[t],i=SyntaxError(`(deprecation ${t}) ${"function"==typeof n?n(...s):n}${a?`\n  Details: ${a}`:""}`);i.code=t,r&&(i.loc=r),e.onWarn(i)}},675:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=r(16),n=r(952);let a=Symbol(""),i=Symbol(""),o=Symbol(""),l=Symbol(""),h=Symbol(""),u=Symbol(""),c=Symbol(""),p=Symbol(""),d=Symbol(""),y=Symbol("");s.registerRuntimeHelpers({[a]:"vModelRadio",[i]:"vModelCheckbox",[o]:"vModelText",[l]:"vModelSelect",[h]:"vModelDynamic",[u]:"withModifiers",[c]:"withKeys",[p]:"vShow",[d]:"Transition",[y]:"TransitionGroup"});let x={parseMode:"html",isVoidTag:n.isVoidTag,isNativeTag:t=>n.isHTMLTag(t)||n.isSVGTag(t)||n.isMathMLTag(t),isPreTag:t=>"pre"===t,isIgnoreNewlineTag:t=>"pre"===t||"textarea"===t,decodeEntities:void 0,isBuiltInComponent:t=>"Transition"===t||"transition"===t?d:"TransitionGroup"===t||"transition-group"===t?y:void 0,getNamespace(t,e,r){let s=e?e.ns:r;if(e&&2===s)if("annotation-xml"===e.tag){if("svg"===t)return 1;e.props.some((t=>6===t.type&&"encoding"===t.name&&null!=t.value&&("text/html"===t.value.content||"application/xhtml+xml"===t.value.content)))&&(s=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&"mglyph"!==t&&"malignmark"!==t&&(s=0);else e&&1===s&&("foreignObject"===e.tag||"desc"===e.tag||"title"===e.tag)&&(s=0);if(0===s){if("svg"===t)return 1;if("math"===t)return 2}return s}},g=t=>{1===t.type&&t.props.forEach(((e,r)=>{6===e.type&&"style"===e.name&&e.value&&(t.props[r]={type:7,name:"bind",arg:s.createSimpleExpression("style",!0,e.loc),exp:f(e.value.content,e.loc),modifiers:[],loc:e.loc})}))},f=(t,e)=>{let r=n.parseStringStyle(t);return s.createSimpleExpression(JSON.stringify(r),!1,e,3)};function m(t,e){return s.createCompilerError(t,e,b)}let b={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},_=n.makeMap("passive,once,capture"),A=n.makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),M=n.makeMap("left,right"),w=n.makeMap("onkeyup,onkeydown,onkeypress"),S=(t,e,r,n)=>{let a=[],i=[],o=[];for(let l=0;l<e.length;l++){let h=e[l].content;"native"===h&&s.checkCompatEnabled("COMPILER_V_ON_NATIVE",r,n)||_(h)?o.push(h):M(h)?s.isStaticExp(t)?w(t.content.toLowerCase())?a.push(h):i.push(h):(a.push(h),i.push(h)):A(h)?i.push(h):a.push(h)}return{keyModifiers:a,nonKeyModifiers:i,eventOptionModifiers:o}},C=(t,e)=>s.isStaticExp(t)&&"onclick"===t.content.toLowerCase()?s.createSimpleExpression(e,!0):4!==t.type?s.createCompoundExpression(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,P=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,T=(t,e,r)=>{if(e.scopes.vSlot>0)return;let a=1===r.type&&r.codegenNode&&13===r.codegenNode.type&&r.codegenNode.children&&!n.isArray(r.codegenNode.children)&&20===r.codegenNode.children.type,i=0,o=0,l=[],h=r=>{if(i>=20||o>=5){let i=s.createCallExpression(e.helper(s.CREATE_STATIC),[JSON.stringify(l.map((t=>function t(e,r){if(n.isString(e))return e;if(n.isSymbol(e))return"";switch(e.type){case 1:return function(e,r){let s=`<${e.tag}`,a="";for(let t=0;t<e.props.length;t++){let r=e.props[t];if(6===r.type)s+=` ${r.name}`,r.value&&(s+=`="${n.escapeHtml(r.value.content)}"`);else if(7===r.type)if("bind"===r.name){let t=r.exp;if("_"===t.content[0]){s+=` ${r.arg.content}="__VUE_EXP_START__${t.content}__VUE_EXP_END__"`;continue}if(n.isBooleanAttr(r.arg.content)&&"false"===t.content)continue;let e=N(t);if(null!=e){let t=r.arg&&r.arg.content;"class"===t?e=n.normalizeClass(e):"style"===t&&(e=n.stringifyStyle(n.normalizeStyle(e))),s+=` ${r.arg.content}="${n.escapeHtml(e)}"`}}else"html"===r.name?a=N(r.exp):"text"===r.name&&(a=n.escapeHtml(n.toDisplayString(N(r.exp))))}if(r.scopeId&&(s+=` ${r.scopeId}`),s+=">",a)s+=a;else for(let n=0;n<e.children.length;n++)s+=t(e.children[n],r);return n.isVoidTag(e.tag)||(s+=`</${e.tag}>`),s}(e,r);case 2:return n.escapeHtml(e.content);case 3:return`\x3c!--${n.escapeHtml(e.content)}--\x3e`;case 5:return n.escapeHtml(n.toDisplayString(N(e.content)));case 8:return n.escapeHtml(N(e));case 12:return t(e.content,r);default:return""}}(t,e))).join("")).replace(P,'" + $1 + "'),String(l.length)]),o=l.length-1;if(a)t.splice(r-l.length,l.length,i);else if(l[0].codegenNode.value=i,l.length>1){t.splice(r-l.length+1,o);let s=e.cached.indexOf(l[l.length-1].codegenNode);if(s>-1){for(let t=s;t<e.cached.length;t++){let r=e.cached[t];r&&(r.index-=o)}e.cached.splice(s-o+1,o)}}return o}return 0},u=0;for(;u<t.length;u++){let e=t[u];if(a||v(e)){let t=function(t){if(1===t.type&&E(t.tag))return!1;if(12===t.type)return[1,0];let e=1,r=+(t.props.length>0),n=!1,a=()=>(n=!0,!1);return!!function t(i){let o="option"===i.tag&&0===i.ns;for(let t=0;t<i.props.length;t++){let e=i.props[t];if(6===e.type&&!k(e.name,i.ns)||7===e.type&&"bind"===e.name&&(e.arg&&(8===e.arg.type||e.arg.isStatic&&!k(e.arg.content,i.ns))||e.exp&&(8===e.exp.type||e.exp.constType<3)||o&&s.isStaticArgOf(e.arg,"value")&&e.exp&&!e.exp.isStatic))return a()}for(let s=0;s<i.children.length;s++){e++;let a=i.children[s];if(1===a.type&&(a.props.length>0&&r++,t(a),n))return!1}return!0}(t)&&[e,r]}(e);if(t){i+=t[0],o+=t[1],l.push(e);continue}}u-=h(u),i=0,o=0,l.length=0}h(u)},v=t=>{if((1===t.type&&0===t.tagType||12===t.type)&&t.codegenNode&&20===t.codegenNode.type)return t.codegenNode},I=/^(data|aria)-/,k=(t,e)=>(0===e?n.isKnownHtmlAttr(t):1===e?n.isKnownSvgAttr(t):2===e&&n.isKnownMathMLAttr(t))||I.test(t),E=n.makeMap("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function N(t){if(4===t.type)return Function(`return (${t.content})`)();{let e="";return t.children.forEach((t=>{n.isString(t)||n.isSymbol(t)||(2===t.type?e+=t.content:5===t.type?e+=n.toDisplayString(N(t.content)):e+=N(t))})),e}}let L=(t,e)=>{1===t.type&&0===t.tagType&&("script"===t.tag||"style"===t.tag)&&e.removeNode()},j=[g],R={cloak:s.noopDirectiveTransform,html:(t,e,r)=>{let{exp:n,loc:a}=t;return n||r.onError(m(53,a)),e.children.length&&(r.onError(m(54,a)),e.children.length=0),{props:[s.createObjectProperty(s.createSimpleExpression("innerHTML",!0,a),n||s.createSimpleExpression("",!0))]}},text:(t,e,r)=>{let{exp:n,loc:a}=t;return n||r.onError(m(55,a)),e.children.length&&(r.onError(m(56,a)),e.children.length=0),{props:[s.createObjectProperty(s.createSimpleExpression("textContent",!0),n?s.getConstantType(n,r)>0?n:s.createCallExpression(r.helperString(s.TO_DISPLAY_STRING),[n],a):s.createSimpleExpression("",!0))]}},model:(t,e,r)=>{let n=s.transformModel(t,e,r);if(!n.props.length||1===e.tagType)return n;t.arg&&r.onError(m(58,t.arg.loc));let{tag:u}=e,c=r.isCustomElement(u);if("input"===u||"textarea"===u||"select"===u||c){let p=o,d=!1;if("input"===u||c){let n=s.findProp(e,"type");if(n){if(7===n.type)p=h;else if(n.value)switch(n.value.content){case"radio":p=a;break;case"checkbox":p=i;break;case"file":d=!0,r.onError(m(59,t.loc))}}else s.hasDynamicKeyVBind(e)&&(p=h)}else"select"===u&&(p=l);d||(n.needRuntime=r.helper(p))}else r.onError(m(57,t.loc));return n.props=n.props.filter((t=>4!==t.key.type||"modelValue"!==t.key.content)),n},on:(t,e,r)=>s.transformOn(t,e,r,(e=>{let{modifiers:a}=t;if(!a.length)return e;let{key:i,value:o}=e.props[0],{keyModifiers:l,nonKeyModifiers:h,eventOptionModifiers:p}=S(i,a,r,t.loc);if(h.includes("right")&&(i=C(i,"onContextmenu")),h.includes("middle")&&(i=C(i,"onMouseup")),h.length&&(o=s.createCallExpression(r.helper(u),[o,JSON.stringify(h)])),l.length&&(!s.isStaticExp(i)||w(i.content.toLowerCase()))&&(o=s.createCallExpression(r.helper(c),[o,JSON.stringify(l)])),p.length){let t=p.map(n.capitalize).join("");i=s.isStaticExp(i)?s.createSimpleExpression(`${i.content}${t}`,!0):s.createCompoundExpression(["(",i,`) + "${t}"`])}return{props:[s.createObjectProperty(i,o)]}})),show:(t,e,r)=>{let{exp:s,loc:n}=t;return s||r.onError(m(61,n)),{props:[],needRuntime:r.helper(p)}}};e.DOMDirectiveTransforms=R,e.DOMErrorCodes={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},e.DOMErrorMessages=b,e.DOMNodeTransforms=j,e.TRANSITION=d,e.TRANSITION_GROUP=y,e.V_MODEL_CHECKBOX=i,e.V_MODEL_DYNAMIC=h,e.V_MODEL_RADIO=a,e.V_MODEL_SELECT=l,e.V_MODEL_TEXT=o,e.V_ON_WITH_KEYS=c,e.V_ON_WITH_MODIFIERS=u,e.V_SHOW=p,e.compile=function(t,e={}){return s.baseCompile(t,n.extend({},x,e,{nodeTransforms:[L,...j,...e.nodeTransforms||[]],directiveTransforms:n.extend({},R,e.directiveTransforms||{}),transformHoist:T}))},e.createDOMCompilerError=m,e.parse=function(t,e={}){return s.baseParse(t,n.extend({},x,e))},e.parserOptions=x,e.transformStyle=g,Object.keys(s).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||(e[t]=s[t])}))},839:function(t,e,r){"use strict";let s,n,a,i,o;Object.defineProperty(e,"__esModule",{value:!0});var l=r(952);class h{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=s,!t&&s&&(this.index=(s.scopes||(s.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,e;if(this._isPaused=!1,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){let e=s;try{return s=this,t()}finally{s=e}}}on(){s=this}off(){s=this.parent}stop(t){if(this._active){let e,r;for(e=0,this._active=!1,r=this.effects.length;e<r;e++)this.effects[e].stop();for(e=0,this.effects.length=0,r=this.cleanups.length;e<r;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){let t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0}}}let u=new WeakSet;class c{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,s&&s.active&&s.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||d(this))}run(){if(!(1&this.flags))return this.fn();this.flags|=2,S(this),x(this);let t=n,e=_;n=this,_=!0;try{return this.fn()}finally{g(this),n=t,_=e,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)b(t);this.deps=this.depsTail=void 0,S(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){f(this)&&this.run()}get dirty(){return f(this)}}let p=0;function d(t,e=!1){if(t.flags|=8,e){t.next=i,i=t;return}t.next=a,a=t}function y(){let t;if(!(--p>0)){if(i){let t=i;for(i=void 0;t;){let e=t.next;t.next=void 0,t.flags&=-9,t=e}}for(;a;){let e=a;for(a=void 0;e;){let r=e.next;if(e.next=void 0,e.flags&=-9,1&e.flags)try{e.trigger()}catch(e){t||(t=e)}e=r}}if(t)throw t}}function x(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function g(t){let e,r=t.depsTail,s=r;for(;s;){let t=s.prevDep;-1===s.version?(s===r&&(r=t),b(s),function(t){let{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=t}t.deps=e,t.depsTail=r}function f(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(m(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function m(t){if(4&t.flags&&!(16&t.flags)||(t.flags&=-17,t.globalVersion===C))return;t.globalVersion=C;let e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!f(t)){t.flags&=-3;return}let r=n,s=_;n=t,_=!0;try{x(t);let r=t.fn(t._value);(0===e.version||l.hasChanged(r,t._value))&&(t._value=r,e.version++)}catch(t){throw e.version++,t}finally{n=r,_=s,g(t),t.flags&=-3}}function b(t,e=!1){let{dep:r,prevSub:s,nextSub:n}=t;if(s&&(s.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=s,t.nextSub=void 0),r.subs===t&&(r.subs=s,!s&&r.computed)){r.computed.flags&=-5;for(let t=r.computed.deps;t;t=t.nextDep)b(t,!0)}e||--r.sc||!r.map||r.map.delete(r.key)}let _=!0,A=[];function M(){A.push(_),_=!1}function w(){let t=A.pop();_=void 0===t||t}function S(t){let{cleanup:e}=t;if(t.cleanup=void 0,e){let t=n;n=void 0;try{e()}finally{n=t}}}let C=0;class P{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class T{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!n||!_||n===this.computed)return;let e=this.activeLink;if(void 0===e||e.sub!==n)e=this.activeLink=new P(n,this),n.deps?(e.prevDep=n.depsTail,n.depsTail.nextDep=e,n.depsTail=e):n.deps=n.depsTail=e,function t(e){if(e.dep.sc++,4&e.sub.flags){let r=e.dep.computed;if(r&&!e.dep.subs){r.flags|=20;for(let e=r.deps;e;e=e.nextDep)t(e)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){let t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=n.depsTail,e.nextDep=void 0,n.depsTail.nextDep=e,n.depsTail=e,n.deps===e&&(n.deps=t)}return e}trigger(t){this.version++,C++,this.notify(t)}notify(t){p++;try{for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{y()}}}let v=new WeakMap,I=Symbol(""),k=Symbol(""),E=Symbol("");function N(t,e,r){if(_&&n){let e=v.get(t);e||v.set(t,e=new Map);let s=e.get(r);s||(e.set(r,s=new T),s.map=e,s.key=r),s.track()}}function L(t,e,r,s,n,a){let i=v.get(t);if(!i)return void C++;let o=t=>{t&&t.trigger()};if(p++,"clear"===e)i.forEach(o);else{let n=l.isArray(t),a=n&&l.isIntegerKey(r);if(n&&"length"===r){let t=Number(s);i.forEach(((e,r)=>{("length"===r||r===E||!l.isSymbol(r)&&r>=t)&&o(e)}))}else switch((void 0!==r||i.has(void 0))&&o(i.get(r)),a&&o(i.get(E)),e){case"add":n?a&&o(i.get("length")):(o(i.get(I)),l.isMap(t)&&o(i.get(k)));break;case"delete":!n&&(o(i.get(I)),l.isMap(t)&&o(i.get(k)));break;case"set":l.isMap(t)&&o(i.get(I))}}y()}function j(t){let e=mt(t);return e===t?e:(N(e,"iterate",E),gt(t)?e:e.map(bt))}function R(t){return N(t=mt(t),"iterate",E),t}let O={__proto__:null,[Symbol.iterator](){return D(this,Symbol.iterator,bt)},concat(...t){return j(this).concat(...t.map((t=>l.isArray(t)?j(t):t)))},entries(){return D(this,"entries",(t=>(t[1]=bt(t[1]),t)))},every(t,e){return B(this,"every",t,e,void 0,arguments)},filter(t,e){return B(this,"filter",t,e,(t=>t.map(bt)),arguments)},find(t,e){return B(this,"find",t,e,bt,arguments)},findIndex(t,e){return B(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return B(this,"findLast",t,e,bt,arguments)},findLastIndex(t,e){return B(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return B(this,"forEach",t,e,void 0,arguments)},includes(...t){return H(this,"includes",t)},indexOf(...t){return H(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return H(this,"lastIndexOf",t)},map(t,e){return B(this,"map",t,e,void 0,arguments)},pop(){return G(this,"pop")},push(...t){return G(this,"push",t)},reduce(t,...e){return V(this,"reduce",t,e)},reduceRight(t,...e){return V(this,"reduceRight",t,e)},shift(){return G(this,"shift")},some(t,e){return B(this,"some",t,e,void 0,arguments)},splice(...t){return G(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return G(this,"unshift",t)},values(){return D(this,"values",bt)}};function D(t,e,r){let s=R(t),n=s[e]();return s===t||gt(t)||(n._next=n.next,n.next=()=>{let t=n._next();return t.value&&(t.value=r(t.value)),t}),n}let F=Array.prototype;function B(t,e,r,s,n,a){let i=R(t),o=i!==t&&!gt(t),l=i[e];if(l!==F[e]){let e=l.apply(t,a);return o?bt(e):e}let h=r;i!==t&&(o?h=function(e,s){return r.call(this,bt(e),s,t)}:r.length>2&&(h=function(e,s){return r.call(this,e,s,t)}));let u=l.call(i,h,s);return o&&n?n(u):u}function V(t,e,r,s){let n=R(t),a=r;return n!==t&&(gt(t)?r.length>3&&(a=function(e,s,n){return r.call(this,e,s,n,t)}):a=function(e,s,n){return r.call(this,e,bt(s),n,t)}),n[e](a,...s)}function H(t,e,r){let s=mt(t);N(s,"iterate",E);let n=s[e](...r);return(-1===n||!1===n)&&ft(r[0])?(r[0]=mt(r[0]),s[e](...r)):n}function G(t,e,r=[]){M(),p++;let s=mt(t)[e].apply(t,r);return y(),w(),s}let z=l.makeMap("__proto__,__v_isRef,__isVue"),U=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(l.isSymbol));function q(t){l.isSymbol(t)||(t=String(t));let e=mt(this);return N(e,"has",t),e.hasOwnProperty(t)}class ${constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,r){if("__v_skip"===e)return t.__v_skip;let s=this._isReadonly,n=this._isShallow;if("__v_isReactive"===e)return!s;if("__v_isReadonly"===e)return s;if("__v_isShallow"===e)return n;if("__v_raw"===e)return r===(s?n?ut:ht:n?lt:ot).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=l.isArray(t);if(!s){let t;if(a&&(t=O[e]))return t;if("hasOwnProperty"===e)return q}let i=Reflect.get(t,e,At(t)?t:r);return(l.isSymbol(e)?U.has(e):z(e))||(s||N(t,"get",e),n)?i:At(i)?a&&l.isIntegerKey(e)?i:i.value:l.isObject(i)?s?pt(i):ct(i):i}}class J extends ${constructor(t=!1){super(!1,t)}set(t,e,r,s){let n=t[e];if(!this._isShallow){let e=xt(n);if(gt(r)||xt(r)||(n=mt(n),r=mt(r)),!l.isArray(t)&&At(n)&&!At(r))if(e)return!1;else return n.value=r,!0}let a=l.isArray(t)&&l.isIntegerKey(e)?Number(e)<t.length:l.hasOwn(t,e),i=Reflect.set(t,e,r,At(t)?t:s);return t===mt(s)&&(a?l.hasChanged(r,n)&&L(t,"set",e,r):L(t,"add",e,r)),i}deleteProperty(t,e){let r=l.hasOwn(t,e);t[e];let s=Reflect.deleteProperty(t,e);return s&&r&&L(t,"delete",e,void 0),s}has(t,e){let r=Reflect.has(t,e);return l.isSymbol(e)&&U.has(e)||N(t,"has",e),r}ownKeys(t){return N(t,"iterate",l.isArray(t)?"length":I),Reflect.ownKeys(t)}}class W extends ${constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}let Z=new J,Y=new W,X=new J(!0),K=new W(!0),Q=t=>t,tt=t=>Reflect.getPrototypeOf(t);function et(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function rt(t,e){let r=function(t,e){let r={get(r){let s=this.__v_raw,n=mt(s),a=mt(r);t||(l.hasChanged(r,a)&&N(n,"get",r),N(n,"get",a));let{has:i}=tt(n),o=e?Q:t?_t:bt;return i.call(n,r)?o(s.get(r)):i.call(n,a)?o(s.get(a)):void(s!==n&&s.get(r))},get size(){let e=this.__v_raw;return t||N(mt(e),"iterate",I),Reflect.get(e,"size",e)},has(e){let r=this.__v_raw,s=mt(r),n=mt(e);return t||(l.hasChanged(e,n)&&N(s,"has",e),N(s,"has",n)),e===n?r.has(e):r.has(e)||r.has(n)},forEach(r,s){let n=this,a=n.__v_raw,i=mt(a),o=e?Q:t?_t:bt;return t||N(i,"iterate",I),a.forEach(((t,e)=>r.call(s,o(t),o(e),n)))}};return l.extend(r,t?{add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear")}:{add(t){e||gt(t)||xt(t)||(t=mt(t));let r=mt(this);return tt(r).has.call(r,t)||(r.add(t),L(r,"add",t,t)),this},set(t,r){e||gt(r)||xt(r)||(r=mt(r));let s=mt(this),{has:n,get:a}=tt(s),i=n.call(s,t);i||(t=mt(t),i=n.call(s,t));let o=a.call(s,t);return s.set(t,r),i?l.hasChanged(r,o)&&L(s,"set",t,r):L(s,"add",t,r),this},delete(t){let e=mt(this),{has:r,get:s}=tt(e),n=r.call(e,t);n||(t=mt(t),n=r.call(e,t)),s&&s.call(e,t);let a=e.delete(t);return n&&L(e,"delete",t,void 0),a},clear(){let t=mt(this),e=0!==t.size,r=t.clear();return e&&L(t,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach((s=>{r[s]=function(...r){let n=this.__v_raw,a=mt(n),i=l.isMap(a),o="entries"===s||s===Symbol.iterator&&i,h=n[s](...r),u=e?Q:t?_t:bt;return t||N(a,"iterate","keys"===s&&i?k:I),{next(){let{value:t,done:e}=h.next();return e?{value:t,done:e}:{value:o?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}})),r}(t,e);return(e,s,n)=>"__v_isReactive"===s?!t:"__v_isReadonly"===s?t:"__v_raw"===s?e:Reflect.get(l.hasOwn(r,s)&&s in e?r:e,s,n)}let st={get:rt(!1,!1)},nt={get:rt(!1,!0)},at={get:rt(!0,!1)},it={get:rt(!0,!0)},ot=new WeakMap,lt=new WeakMap,ht=new WeakMap,ut=new WeakMap;function ct(t){return xt(t)?t:dt(t,!1,Z,st,ot)}function pt(t){return dt(t,!0,Y,at,ht)}function dt(t,e,r,s,n){if(!l.isObject(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;let a=n.get(t);if(a)return a;let i=t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(l.toRawType(t));if(0===i)return t;let o=new Proxy(t,2===i?s:r);return n.set(t,o),o}function yt(t){return xt(t)?yt(t.__v_raw):!!(t&&t.__v_isReactive)}function xt(t){return!!(t&&t.__v_isReadonly)}function gt(t){return!!(t&&t.__v_isShallow)}function ft(t){return!!t&&!!t.__v_raw}function mt(t){let e=t&&t.__v_raw;return e?mt(e):t}let bt=t=>l.isObject(t)?ct(t):t,_t=t=>l.isObject(t)?pt(t):t;function At(t){return!!t&&!0===t.__v_isRef}function Mt(t){return wt(t,!1)}function wt(t,e){return At(t)?t:new St(t,e)}class St{constructor(t,e){this.dep=new T,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:mt(t),this._value=e?t:bt(t),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(t){let e=this._rawValue,r=this.__v_isShallow||gt(t)||xt(t);t=r?t:mt(t),l.hasChanged(t,e)&&(this._rawValue=t,this._value=r?t:bt(t),this.dep.trigger())}}function Ct(t){return At(t)?t.value:t}let Pt={get:(t,e,r)=>"__v_raw"===e?t:Ct(Reflect.get(t,e,r)),set:(t,e,r,s)=>{let n=t[e];return At(n)&&!At(r)?(n.value=r,!0):Reflect.set(t,e,r,s)}};class Tt{constructor(t){this.__v_isRef=!0,this._value=void 0;let e=this.dep=new T,{get:r,set:s}=t(e.track.bind(e),e.trigger.bind(e));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}class vt{constructor(t,e,r){this._object=t,this._key=e,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){let t=this._object[this._key];return this._value=void 0===t?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return function(t,e){let r=v.get(t);return r&&r.get(e)}(mt(this._object),this._key)}}class It{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function kt(t,e,r){let s=t[e];return At(s)?s:new vt(t,e,r)}class Et{constructor(t,e,r){this.fn=t,this.setter=e,this._value=void 0,this.dep=new T(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=C-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=r}notify(){if(this.flags|=16,!(8&this.flags)&&n!==this)return d(this,!0),!0}get value(){let t=this.dep.track();return m(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}let Nt={},Lt=new WeakMap;function jt(t,e=!1,r=o){if(r){let e=Lt.get(r);e||Lt.set(r,e=[]),e.push(t)}}function Rt(t,e=1/0,r){if(e<=0||!l.isObject(t)||t.__v_skip||(r=r||new Set).has(t))return t;if(r.add(t),e--,At(t))Rt(t.value,e,r);else if(l.isArray(t))for(let s=0;s<t.length;s++)Rt(t[s],e,r);else if(l.isSet(t)||l.isMap(t))t.forEach((t=>{Rt(t,e,r)}));else if(l.isPlainObject(t)){for(let s in t)Rt(t[s],e,r);for(let s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&Rt(t[s],e,r)}return t}e.ARRAY_ITERATE_KEY=E,e.EffectFlags={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED"},e.EffectScope=h,e.ITERATE_KEY=I,e.MAP_KEY_ITERATE_KEY=k,e.ReactiveEffect=c,e.ReactiveFlags={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},e.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},e.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},e.WatchErrorCodes={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},e.computed=function(t,e,r=!1){let s,n;return l.isFunction(t)?s=t:(s=t.get,n=t.set),new Et(s,n,r)},e.customRef=function(t){return new Tt(t)},e.effect=function(t,e){t.effect instanceof c&&(t=t.effect.fn);let r=new c(t);e&&l.extend(r,e);try{r.run()}catch(t){throw r.stop(),t}let s=r.run.bind(r);return s.effect=r,s},e.effectScope=function(t){return new h(t)},e.enableTracking=function(){A.push(_),_=!0},e.getCurrentScope=function(){return s},e.getCurrentWatcher=function(){return o},e.isProxy=ft,e.isReactive=yt,e.isReadonly=xt,e.isRef=At,e.isShallow=gt,e.markRaw=function(t){return!l.hasOwn(t,"__v_skip")&&Object.isExtensible(t)&&l.def(t,"__v_skip",!0),t},e.onEffectCleanup=function(t,e=!1){n instanceof c&&(n.cleanup=t)},e.onScopeDispose=function(t,e=!1){s&&s.cleanups.push(t)},e.onWatcherCleanup=jt,e.pauseTracking=M,e.proxyRefs=function(t){return yt(t)?t:new Proxy(t,Pt)},e.reactive=ct,e.reactiveReadArray=j,e.readonly=pt,e.ref=Mt,e.resetTracking=w,e.shallowReactive=function(t){return dt(t,!1,X,nt,lt)},e.shallowReadArray=R,e.shallowReadonly=function(t){return dt(t,!0,K,it,ut)},e.shallowRef=function(t){return wt(t,!0)},e.stop=function(t){t.effect.stop()},e.toRaw=mt,e.toReactive=bt,e.toReadonly=_t,e.toRef=function(t,e,r){return At(t)?t:l.isFunction(t)?new It(t):l.isObject(t)&&arguments.length>1?kt(t,e,r):Mt(t)},e.toRefs=function(t){let e=l.isArray(t)?Array(t.length):{};for(let r in t)e[r]=kt(t,r);return e},e.toValue=function(t){return l.isFunction(t)?t():Ct(t)},e.track=N,e.traverse=Rt,e.trigger=L,e.triggerRef=function(t){t.dep&&t.dep.trigger()},e.unref=Ct,e.watch=function(t,e,r=l.EMPTY_OBJ){let n,a,i,h,{immediate:u,deep:p,once:d,scheduler:y,augmentJob:x,call:g}=r,f=t=>p?t:gt(t)||!1===p||0===p?Rt(t,1):Rt(t),m=!1,b=!1;if(At(t)?(a=()=>t.value,m=gt(t)):yt(t)?(a=()=>f(t),m=!0):l.isArray(t)?(b=!0,m=t.some((t=>yt(t)||gt(t))),a=()=>t.map((t=>At(t)?t.value:yt(t)?f(t):l.isFunction(t)?g?g(t,2):t():void 0))):a=l.isFunction(t)?e?g?()=>g(t,2):t:()=>{if(i){M();try{i()}finally{w()}}let e=o;o=n;try{return g?g(t,3,[h]):t(h)}finally{o=e}}:l.NOOP,e&&p){let t=a,e=!0===p?1/0:p;a=()=>Rt(t(),e)}let _=s,A=()=>{n.stop(),_&&_.active&&l.remove(_.effects,n)};if(d&&e){let t=e;e=(...e)=>{t(...e),A()}}let S=b?Array(t.length).fill(Nt):Nt,C=t=>{if(1&n.flags&&(n.dirty||t))if(e){let t=n.run();if(p||m||(b?t.some(((t,e)=>l.hasChanged(t,S[e]))):l.hasChanged(t,S))){i&&i();let r=o;o=n;try{let r=[t,S===Nt?void 0:b&&S[0]===Nt?[]:S,h];g?g(e,3,r):e(...r),S=t}finally{o=r}}}else n.run()};return x&&x(C),(n=new c(a)).scheduler=y?()=>y(C,!1):C,h=t=>jt(t,!1,n),i=n.onStop=()=>{let t=Lt.get(n);if(t){if(g)g(t,4);else for(let e of t)e();Lt.delete(n)}},e?u?C(!0):S=n.run():y?y(C.bind(null,!0),!0):n.run(),A.pause=n.pause.bind(n),A.resume=n.resume.bind(n),A.stop=A,A}},61:function(t,e,r){"use strict";let s,n,a,i;Object.defineProperty(e,"__esModule",{value:!0});var o=r(839),l=r(952);function h(t,e,r,s){try{return s?t(...s):t()}catch(t){c(t,e,r)}}function u(t,e,r,s){if(l.isFunction(t)){let n=h(t,e,r,s);return n&&l.isPromise(n)&&n.catch((t=>{c(t,e,r)})),n}if(l.isArray(t)){let n=[];for(let a=0;a<t.length;a++)n.push(u(t[a],e,r,s));return n}}function c(t,e,r,s=!0){let n=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:i}=e&&e.appContext.config||l.EMPTY_OBJ;if(e){let s=e.parent,n=e.proxy,i=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){let e=s.ec;if(e){for(let r=0;r<e.length;r++)if(!1===e[r](t,n,i))return}s=s.parent}if(a){o.pauseTracking(),h(a,null,10,[t,n,i]),o.resetTracking();return}}!function(t,e,r,s=!0,n=!1){if(n)throw t;console.error(t)}(t,0,0,s,i)}let p=[],d=-1,y=[],x=null,g=0,f=Promise.resolve(),m=null;function b(t){let e=m||f;return t?e.then(this?t.bind(this):t):e}function _(t){if(!(1&t.flags)){let e=C(t),r=p[p.length-1];!r||!(2&t.flags)&&e>=C(r)?p.push(t):p.splice(function(t){let e=d+1,r=p.length;for(;e<r;){let s=e+r>>>1,n=p[s],a=C(n);a<t||a===t&&2&n.flags?e=s+1:r=s}return e}(e),0,t),t.flags|=1,A()}}function A(){m||(m=f.then((function t(e){try{for(d=0;d<p.length;d++){let t=p[d];t&&!(8&t.flags)&&(4&t.flags&&(t.flags&=-2),h(t,t.i,t.i?15:14),4&t.flags||(t.flags&=-2))}}finally{for(;d<p.length;d++){let t=p[d];t&&(t.flags&=-2)}d=-1,p.length=0,S(),m=null,(p.length||y.length)&&t()}})))}function M(t){l.isArray(t)?y.push(...t):x&&-1===t.id?x.splice(g+1,0,t):1&t.flags||(y.push(t),t.flags|=1),A()}function w(t,e,r=d+1){for(;r<p.length;r++){let e=p[r];if(e&&2&e.flags){if(t&&e.id!==t.uid)continue;p.splice(r,1),r--,4&e.flags&&(e.flags&=-2),e(),4&e.flags||(e.flags&=-2)}}}function S(t){if(y.length){let t=[...new Set(y)].sort(((t,e)=>C(t)-C(e)));if(y.length=0,x)return void x.push(...t);for(g=0,x=t;g<x.length;g++){let t=x[g];4&t.flags&&(t.flags&=-2),8&t.flags||t(),t.flags&=-2}x=null,g=0}}let C=t=>null==t.id?2&t.flags?-1:1/0:t.id,P=null,T=null;function v(t){let e=P;return P=t,T=t&&t.type.__scopeId||null,e}function I(t,e=P,r){if(!e||t._n)return t;let s=(...r)=>{let n;s._d&&lr(-1);let a=v(e);try{n=t(...r)}finally{v(a),s._d&&lr(1)}return n};return s._n=!0,s._c=!0,s._d=!0,s}function k(t,e,r,s){let n=t.dirs,a=e&&e.dirs;for(let i=0;i<n.length;i++){let l=n[i];a&&(l.oldValue=a[i].value);let h=l.dir[s];h&&(o.pauseTracking(),u(h,r,8,[t.el,l,t,e]),o.resetTracking())}}let E=Symbol("_vte"),N=t=>t.__isTeleport,L=t=>t&&(t.disabled||""===t.disabled),j=t=>t&&(t.defer||""===t.defer),R=t=>"undefined"!=typeof SVGElement&&t instanceof SVGElement,O=t=>"function"==typeof MathMLElement&&t instanceof MathMLElement,D=(t,e)=>{let r=t&&t.to;return l.isString(r)?e?e(r):null:r},F={name:"Teleport",__isTeleport:!0,process(t,e,r,s,n,a,i,o,l,h){let{mc:u,pc:c,pbc:p,o:{insert:d,querySelector:y,createText:x,createComment:g}}=h,f=L(e.props),{shapeFlag:m,children:b,dynamicChildren:_}=e;if(null==t){let t=e.el=x(""),h=e.anchor=x("");d(t,r,s),d(h,r,s);let c=(t,e)=>{16&m&&(n&&n.isCE&&(n.ce._teleportTarget=t),u(b,t,e,n,a,i,o,l))},p=()=>{let t=e.target=D(e.props,y),r=H(t,e,x,d);t&&("svg"!==i&&R(t)?i="svg":"mathml"!==i&&O(t)&&(i="mathml"),f||(c(t,r),V(e,!1)))};f&&(c(r,h),V(e,!0)),j(e.props)?Ce((()=>{p(),e.el.__isMounted=!0}),a):p()}else{if(j(e.props)&&!t.el.__isMounted)return void Ce((()=>{F.process(t,e,r,s,n,a,i,o,l,h),delete t.el.__isMounted}),a);e.el=t.el,e.targetStart=t.targetStart;let u=e.anchor=t.anchor,d=e.target=t.target,x=e.targetAnchor=t.targetAnchor,g=L(t.props),m=g?r:d,b=g?u:x;if("svg"===i||R(d)?i="svg":("mathml"===i||O(d))&&(i="mathml"),_?(p(t.dynamicChildren,_,m,n,a,i,o),ke(t,e,!0)):l||c(t,e,m,b,n,a,i,o,!1),f)g?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):B(e,r,u,h,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){let t=e.target=D(e.props,y);t&&B(e,t,null,h,0)}else g&&B(e,d,x,h,1);V(e,f)}},remove(t,e,r,{um:s,o:{remove:n}},a){let{shapeFlag:i,children:o,anchor:l,targetStart:h,targetAnchor:u,target:c,props:p}=t;if(c&&(n(h),n(u)),a&&n(l),16&i){let t=a||!L(p);for(let n=0;n<o.length;n++){let a=o[n];s(a,e,r,t,!!a.dynamicChildren)}}},move:B,hydrate:function(t,e,r,s,n,a,{o:{nextSibling:i,parentNode:o,querySelector:l,insert:h,createText:u}},c){let p=e.target=D(e.props,l);if(p){let l=L(e.props),d=p._lpa||p.firstChild;if(16&e.shapeFlag)if(l)e.anchor=c(i(t),e,o(t),r,s,n,a),e.targetStart=d,e.targetAnchor=d&&i(d);else{e.anchor=i(t);let o=d;for(;o;){if(o&&8===o.nodeType){if("teleport start anchor"===o.data)e.targetStart=o;else if("teleport anchor"===o.data){e.targetAnchor=o,p._lpa=e.targetAnchor&&i(e.targetAnchor);break}}o=i(o)}e.targetAnchor||H(p,e,u,h),c(d&&i(d),e,p,r,s,n,a)}V(e,l)}return e.anchor&&i(e.anchor)}};function B(t,e,r,{o:{insert:s},m:n},a=2){0===a&&s(t.targetAnchor,e,r);let{el:i,anchor:o,shapeFlag:l,children:h,props:u}=t,c=2===a;if(c&&s(i,e,r),(!c||L(u))&&16&l)for(let t=0;t<h.length;t++)n(h[t],e,r,2);c&&s(o,e,r)}function V(t,e){let r=t.ctx;if(r&&r.ut){let s,n;for(e?(s=t.el,n=t.anchor):(s=t.targetStart,n=t.targetAnchor);s&&s!==n;)1===s.nodeType&&s.setAttribute("data-v-owner",r.uid),s=s.nextSibling;r.ut()}}function H(t,e,r,s){let n=e.targetStart=r(""),a=e.targetAnchor=r("");return n[E]=a,t&&(s(n,t),s(a,t)),a}let G=Symbol("_leaveCb"),z=Symbol("_enterCb");function U(){let t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt((()=>{t.isMounted=!0})),Et((()=>{t.isUnmounting=!0})),t}let q=[Function,Array],$={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:q,onEnter:q,onAfterEnter:q,onEnterCancelled:q,onBeforeLeave:q,onLeave:q,onAfterLeave:q,onLeaveCancelled:q,onBeforeAppear:q,onAppear:q,onAfterAppear:q,onAppearCancelled:q},J=t=>{let e=t.subTree;return e.component?J(e.component):e};function W(t){let e=t[0];if(t.length>1){for(let r of t)if(r.type!==er){e=r;break}}return e}function Z(t,e){let{leavingVNodes:r}=t,s=r.get(e.type);return s||(s=Object.create(null),r.set(e.type,s)),s}function Y(t,e,r,s,n){let{appear:a,mode:i,persisted:o=!1,onBeforeEnter:h,onEnter:c,onAfterEnter:p,onEnterCancelled:d,onBeforeLeave:y,onLeave:x,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:m,onAppear:b,onAfterAppear:_,onAppearCancelled:A}=e,M=String(t.key),w=Z(r,t),S=(t,e)=>{t&&u(t,s,9,e)},C=(t,e)=>{let r=e[1];S(t,e),l.isArray(t)?t.every((t=>t.length<=1))&&r():t.length<=1&&r()},P={mode:i,persisted:o,beforeEnter(e){let s=h;if(!r.isMounted)if(!a)return;else s=m||h;e[G]&&e[G](!0);let n=w[M];n&&pr(t,n)&&n.el[G]&&n.el[G](),S(s,[e])},enter(t){let e=c,s=p,n=d;if(!r.isMounted)if(!a)return;else e=b||c,s=_||p,n=A||d;let i=!1,o=t[z]=e=>{i||(i=!0,e?S(n,[t]):S(s,[t]),P.delayedLeave&&P.delayedLeave(),t[z]=void 0)};e?C(e,[t,o]):o()},leave(e,s){let n=String(t.key);if(e[z]&&e[z](!0),r.isUnmounting)return s();S(y,[e]);let a=!1,i=e[G]=r=>{a||(a=!0,s(),r?S(f,[e]):S(g,[e]),e[G]=void 0,w[n]===t&&delete w[n])};w[n]=t,x?C(x,[e,i]):i()},clone(t){let a=Y(t,e,r,s,n);return n&&n(a),a}};return P}function X(t){if(mt(t))return(t=mr(t)).children=null,t}function K(t){if(!mt(t))return N(t.type)&&t.children?W(t.children):t;let{shapeFlag:e,children:r}=t;if(r){if(16&e)return r[0];if(32&e&&l.isFunction(r.default))return r.default()}}function Q(t,e){6&t.shapeFlag&&t.component?(t.transition=e,Q(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function tt(t,e=!1,r){let s=[],n=0;for(let a=0;a<t.length;a++){let i=t[a],o=null==r?i.key:String(r)+String(null!=i.key?i.key:a);i.type===Qe?(128&i.patchFlag&&n++,s=s.concat(tt(i.children,e,o))):(e||i.type!==er)&&s.push(null!=o?mr(i,{key:o}):i)}if(n>1)for(let t=0;t<s.length;t++)s[t].patchFlag=-2;return s}function et(t,e){return l.isFunction(t)?l.extend({name:t.name},e,{setup:t}):t}function rt(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function st(t,e,r,s,n=!1){if(l.isArray(t))return void t.forEach(((t,a)=>st(t,e&&(l.isArray(e)?e[a]:e),r,s,n)));if(gt(s)&&!n){512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&st(t,e,r,s.component.subTree);return}let a=4&s.shapeFlag?Br(s.component):s.el,i=n?null:a,{i:u,r:c}=t,p=e&&e.r,d=u.refs===l.EMPTY_OBJ?u.refs={}:u.refs,y=u.setupState,x=o.toRaw(y),g=y===l.EMPTY_OBJ?()=>!1:t=>l.hasOwn(x,t);if(null!=p&&p!==c&&(l.isString(p)?(d[p]=null,g(p)&&(y[p]=null)):o.isRef(p)&&(p.value=null)),l.isFunction(c))h(c,u,12,[i,d]);else{let e=l.isString(c),s=o.isRef(c);if(e||s){let o=()=>{if(t.f){let r=e?g(c)?y[c]:d[c]:c.value;n?l.isArray(r)&&l.remove(r,a):l.isArray(r)?r.includes(a)||r.push(a):e?(d[c]=[a],g(c)&&(y[c]=d[c])):(c.value=[a],t.k&&(d[t.k]=c.value))}else e?(d[c]=i,g(c)&&(y[c]=i)):s&&(c.value=i,t.k&&(d[t.k]=i))};i?(o.id=-1,Ce(o,r)):o()}}}let nt=!1,at=()=>{nt||(console.error("Hydration completed but contains mismatches."),nt=!0)},it=t=>t.namespaceURI.includes("svg")&&"foreignObject"!==t.tagName,ot=t=>t.namespaceURI.includes("MathML"),lt=t=>{if(1===t.nodeType){if(it(t))return"svg";if(ot(t))return"mathml"}},ht=t=>8===t.nodeType;function ut(t){let{mt:e,p:r,o:{patchProp:s,createText:n,nextSibling:a,parentNode:i,remove:h,insert:u,createComment:c}}=t,p=(r,s,o,l,h,c=!1)=>{c=c||!!s.dynamicChildren;let _=ht(r)&&"["===r.data,A=()=>g(r,s,o,l,h,_),{type:M,ref:w,shapeFlag:S,patchFlag:C}=s,P=r.nodeType;s.el=r,-2===C&&(c=!1,s.dynamicChildren=null);let T=null;switch(M){case tr:3!==P?""===s.children?(u(s.el=n(""),i(r),r),T=r):T=A():(r.data!==s.children&&(at(),r.data=s.children),T=a(r));break;case er:b(r)?(T=a(r),m(s.el=r.content.firstChild,r,o)):T=8!==P||_?A():a(r);break;case rr:if(_&&(P=(r=a(r)).nodeType),1===P||3===P){T=r;let t=!s.children.length;for(let e=0;e<s.staticCount;e++)t&&(s.children+=1===T.nodeType?T.outerHTML:T.data),e===s.staticCount-1&&(s.anchor=T),T=a(T);return _?a(T):T}A();break;case Qe:T=_?x(r,s,o,l,h,c):A();break;default:if(1&S)T=1===P&&s.type.toLowerCase()===r.tagName.toLowerCase()||b(r)?d(r,s,o,l,h,c):A();else if(6&S){s.slotScopeIds=h;let t=i(r);if(T=_?f(r):ht(r)&&"teleport start"===r.data?f(r,r.data,"teleport end"):a(r),e(s,t,null,o,l,lt(t),c),gt(s)&&!s.type.__asyncResolved){let e;_?(e=gr(Qe)).anchor=T?T.previousSibling:t.lastChild:e=3===r.nodeType?br(""):gr("div"),e.el=r,s.component.subTree=e}}else 64&S?T=8!==P?A():s.type.hydrate(r,s,o,l,h,c,t,y):128&S&&(T=s.type.hydrate(r,s,o,l,lt(i(r)),h,c,t,p))}return null!=w&&st(w,null,l,s),T},d=(t,e,r,n,a,i)=>{i=i||!!e.dynamicChildren;let{type:u,props:c,patchFlag:p,shapeFlag:d,dirs:x,transition:g}=e,f="input"===u||"option"===u;if(f||-1!==p){let u;x&&k(e,null,r,"created");let _=!1;if(b(t)){_=Ie(null,g)&&r&&r.vnode.props&&r.vnode.props.appear;let s=t.content.firstChild;_&&g.beforeEnter(s),m(s,t,r),e.el=t=s}if(16&d&&!(c&&(c.innerHTML||c.textContent))){let s=y(t.firstChild,e,t,r,n,a,i);for(;s;){dt(t,1)||at();let e=s;s=s.nextSibling,h(e)}}else if(8&d){let r=e.children;"\n"===r[0]&&("PRE"===t.tagName||"TEXTAREA"===t.tagName)&&(r=r.slice(1)),t.textContent!==r&&(dt(t,0)||at(),t.textContent=e.children)}if(c){if(f||!i||48&p){let e=t.tagName.includes("-");for(let n in c)(f&&(n.endsWith("value")||"indeterminate"===n)||l.isOn(n)&&!l.isReservedProp(n)||"."===n[0]||e)&&s(t,n,null,c[n],void 0,r)}else if(c.onClick)s(t,"onClick",null,c.onClick,void 0,r);else if(4&p&&o.isReactive(c.style))for(let t in c.style)c.style[t]}(u=c&&c.onVnodeBeforeMount)&&Sr(u,r,e),x&&k(e,null,r,"beforeMount"),((u=c&&c.onVnodeMounted)||x||_)&&Xe((()=>{u&&Sr(u,r,e),_&&g.enter(t),x&&k(e,null,r,"mounted")}),n)}return t.nextSibling},y=(t,e,s,i,o,l,h)=>{h=h||!!e.dynamicChildren;let c=e.children,d=c.length;for(let e=0;e<d;e++){let y=h?c[e]:c[e]=_r(c[e]),x=y.type===tr;t?(x&&!h&&e+1<d&&_r(c[e+1]).type===tr&&(u(n(t.data.slice(y.children.length)),s,a(t)),t.data=y.children),t=p(t,y,i,o,l,h)):x&&!y.children?u(y.el=n(""),s):(dt(s,1)||at(),r(null,y,s,null,i,o,lt(s),l))}return t},x=(t,e,r,s,n,o)=>{let{slotScopeIds:l}=e;l&&(n=n?n.concat(l):l);let h=i(t),p=y(a(t),e,h,r,s,n,o);return p&&ht(p)&&"]"===p.data?a(e.anchor=p):(at(),u(e.anchor=c("]"),h,p),p)},g=(t,e,s,n,o,l)=>{if(dt(t.parentElement,1)||at(),e.el=null,l){let e=f(t);for(;;){let r=a(t);if(r&&r!==e)h(r);else break}}let u=a(t),c=i(t);return h(t),r(null,e,c,u,s,n,lt(c),o),s&&(s.vnode.el=e.el,qe(s,e.el)),u},f=(t,e="[",r="]")=>{let s=0;for(;t;)if((t=a(t))&&ht(t)&&(t.data===e&&s++,t.data===r))if(0===s)return a(t);else s--;return t},m=(t,e,r)=>{let s=e.parentNode;s&&s.replaceChild(t,e);let n=r;for(;n;)n.vnode.el===e&&(n.vnode.el=n.subTree.el=t),n=n.parent},b=t=>1===t.nodeType&&"TEMPLATE"===t.tagName;return[(t,e)=>{if(!e.hasChildNodes()){r(null,t,e),S(),e._vnode=t;return}p(e.firstChild,t,null,null,null),S(),e._vnode=t},p]}let ct="data-allow-mismatch",pt={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function dt(t,e){if(0===e||1===e)for(;t&&!t.hasAttribute(ct);)t=t.parentElement;let r=t&&t.getAttribute(ct);if(null==r)return!1;{if(""===r)return!0;let t=r.split(",");return!!(0===e&&t.includes("children"))||r.split(",").includes(pt[e])}}let yt=l.getGlobalThis().requestIdleCallback||(t=>setTimeout(t,1)),xt=l.getGlobalThis().cancelIdleCallback||(t=>clearTimeout(t)),gt=t=>!!t.type.__asyncLoader;function ft(t,e){let{ref:r,props:s,children:n,ce:a}=e.vnode,i=gr(t,s,n);return i.ref=r,i.ce=a,delete e.vnode.ce,i}let mt=t=>t.type.__isKeepAlive;function bt(t,e){return l.isArray(t)?t.some((t=>bt(t,e))):l.isString(t)?t.split(",").includes(e):!!l.isRegExp(t)&&(t.lastIndex=0,t.test(e))}function _t(t,e){Mt(t,"a",e)}function At(t,e){Mt(t,"da",e)}function Mt(t,e,r=vr){let s=t.__wdc||(t.__wdc=()=>{let e=r;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()});if(Ct(e,s,r),r){let t=r.parent;for(;t&&t.parent;)mt(t.parent.vnode)&&function(t,e,r,s){let n=Ct(e,t,s,!0);Nt((()=>{l.remove(s[e],n)}),r)}(s,e,r,t),t=t.parent}}function wt(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function St(t){return 128&t.shapeFlag?t.ssContent:t}function Ct(t,e,r=vr,s=!1){if(r){let n=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...s)=>{o.pauseTracking();let n=kr(r),a=u(e,r,t,s);return n(),o.resetTracking(),a});return s?n.unshift(a):n.push(a),a}}let Pt=t=>(e,r=vr)=>{Lr&&"sp"!==t||Ct(t,((...t)=>e(...t)),r)},Tt=Pt("bm"),vt=Pt("m"),It=Pt("bu"),kt=Pt("u"),Et=Pt("bum"),Nt=Pt("um"),Lt=Pt("sp"),jt=Pt("rtg"),Rt=Pt("rtc");function Ot(t,e=vr){Ct("ec",t,e)}let Dt="components",Ft=Symbol.for("v-ndc");function Bt(t,e,r=!0,s=!1){let n=P||vr;if(n){let r=n.type;if(t===Dt){let t=Vr(r,!1);if(t&&(t===e||t===l.camelize(e)||t===l.capitalize(l.camelize(e))))return r}let a=Vt(n[t]||r[t],e)||Vt(n.appContext[t],e);return!a&&s?r:a}}function Vt(t,e){return t&&(t[e]||t[l.camelize(e)]||t[l.capitalize(l.camelize(e))])}function Ht(t){return t.some((t=>!cr(t)||t.type!==er&&(t.type!==Qe||!!Ht(t.children))))?t:null}let Gt=t=>t?Nr(t)?Br(t):Gt(t.parent):null,zt=l.extend(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Gt(t.parent),$root:t=>Gt(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Xt(t),$forceUpdate:t=>t.f||(t.f=()=>{_(t.update)}),$nextTick:t=>t.n||(t.n=b.bind(t.proxy)),$watch:t=>Oe.bind(t)}),Ut=(t,e)=>t!==l.EMPTY_OBJ&&!t.__isScriptSetup&&l.hasOwn(t,e),qt={get({_:t},e){let r,s,n;if("__v_skip"===e)return!0;let{ctx:a,setupState:i,data:h,props:u,accessCache:c,type:p,appContext:d}=t;if("$"!==e[0]){let s=c[e];if(void 0!==s)switch(s){case 1:return i[e];case 2:return h[e];case 4:return a[e];case 3:return u[e]}else{if(Ut(i,e))return c[e]=1,i[e];if(h!==l.EMPTY_OBJ&&l.hasOwn(h,e))return c[e]=2,h[e];if((r=t.propsOptions[0])&&l.hasOwn(r,e))return c[e]=3,u[e];if(a!==l.EMPTY_OBJ&&l.hasOwn(a,e))return c[e]=4,a[e];Zt&&(c[e]=0)}}let y=zt[e];return y?("$attrs"===e&&o.track(t.attrs,"get",""),y(t)):(s=p.__cssModules)&&(s=s[e])?s:a!==l.EMPTY_OBJ&&l.hasOwn(a,e)?(c[e]=4,a[e]):(n=d.config.globalProperties,l.hasOwn(n,e))?n[e]:void 0},set({_:t},e,r){let{data:s,setupState:n,ctx:a}=t;return Ut(n,e)?(n[e]=r,!0):s!==l.EMPTY_OBJ&&l.hasOwn(s,e)?(s[e]=r,!0):!l.hasOwn(t.props,e)&&!("$"===e[0]&&e.slice(1)in t)&&(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:s,appContext:n,propsOptions:a}},i){let o;return!!r[i]||t!==l.EMPTY_OBJ&&l.hasOwn(t,i)||Ut(e,i)||(o=a[0])&&l.hasOwn(o,i)||l.hasOwn(s,i)||l.hasOwn(zt,i)||l.hasOwn(n.config.globalProperties,i)},defineProperty(t,e,r){return null!=r.get?t._.accessCache[e]=0:l.hasOwn(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},$t=l.extend({},qt,{get(t,e){if(e!==Symbol.unscopables)return qt.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!l.isGloballyAllowed(e)});function Jt(){let t=Ir();return t.setupContext||(t.setupContext=Fr(t))}function Wt(t){return l.isArray(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let Zt=!0;function Yt(t,e,r){u(l.isArray(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,r)}function Xt(t){let e,r=t.type,{mixins:s,extends:n}=r,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,h=i.get(r);return h?e=h:a.length||s||n?(e={},a.length&&a.forEach((t=>Kt(e,t,o,!0))),Kt(e,r,o)):e=r,l.isObject(r)&&i.set(r,e),e}function Kt(t,e,r,s=!1){let{mixins:n,extends:a}=e;for(let i in a&&Kt(t,a,r,!0),n&&n.forEach((e=>Kt(t,e,r,!0))),e)if(s&&"expose"===i);else{let s=Qt[i]||r&&r[i];t[i]=s?s(t[i],e[i]):e[i]}return t}let Qt={data:te,props:ne,emits:ne,methods:se,computed:se,beforeCreate:re,created:re,beforeMount:re,mounted:re,beforeUpdate:re,updated:re,beforeDestroy:re,beforeUnmount:re,destroyed:re,unmounted:re,activated:re,deactivated:re,errorCaptured:re,serverPrefetch:re,components:se,directives:se,watch:function(t,e){if(!t)return e;if(!e)return t;let r=l.extend(Object.create(null),t);for(let s in e)r[s]=re(t[s],e[s]);return r},provide:te,inject:function(t,e){return se(ee(t),ee(e))}};function te(t,e){return e?t?function(){return l.extend(l.isFunction(t)?t.call(this,this):t,l.isFunction(e)?e.call(this,this):e)}:e:t}function ee(t){if(l.isArray(t)){let e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function re(t,e){return t?[...new Set([].concat(t,e))]:e}function se(t,e){return t?l.extend(Object.create(null),t,e):e}function ne(t,e){return t?l.isArray(t)&&l.isArray(e)?[...new Set([...t,...e])]:l.extend(Object.create(null),Wt(t),Wt(null!=e?e:{})):e}function ae(){return{app:null,config:{isNativeTag:l.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 ie=0,oe=null;function le(t,e){if(vr){let r=vr.provides,s=vr.parent&&vr.parent.provides;s===r&&(r=vr.provides=Object.create(s)),r[t]=e}}function he(t,e,r=!1){let s=vr||P;if(s||oe){let n=oe?oe._context.provides:s?null==s.parent?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(n&&t in n)return n[t];if(arguments.length>1)return r&&l.isFunction(e)?e.call(s&&s.proxy):e}}let ue={},ce=()=>Object.create(ue),pe=t=>Object.getPrototypeOf(t)===ue;function de(t,e,r,s){let n,[a,i]=t.propsOptions,h=!1;if(e)for(let o in e){let u;if(l.isReservedProp(o))continue;let c=e[o];a&&l.hasOwn(a,u=l.camelize(o))?i&&i.includes(u)?(n||(n={}))[u]=c:r[u]=c:Ve(t.emitsOptions,o)||o in s&&c===s[o]||(s[o]=c,h=!0)}if(i){let e=o.toRaw(r),s=n||l.EMPTY_OBJ;for(let n=0;n<i.length;n++){let o=i[n];r[o]=ye(a,e,o,s[o],t,!l.hasOwn(s,o))}}return h}function ye(t,e,r,s,n,a){let i=t[r];if(null!=i){let t=l.hasOwn(i,"default");if(t&&void 0===s){let t=i.default;if(i.type!==Function&&!i.skipFactory&&l.isFunction(t)){let{propsDefaults:a}=n;if(r in a)s=a[r];else{let i=kr(n);s=a[r]=t.call(null,e),i()}}else s=t;n.ce&&n.ce._setProp(r,s)}i[0]&&(a&&!t?s=!1:i[1]&&(""===s||s===l.hyphenate(r))&&(s=!0))}return s}let xe=new WeakMap;function ge(t){return!("$"===t[0]||l.isReservedProp(t))}let fe=t=>"_"===t[0]||"$stable"===t,me=t=>l.isArray(t)?t.map(_r):[_r(t)],be=(t,e,r)=>{if(e._n)return e;let s=I(((...t)=>me(e(...t))),r);return s._c=!1,s},_e=(t,e,r)=>{let s=t._ctx;for(let r in t){if(fe(r))continue;let n=t[r];if(l.isFunction(n))e[r]=be(r,n,s);else if(null!=n){let t=me(n);e[r]=()=>t}}},Ae=(t,e)=>{let r=me(e);t.slots.default=()=>r},Me=(t,e,r)=>{for(let s in e)(r||"_"!==s)&&(t[s]=e[s])},we=(t,e,r)=>{let s=t.slots=ce();if(32&t.vnode.shapeFlag){let t=e._;t?(Me(s,e,r),r&&l.def(s,"_",t,!0)):_e(e,s)}else e&&Ae(t,e)},Se=(t,e,r)=>{let{vnode:s,slots:n}=t,a=!0,i=l.EMPTY_OBJ;if(32&s.shapeFlag){let t=e._;t?r&&1===t?a=!1:Me(n,e,r):(a=!e.$stable,_e(e,n)),i=e}else e&&(Ae(t,e),i={default:1});if(a)for(let t in n)fe(t)||null!=i[t]||delete n[t]},Ce=Xe;function Pe(t,e){var r;let s,n;l.getGlobalThis().__VUE__=!0;let{insert:a,remove:i,patchProp:h,createElement:c,createText:p,createComment:d,setText:y,setElementText:x,parentNode:g,nextSibling:f,setScopeId:m=l.NOOP,insertStaticContent:b}=t,A=(t,e,r,s=null,n=null,a=null,i,o=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!pr(t,e)&&(s=Q(t),W(t,n,a,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);let{type:h,ref:u,shapeFlag:c}=e;switch(h){case tr:M(t,e,r,s);break;case er:C(t,e,r,s);break;case rr:null==t&&P(e,r,s,i);break;case Qe:F(t,e,r,s,n,a,i,o,l);break;default:1&c?I(t,e,r,s,n,a,i,o,l):6&c?B(t,e,r,s,n,a,i,o,l):64&c?h.process(t,e,r,s,n,a,i,o,l,rt):128&c&&h.process(t,e,r,s,n,a,i,o,l,rt)}null!=u&&n&&st(u,t&&t.ref,a,e||t,!e)},M=(t,e,r,s)=>{if(null==t)a(e.el=p(e.children),r,s);else{let r=e.el=t.el;e.children!==t.children&&y(r,e.children)}},C=(t,e,r,s)=>{null==t?a(e.el=d(e.children||""),r,s):e.el=t.el},P=(t,e,r,s)=>{[t.el,t.anchor]=b(t.children,e,r,s,t.el,t.anchor)},T=({el:t,anchor:e},r,s)=>{let n;for(;t&&t!==e;)n=f(t),a(t,r,s),t=n;a(e,r,s)},v=({el:t,anchor:e})=>{let r;for(;t&&t!==e;)r=f(t),i(t),t=r;i(e)},I=(t,e,r,s,n,a,i,o,l)=>{"svg"===e.type?i="svg":"math"===e.type&&(i="mathml"),null==t?N(e,r,s,n,a,i,o,l):R(t,e,n,a,i,o,l)},N=(t,e,r,s,n,i,o,u)=>{let p,d,{props:y,shapeFlag:g,transition:f,dirs:m}=t;if(p=t.el=c(t.type,i,y&&y.is,y),8&g?x(p,t.children):16&g&&j(t.children,p,null,s,n,Te(t,i),o,u),m&&k(t,null,s,"created"),L(p,t,t.scopeId,o,s),y){for(let t in y)"value"===t||l.isReservedProp(t)||h(p,t,null,y[t],i,s);"value"in y&&h(p,"value",null,y.value,i),(d=y.onVnodeBeforeMount)&&Sr(d,s,t)}m&&k(t,null,s,"beforeMount");let b=Ie(n,f);b&&f.beforeEnter(p),a(p,e,r),((d=y&&y.onVnodeMounted)||b||m)&&Ce((()=>{d&&Sr(d,s,t),b&&f.enter(p),m&&k(t,null,s,"mounted")}),n)},L=(t,e,r,s,n)=>{if(r&&m(t,r),s)for(let e=0;e<s.length;e++)m(t,s[e]);if(n){let r=n.subTree;if(e===r||$e(r.type)&&(r.ssContent===e||r.ssFallback===e)){let e=n.vnode;L(t,e,e.scopeId,e.slotScopeIds,n.parent)}}},j=(t,e,r,s,n,a,i,o,l=0)=>{for(let h=l;h<t.length;h++)A(null,t[h]=o?Ar(t[h]):_r(t[h]),e,r,s,n,a,i,o)},R=(t,e,r,s,n,a,i)=>{let o,u=e.el=t.el,{patchFlag:c,dynamicChildren:p,dirs:d}=e;c|=16&t.patchFlag;let y=t.props||l.EMPTY_OBJ,g=e.props||l.EMPTY_OBJ;if(r&&ve(r,!1),(o=g.onVnodeBeforeUpdate)&&Sr(o,r,e,t),d&&k(e,t,r,"beforeUpdate"),r&&ve(r,!0),(y.innerHTML&&null==g.innerHTML||y.textContent&&null==g.textContent)&&x(u,""),p?O(t.dynamicChildren,p,u,r,s,Te(e,n),a):i||U(t,e,u,null,r,s,Te(e,n),a,!1),c>0){if(16&c)D(u,y,g,r,n);else if(2&c&&y.class!==g.class&&h(u,"class",null,g.class,n),4&c&&h(u,"style",y.style,g.style,n),8&c){let t=e.dynamicProps;for(let e=0;e<t.length;e++){let s=t[e],a=y[s],i=g[s];(i!==a||"value"===s)&&h(u,s,a,i,n,r)}}1&c&&t.children!==e.children&&x(u,e.children)}else i||null!=p||D(u,y,g,r,n);((o=g.onVnodeUpdated)||d)&&Ce((()=>{o&&Sr(o,r,e,t),d&&k(e,t,r,"updated")}),s)},O=(t,e,r,s,n,a,i)=>{for(let o=0;o<e.length;o++){let l=t[o],h=e[o],u=l.el&&(l.type===Qe||!pr(l,h)||70&l.shapeFlag)?g(l.el):r;A(l,h,u,null,s,n,a,i,!0)}},D=(t,e,r,s,n)=>{if(e!==r){if(e!==l.EMPTY_OBJ)for(let a in e)l.isReservedProp(a)||a in r||h(t,a,e[a],null,n,s);for(let a in r){if(l.isReservedProp(a))continue;let i=r[a],o=e[a];i!==o&&"value"!==a&&h(t,a,o,i,n,s)}"value"in r&&h(t,"value",e.value,r.value,n)}},F=(t,e,r,s,n,i,o,l,h)=>{let u=e.el=t?t.el:p(""),c=e.anchor=t?t.anchor:p(""),{patchFlag:d,dynamicChildren:y,slotScopeIds:x}=e;x&&(l=l?l.concat(x):x),null==t?(a(u,r,s),a(c,r,s),j(e.children||[],r,c,n,i,o,l,h)):d>0&&64&d&&y&&t.dynamicChildren?(O(t.dynamicChildren,y,r,n,i,o,l),(null!=e.key||n&&e===n.subTree)&&ke(t,e,!0)):U(t,e,r,c,n,i,o,l,h)},B=(t,e,r,s,n,a,i,o,l)=>{e.slotScopeIds=o,null==t?512&e.shapeFlag?n.ctx.activate(e,r,s,i,l):V(e,r,s,n,a,i,l):H(t,e,l)},V=(t,e,r,s,n,a,i)=>{let o=t.component=Tr(t,s,n);mt(t)&&(o.ctx.renderer=rt),jr(o,!1,i),o.asyncDep?(n&&n.registerDep(o,G,i),t.el||C(null,o.subTree=gr(er),e,r)):G(o,t,e,r,n,a,i)},H=(t,e,r)=>{let s=e.component=t.component;if(function(t,e,r){let{props:s,children:n,component:a}=t,{props:i,children:o,patchFlag:l}=e,h=a.emitsOptions;if(e.dirs||e.transition)return!0;if(!r||!(l>=0))return(!!n||!!o)&&(!o||!o.$stable)||s!==i&&(s?!i||Ue(s,i,h):!!i);if(1024&l)return!0;if(16&l)return s?Ue(s,i,h):!!i;if(8&l){let t=e.dynamicProps;for(let e=0;e<t.length;e++){let r=t[e];if(i[r]!==s[r]&&!Ve(h,r))return!0}}return!1}(t,e,r))if(s.asyncDep&&!s.asyncResolved)return void z(s,e,r);else s.next=e,s.update();else e.el=t.el,s.vnode=e},G=(t,e,r,s,a,i,h)=>{let u=()=>{if(t.isMounted){let e,{next:r,bu:s,u:n,parent:o,vnode:c}=t;{let e=function t(e){let r=e.subTree.component;if(r)if(r.asyncDep&&!r.asyncResolved)return r;else return t(r)}(t);if(e){r&&(r.el=c.el,z(t,r,h)),e.asyncDep.then((()=>{t.isUnmounted||u()}));return}}let p=r;ve(t,!1),r?(r.el=c.el,z(t,r,h)):r=c,s&&l.invokeArrayFns(s),(e=r.props&&r.props.onVnodeBeforeUpdate)&&Sr(e,o,r,c),ve(t,!0);let d=He(t),y=t.subTree;t.subTree=d,A(y,d,g(y.el),Q(y),t,a,i),r.el=d.el,null===p&&qe(t,d.el),n&&Ce(n,a),(e=r.props&&r.props.onVnodeUpdated)&&Ce((()=>Sr(e,o,r,c)),a)}else{let o,{el:h,props:u}=e,{bm:c,m:p,parent:d,root:y,type:x}=t,g=gt(e);if(ve(t,!1),c&&l.invokeArrayFns(c),!g&&(o=u&&u.onVnodeBeforeMount)&&Sr(o,d,e),ve(t,!0),h&&n){let e=()=>{t.subTree=He(t),n(h,t.subTree,t,a,null)};g&&x.__asyncHydrate?x.__asyncHydrate(h,t,e):e()}else{y.ce&&y.ce._injectChildStyle(x);let n=t.subTree=He(t);A(null,n,r,s,t,a,i),e.el=n.el}if(p&&Ce(p,a),!g&&(o=u&&u.onVnodeMounted)){let t=e;Ce((()=>Sr(o,d,t)),a)}(256&e.shapeFlag||d&&gt(d.vnode)&&256&d.vnode.shapeFlag)&&t.a&&Ce(t.a,a),t.isMounted=!0,e=r=s=null}};t.scope.on();let c=t.effect=new o.ReactiveEffect(u);t.scope.off();let p=t.update=c.run.bind(c),d=t.job=c.runIfDirty.bind(c);d.i=t,d.id=t.uid,c.scheduler=()=>_(d),ve(t,!0),p()},z=(t,e,r)=>{e.component=t;let s=t.vnode.props;t.vnode=e,t.next=null,function(t,e,r,s){let{props:n,attrs:a,vnode:{patchFlag:i}}=t,h=o.toRaw(n),[u]=t.propsOptions,c=!1;if((s||i>0)&&!(16&i)){if(8&i){let r=t.vnode.dynamicProps;for(let s=0;s<r.length;s++){let i=r[s];if(Ve(t.emitsOptions,i))continue;let o=e[i];if(u)if(l.hasOwn(a,i))o!==a[i]&&(a[i]=o,c=!0);else{let e=l.camelize(i);n[e]=ye(u,h,e,o,t,!1)}else o!==a[i]&&(a[i]=o,c=!0)}}}else{let s;for(let i in de(t,e,n,a)&&(c=!0),h)e&&(l.hasOwn(e,i)||(s=l.hyphenate(i))!==i&&l.hasOwn(e,s))||(u?r&&(void 0!==r[i]||void 0!==r[s])&&(n[i]=ye(u,h,i,void 0,t,!0)):delete n[i]);if(a!==h)for(let t in a)e&&l.hasOwn(e,t)||(delete a[t],c=!0)}c&&o.trigger(t.attrs,"set","")}(t,e.props,s,r),Se(t,e.children,r),o.pauseTracking(),w(t),o.resetTracking()},U=(t,e,r,s,n,a,i,o,l=!1)=>{let h=t&&t.children,u=t?t.shapeFlag:0,c=e.children,{patchFlag:p,shapeFlag:d}=e;if(p>0){if(128&p)return void $(h,c,r,s,n,a,i,o,l);else if(256&p)return void q(h,c,r,s,n,a,i,o,l)}8&d?(16&u&&K(h,n,a),c!==h&&x(r,c)):16&u?16&d?$(h,c,r,s,n,a,i,o,l):K(h,n,a,!0):(8&u&&x(r,""),16&d&&j(c,r,s,n,a,i,o,l))},q=(t,e,r,s,n,a,i,o,h)=>{let u;t=t||l.EMPTY_ARR,e=e||l.EMPTY_ARR;let c=t.length,p=e.length,d=Math.min(c,p);for(u=0;u<d;u++){let s=e[u]=h?Ar(e[u]):_r(e[u]);A(t[u],s,r,null,n,a,i,o,h)}c>p?K(t,n,a,!0,!1,d):j(e,r,s,n,a,i,o,h,d)},$=(t,e,r,s,n,a,i,o,h)=>{let u=0,c=e.length,p=t.length-1,d=c-1;for(;u<=p&&u<=d;){let s=t[u],l=e[u]=h?Ar(e[u]):_r(e[u]);if(pr(s,l))A(s,l,r,null,n,a,i,o,h);else break;u++}for(;u<=p&&u<=d;){let s=t[p],l=e[d]=h?Ar(e[d]):_r(e[d]);if(pr(s,l))A(s,l,r,null,n,a,i,o,h);else break;p--,d--}if(u>p){if(u<=d){let t=d+1,l=t<c?e[t].el:s;for(;u<=d;)A(null,e[u]=h?Ar(e[u]):_r(e[u]),r,l,n,a,i,o,h),u++}}else if(u>d)for(;u<=p;)W(t[u],n,a,!0),u++;else{let y,x=u,g=u,f=new Map;for(u=g;u<=d;u++){let t=e[u]=h?Ar(e[u]):_r(e[u]);null!=t.key&&f.set(t.key,u)}let m=0,b=d-g+1,_=!1,M=0,w=Array(b);for(u=0;u<b;u++)w[u]=0;for(u=x;u<=p;u++){let s,l=t[u];if(m>=b){W(l,n,a,!0);continue}if(null!=l.key)s=f.get(l.key);else for(y=g;y<=d;y++)if(0===w[y-g]&&pr(l,e[y])){s=y;break}void 0===s?W(l,n,a,!0):(w[s-g]=u+1,s>=M?M=s:_=!0,A(l,e[s],r,null,n,a,i,o,h),m++)}let S=_?function(t){let e,r,s,n,a,i=t.slice(),o=[0],l=t.length;for(e=0;e<l;e++){let l=t[e];if(0!==l){if(t[r=o[o.length-1]]<l){i[e]=r,o.push(e);continue}for(s=0,n=o.length-1;s<n;)t[o[a=s+n>>1]]<l?s=a+1:n=a;l<t[o[s]]&&(s>0&&(i[e]=o[s-1]),o[s]=e)}}for(s=o.length,n=o[s-1];s-- >0;)o[s]=n,n=i[n];return o}(w):l.EMPTY_ARR;for(y=S.length-1,u=b-1;u>=0;u--){let t=g+u,l=e[t],p=t+1<c?e[t+1].el:s;0===w[u]?A(null,l,r,p,n,a,i,o,h):_&&(y<0||u!==S[y]?J(l,r,p,2):y--)}}},J=(t,e,r,s,n=null)=>{let{el:i,type:o,transition:l,children:h,shapeFlag:u}=t;if(6&u)return void J(t.component.subTree,e,r,s);if(128&u)return void t.suspense.move(e,r,s);if(64&u)return void o.move(t,e,r,rt);if(o===Qe){a(i,e,r);for(let t=0;t<h.length;t++)J(h[t],e,r,s);a(t.anchor,e,r);return}if(o===rr)return void T(t,e,r);if(2!==s&&1&u&&l)if(0===s)l.beforeEnter(i),a(i,e,r),Ce((()=>l.enter(i)),n);else{let{leave:t,delayLeave:s,afterLeave:n}=l,o=()=>a(i,e,r),h=()=>{t(i,(()=>{o(),n&&n()}))};s?s(i,o,h):h()}else a(i,e,r)},W=(t,e,r,s=!1,n=!1)=>{let a,{type:i,props:o,ref:l,children:h,dynamicChildren:u,shapeFlag:c,patchFlag:p,dirs:d,cacheIndex:y}=t;if(-2===p&&(n=!1),null!=l&&st(l,null,r,t,!0),null!=y&&(e.renderCache[y]=void 0),256&c)return void e.ctx.deactivate(t);let x=1&c&&d,g=!gt(t);if(g&&(a=o&&o.onVnodeBeforeUnmount)&&Sr(a,e,t),6&c)X(t.component,r,s);else{if(128&c)return void t.suspense.unmount(r,s);x&&k(t,null,e,"beforeUnmount"),64&c?t.type.remove(t,e,r,rt,s):u&&!u.hasOnce&&(i!==Qe||p>0&&64&p)?K(u,e,r,!1,!0):(i===Qe&&384&p||!n&&16&c)&&K(h,e,r),s&&Z(t)}(g&&(a=o&&o.onVnodeUnmounted)||x)&&Ce((()=>{a&&Sr(a,e,t),x&&k(t,null,e,"unmounted")}),r)},Z=t=>{let{type:e,el:r,anchor:s,transition:n}=t;if(e===Qe)return void Y(r,s);if(e===rr)return void v(t);let a=()=>{i(r),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&t.shapeFlag&&n&&!n.persisted){let{leave:e,delayLeave:s}=n,i=()=>e(r,a);s?s(t.el,a,i):i()}else a()},Y=(t,e)=>{let r;for(;t!==e;)r=f(t),i(t),t=r;i(e)},X=(t,e,r)=>{let{bum:s,scope:n,job:a,subTree:i,um:o,m:h,a:u}=t;Ee(h),Ee(u),s&&l.invokeArrayFns(s),n.stop(),a&&(a.flags|=8,W(i,t,e,r)),o&&Ce(o,e),Ce((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},K=(t,e,r,s=!1,n=!1,a=0)=>{for(let i=a;i<t.length;i++)W(t[i],e,r,s,n)},Q=t=>{if(6&t.shapeFlag)return Q(t.component.subTree);if(128&t.shapeFlag)return t.suspense.next();let e=f(t.anchor||t.el),r=e&&e[E];return r?f(r):e},tt=!1,et=(t,e,r)=>{null==t?e._vnode&&W(e._vnode,null,null,!0):A(e._vnode||null,t,e,null,null,null,r),e._vnode=t,tt||(tt=!0,w(),S(),tt=!1)},rt={p:A,um:W,m:J,r:Z,mt:V,mc:j,pc:U,pbc:O,n:Q,o:t};return e&&([s,n]=e(rt)),{render:et,hydrate:s,createApp:(r=s,function(t,e=null){l.isFunction(t)||(t=l.extend({},t)),null==e||l.isObject(e)||(e=null);let s=ae(),n=new WeakSet,a=[],i=!1,o=s.app={_uid:ie++,_component:t,_props:e,_container:null,_context:s,_instance:null,version:zr,get config(){return s.config},set config(t){},use:(t,...e)=>(n.has(t)||(t&&l.isFunction(t.install)?(n.add(t),t.install(o,...e)):l.isFunction(t)&&(n.add(t),t(o,...e))),o),mixin:t=>(s.mixins.includes(t)||s.mixins.push(t),o),component:(t,e)=>e?(s.components[t]=e,o):s.components[t],directive:(t,e)=>e?(s.directives[t]=e,o):s.directives[t],mount(n,a,l){if(!i){let h=o._ceVNode||gr(t,e);return h.appContext=s,!0===l?l="svg":!1===l&&(l=void 0),a&&r?r(h,n):et(h,n,l),i=!0,o._container=n,n.__vue_app__=o,Br(h.component)}},onUnmount(t){a.push(t)},unmount(){i&&(u(a,o._instance,16),et(null,o._container),delete o._container.__vue_app__)},provide:(t,e)=>(s.provides[t]=e,o),runWithContext(t){let e=oe;oe=o;try{return t()}finally{oe=e}}};return o})}}function Te({type:t,props:e},r){return"svg"===r&&"foreignObject"===t||"mathml"===r&&"annotation-xml"===t&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function ve({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Ie(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ke(t,e,r=!1){let s=t.children,n=e.children;if(l.isArray(s)&&l.isArray(n))for(let t=0;t<s.length;t++){let e=s[t],a=n[t];1&a.shapeFlag&&!a.dynamicChildren&&((a.patchFlag<=0||32===a.patchFlag)&&((a=n[t]=Ar(n[t])).el=e.el),r||-2===a.patchFlag||ke(e,a)),a.type===tr&&(a.el=e.el)}}function Ee(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}let Ne=Symbol.for("v-scx"),Le=()=>he(Ne);function je(t,e){return Re(t,null,{flush:"sync"})}function Re(t,e,r=l.EMPTY_OBJ){let s,{immediate:n,deep:a,flush:i,once:h}=r,c=l.extend({},r),p=e&&n||!e&&"post"!==i;if(Lr){if("sync"===i){let t=Le();s=t.__watcherHandles||(t.__watcherHandles=[])}else if(!p){let t=()=>{};return t.stop=l.NOOP,t.resume=l.NOOP,t.pause=l.NOOP,t}}let d=vr;c.call=(t,e,r)=>u(t,d,e,r);let y=!1;"post"===i?c.scheduler=t=>{Ce(t,d&&d.suspense)}:"sync"!==i&&(y=!0,c.scheduler=(t,e)=>{e?t():_(t)}),c.augmentJob=t=>{e&&(t.flags|=4),y&&(t.flags|=2,d&&(t.id=d.uid,t.i=d))};let x=o.watch(t,e,c);return Lr&&(s?s.push(x):p&&x()),x}function Oe(t,e,r){let s,n=this.proxy,a=l.isString(t)?t.includes(".")?De(n,t):()=>n[t]:t.bind(n,n);l.isFunction(e)?s=e:(s=e.handler,r=e);let i=kr(this),o=Re(a,s.bind(n),r);return i(),o}function De(t,e){let r=e.split(".");return()=>{let e=t;for(let t=0;t<r.length&&e;t++)e=e[r[t]];return e}}let Fe=(t,e)=>"modelValue"===e||"model-value"===e?t.modelModifiers:t[`${e}Modifiers`]||t[`${l.camelize(e)}Modifiers`]||t[`${l.hyphenate(e)}Modifiers`];function Be(t,e,...r){let s;if(t.isUnmounted)return;let n=t.vnode.props||l.EMPTY_OBJ,a=r,i=e.startsWith("update:"),o=i&&Fe(n,e.slice(7));o&&(o.trim&&(a=r.map((t=>l.isString(t)?t.trim():t))),o.number&&(a=r.map(l.looseToNumber)));let h=n[s=l.toHandlerKey(e)]||n[s=l.toHandlerKey(l.camelize(e))];!h&&i&&(h=n[s=l.toHandlerKey(l.hyphenate(e))]),h&&u(h,t,6,a);let c=n[s+"Once"];if(c){if(t.emitted){if(t.emitted[s])return}else t.emitted={};t.emitted[s]=!0,u(c,t,6,a)}}function Ve(t,e){return!!t&&!!l.isOn(e)&&(e=e.slice(2).replace(/Once$/,""),l.hasOwn(t,e[0].toLowerCase()+e.slice(1))||l.hasOwn(t,l.hyphenate(e))||l.hasOwn(t,e))}function He(t){let e,r,{type:s,vnode:n,proxy:a,withProxy:i,propsOptions:[o],slots:h,attrs:u,emit:p,render:d,renderCache:y,props:x,data:g,setupState:f,ctx:m,inheritAttrs:b}=t,_=v(t);try{if(4&n.shapeFlag){let t=i||a;e=_r(d.call(t,t,y,x,f,g,m)),r=u}else e=_r(s.length>1?s(x,{attrs:u,slots:h,emit:p}):s(x,null)),r=s.props?u:Ge(u)}catch(r){sr.length=0,c(r,t,1),e=gr(er)}let A=e;if(r&&!1!==b){let t=Object.keys(r),{shapeFlag:e}=A;t.length&&7&e&&(o&&t.some(l.isModelListener)&&(r=ze(r,o)),A=mr(A,r,!1,!0))}return n.dirs&&((A=mr(A,null,!1,!0)).dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&Q(A,n.transition),e=A,v(_),e}let Ge=t=>{let e;for(let r in t)("class"===r||"style"===r||l.isOn(r))&&((e||(e={}))[r]=t[r]);return e},ze=(t,e)=>{let r={};for(let s in t)l.isModelListener(s)&&s.slice(9)in e||(r[s]=t[s]);return r};function Ue(t,e,r){let s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let n=0;n<s.length;n++){let a=s[n];if(e[a]!==t[a]&&!Ve(r,a))return!0}return!1}function qe({vnode:t,parent:e},r){for(;e;){let s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=r,e=e.parent;else break}}let $e=t=>t.__isSuspense,Je=0;function We(t,e){let r=t.props&&t.props[e];l.isFunction(r)&&r()}function Ze(t,e,r,s,n,a,i,o,h,u,p=!1){let d,{p:y,m:x,um:g,n:f,o:{parentNode:m,remove:b}}=u,_=function(t){let e=t.props&&t.props.suspensible;return null!=e&&!1!==e}(t);_&&e&&e.pendingBranch&&(d=e.pendingId,e.deps++);let A=t.props?l.toNumber(t.props.timeout):void 0,w=a,S={vnode:t,parent:e,parentComponent:r,namespace:i,container:s,hiddenContainer:n,deps:0,pendingId:Je++,timeout:"number"==typeof A?A:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(t=!1,r=!1){let{vnode:s,activeBranch:n,pendingBranch:i,pendingId:o,effects:l,parentComponent:h,container:u}=S,c=!1;S.isHydrating?S.isHydrating=!1:!t&&((c=n&&i.transition&&"out-in"===i.transition.mode)&&(n.transition.afterLeave=()=>{o===S.pendingId&&(x(i,u,a===w?f(n):a,0),M(l))}),n&&(m(n.el)===u&&(a=f(n)),g(n,h,S,!0)),c||x(i,u,a,0)),Ke(S,i),S.pendingBranch=null,S.isInFallback=!1;let p=S.parent,y=!1;for(;p;){if(p.pendingBranch){p.effects.push(...l),y=!0;break}p=p.parent}y||c||M(l),S.effects=[],_&&e&&e.pendingBranch&&d===e.pendingId&&(e.deps--,0!==e.deps||r||e.resolve()),We(s,"onResolve")},fallback(t){if(!S.pendingBranch)return;let{vnode:e,activeBranch:r,parentComponent:s,container:n,namespace:a}=S;We(e,"onFallback");let i=f(r),l=()=>{S.isInFallback&&(y(null,t,n,i,s,null,a,o,h),Ke(S,t))},u=t.transition&&"out-in"===t.transition.mode;u&&(r.transition.afterLeave=l),S.isInFallback=!0,g(r,s,null,!0),u||l()},move(t,e,r){S.activeBranch&&x(S.activeBranch,t,e,r),S.container=t},next:()=>S.activeBranch&&f(S.activeBranch),registerDep(t,e,r){let s=!!S.pendingBranch;s&&S.deps++;let n=t.vnode.el;t.asyncDep.catch((e=>{c(e,t,0)})).then((a=>{if(t.isUnmounted||S.isUnmounted||S.pendingId!==t.suspenseId)return;t.asyncResolved=!0;let{vnode:o}=t;Rr(t,a,!1),n&&(o.el=n);let l=!n&&t.subTree.el;e(t,o,m(n||t.subTree.el),n?null:f(t.subTree),S,i,r),l&&b(l),qe(t,o.el),s&&0==--S.deps&&S.resolve()}))},unmount(t,e){S.isUnmounted=!0,S.activeBranch&&g(S.activeBranch,r,t,e),S.pendingBranch&&g(S.pendingBranch,r,t,e)}};return S}function Ye(t){let e;if(l.isFunction(t)){let r=or&&t._c;r&&(t._d=!1,ar()),t=t(),r&&(t._d=!0,e=nr,ir())}return l.isArray(t)&&(t=function(t,e=!0){let r;for(let e=0;e<t.length;e++){let s=t[e];if(!cr(s))return;if(s.type!==er||"v-if"===s.children)if(r)return;else r=s}return r}(t)),t=_r(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter((e=>e!==t))),t}function Xe(t,e){e&&e.pendingBranch?l.isArray(t)?e.effects.push(...t):e.effects.push(t):M(t)}function Ke(t,e){t.activeBranch=e;let{vnode:r,parentComponent:s}=t,n=e.el;for(;!n&&e.component;)n=(e=e.component.subTree).el;r.el=n,s&&s.subTree===r&&(s.vnode.el=n,qe(s,n))}let Qe=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),er=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),sr=[],nr=null;function ar(t=!1){sr.push(nr=t?null:[])}function ir(){sr.pop(),nr=sr[sr.length-1]||null}let or=1;function lr(t,e=!1){or+=t,t<0&&nr&&e&&(nr.hasOnce=!0)}function hr(t){return t.dynamicChildren=or>0?nr||l.EMPTY_ARR:null,ir(),or>0&&nr&&nr.push(t),t}function ur(t,e,r,s,n){return hr(gr(t,e,r,s,n,!0))}function cr(t){return!!t&&!0===t.__v_isVNode}function pr(t,e){return t.type===e.type&&t.key===e.key}let dr=({key:t})=>null!=t?t:null,yr=({ref:t,ref_key:e,ref_for:r})=>("number"==typeof t&&(t=""+t),null!=t?l.isString(t)||o.isRef(t)||l.isFunction(t)?{i:P,r:t,k:e,f:!!r}:t:null);function xr(t,e=null,r=null,s=0,n=null,a=+(t!==Qe),i=!1,o=!1){let h={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&dr(e),ref:e&&yr(e),scopeId:T,slotScopeIds:null,children:r,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:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:P};return o?(Mr(h,r),128&a&&t.normalize(h)):r&&(h.shapeFlag|=l.isString(r)?8:16),or>0&&!i&&nr&&(h.patchFlag>0||6&a)&&32!==h.patchFlag&&nr.push(h),h}let gr=function(t,e=null,r=null,s=0,n=null,a=!1){var i;if(t&&t!==Ft||(t=er),cr(t)){let s=mr(t,e,!0);return r&&Mr(s,r),or>0&&!a&&nr&&(6&s.shapeFlag?nr[nr.indexOf(t)]=s:nr.push(s)),s.patchFlag=-2,s}if(i=t,l.isFunction(i)&&"__vccOpts"in i&&(t=t.__vccOpts),e){let{class:t,style:r}=e=fr(e);t&&!l.isString(t)&&(e.class=l.normalizeClass(t)),l.isObject(r)&&(o.isProxy(r)&&!l.isArray(r)&&(r=l.extend({},r)),e.style=l.normalizeStyle(r))}let h=l.isString(t)?1:$e(t)?128:N(t)?64:l.isObject(t)?4:2*!!l.isFunction(t);return xr(t,e,r,s,n,h,a,!0)};function fr(t){return t?o.isProxy(t)||pe(t)?l.extend({},t):t:null}function mr(t,e,r=!1,s=!1){let{props:n,ref:a,patchFlag:i,children:o,transition:h}=t,u=e?wr(n||{},e):n,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&dr(u),ref:e&&e.ref?r&&a?l.isArray(a)?a.concat(yr(e)):[a,yr(e)]:yr(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Qe?-1===i?16:16|i:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:h,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&mr(t.ssContent),ssFallback:t.ssFallback&&mr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return h&&s&&Q(c,h.clone(c)),c}function br(t=" ",e=0){return gr(tr,null,t,e)}function _r(t){return null==t||"boolean"==typeof t?gr(er):l.isArray(t)?gr(Qe,null,t.slice()):cr(t)?Ar(t):gr(tr,null,String(t))}function Ar(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:mr(t)}function Mr(t,e){let r=0,{shapeFlag:s}=t;if(null==e)e=null;else if(l.isArray(e))r=16;else if("object"==typeof e)if(65&s){let r=e.default;r&&(r._c&&(r._d=!1),Mr(t,r()),r._c&&(r._d=!0));return}else{r=32;let s=e._;s||pe(e)?3===s&&P&&(1===P.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=P}else l.isFunction(e)?(e={default:e,_ctx:P},r=32):(e=String(e),64&s?(r=16,e=[br(e)]):r=8);t.children=e,t.shapeFlag|=r}function wr(...t){let e={};for(let r=0;r<t.length;r++){let s=t[r];for(let t in s)if("class"===t)e.class!==s.class&&(e.class=l.normalizeClass([e.class,s.class]));else if("style"===t)e.style=l.normalizeStyle([e.style,s.style]);else if(l.isOn(t)){let r=e[t],n=s[t];n&&r!==n&&!(l.isArray(r)&&r.includes(n))&&(e[t]=r?[].concat(r,n):n)}else""!==t&&(e[t]=s[t])}return e}function Sr(t,e,r,s=null){u(t,e,7,[r,s])}let Cr=ae(),Pr=0;function Tr(t,e,r){let s=t.type,n=(e?e.appContext:t.appContext)||Cr,a={uid:Pr++,vnode:t,type:s,parent:e,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new o.EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(n.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function t(e,r,s=!1){let n=s?xe:r.propsCache,a=n.get(e);if(a)return a;let i=e.props,o={},h=[],u=!1;if(!l.isFunction(e)){let n=e=>{u=!0;let[s,n]=t(e,r,!0);l.extend(o,s),n&&h.push(...n)};!s&&r.mixins.length&&r.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!i&&!u)return l.isObject(e)&&n.set(e,l.EMPTY_ARR),l.EMPTY_ARR;if(l.isArray(i))for(let t=0;t<i.length;t++){let e=l.camelize(i[t]);ge(e)&&(o[e]=l.EMPTY_OBJ)}else if(i)for(let t in i){let e=l.camelize(t);if(ge(e)){let r=i[t],s=o[e]=l.isArray(r)||l.isFunction(r)?{type:r}:l.extend({},r),n=s.type,a=!1,u=!0;if(l.isArray(n))for(let t=0;t<n.length;++t){let e=n[t],r=l.isFunction(e)&&e.name;if("Boolean"===r){a=!0;break}"String"===r&&(u=!1)}else a=l.isFunction(n)&&"Boolean"===n.name;s[0]=a,s[1]=u,(a||l.hasOwn(s,"default"))&&h.push(e)}}let c=[o,h];return l.isObject(e)&&n.set(e,c),c}(s,n),emitsOptions:function t(e,r,s=!1){let n=r.emitsCache,a=n.get(e);if(void 0!==a)return a;let i=e.emits,o={},h=!1;if(!l.isFunction(e)){let n=e=>{let s=t(e,r,!0);s&&(h=!0,l.extend(o,s))};!s&&r.mixins.length&&r.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return i||h?(l.isArray(i)?i.forEach((t=>o[t]=null)):l.extend(o,i),l.isObject(e)&&n.set(e,o),o):(l.isObject(e)&&n.set(e,null),null)}(s,n),emit:null,emitted:null,propsDefaults:l.EMPTY_OBJ,inheritAttrs:s.inheritAttrs,ctx:l.EMPTY_OBJ,data:l.EMPTY_OBJ,props:l.EMPTY_OBJ,attrs:l.EMPTY_OBJ,slots:l.EMPTY_OBJ,refs:l.EMPTY_OBJ,setupState:l.EMPTY_OBJ,setupContext:null,suspense:r,suspenseId:r?r.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 a.ctx={_:a},a.root=e?e.root:a,a.emit=Be.bind(null,a),t.ce&&t.ce(a),a}let vr=null,Ir=()=>vr||P;{let t=l.getGlobalThis(),e=(e,r)=>{let s;return(s=t[e])||(s=t[e]=[]),s.push(r),t=>{s.length>1?s.forEach((e=>e(t))):s[0](t)}};s=e("__VUE_INSTANCE_SETTERS__",(t=>vr=t)),n=e("__VUE_SSR_SETTERS__",(t=>Lr=t))}let kr=t=>{let e=vr;return s(t),t.scope.on(),()=>{t.scope.off(),s(e)}},Er=()=>{vr&&vr.scope.off(),s(null)};function Nr(t){return 4&t.vnode.shapeFlag}let Lr=!1;function jr(t,e=!1,r=!1){e&&n(e);let{props:s,children:a}=t.vnode,i=Nr(t);!function(t,e,r,s=!1){let n={},a=ce();for(let r in t.propsDefaults=Object.create(null),de(t,e,n,a),t.propsOptions[0])r in n||(n[r]=void 0);r?t.props=s?n:o.shallowReactive(n):t.type.props?t.props=n:t.props=a,t.attrs=a}(t,s,i,e),we(t,a,r);let u=i?function(t,e){let r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,qt);let{setup:s}=r;if(s){o.pauseTracking();let r=t.setupContext=s.length>1?Fr(t):null,n=kr(t),a=h(s,t,0,[t.props,r]),i=l.isPromise(a);if(o.resetTracking(),n(),(i||t.sp)&&!gt(t)&&rt(t),i){if(a.then(Er,Er),e)return a.then((r=>{Rr(t,r,e)})).catch((e=>{c(e,t,0)}));t.asyncDep=a}else Rr(t,a,e)}else Or(t,e)}(t,e):void 0;return e&&n(!1),u}function Rr(t,e,r){l.isFunction(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:l.isObject(e)&&(t.setupState=o.proxyRefs(e)),Or(t,r)}function Or(t,e,r){let s=t.type;if(!t.render){if(!e&&a&&!s.render){let e=s.template||Xt(t).template;if(e){let{isCustomElement:r,compilerOptions:n}=t.appContext.config,{delimiters:i,compilerOptions:o}=s,h=l.extend(l.extend({isCustomElement:r,delimiters:i},n),o);s.render=a(e,h)}}t.render=s.render||l.NOOP,i&&i(t)}{let e=kr(t);o.pauseTracking();try{!function(t){let e=Xt(t),r=t.proxy,s=t.ctx;Zt=!1,e.beforeCreate&&Yt(e.beforeCreate,t,"bc");let{data:n,computed:a,methods:i,watch:h,provide:u,inject:c,created:p,beforeMount:d,mounted:y,beforeUpdate:x,updated:g,activated:f,deactivated:m,beforeDestroy:b,beforeUnmount:_,destroyed:A,unmounted:M,render:w,renderTracked:S,renderTriggered:C,errorCaptured:P,serverPrefetch:T,expose:v,inheritAttrs:I,components:k,directives:E,filters:N}=e;if(c&&function(t,e,r=l.NOOP){for(let r in l.isArray(t)&&(t=ee(t)),t){let s,n=t[r];s=l.isObject(n)?"default"in n?he(n.from||r,n.default,!0):he(n.from||r):he(n),o.isRef(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t}):e[r]=s}}(c,s,null),i)for(let t in i){let e=i[t];l.isFunction(e)&&(s[t]=e.bind(r))}if(n){let e=n.call(r,r);l.isObject(e)&&(t.data=o.reactive(e))}if(Zt=!0,a)for(let t in a){let e=a[t],n=l.isFunction(e)?e.bind(r,r):l.isFunction(e.get)?e.get.bind(r,r):l.NOOP,i=Hr({get:n,set:!l.isFunction(e)&&l.isFunction(e.set)?e.set.bind(r):l.NOOP});Object.defineProperty(s,t,{enumerable:!0,configurable:!0,get:()=>i.value,set:t=>i.value=t})}if(h)for(let t in h)!function t(e,r,s,n){let a=n.includes(".")?De(s,n):()=>s[n];if(l.isString(e)){let t=r[e];var i,o,h,u,c,p=void 0;l.isFunction(t)&&(u=a,c=t,Re(u,c,void 0))}else if(l.isFunction(e)){var d,y,x=void 0;d=a,y=e.bind(s),Re(d,y,void 0)}else if(l.isObject(e))if(l.isArray(e))e.forEach((e=>t(e,r,s,n)));else{let t=l.isFunction(e.handler)?e.handler.bind(s):r[e.handler];l.isFunction(t)&&(i=a,o=t,h=e,Re(i,o,h))}}(h[t],s,r,t);if(u){let t=l.isFunction(u)?u.call(r):u;Reflect.ownKeys(t).forEach((e=>{le(e,t[e])}))}function L(t,e){l.isArray(e)?e.forEach((e=>t(e.bind(r)))):e&&t(e.bind(r))}if(p&&Yt(p,t,"c"),L(Tt,d),L(vt,y),L(It,x),L(kt,g),L(_t,f),L(At,m),L(Ot,P),L(Rt,S),L(jt,C),L(Et,_),L(Nt,M),L(Lt,T),l.isArray(v))if(v.length){let e=t.exposed||(t.exposed={});v.forEach((t=>{Object.defineProperty(e,t,{get:()=>r[t],set:e=>r[t]=e})}))}else t.exposed||(t.exposed={});w&&t.render===l.NOOP&&(t.render=w),null!=I&&(t.inheritAttrs=I),k&&(t.components=k),E&&(t.directives=E),T&&rt(t)}(t)}finally{o.resetTracking(),e()}}}let Dr={get:(t,e)=>(o.track(t,"get",""),t[e])};function Fr(t){return{attrs:new Proxy(t.attrs,Dr),slots:t.slots,emit:t.emit,expose:e=>{t.exposed=e||{}}}}function Br(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(o.proxyRefs(o.markRaw(t.exposed)),{get:(e,r)=>r in e?e[r]:r in zt?zt[r](t):void 0,has:(t,e)=>e in t||e in zt})):t.proxy}function Vr(t,e=!0){return l.isFunction(t)?t.displayName||t.name:t.name||e&&t.__name}let Hr=(t,e)=>o.computed(t,e,Lr);function Gr(t,e){let r=t.memo;if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(l.hasChanged(r[t],e[t]))return!1;return or>0&&nr&&nr.push(t),!0}let zr="3.5.13",Ur=l.NOOP,qr=l.NOOP;e.EffectScope=o.EffectScope,e.ReactiveEffect=o.ReactiveEffect,e.TrackOpTypes=o.TrackOpTypes,e.TriggerOpTypes=o.TriggerOpTypes,e.customRef=o.customRef,e.effect=o.effect,e.effectScope=o.effectScope,e.getCurrentScope=o.getCurrentScope,e.getCurrentWatcher=o.getCurrentWatcher,e.isProxy=o.isProxy,e.isReactive=o.isReactive,e.isReadonly=o.isReadonly,e.isRef=o.isRef,e.isShallow=o.isShallow,e.markRaw=o.markRaw,e.onScopeDispose=o.onScopeDispose,e.onWatcherCleanup=o.onWatcherCleanup,e.proxyRefs=o.proxyRefs,e.reactive=o.reactive,e.readonly=o.readonly,e.ref=o.ref,e.shallowReactive=o.shallowReactive,e.shallowReadonly=o.shallowReadonly,e.shallowRef=o.shallowRef,e.stop=o.stop,e.toRaw=o.toRaw,e.toRef=o.toRef,e.toRefs=o.toRefs,e.toValue=o.toValue,e.triggerRef=o.triggerRef,e.unref=o.unref,e.camelize=l.camelize,e.capitalize=l.capitalize,e.normalizeClass=l.normalizeClass,e.normalizeProps=l.normalizeProps,e.normalizeStyle=l.normalizeStyle,e.toDisplayString=l.toDisplayString,e.toHandlerKey=l.toHandlerKey,e.BaseTransition={name:"BaseTransition",props:$,setup(t,{slots:e}){let r=Ir(),s=U();return()=>{let n=e.default&&tt(e.default(),!0);if(!n||!n.length)return;let a=W(n),i=o.toRaw(t),{mode:l}=i;if(s.isLeaving)return X(a);let h=K(a);if(!h)return X(a);let u=Y(h,i,s,r,(t=>u=t));h.type!==er&&Q(h,u);let c=r.subTree&&K(r.subTree);if(c&&c.type!==er&&!pr(h,c)&&J(r).type!==er){let t=Y(c,i,s,r);if(Q(c,t),"out-in"===l&&h.type!==er)return s.isLeaving=!0,t.afterLeave=()=>{s.isLeaving=!1,8&r.job.flags||r.update(),delete t.afterLeave,c=void 0},X(a);"in-out"===l&&h.type!==er?t.delayLeave=(t,e,r)=>{Z(s,c)[String(c.key)]=c,t[G]=()=>{e(),t[G]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{r(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}},e.BaseTransitionPropsValidators=$,e.Comment=er,e.DeprecationTypes=null,e.ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},e.ErrorTypeStrings={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"},e.Fragment=Qe,e.KeepAlive={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){let r=Ir(),s=r.ctx;if(!s.renderer)return()=>{let t=e.default&&e.default();return t&&1===t.length?t[0]:t};let n=new Map,a=new Set,i=null,o=r.suspense,{renderer:{p:h,m:u,um:c,o:{createElement:p}}}=s,d=p("div");function y(t){wt(t),c(t,r,o,!0)}function x(t){n.forEach(((e,r)=>{let s=Vr(e.type);s&&!t(s)&&g(r)}))}function g(t){let e=n.get(t);!e||i&&pr(e,i)?i&&wt(i):y(e),n.delete(t),a.delete(t)}s.activate=(t,e,r,s,n)=>{let a=t.component;u(t,e,r,0,o),h(a.vnode,t,e,r,a,o,s,t.slotScopeIds,n),Ce((()=>{a.isDeactivated=!1,a.a&&l.invokeArrayFns(a.a);let e=t.props&&t.props.onVnodeMounted;e&&Sr(e,a.parent,t)}),o)},s.deactivate=t=>{let e=t.component;Ee(e.m),Ee(e.a),u(t,d,null,1,o),Ce((()=>{e.da&&l.invokeArrayFns(e.da);let r=t.props&&t.props.onVnodeUnmounted;r&&Sr(r,e.parent,t),e.isDeactivated=!0}),o)},Re((()=>[t.include,t.exclude]),(([t,e])=>{t&&x((e=>bt(t,e))),e&&x((t=>!bt(e,t)))}),{flush:"post",deep:!0});let f=null,m=()=>{null!=f&&($e(r.subTree.type)?Ce((()=>{n.set(f,St(r.subTree))}),r.subTree.suspense):n.set(f,St(r.subTree)))};return vt(m),kt(m),Et((()=>{n.forEach((t=>{let{subTree:e,suspense:s}=r,n=St(e);if(t.type===n.type&&t.key===n.key){wt(n);let t=n.component.da;t&&Ce(t,s);return}y(t)}))})),()=>{if(f=null,!e.default)return i=null;let r=e.default(),s=r[0];if(r.length>1)return i=null,r;if(!cr(s)||!(4&s.shapeFlag)&&!(128&s.shapeFlag))return i=null,s;let o=St(s);if(o.type===er)return i=null,o;let l=o.type,h=Vr(gt(o)?o.type.__asyncResolved||{}:l),{include:u,exclude:c,max:p}=t;if(u&&(!h||!bt(u,h))||c&&h&&bt(c,h))return o.shapeFlag&=-257,i=o,s;let d=null==o.key?l:o.key,y=n.get(d);return o.el&&(o=mr(o),128&s.shapeFlag&&(s.ssContent=o)),f=d,y?(o.el=y.el,o.component=y.component,o.transition&&Q(o,o.transition),o.shapeFlag|=512,a.delete(d),a.add(d)):(a.add(d),p&&a.size>parseInt(p,10)&&g(a.values().next().value)),o.shapeFlag|=256,i=o,$e(s.type)?s:o}}},e.Static=rr,e.Suspense={name:"Suspense",__isSuspense:!0,process(t,e,r,s,n,a,i,o,l,h){if(null==t){var u=e,c=r,p=s,d=n,y=a,x=i,g=o,f=l,m=h;let{p:t,o:{createElement:b}}=m,_=b("div"),A=u.suspense=Ze(u,y,d,c,_,p,x,g,f,m);t(null,A.pendingBranch=u.ssContent,_,null,d,A,x,g),A.deps>0?(We(u,"onPending"),We(u,"onFallback"),t(null,u.ssFallback,c,p,d,null,x,g),Ke(A,u.ssFallback)):A.resolve(!1,!0)}else{if(a&&a.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}!function(t,e,r,s,n,a,i,o,{p:l,um:h,o:{createElement:u}}){let c=e.suspense=t.suspense;c.vnode=e,e.el=t.el;let p=e.ssContent,d=e.ssFallback,{activeBranch:y,pendingBranch:x,isInFallback:g,isHydrating:f}=c;if(x)c.pendingBranch=p,pr(p,x)?(l(x,p,c.hiddenContainer,null,n,c,a,i,o),c.deps<=0?c.resolve():g&&!f&&(l(y,d,r,s,n,null,a,i,o),Ke(c,d))):(c.pendingId=Je++,f?(c.isHydrating=!1,c.activeBranch=x):h(x,n,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),g?(l(null,p,c.hiddenContainer,null,n,c,a,i,o),c.deps<=0?c.resolve():(l(y,d,r,s,n,null,a,i,o),Ke(c,d))):y&&pr(p,y)?(l(y,p,r,s,n,c,a,i,o),c.resolve(!0)):(l(null,p,c.hiddenContainer,null,n,c,a,i,o),c.deps<=0&&c.resolve()));else if(y&&pr(p,y))l(y,p,r,s,n,c,a,i,o),Ke(c,p);else if(We(e,"onPending"),c.pendingBranch=p,512&p.shapeFlag?c.pendingId=p.component.suspenseId:c.pendingId=Je++,l(null,p,c.hiddenContainer,null,n,c,a,i,o),c.deps<=0)c.resolve();else{let{timeout:t,pendingId:e}=c;t>0?setTimeout((()=>{c.pendingId===e&&c.fallback(d)}),t):0===t&&c.fallback(d)}}(t,e,r,s,n,i,o,l,h)}},hydrate:function(t,e,r,s,n,a,i,o,l){let h=e.suspense=Ze(e,s,r,t.parentNode,document.createElement("div"),null,n,a,i,o,!0),u=l(t,h.pendingBranch=e.ssContent,r,h,a,i);return 0===h.deps&&h.resolve(!1,!0),u},normalize:function(t){let{shapeFlag:e,children:r}=t,s=32&e;t.ssContent=Ye(s?r.default:r),t.ssFallback=s?Ye(r.fallback):gr(er)}},e.Teleport=F,e.Text=tr,e.assertNumber=function(t,e){},e.callWithAsyncErrorHandling=u,e.callWithErrorHandling=h,e.cloneVNode=mr,e.compatUtils=null,e.computed=Hr,e.createBlock=ur,e.createCommentVNode=function(t="",e=!1){return e?(ar(),ur(er,null,t)):gr(er,null,t)},e.createElementBlock=function(t,e,r,s,n,a){return hr(xr(t,e,r,s,n,a,!0))},e.createElementVNode=xr,e.createHydrationRenderer=function(t){return Pe(t,ut)},e.createPropsRestProxy=function(t,e){let r={};for(let s in t)e.includes(s)||Object.defineProperty(r,s,{enumerable:!0,get:()=>t[s]});return r},e.createRenderer=function(t){return Pe(t)},e.createSlots=function(t,e){for(let r=0;r<e.length;r++){let s=e[r];if(l.isArray(s))for(let e=0;e<s.length;e++)t[s[e].name]=s[e].fn;else s&&(t[s.name]=s.key?(...t)=>{let e=s.fn(...t);return e&&(e.key=s.key),e}:s.fn)}return t},e.createStaticVNode=function(t,e){let r=gr(rr,null,t);return r.staticCount=e,r},e.createTextVNode=br,e.createVNode=gr,e.defineAsyncComponent=function(t){let e;l.isFunction(t)&&(t={loader:t});let{loader:r,loadingComponent:s,errorComponent:n,delay:a=200,hydrate:i,timeout:h,suspensible:u=!0,onError:p}=t,d=null,y=0,x=()=>(y++,d=null,g()),g=()=>{let t;return d||(t=d=r().catch((t=>{if(t=t instanceof Error?t:Error(String(t)),p)return new Promise(((e,r)=>{p(t,(()=>e(x())),(()=>r(t)),y+1)}));throw t})).then((r=>t!==d&&d?d:(r&&(r.__esModule||"Module"===r[Symbol.toStringTag])&&(r=r.default),e=r,r))))};return et({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(t,r,s){let n=i?()=>{let e=i(s,(e=>function(t,e){if(ht(t)&&"["===t.data){let r=1,s=t.nextSibling;for(;s;){if(1===s.nodeType){if(!1===e(s))break}else if(ht(s))if("]"===s.data){if(0==--r)break}else"["===s.data&&r++;s=s.nextSibling}}else e(t)}(t,e)));e&&(r.bum||(r.bum=[])).push(e)}:s;e?n():g().then((()=>!r.isUnmounted&&n()))},get __asyncResolved(){return e},setup(){let t=vr;if(rt(t),e)return()=>ft(e,t);let r=e=>{d=null,c(e,t,13,!n)};if(u&&t.suspense||Lr)return g().then((e=>()=>ft(e,t))).catch((t=>(r(t),()=>n?gr(n,{error:t}):null)));let i=o.ref(!1),l=o.ref(),p=o.ref(!!a);return a&&setTimeout((()=>{p.value=!1}),a),null!=h&&setTimeout((()=>{if(!i.value&&!l.value){let t=Error(`Async component timed out after ${h}ms.`);r(t),l.value=t}}),h),g().then((()=>{i.value=!0,t.parent&&mt(t.parent.vnode)&&t.parent.update()})).catch((t=>{r(t),l.value=t})),()=>i.value&&e?ft(e,t):l.value&&n?gr(n,{error:l.value}):s&&!p.value?gr(s):void 0}})},e.defineComponent=et,e.defineEmits=function(){return null},e.defineExpose=function(t){},e.defineModel=function(){},e.defineOptions=function(t){},e.defineProps=function(){return null},e.defineSlots=function(){return null},e.devtools=void 0,e.getCurrentInstance=Ir,e.getTransitionRawChildren=tt,e.guardReactiveProps=fr,e.h=function(t,e,r){let s=arguments.length;return 2!==s?(s>3?r=Array.prototype.slice.call(arguments,2):3===s&&cr(r)&&(r=[r]),gr(t,e,r)):!l.isObject(e)||l.isArray(e)?gr(t,null,e):cr(e)?gr(t,null,[e]):gr(t,e)},e.handleError=c,e.hasInjectionContext=function(){return!!(vr||P||oe)},e.hydrateOnIdle=(t=1e4)=>e=>{let r=yt(e,{timeout:t});return()=>xt(r)},e.hydrateOnInteraction=(t=[])=>(e,r)=>{l.isString(t)&&(t=[t]);let s=!1,n=t=>{s||(s=!0,a(),e(),t.target.dispatchEvent(new t.constructor(t.type,t)))},a=()=>{r((e=>{for(let r of t)e.removeEventListener(r,n)}))};return r((e=>{for(let r of t)e.addEventListener(r,n,{once:!0})})),a},e.hydrateOnMediaQuery=t=>e=>{if(t){let r=matchMedia(t);if(!r.matches)return r.addEventListener("change",e,{once:!0}),()=>r.removeEventListener("change",e);e()}},e.hydrateOnVisible=t=>(e,r)=>{let s=new IntersectionObserver((t=>{for(let r of t)if(r.isIntersecting){s.disconnect(),e();break}}),t);return r((t=>{if(t instanceof Element){if(function(t){let{top:e,left:r,bottom:s,right:n}=t.getBoundingClientRect(),{innerHeight:a,innerWidth:i}=window;return(e>0&&e<a||s>0&&s<a)&&(r>0&&r<i||n>0&&n<i)}(t))return e(),s.disconnect(),!1;s.observe(t)}})),()=>s.disconnect()},e.initCustomFormatter=function(){},e.inject=he,e.isMemoSame=Gr,e.isRuntimeOnly=()=>!a,e.isVNode=cr,e.mergeDefaults=function(t,e){let r=Wt(t);for(let t in e){if(t.startsWith("__skip"))continue;let s=r[t];s?l.isArray(s)||l.isFunction(s)?s=r[t]={type:s,default:e[t]}:s.default=e[t]:null===s&&(s=r[t]={default:e[t]}),s&&e[`__skip_${t}`]&&(s.skipFactory=!0)}return r},e.mergeModels=function(t,e){return t&&e?l.isArray(t)&&l.isArray(e)?t.concat(e):l.extend({},Wt(t),Wt(e)):t||e},e.mergeProps=wr,e.nextTick=b,e.onActivated=_t,e.onBeforeMount=Tt,e.onBeforeUnmount=Et,e.onBeforeUpdate=It,e.onDeactivated=At,e.onErrorCaptured=Ot,e.onMounted=vt,e.onRenderTracked=Rt,e.onRenderTriggered=jt,e.onServerPrefetch=Lt,e.onUnmounted=Nt,e.onUpdated=kt,e.openBlock=ar,e.popScopeId=function(){T=null},e.provide=le,e.pushScopeId=function(t){T=t},e.queuePostFlushCb=M,e.registerRuntimeCompiler=function(t){a=t,i=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,$t))}},e.renderList=function(t,e,r,s){let n,a=r&&r[s],i=l.isArray(t);if(i||l.isString(t)){let r=i&&o.isReactive(t),s=!1;r&&(s=!o.isShallow(t),t=o.shallowReadArray(t)),n=Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=e(s?o.toReactive(t[r]):t[r],r,void 0,a&&a[r])}else if("number"==typeof t){n=Array(t);for(let r=0;r<t;r++)n[r]=e(r+1,r,void 0,a&&a[r])}else if(l.isObject(t))if(t[Symbol.iterator])n=Array.from(t,((t,r)=>e(t,r,void 0,a&&a[r])));else{let r=Object.keys(t);n=Array(r.length);for(let s=0,i=r.length;s<i;s++){let i=r[s];n[s]=e(t[i],i,s,a&&a[s])}}else n=[];return r&&(r[s]=n),n},e.renderSlot=function(t,e,r={},s,n){if(P.ce||P.parent&&gt(P.parent)&&P.parent.ce)return"default"!==e&&(r.name=e),ar(),ur(Qe,null,[gr("slot",r,s&&s())],64);let a=t[e];a&&a._c&&(a._d=!1),ar();let i=a&&Ht(a(r)),o=r.key||i&&i.key,h=ur(Qe,{key:(o&&!l.isSymbol(o)?o:`_${e}`)+(!i&&s?"_fb":"")},i||(s?s():[]),i&&1===t._?64:-2);return!n&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),a&&a._c&&(a._d=!0),h},e.resolveComponent=function(t,e){return Bt(Dt,t,!0,e)||t},e.resolveDirective=function(t){return Bt("directives",t)},e.resolveDynamicComponent=function(t){return l.isString(t)?Bt(Dt,t,!1)||t:t||Ft},e.resolveFilter=null,e.resolveTransitionHooks=Y,e.setBlockTracking=lr,e.setDevtoolsHook=qr,e.setTransitionHooks=Q,e.ssrContextKey=Ne,e.ssrUtils={createComponentInstance:Tr,setupComponent:jr,renderComponentRoot:He,setCurrentRenderingInstance:v,isVNode:cr,normalizeVNode:_r,getComponentPublicInstance:Br,ensureValidVNode:Ht,pushWarningContext:function(t){},popWarningContext:function(){}},e.toHandlers=function(t,e){let r={};for(let s in t)r[e&&/[A-Z]/.test(s)?`on:${s}`:l.toHandlerKey(s)]=t[s];return r},e.transformVNodeArgs=function(t){},e.useAttrs=function(){return Jt().attrs},e.useId=function(){let t=Ir();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""},e.useModel=function(t,e,r=l.EMPTY_OBJ){let s=Ir(),n=l.camelize(e),a=l.hyphenate(e),i=Fe(t,n),h=o.customRef(((i,o)=>{let h,u,c=l.EMPTY_OBJ;return je((()=>{let e=t[n];l.hasChanged(h,e)&&(h=e,o())})),{get:()=>(i(),r.get?r.get(h):h),set(t){let i=r.set?r.set(t):t;if(!l.hasChanged(i,h)&&!(c!==l.EMPTY_OBJ&&l.hasChanged(t,c)))return;let p=s.vnode.props;p&&(e in p||n in p||a in p)&&(`onUpdate:${e}`in p||`onUpdate:${n}`in p||`onUpdate:${a}`in p)||(h=t,o()),s.emit(`update:${e}`,i),l.hasChanged(t,i)&&l.hasChanged(t,c)&&!l.hasChanged(i,u)&&o(),c=t,u=i}}}));return h[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?i||l.EMPTY_OBJ:h,done:!1}:{done:!0}}},h},e.useSSRContext=Le,e.useSlots=function(){return Jt().slots},e.useTemplateRef=function(t){let e=Ir(),r=o.shallowRef(null);return e&&Object.defineProperty(e.refs===l.EMPTY_OBJ?e.refs={}:e.refs,t,{enumerable:!0,get:()=>r.value,set:t=>r.value=t}),r},e.useTransitionState=U,e.version=zr,e.warn=Ur,e.watch=function(t,e,r){return Re(t,e,r)},e.watchEffect=function(t,e){return Re(t,null,e)},e.watchPostEffect=function(t,e){return Re(t,null,{flush:"post"})},e.watchSyncEffect=je,e.withAsyncContext=function(t){let e=Ir(),r=t();return Er(),l.isPromise(r)&&(r=r.catch((t=>{throw kr(e),t}))),[r,()=>kr(e)]},e.withCtx=I,e.withDefaults=function(t,e){return null},e.withDirectives=function(t,e){if(null===P)return t;let r=Br(P),s=t.dirs||(t.dirs=[]);for(let t=0;t<e.length;t++){let[n,a,i,h=l.EMPTY_OBJ]=e[t];n&&(l.isFunction(n)&&(n={mounted:n,updated:n}),n.deep&&o.traverse(a),s.push({dir:n,instance:r,value:a,oldValue:void 0,arg:i,modifiers:h}))}return t},e.withMemo=function(t,e,r,s){let n=r[s];if(n&&Gr(n,t))return n;let a=e();return a.memo=t.slice(),a.cacheIndex=s,r[s]=a},e.withScopeId=t=>I},306:function(t,e,r){"use strict";let s,n;Object.defineProperty(e,"__esModule",{value:!0});var a,i,o=r(61),l=r(952);let h="undefined"!=typeof window&&window.trustedTypes;if(h)try{n=h.createPolicy("vue",{createHTML:t=>t})}catch(t){}let u=n?t=>n.createHTML(t):t=>t,c="undefined"!=typeof document?document:null,p=c&&c.createElement("template"),d="transition",y="animation",x=Symbol("_vtc"),g={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},f=l.extend({},o.BaseTransitionPropsValidators,g),m=((a=(t,{slots:e})=>o.h(o.BaseTransition,A(t),e)).displayName="Transition",a.props=f,a),b=(t,e=[])=>{l.isArray(t)?t.forEach((t=>t(...e))):t&&t(...e)},_=t=>!!t&&(l.isArray(t)?t.some((t=>t.length>1)):t.length>1);function A(t){let e={};for(let r in t)r in g||(e[r]=t[r]);if(!1===t.css)return e;let{name:r="v",type:s,duration:n,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:o=`${r}-enter-to`,appearFromClass:h=a,appearActiveClass:u=i,appearToClass:c=o,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:y=`${r}-leave-to`}=t,x=function(t){if(null==t)return null;{if(l.isObject(t))return[M(t.enter),M(t.leave)];let e=M(t);return[e,e]}}(n),f=x&&x[0],m=x&&x[1],{onBeforeEnter:A,onEnter:P,onEnterCancelled:v,onLeave:I,onLeaveCancelled:k,onBeforeAppear:N=A,onAppear:L=P,onAppearCancelled:j=v}=e,R=(t,e,r,s)=>{t._enterCancelled=s,S(t,e?c:o),S(t,e?u:i),r&&r()},O=(t,e)=>{t._isLeaving=!1,S(t,p),S(t,y),S(t,d),e&&e()},D=t=>(e,r)=>{let n=t?L:P,i=()=>R(e,t,r);b(n,[e,i]),C((()=>{S(e,t?h:a),w(e,t?c:o),_(n)||T(e,s,f,i)}))};return l.extend(e,{onBeforeEnter(t){b(A,[t]),w(t,a),w(t,i)},onBeforeAppear(t){b(N,[t]),w(t,h),w(t,u)},onEnter:D(!1),onAppear:D(!0),onLeave(t,e){t._isLeaving=!0;let r=()=>O(t,e);w(t,p),t._enterCancelled?(w(t,d),E()):(E(),w(t,d)),C((()=>{t._isLeaving&&(S(t,p),w(t,y),_(I)||T(t,s,m,r))})),b(I,[t,r])},onEnterCancelled(t){R(t,!1,void 0,!0),b(v,[t])},onAppearCancelled(t){R(t,!0,void 0,!0),b(j,[t])},onLeaveCancelled(t){O(t),b(k,[t])}})}function M(t){return l.toNumber(t)}function w(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t[x]||(t[x]=new Set)).add(e)}function S(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));let r=t[x];r&&(r.delete(e),r.size||(t[x]=void 0))}function C(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let P=0;function T(t,e,r,s){let n=t._endId=++P,a=()=>{n===t._endId&&s()};if(null!=r)return setTimeout(a,r);let{type:i,timeout:o,propCount:l}=v(t,e);if(!i)return s();let h=i+"end",u=0,c=()=>{t.removeEventListener(h,p),a()},p=e=>{e.target===t&&++u>=l&&c()};setTimeout((()=>{u<l&&c()}),o+1),t.addEventListener(h,p)}function v(t,e){let r=window.getComputedStyle(t),s=t=>(r[t]||"").split(", "),n=s(`${d}Delay`),a=s(`${d}Duration`),i=I(n,a),o=s(`${y}Delay`),l=s(`${y}Duration`),h=I(o,l),u=null,c=0,p=0;e===d?i>0&&(u=d,c=i,p=a.length):e===y?h>0&&(u=y,c=h,p=l.length):p=(u=(c=Math.max(i,h))>0?i>h?d:y:null)?u===d?a.length:l.length:0;let x=u===d&&/\b(transform|all)(,|$)/.test(s(`${d}Property`).toString());return{type:u,timeout:c,propCount:p,hasTransform:x}}function I(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map(((e,r)=>k(e)+k(t[r]))))}function k(t){return"auto"===t?0:1e3*Number(t.slice(0,-1).replace(",","."))}function E(){return document.body.offsetHeight}let N=Symbol("_vod"),L=Symbol("_vsh"),j={beforeMount(t,{value:e},{transition:r}){t[N]="none"===t.style.display?"":t.style.display,r&&e?r.beforeEnter(t):R(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:s}){!e!=!r&&(s?e?(s.beforeEnter(t),R(t,!0),s.enter(t)):s.leave(t,(()=>{R(t,!1)})):R(t,e))},beforeUnmount(t,{value:e}){R(t,e)}};function R(t,e){t.style.display=e?t[N]:"none",t[L]=!e}let O=Symbol(""),D=/(^|;)\s*display\s*:/,F=/\s*!important$/;function B(t,e,r){if(l.isArray(r))r.forEach((r=>B(t,e,r)));else if(null==r&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{let s=function(t,e){let r=H[e];if(r)return r;let s=o.camelize(e);if("filter"!==s&&s in t)return H[e]=s;s=l.capitalize(s);for(let r=0;r<V.length;r++){let n=V[r]+s;if(n in t)return H[e]=n}return e}(t,e);F.test(r)?t.setProperty(l.hyphenate(s),r.replace(F,""),"important"):t[s]=r}}let V=["Webkit","Moz","ms"],H={},G="http://www.w3.org/1999/xlink";function z(t,e,r,s,n,a=l.isSpecialBooleanAttr(e)){s&&e.startsWith("xlink:")?null==r?t.removeAttributeNS(G,e.slice(6,e.length)):t.setAttributeNS(G,e,r):null==r||a&&!l.includeBooleanAttr(r)?t.removeAttribute(e):t.setAttribute(e,a?"":l.isSymbol(r)?String(r):r)}function U(t,e,r,s,n){if("innerHTML"===e||"textContent"===e){null!=r&&(t[e]="innerHTML"===e?u(r):r);return}let a=t.tagName;if("value"===e&&"PROGRESS"!==a&&!a.includes("-")){let s="OPTION"===a?t.getAttribute("value")||"":t.value,n=null==r?"checkbox"===t.type?"on":"":String(r);s===n&&"_value"in t||(t.value=n),null==r&&t.removeAttribute(e),t._value=r;return}let i=!1;if(""===r||null==r){let s=typeof t[e];"boolean"===s?r=l.includeBooleanAttr(r):null==r&&"string"===s?(r="",i=!0):"number"===s&&(r=0,i=!0)}try{t[e]=r}catch(t){}i&&t.removeAttribute(n||e)}function q(t,e,r,s){t.addEventListener(e,r,s)}let $=Symbol("_vei"),J=/(?:Once|Passive|Capture)$/,W=0,Z=Promise.resolve(),Y=()=>W||(Z.then((()=>W=0)),W=Date.now()),X=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&123>t.charCodeAt(2),K={};function Q(t,e,r){let s=o.defineComponent(t,e);l.isPlainObject(s)&&l.extend(s,e);class n extends et{constructor(t){super(s,t,r)}}return n.def=s,n}let tt="undefined"!=typeof HTMLElement?HTMLElement:class{};class et extends tt{constructor(t,e={},r=jt){super(),this._def=t,this._props=e,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==jt?this._root=this.shadowRoot:!1!==t.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof et){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then((()=>{this._pendingResolve=void 0,this._resolveDef()})):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,o.nextTick((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)}))}_resolveDef(){if(this._pendingResolve)return;for(let t=0;t<this.attributes.length;t++)this._setAttr(this.attributes[t].name);this._ob=new MutationObserver((t=>{for(let e of t)this._setAttr(e.attributeName)})),this._ob.observe(this,{attributes:!0});let t=(t,e=!1)=>{let r;this._resolved=!0,this._pendingResolve=void 0;let{props:s,styles:n}=t;if(s&&!l.isArray(s))for(let t in s){let e=s[t];(e===Number||e&&e.type===Number)&&(t in this._props&&(this._props[t]=l.toNumber(this._props[t])),(r||(r=Object.create(null)))[l.camelize(t)]=!0)}this._numberProps=r,e&&this._resolveProps(t),this.shadowRoot&&this._applyStyles(n),this._mount(t)},e=this._def.__asyncLoader;e?this._pendingResolve=e().then((e=>t(this._def=e,!0))):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let e=this._instance&&this._instance.exposed;if(e)for(let t in e)l.hasOwn(this,t)||Object.defineProperty(this,t,{get:()=>o.unref(e[t])})}_resolveProps(t){let{props:e}=t,r=l.isArray(e)?e:Object.keys(e||{});for(let t of Object.keys(this))"_"!==t[0]&&r.includes(t)&&this._setProp(t,this[t]);for(let t of r.map(l.camelize))Object.defineProperty(this,t,{get(){return this._getProp(t)},set(e){this._setProp(t,e,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;let e=this.hasAttribute(t),r=e?this.getAttribute(t):K,s=l.camelize(t);e&&this._numberProps&&this._numberProps[s]&&(r=l.toNumber(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,e,r=!0,s=!1){if(e!==this._props[t]&&(e===K?delete this._props[t]:(this._props[t]=e,"key"===t&&this._app&&(this._app._ceVNode.key=e)),s&&this._instance&&this._update(),r)){let r=this._ob;r&&r.disconnect(),!0===e?this.setAttribute(l.hyphenate(t),""):"string"==typeof e||"number"==typeof e?this.setAttribute(l.hyphenate(t),e+""):e||this.removeAttribute(l.hyphenate(t)),r&&r.observe(this,{attributes:!0})}}_update(){Lt(this._createVNode(),this._root)}_createVNode(){let t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));let e=o.createVNode(this._def,l.extend(t,this._props));return this._instance||(e.ce=t=>{this._instance=t,t.ce=this,t.isCE=!0;let e=(t,e)=>{this.dispatchEvent(new CustomEvent(t,l.isPlainObject(e[0])?l.extend({detail:e},e[0]):{detail:e}))};t.emit=(t,...r)=>{e(t,r),l.hyphenate(t)!==t&&e(l.hyphenate(t),r)},this._setParent()}),e}_applyStyles(t,e){if(!t)return;if(e){if(e===this._def||this._styleChildren.has(e))return;this._styleChildren.add(e)}let r=this._nonce;for(let e=t.length-1;e>=0;e--){let s=document.createElement("style");r&&s.setAttribute("nonce",r),s.textContent=t[e],this.shadowRoot.prepend(s)}}_parseSlots(){let t,e=this._slots={};for(;t=this.firstChild;){let r=1===t.nodeType&&t.getAttribute("slot")||"default";(e[r]||(e[r]=[])).push(t),this.removeChild(t)}}_renderSlots(){let t=(this._teleportTarget||this).querySelectorAll("slot"),e=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){let s=t[r],n=s.getAttribute("name")||"default",a=this._slots[n],i=s.parentNode;if(a)for(let t of a){if(e&&1===t.nodeType){let r,s=e+"-s",n=document.createTreeWalker(t,1);for(t.setAttribute(s,"");r=n.nextNode();)r.setAttribute(s,"")}i.insertBefore(t,s)}else for(;s.firstChild;)i.insertBefore(s.firstChild,s);i.removeChild(s)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function rt(t){let e=o.getCurrentInstance(),r=e&&e.ce;return r||null}let st=new WeakMap,nt=new WeakMap,at=Symbol("_moveCb"),it=Symbol("_enterCb"),ot=(i={name:"TransitionGroup",props:l.extend({},f,{tag:String,moveClass:String}),setup(t,{slots:e}){let r,s,n=o.getCurrentInstance(),a=o.useTransitionState();return o.onUpdated((()=>{if(!r.length)return;let e=t.moveClass||`${t.name||"v"}-move`;if(!function(t,e,r){let s=t.cloneNode(),n=t[x];n&&n.forEach((t=>{t.split(/\s+/).forEach((t=>t&&s.classList.remove(t)))})),r.split(/\s+/).forEach((t=>t&&s.classList.add(t))),s.style.display="none";let a=1===e.nodeType?e:e.parentNode;a.appendChild(s);let{hasTransform:i}=v(s);return a.removeChild(s),i}(r[0].el,n.vnode.el,e))return;r.forEach(lt),r.forEach(ht);let s=r.filter(ut);E(),s.forEach((t=>{let r=t.el,s=r.style;w(r,e),s.transform=s.webkitTransform=s.transitionDuration="";let n=r[at]=t=>{(!t||t.target===r)&&(!t||/transform$/.test(t.propertyName))&&(r.removeEventListener("transitionend",n),r[at]=null,S(r,e))};r.addEventListener("transitionend",n)}))})),()=>{let i=o.toRaw(t),l=A(i),h=i.tag||o.Fragment;if(r=[],s)for(let t=0;t<s.length;t++){let e=s[t];e.el&&e.el instanceof Element&&(r.push(e),o.setTransitionHooks(e,o.resolveTransitionHooks(e,l,a,n)),st.set(e,e.el.getBoundingClientRect()))}s=e.default?o.getTransitionRawChildren(e.default()):[];for(let t=0;t<s.length;t++){let e=s[t];null!=e.key&&o.setTransitionHooks(e,o.resolveTransitionHooks(e,l,a,n))}return o.createVNode(h,null,s)}}},delete i.props.mode,i);function lt(t){let e=t.el;e[at]&&e[at](),e[it]&&e[it]()}function ht(t){nt.set(t,t.el.getBoundingClientRect())}function ut(t){let e=st.get(t),r=nt.get(t),s=e.left-r.left,n=e.top-r.top;if(s||n){let e=t.el.style;return e.transform=e.webkitTransform=`translate(${s}px,${n}px)`,e.transitionDuration="0s",t}}let ct=t=>{let e=t.props["onUpdate:modelValue"]||!1;return l.isArray(e)?t=>l.invokeArrayFns(e,t):e};function pt(t){t.target.composing=!0}function dt(t){let e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}let yt=Symbol("_assign"),xt={created(t,{modifiers:{lazy:e,trim:r,number:s}},n){t[yt]=ct(n);let a=s||n.props&&"number"===n.props.type;q(t,e?"change":"input",(e=>{if(e.target.composing)return;let s=t.value;r&&(s=s.trim()),a&&(s=l.looseToNumber(s)),t[yt](s)})),r&&q(t,"change",(()=>{t.value=t.value.trim()})),e||(q(t,"compositionstart",pt),q(t,"compositionend",dt),q(t,"change",dt))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:s,trim:n,number:a}},i){if(t[yt]=ct(i),t.composing)return;let o=(a||"number"===t.type)&&!/^0\d/.test(t.value)?l.looseToNumber(t.value):t.value,h=null==e?"":e;if(o!==h){if(document.activeElement===t&&"range"!==t.type&&(s&&e===r||n&&t.value.trim()===h))return;t.value=h}}},gt={deep:!0,created(t,e,r){t[yt]=ct(r),q(t,"change",(()=>{let e=t._modelValue,r=At(t),s=t.checked,n=t[yt];if(l.isArray(e)){let t=l.looseIndexOf(e,r),a=-1!==t;if(s&&!a)n(e.concat(r));else if(!s&&a){let r=[...e];r.splice(t,1),n(r)}}else if(l.isSet(e)){let t=new Set(e);s?t.add(r):t.delete(r),n(t)}else n(Mt(t,s))}))},mounted:ft,beforeUpdate(t,e,r){t[yt]=ct(r),ft(t,e,r)}};function ft(t,{value:e,oldValue:r},s){let n;if(t._modelValue=e,l.isArray(e))n=l.looseIndexOf(e,s.props.value)>-1;else if(l.isSet(e))n=e.has(s.props.value);else{if(e===r)return;n=l.looseEqual(e,Mt(t,!0))}t.checked!==n&&(t.checked=n)}let mt={created(t,{value:e},r){t.checked=l.looseEqual(e,r.props.value),t[yt]=ct(r),q(t,"change",(()=>{t[yt](At(t))}))},beforeUpdate(t,{value:e,oldValue:r},s){t[yt]=ct(s),e!==r&&(t.checked=l.looseEqual(e,s.props.value))}},bt={deep:!0,created(t,{value:e,modifiers:{number:r}},s){let n=l.isSet(e);q(t,"change",(()=>{let e=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>r?l.looseToNumber(At(t)):At(t)));t[yt](t.multiple?n?new Set(e):e:e[0]),t._assigning=!0,o.nextTick((()=>{t._assigning=!1}))})),t[yt]=ct(s)},mounted(t,{value:e}){_t(t,e)},beforeUpdate(t,e,r){t[yt]=ct(r)},updated(t,{value:e}){t._assigning||_t(t,e)}};function _t(t,e){let r=t.multiple,s=l.isArray(e);if(!r||s||l.isSet(e)){for(let n=0,a=t.options.length;n<a;n++){let a=t.options[n],i=At(a);if(r)if(s){let t=typeof i;"string"===t||"number"===t?a.selected=e.some((t=>String(t)===String(i))):a.selected=l.looseIndexOf(e,i)>-1}else a.selected=e.has(i);else if(l.looseEqual(At(a),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}r||-1===t.selectedIndex||(t.selectedIndex=-1)}}function At(t){return"_value"in t?t._value:t.value}function Mt(t,e){let r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}let wt={created(t,e,r){Ct(t,e,r,null,"created")},mounted(t,e,r){Ct(t,e,r,null,"mounted")},beforeUpdate(t,e,r,s){Ct(t,e,r,s,"beforeUpdate")},updated(t,e,r,s){Ct(t,e,r,s,"updated")}};function St(t,e){switch(t){case"SELECT":return bt;case"TEXTAREA":return xt;default:switch(e){case"checkbox":return gt;case"radio":return mt;default:return xt}}}function Ct(t,e,r,s,n){let a=St(t.tagName,r.props&&r.props.type)[n];a&&a(t,e,r,s)}let Pt=["ctrl","shift","alt","meta"],Tt={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>Pt.some((r=>t[`${r}Key`]&&!e.includes(r)))},vt={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},It=l.extend({patchProp:(t,e,r,s,n,a)=>{let i="svg"===n;if("class"===e){var h=s;let e=t[x];e&&(h=(h?[h,...e]:[...e]).join(" ")),null==h?t.removeAttribute("class"):i?t.setAttribute("class",h):t.className=h}else"style"===e?function(t,e,r){let s=t.style,n=l.isString(r),a=!1;if(r&&!n){if(e)if(l.isString(e))for(let t of e.split(";")){let e=t.slice(0,t.indexOf(":")).trim();null==r[e]&&B(s,e,"")}else for(let t in e)null==r[t]&&B(s,t,"");for(let t in r)"display"===t&&(a=!0),B(s,t,r[t])}else if(n){if(e!==r){let t=s[O];t&&(r+=";"+t),s.cssText=r,a=D.test(r)}}else e&&t.removeAttribute("style");N in t&&(t[N]=a?s.display:"",t[L]&&(s.display="none"))}(t,r,s):l.isOn(e)?l.isModelListener(e)||function(t,e,r,s,n=null){let a=t[$]||(t[$]={}),i=a[e];if(s&&i)i.value=s;else{let[r,h]=function(t){let e;if(J.test(t)){let r;for(e={};r=t.match(J);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[":"===t[2]?t.slice(3):l.hyphenate(t.slice(2)),e]}(e);if(s)q(t,r,a[e]=function(t,e){let r=t=>{if(t._vts){if(t._vts<=r.attached)return}else t._vts=Date.now();o.callWithAsyncErrorHandling(function(t,e){if(!l.isArray(e))return e;{let r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}}(t,r.value),e,5,[t])};return r.value=t,r.attached=Y(),r}(s,n),h);else i&&(t.removeEventListener(r,i,h),a[e]=void 0)}}(t,e,0,s,a):("."===e[0]?(e=e.slice(1),0):"^"===e[0]?(e=e.slice(1),1):!function(t,e,r,s){if(s)return!!("innerHTML"===e||"textContent"===e||e in t&&X(e)&&l.isFunction(r));if("spellcheck"===e||"draggable"===e||"translate"===e||"form"===e||"list"===e&&"INPUT"===t.tagName||"type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){let e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return!(X(e)&&l.isString(r))&&e in t}(t,e,s,i))?t._isVueCE&&(/[A-Z]/.test(e)||!l.isString(s))?U(t,l.camelize(e),s,a,e):("true-value"===e?t._trueValue=s:"false-value"===e&&(t._falseValue=s),z(t,e,s,i)):(U(t,e,s),t.tagName.includes("-")||"value"!==e&&"checked"!==e&&"selected"!==e||z(t,e,s,i,a,"value"!==e))}},{insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{let e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,s)=>{let n="svg"===e?c.createElementNS("http://www.w3.org/2000/svg",t):"mathml"===e?c.createElementNS("http://www.w3.org/1998/Math/MathML",t):r?c.createElement(t,{is:r}):c.createElement(t);return"select"===t&&s&&null!=s.multiple&&n.setAttribute("multiple",s.multiple),n},createText:t=>c.createTextNode(t),createComment:t=>c.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>c.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,s,n,a){let i=r?r.previousSibling:e.lastChild;if(n&&(n===a||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),r),n!==a&&(n=n.nextSibling););else{p.innerHTML=u("svg"===s?`<svg>${t}</svg>`:"mathml"===s?`<math>${t}</math>`:t);let n=p.content;if("svg"===s||"mathml"===s){let t=n.firstChild;for(;t.firstChild;)n.appendChild(t.firstChild);n.removeChild(t)}e.insertBefore(n,r)}return[i?i.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}}),kt=!1;function Et(){return s||(s=o.createRenderer(It))}function Nt(){return s=kt?s:o.createHydrationRenderer(It),kt=!0,s}let Lt=(...t)=>{Et().render(...t)},jt=(...t)=>{let e=Et().createApp(...t),{mount:r}=e;return e.mount=t=>{let s=Dt(t);if(!s)return;let n=e._component;l.isFunction(n)||n.render||n.template||(n.template=s.innerHTML),1===s.nodeType&&(s.textContent="");let a=r(s,!1,Ot(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},e},Rt=(...t)=>{let e=Nt().createApp(...t),{mount:r}=e;return e.mount=t=>{let e=Dt(t);if(e)return r(e,!0,Ot(e))},e};function Ot(t){return t instanceof SVGElement?"svg":"function"==typeof MathMLElement&&t instanceof MathMLElement?"mathml":void 0}function Dt(t){return l.isString(t)?document.querySelector(t):t}let Ft=!1;e.Transition=m,e.TransitionGroup=ot,e.VueElement=et,e.createApp=jt,e.createSSRApp=Rt,e.defineCustomElement=Q,e.defineSSRCustomElement=(t,e)=>Q(t,e,Rt),e.hydrate=(...t)=>{Nt().hydrate(...t)},e.initDirectivesForSSR=()=>{Ft||(Ft=!0,xt.getSSRProps=({value:t})=>({value:t}),mt.getSSRProps=({value:t},e)=>{if(e.props&&l.looseEqual(e.props.value,t))return{checked:!0}},gt.getSSRProps=({value:t},e)=>{if(l.isArray(t)){if(e.props&&l.looseIndexOf(t,e.props.value)>-1)return{checked:!0}}else if(l.isSet(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},wt.getSSRProps=(t,e)=>{if("string"!=typeof e.type)return;let r=St(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)},j.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}})},e.render=Lt,e.useCssModule=function(t="$style"){{let e=o.getCurrentInstance();if(!e)return l.EMPTY_OBJ;let r=e.type.__cssModules;if(!r)return l.EMPTY_OBJ;let s=r[t];return s||l.EMPTY_OBJ}},e.useCssVars=function(t){},e.useHost=rt,e.useShadowRoot=function(){let t=rt();return t&&t.shadowRoot},e.vModelCheckbox=gt,e.vModelDynamic=wt,e.vModelRadio=mt,e.vModelSelect=bt,e.vModelText=xt,e.vShow=j,e.withKeys=(t,e)=>{let r=t._withKeys||(t._withKeys={}),s=e.join(".");return r[s]||(r[s]=r=>{if(!("key"in r))return;let s=l.hyphenate(r.key);if(e.some((t=>t===s||vt[t]===s)))return t(r)})},e.withModifiers=(t,e)=>{let r=t._withMods||(t._withMods={}),s=e.join(".");return r[s]||(r[s]=(r,...s)=>{for(let t=0;t<e.length;t++){let s=Tt[e[t]];if(s&&s(r,e))return}return t(r,...s)})},Object.keys(o).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||(e[t]=o[t])}))},952:function(t,e){"use strict";let r;function s(t){let e=Object.create(null);for(let r of t.split(","))e[r]=1;return t=>t in e}Object.defineProperty(e,"__esModule",{value:!0});let n=Object.assign,a=Object.prototype.hasOwnProperty,i=Array.isArray,o=t=>"[object Map]"===x(t),l=t=>"[object Set]"===x(t),h=t=>"[object Date]"===x(t),u=t=>"function"==typeof t,c=t=>"string"==typeof t,p=t=>"symbol"==typeof t,d=t=>null!==t&&"object"==typeof t,y=Object.prototype.toString,x=t=>y.call(t),g=t=>"[object Object]"===x(t),f=s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),m=s("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),b=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},_=/-(\w)/g,A=b((t=>t.replace(_,((t,e)=>e?e.toUpperCase():"")))),M=/\B([A-Z])/g,w=b((t=>t.replace(M,"-$1").toLowerCase())),S=b((t=>t.charAt(0).toUpperCase()+t.slice(1))),C=b((t=>t?`on${S(t)}`:"")),P=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/,T=s("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");function v(t){if(i(t)){let e={};for(let r=0;r<t.length;r++){let s=t[r],n=c(s)?N(s):v(s);if(n)for(let t in n)e[t]=n[t]}return e}if(c(t)||d(t))return t}let I=/;(?![^(]*\))/g,k=/:([^]+)/,E=/\/\*[^]*?\*\//g;function N(t){let e={};return t.replace(E,"").split(I).forEach((t=>{if(t){let r=t.split(k);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}function L(t){let e="";if(c(t))e=t;else if(i(t))for(let r=0;r<t.length;r++){let s=L(t[r]);s&&(e+=s+" ")}else if(d(t))for(let r in t)t[r]&&(e+=r+" ");return e.trim()}let j=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),R=s("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),O=s("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),D=s("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),F="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",B=s(F),V=s(F+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),H=/[>/="'\u0009\u000a\u000c\u0020]/,G={},z=s("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),U=s("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),q=s("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns"),$=/["'&<>]/,J=/^-?>|<!--|-->|--!>|<!-$/g,W=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function Z(t,e){if(t===e)return!0;let r=h(t),s=h(e);if(r||s)return!!r&&!!s&&t.getTime()===e.getTime();if(r=p(t),s=p(e),r||s)return t===e;if(r=i(t),s=i(e),r||s)return!!r&&!!s&&function(t,e){if(t.length!==e.length)return!1;let r=!0;for(let s=0;r&&s<t.length;s++)r=Z(t[s],e[s]);return r}(t,e);if(r=d(t),s=d(e),r||s){if(!r||!s||Object.keys(t).length!==Object.keys(e).length)return!1;for(let r in t){let s=t.hasOwnProperty(r),n=e.hasOwnProperty(r);if(s&&!n||!s&&n||!Z(t[r],e[r]))return!1}}return String(t)===String(e)}let Y=t=>!!(t&&!0===t.__v_isRef),X=t=>c(t)?t:null==t?"":i(t)||d(t)&&(t.toString===y||!u(t.toString))?Y(t)?X(t.value):JSON.stringify(t,K,2):String(t),K=(t,e)=>{if(Y(e))return K(t,e.value);if(o(e))return{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,r],s)=>(t[Q(e,s)+" =>"]=r,t)),{})};if(l(e))return{[`Set(${e.size})`]:[...e.values()].map((t=>Q(t)))};if(p(e))return Q(e);if(d(e)&&!i(e)&&!g(e))return String(e);return e},Q=(t,e="")=>{var r;return p(t)?`Symbol(${null!=(r=t.description)?r:e})`:t};e.EMPTY_ARR=[],e.EMPTY_OBJ={},e.NO=()=>!1,e.NOOP=()=>{},e.PatchFlagNames={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},e.PatchFlags={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},e.ShapeFlags={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},e.SlotFlags={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},e.camelize=A,e.capitalize=S,e.cssVarNameEscapeSymbolsRE=W,e.def=(t,e,r,s=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:r})},e.escapeHtml=function(t){let e,r,s=""+t,n=$.exec(s);if(!n)return s;let a="",i=0;for(r=n.index;r<s.length;r++){switch(s.charCodeAt(r)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#39;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}i!==r&&(a+=s.slice(i,r)),i=r+1,a+=e}return i!==r?a+s.slice(i,r):a},e.escapeHtmlComment=function(t){return t.replace(J,"")},e.extend=n,e.genCacheKey=function(t,e){return t+JSON.stringify(e,((t,e)=>"function"==typeof e?e.toString():e))},e.genPropsAccessExp=function(t){return P.test(t)?`__props.${t}`:`__props[${JSON.stringify(t)}]`},e.generateCodeFrame=function(t,e=0,r=t.length){if((e=Math.max(0,Math.min(e,t.length)))>(r=Math.max(0,Math.min(r,t.length))))return"";let s=t.split(/(\r?\n)/),n=s.filter(((t,e)=>e%2==1));s=s.filter(((t,e)=>e%2==0));let a=0,i=[];for(let t=0;t<s.length;t++)if((a+=s[t].length+(n[t]&&n[t].length||0))>=e){for(let o=t-2;o<=t+2||r>a;o++){if(o<0||o>=s.length)continue;let l=o+1;i.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}|  ${s[o]}`);let h=s[o].length,u=n[o]&&n[o].length||0;if(o===t){let t=e-(a-(h+u)),s=Math.max(1,r>a?h-t:r-e);i.push("   |  "+" ".repeat(t)+"^".repeat(s))}else if(o>t){if(r>a){let t=Math.max(Math.min(r-a,h),1);i.push("   |  "+"^".repeat(t))}a+=h+u}}break}return i.join("\n")},e.getEscapedCssVarName=function(t,e){return t.replace(W,(t=>e?'"'===t?'\\\\\\"':`\\\\${t}`:`\\${t}`))},e.getGlobalThis=()=>r||(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),e.hasChanged=(t,e)=>!Object.is(t,e),e.hasOwn=(t,e)=>a.call(t,e),e.hyphenate=w,e.includeBooleanAttr=function(t){return!!t||""===t},e.invokeArrayFns=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},e.isArray=i,e.isBooleanAttr=V,e.isBuiltInDirective=m,e.isDate=h,e.isFunction=u,e.isGloballyAllowed=T,e.isGloballyWhitelisted=T,e.isHTMLTag=j,e.isIntegerKey=t=>c(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,e.isKnownHtmlAttr=z,e.isKnownMathMLAttr=q,e.isKnownSvgAttr=U,e.isMap=o,e.isMathMLTag=O,e.isModelListener=t=>t.startsWith("onUpdate:"),e.isObject=d,e.isOn=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||97>t.charCodeAt(2)),e.isPlainObject=g,e.isPromise=t=>(d(t)||u(t))&&u(t.then)&&u(t.catch),e.isRegExp=t=>"[object RegExp]"===x(t),e.isRenderableAttrValue=function(t){if(null==t)return!1;let e=typeof t;return"string"===e||"number"===e||"boolean"===e},e.isReservedProp=f,e.isSSRSafeAttrName=function(t){if(G.hasOwnProperty(t))return G[t];let e=H.test(t);return e&&console.error(`unsafe attribute name: ${t}`),G[t]=!e},e.isSVGTag=R,e.isSet=l,e.isSpecialBooleanAttr=B,e.isString=c,e.isSymbol=p,e.isVoidTag=D,e.looseEqual=Z,e.looseIndexOf=function(t,e){return t.findIndex((t=>Z(t,e)))},e.looseToNumber=t=>{let e=parseFloat(t);return isNaN(e)?t:e},e.makeMap=s,e.normalizeClass=L,e.normalizeProps=function(t){if(!t)return null;let{class:e,style:r}=t;return e&&!c(e)&&(t.class=L(e)),r&&(t.style=v(r)),t},e.normalizeStyle=v,e.objectToString=y,e.parseStringStyle=N,e.propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},e.remove=(t,e)=>{let r=t.indexOf(e);r>-1&&t.splice(r,1)},e.slotFlagsText={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},e.stringifyStyle=function(t){if(!t)return"";if(c(t))return t;let e="";for(let r in t){let s=t[r];if(c(s)||"number"==typeof s){let t=r.startsWith("--")?r:w(r);e+=`${t}:${s};`}}return e},e.toDisplayString=X,e.toHandlerKey=C,e.toNumber=t=>{let e=c(t)?Number(t):NaN;return isNaN(e)?t:e},e.toRawType=t=>x(t).slice(8,-1),e.toTypeString=x},589:function(t,e,r){var s=r(337),n={};for(var a in s)s.hasOwnProperty(a)&&(n[s[a]]=a);var i=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw Error("missing channels property: "+o);if(!("labels"in i[o]))throw Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw Error("channel and label counts mismatch: "+o);var l=i[o].channels,h=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:l}),Object.defineProperty(i[o],"labels",{value:h})}i.rgb.hsl=function(t){var e,r,s=t[0]/255,n=t[1]/255,a=t[2]/255,i=Math.min(s,n,a),o=Math.max(s,n,a),l=o-i;return o===i?e=0:s===o?e=(n-a)/l:n===o?e=2+(a-s)/l:a===o&&(e=4+(s-n)/l),(e=Math.min(60*e,360))<0&&(e+=360),r=(i+o)/2,[e,100*(o===i?0:r<=.5?l/(o+i):l/(2-o-i)),100*r]},i.rgb.hsv=function(t){var e,r,s,n,a,i=t[0]/255,o=t[1]/255,l=t[2]/255,h=Math.max(i,o,l),u=h-Math.min(i,o,l),c=function(t){return(h-t)/6/u+.5};return 0===u?n=a=0:(a=u/h,e=c(i),r=c(o),s=c(l),i===h?n=s-r:o===h?n=1/3+e-s:l===h&&(n=2/3+r-e),n<0?n+=1:n>1&&(n-=1)),[360*n,100*a,100*h]},i.rgb.hwb=function(t){var e=t[0],r=t[1],s=t[2];return[i.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(r,s))*100,100*(s=1-1/255*Math.max(e,Math.max(r,s)))]},i.rgb.cmyk=function(t){var e,r=t[0]/255,s=t[1]/255,n=t[2]/255;return e=Math.min(1-r,1-s,1-n),[100*((1-r-e)/(1-e)||0),100*((1-s-e)/(1-e)||0),100*((1-n-e)/(1-e)||0),100*e]},i.rgb.keyword=function(t){var e,r=n[t];if(r)return r;var a=1/0;for(var i in s)if(s.hasOwnProperty(i)){var o=s[i],l=Math.pow(t[0]-o[0],2)+Math.pow(t[1]-o[1],2)+Math.pow(t[2]-o[2],2);l<a&&(a=l,e=i)}return e},i.keyword.rgb=function(t){return s[t]},i.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,s=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92)),100*(.2126*e+.7152*r+.0722*s),100*(.0193*e+.1192*r+.9505*s)]},i.rgb.lab=function(t){var e=i.rgb.xyz(t),r=e[0],s=e[1],n=e[2];return r/=95.047,s/=100,n/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116)-16,500*(r-s),200*(s-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},i.hsl.rgb=function(t){var e,r,s,n,a,i=t[0]/360,o=t[1]/100,l=t[2]/100;if(0===o)return[a=255*l,a,a];r=l<.5?l*(1+o):l+o-l*o,e=2*l-r,n=[0,0,0];for(var h=0;h<3;h++)(s=i+-(1/3*(h-1)))<0&&s++,s>1&&s--,a=6*s<1?e+(r-e)*6*s:2*s<1?r:3*s<2?e+(r-e)*(2/3-s)*6:e,n[h]=255*a;return n},i.hsl.hsv=function(t){var e,r=t[0],s=t[1]/100,n=t[2]/100,a=s,i=Math.max(n,.01);return n*=2,s*=n<=1?n:2-n,a*=i<=1?i:2-i,e=(n+s)/2,[r,100*(0===n?2*a/(i+a):2*s/(n+s)),100*e]},i.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,s=t[2]/100,n=Math.floor(e)%6,a=e-Math.floor(e),i=255*s*(1-r),o=255*s*(1-r*a),l=255*s*(1-r*(1-a));switch(s*=255,n){case 0:return[s,l,i];case 1:return[o,s,i];case 2:return[i,s,l];case 3:return[i,o,s];case 4:return[l,i,s];case 5:return[s,i,o]}},i.hsv.hsl=function(t){var e,r,s,n=t[0],a=t[1]/100,i=t[2]/100,o=Math.max(i,.01);return s=(2-a)*i,e=(2-a)*o,[n,100*(r=(r=a*o/(e<=1?e:2-e))||0),100*(s/=2)]},i.hwb.rgb=function(t){var e,r,s,n,a,i,o,l=t[0]/360,h=t[1]/100,u=t[2]/100,c=h+u;switch(c>1&&(h/=c,u/=c),e=Math.floor(6*l),r=1-u,s=6*l-e,(1&e)!=0&&(s=1-s),n=h+s*(r-h),e){default:case 6:case 0:a=r,i=n,o=h;break;case 1:a=n,i=r,o=h;break;case 2:a=h,i=r,o=n;break;case 3:a=h,i=n,o=r;break;case 4:a=n,i=h,o=r;break;case 5:a=r,i=h,o=n}return[255*a,255*i,255*o]},i.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,s=t[2]/100,n=t[3]/100;return[255*(1-Math.min(1,e*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,s*(1-n)+n))]},i.xyz.rgb=function(t){var e,r,s,n=t[0]/100,a=t[1]/100,i=t[2]/100;return e=3.2406*n+-1.5372*a+-.4986*i,r=-.9689*n+1.8758*a+.0415*i,s=.0557*n+-.204*a+1.057*i,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(s=Math.min(Math.max(0,s),1))]},i.xyz.lab=function(t){var e=t[0],r=t[1],s=t[2];return e/=95.047,r/=100,s/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(s=s>.008856?Math.pow(s,1/3):7.787*s+16/116))]},i.lab.xyz=function(t){var e,r,s,n=t[0],a=t[1],i=t[2];e=a/500+(r=(n+16)/116),s=r-i/200;var o=Math.pow(r,3),l=Math.pow(e,3),h=Math.pow(s,3);return r=(o>.008856?o:(r-16/116)/7.787)*100,[e=(l>.008856?l:(e-16/116)/7.787)*95.047,r,s=(h>.008856?h:(s-16/116)/7.787)*108.883]},i.lab.lch=function(t){var e,r=t[0],s=t[1],n=t[2];return(e=360*Math.atan2(n,s)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(s*s+n*n),e]},i.lch.lab=function(t){var e,r=t[0],s=t[1];return[r,s*Math.cos(e=t[2]/360*2*Math.PI),s*Math.sin(e)]},i.rgb.ansi16=function(t){var e=t[0],r=t[1],s=t[2],n=1 in arguments?arguments[1]:i.rgb.hsv(t)[2];if(0===(n=Math.round(n/50)))return 30;var a=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===n&&(a+=60),a},i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])},i.rgb.ansi256=function(t){var e=t[0],r=t[1],s=t[2];return e===r&&r===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(s/255*5)},i.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=(~~(t>50)+1)*.5;return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},i.ansi256.rgb=function(t){if(t>=232){var e,r=(t-232)*10+8;return[r,r,r]}return[Math.floor((t-=16)/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},i.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var s=parseInt(r,16);return[s>>16&255,s>>8&255,255&s]},i.rgb.hcg=function(t){var e,r,s=t[0]/255,n=t[1]/255,a=t[2]/255,i=Math.max(Math.max(s,n),a),o=Math.min(Math.min(s,n),a),l=i-o;return e=l<1?o/(1-l):0,[360*((l<=0?0:i===s?(n-a)/l%6:i===n?2+(a-s)/l:4+(s-n)/l+4)/6%1),100*l,100*e]},i.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=1,n=0;return(s=r<.5?2*e*r:2*e*(1-r))<1&&(n=(r-.5*s)/(1-s)),[t[0],100*s,100*n]},i.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,s=e*r,n=0;return s<1&&(n=(r-s)/(1-s)),[t[0],100*s,100*n]},i.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,s=t[2]/100;if(0===r)return[255*s,255*s,255*s];var n=[0,0,0],a=e%1*6,i=a%1,o=1-i,l=0;switch(Math.floor(a)){case 0:n[0]=1,n[1]=i,n[2]=0;break;case 1:n[0]=o,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=i;break;case 3:n[0]=0,n[1]=o,n[2]=1;break;case 4:n[0]=i,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=o}return l=(1-r)*s,[(r*n[0]+l)*255,(r*n[1]+l)*255,(r*n[2]+l)*255]},i.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),s=0;return r>0&&(s=e/r),[t[0],100*s,100*r]},i.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,s=0;return r>0&&r<.5?s=e/(2*r):r>=.5&&r<1&&(s=e/(2*(1-r))),[t[0],100*s,100*r]},i.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],(r-e)*100,(1-r)*100]},i.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,s=r-e,n=0;return s<1&&(n=(r-s)/(1-s)),[t[0],100*s,100*n]},i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},i.gray.hsl=i.gray.hsv=function(t){return[0,0,t[0]]},i.gray.hwb=function(t){return[0,100,t[0]]},i.gray.cmyk=function(t){return[0,0,0,t[0]]},i.gray.lab=function(t){return[t[0],0,0]},i.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},358:function(t,e,r){var s=r(589),n=r(314),a={};Object.keys(s).forEach((function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:s[t].channels}),Object.defineProperty(a[t],"labels",{value:s[t].labels});var e=n(t);Object.keys(e).forEach((function(r){var s,n,i=e[r];a[t][r]=(s=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var e=i(t);if("object"==typeof e)for(var r=e.length,s=0;s<r;s++)e[s]=Math.round(e[s]);return e},"conversion"in i&&(s.conversion=i.conversion),s),a[t][r].raw=(n=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),i(t))},"conversion"in i&&(n.conversion=i.conversion),n)}))})),t.exports=a},314:function(t,e,r){var s=r(589);t.exports=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(s),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(s[n]),i=a.length,o=0;o<i;o++){var l=a[o],h=e[l];-1===h.distance&&(h.distance=e[n].distance+1,h.parent=n,r.unshift(l))}return e}(t),r={},n=Object.keys(e),a=n.length,i=0;i<a;i++){var o=n[i];null!==e[o].parent&&(r[o]=function(t,e){for(var r=[e[t].parent,t],n=s[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),n=function(t,e){return function(r){return e(t(r))}}(s[e[a].parent][a],n),a=e[a].parent;return n.conversion=r,n}(o,e))}return r}},337:function(t){"use strict";t.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]}},419:function(t){"use strict";t.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]}},489:function(t,e,r){var s=r(419),n=r(933),a=Object.hasOwnProperty,i=Object.create(null);for(var o in s)a.call(s,o)&&(i[s[o]]=o);var l=t.exports={to:{},get:{}};function h(t,e,r){return Math.min(Math.max(e,t),r)}function u(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}l.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=l.get.hsl(t),r="hsl";break;case"hwb":e=l.get.hwb(t),r="hwb";break;default:e=l.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,r,n,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=0,n=e[2],e=e[1];r<3;r++){var o=2*r;i[r]=parseInt(e.slice(o,o+2),16)}n&&(i[3]=parseInt(n,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=0,n=(e=e[1])[3];r<3;r++)i[r]=parseInt(e[r]+e[r],16);n&&(i[3]=parseInt(n+n,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)i[r]=parseInt(e[r+1],0);e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}else if(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)i[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}else if(!(e=t.match(/^(\w+)$/)))return null;else return"transparent"===e[1]?[0,0,0,0]:a.call(s,e[1])?((i=s[e[1]])[3]=1,i):null;for(r=0;r<3;r++)i[r]=h(i[r],0,255);return i[3]=h(i[3],0,1),i},l.get.hsl=function(t){if(!t)return null;var e=t.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*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,h(parseFloat(e[2]),0,100),h(parseFloat(e[3]),0,100),h(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(t){if(!t)return null;var e=t.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*)?\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,h(parseFloat(e[2]),0,100),h(parseFloat(e[3]),0,100),h(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var t=n(arguments);return"#"+u(t[0])+u(t[1])+u(t[2])+(t[3]<1?u(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=n(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=n(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),s=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+s+"%)":"rgba("+e+"%, "+r+"%, "+s+"%, "+t[3]+")"},l.to.hsl=function(){var t=n(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=n(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return i[t.slice(0,3)]}},654:function(t,e,r){"use strict";var s=r(489),n=r(358),a=[].slice,i=["keyword","gray","hex"],o={};Object.keys(n).forEach((function(t){o[a.call(n[t].labels).sort().join("")]=t}));var l={};function h(t,e){if(!(this instanceof h))return new h(t,e);if(e&&e in i&&(e=null),e&&!(e in n))throw Error("Unknown model: "+e);if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof h)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var r,u,c=s.get(t);if(null===c)throw Error("Unable to parse color from string: "+t);this.model=c.model,u=n[this.model].channels,this.color=c.value.slice(0,u),this.valpha="number"==typeof c.value[u]?c.value[u]:1}else if(t.length){this.model=e||"rgb",u=n[this.model].channels;var d=a.call(t,0,u);this.color=p(d,u),this.valpha="number"==typeof t[u]?t[u]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var y=Object.keys(t);"alpha"in t&&(y.splice(y.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var x=y.sort().join("");if(!(x in o))throw Error("Unable to parse color from object: "+JSON.stringify(t));this.model=o[x];var g=n[this.model].labels,f=[];for(r=0;r<g.length;r++)f.push(t[g[r]]);this.color=p(f)}if(l[this.model])for(r=0,u=n[this.model].channels;r<u;r++){var m=l[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(t,e,r){return(t=Array.isArray(t)?t:[t]).forEach((function(t){(l[t]||(l[t]=[]))[e]=r})),t=t[0],function(s){var n;return arguments.length?(r&&(s=r(s)),(n=this[t]()).color[e]=s):(n=this[t]().color[e],r&&(n=r(n))),n}}function c(t){return function(e){return Math.max(0,Math.min(t,e))}}function p(t,e){for(var r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}h.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in s.to?this:this.rgb(),r=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return s.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return s.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=n[this.model].channels,r=n[this.model].labels,s=0;s<e;s++)t[r[s]]=this.color[s];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){var e;return t=Math.max(t||0,0),new h(this.color.map((e=t,function(t){return Number(t.toFixed(e))})).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new h(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:u("rgb",0,c(255)),green:u("rgb",1,c(255)),blue:u("rgb",2,c(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:u("hsl",1,c(100)),lightness:u("hsl",2,c(100)),saturationv:u("hsv",1,c(100)),value:u("hsv",2,c(100)),chroma:u("hcg",1,c(100)),gray:u("hcg",2,c(100)),white:u("hwb",1,c(100)),wblack:u("hwb",2,c(100)),cyan:u("cmyk",0,c(100)),magenta:u("cmyk",1,c(100)),yellow:u("cmyk",2,c(100)),black:u("cmyk",3,c(100)),x:u("xyz",0,c(100)),y:u("xyz",1,c(100)),z:u("xyz",2,c(100)),l:u("lab",0,c(100)),a:u("lab",1),b:u("lab",2),keyword:function(t){return arguments.length?new h(t):n[this.model].keyword(this.color)},hex:function(t){return arguments.length?new h(t):s.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var s=t[r]/255;e[r]=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return h.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r=(r+t)%360)<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),s=this.rgb(),n=void 0===e?.5:e,a=2*n-1,i=r.alpha()-s.alpha(),o=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,l=1-o;return h.rgb(o*r.red()+l*s.red(),o*r.green()+l*s.green(),o*r.blue()+l*s.blue(),r.alpha()*n+s.alpha()*(1-n))}},Object.keys(n).forEach((function(t){if(-1===i.indexOf(t)){var e=n[t].channels;h.prototype[t]=function(){if(this.model===t)return new h(this);if(arguments.length)return new h(arguments,t);var r,s="number"==typeof arguments[e]?e:this.valpha;return new h((Array.isArray(r=n[this.model][t].raw(this.color))?r:[r]).concat(s),t)},h[t]=function(r){return"number"==typeof r&&(r=p(a.call(arguments),e)),new h(r,t)}}})),t.exports=h},655:function(t,e,r){"use strict";var s,n,a,i,o,l,h,u,c=this&&this.__createBinding||(Object.create?function(t,e,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}:function(t,e,r,s){void 0===s&&(s=r),t[s]=e[r]}),p=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),d=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&c(e,t,r);return p(e,t),e},y=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var x=y(r(737));e.htmlDecodeTree=x.default;var g=y(r(803));e.xmlDecodeTree=g.default;var f=d(r(698));e.decodeCodePoint=f.default;var m=r(698);function b(t){return t>=o.ZERO&&t<=o.NINE}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return m.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return m.fromCodePoint}}),(s=o||(o={}))[s.NUM=35]="NUM",s[s.SEMI=59]="SEMI",s[s.EQUALS=61]="EQUALS",s[s.ZERO=48]="ZERO",s[s.NINE=57]="NINE",s[s.LOWER_A=97]="LOWER_A",s[s.LOWER_F=102]="LOWER_F",s[s.LOWER_X=120]="LOWER_X",s[s.LOWER_Z=122]="LOWER_Z",s[s.UPPER_A=65]="UPPER_A",s[s.UPPER_F=70]="UPPER_F",s[s.UPPER_Z=90]="UPPER_Z",(n=l=e.BinTrieFlags||(e.BinTrieFlags={}))[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE",(a=h||(h={}))[a.EntityStart=0]="EntityStart",a[a.NumericStart=1]="NumericStart",a[a.NumericDecimal=2]="NumericDecimal",a[a.NumericHex=3]="NumericHex",a[a.NamedEntity=4]="NamedEntity",(i=u=e.DecodingMode||(e.DecodingMode={}))[i.Legacy=0]="Legacy",i[i.Strict=1]="Strict",i[i.Attribute=2]="Attribute";var _=function(){function t(t,e,r){this.decodeTree=t,this.emitCodePoint=e,this.errors=r,this.state=h.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=u.Strict}return t.prototype.startEntity=function(t){this.decodeMode=t,this.state=h.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},t.prototype.write=function(t,e){switch(this.state){case h.EntityStart:if(t.charCodeAt(e)===o.NUM)return this.state=h.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1);return this.state=h.NamedEntity,this.stateNamedEntity(t,e);case h.NumericStart:return this.stateNumericStart(t,e);case h.NumericDecimal:return this.stateNumericDecimal(t,e);case h.NumericHex:return this.stateNumericHex(t,e);case h.NamedEntity:return this.stateNamedEntity(t,e)}},t.prototype.stateNumericStart=function(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===o.LOWER_X?(this.state=h.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=h.NumericDecimal,this.stateNumericDecimal(t,e))},t.prototype.addToNumericResult=function(t,e,r,s){if(e!==r){var n=r-e;this.result=this.result*Math.pow(s,n)+parseInt(t.substr(e,n),s),this.consumed+=n}},t.prototype.stateNumericHex=function(t,e){for(var r=e;e<t.length;){var s,n=t.charCodeAt(e);if(!b(n)&&(!((s=n)>=o.UPPER_A)||!(s<=o.UPPER_F))&&(!(s>=o.LOWER_A)||!(s<=o.LOWER_F)))return this.addToNumericResult(t,r,e,16),this.emitNumericEntity(n,3);e+=1}return this.addToNumericResult(t,r,e,16),-1},t.prototype.stateNumericDecimal=function(t,e){for(var r=e;e<t.length;){var s=t.charCodeAt(e);if(!b(s))return this.addToNumericResult(t,r,e,10),this.emitNumericEntity(s,2);e+=1}return this.addToNumericResult(t,r,e,10),-1},t.prototype.emitNumericEntity=function(t,e){var r;if(this.consumed<=e)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===o.SEMI)this.consumed+=1;else if(this.decodeMode===u.Strict)return 0;return this.emitCodePoint((0,f.replaceCodePoint)(this.result),this.consumed),this.errors&&(t!==o.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},t.prototype.stateNamedEntity=function(t,e){for(var r=this.decodeTree,s=r[this.treeIndex],n=(s&l.VALUE_LENGTH)>>14;e<t.length;e++,this.excess++){var a=t.charCodeAt(e);if(this.treeIndex=M(r,s,this.treeIndex+Math.max(1,n),a),this.treeIndex<0)return 0===this.result||this.decodeMode===u.Attribute&&(0===n||function(t){var e;return t===o.EQUALS||(e=t)>=o.UPPER_A&&e<=o.UPPER_Z||e>=o.LOWER_A&&e<=o.LOWER_Z||b(e)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(n=((s=r[this.treeIndex])&l.VALUE_LENGTH)>>14)){if(a===o.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==u.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},t.prototype.emitNotTerminatedNamedEntity=function(){var t,e=this.result,r=(this.decodeTree[e]&l.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,r,this.consumed),null==(t=this.errors)||t.missingSemicolonAfterCharacterReference(),this.consumed},t.prototype.emitNamedEntityData=function(t,e,r){var s=this.decodeTree;return this.emitCodePoint(1===e?s[t]&~l.VALUE_LENGTH:s[t+1],r),3===e&&this.emitCodePoint(s[t+2],r),r},t.prototype.end=function(){var t;switch(this.state){case h.NamedEntity:return 0!==this.result&&(this.decodeMode!==u.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case h.NumericDecimal:return this.emitNumericEntity(0,2);case h.NumericHex:return this.emitNumericEntity(0,3);case h.NumericStart:return null==(t=this.errors)||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case h.EntityStart:return 0}},t}();function A(t){var e="",r=new _(t,(function(t){return e+=(0,f.fromCodePoint)(t)}));return function(t,s){for(var n=0,a=0;(a=t.indexOf("&",a))>=0;){e+=t.slice(n,a),r.startEntity(s);var i=r.write(t,a+1);if(i<0){n=a+r.end();break}n=a+i,a=0===i?n+1:n}var o=e+t.slice(n);return e="",o}}function M(t,e,r,s){var n=(e&l.BRANCH_LENGTH)>>7,a=e&l.JUMP_TABLE;if(0===n)return 0!==a&&s===a?r:-1;if(a){var i=s-a;return i<0||i>=n?-1:t[r+i]-1}for(var o=r,h=o+n-1;o<=h;){var u=o+h>>>1,c=t[u];if(c<s)o=u+1;else{if(!(c>s))return t[u+n];h=u-1}}return-1}e.EntityDecoder=_,e.determineBranch=M;var w=A(x.default),S=A(g.default);e.decodeHTML=function(t,e){return void 0===e&&(e=u.Legacy),w(t,e)},e.decodeHTMLAttribute=function(t){return w(t,u.Attribute)},e.decodeHTMLStrict=function(t){return w(t,u.Strict)},e.decodeXML=function(t){return S(t,u.Strict)}},698:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var r,s=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]]);function n(t){var e;return t>=55296&&t<=57343||t>1114111?65533:null!=(e=s.get(t))?e:t}e.fromCodePoint=null!=(r=String.fromCodePoint)?r:function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)},e.replaceCodePoint=n,e.default=function(t){return(0,e.fromCodePoint)(n(t))}},737:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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ቻ኉Dzኀ\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;䅻Dzᕔ\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ƀ;oș᳊᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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㚆㚝㚵㚼Dz㚋\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((function(t){return t.charCodeAt(0)})))},803:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(t){return t.charCodeAt(0)})))},312:function(t){"use strict";var e=Object.prototype.hasOwnProperty,r="~";function s(){}function n(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(t,e,s,a,i){if("function"!=typeof s)throw TypeError("The listener must be a function");var o=new n(s,a||t,i),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function i(t,e){0==--t._eventsCount?t._events=new s:delete t._events[e]}function o(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(r=!1)),o.prototype.eventNames=function(){var t,s,n=[];if(0===this._eventsCount)return n;for(s in t=this._events)e.call(t,s)&&n.push(r?s.slice(1):s);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t){var e=r?r+t:t,s=this._events[e];if(!s)return[];if(s.fn)return[s.fn];for(var n=0,a=s.length,i=Array(a);n<a;n++)i[n]=s[n].fn;return i},o.prototype.listenerCount=function(t){var e=r?r+t:t,s=this._events[e];return s?s.fn?1:s.length:0},o.prototype.emit=function(t,e,s,n,a,i){var o=r?r+t:t;if(!this._events[o])return!1;var l,h,u=this._events[o],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,s),!0;case 4:return u.fn.call(u.context,e,s,n),!0;case 5:return u.fn.call(u.context,e,s,n,a),!0;case 6:return u.fn.call(u.context,e,s,n,a,i),!0}for(h=1,l=Array(c-1);h<c;h++)l[h-1]=arguments[h];u.fn.apply(u.context,l)}else{var p,d=u.length;for(h=0;h<d;h++)switch(u[h].once&&this.removeListener(t,u[h].fn,void 0,!0),c){case 1:u[h].fn.call(u[h].context);break;case 2:u[h].fn.call(u[h].context,e);break;case 3:u[h].fn.call(u[h].context,e,s);break;case 4:u[h].fn.call(u[h].context,e,s,n);break;default:if(!l)for(p=1,l=Array(c-1);p<c;p++)l[p-1]=arguments[p];u[h].fn.apply(u[h].context,l)}}return!0},o.prototype.on=function(t,e,r){return a(this,t,e,r,!1)},o.prototype.once=function(t,e,r){return a(this,t,e,r,!0)},o.prototype.removeListener=function(t,e,s,n){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return i(this,a),this;var o=this._events[a];if(o.fn)o.fn!==e||n&&!o.once||s&&o.context!==s||i(this,a);else{for(var l=0,h=[],u=o.length;l<u;l++)(o[l].fn!==e||n&&!o[l].once||s&&o[l].context!==s)&&h.push(o[l]);h.length?this._events[a]=1===h.length?h[0]:h:i(this,a)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&i(this,e)):(this._events=new s,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,t.exports=o},777:function(t){t.exports&&(t.exports=function(){function t(t,e){void 0===e&&(e=0);var r=t.charCodeAt(e);if(55296<=r&&r<=56319&&e<t.length-1){var s=r,n=t.charCodeAt(e+1);return 56320<=n&&n<=57343?(s-55296)*1024+(n-56320)+65536:s}if(56320<=r&&r<=57343&&e>=1){var s=t.charCodeAt(e-1),n=r;return 55296<=s&&s<=56319?(s-55296)*1024+(n-56320)+65536:n}return r}function e(t){return 1536<=t&&t<=1541||1757==t||1807==t||2274==t||3406==t||69821==t||70082<=t&&t<=70083||72250==t||72326<=t&&t<=72329||73030==t?12:13==t?0:10==t?1:0<=t&&t<=9||11<=t&&t<=12||14<=t&&t<=31||127<=t&&t<=159||173==t||1564==t||6158==t||8203==t||8206<=t&&t<=8207||8232==t||8233==t||8234<=t&&t<=8238||8288<=t&&t<=8292||8293==t||8294<=t&&t<=8303||55296<=t&&t<=57343||65279==t||65520<=t&&t<=65528||65529<=t&&t<=65531||113824<=t&&t<=113827||119155<=t&&t<=119162||917504==t||917505==t||917506<=t&&t<=917535||917632<=t&&t<=917759||918e3<=t&&t<=921599?2:768<=t&&t<=879||1155<=t&&t<=1159||1160<=t&&t<=1161||1425<=t&&t<=1469||1471==t||1473<=t&&t<=1474||1476<=t&&t<=1477||1479==t||1552<=t&&t<=1562||1611<=t&&t<=1631||1648==t||1750<=t&&t<=1756||1759<=t&&t<=1764||1767<=t&&t<=1768||1770<=t&&t<=1773||1809==t||1840<=t&&t<=1866||1958<=t&&t<=1968||2027<=t&&t<=2035||2070<=t&&t<=2073||2075<=t&&t<=2083||2085<=t&&t<=2087||2089<=t&&t<=2093||2137<=t&&t<=2139||2260<=t&&t<=2273||2275<=t&&t<=2306||2362==t||2364==t||2369<=t&&t<=2376||2381==t||2385<=t&&t<=2391||2402<=t&&t<=2403||2433==t||2492==t||2494==t||2497<=t&&t<=2500||2509==t||2519==t||2530<=t&&t<=2531||2561<=t&&t<=2562||2620==t||2625<=t&&t<=2626||2631<=t&&t<=2632||2635<=t&&t<=2637||2641==t||2672<=t&&t<=2673||2677==t||2689<=t&&t<=2690||2748==t||2753<=t&&t<=2757||2759<=t&&t<=2760||2765==t||2786<=t&&t<=2787||2810<=t&&t<=2815||2817==t||2876==t||2878==t||2879==t||2881<=t&&t<=2884||2893==t||2902==t||2903==t||2914<=t&&t<=2915||2946==t||3006==t||3008==t||3021==t||3031==t||3072==t||3134<=t&&t<=3136||3142<=t&&t<=3144||3146<=t&&t<=3149||3157<=t&&t<=3158||3170<=t&&t<=3171||3201==t||3260==t||3263==t||3266==t||3270==t||3276<=t&&t<=3277||3285<=t&&t<=3286||3298<=t&&t<=3299||3328<=t&&t<=3329||3387<=t&&t<=3388||3390==t||3393<=t&&t<=3396||3405==t||3415==t||3426<=t&&t<=3427||3530==t||3535==t||3538<=t&&t<=3540||3542==t||3551==t||3633==t||3636<=t&&t<=3642||3655<=t&&t<=3662||3761==t||3764<=t&&t<=3769||3771<=t&&t<=3772||3784<=t&&t<=3789||3864<=t&&t<=3865||3893==t||3895==t||3897==t||3953<=t&&t<=3966||3968<=t&&t<=3972||3974<=t&&t<=3975||3981<=t&&t<=3991||3993<=t&&t<=4028||4038==t||4141<=t&&t<=4144||4146<=t&&t<=4151||4153<=t&&t<=4154||4157<=t&&t<=4158||4184<=t&&t<=4185||4190<=t&&t<=4192||4209<=t&&t<=4212||4226==t||4229<=t&&t<=4230||4237==t||4253==t||4957<=t&&t<=4959||5906<=t&&t<=5908||5938<=t&&t<=5940||5970<=t&&t<=5971||6002<=t&&t<=6003||6068<=t&&t<=6069||6071<=t&&t<=6077||6086==t||6089<=t&&t<=6099||6109==t||6155<=t&&t<=6157||6277<=t&&t<=6278||6313==t||6432<=t&&t<=6434||6439<=t&&t<=6440||6450==t||6457<=t&&t<=6459||6679<=t&&t<=6680||6683==t||6742==t||6744<=t&&t<=6750||6752==t||6754==t||6757<=t&&t<=6764||6771<=t&&t<=6780||6783==t||6832<=t&&t<=6845||6846==t||6912<=t&&t<=6915||6964==t||6966<=t&&t<=6970||6972==t||6978==t||7019<=t&&t<=7027||7040<=t&&t<=7041||7074<=t&&t<=7077||7080<=t&&t<=7081||7083<=t&&t<=7085||7142==t||7144<=t&&t<=7145||7149==t||7151<=t&&t<=7153||7212<=t&&t<=7219||7222<=t&&t<=7223||7376<=t&&t<=7378||7380<=t&&t<=7392||7394<=t&&t<=7400||7405==t||7412==t||7416<=t&&t<=7417||7616<=t&&t<=7673||7675<=t&&t<=7679||8204==t||8400<=t&&t<=8412||8413<=t&&t<=8416||8417==t||8418<=t&&t<=8420||8421<=t&&t<=8432||11503<=t&&t<=11505||11647==t||11744<=t&&t<=11775||12330<=t&&t<=12333||12334<=t&&t<=12335||12441<=t&&t<=12442||42607==t||42608<=t&&t<=42610||42612<=t&&t<=42621||42654<=t&&t<=42655||42736<=t&&t<=42737||43010==t||43014==t||43019==t||43045<=t&&t<=43046||43204<=t&&t<=43205||43232<=t&&t<=43249||43302<=t&&t<=43309||43335<=t&&t<=43345||43392<=t&&t<=43394||43443==t||43446<=t&&t<=43449||43452==t||43493==t||43561<=t&&t<=43566||43569<=t&&t<=43570||43573<=t&&t<=43574||43587==t||43596==t||43644==t||43696==t||43698<=t&&t<=43700||43703<=t&&t<=43704||43710<=t&&t<=43711||43713==t||43756<=t&&t<=43757||43766==t||44005==t||44008==t||44013==t||64286==t||65024<=t&&t<=65039||65056<=t&&t<=65071||65438<=t&&t<=65439||66045==t||66272==t||66422<=t&&t<=66426||68097<=t&&t<=68099||68101<=t&&t<=68102||68108<=t&&t<=68111||68152<=t&&t<=68154||68159==t||68325<=t&&t<=68326||69633==t||69688<=t&&t<=69702||69759<=t&&t<=69761||69811<=t&&t<=69814||69817<=t&&t<=69818||69888<=t&&t<=69890||69927<=t&&t<=69931||69933<=t&&t<=69940||70003==t||70016<=t&&t<=70017||70070<=t&&t<=70078||70090<=t&&t<=70092||70191<=t&&t<=70193||70196==t||70198<=t&&t<=70199||70206==t||70367==t||70371<=t&&t<=70378||70400<=t&&t<=70401||70460==t||70462==t||70464==t||70487==t||70502<=t&&t<=70508||70512<=t&&t<=70516||70712<=t&&t<=70719||70722<=t&&t<=70724||70726==t||70832==t||70835<=t&&t<=70840||70842==t||70845==t||70847<=t&&t<=70848||70850<=t&&t<=70851||71087==t||71090<=t&&t<=71093||71100<=t&&t<=71101||71103<=t&&t<=71104||71132<=t&&t<=71133||71219<=t&&t<=71226||71229==t||71231<=t&&t<=71232||71339==t||71341==t||71344<=t&&t<=71349||71351==t||71453<=t&&t<=71455||71458<=t&&t<=71461||71463<=t&&t<=71467||72193<=t&&t<=72198||72201<=t&&t<=72202||72243<=t&&t<=72248||72251<=t&&t<=72254||72263==t||72273<=t&&t<=72278||72281<=t&&t<=72283||72330<=t&&t<=72342||72344<=t&&t<=72345||72752<=t&&t<=72758||72760<=t&&t<=72765||72767==t||72850<=t&&t<=72871||72874<=t&&t<=72880||72882<=t&&t<=72883||72885<=t&&t<=72886||73009<=t&&t<=73014||73018==t||73020<=t&&t<=73021||73023<=t&&t<=73029||73031==t||92912<=t&&t<=92916||92976<=t&&t<=92982||94095<=t&&t<=94098||113821<=t&&t<=113822||119141==t||119143<=t&&t<=119145||119150<=t&&t<=119154||119163<=t&&t<=119170||119173<=t&&t<=119179||119210<=t&&t<=119213||119362<=t&&t<=119364||121344<=t&&t<=121398||121403<=t&&t<=121452||121461==t||121476==t||121499<=t&&t<=121503||121505<=t&&t<=121519||122880<=t&&t<=122886||122888<=t&&t<=122904||122907<=t&&t<=122913||122915<=t&&t<=122916||122918<=t&&t<=122922||125136<=t&&t<=125142||125252<=t&&t<=125258||917536<=t&&t<=917631||917760<=t&&t<=917999?3:127462<=t&&t<=127487?4:2307==t||2363==t||2366<=t&&t<=2368||2377<=t&&t<=2380||2382<=t&&t<=2383||2434<=t&&t<=2435||2495<=t&&t<=2496||2503<=t&&t<=2504||2507<=t&&t<=2508||2563==t||2622<=t&&t<=2624||2691==t||2750<=t&&t<=2752||2761==t||2763<=t&&t<=2764||2818<=t&&t<=2819||2880==t||2887<=t&&t<=2888||2891<=t&&t<=2892||3007==t||3009<=t&&t<=3010||3014<=t&&t<=3016||3018<=t&&t<=3020||3073<=t&&t<=3075||3137<=t&&t<=3140||3202<=t&&t<=3203||3262==t||3264<=t&&t<=3265||3267<=t&&t<=3268||3271<=t&&t<=3272||3274<=t&&t<=3275||3330<=t&&t<=3331||3391<=t&&t<=3392||3398<=t&&t<=3400||3402<=t&&t<=3404||3458<=t&&t<=3459||3536<=t&&t<=3537||3544<=t&&t<=3550||3570<=t&&t<=3571||3635==t||3763==t||3902<=t&&t<=3903||3967==t||4145==t||4155<=t&&t<=4156||4182<=t&&t<=4183||4228==t||6070==t||6078<=t&&t<=6085||6087<=t&&t<=6088||6435<=t&&t<=6438||6441<=t&&t<=6443||6448<=t&&t<=6449||6451<=t&&t<=6456||6681<=t&&t<=6682||6741==t||6743==t||6765<=t&&t<=6770||6916==t||6965==t||6971==t||6973<=t&&t<=6977||6979<=t&&t<=6980||7042==t||7073==t||7078<=t&&t<=7079||7082==t||7143==t||7146<=t&&t<=7148||7150==t||7154<=t&&t<=7155||7204<=t&&t<=7211||7220<=t&&t<=7221||7393==t||7410<=t&&t<=7411||7415==t||43043<=t&&t<=43044||43047==t||43136<=t&&t<=43137||43188<=t&&t<=43203||43346<=t&&t<=43347||43395==t||43444<=t&&t<=43445||43450<=t&&t<=43451||43453<=t&&t<=43456||43567<=t&&t<=43568||43571<=t&&t<=43572||43597==t||43755==t||43758<=t&&t<=43759||43765==t||44003<=t&&t<=44004||44006<=t&&t<=44007||44009<=t&&t<=44010||44012==t||69632==t||69634==t||69762==t||69808<=t&&t<=69810||69815<=t&&t<=69816||69932==t||70018==t||70067<=t&&t<=70069||70079<=t&&t<=70080||70188<=t&&t<=70190||70194<=t&&t<=70195||70197==t||70368<=t&&t<=70370||70402<=t&&t<=70403||70463==t||70465<=t&&t<=70468||70471<=t&&t<=70472||70475<=t&&t<=70477||70498<=t&&t<=70499||70709<=t&&t<=70711||70720<=t&&t<=70721||70725==t||70833<=t&&t<=70834||70841==t||70843<=t&&t<=70844||70846==t||70849==t||71088<=t&&t<=71089||71096<=t&&t<=71099||71102==t||71216<=t&&t<=71218||71227<=t&&t<=71228||71230==t||71340==t||71342<=t&&t<=71343||71350==t||71456<=t&&t<=71457||71462==t||72199<=t&&t<=72200||72249==t||72279<=t&&t<=72280||72343==t||72751==t||72766==t||72873==t||72881==t||72884==t||94033<=t&&t<=94078||119142==t||119149==t?5:4352<=t&&t<=4447||43360<=t&&t<=43388?6:4448<=t&&t<=4519||55216<=t&&t<=55238?7:4520<=t&&t<=4607||55243<=t&&t<=55291?8:44032==t||44060==t||44088==t||44116==t||44144==t||44172==t||44200==t||44228==t||44256==t||44284==t||44312==t||44340==t||44368==t||44396==t||44424==t||44452==t||44480==t||44508==t||44536==t||44564==t||44592==t||44620==t||44648==t||44676==t||44704==t||44732==t||44760==t||44788==t||44816==t||44844==t||44872==t||44900==t||44928==t||44956==t||44984==t||45012==t||45040==t||45068==t||45096==t||45124==t||45152==t||45180==t||45208==t||45236==t||45264==t||45292==t||45320==t||45348==t||45376==t||45404==t||45432==t||45460==t||45488==t||45516==t||45544==t||45572==t||45600==t||45628==t||45656==t||45684==t||45712==t||45740==t||45768==t||45796==t||45824==t||45852==t||45880==t||45908==t||45936==t||45964==t||45992==t||46020==t||46048==t||46076==t||46104==t||46132==t||46160==t||46188==t||46216==t||46244==t||46272==t||46300==t||46328==t||46356==t||46384==t||46412==t||46440==t||46468==t||46496==t||46524==t||46552==t||46580==t||46608==t||46636==t||46664==t||46692==t||46720==t||46748==t||46776==t||46804==t||46832==t||46860==t||46888==t||46916==t||46944==t||46972==t||47e3==t||47028==t||47056==t||47084==t||47112==t||47140==t||47168==t||47196==t||47224==t||47252==t||47280==t||47308==t||47336==t||47364==t||47392==t||47420==t||47448==t||47476==t||47504==t||47532==t||47560==t||47588==t||47616==t||47644==t||47672==t||47700==t||47728==t||47756==t||47784==t||47812==t||47840==t||47868==t||47896==t||47924==t||47952==t||47980==t||48008==t||48036==t||48064==t||48092==t||48120==t||48148==t||48176==t||48204==t||48232==t||48260==t||48288==t||48316==t||48344==t||48372==t||48400==t||48428==t||48456==t||48484==t||48512==t||48540==t||48568==t||48596==t||48624==t||48652==t||48680==t||48708==t||48736==t||48764==t||48792==t||48820==t||48848==t||48876==t||48904==t||48932==t||48960==t||48988==t||49016==t||49044==t||49072==t||49100==t||49128==t||49156==t||49184==t||49212==t||49240==t||49268==t||49296==t||49324==t||49352==t||49380==t||49408==t||49436==t||49464==t||49492==t||49520==t||49548==t||49576==t||49604==t||49632==t||49660==t||49688==t||49716==t||49744==t||49772==t||49800==t||49828==t||49856==t||49884==t||49912==t||49940==t||49968==t||49996==t||50024==t||50052==t||50080==t||50108==t||50136==t||50164==t||50192==t||50220==t||50248==t||50276==t||50304==t||50332==t||50360==t||50388==t||50416==t||50444==t||50472==t||50500==t||50528==t||50556==t||50584==t||50612==t||50640==t||50668==t||50696==t||50724==t||50752==t||50780==t||50808==t||50836==t||50864==t||50892==t||50920==t||50948==t||50976==t||51004==t||51032==t||51060==t||51088==t||51116==t||51144==t||51172==t||51200==t||51228==t||51256==t||51284==t||51312==t||51340==t||51368==t||51396==t||51424==t||51452==t||51480==t||51508==t||51536==t||51564==t||51592==t||51620==t||51648==t||51676==t||51704==t||51732==t||51760==t||51788==t||51816==t||51844==t||51872==t||51900==t||51928==t||51956==t||51984==t||52012==t||52040==t||52068==t||52096==t||52124==t||52152==t||52180==t||52208==t||52236==t||52264==t||52292==t||52320==t||52348==t||52376==t||52404==t||52432==t||52460==t||52488==t||52516==t||52544==t||52572==t||52600==t||52628==t||52656==t||52684==t||52712==t||52740==t||52768==t||52796==t||52824==t||52852==t||52880==t||52908==t||52936==t||52964==t||52992==t||53020==t||53048==t||53076==t||53104==t||53132==t||53160==t||53188==t||53216==t||53244==t||53272==t||53300==t||53328==t||53356==t||53384==t||53412==t||53440==t||53468==t||53496==t||53524==t||53552==t||53580==t||53608==t||53636==t||53664==t||53692==t||53720==t||53748==t||53776==t||53804==t||53832==t||53860==t||53888==t||53916==t||53944==t||53972==t||54e3==t||54028==t||54056==t||54084==t||54112==t||54140==t||54168==t||54196==t||54224==t||54252==t||54280==t||54308==t||54336==t||54364==t||54392==t||54420==t||54448==t||54476==t||54504==t||54532==t||54560==t||54588==t||54616==t||54644==t||54672==t||54700==t||54728==t||54756==t||54784==t||54812==t||54840==t||54868==t||54896==t||54924==t||54952==t||54980==t||55008==t||55036==t||55064==t||55092==t||55120==t||55148==t||55176==t?9:44033<=t&&t<=44059||44061<=t&&t<=44087||44089<=t&&t<=44115||44117<=t&&t<=44143||44145<=t&&t<=44171||44173<=t&&t<=44199||44201<=t&&t<=44227||44229<=t&&t<=44255||44257<=t&&t<=44283||44285<=t&&t<=44311||44313<=t&&t<=44339||44341<=t&&t<=44367||44369<=t&&t<=44395||44397<=t&&t<=44423||44425<=t&&t<=44451||44453<=t&&t<=44479||44481<=t&&t<=44507||44509<=t&&t<=44535||44537<=t&&t<=44563||44565<=t&&t<=44591||44593<=t&&t<=44619||44621<=t&&t<=44647||44649<=t&&t<=44675||44677<=t&&t<=44703||44705<=t&&t<=44731||44733<=t&&t<=44759||44761<=t&&t<=44787||44789<=t&&t<=44815||44817<=t&&t<=44843||44845<=t&&t<=44871||44873<=t&&t<=44899||44901<=t&&t<=44927||44929<=t&&t<=44955||44957<=t&&t<=44983||44985<=t&&t<=45011||45013<=t&&t<=45039||45041<=t&&t<=45067||45069<=t&&t<=45095||45097<=t&&t<=45123||45125<=t&&t<=45151||45153<=t&&t<=45179||45181<=t&&t<=45207||45209<=t&&t<=45235||45237<=t&&t<=45263||45265<=t&&t<=45291||45293<=t&&t<=45319||45321<=t&&t<=45347||45349<=t&&t<=45375||45377<=t&&t<=45403||45405<=t&&t<=45431||45433<=t&&t<=45459||45461<=t&&t<=45487||45489<=t&&t<=45515||45517<=t&&t<=45543||45545<=t&&t<=45571||45573<=t&&t<=45599||45601<=t&&t<=45627||45629<=t&&t<=45655||45657<=t&&t<=45683||45685<=t&&t<=45711||45713<=t&&t<=45739||45741<=t&&t<=45767||45769<=t&&t<=45795||45797<=t&&t<=45823||45825<=t&&t<=45851||45853<=t&&t<=45879||45881<=t&&t<=45907||45909<=t&&t<=45935||45937<=t&&t<=45963||45965<=t&&t<=45991||45993<=t&&t<=46019||46021<=t&&t<=46047||46049<=t&&t<=46075||46077<=t&&t<=46103||46105<=t&&t<=46131||46133<=t&&t<=46159||46161<=t&&t<=46187||46189<=t&&t<=46215||46217<=t&&t<=46243||46245<=t&&t<=46271||46273<=t&&t<=46299||46301<=t&&t<=46327||46329<=t&&t<=46355||46357<=t&&t<=46383||46385<=t&&t<=46411||46413<=t&&t<=46439||46441<=t&&t<=46467||46469<=t&&t<=46495||46497<=t&&t<=46523||46525<=t&&t<=46551||46553<=t&&t<=46579||46581<=t&&t<=46607||46609<=t&&t<=46635||46637<=t&&t<=46663||46665<=t&&t<=46691||46693<=t&&t<=46719||46721<=t&&t<=46747||46749<=t&&t<=46775||46777<=t&&t<=46803||46805<=t&&t<=46831||46833<=t&&t<=46859||46861<=t&&t<=46887||46889<=t&&t<=46915||46917<=t&&t<=46943||46945<=t&&t<=46971||46973<=t&&t<=46999||47001<=t&&t<=47027||47029<=t&&t<=47055||47057<=t&&t<=47083||47085<=t&&t<=47111||47113<=t&&t<=47139||47141<=t&&t<=47167||47169<=t&&t<=47195||47197<=t&&t<=47223||47225<=t&&t<=47251||47253<=t&&t<=47279||47281<=t&&t<=47307||47309<=t&&t<=47335||47337<=t&&t<=47363||47365<=t&&t<=47391||47393<=t&&t<=47419||47421<=t&&t<=47447||47449<=t&&t<=47475||47477<=t&&t<=47503||47505<=t&&t<=47531||47533<=t&&t<=47559||47561<=t&&t<=47587||47589<=t&&t<=47615||47617<=t&&t<=47643||47645<=t&&t<=47671||47673<=t&&t<=47699||47701<=t&&t<=47727||47729<=t&&t<=47755||47757<=t&&t<=47783||47785<=t&&t<=47811||47813<=t&&t<=47839||47841<=t&&t<=47867||47869<=t&&t<=47895||47897<=t&&t<=47923||47925<=t&&t<=47951||47953<=t&&t<=47979||47981<=t&&t<=48007||48009<=t&&t<=48035||48037<=t&&t<=48063||48065<=t&&t<=48091||48093<=t&&t<=48119||48121<=t&&t<=48147||48149<=t&&t<=48175||48177<=t&&t<=48203||48205<=t&&t<=48231||48233<=t&&t<=48259||48261<=t&&t<=48287||48289<=t&&t<=48315||48317<=t&&t<=48343||48345<=t&&t<=48371||48373<=t&&t<=48399||48401<=t&&t<=48427||48429<=t&&t<=48455||48457<=t&&t<=48483||48485<=t&&t<=48511||48513<=t&&t<=48539||48541<=t&&t<=48567||48569<=t&&t<=48595||48597<=t&&t<=48623||48625<=t&&t<=48651||48653<=t&&t<=48679||48681<=t&&t<=48707||48709<=t&&t<=48735||48737<=t&&t<=48763||48765<=t&&t<=48791||48793<=t&&t<=48819||48821<=t&&t<=48847||48849<=t&&t<=48875||48877<=t&&t<=48903||48905<=t&&t<=48931||48933<=t&&t<=48959||48961<=t&&t<=48987||48989<=t&&t<=49015||49017<=t&&t<=49043||49045<=t&&t<=49071||49073<=t&&t<=49099||49101<=t&&t<=49127||49129<=t&&t<=49155||49157<=t&&t<=49183||49185<=t&&t<=49211||49213<=t&&t<=49239||49241<=t&&t<=49267||49269<=t&&t<=49295||49297<=t&&t<=49323||49325<=t&&t<=49351||49353<=t&&t<=49379||49381<=t&&t<=49407||49409<=t&&t<=49435||49437<=t&&t<=49463||49465<=t&&t<=49491||49493<=t&&t<=49519||49521<=t&&t<=49547||49549<=t&&t<=49575||49577<=t&&t<=49603||49605<=t&&t<=49631||49633<=t&&t<=49659||49661<=t&&t<=49687||49689<=t&&t<=49715||49717<=t&&t<=49743||49745<=t&&t<=49771||49773<=t&&t<=49799||49801<=t&&t<=49827||49829<=t&&t<=49855||49857<=t&&t<=49883||49885<=t&&t<=49911||49913<=t&&t<=49939||49941<=t&&t<=49967||49969<=t&&t<=49995||49997<=t&&t<=50023||50025<=t&&t<=50051||50053<=t&&t<=50079||50081<=t&&t<=50107||50109<=t&&t<=50135||50137<=t&&t<=50163||50165<=t&&t<=50191||50193<=t&&t<=50219||50221<=t&&t<=50247||50249<=t&&t<=50275||50277<=t&&t<=50303||50305<=t&&t<=50331||50333<=t&&t<=50359||50361<=t&&t<=50387||50389<=t&&t<=50415||50417<=t&&t<=50443||50445<=t&&t<=50471||50473<=t&&t<=50499||50501<=t&&t<=50527||50529<=t&&t<=50555||50557<=t&&t<=50583||50585<=t&&t<=50611||50613<=t&&t<=50639||50641<=t&&t<=50667||50669<=t&&t<=50695||50697<=t&&t<=50723||50725<=t&&t<=50751||50753<=t&&t<=50779||50781<=t&&t<=50807||50809<=t&&t<=50835||50837<=t&&t<=50863||50865<=t&&t<=50891||50893<=t&&t<=50919||50921<=t&&t<=50947||50949<=t&&t<=50975||50977<=t&&t<=51003||51005<=t&&t<=51031||51033<=t&&t<=51059||51061<=t&&t<=51087||51089<=t&&t<=51115||51117<=t&&t<=51143||51145<=t&&t<=51171||51173<=t&&t<=51199||51201<=t&&t<=51227||51229<=t&&t<=51255||51257<=t&&t<=51283||51285<=t&&t<=51311||51313<=t&&t<=51339||51341<=t&&t<=51367||51369<=t&&t<=51395||51397<=t&&t<=51423||51425<=t&&t<=51451||51453<=t&&t<=51479||51481<=t&&t<=51507||51509<=t&&t<=51535||51537<=t&&t<=51563||51565<=t&&t<=51591||51593<=t&&t<=51619||51621<=t&&t<=51647||51649<=t&&t<=51675||51677<=t&&t<=51703||51705<=t&&t<=51731||51733<=t&&t<=51759||51761<=t&&t<=51787||51789<=t&&t<=51815||51817<=t&&t<=51843||51845<=t&&t<=51871||51873<=t&&t<=51899||51901<=t&&t<=51927||51929<=t&&t<=51955||51957<=t&&t<=51983||51985<=t&&t<=52011||52013<=t&&t<=52039||52041<=t&&t<=52067||52069<=t&&t<=52095||52097<=t&&t<=52123||52125<=t&&t<=52151||52153<=t&&t<=52179||52181<=t&&t<=52207||52209<=t&&t<=52235||52237<=t&&t<=52263||52265<=t&&t<=52291||52293<=t&&t<=52319||52321<=t&&t<=52347||52349<=t&&t<=52375||52377<=t&&t<=52403||52405<=t&&t<=52431||52433<=t&&t<=52459||52461<=t&&t<=52487||52489<=t&&t<=52515||52517<=t&&t<=52543||52545<=t&&t<=52571||52573<=t&&t<=52599||52601<=t&&t<=52627||52629<=t&&t<=52655||52657<=t&&t<=52683||52685<=t&&t<=52711||52713<=t&&t<=52739||52741<=t&&t<=52767||52769<=t&&t<=52795||52797<=t&&t<=52823||52825<=t&&t<=52851||52853<=t&&t<=52879||52881<=t&&t<=52907||52909<=t&&t<=52935||52937<=t&&t<=52963||52965<=t&&t<=52991||52993<=t&&t<=53019||53021<=t&&t<=53047||53049<=t&&t<=53075||53077<=t&&t<=53103||53105<=t&&t<=53131||53133<=t&&t<=53159||53161<=t&&t<=53187||53189<=t&&t<=53215||53217<=t&&t<=53243||53245<=t&&t<=53271||53273<=t&&t<=53299||53301<=t&&t<=53327||53329<=t&&t<=53355||53357<=t&&t<=53383||53385<=t&&t<=53411||53413<=t&&t<=53439||53441<=t&&t<=53467||53469<=t&&t<=53495||53497<=t&&t<=53523||53525<=t&&t<=53551||53553<=t&&t<=53579||53581<=t&&t<=53607||53609<=t&&t<=53635||53637<=t&&t<=53663||53665<=t&&t<=53691||53693<=t&&t<=53719||53721<=t&&t<=53747||53749<=t&&t<=53775||53777<=t&&t<=53803||53805<=t&&t<=53831||53833<=t&&t<=53859||53861<=t&&t<=53887||53889<=t&&t<=53915||53917<=t&&t<=53943||53945<=t&&t<=53971||53973<=t&&t<=53999||54001<=t&&t<=54027||54029<=t&&t<=54055||54057<=t&&t<=54083||54085<=t&&t<=54111||54113<=t&&t<=54139||54141<=t&&t<=54167||54169<=t&&t<=54195||54197<=t&&t<=54223||54225<=t&&t<=54251||54253<=t&&t<=54279||54281<=t&&t<=54307||54309<=t&&t<=54335||54337<=t&&t<=54363||54365<=t&&t<=54391||54393<=t&&t<=54419||54421<=t&&t<=54447||54449<=t&&t<=54475||54477<=t&&t<=54503||54505<=t&&t<=54531||54533<=t&&t<=54559||54561<=t&&t<=54587||54589<=t&&t<=54615||54617<=t&&t<=54643||54645<=t&&t<=54671||54673<=t&&t<=54699||54701<=t&&t<=54727||54729<=t&&t<=54755||54757<=t&&t<=54783||54785<=t&&t<=54811||54813<=t&&t<=54839||54841<=t&&t<=54867||54869<=t&&t<=54895||54897<=t&&t<=54923||54925<=t&&t<=54951||54953<=t&&t<=54979||54981<=t&&t<=55007||55009<=t&&t<=55035||55037<=t&&t<=55063||55065<=t&&t<=55091||55093<=t&&t<=55119||55121<=t&&t<=55147||55149<=t&&t<=55175||55177<=t&&t<=55203?10:9757==t||9977==t||9994<=t&&t<=9997||127877==t||127938<=t&&t<=127940||127943==t||127946<=t&&t<=127948||128066<=t&&t<=128067||128070<=t&&t<=128080||128110==t||128112<=t&&t<=128120||128124==t||128129<=t&&t<=128131||128133<=t&&t<=128135||128170==t||128372<=t&&t<=128373||128378==t||128400==t||128405<=t&&t<=128406||128581<=t&&t<=128583||128587<=t&&t<=128591||128675==t||128692<=t&&t<=128694||128704==t||128716==t||129304<=t&&t<=129308||129310<=t&&t<=129311||129318==t||129328<=t&&t<=129337||129341<=t&&t<=129342||129489<=t&&t<=129501?13:127995<=t&&t<=127999?14:8205==t?15:9792==t||9794==t||9877<=t&&t<=9878||9992==t||10084==t||127752==t||127806==t||127859==t||127891==t||127908==t||127912==t||127979==t||127981==t||128139==t||128187<=t&&t<=128188||128295==t||128300==t||128488==t||128640==t||128658==t?16:128102<=t&&t<=128105?17:11}return this.nextBreak=function(r,s){if(void 0===s&&(s=0),s<0)return 0;if(s>=r.length-1)return r.length;for(var n,a=e(t(r,s)),i=[],o=s+1;o<r.length;o++)if(n=o-1,!(55296<=r.charCodeAt(n)&&56319>=r.charCodeAt(n)&&56320<=r.charCodeAt(n+1)&&57343>=r.charCodeAt(n+1))){var l=e(t(r,o));if(function(t,e,r){var s=[t].concat(e).concat([r]),n=s[s.length-2],a=s.lastIndexOf(14);if(a>1&&s.slice(1,a).every((function(t){return 3==t}))&&-1==[3,13,17].indexOf(t))return 2;var i=s.lastIndexOf(4);if(i>0&&s.slice(1,i).every((function(t){return 4==t}))&&-1==[12,4].indexOf(n))if(s.filter((function(t){return 4==t})).length%2==1)return 3;else return 4;if(0==n&&1==r)return 0;if(2==n||0==n||1==n)if(14==r&&e.every((function(t){return 3==t})))return 2;else return 1;if(2==r||0==r||1==r)return 1;if(6==n&&(6==r||7==r||9==r||10==r))return 0;if((9==n||7==n)&&(7==r||8==r))return 0;else if((10==n||8==n)&&8==r)return 0;else if(3==r||15==r)return 0;else if(5==r)return 0;else if(12==n)return 0;var o=-1!=s.indexOf(3)?s.lastIndexOf(3)-1:s.length-2;return-1!=[13,17].indexOf(s[o])&&s.slice(o+1,-1).every((function(t){return 3==t}))&&14==r||15==n&&-1!=[16,17].indexOf(r)?0:-1!=e.indexOf(4)?2:+(4!=n||4!=r)}(a,i,l))return o;i.push(l)}return r.length},this.splitGraphemes=function(t){for(var e,r=[],s=0;(e=this.nextBreak(t,s))<t.length;)r.push(t.slice(s,e)),s=e;return s<t.length&&r.push(t.slice(s)),r},this.iterateGraphemes=function(t){var e=0,r={next:function(){var r,s;return(s=this.nextBreak(t,e))<t.length?(r=t.slice(e,s),e=s,{value:r,done:!1}):e<t.length?(r=t.slice(e),e=t.length,{value:r,done:!1}):{value:void 0,done:!0}}.bind(this)};return"undefined"!=typeof Symbol&&Symbol.iterator&&(r[Symbol.iterator]=function(){return r}),r},this.countGraphemes=function(t){for(var e,r=0,s=0;(e=this.nextBreak(t,s))<t.length;)s=e,r++;return s<t.length&&r++,r},this})},254:function(t){t.exports=function(t){return!!t&&"string"!=typeof t&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},139:function(t){t.exports=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]},933:function(t,e,r){"use strict";var s=r(254),n=Array.prototype.concat,a=Array.prototype.slice,i=t.exports=function(t){for(var e=[],r=0,i=t.length;r<i;r++){var o=t[r];s(o)?e=n.call(e,a.call(o)):e.push(o)}return e};i.wrap=function(t){return function(){return t(i(arguments))}}},304:function(t,e,r){var s=r(235),n=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function i(){this._array=[],this._set=a?new Map:Object.create(null)}i.fromArray=function(t,e){for(var r=new i,s=0,n=t.length;s<n;s++)r.add(t[s],e);return r},i.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(t,e){var r=a?t:s.toSetString(t),i=a?this.has(t):n.call(this._set,r),o=this._array.length;(!i||e)&&this._array.push(t),i||(a?this._set.set(t,o):this._set[r]=o)},i.prototype.has=function(t){if(a)return this._set.has(t);var e=s.toSetString(t);return n.call(this._set,e)},i.prototype.indexOf=function(t){if(a){var e=this._set.get(t);if(e>=0)return e}else{var r=s.toSetString(t);if(n.call(this._set,r))return this._set[r]}throw Error('"'+t+'" is not in the set.')},i.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw Error("No element indexed by "+t)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i},258:function(t,e,r){var s=r(249);e.encode=function(t){var e,r="",n=t<0?(-t<<1)+1:(t<<1)+0;do{e=31&n,(n>>>=5)>0&&(e|=32),r+=s.encode(e)}while(n>0);return r},e.decode=function(t,e,r){var n,a,i,o,l=t.length,h=0,u=0;do{if(e>=l)throw Error("Expected more digits in base 64 VLQ value.");if(-1===(o=s.decode(t.charCodeAt(e++))))throw Error("Invalid base64 digit: "+t.charAt(e-1));i=!!(32&o),o&=31,h+=o<<u,u+=5}while(i);a=(n=h)>>1,r.value=(1&n)==1?-a:a,r.rest=e}},249:function(t,e){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(t){if(0<=t&&t<r.length)return r[t];throw TypeError("Must be between 0 and 63: "+t)},e.decode=function(t){return 65<=t&&t<=90?t-65:97<=t&&t<=122?t-97+26:48<=t&&t<=57?t-48+52:43==t?62:47==t?63:-1}},696:function(t,e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(t,r,s,n){if(0===r.length)return-1;var a=function t(r,s,n,a,i,o){var l=Math.floor((s-r)/2)+r,h=i(n,a[l],!0);return 0===h?l:h>0?s-l>1?t(l,s,n,a,i,o):o==e.LEAST_UPPER_BOUND?s<a.length?s:-1:l:l-r>1?t(r,l,n,a,i,o):o==e.LEAST_UPPER_BOUND?l:r<0?-1:r}(-1,r.length,t,r,s,n||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===s(r[a],r[a-1],!0);)--a;return a}},881:function(t,e,r){var s=r(235);function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(t,e){this._array.forEach(t,e)},n.prototype.add=function(t){var e,r,n,a,i;(e=this._last,r=e.generatedLine,n=t.generatedLine,a=e.generatedColumn,i=t.generatedColumn,n>r||n==r&&i>=a||0>=s.compareByGeneratedPositionsInflated(e,t))?this._last=t:this._sorted=!1,this._array.push(t)},n.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n},32:function(t,e){function r(t){function e(t,e,r){var s=t[e];t[e]=t[r],t[r]=s}return function t(r,s,n,a){if(n<a){var i=Math.round(n+Math.random()*(a-n)),o=n-1;e(r,i,a);for(var l=r[a],h=n;h<a;h++)0>=s(r[h],l,!1)&&e(r,o+=1,h);e(r,o+1,h);var u=o+1;t(r,s,n,u-1),t(r,s,u+1,a)}}}let s=new WeakMap;e.quickSort=function(t,e,n=0){let a=s.get(e);if(void 0===a){let t;t=r.toString(),a=Function(`return ${t}`)()(e),s.set(e,a)}a(t,e,n,t.length-1)}},40:function(t,e,r){var s=r(235),n=r(696),a=r(304).ArraySet,i=r(258),o=r(32).quickSort;function l(t,e){var r=t;return"string"==typeof t&&(r=s.parseSourceMapInput(t)),null!=r.sections?new d(r,e):new h(r,e)}function h(t,e){var r=t;"string"==typeof t&&(r=s.parseSourceMapInput(t));var n=s.getArg(r,"version"),i=s.getArg(r,"sources"),o=s.getArg(r,"names",[]),l=s.getArg(r,"sourceRoot",null),h=s.getArg(r,"sourcesContent",null),u=s.getArg(r,"mappings"),c=s.getArg(r,"file",null);if(n!=this._version)throw Error("Unsupported version: "+n);l&&(l=s.normalize(l)),i=i.map(String).map(s.normalize).map((function(t){return l&&s.isAbsolute(l)&&s.isAbsolute(t)?s.relative(l,t):t})),this._names=a.fromArray(o.map(String),!0),this._sources=a.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(t){return s.computeSourceURL(l,t,e)})),this.sourceRoot=l,this.sourcesContent=h,this._mappings=u,this._sourceMapURL=e,this.file=c}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}l.fromSourceMap=function(t,e){return h.fromSourceMap(t,e)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(t,e){var r=t.charAt(e);return";"===r||","===r},l.prototype._parseMappings=function(t,e){throw Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(t,e,r){switch(r||l.GENERATED_ORDER){case l.GENERATED_ORDER:n=this._generatedMappings;break;case l.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}for(var n,a=this.sourceRoot,i=t.bind(e||null),o=this._names,h=this._sources,u=this._sourceMapURL,c=0,p=n.length;c<p;c++){var d=n[c],y=null===d.source?null:h.at(d.source);null!==y&&(y=s.computeSourceURL(a,y,u)),i({source:y,generatedLine:d.generatedLine,generatedColumn:d.generatedColumn,originalLine:d.originalLine,originalColumn:d.originalColumn,name:null===d.name?null:o.at(d.name)})}},l.prototype.allGeneratedPositionsFor=function(t){var e=s.getArg(t,"line"),r={source:s.getArg(t,"source"),originalLine:e,originalColumn:s.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var a=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(i>=0){var o=this._originalMappings[i];if(void 0===t.column)for(var l=o.originalLine;o&&o.originalLine===l;)a.push({line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i];else for(var h=o.originalColumn;o&&o.originalLine===e&&o.originalColumn==h;)a.push({line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}return a},e.SourceMapConsumer=l,h.prototype=Object.create(l.prototype),h.prototype.consumer=l,h.prototype._findSourceIndex=function(t){var e,r=t;if(null!=this.sourceRoot&&(r=s.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(e=0;e<this._absoluteSources.length;++e)if(this._absoluteSources[e]==t)return e;return-1},h.fromSourceMap=function(t,e){var r=Object.create(h.prototype),n=r._names=a.fromArray(t._names.toArray(),!0),i=r._sources=a.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=e,r._absoluteSources=r._sources.toArray().map((function(t){return s.computeSourceURL(r.sourceRoot,t,e)}));for(var l=t._mappings.toArray().slice(),c=r.__generatedMappings=[],p=r.__originalMappings=[],d=0,y=l.length;d<y;d++){var x=l[d],g=new u;g.generatedLine=x.generatedLine,g.generatedColumn=x.generatedColumn,x.source&&(g.source=i.indexOf(x.source),g.originalLine=x.originalLine,g.originalColumn=x.originalColumn,x.name&&(g.name=n.indexOf(x.name)),p.push(g)),c.push(g)}return o(r.__originalMappings,s.compareByOriginalPositions),r},h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});let c=s.compareByGeneratedPositionsDeflatedNoLine;function p(t,e){let r=t.length,s=t.length-e;if(!(s<=1))if(2==s){let r=t[e],s=t[e+1];c(r,s)>0&&(t[e]=s,t[e+1]=r)}else if(s<20)for(let s=e;s<r;s++)for(let r=s;r>e;r--){let e=t[r-1],s=t[r];if(0>=c(e,s))break;t[r-1]=s,t[r]=e}else o(t,c,e)}function d(t,e){var r=t;"string"==typeof t&&(r=s.parseSourceMapInput(t));var n=s.getArg(r,"version"),i=s.getArg(r,"sections");if(n!=this._version)throw Error("Unsupported version: "+n);this._sources=new a,this._names=new a;var o={line:-1,column:0};this._sections=i.map((function(t){if(t.url)throw Error("Support for url field in sections not implemented.");var r=s.getArg(t,"offset"),n=s.getArg(r,"line"),a=s.getArg(r,"column");if(n<o.line||n===o.line&&a<o.column)throw Error("Section offsets must be ordered and non-overlapping.");return o=r,{generatedOffset:{generatedLine:n+1,generatedColumn:a+1},consumer:new l(s.getArg(t,"map"),e)}}))}h.prototype._parseMappings=function(t,e){var r,n,a,l,h=1,c=0,d=0,y=0,x=0,g=0,f=t.length,m=0,b={},_=[],A=[];let M=0;for(;m<f;)if(";"===t.charAt(m))h++,m++,c=0,p(A,M),M=A.length;else if(","===t.charAt(m))m++;else{for((r=new u).generatedLine=h,a=m;a<f&&!this._charIsMappingSeparator(t,a);a++);for(t.slice(m,a),n=[];m<a;)i.decode(t,m,b),l=b.value,m=b.rest,n.push(l);if(2===n.length)throw Error("Found a source, but no line and column");if(3===n.length)throw Error("Found a source and line, but no column");if(r.generatedColumn=c+n[0],c=r.generatedColumn,n.length>1&&(r.source=x+n[1],x+=n[1],r.originalLine=d+n[2],d=r.originalLine,r.originalLine+=1,r.originalColumn=y+n[3],y=r.originalColumn,n.length>4&&(r.name=g+n[4],g+=n[4])),A.push(r),"number"==typeof r.originalLine){let t=r.source;for(;_.length<=t;)_.push(null);null===_[t]&&(_[t]=[]),_[t].push(r)}}p(A,M),this.__generatedMappings=A;for(var w=0;w<_.length;w++)null!=_[w]&&o(_[w],s.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(..._)},h.prototype._findMapping=function(t,e,r,s,a,i){if(t[r]<=0)throw TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[s]<0)throw TypeError("Column must be greater than or equal to 0, got "+t[s]);return n.search(t,e,a,i)},h.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var e=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(e.generatedLine===r.generatedLine){e.lastGeneratedColumn=r.generatedColumn-1;continue}}e.lastGeneratedColumn=1/0}},h.prototype.originalPositionFor=function(t){var e={generatedLine:s.getArg(t,"line"),generatedColumn:s.getArg(t,"column")},r=this._findMapping(e,this._generatedMappings,"generatedLine","generatedColumn",s.compareByGeneratedPositionsDeflated,s.getArg(t,"bias",l.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===e.generatedLine){var a=s.getArg(n,"source",null);null!==a&&(a=this._sources.at(a),a=s.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var i=s.getArg(n,"name",null);return null!==i&&(i=this._names.at(i)),{source:a,line:s.getArg(n,"originalLine",null),column:s.getArg(n,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},h.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(t){return null==t}))},h.prototype.sourceContentFor=function(t,e){if(!this.sourcesContent)return null;var r,n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var a=t;if(null!=this.sourceRoot&&(a=s.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(r=s.urlParse(this.sourceRoot))){var i=a.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!r.path||"/"==r.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(e)return null;throw Error('"'+a+'" is not in the SourceMap.')},h.prototype.generatedPositionFor=function(t){var e=s.getArg(t,"source");if((e=this._findSourceIndex(e))<0)return{line:null,column:null,lastColumn:null};var r={source:e,originalLine:s.getArg(t,"line"),originalColumn:s.getArg(t,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(t,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var a=this._originalMappings[n];if(a.source===r.source)return{line:s.getArg(a,"generatedLine",null),column:s.getArg(a,"generatedColumn",null),lastColumn:s.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(l.prototype),d.prototype.constructor=l,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}}),d.prototype.originalPositionFor=function(t){var e={generatedLine:s.getArg(t,"line"),generatedColumn:s.getArg(t,"column")},r=n.search(e,this._sections,(function(t,e){var r=t.generatedLine-e.generatedOffset.generatedLine;return r||t.generatedColumn-e.generatedOffset.generatedColumn})),a=this._sections[r];return a?a.consumer.originalPositionFor({line:e.generatedLine-(a.generatedOffset.generatedLine-1),column:e.generatedColumn-(a.generatedOffset.generatedLine===e.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(t){return t.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(t,e){for(var r=0;r<this._sections.length;r++){var s=this._sections[r].consumer.sourceContentFor(t,!0);if(s||""===s)return s}if(e)return null;throw Error('"'+t+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(t){for(var e=0;e<this._sections.length;e++){var r=this._sections[e];if(-1!==r.consumer._findSourceIndex(s.getArg(t,"source"))){var n=r.consumer.generatedPositionFor(t);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(t,e){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],a=n.consumer._generatedMappings,i=0;i<a.length;i++){var l=a[i],h=n.consumer._sources.at(l.source);null!==h&&(h=s.computeSourceURL(n.consumer.sourceRoot,h,this._sourceMapURL)),this._sources.add(h),h=this._sources.indexOf(h);var u=null;l.name&&(u=n.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u));var c={source:h,generatedLine:l.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(n.generatedOffset.generatedLine===l.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(c),"number"==typeof c.originalLine&&this.__originalMappings.push(c)}o(this.__generatedMappings,s.compareByGeneratedPositionsDeflated),o(this.__originalMappings,s.compareByOriginalPositions)}},591:function(t,e,r){var s=r(258),n=r(235),a=r(304).ArraySet,i=r(881).MappingList;function o(t){t||(t={}),this._file=n.getArg(t,"file",null),this._sourceRoot=n.getArg(t,"sourceRoot",null),this._skipValidation=n.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=n.getArg(t,"ignoreInvalidMapping",!1),this._sources=new a,this._names=new a,this._mappings=new i,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(t,e){var r=t.sourceRoot,s=new o(Object.assign(e||{},{file:t.file,sourceRoot:r}));return t.eachMapping((function(t){var e={generated:{line:t.generatedLine,column:t.generatedColumn}};null!=t.source&&(e.source=t.source,null!=r&&(e.source=n.relative(r,e.source)),e.original={line:t.originalLine,column:t.originalColumn},null!=t.name&&(e.name=t.name)),s.addMapping(e)})),t.sources.forEach((function(e){var a=e;null!==r&&(a=n.relative(r,e)),s._sources.has(a)||s._sources.add(a);var i=t.sourceContentFor(e);null!=i&&s.setSourceContent(e,i)})),s},o.prototype.addMapping=function(t){var e=n.getArg(t,"generated"),r=n.getArg(t,"original",null),s=n.getArg(t,"source",null),a=n.getArg(t,"name",null);(this._skipValidation||!1!==this._validateMapping(e,r,s,a))&&(null!=s&&(s=String(s),this._sources.has(s)||this._sources.add(s)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:s,name:a}))},o.prototype.setSourceContent=function(t,e){var r=t;null!=this._sourceRoot&&(r=n.relative(this._sourceRoot,r)),null!=e?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(r)]=e):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(t,e,r){var s=e;if(null==e){if(null==t.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');s=t.file}var i=this._sourceRoot;null!=i&&(s=n.relative(i,s));var o=new a,l=new a;this._mappings.unsortedForEach((function(e){if(e.source===s&&null!=e.originalLine){var a=t.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=a.source&&(e.source=a.source,null!=r&&(e.source=n.join(r,e.source)),null!=i&&(e.source=n.relative(i,e.source)),e.originalLine=a.line,e.originalColumn=a.column,null!=a.name&&(e.name=a.name))}var h=e.source;null==h||o.has(h)||o.add(h);var u=e.name;null==u||l.has(u)||l.add(u)}),this),this._sources=o,this._names=l,t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=r&&(e=n.join(r,e)),null!=i&&(e=n.relative(i,e)),this.setSourceContent(e,s))}),this)},o.prototype._validateMapping=function(t,e,r,s){if(e&&"number"!=typeof e.line&&"number"!=typeof e.column){var n="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(n),!1;throw Error(n)}if(!t||!("line"in t)||!("column"in t)||!(t.line>0)||!(t.column>=0)||e||r||s){if(!t||!("line"in t)||!("column"in t)||!e||!("line"in e)||!("column"in e)||!(t.line>0)||!(t.column>=0)||!(e.line>0)||!(e.column>=0)||!r){var n="Invalid mapping: "+JSON.stringify({generated:t,source:r,original:e,name:s});if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(n),!1;throw Error(n)}}},o.prototype._serializeMappings=function(){for(var t,e,r,a,i=0,o=1,l=0,h=0,u=0,c=0,p="",d=this._mappings.toArray(),y=0,x=d.length;y<x;y++){if(e=d[y],t="",e.generatedLine!==o)for(i=0;e.generatedLine!==o;)t+=";",o++;else if(y>0){if(!n.compareByGeneratedPositionsInflated(e,d[y-1]))continue;t+=","}t+=s.encode(e.generatedColumn-i),i=e.generatedColumn,null!=e.source&&(a=this._sources.indexOf(e.source),t+=s.encode(a-c),c=a,t+=s.encode(e.originalLine-1-h),h=e.originalLine-1,t+=s.encode(e.originalColumn-l),l=e.originalColumn,null!=e.name&&(r=this._names.indexOf(e.name),t+=s.encode(r-u),u=r)),p+=t}return p},o.prototype._generateSourcesContent=function(t,e){return t.map((function(t){if(!this._sourcesContents)return null;null!=e&&(t=n.relative(e,t));var r=n.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},o.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(t.file=this._file),null!=this._sourceRoot&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=o},179:function(t,e,r){var s=r(591).SourceMapGenerator,n=r(235),a=/(\r?\n)/,i="$$$isSourceNode$$$";function o(t,e,r,s,n){this.children=[],this.sourceContents={},this.line=null==t?null:t,this.column=null==e?null:e,this.source=null==r?null:r,this.name=null==n?null:n,this[i]=!0,null!=s&&this.add(s)}o.fromStringWithSourceMap=function(t,e,r){var s=new o,i=t.split(a),l=0,h=function(){return t()+(t()||"");function t(){return l<i.length?i[l++]:void 0}},u=1,c=0,p=null;return e.eachMapping((function(t){if(null!==p)if(u<t.generatedLine)d(p,h()),u++,c=0;else{var e=i[l]||"",r=e.substr(0,t.generatedColumn-c);i[l]=e.substr(t.generatedColumn-c),c=t.generatedColumn,d(p,r),p=t;return}for(;u<t.generatedLine;)s.add(h()),u++;if(c<t.generatedColumn){var e=i[l]||"";s.add(e.substr(0,t.generatedColumn)),i[l]=e.substr(t.generatedColumn),c=t.generatedColumn}p=t}),this),l<i.length&&(p&&d(p,h()),s.add(i.splice(l).join(""))),e.sources.forEach((function(t){var a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=n.join(r,t)),s.setSourceContent(t,a))})),s;function d(t,e){if(null===t||void 0===t.source)s.add(e);else{var a=r?n.join(r,t.source):t.source;s.add(new o(t.originalLine,t.originalColumn,a,e,t.name))}}},o.prototype.add=function(t){if(Array.isArray(t))t.forEach((function(t){this.add(t)}),this);else if(t[i]||"string"==typeof t)t&&this.children.push(t);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},o.prototype.prepend=function(t){if(Array.isArray(t))for(var e=t.length-1;e>=0;e--)this.prepend(t[e]);else if(t[i]||"string"==typeof t)this.children.unshift(t);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this},o.prototype.walk=function(t){for(var e,r=0,s=this.children.length;r<s;r++)(e=this.children[r])[i]?e.walk(t):""!==e&&t(e,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(t){var e,r,s=this.children.length;if(s>0){for(r=0,e=[];r<s-1;r++)e.push(this.children[r]),e.push(t);e.push(this.children[r]),this.children=e}return this},o.prototype.replaceRight=function(t,e){var r=this.children[this.children.length-1];return r[i]?r.replaceRight(t,e):"string"==typeof r?this.children[this.children.length-1]=r.replace(t,e):this.children.push("".replace(t,e)),this},o.prototype.setSourceContent=function(t,e){this.sourceContents[n.toSetString(t)]=e},o.prototype.walkSourceContents=function(t){for(var e=0,r=this.children.length;e<r;e++)this.children[e][i]&&this.children[e].walkSourceContents(t);for(var s=Object.keys(this.sourceContents),e=0,r=s.length;e<r;e++)t(n.fromSetString(s[e]),this.sourceContents[s[e]])},o.prototype.toString=function(){var t="";return this.walk((function(e){t+=e})),t},o.prototype.toStringWithSourceMap=function(t){var e={code:"",line:1,column:0},r=new s(t),n=!1,a=null,i=null,o=null,l=null;return this.walk((function(t,s){e.code+=t,null!==s.source&&null!==s.line&&null!==s.column?((a!==s.source||i!==s.line||o!==s.column||l!==s.name)&&r.addMapping({source:s.source,original:{line:s.line,column:s.column},generated:{line:e.line,column:e.column},name:s.name}),a=s.source,i=s.line,o=s.column,l=s.name,n=!0):n&&(r.addMapping({generated:{line:e.line,column:e.column}}),a=null,n=!1);for(var h=0,u=t.length;h<u;h++)10===t.charCodeAt(h)?(e.line++,e.column=0,h+1===u?(a=null,n=!1):n&&r.addMapping({source:s.source,original:{line:s.line,column:s.column},generated:{line:e.line,column:e.column},name:s.name})):e.column++})),this.walkSourceContents((function(t,e){r.setSourceContent(t,e)})),{code:e.code,map:r}},e.SourceNode=o},235:function(t,e){e.getArg=function(t,e,r){if(e in t)return t[e];if(3==arguments.length)return r;throw Error('"'+e+'" is a required argument.')};var r,s,n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a=/^data:.+\,.+$/;function i(t){var e=t.match(n);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}function o(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}e.urlParse=i,e.urlGenerate=o;var l=(r=function(t){var r=t,s=i(t);if(s){if(!s.path)return t;r=s.path}for(var n=e.isAbsolute(r),a=[],l=0,h=0;;){if(l=h,-1===(h=r.indexOf("/",l))){a.push(r.slice(l));break}for(a.push(r.slice(l,h));h<r.length&&"/"===r[h];)h++}for(var u,c=0,h=a.length-1;h>=0;h--)"."===(u=a[h])?a.splice(h,1):".."===u?c++:c>0&&(""===u?(a.splice(h+1,c),c=0):(a.splice(h,2),c--));return(""===(r=a.join("/"))&&(r=n?"/":"."),s)?(s.path=r,o(s)):r},s=[],function(t){for(var e=0;e<s.length;e++)if(s[e].input===t){var n=s[0];return s[0]=s[e],s[e]=n,s[0].result}var a=r(t);return s.unshift({input:t,result:a}),s.length>32&&s.pop(),a});function h(t,e){""===t&&(t="."),""===e&&(e=".");var r=i(e),s=i(t);if(s&&(t=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),o(r);if(r||e.match(a))return e;if(s&&!s.host&&!s.path)return s.host=e,o(s);var n="/"===e.charAt(0)?e:l(t.replace(/\/+$/,"")+"/"+e);return s?(s.path=n,o(s)):n}e.normalize=l,e.join=h,e.isAbsolute=function(t){return"/"===t.charAt(0)||n.test(t)},e.relative=function(t,e){""===t&&(t="."),t=t.replace(/\/$/,"");for(var r=0;0!==e.indexOf(t+"/");){var s=t.lastIndexOf("/");if(s<0||(t=t.slice(0,s)).match(/^([^\/]+:\/)?\/*$/))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)};var u=!("__proto__"in Object.create(null));function c(t){return t}function p(t){if(!t)return!1;var e=t.length;if(e<9||95!==t.charCodeAt(e-1)||95!==t.charCodeAt(e-2)||111!==t.charCodeAt(e-3)||116!==t.charCodeAt(e-4)||111!==t.charCodeAt(e-5)||114!==t.charCodeAt(e-6)||112!==t.charCodeAt(e-7)||95!==t.charCodeAt(e-8)||95!==t.charCodeAt(e-9))return!1;for(var r=e-10;r>=0;r--)if(36!==t.charCodeAt(r))return!1;return!0}function d(t,e){return t===e?0:null===t?1:null===e?-1:t>e?1:-1}e.toSetString=u?c:function(t){return p(t)?"$"+t:t},e.fromSetString=u?c:function(t){return p(t)?t.slice(1):t},e.compareByOriginalPositions=function(t,e,r){var s=d(t.source,e.source);return 0!==s||0!=(s=t.originalLine-e.originalLine)||0!=(s=t.originalColumn-e.originalColumn)||r||0!=(s=t.generatedColumn-e.generatedColumn)||0!=(s=t.generatedLine-e.generatedLine)?s:d(t.name,e.name)},e.compareByOriginalPositionsNoSource=function(t,e,r){var s;return 0!=(s=t.originalLine-e.originalLine)||0!=(s=t.originalColumn-e.originalColumn)||r||0!=(s=t.generatedColumn-e.generatedColumn)||0!=(s=t.generatedLine-e.generatedLine)?s:d(t.name,e.name)},e.compareByGeneratedPositionsDeflated=function(t,e,r){var s=t.generatedLine-e.generatedLine;return 0!==s||0!=(s=t.generatedColumn-e.generatedColumn)||r||0!==(s=d(t.source,e.source))||0!=(s=t.originalLine-e.originalLine)||0!=(s=t.originalColumn-e.originalColumn)?s:d(t.name,e.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(t,e,r){var s=t.generatedColumn-e.generatedColumn;return 0!==s||r||0!==(s=d(t.source,e.source))||0!=(s=t.originalLine-e.originalLine)||0!=(s=t.originalColumn-e.originalColumn)?s:d(t.name,e.name)},e.compareByGeneratedPositionsInflated=function(t,e){var r=t.generatedLine-e.generatedLine;return 0!==r||0!=(r=t.generatedColumn-e.generatedColumn)||0!==(r=d(t.source,e.source))||0!=(r=t.originalLine-e.originalLine)||0!=(r=t.originalColumn-e.originalColumn)?r:d(t.name,e.name)},e.parseSourceMapInput=function(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(t,e,r){if(e=e||"",t&&("/"!==t[t.length-1]&&"/"!==e[0]&&(t+="/"),e=t+e),r){var s=i(r);if(!s)throw Error("sourceMapURL could not be parsed");if(s.path){var n=s.path.lastIndexOf("/");n>=0&&(s.path=s.path.substring(0,n+1))}e=h(o(s),e)}return l(e)}},810:function(t,e,r){e.SourceMapGenerator=r(591).SourceMapGenerator,e.SourceMapConsumer=r(40).SourceMapConsumer,e.SourceNode=r(179).SourceNode},150:function(t,e,r){t.exports=r(139)},440:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=r(675),n=r(306),a=r(952),i=function(t){var e=Object.create(null);if(t)for(var r in t)e[r]=t[r];return e.default=t,Object.freeze(e)}(n);let o=Object.create(null);function l(t,e){if(!a.isString(t))if(!t.nodeType)return a.NOOP;else t=t.innerHTML;let r=a.genCacheKey(t,e),n=o[r];if(n)return n;if("#"===t[0]){let e=document.querySelector(t);t=e?e.innerHTML:""}let l=a.extend({hoistStatic:!0,onError:void 0,onWarn:a.NOOP},e);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=t=>!!customElements.get(t));let{code:h}=s.compile(t,l),u=Function("Vue",h)(i);return u._rc=!0,o[r]=u}n.registerRuntimeCompiler(l),e.compile=l,Object.keys(n).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||(e[t]=n[t])}))},8:function(t,e){"use strict";function r(t){return 1e-10>Math.abs(t)?0:t}function s(t,e){t=r(t);let s=Math.atan2(e=r(e),t);return s>=0?s:s+2*Math.PI}function n(t,e,n){let a=Math.cos(n),i=Math.sin(n);return 0===r(e)&&0===r(i)||0===r(t)&&0===r(a)?n:s(e*a,t*i)}function a(t,e,r,s,a,i){if(0===t&&0===e)return{x:s,y:a};let o=n(t,e,r),l=n(t,e,i);return{x:s-t*Math.cos(o)+t*Math.cos(l),y:a-e*Math.sin(o)+e*Math.sin(l)}}e.accentBorderCallout1={name:"accentBorderCallout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.accentBorderCallout1.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=112500,e.adj4=-38333,e},e.accentBorderCallout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.accentBorderCallout1.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5},e.accentBorderCallout1._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.accentBorderCallout1.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.accentBorderCallout1.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.accentBorderCallout1.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.accentBorderCallout2={name:"accentBorderCallout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.accentBorderCallout2.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=112500,e.adj6=-46667,e},e.accentBorderCallout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],e.accentBorderCallout2.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5},e.accentBorderCallout2._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),e},e.accentBorderCallout2.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.accentBorderCallout2.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.accentBorderCallout2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.accentBorderCallout3={name:"accentBorderCallout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.accentBorderCallout3.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=1e5,e.adj6=-16667,e.adj7=112963,e.adj8=-8333,e},e.accentBorderCallout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],e.accentBorderCallout3.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5,t.y4=t.h*t.adj7/1e5,t.x4=t.w*t.adj8/1e5},e.accentBorderCallout3._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.x4,y:t.y4}),e.push(r),e},e.accentBorderCallout3.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.accentBorderCallout3.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.accentBorderCallout3.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.accentCallout1={name:"accentCallout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.accentCallout1.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=112500,e.adj4=-38333,e},e.accentCallout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.accentCallout1.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5},e.accentCallout1._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.accentCallout1.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.accentCallout1.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.accentCallout1.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.accentCallout2={name:"accentCallout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.accentCallout2.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=112500,e.adj6=-46667,e},e.accentCallout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],e.accentCallout2.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5},e.accentCallout2._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),e},e.accentCallout2.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.accentCallout2.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.accentCallout2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.accentCallout3={name:"accentCallout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.accentCallout3.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=1e5,e.adj6=-16667,e.adj7=112963,e.adj8=-8333,e},e.accentCallout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],e.accentCallout3.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5,t.y4=t.h*t.adj7/1e5,t.x4=t.w*t.adj8/1e5},e.accentCallout3._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.x4,y:t.y4}),e.push(r),e},e.accentCallout3.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.accentCallout3.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.accentCallout3.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.arc={name:"arc",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.arc.getDefaultAdjustValues=t=>{let e={};return e.adj1=162e5,e.adj2=0,e},e.arc.getAdjustValueNames=()=>["adj1","adj2"],e.arc.updateShapeGuides=t=>{t.stAng=Math.max(0,Math.min(t.adj1,21599999)),t.enAng=Math.max(0,Math.min(t.adj2,21599999)),t.sw11=t.enAng+0-t.stAng,t.sw12=t.sw11+216e5-0,t.swAng=t.sw11>0?t.sw11:t.sw12,t.wt1=t.w/2*Math.sin(t.stAng*Math.PI/108e5),t.ht1=t.h/2*Math.cos(t.stAng*Math.PI/108e5),t.dx1=t.w/2*Math.cos(s(t.ht1,t.wt1)),t.dy1=t.h/2*Math.sin(s(t.ht1,t.wt1)),t.wt2=t.w/2*Math.sin(t.enAng*Math.PI/108e5),t.ht2=t.h/2*Math.cos(t.enAng*Math.PI/108e5),t.dx2=t.w/2*Math.cos(s(t.ht2,t.wt2)),t.dy2=t.h/2*Math.sin(s(t.ht2,t.wt2)),t.x1=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+t.dy1-0,t.x2=(t.l+t.r)/2+t.dx2-0,t.y2=(t.t+t.b)/2+t.dy2-0,t.sw0=216e5-t.stAng,t.da1=t.swAng+0-t.sw0,t.g1=Math.max(t.x1,t.x2),t.ir=t.da1>0?t.r:t.g1,t.sw1=54e5-t.stAng,t.sw2=27e6-t.stAng,t.sw3=t.sw1>0?t.sw1:t.sw2,t.da2=t.swAng+0-t.sw3,t.g5=Math.max(t.y1,t.y2),t.ib=t.da2>0?t.b:t.g5,t.sw4=108e5-t.stAng,t.sw5=324e5-t.stAng,t.sw6=t.sw4>0?t.sw4:t.sw5,t.da3=t.swAng+0-t.sw6,t.g9=Math.min(t.x1,t.x2),t.il=t.da3>0?t.l:t.g9,t.sw7=162e5-t.stAng,t.sw8=378e5-t.stAng,t.sw9=t.sw7>0?t.sw7:t.sw8,t.da4=t.swAng+0-t.sw9,t.g13=Math.min(t.y1,t.y2),t.it=t.da4>0?t.t:t.g13,t.cang1=t.stAng+0-54e5,t.cang2=t.enAng+54e5-0,t.cang3=(t.cang1+t.cang2)/2},e.arc._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.arc.getConnections=t=>{let e=[],r;return(r={}).ang=t=>t.cang1,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>t.cang3,r.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>t.cang2,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.arc.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.arc.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.bentArrow={name:"bentArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bentArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e.adj4=43750,e},e.bentArrow.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.bentArrow.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.a3=Math.max(0,Math.min(t.adj3,5e4)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.aw2=Math.min(t.w,t.h)*t.a2/1e5,t.th2=+t.th/2,t.dh2=t.aw2+0-t.th2,t.ah=Math.min(t.w,t.h)*t.a3/1e5,t.bw=t.r+0-t.ah,t.bh=t.b+0-t.dh2,t.bs=Math.min(t.bw,t.bh),t.maxAdj4=1e5*t.bs/Math.min(t.w,t.h),t.a4=Math.max(0,Math.min(t.adj4,t.maxAdj4)),t.bd=Math.min(t.w,t.h)*t.a4/1e5,t.bd3=t.bd+0-t.th,t.bd2=Math.max(t.bd3,0),t.x3=t.th+t.bd2-0,t.x4=t.r+0-t.ah,t.y3=t.dh2+t.th-0,t.y4=t.y3+t.dh2-0,t.y5=t.dh2+t.bd-0,t.y6=t.y3+t.bd2-0},e.bentArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.th,y:t.b}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y4}),e.push(r),(r={}).pos=t=>({x:t.x4,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.bd,y:t.t}),e.push(r),e},e.bentArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x4,y:t.t}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x4,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.th2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.aw2}),e.push(r),e},e.bentArrow.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.bentArrow.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y5},n.push(i),r=i.x,s=i.y,o=t.bd,l=t.bd,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bd,ry:t.bd,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bd,ry:t.bd,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.dh2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.aw2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.bd2,l=t.bd2,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bd2,ry:t.bd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bd2,ry:t.bd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.th,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.bentConnector2={name:"bentConnector2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bentConnector2.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.bentConnector2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.bentConnector3={name:"bentConnector3",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bentConnector3.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e},e.bentConnector3.getAdjustValueNames=()=>["adj1"],e.bentConnector3.updateShapeGuides=t=>{t.x1=t.w*t.adj1/1e5},e.bentConnector3._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),e},e.bentConnector3.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.bentConnector3.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.bentConnector4={name:"bentConnector4",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bentConnector4.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.bentConnector4.getAdjustValueNames=()=>["adj1","adj2"],e.bentConnector4.updateShapeGuides=t=>{t.x1=t.w*t.adj1/1e5,t.x2=(t.x1+t.r)/2,t.y2=t.h*t.adj2/1e5,t.y1=(t.t+t.y2)/2},e.bentConnector4._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.bentConnector4.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.bentConnector4.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.bentConnector5={name:"bentConnector5",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bentConnector5.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e.adj3=5e4,e},e.bentConnector5.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.bentConnector5.updateShapeGuides=t=>{t.x1=t.w*t.adj1/1e5,t.x3=t.w*t.adj3/1e5,t.x2=(t.x1+t.x3)/2,t.y2=t.h*t.adj2/1e5,t.y1=(t.t+t.y2)/2,t.y3=(t.b+t.y2)/2},e.bentConnector5._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),e},e.bentConnector5.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.bentConnector5.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.bentUpArrow={name:"bentUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bentUpArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e},e.bentUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.bentUpArrow.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.a3=Math.max(0,Math.min(t.adj3,5e4)),t.y1=Math.min(t.w,t.h)*t.a3/1e5,t.dx1=Math.min(t.w,t.h)*t.a2/5e4,t.x1=t.r+0-t.dx1,t.dx3=Math.min(t.w,t.h)*t.a2/1e5,t.x3=t.r+0-t.dx3,t.dx2=Math.min(t.w,t.h)*t.a1/2e5,t.x2=t.x3+0-t.dx2,t.x4=t.x3+t.dx2-0,t.dy2=Math.min(t.w,t.h)*t.a1/1e5,t.y2=t.b+0-t.dy2,t.x0=+t.x4/2,t.y3=(t.y2+t.b)/2,t.y15=(t.y1+t.b)/2},e.bentUpArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y1}),e.push(r),e},e.bentUpArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x0,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y15}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y1}),e.push(r),e},e.bentUpArrow.getTextRect=t=>({l:t.l,t:t.y2,r:t.x4,b:t.b}),e.bentUpArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.bevel={name:"bevel",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bevel.getDefaultAdjustValues=t=>{let e={};return e.adj=12500,e},e.bevel.getAdjustValueNames=()=>["adj"],e.bevel.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.y2=t.b+0-t.x1},e.bevel._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.bevel.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.x1}),e.push(r),e},e.bevel.getTextRect=t=>({l:t.x1,t:t.x1,r:t.x2,b:t.y2}),e.bevel.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.x1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"lightenLess"}),r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"darkenLess"}),r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"lighten"}),r=[],s={action:"M",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"darken"}),r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.x1,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.x1},r.push(s),s.x,s.y,s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"M",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"M",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.blockArc={name:"blockArc",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.blockArc.getDefaultAdjustValues=t=>{let e={};return e.adj1=108e5,e.adj2=0,e.adj3=25e3,e},e.blockArc.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.blockArc.updateShapeGuides=t=>{t.stAng=Math.max(0,Math.min(t.adj1,21599999)),t.istAng=Math.max(0,Math.min(t.adj2,21599999)),t.a3=Math.max(0,Math.min(t.adj3,5e4)),t.sw11=t.istAng+0-t.stAng,t.sw12=t.sw11+216e5-0,t.swAng=t.sw11>0?t.sw11:t.sw12,t.iswAng=0-t.swAng,t.wt1=t.w/2*Math.sin(t.stAng*Math.PI/108e5),t.ht1=t.h/2*Math.cos(t.stAng*Math.PI/108e5),t.wt3=t.w/2*Math.sin(t.istAng*Math.PI/108e5),t.ht3=t.h/2*Math.cos(t.istAng*Math.PI/108e5),t.dx1=t.w/2*Math.cos(s(t.ht1,t.wt1)),t.dy1=t.h/2*Math.sin(s(t.ht1,t.wt1)),t.dx3=t.w/2*Math.cos(s(t.ht3,t.wt3)),t.dy3=t.h/2*Math.sin(s(t.ht3,t.wt3)),t.x1=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+t.dy1-0,t.x3=(t.l+t.r)/2+t.dx3-0,t.y3=(t.t+t.b)/2+t.dy3-0,t.dr=Math.min(t.w,t.h)*t.a3/1e5,t.iwd2=t.w/2+0-t.dr,t.ihd2=t.h/2+0-t.dr,t.wt2=t.iwd2*Math.sin(t.istAng*Math.PI/108e5),t.ht2=t.ihd2*Math.cos(t.istAng*Math.PI/108e5),t.wt4=t.iwd2*Math.sin(t.stAng*Math.PI/108e5),t.ht4=t.ihd2*Math.cos(t.stAng*Math.PI/108e5),t.dx2=t.iwd2*Math.cos(s(t.ht2,t.wt2)),t.dy2=t.ihd2*Math.sin(s(t.ht2,t.wt2)),t.dx4=t.iwd2*Math.cos(s(t.ht4,t.wt4)),t.dy4=t.ihd2*Math.sin(s(t.ht4,t.wt4)),t.x2=(t.l+t.r)/2+t.dx2-0,t.y2=(t.t+t.b)/2+t.dy2-0,t.x4=(t.l+t.r)/2+t.dx4-0,t.y4=(t.t+t.b)/2+t.dy4-0,t.sw0=216e5-t.stAng,t.da1=t.swAng+0-t.sw0,t.g1=Math.max(t.x1,t.x2),t.g2=Math.max(t.x3,t.x4),t.g3=Math.max(t.g1,t.g2),t.ir=t.da1>0?t.r:t.g3,t.sw1=54e5-t.stAng,t.sw2=27e6-t.stAng,t.sw3=t.sw1>0?t.sw1:t.sw2,t.da2=t.swAng+0-t.sw3,t.g5=Math.max(t.y1,t.y2),t.g6=Math.max(t.y3,t.y4),t.g7=Math.max(t.g5,t.g6),t.ib=t.da2>0?t.b:t.g7,t.sw4=108e5-t.stAng,t.sw5=324e5-t.stAng,t.sw6=t.sw4>0?t.sw4:t.sw5,t.da3=t.swAng+0-t.sw6,t.g9=Math.min(t.x1,t.x2),t.g10=Math.min(t.x3,t.x4),t.g11=Math.min(t.g9,t.g10),t.il=t.da3>0?t.l:t.g11,t.sw7=162e5-t.stAng,t.sw8=378e5-t.stAng,t.sw9=t.sw7>0?t.sw7:t.sw8,t.da4=t.swAng+0-t.sw9,t.g13=Math.min(t.y1,t.y2),t.g14=Math.min(t.y3,t.y4),t.g15=Math.min(t.g13,t.g14),t.it=t.da4>0?t.t:t.g15,t.x5=(t.x1+t.x4)/2,t.y5=(t.y1+t.y4)/2,t.x6=(t.x3+t.x2)/2,t.y6=(t.y3+t.y2)/2,t.cang1=t.stAng+0-54e5,t.cang2=t.istAng+54e5-0,t.cang3=(t.cang1+t.cang2)/2},e.blockArc._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.blockArc.getConnections=t=>{let e=[],r;return(r={}).ang=t=>t.cang1,r.pos=t=>({x:t.x5,y:t.y5}),e.push(r),(r={}).ang=t=>t.cang2,r.pos=t=>({x:t.x6,y:t.y6}),e.push(r),(r={}).ang=t=>t.cang3,r.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),e.push(r),e},e.blockArc.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.blockArc.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.iwd2,l=t.ihd2,h=t.istAng,u=t.iswAng%216e5,(p=0!==t.iswAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.borderCallout1={name:"borderCallout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.borderCallout1.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=112500,e.adj4=-38333,e},e.borderCallout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.borderCallout1.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5},e.borderCallout1._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.borderCallout1.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.borderCallout1.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.borderCallout1.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.borderCallout2={name:"borderCallout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.borderCallout2.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=112500,e.adj6=-46667,e},e.borderCallout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],e.borderCallout2.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5},e.borderCallout2._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),e},e.borderCallout2.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.borderCallout2.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.borderCallout2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.borderCallout3={name:"borderCallout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.borderCallout3.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=1e5,e.adj6=-16667,e.adj7=112963,e.adj8=-8333,e},e.borderCallout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],e.borderCallout3.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5,t.y4=t.h*t.adj7/1e5,t.x4=t.w*t.adj8/1e5},e.borderCallout3._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.x4,y:t.y4}),e.push(r),e},e.borderCallout3.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.borderCallout3.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.borderCallout3.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.bracePair={name:"bracePair",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bracePair.getDefaultAdjustValues=t=>{let e={};return e.adj=8333,e},e.bracePair.getAdjustValueNames=()=>["adj"],e.bracePair.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,25e3)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=Math.min(t.w,t.h)*t.a/5e4,t.x3=t.r+0-t.x2,t.x4=t.r+0-t.x1,t.y2=(t.t+t.b)/2+0-t.x1,t.y3=(t.t+t.b)/2+t.x1-0,t.y4=t.b+0-t.x1,t.it=29289*t.x1/1e5,t.il=t.x1+t.it-0,t.ir=t.r+0-t.il,t.ib=t.b+0-t.it},e.bracePair._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.x1}),e.push(r),e},e.bracePair.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.bracePair.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.bracePair.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x2,y:t.b},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.t},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x2,y:t.b},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:t.x3,y:t.t},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.bracketPair={name:"bracketPair",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.bracketPair.getDefaultAdjustValues=t=>{let e={};return e.adj=16667,e},e.bracketPair.getAdjustValueNames=()=>["adj"],e.bracketPair.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.y2=t.b+0-t.x1,t.il=29289*t.x1/1e5,t.ir=t.r+0-t.il,t.ib=t.b+0-t.il},e.bracketPair._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.x1}),e.push(r),e},e.bracketPair.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.bracketPair.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.bracketPair.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.b},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.b},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.callout1={name:"callout1",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.callout1.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=112500,e.adj4=-38333,e},e.callout1.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.callout1.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5},e.callout1._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.callout1.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.callout1.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.callout1.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.callout2={name:"callout2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.callout2.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=112500,e.adj6=-46667,e},e.callout2.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6"],e.callout2.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5},e.callout2._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),e},e.callout2.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.callout2.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.callout2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.callout3={name:"callout3",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.callout3.getDefaultAdjustValues=t=>{let e={};return e.adj1=18750,e.adj2=-8333,e.adj3=18750,e.adj4=-16667,e.adj5=1e5,e.adj6=-16667,e.adj7=112963,e.adj8=-8333,e},e.callout3.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5","adj6","adj7","adj8"],e.callout3.updateShapeGuides=t=>{t.y1=t.h*t.adj1/1e5,t.x1=t.w*t.adj2/1e5,t.y2=t.h*t.adj3/1e5,t.x2=t.w*t.adj4/1e5,t.y3=t.h*t.adj5/1e5,t.x3=t.w*t.adj6/1e5,t.y4=t.h*t.adj7/1e5,t.x4=t.w*t.adj8/1e5},e.callout3._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.x4,y:t.y4}),e.push(r),e},e.callout3.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.callout3.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.callout3.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.can={name:"can",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.can.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e},e.can.getAdjustValueNames=()=>["adj"],e.can.updateShapeGuides=t=>{t.maxAdj=5e4*t.h/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.y1=Math.min(t.w,t.h)*t.a/2e5,t.y2=t.y1+t.y1-0,t.y3=t.b+0-t.y1},e.can._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),e},e.can.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.can.getTextRect=t=>({l:t.l,t:t.y2,r:t.r,b:t.y3}),e.can.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=108e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=108e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"lighten"}),n=[],r=0,s=0,i={action:"M",x:t.r,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=108e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y1},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.chevron={name:"chevron",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.chevron.getDefaultAdjustValues=t=>{let e={};return e.adj=5e4,e},e.chevron.getAdjustValueNames=()=>["adj"],e.chevron.updateShapeGuides=t=>{t.maxAdj=1e5*t.w/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.x3=+t.x2/2,t.dx=t.x2+0-t.x1,t.il=t.dx>0?t.x1:t.l,t.ir=t.dx>0?t.x2:t.r},e.chevron._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.chevron.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.chevron.getTextRect=t=>({l:t.il,t:t.t,r:t.ir,b:t.b}),e.chevron.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.chord={name:"chord",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.chord.getDefaultAdjustValues=t=>{let e={};return e.adj1=27e5,e.adj2=162e5,e},e.chord.getAdjustValueNames=()=>["adj1","adj2"],e.chord.updateShapeGuides=t=>{t.stAng=Math.max(0,Math.min(t.adj1,21599999)),t.enAng=Math.max(0,Math.min(t.adj2,21599999)),t.sw1=t.enAng+0-t.stAng,t.sw2=t.sw1+216e5-0,t.swAng=t.sw1>0?t.sw1:t.sw2,t.wt1=t.w/2*Math.sin(t.stAng*Math.PI/108e5),t.ht1=t.h/2*Math.cos(t.stAng*Math.PI/108e5),t.dx1=t.w/2*Math.cos(s(t.ht1,t.wt1)),t.dy1=t.h/2*Math.sin(s(t.ht1,t.wt1)),t.wt2=t.w/2*Math.sin(t.enAng*Math.PI/108e5),t.ht2=t.h/2*Math.cos(t.enAng*Math.PI/108e5),t.dx2=t.w/2*Math.cos(s(t.ht2,t.wt2)),t.dy2=t.h/2*Math.sin(s(t.ht2,t.wt2)),t.x1=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+t.dy1-0,t.x2=(t.l+t.r)/2+t.dx2-0,t.y2=(t.t+t.b)/2+t.dy2-0,t.x3=(t.x1+t.x2)/2,t.y3=(t.y1+t.y2)/2,t.midAng0=+t.swAng/2,t.midAng=t.stAng+t.midAng0-108e5,t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.chord._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.chord.getConnections=t=>{let e=[],r;return(r={}).ang=t=>t.stAng,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>t.enAng,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>t.midAng,r.pos=t=>({x:t.x3,y:t.y3}),e.push(r),e},e.chord.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.chord.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.circularArrow={name:"circularArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.circularArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=12500,e.adj2=1142319,e.adj3=20457681,e.adj4=108e5,e.adj5=12500,e},e.circularArrow.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5"],e.circularArrow.updateShapeGuides=t=>{t.a5=Math.max(0,Math.min(t.adj5,25e3)),t.maxAdj1=2*t.a5/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.enAng=Math.max(1,Math.min(t.adj3,21599999)),t.stAng=Math.max(0,Math.min(t.adj4,21599999)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.thh=Math.min(t.w,t.h)*t.a5/1e5,t.th2=+t.th/2,t.rw1=t.w/2+t.th2-t.thh,t.rh1=t.h/2+t.th2-t.thh,t.rw2=t.rw1+0-t.th,t.rh2=t.rh1+0-t.th,t.rw3=t.rw2+t.th2-0,t.rh3=t.rh2+t.th2-0,t.wtH=t.rw3*Math.sin(t.enAng*Math.PI/108e5),t.htH=t.rh3*Math.cos(t.enAng*Math.PI/108e5),t.dxH=t.rw3*Math.cos(s(t.htH,t.wtH)),t.dyH=t.rh3*Math.sin(s(t.htH,t.wtH)),t.xH=(t.l+t.r)/2+t.dxH-0,t.yH=(t.t+t.b)/2+t.dyH-0,t.rI=Math.min(t.rw2,t.rh2),t.u1=t.dxH*t.dxH/1,t.u2=t.dyH*t.dyH/1,t.u3=t.rI*t.rI/1,t.u4=t.u1+0-t.u3,t.u5=t.u2+0-t.u3,t.u6=t.u4*t.u5/t.u1,t.u7=+t.u6/t.u2,t.u8=1-t.u7,t.u9=Math.sqrt(t.u8),t.u10=+t.u4/t.dxH,t.u11=+t.u10/t.dyH,t.u12=(1+t.u9)/t.u11,t.u13=108e5*s(1,t.u12)/Math.PI,t.u14=t.u13+216e5-0,t.u15=t.u13>0?t.u13:t.u14,t.u16=t.u15+0-t.enAng,t.u17=t.u16+216e5-0,t.u18=t.u16>0?t.u16:t.u17,t.u19=t.u18+0-108e5,t.u20=t.u18+0-216e5,t.u21=t.u19>0?t.u20:t.u18,t.maxAng=Math.abs(t.u21),t.aAng=Math.max(0,Math.min(t.adj2,t.maxAng)),t.ptAng=t.enAng+t.aAng-0,t.wtA=t.rw3*Math.sin(t.ptAng*Math.PI/108e5),t.htA=t.rh3*Math.cos(t.ptAng*Math.PI/108e5),t.dxA=t.rw3*Math.cos(s(t.htA,t.wtA)),t.dyA=t.rh3*Math.sin(s(t.htA,t.wtA)),t.xA=(t.l+t.r)/2+t.dxA-0,t.yA=(t.t+t.b)/2+t.dyA-0,t.wtE=t.rw1*Math.sin(t.stAng*Math.PI/108e5),t.htE=t.rh1*Math.cos(t.stAng*Math.PI/108e5),t.dxE=t.rw1*Math.cos(s(t.htE,t.wtE)),t.dyE=t.rh1*Math.sin(s(t.htE,t.wtE)),t.xE=(t.l+t.r)/2+t.dxE-0,t.yE=(t.t+t.b)/2+t.dyE-0,t.dxG=t.thh*Math.cos(t.ptAng*Math.PI/108e5),t.dyG=t.thh*Math.sin(t.ptAng*Math.PI/108e5),t.xG=t.xH+t.dxG-0,t.yG=t.yH+t.dyG-0,t.dxB=t.thh*Math.cos(t.ptAng*Math.PI/108e5),t.dyB=t.thh*Math.sin(t.ptAng*Math.PI/108e5),t.xB=t.xH+0-t.dxB,t.yB=t.yH+0-t.dyB,t.sx1=t.xB+0-(t.l+t.r)/2,t.sy1=t.yB+0-(t.t+t.b)/2,t.sx2=t.xG+0-(t.l+t.r)/2,t.sy2=t.yG+0-(t.t+t.b)/2,t.rO=Math.min(t.rw1,t.rh1),t.x1O=t.sx1*t.rO/t.rw1,t.y1O=t.sy1*t.rO/t.rh1,t.x2O=t.sx2*t.rO/t.rw1,t.y2O=t.sy2*t.rO/t.rh1,t.dxO=t.x2O+0-t.x1O,t.dyO=t.y2O+0-t.y1O,t.dO=Math.sqrt(Math.pow(t.dxO,2)+Math.pow(t.dyO,2)+0),t.q1=t.x1O*t.y2O/1,t.q2=t.x2O*t.y1O/1,t.DO=t.q1+0-t.q2,t.q3=t.rO*t.rO/1,t.q4=t.dO*t.dO/1,t.q5=t.q3*t.q4/1,t.q6=t.DO*t.DO/1,t.q7=t.q5+0-t.q6,t.q8=Math.max(t.q7,0),t.sdelO=Math.sqrt(t.q8),t.ndyO=-1*t.dyO/1,t.sdyO=t.ndyO>0?-1:1,t.q9=t.sdyO*t.dxO/1,t.q10=t.q9*t.sdelO/1,t.q11=t.DO*t.dyO/1,t.dxF1=(t.q11+t.q10)/t.q4,t.q12=t.q11+0-t.q10,t.dxF2=+t.q12/t.q4,t.adyO=Math.abs(t.dyO),t.q13=t.adyO*t.sdelO/1,t.q14=-(t.DO*t.dxO/1),t.dyF1=(t.q14+t.q13)/t.q4,t.q15=t.q14+0-t.q13,t.dyF2=+t.q15/t.q4,t.q16=t.x2O+0-t.dxF1,t.q17=t.x2O+0-t.dxF2,t.q18=t.y2O+0-t.dyF1,t.q19=t.y2O+0-t.dyF2,t.q20=Math.sqrt(Math.pow(t.q16,2)+Math.pow(t.q18,2)+0),t.q21=Math.sqrt(Math.pow(t.q17,2)+Math.pow(t.q19,2)+0),t.q22=t.q21+0-t.q20,t.dxF=t.q22>0?t.dxF1:t.dxF2,t.dyF=t.q22>0?t.dyF1:t.dyF2,t.sdxF=t.dxF*t.rw1/t.rO,t.sdyF=t.dyF*t.rh1/t.rO,t.xF=(t.l+t.r)/2+t.sdxF-0,t.yF=(t.t+t.b)/2+t.sdyF-0,t.x1I=t.sx1*t.rI/t.rw2,t.y1I=t.sy1*t.rI/t.rh2,t.x2I=t.sx2*t.rI/t.rw2,t.y2I=t.sy2*t.rI/t.rh2,t.dxI=t.x2I+0-t.x1I,t.dyI=t.y2I+0-t.y1I,t.dI=Math.sqrt(Math.pow(t.dxI,2)+Math.pow(t.dyI,2)+0),t.v1=t.x1I*t.y2I/1,t.v2=t.x2I*t.y1I/1,t.DI=t.v1+0-t.v2,t.v3=t.rI*t.rI/1,t.v4=t.dI*t.dI/1,t.v5=t.v3*t.v4/1,t.v6=t.DI*t.DI/1,t.v7=t.v5+0-t.v6,t.v8=Math.max(t.v7,0),t.sdelI=Math.sqrt(t.v8),t.v9=t.sdyO*t.dxI/1,t.v10=t.v9*t.sdelI/1,t.v11=t.DI*t.dyI/1,t.dxC1=(t.v11+t.v10)/t.v4,t.v12=t.v11+0-t.v10,t.dxC2=+t.v12/t.v4,t.adyI=Math.abs(t.dyI),t.v13=t.adyI*t.sdelI/1,t.v14=-(t.DI*t.dxI/1),t.dyC1=(t.v14+t.v13)/t.v4,t.v15=t.v14+0-t.v13,t.dyC2=+t.v15/t.v4,t.v16=t.x1I+0-t.dxC1,t.v17=t.x1I+0-t.dxC2,t.v18=t.y1I+0-t.dyC1,t.v19=t.y1I+0-t.dyC2,t.v20=Math.sqrt(Math.pow(t.v16,2)+Math.pow(t.v18,2)+0),t.v21=Math.sqrt(Math.pow(t.v17,2)+Math.pow(t.v19,2)+0),t.v22=t.v21+0-t.v20,t.dxC=t.v22>0?t.dxC1:t.dxC2,t.dyC=t.v22>0?t.dyC1:t.dyC2,t.sdxC=t.dxC*t.rw2/t.rI,t.sdyC=t.dyC*t.rh2/t.rI,t.xC=(t.l+t.r)/2+t.sdxC-0,t.yC=(t.t+t.b)/2+t.sdyC-0,t.ist0=108e5*s(t.sdxC,t.sdyC)/Math.PI,t.ist1=t.ist0+216e5-0,t.istAng=t.ist0>0?t.ist0:t.ist1,t.isw1=t.stAng+0-t.istAng,t.isw2=t.isw1+0-216e5,t.iswAng=t.isw1>0?t.isw2:t.isw1,t.p1=t.xF+0-t.xC,t.p2=t.yF+0-t.yC,t.p3=Math.sqrt(Math.pow(t.p1,2)+Math.pow(t.p2,2)+0),t.p4=+t.p3/2,t.p5=t.p4+0-t.thh,t.xGp=t.p5>0?t.xF:t.xG,t.yGp=t.p5>0?t.yF:t.yG,t.xBp=t.p5>0?t.xC:t.xB,t.yBp=t.p5>0?t.yC:t.yB,t.en0=108e5*s(t.sdxF,t.sdyF)/Math.PI,t.en1=t.en0+216e5-0,t.en2=t.en0>0?t.en0:t.en1,t.sw0=t.en2+0-t.stAng,t.sw1=t.sw0+216e5-0,t.swAng=t.sw0>0?t.sw0:t.sw1,t.wtI=t.rw3*Math.sin(t.stAng*Math.PI/108e5),t.htI=t.rh3*Math.cos(t.stAng*Math.PI/108e5),t.dxI=t.rw3*Math.cos(s(t.htI,t.wtI)),t.dyI=t.rh3*Math.sin(s(t.htI,t.wtI)),t.xI=(t.l+t.r)/2+t.dxI-0,t.yI=(t.t+t.b)/2+t.dyI-0,t.aI=t.stAng+0-54e5,t.aA=t.ptAng+54e5-0,t.aB=t.ptAng+108e5-0,t.idx=t.rw1*Math.cos(27e5*Math.PI/108e5),t.idy=t.rh1*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.circularArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.xA,y:t.yA}),e.push(r),(r={}).pos=t=>({x:t.xE,y:t.yE}),e.push(r),(r={}).pos=t=>({x:t.xF,y:t.yF}),e.push(r),(r={}).pos=t=>({x:t.xB,y:t.yB}),e.push(r),e},e.circularArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>t.aI,r.pos=t=>({x:t.xI,y:t.yI}),e.push(r),(r={}).ang=t=>t.ptAng,r.pos=t=>({x:t.xGp,y:t.yGp}),e.push(r),(r={}).ang=t=>t.aA,r.pos=t=>({x:t.xA,y:t.yA}),e.push(r),(r={}).ang=t=>t.aB,r.pos=t=>({x:t.xBp,y:t.yBp}),e.push(r),e},e.circularArrow.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.circularArrow.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.xE,y:t.yE},n.push(i),r=i.x,s=i.y,o=t.rw1,l=t.rh1,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.rw1,ry:t.rh1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.rw1,ry:t.rh1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.xGp,y:t.yGp},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.xA,y:t.yA},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.xBp,y:t.yBp},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.xC,y:t.yC},n.push(i),r=i.x,s=i.y,o=t.rw2,l=t.rh2,h=t.istAng,u=t.iswAng%216e5,(p=0!==t.iswAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.rw2,ry:t.rh2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.rw2,ry:t.rh2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.cloud={name:"cloud",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.cloud.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.g29,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.g28}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.g27,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.g30}),e.push(r),e},e.cloud.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.cloud.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:3900*t.w/43200,y:14370*t.h/43200},n.push(i),r=i.x,s=i.y,o=6753,l=9190,h=-11429249,(p=0==(u=7426832))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5333,l=7267,h=-8646143,(p=0==(u=5396714))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7267*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7267*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4365,l=5945,h=-8748475,(p=0==(u=5983381))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4857,l=6595,h=-7859164,(p=0==(u=7034504))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5333,l=7273,h=-4722533,(p=0==(u=6541615))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=6775,l=9220,h=-2776035,(p=0==(u=7816140))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6775*t.w/43200,ry:9220*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6775*t.w/43200,ry:9220*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5785,l=7867,h=37501,(p=0==(u=6842e3))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=6752,l=9215,h=1347096,(p=0==(u=6910353))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=7720,l=10543,h=3974558,(p=0==(u=4542661))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:7720*t.w/43200,ry:10543*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:7720*t.w/43200,ry:10543*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4360,l=5918,h=-16496525,(p=0==(u=8804134))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4345,l=5945,h=-14809710,(p=0==(u=9151131))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:4693*t.w/43200,y:26177*t.h/43200},n.push(i),r=i.x,s=i.y,o=4345,l=5945,h=5204520,(p=0==(u=1585770))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:6928*t.w/43200,y:34899*t.h/43200},n.push(i),r=i.x,s=i.y,o=4360,l=5918,h=4416628,(p=0==(u=686848))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:16478*t.w/43200,y:39090*t.h/43200},n.push(i),r=i.x,s=i.y,o=6752,l=9215,h=8257449,(p=0==(u=844866))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:28827*t.w/43200,y:34751*t.h/43200},n.push(i),r=i.x,s=i.y,o=6752,l=9215,h=387196,(p=0==(u=959901))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:34129*t.w/43200,y:22954*t.h/43200},n.push(i),r=i.x,s=i.y,o=5785,l=7867,h=-4217541,(p=0==(u=4255042))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:41798*t.w/43200,y:15354*t.h/43200},n.push(i),r=i.x,s=i.y,o=5333,l=7273,h=1819082,(p=0==(u=1665090))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:38324*t.w/43200,y:5426*t.h/43200},n.push(i),r=i.x,s=i.y,o=4857,l=6595,h=-824660,(p=0==(u=891534))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:29078*t.w/43200,y:3952*t.h/43200},n.push(i),r=i.x,s=i.y,o=4857,l=6595,h=-8950887,(p=0==(u=1091722))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:22141*t.w/43200,y:4720*t.h/43200},n.push(i),r=i.x,s=i.y,o=4365,l=5945,h=-9809656,(p=0==(u=1061181))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:14e3*t.w/43200,y:5192*t.h/43200},n.push(i),r=i.x,s=i.y,o=6753,l=9190,h=-4002417,(p=0==(u=739161))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:4127*t.w/43200,y:15789*t.h/43200},n.push(i),r=i.x,s=i.y,o=6753,l=9190,h=9459261,(p=0==(u=711490))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.cloud.updateShapeGuides=t=>{t.il=2977*t.w/21600,t.it=3262*t.h/21600,t.ir=17087*t.w/21600,t.ib=17337*t.h/21600,t.g27=67*t.w/21600,t.g28=21577*t.h/21600,t.g29=21582*t.w/21600,t.g30=1235*t.h/21600},e.cloudCallout={name:"cloudCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.cloudCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=-20833,e.adj2=62500,e},e.cloudCallout.getAdjustValueNames=()=>["adj1","adj2"],e.cloudCallout.updateShapeGuides=t=>{t.dxPos=t.w*t.adj1/1e5,t.dyPos=t.h*t.adj2/1e5,t.xPos=(t.l+t.r)/2+t.dxPos-0,t.yPos=(t.t+t.b)/2+t.dyPos-0,t.ht=t.h/2*Math.cos(s(t.dxPos,t.dyPos)),t.wt=t.w/2*Math.sin(s(t.dxPos,t.dyPos)),t.g2=t.w/2*Math.cos(s(t.ht,t.wt)),t.g3=t.h/2*Math.sin(s(t.ht,t.wt)),t.g4=(t.l+t.r)/2+t.g2-0,t.g5=(t.t+t.b)/2+t.g3-0,t.g6=t.g4+0-t.xPos,t.g7=t.g5+0-t.yPos,t.g8=Math.sqrt(Math.pow(t.g6,2)+Math.pow(t.g7,2)+0),t.g9=6600*Math.min(t.w,t.h)/21600,t.g10=t.g8+0-t.g9,t.g11=+t.g10/3,t.g12=1800*Math.min(t.w,t.h)/21600,t.g13=t.g11+t.g12-0,t.g14=t.g13*t.g6/t.g8,t.g15=t.g13*t.g7/t.g8,t.g16=t.g14+t.xPos-0,t.g17=t.g15+t.yPos-0,t.g18=4800*Math.min(t.w,t.h)/21600,t.g19=2*t.g11/1,t.g20=t.g18+t.g19-0,t.g21=t.g20*t.g6/t.g8,t.g22=t.g20*t.g7/t.g8,t.g23=t.g21+t.xPos-0,t.g24=t.g22+t.yPos-0,t.g25=1200*Math.min(t.w,t.h)/21600,t.g26=600*Math.min(t.w,t.h)/21600,t.x23=t.xPos+t.g26-0,t.x24=t.g16+t.g25-0,t.x25=t.g23+t.g12-0,t.il=2977*t.w/21600,t.it=3262*t.h/21600,t.ir=17087*t.w/21600,t.ib=17337*t.h/21600,t.g27=67*t.w/21600,t.g28=21577*t.h/21600,t.g29=21582*t.w/21600,t.g30=1235*t.h/21600,t.pang=108e5*s(t.dxPos,t.dyPos)/Math.PI},e.cloudCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.cloudCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>108e5,r.pos=t=>({x:t.g27,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.g28}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.g29,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.g30}),e.push(r),(r={}).ang=t=>t.pang,r.pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.cloudCallout.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.cloudCallout.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:3900*t.w/43200,y:14370*t.h/43200},n.push(i),r=i.x,s=i.y,o=6753,l=9190,h=-11429249,(p=0==(u=7426832))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5333,l=7267,h=-8646143,(p=0==(u=5396714))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7267*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7267*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4365,l=5945,h=-8748475,(p=0==(u=5983381))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4857,l=6595,h=-7859164,(p=0==(u=7034504))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5333,l=7273,h=-4722533,(p=0==(u=6541615))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=6775,l=9220,h=-2776035,(p=0==(u=7816140))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6775*t.w/43200,ry:9220*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6775*t.w/43200,ry:9220*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5785,l=7867,h=37501,(p=0==(u=6842e3))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=6752,l=9215,h=1347096,(p=0==(u=6910353))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=7720,l=10543,h=3974558,(p=0==(u=4542661))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:7720*t.w/43200,ry:10543*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:7720*t.w/43200,ry:10543*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4360,l=5918,h=-16496525,(p=0==(u=8804134))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=4345,l=5945,h=-14809710,(p=0==(u=9151131))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x23,y:t.yPos},n.push(i),r=i.x,s=i.y,o=t.g26,l=t.g26,h=0,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.g26,ry:t.g26,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.g26,ry:t.g26,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x24,y:t.g17},n.push(i),r=i.x,s=i.y,o=t.g25,l=t.g25,h=0,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.g25,ry:t.g25,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.g25,ry:t.g25,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x25,y:t.g24},n.push(i),r=i.x,s=i.y,o=t.g12,l=t.g12,h=0,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.g12,ry:t.g12,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.g12,ry:t.g12,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:4693*t.w/43200,y:26177*t.h/43200},n.push(i),r=i.x,s=i.y,o=4345,l=5945,h=5204520,(p=0==(u=1585770))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4345*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:6928*t.w/43200,y:34899*t.h/43200},n.push(i),r=i.x,s=i.y,o=4360,l=5918,h=4416628,(p=0==(u=686848))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4360*t.w/43200,ry:5918*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:16478*t.w/43200,y:39090*t.h/43200},n.push(i),r=i.x,s=i.y,o=6752,l=9215,h=8257449,(p=0==(u=844866))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:28827*t.w/43200,y:34751*t.h/43200},n.push(i),r=i.x,s=i.y,o=6752,l=9215,h=387196,(p=0==(u=959901))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6752*t.w/43200,ry:9215*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:34129*t.w/43200,y:22954*t.h/43200},n.push(i),r=i.x,s=i.y,o=5785,l=7867,h=-4217541,(p=0==(u=4255042))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5785*t.w/43200,ry:7867*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:41798*t.w/43200,y:15354*t.h/43200},n.push(i),r=i.x,s=i.y,o=5333,l=7273,h=1819082,(p=0==(u=1665090))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5333*t.w/43200,ry:7273*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:38324*t.w/43200,y:5426*t.h/43200},n.push(i),r=i.x,s=i.y,o=4857,l=6595,h=-824660,(p=0==(u=891534))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:29078*t.w/43200,y:3952*t.h/43200},n.push(i),r=i.x,s=i.y,o=4857,l=6595,h=-8950887,(p=0==(u=1091722))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4857*t.w/43200,ry:6595*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:22141*t.w/43200,y:4720*t.h/43200},n.push(i),r=i.x,s=i.y,o=4365,l=5945,h=-9809656,(p=0==(u=1061181))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:4365*t.w/43200,ry:5945*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:14e3*t.w/43200,y:5192*t.h/43200},n.push(i),r=i.x,s=i.y,o=6753,l=9190,h=-4002417,(p=0==(u=739161))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:4127*t.w/43200,y:15789*t.h/43200},n.push(i),r=i.x,s=i.y,o=6753,l=9190,h=9459261,(p=0==(u=711490))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,43200*r/t.w,43200*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:6753*t.w/43200,ry:9190*t.h/43200,x:c.x*t.w/43200,y:c.y*t.h/43200,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.corner={name:"corner",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.corner.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.corner.getAdjustValueNames=()=>["adj1","adj2"],e.corner.updateShapeGuides=t=>{t.maxAdj1=1e5*t.h/Math.min(t.w,t.h),t.maxAdj2=1e5*t.w/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.x1=Math.min(t.w,t.h)*t.a2/1e5,t.dy1=Math.min(t.w,t.h)*t.a1/1e5,t.y1=t.b+0-t.dy1,t.cx1=+t.x1/2,t.cy1=(t.y1+t.b)/2,t.d=t.w+0-t.h,t.it=t.d>0?t.y1:t.t,t.ir=t.d>0?t.r:t.x1},e.corner._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.corner.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.cy1}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.cx1,y:t.t}),e.push(r),e},e.corner.getTextRect=t=>({l:t.l,t:t.it,r:t.ir,b:t.b}),e.corner.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.cube={name:"cube",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.cube.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e},e.cube.getAdjustValueNames=()=>["adj"],e.cube.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,1e5)),t.y1=Math.min(t.w,t.h)*t.a/1e5,t.y4=t.b+0-t.y1,t.y2=+t.y4/2,t.y3=(t.y1+t.b)/2,t.x4=t.r+0-t.y1,t.x2=+t.x4/2,t.x3=(t.y1+t.r)/2},e.cube._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),e},e.cube.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.y1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y3}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y2}),e.push(r),e},e.cube.getTextRect=t=>({l:t.l,t:t.y1,r:t.x4,b:t.b}),e.cube.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"darkenLess"}),r=[],s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.y1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"lightenLess"}),r=[],s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.y1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"M",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.curvedConnector2={name:"curvedConnector2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedConnector2.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedConnector2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"C",x1:t.w/2,y1:t.t,x2:t.r,y2:t.h/2,x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.curvedConnector3={name:"curvedConnector3",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedConnector3.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e},e.curvedConnector3.getAdjustValueNames=()=>["adj1"],e.curvedConnector3.updateShapeGuides=t=>{t.x2=t.w*t.adj1/1e5,t.x1=(t.l+t.x2)/2,t.x3=(t.r+t.x2)/2,t.y3=3*t.h/4},e.curvedConnector3._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),e},e.curvedConnector3.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedConnector3.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"C",x1:t.x1,y1:t.t,x2:t.x2,y2:t.h/4,x:t.x2,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"C",x1:t.x2,y1:t.y3,x2:t.x3,y2:t.b,x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.curvedConnector4={name:"curvedConnector4",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedConnector4.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.curvedConnector4.getAdjustValueNames=()=>["adj1","adj2"],e.curvedConnector4.updateShapeGuides=t=>{t.x2=t.w*t.adj1/1e5,t.x1=(t.l+t.x2)/2,t.x3=(t.r+t.x2)/2,t.x4=(t.x2+t.x3)/2,t.x5=(t.x3+t.r)/2,t.y4=t.h*t.adj2/1e5,t.y1=(t.t+t.y4)/2,t.y2=(t.t+t.y1)/2,t.y3=(t.y1+t.y4)/2,t.y5=(t.b+t.y4)/2},e.curvedConnector4._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.y4}),e.push(r),e},e.curvedConnector4.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedConnector4.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"C",x1:t.x1,y1:t.t,x2:t.x2,y2:t.y2,x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"C",x1:t.x2,y1:t.y3,x2:t.x4,y2:t.y4,x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"C",x1:t.x5,y1:t.y4,x2:t.r,y2:t.y5,x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.curvedConnector5={name:"curvedConnector5",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedConnector5.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e.adj3=5e4,e},e.curvedConnector5.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.curvedConnector5.updateShapeGuides=t=>{t.x3=t.w*t.adj1/1e5,t.x6=t.w*t.adj3/1e5,t.x1=(t.x3+t.x6)/2,t.x2=(t.l+t.x3)/2,t.x4=(t.x3+t.x1)/2,t.x5=(t.x6+t.x1)/2,t.x7=(t.x6+t.r)/2,t.y4=t.h*t.adj2/1e5,t.y1=(t.t+t.y4)/2,t.y2=(t.t+t.y1)/2,t.y3=(t.y1+t.y4)/2,t.y5=(t.b+t.y4)/2,t.y6=(t.y5+t.y4)/2,t.y7=(t.y5+t.b)/2},e.curvedConnector5._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x3,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.y4}),e.push(r),(r={}).pos=t=>({x:t.x6,y:t.y5}),e.push(r),e},e.curvedConnector5.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedConnector5.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"C",x1:t.x2,y1:t.t,x2:t.x3,y2:t.y2,x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"C",x1:t.x3,y1:t.y3,x2:t.x4,y2:t.y4,x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"C",x1:t.x5,y1:t.y4,x2:t.x6,y2:t.y6,x:t.x6,y:t.y5},r.push(s),s.x,s.y,s={action:"C",x1:t.x6,y1:t.y7,x2:t.x7,y2:t.b,x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.curvedDownArrow={name:"curvedDownArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedDownArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=5e4,e.adj3=25e3,e},e.curvedDownArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.curvedDownArrow.updateShapeGuides=t=>{t.maxAdj2=5e4*t.w/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.aw=Math.min(t.w,t.h)*t.a2/1e5,t.q1=(t.th+t.aw)/4,t.wR=t.w/2+0-t.q1,t.q7=2*t.wR/1,t.q8=t.q7*t.q7/1,t.q9=t.th*t.th/1,t.q10=t.q8+0-t.q9,t.q11=Math.sqrt(t.q10),t.idy=t.q11*t.h/t.q7,t.maxAdj3=1e5*t.idy/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.ah=Math.min(t.w,t.h)*t.adj3/1e5,t.x3=t.wR+t.th-0,t.q2=t.h*t.h/1,t.q3=t.ah*t.ah/1,t.q4=t.q2+0-t.q3,t.q5=Math.sqrt(t.q4),t.dx=t.q5*t.wR/t.h,t.x5=t.wR+t.dx-0,t.x7=t.x3+t.dx-0,t.q6=t.aw+0-t.th,t.dh=+t.q6/2,t.x4=t.x5+0-t.dh,t.x8=t.x7+t.dh-0,t.aw2=+t.aw/2,t.x6=t.r+0-t.aw2,t.y1=t.b+0-t.ah,t.swAng=108e5*s(t.ah,t.dx)/Math.PI,t.mswAng=0-t.swAng,t.iy=t.b+0-t.idy,t.ix=(t.wR+t.x3)/2,t.q12=+t.th/2,t.dang2=108e5*s(t.idy,t.q12)/Math.PI,t.stAng=162e5+t.swAng-0,t.stAng2=162e5-t.dang2,t.swAng2=t.dang2+0-54e5,t.swAng3=54e5+t.dang2-0},e.curvedDownArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x7,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x4,y:t.b}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y1}),e.push(r),e},e.curvedDownArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.ix,y:t.t}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.q12,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x4,y:t.y1}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x6,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x8,y:t.y1}),e.push(r),e},e.curvedDownArrow.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedDownArrow.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x6,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x5,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng,u=t.mswAng%216e5,(p=0!==t.mswAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.t},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=162e5,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.ix,y:t.iy},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng2,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=108e5,u=t.swAng3%216e5,(p=0!==t.swAng3&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.ix,y:t.iy},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng2,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.t},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=162e5,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x5,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng,u=t.mswAng%216e5,(p=0!==t.mswAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.curvedLeftArrow={name:"curvedLeftArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedLeftArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=5e4,e.adj3=25e3,e},e.curvedLeftArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.curvedLeftArrow.updateShapeGuides=t=>{t.maxAdj2=5e4*t.h/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.a1=Math.max(0,Math.min(t.adj1,t.a2)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.aw=Math.min(t.w,t.h)*t.a2/1e5,t.q1=(t.th+t.aw)/4,t.hR=t.h/2+0-t.q1,t.q7=2*t.hR/1,t.q8=t.q7*t.q7/1,t.q9=t.th*t.th/1,t.q10=t.q8+0-t.q9,t.q11=Math.sqrt(t.q10),t.idx=t.q11*t.w/t.q7,t.maxAdj3=1e5*t.idx/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.ah=Math.min(t.w,t.h)*t.a3/1e5,t.y3=t.hR+t.th-0,t.q2=t.w*t.w/1,t.q3=t.ah*t.ah/1,t.q4=t.q2+0-t.q3,t.q5=Math.sqrt(t.q4),t.dy=t.q5*t.hR/t.w,t.y5=t.hR+t.dy-0,t.y7=t.y3+t.dy-0,t.q6=t.aw+0-t.th,t.dh=+t.q6/2,t.y4=t.y5+0-t.dh,t.y8=t.y7+t.dh-0,t.aw2=+t.aw/2,t.y6=t.b+0-t.aw2,t.x1=t.l+t.ah-0,t.swAng=108e5*s(t.ah,t.dy)/Math.PI,t.mswAng=0-t.swAng,t.ix=t.l+t.idx-0,t.iy=(t.hR+t.y3)/2,t.q12=+t.th/2,t.dang2=108e5*s(t.idx,t.q12)/Math.PI,t.swAng2=t.dang2+0-t.swAng,t.swAng3=t.swAng+t.dang2-0,t.stAng3=0-t.dang2},e.curvedLeftArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y5}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y4}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.b}),e.push(r),e},e.curvedLeftArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.q12}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y4}),e.push(r),(r={}).ang=t=>t.cd3,r.pos=t=>({x:t.l,y:t.y6}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.y8}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.iy}),e.push(r),e},e.curvedLeftArrow.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedLeftArrow.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y5},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=t.swAng,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w,l=t.hR,h=t.stAng3,u=t.swAng3%216e5,(p=0!==t.swAng3&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y8},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.r,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.r,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=0,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y8},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y5},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=t.swAng,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.curvedRightArrow={name:"curvedRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedRightArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=5e4,e.adj3=25e3,e},e.curvedRightArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.curvedRightArrow.updateShapeGuides=t=>{t.maxAdj2=5e4*t.h/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.a1=Math.max(0,Math.min(t.adj1,t.a2)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.aw=Math.min(t.w,t.h)*t.a2/1e5,t.q1=(t.th+t.aw)/4,t.hR=t.h/2+0-t.q1,t.q7=2*t.hR/1,t.q8=t.q7*t.q7/1,t.q9=t.th*t.th/1,t.q10=t.q8+0-t.q9,t.q11=Math.sqrt(t.q10),t.idx=t.q11*t.w/t.q7,t.maxAdj3=1e5*t.idx/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.ah=Math.min(t.w,t.h)*t.a3/1e5,t.y3=t.hR+t.th-0,t.q2=t.w*t.w/1,t.q3=t.ah*t.ah/1,t.q4=t.q2+0-t.q3,t.q5=Math.sqrt(t.q4),t.dy=t.q5*t.hR/t.w,t.y5=t.hR+t.dy-0,t.y7=t.y3+t.dy-0,t.q6=t.aw+0-t.th,t.dh=+t.q6/2,t.y4=t.y5+0-t.dh,t.y8=t.y7+t.dh-0,t.aw2=+t.aw/2,t.y6=t.b+0-t.aw2,t.x1=t.r+0-t.ah,t.swAng=108e5*s(t.ah,t.dy)/Math.PI,t.stAng=108e5-t.swAng,t.mswAng=0-t.swAng,t.ix=t.r+0-t.idx,t.iy=(t.hR+t.y3)/2,t.q12=+t.th/2,t.dang2=108e5*s(t.idx,t.q12)/Math.PI,t.swAng2=t.dang2+0-54e5,t.swAng3=54e5+t.dang2-0,t.stAng3=108e5-t.dang2},e.curvedRightArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y5}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y4}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.b}),e.push(r),e},e.curvedRightArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.iy}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.y8}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y6}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x1,y:t.y4}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.q12}),e.push(r),e},e.curvedRightArrow.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedRightArrow.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.hR},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=108e5,u=t.mswAng%216e5,(p=0!==t.mswAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y8},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y7},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.r,y:t.th},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=162e5,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w,l=t.hR,h=t.stAng3,u=t.swAng3%216e5,(p=0!==t.swAng3&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:t.hR},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=108e5,u=t.mswAng%216e5,(p=0!==t.mswAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y8},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y7},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.hR},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.th},n.push(i),r=i.x,s=i.y,o=t.w,l=t.hR,h=162e5,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.curvedUpArrow={name:"curvedUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.curvedUpArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=5e4,e.adj3=25e3,e},e.curvedUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.curvedUpArrow.updateShapeGuides=t=>{t.maxAdj2=5e4*t.w/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.aw=Math.min(t.w,t.h)*t.a2/1e5,t.q1=(t.th+t.aw)/4,t.wR=t.w/2+0-t.q1,t.q7=2*t.wR/1,t.q8=t.q7*t.q7/1,t.q9=t.th*t.th/1,t.q10=t.q8+0-t.q9,t.q11=Math.sqrt(t.q10),t.idy=t.q11*t.h/t.q7,t.maxAdj3=1e5*t.idy/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.ah=Math.min(t.w,t.h)*t.adj3/1e5,t.x3=t.wR+t.th-0,t.q2=t.h*t.h/1,t.q3=t.ah*t.ah/1,t.q4=t.q2+0-t.q3,t.q5=Math.sqrt(t.q4),t.dx=t.q5*t.wR/t.h,t.x5=t.wR+t.dx-0,t.x7=t.x3+t.dx-0,t.q6=t.aw+0-t.th,t.dh=+t.q6/2,t.x4=t.x5+0-t.dh,t.x8=t.x7+t.dh-0,t.aw2=+t.aw/2,t.x6=t.r+0-t.aw2,t.y1=t.t+t.ah-0,t.swAng=108e5*s(t.ah,t.dx)/Math.PI,t.mswAng=0-t.swAng,t.iy=t.t+t.idy-0,t.ix=(t.wR+t.x3)/2,t.q12=+t.th/2,t.dang2=108e5*s(t.idy,t.q12)/Math.PI,t.swAng2=t.dang2+0-t.swAng,t.mswAng2=0-t.swAng2,t.stAng3=54e5-t.swAng,t.swAng3=t.swAng+t.dang2-0,t.stAng2=54e5-t.dang2},e.curvedUpArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x7,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x4,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y1}),e.push(r),e},e.curvedUpArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x6,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x4,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.q12,y:t.t}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ix,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x8,y:t.y1}),e.push(r),e},e.curvedUpArrow.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.curvedUpArrow.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x6,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng3,u=t.swAng3%216e5,(p=0!==t.swAng3&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng2,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.wR,y:t.b},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.th,y:t.t},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.ix,y:t.iy},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng2,u=t.swAng2%216e5,(p=0!==t.swAng2&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=t.stAng3,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.wR,y:t.b},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.th,y:t.t},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.h,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.h,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.decagon={name:"decagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.decagon.getDefaultAdjustValues=t=>{let e={};return e.vf=105146,e},e.decagon.getAdjustValueNames=()=>["vf"],e.decagon.updateShapeGuides=t=>{t.shd2=t.h/2*t.vf/1e5,t.dx1=t.w/2*Math.cos(216e4*Math.PI/108e5),t.dx2=t.w/2*Math.cos(432e4*Math.PI/108e5),t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.dy1=t.shd2*Math.sin(432e4*Math.PI/108e5),t.dy2=t.shd2*Math.sin(216e4*Math.PI/108e5),t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+t.dy2-0,t.y4=(t.t+t.b)/2+t.dy1-0},e.decagon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.y4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.y1}),e.push(r),e},e.decagon.getTextRect=t=>({l:t.x1,t:t.y2,r:t.x4,b:t.y3}),e.decagon.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.diagStripe={name:"diagStripe",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.diagStripe.getDefaultAdjustValues=t=>{let e={};return e.adj=5e4,e},e.diagStripe.getAdjustValueNames=()=>["adj"],e.diagStripe.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,1e5)),t.x2=t.w*t.a/1e5,t.x1=+t.x2/2,t.x3=(t.x2+t.r)/2,t.y2=t.h*t.a/1e5,t.y1=+t.y2/2,t.y3=(t.y2+t.b)/2},e.diagStripe._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),e},e.diagStripe.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),e},e.diagStripe.getTextRect=t=>({l:t.l,t:t.t,r:t.x3,b:t.y3}),e.diagStripe.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.diamond={name:"diamond",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.diamond.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.diamond.getTextRect=t=>({l:t.w/4,t:t.h/4,r:t.ir,b:t.ib}),e.diamond.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.diamond.updateShapeGuides=t=>{t.ir=3*t.w/4,t.ib=3*t.h/4},e.dodecagon={name:"dodecagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.dodecagon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y1}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y3}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),e},e.dodecagon.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x4,b:t.y4}),e.dodecagon.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y3},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.dodecagon.updateShapeGuides=t=>{t.x1=2894*t.w/21600,t.x2=7906*t.w/21600,t.x3=13694*t.w/21600,t.x4=18706*t.w/21600,t.y1=2894*t.h/21600,t.y2=7906*t.h/21600,t.y3=13694*t.h/21600,t.y4=18706*t.h/21600},e.donut={name:"donut",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.donut.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e},e.donut.getAdjustValueNames=()=>["adj"],e.donut.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dr=Math.min(t.w,t.h)*t.a/1e5,t.iwd2=t.w/2+0-t.dr,t.ihd2=t.h/2+0-t.dr,t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.donut._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.dr,y:(t.t+t.b)/2}),e.push(r),e},e.donut.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),e},e.donut.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.donut.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.dr,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.iwd2,l=t.ihd2,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.iwd2,l=t.ihd2,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.iwd2,l=t.ihd2,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.iwd2,l=t.ihd2,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.doubleWave={name:"doubleWave",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.doubleWave.getDefaultAdjustValues=t=>{let e={};return e.adj1=6250,e.adj2=0,e},e.doubleWave.getAdjustValueNames=()=>["adj1","adj2"],e.doubleWave.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,12500)),t.a2=Math.max(-1e4,Math.min(t.adj2,1e4)),t.y1=t.h*t.a1/1e5,t.dy2=10*t.y1/3,t.y2=t.y1+0-t.dy2,t.y3=t.y1+t.dy2-0,t.y4=t.b+0-t.y1,t.y5=t.y4+0-t.dy2,t.y6=t.y4+t.dy2-0,t.dx1=t.w*t.a2/1e5,t.of2=t.w*t.a2/5e4,t.x1=Math.abs(t.dx1),t.dx2=t.of2>0?0:t.of2,t.x2=t.l+0-t.dx2,t.dx8=t.of2>0?t.of2:0,t.x8=t.r+0-t.dx8,t.dx3=(t.dx2+t.x8)/6,t.x3=t.x2+t.dx3-0,t.dx4=(t.dx2+t.x8)/3,t.x4=t.x2+t.dx4-0,t.x5=(t.x2+t.x8)/2,t.x6=t.x5+t.dx3-0,t.x7=(t.x6+t.x8)/2,t.x9=t.l+t.dx8-0,t.x15=t.r+t.dx2-0,t.x10=t.x9+t.dx3-0,t.x11=t.x9+t.dx4-0,t.x12=(t.x9+t.x15)/2,t.x13=t.x12+t.dx3-0,t.x14=(t.x13+t.x15)/2,t.x16=t.r+0-t.x1,t.xAdj=(t.l+t.r)/2+t.dx1-0,t.il=Math.max(t.x2,t.x9),t.ir=Math.min(t.x8,t.x15),t.it=t.h*t.a1/5e4,t.ib=t.b+0-t.it},e.doubleWave._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.xAdj,y:t.b}),e.push(r),e},e.doubleWave.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.x12,y:t.y1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x5,y:t.y4}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x16,y:(t.t+t.b)/2}),e.push(r),e},e.doubleWave.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.doubleWave.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"C",x1:t.x3,y1:t.y2,x2:t.x4,y2:t.y3,x:t.x5,y:t.y1},r.push(s),s.x,s.y,s={action:"C",x1:t.x6,y1:t.y2,x2:t.x7,y2:t.y3,x:t.x8,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x15,y:t.y4},r.push(s),s.x,s.y,s={action:"C",x1:t.x14,y1:t.y6,x2:t.x13,y2:t.y5,x:t.x12,y:t.y4},r.push(s),s.x,s.y,s={action:"C",x1:t.x11,y1:t.y6,x2:t.x10,y2:t.y5,x:t.x9,y:t.y4},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.downArrow={name:"downArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.downArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.downArrow.getAdjustValueNames=()=>["adj1","adj2"],e.downArrow.updateShapeGuides=t=>{t.maxAdj2=1e5*t.h/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.dy1=Math.min(t.w,t.h)*t.a2/1e5,t.y1=t.b+0-t.dy1,t.dx1=t.w*t.a1/2e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+t.dx1-0,t.dy2=t.x1*t.dy1/(t.w/2),t.y2=t.y1+t.dy2-0},e.downArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),e},e.downArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y1}),e.push(r),e},e.downArrow.getTextRect=t=>({l:t.x1,t:t.t,r:t.x2,b:t.y2}),e.downArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.upArrow={name:"upArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.upArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.upArrow.getAdjustValueNames=()=>["adj1","adj2"],e.upArrow.updateShapeGuides=t=>{t.maxAdj2=1e5*t.h/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.dy2=Math.min(t.w,t.h)*t.a2/1e5,t.y2=t.t+t.dy2-0,t.dx1=t.w*t.a1/2e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+t.dx1-0,t.dy1=t.x1*t.dy2/(t.w/2),t.y1=t.y2+0-t.dy1},e.upArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.b}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),e},e.upArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y2}),e.push(r),e},e.upArrow.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x2,b:t.b}),e.upArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.downArrowCallout={name:"downArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.downArrowCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e.adj4=64977,e},e.downArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.downArrowCallout.updateShapeGuides=t=>{t.maxAdj2=5e4*t.w/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.maxAdj3=1e5*t.h/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.q2=t.a3*Math.min(t.w,t.h)/t.h,t.maxAdj4=1e5-t.q2,t.a4=Math.max(0,Math.min(t.adj4,t.maxAdj4)),t.dx1=Math.min(t.w,t.h)*t.a2/1e5,t.dx2=Math.min(t.w,t.h)*t.a1/2e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.dy3=Math.min(t.w,t.h)*t.a3/1e5,t.y3=t.b+0-t.dy3,t.y2=t.h*t.a4/1e5,t.y1=+t.y2/2},e.downArrowCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.b}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),e},e.downArrowCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y1}),e.push(r),e},e.downArrowCallout.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.y2}),e.downArrowCallout.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.ellipse={name:"ellipse",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.ellipse.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),e},e.ellipse.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.ellipse.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.ellipse.updateShapeGuides=t=>{t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.ellipseRibbon={name:"ellipseRibbon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.ellipseRibbon.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=5e4,e.adj3=12500,e},e.ellipseRibbon.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.ellipseRibbon.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(25e3,Math.min(t.adj2,75e3)),t.q10=1e5-t.a1,t.q11=+t.q10/2,t.q12=t.a1+0-t.q11,t.minAdj3=Math.max(0,t.q12),t.a3=Math.max(t.minAdj3,Math.min(t.adj3,t.a1)),t.dx2=t.w*t.a2/2e5,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=t.x2+t.w/8-0,t.x4=t.r+0-t.x3,t.x5=t.r+0-t.x2,t.x6=t.r+0-t.w/8,t.dy1=t.h*t.a3/1e5,t.f1=4*t.dy1/t.w,t.q1=t.x3*t.x3/t.w,t.q2=t.x3+0-t.q1,t.y1=t.f1*t.q2/1,t.cx1=+t.x3/2,t.cy1=t.f1*t.cx1/1,t.cx2=t.r+0-t.cx1,t.q1=t.h*t.a1/1e5,t.dy3=t.q1+0-t.dy1,t.q3=t.x2*t.x2/t.w,t.q4=t.x2+0-t.q3,t.q5=t.f1*t.q4/1,t.y3=t.q5+t.dy3-0,t.q6=t.dy1+t.dy3-t.y3,t.q7=t.q6+t.dy1-0,t.cy3=t.q7+t.dy3-0,t.rh=t.b+0-t.q1,t.q8=14*t.dy1/16,t.y2=(t.q8+t.rh)/2,t.y5=t.q5+t.rh-0,t.y6=t.y3+t.rh-0,t.cx4=+t.x2/2,t.q9=t.f1*t.cx4/1,t.cy4=t.q9+t.rh-0,t.cx5=t.r+0-t.cx4,t.cy6=t.cy3+t.rh-0,t.y7=t.y1+t.dy3-0,t.cy7=t.q1+t.q1-t.y7,t.y8=t.b+0-t.dy1},e.ellipseRibbon._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.q1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y8}),e.push(r),e},e.ellipseRibbon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.q1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/8,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:t.y2}),e.push(r),e},e.ellipseRibbon.getTextRect=t=>({l:t.x2,t:t.q1,r:t.x5,b:t.y6}),e.ellipseRibbon.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx1,y1:t.cy1,x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy3,x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx2,y1:t.cy1,x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.rh},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx5,y1:t.cy4,x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y6},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy6,x:t.x2,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx4,y1:t.cy4,x:t.l,y:t.rh},r.push(s),s.x,s.y,s={action:"L",x:t.w/8,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x3,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy3,x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y7},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy7,x:t.x3,y:t.y7},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"darkenLess"}),r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx1,y1:t.cy1,x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy3,x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx2,y1:t.cy1,x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.rh},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx5,y1:t.cy4,x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y6},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy6,x:t.x2,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx4,y1:t.cy4,x:t.l,y:t.rh},r.push(s),s.x,s.y,s={action:"L",x:t.w/8,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"M",x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"M",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y7},r.push(s),s.x,s.y,s={action:"M",x:t.x4,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.ellipseRibbon2={name:"ellipseRibbon2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.ellipseRibbon2.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=5e4,e.adj3=12500,e},e.ellipseRibbon2.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.ellipseRibbon2.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(25e3,Math.min(t.adj2,75e3)),t.q10=1e5-t.a1,t.q11=+t.q10/2,t.q12=t.a1+0-t.q11,t.minAdj3=Math.max(0,t.q12),t.a3=Math.max(t.minAdj3,Math.min(t.adj3,t.a1)),t.dx2=t.w*t.a2/2e5,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=t.x2+t.w/8-0,t.x4=t.r+0-t.x3,t.x5=t.r+0-t.x2,t.x6=t.r+0-t.w/8,t.dy1=t.h*t.a3/1e5,t.f1=4*t.dy1/t.w,t.q1=t.x3*t.x3/t.w,t.q2=t.x3+0-t.q1,t.u1=t.f1*t.q2/1,t.y1=t.b+0-t.u1,t.cx1=+t.x3/2,t.cu1=t.f1*t.cx1/1,t.cy1=t.b+0-t.cu1,t.cx2=t.r+0-t.cx1,t.q1=t.h*t.a1/1e5,t.dy3=t.q1+0-t.dy1,t.q3=t.x2*t.x2/t.w,t.q4=t.x2+0-t.q3,t.q5=t.f1*t.q4/1,t.u3=t.q5+t.dy3-0,t.y3=t.b+0-t.u3,t.q6=t.dy1+t.dy3-t.u3,t.q7=t.q6+t.dy1-0,t.cu3=t.q7+t.dy3-0,t.cy3=t.b+0-t.cu3,t.rh=t.b+0-t.q1,t.q8=14*t.dy1/16,t.u2=(t.q8+t.rh)/2,t.y2=t.b+0-t.u2,t.u5=t.q5+t.rh-0,t.y5=t.b+0-t.u5,t.u6=t.u3+t.rh-0,t.y6=t.b+0-t.u6,t.cx4=+t.x2/2,t.q9=t.f1*t.cx4/1,t.cu4=t.q9+t.rh-0,t.cy4=t.b+0-t.cu4,t.cx5=t.r+0-t.cx4,t.cu6=t.cu3+t.rh-0,t.cy6=t.b+0-t.cu6,t.u7=t.u1+t.dy3-0,t.y7=t.b+0-t.u7,t.cu7=t.q1+t.q1-t.u7,t.cy7=t.b+0-t.cu7},e.ellipseRibbon2._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.rh}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.dy1}),e.push(r),e},e.ellipseRibbon2.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/8,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.rh}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:t.y2}),e.push(r),e},e.ellipseRibbon2.getTextRect=t=>({l:t.x2,t:t.y6,r:t.x5,b:t.rh}),e.ellipseRibbon2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx1,y1:t.cy1,x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy3,x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx2,y1:t.cy1,x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.q1},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx5,y1:t.cy4,x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y6},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy6,x:t.x2,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx4,y1:t.cy4,x:t.l,y:t.q1},r.push(s),s.x,s.y,s={action:"L",x:t.w/8,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x3,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy3,x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y7},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy7,x:t.x3,y:t.y7},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"darkenLess"}),r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.w/8,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.q1},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx4,y1:t.cy4,x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y6},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy6,x:t.x5,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx5,y1:t.cy4,x:t.r,y:t.q1},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx2,y1:t.cy1,x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"Q",x1:(t.l+t.r)/2,y1:t.cy3,x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"Q",x1:t.cx1,y1:t.cy1,x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"M",x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"M",x:t.x3,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"M",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y7},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.flowChartAlternateProcess={name:"flowChartAlternateProcess",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartAlternateProcess.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartAlternateProcess.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.flowChartAlternateProcess.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:Math.min(t.w,t.h)/6},n.push(i),r=i.x,s=i.y,o=Math.min(t.w,t.h)/6,l=Math.min(t.w,t.h)/6,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,o=Math.min(t.w,t.h)/6,l=Math.min(t.w,t.h)/6,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,o=Math.min(t.w,t.h)/6,l=Math.min(t.w,t.h)/6,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:Math.min(t.w,t.h)/6,y:t.b},n.push(i),r=i.x,s=i.y,o=Math.min(t.w,t.h)/6,l=Math.min(t.w,t.h)/6,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:Math.min(t.w,t.h)/6,ry:Math.min(t.w,t.h)/6,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartAlternateProcess.updateShapeGuides=t=>{t.x2=t.r+0-Math.min(t.w,t.h)/6,t.y2=t.b+0-Math.min(t.w,t.h)/6,t.il=Math.min(t.w,t.h)/6*29289/1e5,t.ir=t.r+0-t.il,t.ib=t.b+0-t.il},e.flowChartCollate={name:"flowChartCollate",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartCollate.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),e},e.flowChartCollate.getTextRect=t=>({l:t.w/4,t:t.h/4,r:t.ir,b:t.ib}),e.flowChartCollate.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartCollate.updateShapeGuides=t=>{t.ir=3*t.w/4,t.ib=3*t.h/4},e.flowChartConnector={name:"flowChartConnector",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartConnector.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),e},e.flowChartConnector.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.flowChartConnector.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartConnector.updateShapeGuides=t=>{t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.flowChartDecision={name:"flowChartDecision",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartDecision.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartDecision.getTextRect=t=>({l:t.w/4,t:t.h/4,r:t.ir,b:t.ib}),e.flowChartDecision.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartDecision.updateShapeGuides=t=>{t.ir=3*t.w/4,t.ib=3*t.h/4},e.flowChartDelay={name:"flowChartDelay",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartDelay.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartDelay.getTextRect=t=>({l:t.l,t:t.it,r:t.ir,b:t.ib}),e.flowChartDelay.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartDelay.updateShapeGuides=t=>{t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.flowChartDisplay={name:"flowChartDisplay",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartDisplay.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartDisplay.getTextRect=t=>({l:t.w/6,t:t.t,r:t.x2,b:t.b}),e.flowChartDisplay.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u;return n=[],r=0,s=0,i={action:"M",x:0*t.w/6,y:3*t.h/6},n.push(i),r=i.x,s=i.y,i={action:"L",x:+t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,i={action:"L",x:5*t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,o=162e5,(u=0==(l=108e5))&&(l=108e5),h=a(1,3,o*Math.PI/108e5,6*r/t.w,6*s/t.h,(o+l)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:h.x*t.w/6,y:h.y*t.h/6,a:0,b:+(Math.abs(l)>108e5),c:l<0?0:1},n.push(i),u&&(r=i.x,s=i.y,o-=108e5,h=a(1,3,o*Math.PI/108e5,r,s,(o+(l=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:h.x*t.w/6,y:h.y*t.h/6,a:0,b:+(Math.abs(l)>108e5),c:l<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:+t.w/6,y:6*t.h/6},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartDisplay.updateShapeGuides=t=>{t.x2=5*t.w/6},e.flowChartDocument={name:"flowChartDocument",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartDocument.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartDocument.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.y1}),e.flowChartDocument.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:17322*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:10800*t.w/21600,y1:17322*t.h/21600,x2:10800*t.w/21600,y2:23922*t.h/21600,x:0*t.w/21600,y:20172*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartDocument.updateShapeGuides=t=>{t.y1=17322*t.h/21600,t.y2=20172*t.h/21600},e.flowChartExtract={name:"flowChartExtract",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartExtract.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/4,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartExtract.getTextRect=t=>({l:t.w/4,t:(t.t+t.b)/2,r:t.x2,b:t.b}),e.flowChartExtract.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartExtract.updateShapeGuides=t=>{t.x2=3*t.w/4},e.flowChartInputOutput={name:"flowChartInputOutput",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartInputOutput.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x4,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/10,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartInputOutput.getTextRect=t=>({l:t.w/5,t:t.t,r:t.x5,b:t.b}),e.flowChartInputOutput.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:+t.w/5,y:0*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:5*t.w/5,y:0*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:4*t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartInputOutput.updateShapeGuides=t=>{t.x3=2*t.w/5,t.x4=3*t.w/5,t.x5=4*t.w/5,t.x6=9*t.w/10},e.flowChartInternalStorage={name:"flowChartInternalStorage",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartInternalStorage.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartInternalStorage.getTextRect=t=>({l:t.w/8,t:t.h/8,r:t.r,b:t.b}),e.flowChartInternalStorage.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:+t.w/8,y:0*t.h/8},r.push(s),s.x,s.y,s={action:"L",x:+t.w/8,y:8*t.h/8},r.push(s),s.x,s.y,s={action:"M",x:0*t.w/8,y:+t.h/8},r.push(s),s.x,s.y,s={action:"L",x:8*t.w/8,y:+t.h/8},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:0*t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.flowChartMagneticDisk={name:"flowChartMagneticDisk",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartMagneticDisk.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.h/3}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartMagneticDisk.getTextRect=t=>({l:t.l,t:t.h/3,r:t.r,b:t.y3}),e.flowChartMagneticDisk.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:0*t.w/6,y:+t.h/6},n.push(i),r=i.x,s=i.y,o=3,l=1,h=108e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:6*t.w/6,y:5*t.h/6},n.push(i),r=i.x,s=i.y,o=3,l=1,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:6*t.w/6,y:+t.h/6},n.push(i),r=i.x,s=i.y,o=3,l=1,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),n=[],r=0,s=0,i={action:"M",x:0*t.w/6,y:+t.h/6},n.push(i),r=i.x,s=i.y,o=3,l=1,h=108e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:6*t.w/6,y:5*t.h/6},n.push(i),r=i.x,s=i.y,o=3,l=1,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:3*t.w/6,ry:+t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.flowChartMagneticDisk.updateShapeGuides=t=>{t.y3=5*t.h/6},e.flowChartMagneticDrum={name:"flowChartMagneticDrum",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartMagneticDrum.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartMagneticDrum.getTextRect=t=>({l:t.w/6,t:t.t,r:t.x2,b:t.b}),e.flowChartMagneticDrum.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:+t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,i={action:"L",x:5*t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,o=1,l=3,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:+t.w/6,y:6*t.h/6},n.push(i),r=i.x,s=i.y,o=1,l=3,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:5*t.w/6,y:6*t.h/6},n.push(i),r=i.x,s=i.y,o=1,l=3,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),n=[],r=0,s=0,i={action:"M",x:+t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,i={action:"L",x:5*t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,o=1,l=3,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:+t.w/6,y:6*t.h/6},n.push(i),r=i.x,s=i.y,o=1,l=3,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.flowChartMagneticDrum.updateShapeGuides=t=>{t.x2=2*t.w/3},e.flowChartMagneticTape={name:"flowChartMagneticTape",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartMagneticTape.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartMagneticTape.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.flowChartMagneticTape.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:(t.l+t.r)/2,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,u=t.ang1%216e5,(p=0!==t.ang1&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.ib},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartMagneticTape.updateShapeGuides=t=>{t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0,t.ang1=108e5*s(t.w,t.h)/Math.PI},e.flowChartManualInput={name:"flowChartManualInput",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartManualInput.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.hd10}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartManualInput.getTextRect=t=>({l:t.l,t:t.h/5,r:t.r,b:t.b}),e.flowChartManualInput.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/5,y:+t.h/5},r.push(s),s.x,s.y,s={action:"L",x:5*t.w/5,y:0*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:5*t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartManualOperation={name:"flowChartManualOperation",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartManualOperation.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/10,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartManualOperation.getTextRect=t=>({l:t.w/5,t:t.t,r:t.x3,b:t.b}),e.flowChartManualOperation.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/5,y:0*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:5*t.w/5,y:0*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:4*t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:+t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartManualOperation.updateShapeGuides=t=>{t.x3=4*t.w/5,t.x4=9*t.w/10},e.flowChartMerge={name:"flowChartMerge",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartMerge.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/4,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartMerge.getTextRect=t=>({l:t.w/4,t:t.t,r:t.x2,b:(t.t+t.b)/2}),e.flowChartMerge.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartMerge.updateShapeGuides=t=>{t.x2=3*t.w/4},e.flowChartMultidocument={name:"flowChartMultidocument",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartMultidocument.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x4,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y8}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartMultidocument.getTextRect=t=>({l:t.l,t:t.y2,r:t.x5,b:t.y8}),e.flowChartMultidocument.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/21600,y:20782*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:9298*t.w/21600,y1:23542*t.h/21600,x2:9298*t.w/21600,y2:18022*t.h/21600,x:18595*t.w/21600,y:18022*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18595*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:1532*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:1532*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2e4*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2e4*t.w/21600,y:16252*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:19298*t.w/21600,y1:16252*t.h/21600,x2:18595*t.w/21600,y2:16352*t.h/21600,x:18595*t.w/21600,y:16352*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18595*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:2972*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2972*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:14392*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:20800*t.w/21600,y1:14392*t.h/21600,x2:2e4*t.w/21600,y2:14467*t.h/21600,x:2e4*t.w/21600,y:14467*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2e4*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:0*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18595*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18595*t.w/21600,y:18022*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:9298*t.w/21600,y1:18022*t.h/21600,x2:9298*t.w/21600,y2:23542*t.h/21600,x:0*t.w/21600,y:20782*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:1532*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:1532*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2e4*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2e4*t.w/21600,y:16252*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:19298*t.w/21600,y1:16252*t.h/21600,x2:18595*t.w/21600,y2:16352*t.h/21600,x:18595*t.w/21600,y:16352*t.h/21600},r.push(s),s.x,s.y,s={action:"M",x:2972*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2972*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:14392*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:20800*t.w/21600,y1:14392*t.h/21600,x2:2e4*t.w/21600,y2:14467*t.h/21600,x:2e4*t.w/21600,y:14467*t.h/21600},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:0*t.w/21600,y:20782*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:9298*t.w/21600,y1:23542*t.h/21600,x2:9298*t.w/21600,y2:18022*t.h/21600,x:18595*t.w/21600,y:18022*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18595*t.w/21600,y:16352*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:18595*t.w/21600,y1:16352*t.h/21600,x2:19298*t.w/21600,y2:16252*t.h/21600,x:2e4*t.w/21600,y:16252*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2e4*t.w/21600,y:14467*t.h/21600},r.push(s),s.x,s.y,s={action:"C",x1:2e4*t.w/21600,y1:14467*t.h/21600,x2:20800*t.w/21600,y2:14392*t.h/21600,x:21600*t.w/21600,y:14392*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2972*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:2972*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:1532*t.w/21600,y:1815*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:1532*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/21600,y:3675*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"none"}),e},e.flowChartMultidocument.updateShapeGuides=t=>{t.y2=3675*t.h/21600,t.y8=20782*t.h/21600,t.x3=9298*t.w/21600,t.x4=12286*t.w/21600,t.x5=18595*t.w/21600},e.flowChartOffpageConnector={name:"flowChartOffpageConnector",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartOffpageConnector.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartOffpageConnector.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.y1}),e.flowChartOffpageConnector.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/10,y:0*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:10*t.w/10,y:0*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:10*t.w/10,y:8*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:5*t.w/10,y:10*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/10,y:8*t.h/10},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartOffpageConnector.updateShapeGuides=t=>{t.y1=4*t.h/5},e.flowChartOnlineStorage={name:"flowChartOnlineStorage",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartOnlineStorage.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartOnlineStorage.getTextRect=t=>({l:t.w/6,t:t.t,r:t.x2,b:t.b}),e.flowChartOnlineStorage.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:+t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,i={action:"L",x:6*t.w/6,y:0*t.h/6},n.push(i),r=i.x,s=i.y,o=1,l=3,h=162e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:+t.w/6,y:6*t.h/6},n.push(i),r=i.x,s=i.y,o=1,l=3,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,6*r/t.w,6*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:+t.w/6,ry:3*t.h/6,x:c.x*t.w/6,y:c.y*t.h/6,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartOnlineStorage.updateShapeGuides=t=>{t.x2=5*t.w/6},e.flowChartOr={name:"flowChartOr",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartOr.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),e},e.flowChartOr.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.flowChartOr.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:(t.l+t.r)/2,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.flowChartOr.updateShapeGuides=t=>{t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.flowChartPredefinedProcess={name:"flowChartPredefinedProcess",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartPredefinedProcess.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartPredefinedProcess.getTextRect=t=>({l:t.w/8,t:t.t,r:t.x2,b:t.b}),e.flowChartPredefinedProcess.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:+t.w/8,y:0*t.h/8},r.push(s),s.x,s.y,s={action:"L",x:+t.w/8,y:8*t.h/8},r.push(s),s.x,s.y,s={action:"M",x:7*t.w/8,y:0*t.h/8},r.push(s),s.x,s.y,s={action:"L",x:7*t.w/8,y:8*t.h/8},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:0*t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.flowChartPredefinedProcess.updateShapeGuides=t=>{t.x2=7*t.w/8},e.flowChartPreparation={name:"flowChartPreparation",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartPreparation.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartPreparation.getTextRect=t=>({l:t.w/5,t:t.t,r:t.x2,b:t.b}),e.flowChartPreparation.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/10,y:5*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/10,y:0*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:8*t.w/10,y:0*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:10*t.w/10,y:5*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:8*t.w/10,y:10*t.h/10},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/10,y:10*t.h/10},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartPreparation.updateShapeGuides=t=>{t.x2=4*t.w/5},e.flowChartProcess={name:"flowChartProcess",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartProcess.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartProcess.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.flowChartProcess.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:0*t.h/1},r.push(s),s.x,s.y,s={action:"L",x:+t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/1,y:+t.h/1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartPunchedCard={name:"flowChartPunchedCard",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartPunchedCard.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartPunchedCard.getTextRect=t=>({l:t.l,t:t.h/5,r:t.r,b:t.b}),e.flowChartPunchedCard.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/5,y:+t.h/5},r.push(s),s.x,s.y,s={action:"L",x:+t.w/5,y:0*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:5*t.w/5,y:0*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:5*t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/5,y:5*t.h/5},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.flowChartPunchedTape={name:"flowChartPunchedTape",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartPunchedTape.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.hd10}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartPunchedTape.getTextRect=t=>({l:t.l,t:t.h/5,r:t.r,b:t.ib}),e.flowChartPunchedTape.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:0*t.w/20,y:2*t.h/20},n.push(i),r=i.x,s=i.y,o=5,l=2,h=108e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,20*r/t.w,20*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5,l=2,h=108e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,20*r/t.w,20*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:20*t.w/20,y:18*t.h/20},n.push(i),r=i.x,s=i.y,o=5,l=2,h=0,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,20*r/t.w,20*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=5,l=2,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,20*r/t.w,20*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:5*t.w/20,ry:2*t.h/20,x:c.x*t.w/20,y:c.y*t.h/20,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartPunchedTape.updateShapeGuides=t=>{t.y2=9*t.h/10,t.ib=4*t.h/5},e.flowChartSort={name:"flowChartSort",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartSort.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartSort.getTextRect=t=>({l:t.w/4,t:t.h/4,r:t.ir,b:t.ib}),e.flowChartSort.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:0*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:0*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),r=[],s={action:"M",x:0*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:0*t.h/2},r.push(s),s.x,s.y,s={action:"L",x:2*t.w/2,y:+t.h/2},r.push(s),s.x,s.y,s={action:"L",x:+t.w/2,y:2*t.h/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.flowChartSort.updateShapeGuides=t=>{t.ir=3*t.w/4,t.ib=3*t.h/4},e.flowChartSummingJunction={name:"flowChartSummingJunction",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartSummingJunction.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),e},e.flowChartSummingJunction.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.flowChartSummingJunction.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.il,y:t.it},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.ir,y:t.ib},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ir,y:t.it},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.il,y:t.ib},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.flowChartSummingJunction.updateShapeGuides=t=>{t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.flowChartTerminator={name:"flowChartTerminator",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.flowChartTerminator.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.flowChartTerminator.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.flowChartTerminator.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:3475*t.w/21600,y:0*t.h/21600},n.push(i),r=i.x,s=i.y,i={action:"L",x:18125*t.w/21600,y:0*t.h/21600},n.push(i),r=i.x,s=i.y,o=3475,l=10800,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,21600*r/t.w,21600*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:3475*t.w/21600,ry:10800*t.h/21600,x:c.x*t.w/21600,y:c.y*t.h/21600,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:3475*t.w/21600,ry:10800*t.h/21600,x:c.x*t.w/21600,y:c.y*t.h/21600,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:3475*t.w/21600,y:21600*t.h/21600},n.push(i),r=i.x,s=i.y,o=3475,l=10800,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,21600*r/t.w,21600*s/t.h,(h+u)*Math.PI/108e5),i={action:"A",rx:3475*t.w/21600,ry:10800*t.h/21600,x:c.x*t.w/21600,y:c.y*t.h/21600,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:3475*t.w/21600,ry:10800*t.h/21600,x:c.x*t.w/21600,y:c.y*t.h/21600,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.flowChartTerminator.updateShapeGuides=t=>{t.il=1018*t.w/21600,t.ir=20582*t.w/21600,t.it=3163*t.h/21600,t.ib=18437*t.h/21600},e.foldedCorner={name:"foldedCorner",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.foldedCorner.getDefaultAdjustValues=t=>{let e={};return e.adj=16667,e},e.foldedCorner.getAdjustValueNames=()=>["adj"],e.foldedCorner.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dy2=Math.min(t.w,t.h)*t.a/1e5,t.dy1=+t.dy2/5,t.x1=t.r+0-t.dy2,t.x2=t.x1+t.dy1-0,t.y2=t.b+0-t.dy2,t.y1=t.y2+t.dy1-0},e.foldedCorner._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.b}),e.push(r),e},e.foldedCorner.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.foldedCorner.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.y2}),e.foldedCorner.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"norm"}),r=[],s={action:"M",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!1,fill:"darkenLess"}),r=[],s={action:"M",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.frame={name:"frame",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.frame.getDefaultAdjustValues=t=>{let e={};return e.adj1=12500,e},e.frame.getAdjustValueNames=()=>["adj1"],e.frame.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.x1=Math.min(t.w,t.h)*t.a1/1e5,t.x4=t.r+0-t.x1,t.y4=t.b+0-t.x1},e.frame._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.frame.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.frame.getTextRect=t=>({l:t.x1,t:t.x1,r:t.x4,b:t.y4}),e.frame.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.x1,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.x1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.halfFrame={name:"halfFrame",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.halfFrame.getDefaultAdjustValues=t=>{let e={};return e.adj1=33333,e.adj2=33333,e},e.halfFrame.getAdjustValueNames=()=>["adj1","adj2"],e.halfFrame.updateShapeGuides=t=>{t.maxAdj2=1e5*t.w/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.x1=Math.min(t.w,t.h)*t.a2/1e5,t.g1=t.h*t.x1/t.w,t.g2=t.h+0-t.g1,t.maxAdj1=1e5*t.g2/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.y1=Math.min(t.w,t.h)*t.a1/1e5,t.dx2=t.y1*t.w/t.h,t.x2=t.r+0-t.dx2,t.dy2=t.x1*t.h/t.w,t.y2=t.b+0-t.dy2,t.cx1=+t.x1/2,t.cy1=(t.y2+t.b)/2,t.cx2=(t.x2+t.r)/2,t.cy2=+t.y1/2},e.halfFrame._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.halfFrame.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.cx2,y:t.cy2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.cx1,y:t.cy1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.halfFrame.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.halfFrame.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.heart={name:"heart",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.heart.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.h/4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),e},e.heart.getTextRect=t=>({l:t.il,t:t.h/4,r:t.ir,b:t.ib}),e.heart.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:(t.l+t.r)/2,y:t.h/4},r.push(s),s.x,s.y,s={action:"C",x1:t.x3,y1:t.y1,x2:t.x4,y2:t.h/4,x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"C",x1:t.x1,y1:t.h/4,x2:t.x2,y2:t.y1,x:(t.l+t.r)/2,y:t.h/4},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.heart.updateShapeGuides=t=>{t.dx1=49*t.w/48,t.dx2=10*t.w/48,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.y1=t.t+0-t.h/3,t.il=+t.w/6,t.ir=5*t.w/6,t.ib=2*t.h/3},e.heptagon={name:"heptagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.heptagon.getDefaultAdjustValues=t=>{let e={};return e.hf=102572,e.vf=105210,e},e.heptagon.getAdjustValueNames=()=>["hf","vf"],e.heptagon.updateShapeGuides=t=>{t.swd2=t.w/2*t.hf/1e5,t.shd2=t.h/2*t.vf/1e5,t.svc=(t.t+t.b)/2*t.vf/1e5,t.dx1=97493*t.swd2/1e5,t.dx2=78183*t.swd2/1e5,t.dx3=43388*t.swd2/1e5,t.dy1=62349*t.shd2/1e5,t.dy2=22252*t.shd2/1e5,t.dy3=90097*t.shd2/1e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+0-t.dx3,t.x4=(t.l+t.r)/2+t.dx3-0,t.x5=(t.l+t.r)/2+t.dx2-0,t.x6=(t.l+t.r)/2+t.dx1-0,t.y1=t.svc+0-t.dy1,t.y2=t.svc+t.dy2-0,t.y3=t.svc+t.dy3-0,t.ib=t.b+0-t.y1},e.heptagon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x5,y:t.y1}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x4,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x2,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.heptagon.getTextRect=t=>({l:t.x2,t:t.y1,r:t.x5,b:t.ib}),e.heptagon.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.hexagon={name:"hexagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.hexagon.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e.vf=115470,e},e.hexagon.getAdjustValueNames=()=>["adj","vf"],e.hexagon.updateShapeGuides=t=>{t.maxAdj=5e4*t.w/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.shd2=t.h/2*t.vf/1e5,t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.dy1=t.shd2*Math.sin(36e5*Math.PI/108e5),t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+t.dy1-0,t.q1=-1*t.maxAdj/2,t.q2=t.a+t.q1-0,t.q3=t.q2>0?4:2,t.q4=t.q2>0?3:2,t.q5=t.q2>0?t.q1:0,t.q6=(t.a+t.q5)/t.q1,t.q7=-(t.q6*t.q4/1),t.q8=t.q3+t.q7-0,t.il=t.w*t.q8/24,t.it=t.h*t.q8/24,t.ir=t.r+0-t.il,t.ib=t.b+0-t.it},e.hexagon._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.hexagon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.y1}),e.push(r),e},e.hexagon.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.hexagon.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.homePlate={name:"homePlate",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.homePlate.getDefaultAdjustValues=t=>{let e={};return e.adj=5e4,e},e.homePlate.getAdjustValueNames=()=>["adj"],e.homePlate.updateShapeGuides=t=>{t.maxAdj=1e5*t.w/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.dx1=Math.min(t.w,t.h)*t.a/1e5,t.x1=t.r+0-t.dx1,t.ir=(t.x1+t.r)/2,t.x2=+t.x1/2},e.homePlate._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.homePlate.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.homePlate.getTextRect=t=>({l:t.l,t:t.t,r:t.ir,b:t.b}),e.homePlate.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.horizontalScroll={name:"horizontalScroll",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.horizontalScroll.getDefaultAdjustValues=t=>{let e={};return e.adj=12500,e},e.horizontalScroll.getAdjustValueNames=()=>["adj"],e.horizontalScroll.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,25e3)),t.ch=Math.min(t.w,t.h)*t.a/1e5,t.ch2=+t.ch/2,t.ch4=+t.ch/4,t.y3=t.ch+t.ch2-0,t.y4=t.ch+t.ch-0,t.y6=t.b+0-t.ch,t.y7=t.b+0-t.ch2,t.y5=t.y6+0-t.ch2,t.x3=t.r+0-t.ch,t.x4=t.r+0-t.ch2},e.horizontalScroll._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.ch,y:t.t}),e.push(r),e},e.horizontalScroll.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.ch}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y6}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.horizontalScroll.getTextRect=t=>({l:t.ch,t:t.ch,r:t.x4,b:t.y6}),e.horizontalScroll.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.r,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.ch2,y:t.ch},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y7},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=108e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y6},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ch2,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=0,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.ch2,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=0,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x4,y:t.ch},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=-162e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=108e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=108e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y5},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.y7},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x3,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.ch},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:t.x4,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:t.ch2,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.ch2,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=108e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:t.ch,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.y6},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.irregularSeal1={name:"irregularSeal1",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.irregularSeal1.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x24,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y6}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x12,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y18}),e.push(r),e},e.irregularSeal1.getTextRect=t=>({l:t.x5,t:t.y3,r:t.x21,b:t.y9}),e.irregularSeal1.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:10800*t.w/21600,y:5800*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14522*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14155*t.w/21600,y:5325*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18380*t.w/21600,y:4457*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:16702*t.w/21600,y:7315*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21097*t.w/21600,y:8137*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:17607*t.w/21600,y:10475*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:13290*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:16837*t.w/21600,y:12942*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18145*t.w/21600,y:18095*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14020*t.w/21600,y:14457*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:13247*t.w/21600,y:19737*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:10532*t.w/21600,y:14935*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:8485*t.w/21600,y:21600*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:7715*t.w/21600,y:15627*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:4762*t.w/21600,y:17617*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:5667*t.w/21600,y:13937*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:135*t.w/21600,y:14587*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:3722*t.w/21600,y:11775*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/21600,y:8615*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:4627*t.w/21600,y:7617*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:370*t.w/21600,y:2295*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:7312*t.w/21600,y:6320*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:8352*t.w/21600,y:2295*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.irregularSeal1.updateShapeGuides=t=>{t.x5=4627*t.w/21600,t.x12=8485*t.w/21600,t.x21=16702*t.w/21600,t.x24=14522*t.w/21600,t.y3=6320*t.h/21600,t.y6=8615*t.h/21600,t.y9=13937*t.h/21600,t.y18=13290*t.h/21600},e.irregularSeal2={name:"irregularSeal2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.irregularSeal2.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y8}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x16,y:t.y16}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y24}),e.push(r),e},e.irregularSeal2.getTextRect=t=>({l:t.x5,t:t.y3,r:t.x19,b:t.y17}),e.irregularSeal2.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:11462*t.w/21600,y:4342*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14790*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14525*t.w/21600,y:5777*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18007*t.w/21600,y:3172*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:16380*t.w/21600,y:6532*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:6645*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:16985*t.w/21600,y:9402*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18270*t.w/21600,y:11290*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:16380*t.w/21600,y:12310*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:18877*t.w/21600,y:15632*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14640*t.w/21600,y:14350*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14942*t.w/21600,y:17370*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:12180*t.w/21600,y:15935*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:11612*t.w/21600,y:18842*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:9872*t.w/21600,y:17370*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:8700*t.w/21600,y:19712*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:7527*t.w/21600,y:18125*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:4917*t.w/21600,y:21600*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:4805*t.w/21600,y:18240*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:1285*t.w/21600,y:17825*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:3330*t.w/21600,y:15370*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/21600,y:12877*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:3935*t.w/21600,y:11592*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:1172*t.w/21600,y:8270*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:5372*t.w/21600,y:7817*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:4502*t.w/21600,y:3625*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:8550*t.w/21600,y:6382*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:9722*t.w/21600,y:1887*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.irregularSeal2.updateShapeGuides=t=>{t.x2=9722*t.w/21600,t.x5=5372*t.w/21600,t.x16=11612*t.w/21600,t.x19=14640*t.w/21600,t.y2=1887*t.h/21600,t.y3=6382*t.h/21600,t.y8=12877*t.h/21600,t.y14=19712*t.h/21600,t.y16=18842*t.h/21600,t.y17=15935*t.h/21600,t.y24=6645*t.h/21600},e.leftArrow={name:"leftArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.leftArrow.getAdjustValueNames=()=>["adj1","adj2"],e.leftArrow.updateShapeGuides=t=>{t.maxAdj2=1e5*t.w/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.dx2=Math.min(t.w,t.h)*t.a2/1e5,t.x2=t.l+t.dx2-0,t.dy1=t.h*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+t.dy1-0,t.dx1=t.y1*t.dx2/(t.h/2),t.x1=t.x2+0-t.dx1},e.leftArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.r,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.leftArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.leftArrow.getTextRect=t=>({l:t.x1,t:t.y1,r:t.r,b:t.y2}),e.leftArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.leftArrowCallout={name:"leftArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftArrowCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e.adj4=64977,e},e.leftArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.leftArrowCallout.updateShapeGuides=t=>{t.maxAdj2=5e4*t.h/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.maxAdj3=1e5*t.w/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.q2=t.a3*Math.min(t.w,t.h)/t.w,t.maxAdj4=1e5-t.q2,t.a4=Math.max(0,Math.min(t.adj4,t.maxAdj4)),t.dy1=Math.min(t.w,t.h)*t.a2/1e5,t.dy2=Math.min(t.w,t.h)*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+t.dy2-0,t.y4=(t.t+t.b)/2+t.dy1-0,t.x1=Math.min(t.w,t.h)*t.a3/1e5,t.dx2=t.w*t.a4/1e5,t.x2=t.r+0-t.dx2,t.x3=(t.x2+t.r)/2},e.leftArrowCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.b}),e.push(r),e},e.leftArrowCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.leftArrowCallout.getTextRect=t=>({l:t.x2,t:t.t,r:t.r,b:t.b}),e.leftArrowCallout.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.leftBrace={name:"leftBrace",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftBrace.getDefaultAdjustValues=t=>{let e={};return e.adj1=8333,e.adj2=5e4,e},e.leftBrace.getAdjustValueNames=()=>["adj1","adj2"],e.leftBrace.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,1e5)),t.q1=1e5-t.a2,t.q2=Math.min(t.q1,t.a2),t.q3=+t.q2/2,t.maxAdj1=t.q3*t.h/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.y1=Math.min(t.w,t.h)*t.a1/1e5,t.y3=t.h*t.a2/1e5,t.y4=t.y3+t.y1-0,t.dx1=t.w/2*Math.cos(27e5*Math.PI/108e5),t.dy1=t.y1*Math.sin(27e5*Math.PI/108e5),t.il=t.r+0-t.dx1,t.it=t.y1+0-t.dy1,t.ib=t.b+t.dy1-t.y1},e.leftBrace._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y3}),e.push(r),e},e.leftBrace.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.r,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y3}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.r,y:t.b}),e.push(r),e},e.leftBrace.getTextRect=t=>({l:t.il,t:t.it,r:t.r,b:t.ib}),e.leftBrace.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.leftBracket={name:"leftBracket",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftBracket.getDefaultAdjustValues=t=>{let e={};return e.adj=8333,e},e.leftBracket.getAdjustValueNames=()=>["adj"],e.leftBracket.updateShapeGuides=t=>{t.maxAdj=5e4*t.h/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.y1=Math.min(t.w,t.h)*t.a/1e5,t.y2=t.b+0-t.y1,t.dx1=t.w*Math.cos(27e5*Math.PI/108e5),t.dy1=t.y1*Math.sin(27e5*Math.PI/108e5),t.il=t.r+0-t.dx1,t.it=t.y1+0-t.dy1,t.ib=t.b+t.dy1-t.y1},e.leftBracket._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),e},e.leftBracket.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.r,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.r,y:t.b}),e.push(r),e},e.leftBracket.getTextRect=t=>({l:t.il,t:t.it,r:t.r,b:t.ib}),e.leftBracket.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.leftRightArrow={name:"leftRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftRightArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.leftRightArrow.getAdjustValueNames=()=>["adj1","adj2"],e.leftRightArrow.updateShapeGuides=t=>{t.maxAdj2=5e4*t.w/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.x2=Math.min(t.w,t.h)*t.a2/1e5,t.x3=t.r+0-t.x2,t.dy=t.h*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy,t.y2=(t.t+t.b)/2+t.dy-0,t.dx1=t.y1*t.x2/(t.h/2),t.x1=t.x2+0-t.dx1,t.x4=t.x3+t.dx1-0},e.leftRightArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x3,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.leftRightArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),e},e.leftRightArrow.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x4,b:t.y2}),e.leftRightArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.leftRightArrowCallout={name:"leftRightArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftRightArrowCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e.adj4=48123,e},e.leftRightArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.leftRightArrowCallout.updateShapeGuides=t=>{t.maxAdj2=5e4*t.h/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.maxAdj3=5e4*t.w/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.q2=t.a3*Math.min(t.w,t.h)/(t.w/2),t.maxAdj4=1e5-t.q2,t.a4=Math.max(0,Math.min(t.adj4,t.maxAdj4)),t.dy1=Math.min(t.w,t.h)*t.a2/1e5,t.dy2=Math.min(t.w,t.h)*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+t.dy2-0,t.y4=(t.t+t.b)/2+t.dy1-0,t.x1=Math.min(t.w,t.h)*t.a3/1e5,t.x4=t.r+0-t.x1,t.dx2=t.w*t.a4/2e5,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0},e.leftRightArrowCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.b}),e.push(r),e},e.leftRightArrowCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.leftRightArrowCallout.getTextRect=t=>({l:t.x2,t:t.t,r:t.x3,b:t.b}),e.leftRightArrowCallout.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.leftRightUpArrow={name:"leftRightUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftRightUpArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e},e.leftRightUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.leftRightUpArrow.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.q1=1e5-t.maxAdj1,t.maxAdj3=+t.q1/2,t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.x1=Math.min(t.w,t.h)*t.a3/1e5,t.dx2=Math.min(t.w,t.h)*t.a2/1e5,t.x2=(t.l+t.r)/2+0-t.dx2,t.x5=(t.l+t.r)/2+t.dx2-0,t.dx3=Math.min(t.w,t.h)*t.a1/2e5,t.x3=(t.l+t.r)/2+0-t.dx3,t.x4=(t.l+t.r)/2+t.dx3-0,t.x6=t.r+0-t.x1,t.dy2=Math.min(t.w,t.h)*t.a2/5e4,t.y2=t.b+0-t.dy2,t.y4=t.b+0-t.dx2,t.y3=t.y4+0-t.dx3,t.y5=t.y4+t.dx3-0,t.il=t.dx3*t.x1/t.dx2,t.ir=t.r+0-t.il},e.leftRightUpArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x3,y:t.x1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.x1}),e.push(r),e},e.leftRightUpArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y5}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y4}),e.push(r),e},e.leftRightUpArrow.getTextRect=t=>({l:t.il,t:t.y3,r:t.ir,b:t.y5}),e.leftRightUpArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.leftUpArrow={name:"leftUpArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.leftUpArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e},e.leftUpArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.leftUpArrow.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.maxAdj3=1e5-t.maxAdj1,t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.x1=Math.min(t.w,t.h)*t.a3/1e5,t.dx2=Math.min(t.w,t.h)*t.a2/5e4,t.x2=t.r+0-t.dx2,t.y2=t.b+0-t.dx2,t.dx4=Math.min(t.w,t.h)*t.a2/1e5,t.x4=t.r+0-t.dx4,t.y4=t.b+0-t.dx4,t.dx3=Math.min(t.w,t.h)*t.a1/2e5,t.x3=t.x4+0-t.dx3,t.x5=t.x4+t.dx3-0,t.y3=t.y4+0-t.dx3,t.y5=t.y4+t.dx3-0,t.il=t.dx3*t.x1/t.dx4,t.cx1=(t.x1+t.x5)/2,t.cy1=(t.x1+t.y5)/2},e.leftUpArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x3,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.x1}),e.push(r),e},e.leftUpArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x4,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x2,y:t.x1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.cx1,y:t.y5}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x5,y:t.cy1}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.x1}),e.push(r),e},e.leftUpArrow.getTextRect=t=>({l:t.il,t:t.y3,r:t.x4,b:t.y5}),e.leftUpArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.lightningBolt={name:"lightningBolt",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.lightningBolt.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y6}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x5,y:t.y11}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.r,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x11,y:t.y7}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x8,y:t.y2}),e.push(r),e},e.lightningBolt.getTextRect=t=>({l:t.x4,t:t.y4,r:t.x9,b:t.y10}),e.lightningBolt.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:8472*t.w/21600,y:0*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:12860*t.w/21600,y:6080*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:11050*t.w/21600,y:6797*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:16577*t.w/21600,y:12007*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:14767*t.w/21600,y:12877*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:21600*t.w/21600,y:21600*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:10012*t.w/21600,y:14915*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:12222*t.w/21600,y:13987*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:5022*t.w/21600,y:9705*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:7602*t.w/21600,y:8382*t.h/21600},r.push(s),s.x,s.y,s={action:"L",x:0*t.w/21600,y:3890*t.h/21600},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.lightningBolt.updateShapeGuides=t=>{t.x1=5022*t.w/21600,t.x3=8472*t.w/21600,t.x4=8757*t.w/21600,t.x5=10012*t.w/21600,t.x8=12860*t.w/21600,t.x9=13917*t.w/21600,t.x11=16577*t.w/21600,t.y1=3890*t.h/21600,t.y2=6080*t.h/21600,t.y4=7437*t.h/21600,t.y6=9705*t.h/21600,t.y7=12007*t.h/21600,t.y10=14277*t.h/21600,t.y11=14915*t.h/21600},e.line={name:"line",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.line.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.l,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.r,y:t.b}),e.push(r),e},e.line.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.lineInv={name:"lineInv",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.lineInv.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.l,y:t.b}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.r,y:t.t}),e.push(r),e},e.lineInv.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.mathDivide={name:"mathDivide",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.mathDivide.getDefaultAdjustValues=t=>{let e={};return e.adj1=23520,e.adj2=5880,e.adj3=11760,e},e.mathDivide.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.mathDivide.updateShapeGuides=t=>{t.a1=Math.max(1e3,Math.min(t.adj1,36745)),t.ma1=0-t.a1,t.ma3h=(73490+t.ma1)/4,t.ma3w=36745*t.w/t.h,t.maxAdj3=Math.min(t.ma3h,t.ma3w),t.a3=Math.max(1e3,Math.min(t.adj3,t.maxAdj3)),t.m4a3=-4*t.a3/1,t.maxAdj2=73490+t.m4a3-t.a1,t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.dy1=t.h*t.a1/2e5,t.yg=t.h*t.a2/1e5,t.rad=t.h*t.a3/1e5,t.dx1=73490*t.w/2e5,t.y3=(t.t+t.b)/2+0-t.dy1,t.y4=(t.t+t.b)/2+t.dy1-0,t.a=t.yg+t.rad-0,t.y2=t.y3+0-t.a,t.y1=t.y2+0-t.rad,t.y5=t.b+0-t.y1,t.x1=(t.l+t.r)/2+0-t.dx1,t.x3=(t.l+t.r)/2+t.dx1-0,t.x2=(t.l+t.r)/2+0-t.rad},e.mathDivide._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.mathDivide.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x3,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y5}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),e.push(r),e},e.mathDivide.getTextRect=t=>({l:t.x1,t:t.y3,r:t.x3,b:t.y4}),e.mathDivide.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:(t.l+t.r)/2,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.rad,l=t.rad,h=162e5,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.rad,ry:t.rad,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.rad,ry:t.rad,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:(t.l+t.r)/2,y:t.y5},n.push(i),r=i.x,s=i.y,o=t.rad,l=t.rad,h=54e5,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.rad,ry:t.rad,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.rad,ry:t.rad,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x1,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.mathEqual={name:"mathEqual",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.mathEqual.getDefaultAdjustValues=t=>{let e={};return e.adj1=23520,e.adj2=11760,e},e.mathEqual.getAdjustValueNames=()=>["adj1","adj2"],e.mathEqual.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,36745)),t["2a1"]=2*t.a1/1,t.mAdj2=1e5-t["2a1"],t.a2=Math.max(0,Math.min(t.adj2,t.mAdj2)),t.dy1=t.h*t.a1/1e5,t.dy2=t.h*t.a2/2e5,t.dx1=73490*t.w/2e5,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+t.dy2-0,t.y1=t.y2+0-t.dy1,t.y4=t.y3+t.dy1-0,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+t.dx1-0,t.yC1=(t.y1+t.y2)/2,t.yC2=(t.y3+t.y4)/2},e.mathEqual._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y2}),e.push(r),e},e.mathEqual.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:t.yC1}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:t.yC2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.yC1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.yC2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),e.push(r),e},e.mathEqual.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x2,b:t.y4}),e.mathEqual.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.mathMinus={name:"mathMinus",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.mathMinus.getDefaultAdjustValues=t=>{let e={};return e.adj1=23520,e},e.mathMinus.getAdjustValueNames=()=>["adj1"],e.mathMinus.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.dy1=t.h*t.a1/2e5,t.dx1=73490*t.w/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+t.dy1-0,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+t.dx1-0},e.mathMinus._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),e},e.mathMinus.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),e.push(r),e},e.mathMinus.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x2,b:t.y2}),e.mathMinus.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.mathMultiply={name:"mathMultiply",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.mathMultiply.getDefaultAdjustValues=t=>{let e={};return e.adj1=23520,e},e.mathMultiply.getAdjustValueNames=()=>["adj1"],e.mathMultiply.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,51965)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.a=108e5*s(t.w,t.h)/Math.PI,t.sa=+Math.sin(t.a*Math.PI/108e5),t.ca=+Math.cos(t.a*Math.PI/108e5),t.ta=+Math.tan(t.a*Math.PI/108e5),t.dl=Math.sqrt(Math.pow(t.w,2)+Math.pow(t.h,2)+0),t.rw=51965*t.dl/1e5,t.lM=t.dl+0-t.rw,t.xM=t.ca*t.lM/2,t.yM=t.sa*t.lM/2,t.dxAM=t.sa*t.th/2,t.dyAM=t.ca*t.th/2,t.xA=t.xM+0-t.dxAM,t.yA=t.yM+t.dyAM-0,t.xB=t.xM+t.dxAM-0,t.yB=t.yM+0-t.dyAM,t.xBC=(t.l+t.r)/2+0-t.xB,t.yBC=t.xBC*t.ta/1,t.yC=t.yBC+t.yB-0,t.xD=t.r+0-t.xB,t.xE=t.r+0-t.xA,t.yFE=(t.t+t.b)/2+0-t.yA,t.xFE=+t.yFE/t.ta,t.xF=t.xE+0-t.xFE,t.xL=t.xA+t.xFE-0,t.yG=t.b+0-t.yA,t.yH=t.b+0-t.yB,t.yI=t.b+0-t.yC,t.xC2=t.r+0-t.xM,t.yC3=t.b+0-t.yM},e.mathMultiply._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.th}),e.push(r),e},e.mathMultiply.getConnections=t=>{let e=[],r;return(r={}).ang=t=>108e5,r.pos=t=>({x:t.xM,y:t.yM}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.xC2,y:t.yM}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.xC2,y:t.yC3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.xM,y:t.yC3}),e.push(r),e},e.mathMultiply.getTextRect=t=>({l:t.xA,t:t.yB,r:t.xE,b:t.yH}),e.mathMultiply.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.xA,y:t.yA},r.push(s),s.x,s.y,s={action:"L",x:t.xB,y:t.yB},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.yC},r.push(s),s.x,s.y,s={action:"L",x:t.xD,y:t.yB},r.push(s),s.x,s.y,s={action:"L",x:t.xE,y:t.yA},r.push(s),s.x,s.y,s={action:"L",x:t.xF,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.xE,y:t.yG},r.push(s),s.x,s.y,s={action:"L",x:t.xD,y:t.yH},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.yI},r.push(s),s.x,s.y,s={action:"L",x:t.xB,y:t.yH},r.push(s),s.x,s.y,s={action:"L",x:t.xA,y:t.yG},r.push(s),s.x,s.y,s={action:"L",x:t.xL,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.mathNotEqual={name:"mathNotEqual",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.mathNotEqual.getDefaultAdjustValues=t=>{let e={};return e.adj1=23520,e.adj2=66e5,e.adj3=11760,e},e.mathNotEqual.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.mathNotEqual.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.crAng=Math.max(42e5,Math.min(t.adj2,66e5)),t["2a1"]=2*t.a1/1,t.maxAdj3=1e5-t["2a1"],t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.dy1=t.h*t.a1/1e5,t.dy2=t.h*t.a3/2e5,t.dx1=73490*t.w/2e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x8=(t.l+t.r)/2+t.dx1-0,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+t.dy2-0,t.y1=t.y2+0-t.dy1,t.y4=t.y3+t.dy1-0,t.cadj2=t.crAng+0-54e5,t.xadj2=t.h/2*Math.tan(t.cadj2*Math.PI/108e5),t.len=Math.sqrt(Math.pow(t.xadj2,2)+Math.pow(t.h/2,2)+0),t.bhw=t.len*t.dy1/(t.h/2),t.bhw2=+t.bhw/2,t.x7=(t.l+t.r)/2+t.xadj2-t.bhw2,t.dx67=t.xadj2*t.y1/(t.h/2),t.x6=t.x7+0-t.dx67,t.dx57=t.xadj2*t.y2/(t.h/2),t.x5=t.x7+0-t.dx57,t.dx47=t.xadj2*t.y3/(t.h/2),t.x4=t.x7+0-t.dx47,t.dx37=t.xadj2*t.y4/(t.h/2),t.x3=t.x7+0-t.dx37,t.dx27=2*t.xadj2/1,t.x2=t.x7+0-t.dx27,t.rx7=t.x7+t.bhw-0,t.rx6=t.x6+t.bhw-0,t.rx5=t.x5+t.bhw-0,t.rx4=t.x4+t.bhw-0,t.rx3=t.x3+t.bhw-0,t.rx2=t.x2+t.bhw-0,t.dx7=t.dy1*(t.h/2)/t.len,t.rxt=t.x7+t.dx7-0,t.lxt=t.rx7+0-t.dx7,t.rx=t.cadj2>0?t.rxt:t.rx7,t.lx=t.cadj2>0?t.x7:t.lxt,t.dy3=t.dy1*t.xadj2/t.len,t.dy4=0-t.dy3,t.ry=t.cadj2>0?t.dy3:t.t,t.ly=t.cadj2>0?t.t:t.dy4,t.dlx=t.w+0-t.rx,t.drx=t.w+0-t.lx,t.dly=t.h+0-t.ry,t.dry=t.h+0-t.ly,t.xC1=(t.rx+t.lx)/2,t.xC2=(t.drx+t.dlx)/2,t.yC1=(t.ry+t.ly)/2,t.yC2=(t.y1+t.y2)/2,t.yC3=(t.y3+t.y4)/2,t.yC4=(t.dry+t.dly)/2},e.mathNotEqual._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.lx,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y2}),e.push(r),e},e.mathNotEqual.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x8,y:t.yC2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x8,y:t.yC3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.xC2,y:t.yC4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.yC2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.yC3}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.xC1,y:t.yC1}),e.push(r),e},e.mathNotEqual.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x8,b:t.y4}),e.mathNotEqual.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.lx,y:t.ly},r.push(s),s.x,s.y,s={action:"L",x:t.rx,y:t.ry},r.push(s),s.x,s.y,s={action:"L",x:t.rx6,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.rx5,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.rx4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.rx3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.drx,y:t.dry},r.push(s),s.x,s.y,s={action:"L",x:t.dlx,y:t.dly},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.mathPlus={name:"mathPlus",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.mathPlus.getDefaultAdjustValues=t=>{let e={};return e.adj1=23520,e},e.mathPlus.getAdjustValueNames=()=>["adj1"],e.mathPlus.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,73490)),t.dx1=73490*t.w/2e5,t.dy1=73490*t.h/2e5,t.dx2=Math.min(t.w,t.h)*t.a1/2e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dx2,t.y3=(t.t+t.b)/2+t.dx2-0,t.y4=(t.t+t.b)/2+t.dy1-0},e.mathPlus._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),e},e.mathPlus.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),e.push(r),e},e.mathPlus.getTextRect=t=>({l:t.x1,t:t.y2,r:t.x4,b:t.y3}),e.mathPlus.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.moon={name:"moon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.moon.getDefaultAdjustValues=t=>{let e={};return e.adj=5e4,e},e.moon.getAdjustValueNames=()=>["adj"],e.moon.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,87500)),t.g0=Math.min(t.w,t.h)*t.a/1e5,t.g0w=t.g0*t.w/Math.min(t.w,t.h),t.g1=Math.min(t.w,t.h)+0-t.g0,t.g2=t.g0*t.g0/t.g1,t.g3=Math.min(t.w,t.h)*Math.min(t.w,t.h)/t.g1,t.g4=2*t.g3/1,t.g5=t.g4+0-t.g2,t.g6=t.g5+0-t.g0,t.g6w=t.g6*t.w/Math.min(t.w,t.h),t.g7=+t.g5/2,t.g8=t.g7+0-t.g0,t.dy1=t.g8*(t.h/2)/Math.min(t.w,t.h),t.g10h=(t.t+t.b)/2+0-t.dy1,t.g11h=(t.t+t.b)/2+t.dy1-0,t.g12=9598*t.g0/32768,t.g12w=t.g12*t.w/Math.min(t.w,t.h),t.g13=Math.min(t.w,t.h)+0-t.g12,t.q1=Math.min(t.w,t.h)*Math.min(t.w,t.h)/1,t.q2=t.g13*t.g13/1,t.q3=t.q1+0-t.q2,t.q4=Math.sqrt(t.q3),t.dy4=t.q4*(t.h/2)/Math.min(t.w,t.h),t.g15h=(t.t+t.b)/2+0-t.dy4,t.g16h=(t.t+t.b)/2+t.dy4-0,t.g17w=t.g6w+0-t.g0w,t.g18w=+t.g17w/2,t.dx2p=t.g0w+t.g18w-t.w,t.dx2=-1*t.dx2p/1,t.dy2=-(t.h/2*1)/1,t.stAng1=108e5*s(t.dx2,t.dy2)/Math.PI,t.enAngp1=108e5*s(t.dx2,t.h/2)/Math.PI,t.enAng1=t.enAngp1+0-216e5,t.swAng1=t.enAng1+0-t.stAng1},e.moon._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.g0w,y:(t.t+t.b)/2}),e.push(r),e},e.moon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.r,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.r,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.g0w,y:(t.t+t.b)/2}),e.push(r),e},e.moon.getTextRect=t=>({l:t.g12w,t:t.g15h,r:t.g0w,b:t.g16h}),e.moon.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w,l=t.h/2,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.g18w,l=t.dy1,h=t.stAng1,u=t.swAng1%216e5,(p=0!==t.swAng1&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.g18w,ry:t.dy1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.g18w,ry:t.dy1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.noSmoking={name:"noSmoking",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.noSmoking.getDefaultAdjustValues=t=>{let e={};return e.adj=18750,e},e.noSmoking.getAdjustValueNames=()=>["adj"],e.noSmoking.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dr=Math.min(t.w,t.h)*t.a/1e5,t.iwd2=t.w/2+0-t.dr,t.ihd2=t.h/2+0-t.dr,t.ang=108e5*s(t.w,t.h)/Math.PI,t.ct=t.ihd2*Math.cos(t.ang*Math.PI/108e5),t.st=t.iwd2*Math.sin(t.ang*Math.PI/108e5),t.m=Math.sqrt(Math.pow(t.ct,2)+Math.pow(t.st,2)+0),t.n=t.iwd2*t.ihd2/t.m,t.drd2=+t.dr/2,t.dang=108e5*s(t.n,t.drd2)/Math.PI,t["2dang"]=2*t.dang/1,t.swAng=-108e5+t["2dang"]-0,t.t3=108e5*s(t.w,t.h)/Math.PI,t.stAng1=t.t3+0-t.dang,t.stAng2=t.stAng1+0-108e5,t.ct1=t.ihd2*Math.cos(t.stAng1*Math.PI/108e5),t.st1=t.iwd2*Math.sin(t.stAng1*Math.PI/108e5),t.m1=Math.sqrt(Math.pow(t.ct1,2)+Math.pow(t.st1,2)+0),t.n1=t.iwd2*t.ihd2/t.m1,t.dx1=t.n1*Math.cos(t.stAng1*Math.PI/108e5),t.dy1=t.n1*Math.sin(t.stAng1*Math.PI/108e5),t.x1=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+t.dy1-0,t.x2=(t.l+t.r)/2+0-t.dx1,t.y2=(t.t+t.b)/2+0-t.dy1,t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.noSmoking._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.dr,y:(t.t+t.b)/2}),e.push(r),e},e.noSmoking.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),e},e.noSmoking.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.noSmoking.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.iwd2,l=t.ihd2,h=t.stAng1,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x2,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.iwd2,l=t.ihd2,h=t.stAng2,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.iwd2,ry:t.ihd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.notchedRightArrow={name:"notchedRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.notchedRightArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.notchedRightArrow.getAdjustValueNames=()=>["adj1","adj2"],e.notchedRightArrow.updateShapeGuides=t=>{t.maxAdj2=1e5*t.w/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.dx2=Math.min(t.w,t.h)*t.a2/1e5,t.x2=t.r+0-t.dx2,t.dy1=t.h*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+t.dy1-0,t.x1=t.dy1*t.dx2/(t.h/2),t.x3=t.r+0-t.x1},e.notchedRightArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.r,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.notchedRightArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.notchedRightArrow.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x3,b:t.y2}),e.notchedRightArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.octagon={name:"octagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.octagon.getDefaultAdjustValues=t=>{let e={};return e.adj=29289,e},e.octagon.getAdjustValueNames=()=>["adj"],e.octagon.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.y2=t.b+0-t.x1,t.il=+t.x1/2,t.ir=t.r+0-t.il,t.ib=t.b+0-t.il},e.octagon._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.octagon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.x1}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.x1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.octagon.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.octagon.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.parallelogram={name:"parallelogram",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.parallelogram.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e},e.parallelogram.getAdjustValueNames=()=>["adj"],e.parallelogram.updateShapeGuides=t=>{t.maxAdj=1e5*t.w/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.x1=Math.min(t.w,t.h)*t.a/2e5,t.x2=Math.min(t.w,t.h)*t.a/1e5,t.x6=t.r+0-t.x1,t.x5=t.r+0-t.x2,t.x3=+t.x5/2,t.x4=t.r+0-t.x3,t.il=t.w/2*t.a/t.maxAdj,t.q1=5*t.a/t.maxAdj,t.q2=(1+t.q1)/12,t.il=t.q2*t.w/1,t.it=t.q2*t.h/1,t.ir=t.r+0-t.il,t.ib=t.b+0-t.it,t.q3=t.h*((t.l+t.r)/2)/t.x2,t.y1=Math.max(0,Math.min(t.q3,t.h)),t.y2=t.b+0-t.y1},e.parallelogram._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.parallelogram.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x4,y:t.t}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),e},e.parallelogram.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.parallelogram.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.pentagon={name:"pentagon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.pentagon.getDefaultAdjustValues=t=>{let e={};return e.hf=105146,e.vf=110557,e},e.pentagon.getAdjustValueNames=()=>["hf","vf"],e.pentagon.updateShapeGuides=t=>{t.swd2=t.w/2*t.hf/1e5,t.shd2=t.h/2*t.vf/1e5,t.svc=(t.t+t.b)/2*t.vf/1e5,t.dx1=t.swd2*Math.cos(108e4*Math.PI/108e5),t.dx2=t.swd2*Math.cos(1836e4*Math.PI/108e5),t.dy1=t.shd2*Math.sin(108e4*Math.PI/108e5),t.dy2=t.shd2*Math.sin(1836e4*Math.PI/108e5),t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.y1=t.svc+0-t.dy1,t.y2=t.svc+0-t.dy2,t.it=t.y1*t.dx2/t.dx1},e.pentagon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y1}),e.push(r),e},e.pentagon.getTextRect=t=>({l:t.x2,t:t.it,r:t.x3,b:t.y2}),e.pentagon.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.pie={name:"pie",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.pie.getDefaultAdjustValues=t=>{let e={};return e.adj1=0,e.adj2=162e5,e},e.pie.getAdjustValueNames=()=>["adj1","adj2"],e.pie.updateShapeGuides=t=>{t.stAng=Math.max(0,Math.min(t.adj1,21599999)),t.enAng=Math.max(0,Math.min(t.adj2,21599999)),t.sw1=t.enAng+0-t.stAng,t.sw2=t.sw1+216e5-0,t.swAng=t.sw1>0?t.sw1:t.sw2,t.wt1=t.w/2*Math.sin(t.stAng*Math.PI/108e5),t.ht1=t.h/2*Math.cos(t.stAng*Math.PI/108e5),t.dx1=t.w/2*Math.cos(s(t.ht1,t.wt1)),t.dy1=t.h/2*Math.sin(s(t.ht1,t.wt1)),t.x1=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+t.dy1-0,t.wt2=t.w/2*Math.sin(t.enAng*Math.PI/108e5),t.ht2=t.h/2*Math.cos(t.enAng*Math.PI/108e5),t.dx2=t.w/2*Math.cos(s(t.ht2,t.wt2)),t.dy2=t.h/2*Math.sin(s(t.ht2,t.wt2)),t.x2=(t.l+t.r)/2+t.dx2-0,t.y2=(t.t+t.b)/2+t.dy2-0,t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.pie._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.y2}),e.push(r),e},e.pie.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.pie.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.pie.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=t.stAng,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.plaque={name:"plaque",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.plaque.getDefaultAdjustValues=t=>{let e={};return e.adj=16667,e},e.plaque.getAdjustValueNames=()=>["adj"],e.plaque.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.y2=t.b+0-t.x1,t.il=70711*t.x1/1e5,t.ir=t.r+0-t.il,t.ib=t.b+0-t.il},e.plaque._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.plaque.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.plaque.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.plaque.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.b},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.plus={name:"plus",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.plus.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e},e.plus.getAdjustValueNames=()=>["adj"],e.plus.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.y2=t.b+0-t.x1,t.d=t.w+0-t.h,t.il=t.d>0?t.l:t.x1,t.ir=t.d>0?t.r:t.x2,t.it=t.d>0?t.x1:t.t,t.ib=t.d>0?t.y2:t.b},e.plus._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.plus.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.plus.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.plus.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.quadArrow={name:"quadArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.quadArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=22500,e.adj2=22500,e.adj3=22500,e},e.quadArrow.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.quadArrow.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.q1=1e5-t.maxAdj1,t.maxAdj3=+t.q1/2,t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.x1=Math.min(t.w,t.h)*t.a3/1e5,t.dx2=Math.min(t.w,t.h)*t.a2/1e5,t.x2=(t.l+t.r)/2+0-t.dx2,t.x5=(t.l+t.r)/2+t.dx2-0,t.dx3=Math.min(t.w,t.h)*t.a1/2e5,t.x3=(t.l+t.r)/2+0-t.dx3,t.x4=(t.l+t.r)/2+t.dx3-0,t.x6=t.r+0-t.x1,t.y2=(t.t+t.b)/2+0-t.dx2,t.y5=(t.t+t.b)/2+t.dx2-0,t.y3=(t.t+t.b)/2+0-t.dx3,t.y4=(t.t+t.b)/2+t.dx3-0,t.y6=t.b+0-t.x1,t.il=t.dx3*t.x1/t.dx2,t.ir=t.r+0-t.il},e.quadArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x3,y:t.x1}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.x1}),e.push(r),e},e.quadArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.quadArrow.getTextRect=t=>({l:t.il,t:t.y3,r:t.ir,b:t.y4}),e.quadArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.x1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y5},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.quadArrowCallout={name:"quadArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.quadArrowCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=18515,e.adj2=18515,e.adj3=18515,e.adj4=48123,e},e.quadArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.quadArrowCallout.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.maxAdj3=5e4-t.a2,t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.q2=2*t.a3/1,t.maxAdj4=1e5-t.q2,t.a4=Math.max(t.a1,Math.min(t.adj4,t.maxAdj4)),t.dx2=Math.min(t.w,t.h)*t.a2/1e5,t.dx3=Math.min(t.w,t.h)*t.a1/2e5,t.ah=Math.min(t.w,t.h)*t.a3/1e5,t.dx1=t.w*t.a4/2e5,t.dy1=t.h*t.a4/2e5,t.x8=t.r+0-t.ah,t.x2=(t.l+t.r)/2+0-t.dx1,t.x7=(t.l+t.r)/2+t.dx1-0,t.x3=(t.l+t.r)/2+0-t.dx2,t.x6=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+0-t.dx3,t.x5=(t.l+t.r)/2+t.dx3-0,t.y8=t.b+0-t.ah,t.y2=(t.t+t.b)/2+0-t.dy1,t.y7=(t.t+t.b)/2+t.dy1-0,t.y3=(t.t+t.b)/2+0-t.dx2,t.y6=(t.t+t.b)/2+t.dx2-0,t.y4=(t.t+t.b)/2+0-t.dx3,t.y5=(t.t+t.b)/2+t.dx3-0},e.quadArrowCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x4,y:t.ah}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.ah}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),e},e.quadArrowCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.quadArrowCallout.getTextRect=t=>({l:t.x2,t:t.y2,r:t.x7,b:t.y7}),e.quadArrowCallout.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.ah,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.ah,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.ah},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.ah},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.ah},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.ah},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.ah,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.ah,y:t.y6},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.rect={name:"rect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.rect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.rect.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.rect.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.ribbon={name:"ribbon",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.ribbon.getDefaultAdjustValues=t=>{let e={};return e.adj1=16667,e.adj2=5e4,e},e.ribbon.getAdjustValueNames=()=>["adj1","adj2"],e.ribbon.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,33333)),t.a2=Math.max(25e3,Math.min(t.adj2,75e3)),t.x10=t.r+0-t.w/8,t.dx2=t.w*t.a2/2e5,t.x2=(t.l+t.r)/2+0-t.dx2,t.x9=(t.l+t.r)/2+t.dx2-0,t.x3=t.x2+t.w/32-0,t.x8=t.x9+0-t.w/32,t.x5=t.x2+t.w/8-0,t.x6=t.x9+0-t.w/8,t.x4=t.x5+0-t.w/32,t.x7=t.x6+t.w/32-0,t.y1=t.h*t.a1/2e5,t.y2=t.h*t.a1/1e5,t.y4=t.b+0-t.y2,t.y3=+t.y4/2,t.hR=t.h*t.a1/4e5,t.y5=t.b+0-t.hR,t.y6=t.y2+0-t.hR},e.ribbon._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.ribbon.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/8,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x10,y:t.y3}),e.push(r),e},e.ribbon.getTextRect=t=>({l:t.x2,t:t.y2,r:t.x9,b:t.b}),e.ribbon.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x10,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y5},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.w/8,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x5,y:t.hR},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x5,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x6,y:t.hR},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x10,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y5},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.w/8,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x5,y:t.hR},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x5,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x6,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.hR},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x2,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x9,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.ribbon2={name:"ribbon2",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.ribbon2.getDefaultAdjustValues=t=>{let e={};return e.adj1=16667,e.adj2=5e4,e},e.ribbon2.getAdjustValueNames=()=>["adj1","adj2"],e.ribbon2.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,33333)),t.a2=Math.max(25e3,Math.min(t.adj2,75e3)),t.x10=t.r+0-t.w/8,t.dx2=t.w*t.a2/2e5,t.x2=(t.l+t.r)/2+0-t.dx2,t.x9=(t.l+t.r)/2+t.dx2-0,t.x3=t.x2+t.w/32-0,t.x8=t.x9+0-t.w/32,t.x5=t.x2+t.w/8-0,t.x6=t.x9+0-t.w/8,t.x4=t.x5+0-t.w/32,t.x7=t.x6+t.w/32-0,t.dy1=t.h*t.a1/2e5,t.y1=t.b+0-t.dy1,t.dy2=t.h*t.a1/1e5,t.y2=t.b+0-t.dy2,t.y4=t.t+t.dy2-0,t.y3=(t.y4+t.b)/2,t.hR=t.h*t.a1/4e5,t.y6=t.b+0-t.hR,t.y7=t.y1+0-t.hR},e.ribbon2._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.b}),e.push(r),e},e.ribbon2.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.w/8,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x10,y:t.y3}),e.push(r),e},e.ribbon2.getTextRect=t=>({l:t.x2,t:t.t,r:t.x9,b:t.y2}),e.ribbon2.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x10,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.hR},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.w/8,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x5,y:t.y6},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x5,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x6,y:t.y6},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.w/8,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.hR},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x10,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.b},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=54e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/32,l=t.hR,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/32,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x5,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x5,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x6,y:t.y6},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x2,y:t.y7},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y7},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.rightArrow={name:"rightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.rightArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.rightArrow.getAdjustValueNames=()=>["adj1","adj2"],e.rightArrow.updateShapeGuides=t=>{t.maxAdj2=1e5*t.w/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.dx1=Math.min(t.w,t.h)*t.a2/1e5,t.x1=t.r+0-t.dx1,t.dy1=t.h*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+t.dy1-0,t.dx2=t.y1*t.dx1/(t.h/2),t.x2=t.x1+t.dx2-0},e.rightArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.rightArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.rightArrow.getTextRect=t=>({l:t.l,t:t.y1,r:t.x2,b:t.y2}),e.rightArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.rightArrowCallout={name:"rightArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.rightArrowCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e.adj4=64977,e},e.rightArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.rightArrowCallout.updateShapeGuides=t=>{t.maxAdj2=5e4*t.h/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.maxAdj3=1e5*t.w/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.q2=t.a3*Math.min(t.w,t.h)/t.w,t.maxAdj4=1e5-t.q2,t.a4=Math.max(0,Math.min(t.adj4,t.maxAdj4)),t.dy1=Math.min(t.w,t.h)*t.a2/1e5,t.dy2=Math.min(t.w,t.h)*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+t.dy2-0,t.y4=(t.t+t.b)/2+t.dy1-0,t.dx3=Math.min(t.w,t.h)*t.a3/1e5,t.x3=t.r+0-t.dx3,t.x2=t.w*t.a4/1e5,t.x1=+t.x2/2},e.rightArrowCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x3,y:t.y2}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x3,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.b}),e.push(r),e},e.rightArrowCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.rightArrowCallout.getTextRect=t=>({l:t.l,t:t.t,r:t.x2,b:t.b}),e.rightArrowCallout.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.rightBrace={name:"rightBrace",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.rightBrace.getDefaultAdjustValues=t=>{let e={};return e.adj1=8333,e.adj2=5e4,e},e.rightBrace.getAdjustValueNames=()=>["adj1","adj2"],e.rightBrace.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,1e5)),t.q1=1e5-t.a2,t.q2=Math.min(t.q1,t.a2),t.q3=+t.q2/2,t.maxAdj1=t.q3*t.h/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.y1=Math.min(t.w,t.h)*t.a1/1e5,t.y3=t.h*t.a2/1e5,t.y2=t.y3+0-t.y1,t.y4=t.b+0-t.y1,t.dx1=t.w/2*Math.cos(27e5*Math.PI/108e5),t.dy1=t.y1*Math.sin(27e5*Math.PI/108e5),t.ir=t.l+t.dx1-0,t.it=t.y1+0-t.dy1,t.ib=t.b+t.dy1-t.y1},e.rightBrace._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y3}),e.push(r),e},e.rightBrace.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.l,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.r,y:t.y3}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.l,y:t.b}),e.push(r),e},e.rightBrace.getTextRect=t=>({l:t.l,t:t.it,r:t.ir,b:t.ib}),e.rightBrace.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=108e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:(t.l+t.r)/2,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.y1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.rightBracket={name:"rightBracket",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.rightBracket.getDefaultAdjustValues=t=>{let e={};return e.adj=8333,e},e.rightBracket.getAdjustValueNames=()=>["adj"],e.rightBracket.updateShapeGuides=t=>{t.maxAdj=5e4*t.h/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.y1=Math.min(t.w,t.h)*t.a/1e5,t.y2=t.b+0-t.y1,t.dx1=t.w*Math.cos(27e5*Math.PI/108e5),t.dy1=t.y1*Math.sin(27e5*Math.PI/108e5),t.ir=t.l+t.dx1-0,t.it=t.y1+0-t.dy1,t.ib=t.b+t.dy1-t.y1},e.rightBracket._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.r,y:t.y1}),e.push(r),e},e.rightBracket.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.l,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.l,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.rightBracket.getTextRect=t=>({l:t.l,t:t.it,r:t.ir,b:t.ib}),e.rightBracket.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.w,l=t.y1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w,ry:t.y1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.round1Rect={name:"round1Rect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.round1Rect.getDefaultAdjustValues=t=>{let e={};return e.adj=16667,e},e.round1Rect.getAdjustValueNames=()=>["adj"],e.round1Rect.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dx1=Math.min(t.w,t.h)*t.a/1e5,t.x1=t.r+0-t.dx1,t.idx=29289*t.dx1/1e5,t.ir=t.r+0-t.idx},e.round1Rect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.round1Rect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.round1Rect.getTextRect=t=>({l:t.l,t:t.t,r:t.ir,b:t.b}),e.round1Rect.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.t},n.push(i),r=i.x,s=i.y,o=t.dx1,l=t.dx1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.dx1,ry:t.dx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.dx1,ry:t.dx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.round2DiagRect={name:"round2DiagRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.round2DiagRect.getDefaultAdjustValues=t=>{let e={};return e.adj1=16667,e.adj2=0,e},e.round2DiagRect.getAdjustValueNames=()=>["adj1","adj2"],e.round2DiagRect.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.x1=Math.min(t.w,t.h)*t.a1/1e5,t.y1=t.b+0-t.x1,t.a=Math.min(t.w,t.h)*t.a2/1e5,t.x2=t.r+0-t.a,t.y2=t.b+0-t.a,t.dx1=29289*t.x1/1e5,t.dx2=29289*t.a/1e5,t.d=t.dx1+0-t.dx2,t.dx=t.d>0?t.dx1:t.dx2,t.ir=t.r+0-t.dx,t.ib=t.b+0-t.dx},e.round2DiagRect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.round2DiagRect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.round2DiagRect.getTextRect=t=>({l:t.dx,t:t.dx,r:t.ir,b:t.ib}),e.round2DiagRect.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.a,l=t.a,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.a,ry:t.a,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.a,ry:t.a,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.a,y:t.b},n.push(i),r=i.x,s=i.y,o=t.a,l=t.a,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.a,ry:t.a,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.a,ry:t.a,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.round2SameRect={name:"round2SameRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.round2SameRect.getDefaultAdjustValues=t=>{let e={};return e.adj1=16667,e.adj2=0,e},e.round2SameRect.getAdjustValueNames=()=>["adj1","adj2"],e.round2SameRect.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.tx1=Math.min(t.w,t.h)*t.a1/1e5,t.tx2=t.r+0-t.tx1,t.bx1=Math.min(t.w,t.h)*t.a2/1e5,t.bx2=t.r+0-t.bx1,t.by1=t.b+0-t.bx1,t.d=t.tx1+0-t.bx1,t.tdx=29289*t.tx1/1e5,t.bdx=29289*t.bx1/1e5,t.il=t.d>0?t.tdx:t.bdx,t.ir=t.r+0-t.il,t.ib=t.b+0-t.bdx},e.round2SameRect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.tx2,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.bx1,y:t.b}),e.push(r),e},e.round2SameRect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.round2SameRect.getTextRect=t=>({l:t.il,t:t.tdx,r:t.ir,b:t.ib}),e.round2SameRect.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.tx1,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.tx2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.tx1,l=t.tx1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.tx1,ry:t.tx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.tx1,ry:t.tx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.by1},n.push(i),r=i.x,s=i.y,o=t.bx1,l=t.bx1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bx1,ry:t.bx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bx1,ry:t.bx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.bx1,y:t.b},n.push(i),r=i.x,s=i.y,o=t.bx1,l=t.bx1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bx1,ry:t.bx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bx1,ry:t.bx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.tx1},n.push(i),r=i.x,s=i.y,o=t.tx1,l=t.tx1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.tx1,ry:t.tx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.tx1,ry:t.tx1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.roundRect={name:"roundRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.roundRect.getDefaultAdjustValues=t=>{let e={};return e.adj=16667,e},e.roundRect.getAdjustValueNames=()=>["adj"],e.roundRect.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.x1=Math.min(t.w,t.h)*t.a/1e5,t.x2=t.r+0-t.x1,t.y2=t.b+0-t.x1,t.il=29289*t.x1/1e5,t.ir=t.r+0-t.il,t.ib=t.b+0-t.il},e.roundRect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.roundRect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.roundRect.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.roundRect.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.b},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.rtTriangle={name:"rtTriangle",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.rtTriangle.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.l,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.l,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.r,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:(t.l+t.r)/2,y:(t.t+t.b)/2}),e.push(r),e},e.rtTriangle.getTextRect=t=>({l:t.w/12,t:t.it,r:t.ir,b:t.ib}),e.rtTriangle.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.rtTriangle.updateShapeGuides=t=>{t.it=7*t.h/12,t.ir=7*t.w/12,t.ib=11*t.h/12},e.smileyFace={name:"smileyFace",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.smileyFace.getDefaultAdjustValues=t=>{let e={};return e.adj=4653,e},e.smileyFace.getAdjustValueNames=()=>["adj"],e.smileyFace.updateShapeGuides=t=>{t.a=Math.max(-4653,Math.min(t.adj,4653)),t.x1=4969*t.w/21699,t.x2=6215*t.w/21600,t.x3=13135*t.w/21600,t.x4=16640*t.w/21600,t.y1=7570*t.h/21600,t.y3=16515*t.h/21600,t.dy2=t.h*t.a/1e5,t.y2=t.y3+0-t.dy2,t.y4=t.y3+t.dy2-0,t.dy3=t.h*t.a/5e4,t.y5=t.y4+t.dy3-0,t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0,t.wR=1125*t.w/21600,t.hR=1125*t.h/21600},e.smileyFace._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.y4}),e.push(r),e},e.smileyFace.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),e},e.smileyFace.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.smileyFace.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x2,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.hR,h=108e5,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"M",x:t.x3,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.hR,h=108e5,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"Q",x1:(t.l+t.r)/2,y1:t.y5,x:t.x4,y:t.y2},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.snip1Rect={name:"snip1Rect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.snip1Rect.getDefaultAdjustValues=t=>{let e={};return e.adj=16667,e},e.snip1Rect.getAdjustValueNames=()=>["adj"],e.snip1Rect.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dx1=Math.min(t.w,t.h)*t.a/1e5,t.x1=t.r+0-t.dx1,t.it=+t.dx1/2,t.ir=(t.x1+t.r)/2},e.snip1Rect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.snip1Rect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.snip1Rect.getTextRect=t=>({l:t.l,t:t.it,r:t.ir,b:t.b}),e.snip1Rect.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.dx1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.snip2DiagRect={name:"snip2DiagRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.snip2DiagRect.getDefaultAdjustValues=t=>{let e={};return e.adj1=0,e.adj2=16667,e},e.snip2DiagRect.getAdjustValueNames=()=>["adj1","adj2"],e.snip2DiagRect.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.lx1=Math.min(t.w,t.h)*t.a1/1e5,t.lx2=t.r+0-t.lx1,t.ly1=t.b+0-t.lx1,t.rx1=Math.min(t.w,t.h)*t.a2/1e5,t.rx2=t.r+0-t.rx1,t.ry1=t.b+0-t.rx1,t.d=t.lx1+0-t.rx1,t.dx=t.d>0?t.lx1:t.rx1,t.il=+t.dx/2,t.ir=t.r+0-t.il,t.ib=t.b+0-t.il},e.snip2DiagRect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.lx1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.rx2,y:t.t}),e.push(r),e},e.snip2DiagRect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.snip2DiagRect.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.snip2DiagRect.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.lx1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.rx2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.rx1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.ly1},r.push(s),s.x,s.y,s={action:"L",x:t.lx2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.rx1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.ry1},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.lx1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.snip2SameRect={name:"snip2SameRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.snip2SameRect.getDefaultAdjustValues=t=>{let e={};return e.adj1=16667,e.adj2=0,e},e.snip2SameRect.getAdjustValueNames=()=>["adj1","adj2"],e.snip2SameRect.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.tx1=Math.min(t.w,t.h)*t.a1/1e5,t.tx2=t.r+0-t.tx1,t.bx1=Math.min(t.w,t.h)*t.a2/1e5,t.bx2=t.r+0-t.bx1,t.by1=t.b+0-t.bx1,t.d=t.tx1+0-t.bx1,t.dx=t.d>0?t.tx1:t.bx1,t.il=+t.dx/2,t.ir=t.r+0-t.il,t.it=+t.tx1/2,t.ib=(t.by1+t.b)/2},e.snip2SameRect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.tx2,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.bx1,y:t.b}),e.push(r),e},e.snip2SameRect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.snip2SameRect.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.snip2SameRect.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.tx1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.tx2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.tx1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.by1},r.push(s),s.x,s.y,s={action:"L",x:t.bx2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.bx1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.by1},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.tx1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.snipRoundRect={name:"snipRoundRect",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.snipRoundRect.getDefaultAdjustValues=t=>{let e={};return e.adj1=16667,e.adj2=16667,e},e.snipRoundRect.getAdjustValueNames=()=>["adj1","adj2"],e.snipRoundRect.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,5e4)),t.a2=Math.max(0,Math.min(t.adj2,5e4)),t.x1=Math.min(t.w,t.h)*t.a1/1e5,t.dx2=Math.min(t.w,t.h)*t.a2/1e5,t.x2=t.r+0-t.dx2,t.il=29289*t.x1/1e5,t.ir=(t.x2+t.r)/2},e.snipRoundRect._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.snipRoundRect.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.snipRoundRect.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.b}),e.snipRoundRect.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.x1,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.dx2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.x1},n.push(i),r=i.x,s=i.y,o=t.x1,l=t.x1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.x1,ry:t.x1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.star10={name:"star10",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star10.getDefaultAdjustValues=t=>{let e={};return e.adj=42533,e.hf=105146,e},e.star10.getAdjustValueNames=()=>["adj","hf"],e.star10.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.swd2=t.w/2*t.hf/1e5,t.dx1=95106*t.swd2/1e5,t.dx2=58779*t.swd2/1e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.dy1=t.h/2*80902/1e5,t.dy2=t.h/2*30902/1e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+t.dy2-0,t.y4=(t.t+t.b)/2+t.dy1-0,t.iwd2=t.swd2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx1=80902*t.iwd2/1e5,t.sdx2=30902*t.iwd2/1e5,t.sdy1=95106*t.ihd2/1e5,t.sdy2=58779*t.ihd2/1e5,t.sx1=(t.l+t.r)/2+0-t.iwd2,t.sx2=(t.l+t.r)/2+0-t.sdx1,t.sx3=(t.l+t.r)/2+0-t.sdx2,t.sx4=(t.l+t.r)/2+t.sdx2-0,t.sx5=(t.l+t.r)/2+t.sdx1-0,t.sx6=(t.l+t.r)/2+t.iwd2-0,t.sy1=(t.t+t.b)/2+0-t.sdy1,t.sy2=(t.t+t.b)/2+0-t.sdy2,t.sy3=(t.t+t.b)/2+t.sdy2-0,t.sy4=(t.t+t.b)/2+t.sdy1-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star10._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star10.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.y4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.y1}),e.push(r),e},e.star10.getTextRect=t=>({l:t.sx2,t:t.sy2,r:t.sx5,b:t.sy3}),e.star10.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star12={name:"star12",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star12.getDefaultAdjustValues=t=>{let e={};return e.adj=37500,e},e.star12.getAdjustValueNames=()=>["adj"],e.star12.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dx1=t.w/2*Math.cos(18e5*Math.PI/108e5),t.dy1=t.h/2*Math.sin(36e5*Math.PI/108e5),t.x1=(t.l+t.r)/2+0-t.dx1,t.x3=3*t.w/4,t.x4=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+0-t.dy1,t.y3=3*t.h/4,t.y4=(t.t+t.b)/2+t.dy1-0,t.iwd2=t.w/2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx1=t.iwd2*Math.cos(9e5*Math.PI/108e5),t.sdx2=t.iwd2*Math.cos(27e5*Math.PI/108e5),t.sdx3=t.iwd2*Math.cos(45e5*Math.PI/108e5),t.sdy1=t.ihd2*Math.sin(45e5*Math.PI/108e5),t.sdy2=t.ihd2*Math.sin(27e5*Math.PI/108e5),t.sdy3=t.ihd2*Math.sin(9e5*Math.PI/108e5),t.sx1=(t.l+t.r)/2+0-t.sdx1,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+0-t.sdx3,t.sx4=(t.l+t.r)/2+t.sdx3-0,t.sx5=(t.l+t.r)/2+t.sdx2-0,t.sx6=(t.l+t.r)/2+t.sdx1-0,t.sy1=(t.t+t.b)/2+0-t.sdy1,t.sy2=(t.t+t.b)/2+0-t.sdy2,t.sy3=(t.t+t.b)/2+0-t.sdy3,t.sy4=(t.t+t.b)/2+t.sdy3-0,t.sy5=(t.t+t.b)/2+t.sdy2-0,t.sy6=(t.t+t.b)/2+t.sdy1-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star12._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star12.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.h/4}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.w/4,y:t.y4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.h/4}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.w/4,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.y1}),e.push(r),e},e.star12.getTextRect=t=>({l:t.sx2,t:t.sy2,r:t.sx5,b:t.sy5}),e.star12.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.h/4},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.w/4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.h/4},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy5},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:t.w/4,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy5},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy4},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star16={name:"star16",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star16.getDefaultAdjustValues=t=>{let e={};return e.adj=37500,e},e.star16.getAdjustValueNames=()=>["adj"],e.star16.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dx1=t.w/2*92388/1e5,t.dx2=t.w/2*70711/1e5,t.dx3=t.w/2*38268/1e5,t.dy1=t.h/2*92388/1e5,t.dy2=t.h/2*70711/1e5,t.dy3=t.h/2*38268/1e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+0-t.dx3,t.x4=(t.l+t.r)/2+t.dx3-0,t.x5=(t.l+t.r)/2+t.dx2-0,t.x6=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+0-t.dy3,t.y4=(t.t+t.b)/2+t.dy3-0,t.y5=(t.t+t.b)/2+t.dy2-0,t.y6=(t.t+t.b)/2+t.dy1-0,t.iwd2=t.w/2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx1=98079*t.iwd2/1e5,t.sdx2=83147*t.iwd2/1e5,t.sdx3=55557*t.iwd2/1e5,t.sdx4=19509*t.iwd2/1e5,t.sdy1=98079*t.ihd2/1e5,t.sdy2=83147*t.ihd2/1e5,t.sdy3=55557*t.ihd2/1e5,t.sdy4=19509*t.ihd2/1e5,t.sx1=(t.l+t.r)/2+0-t.sdx1,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+0-t.sdx3,t.sx4=(t.l+t.r)/2+0-t.sdx4,t.sx5=(t.l+t.r)/2+t.sdx4-0,t.sx6=(t.l+t.r)/2+t.sdx3-0,t.sx7=(t.l+t.r)/2+t.sdx2-0,t.sx8=(t.l+t.r)/2+t.sdx1-0,t.sy1=(t.t+t.b)/2+0-t.sdy1,t.sy2=(t.t+t.b)/2+0-t.sdy2,t.sy3=(t.t+t.b)/2+0-t.sdy3,t.sy4=(t.t+t.b)/2+0-t.sdy4,t.sy5=(t.t+t.b)/2+t.sdy4-0,t.sy6=(t.t+t.b)/2+t.sdy3-0,t.sy7=(t.t+t.b)/2+t.sdy2-0,t.sy8=(t.t+t.b)/2+t.sdy1-0,t.idx=t.iwd2*Math.cos(27e5*Math.PI/108e5),t.idy=t.ihd2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.it=(t.t+t.b)/2+0-t.idy,t.ir=(t.l+t.r)/2+t.idx-0,t.ib=(t.t+t.b)/2+t.idy-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star16._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star16.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x5,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:t.y3}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:t.y4}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x5,y:t.y5}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x4,y:t.y6}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y6}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x2,y:t.y5}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y4}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x3,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x4,y:t.y1}),e.push(r),e},e.star16.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.star16.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx7,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx8,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx8,y:t.sy5},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx7,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy7},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy8},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy8},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy7},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy5},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star24={name:"star24",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star24.getDefaultAdjustValues=t=>{let e={};return e.adj=37500,e},e.star24.getAdjustValueNames=()=>["adj"],e.star24.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dx1=t.w/2*Math.cos(9e5*Math.PI/108e5),t.dx2=t.w/2*Math.cos(18e5*Math.PI/108e5),t.dx3=t.w/2*Math.cos(27e5*Math.PI/108e5),t.dx4=t.w/4,t.dx5=t.w/2*Math.cos(45e5*Math.PI/108e5),t.dy1=t.h/2*Math.sin(45e5*Math.PI/108e5),t.dy2=t.h/2*Math.sin(36e5*Math.PI/108e5),t.dy3=t.h/2*Math.sin(27e5*Math.PI/108e5),t.dy4=t.h/4,t.dy5=t.h/2*Math.sin(9e5*Math.PI/108e5),t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+0-t.dx3,t.x4=(t.l+t.r)/2+0-t.dx4,t.x5=(t.l+t.r)/2+0-t.dx5,t.x6=(t.l+t.r)/2+t.dx5-0,t.x7=(t.l+t.r)/2+t.dx4-0,t.x8=(t.l+t.r)/2+t.dx3-0,t.x9=(t.l+t.r)/2+t.dx2-0,t.x10=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+0-t.dy3,t.y4=(t.t+t.b)/2+0-t.dy4,t.y5=(t.t+t.b)/2+0-t.dy5,t.y6=(t.t+t.b)/2+t.dy5-0,t.y7=(t.t+t.b)/2+t.dy4-0,t.y8=(t.t+t.b)/2+t.dy3-0,t.y9=(t.t+t.b)/2+t.dy2-0,t.y10=(t.t+t.b)/2+t.dy1-0,t.iwd2=t.w/2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx1=99144*t.iwd2/1e5,t.sdx2=92388*t.iwd2/1e5,t.sdx3=79335*t.iwd2/1e5,t.sdx4=60876*t.iwd2/1e5,t.sdx5=38268*t.iwd2/1e5,t.sdx6=13053*t.iwd2/1e5,t.sdy1=99144*t.ihd2/1e5,t.sdy2=92388*t.ihd2/1e5,t.sdy3=79335*t.ihd2/1e5,t.sdy4=60876*t.ihd2/1e5,t.sdy5=38268*t.ihd2/1e5,t.sdy6=13053*t.ihd2/1e5,t.sx1=(t.l+t.r)/2+0-t.sdx1,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+0-t.sdx3,t.sx4=(t.l+t.r)/2+0-t.sdx4,t.sx5=(t.l+t.r)/2+0-t.sdx5,t.sx6=(t.l+t.r)/2+0-t.sdx6,t.sx7=(t.l+t.r)/2+t.sdx6-0,t.sx8=(t.l+t.r)/2+t.sdx5-0,t.sx9=(t.l+t.r)/2+t.sdx4-0,t.sx10=(t.l+t.r)/2+t.sdx3-0,t.sx11=(t.l+t.r)/2+t.sdx2-0,t.sx12=(t.l+t.r)/2+t.sdx1-0,t.sy1=(t.t+t.b)/2+0-t.sdy1,t.sy2=(t.t+t.b)/2+0-t.sdy2,t.sy3=(t.t+t.b)/2+0-t.sdy3,t.sy4=(t.t+t.b)/2+0-t.sdy4,t.sy5=(t.t+t.b)/2+0-t.sdy5,t.sy6=(t.t+t.b)/2+0-t.sdy6,t.sy7=(t.t+t.b)/2+t.sdy6-0,t.sy8=(t.t+t.b)/2+t.sdy5-0,t.sy9=(t.t+t.b)/2+t.sdy4-0,t.sy10=(t.t+t.b)/2+t.sdy3-0,t.sy11=(t.t+t.b)/2+t.sdy2-0,t.sy12=(t.t+t.b)/2+t.sdy1-0,t.idx=t.iwd2*Math.cos(27e5*Math.PI/108e5),t.idy=t.ihd2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.it=(t.t+t.b)/2+0-t.idy,t.ir=(t.l+t.r)/2+t.idx-0,t.ib=(t.t+t.b)/2+t.idy-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star24._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star24.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.star24.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.star24.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy5},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx7,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx8,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx9,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx10,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x9,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx11,y:t.sy5},r.push(s),s.x,s.y,s={action:"L",x:t.x10,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.sx12,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx12,y:t.sy7},r.push(s),s.x,s.y,s={action:"L",x:t.x10,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.sx11,y:t.sy8},r.push(s),s.x,s.y,s={action:"L",x:t.x9,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.sx10,y:t.sy9},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:t.sx9,y:t.sy10},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y9},r.push(s),s.x,s.y,s={action:"L",x:t.sx8,y:t.sy11},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y10},r.push(s),s.x,s.y,s={action:"L",x:t.sx7,y:t.sy12},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy12},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y10},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy11},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y9},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy10},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy9},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy8},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy7},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star32={name:"star32",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star32.getDefaultAdjustValues=t=>{let e={};return e.adj=37500,e},e.star32.getAdjustValueNames=()=>["adj"],e.star32.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dx1=t.w/2*98079/1e5,t.dx2=t.w/2*92388/1e5,t.dx3=t.w/2*83147/1e5,t.dx4=t.w/2*Math.cos(27e5*Math.PI/108e5),t.dx5=t.w/2*55557/1e5,t.dx6=t.w/2*38268/1e5,t.dx7=t.w/2*19509/1e5,t.dy1=t.h/2*98079/1e5,t.dy2=t.h/2*92388/1e5,t.dy3=t.h/2*83147/1e5,t.dy4=t.h/2*Math.sin(27e5*Math.PI/108e5),t.dy5=t.h/2*55557/1e5,t.dy6=t.h/2*38268/1e5,t.dy7=t.h/2*19509/1e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+0-t.dx3,t.x4=(t.l+t.r)/2+0-t.dx4,t.x5=(t.l+t.r)/2+0-t.dx5,t.x6=(t.l+t.r)/2+0-t.dx6,t.x7=(t.l+t.r)/2+0-t.dx7,t.x8=(t.l+t.r)/2+t.dx7-0,t.x9=(t.l+t.r)/2+t.dx6-0,t.x10=(t.l+t.r)/2+t.dx5-0,t.x11=(t.l+t.r)/2+t.dx4-0,t.x12=(t.l+t.r)/2+t.dx3-0,t.x13=(t.l+t.r)/2+t.dx2-0,t.x14=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+0-t.dy2,t.y3=(t.t+t.b)/2+0-t.dy3,t.y4=(t.t+t.b)/2+0-t.dy4,t.y5=(t.t+t.b)/2+0-t.dy5,t.y6=(t.t+t.b)/2+0-t.dy6,t.y7=(t.t+t.b)/2+0-t.dy7,t.y8=(t.t+t.b)/2+t.dy7-0,t.y9=(t.t+t.b)/2+t.dy6-0,t.y10=(t.t+t.b)/2+t.dy5-0,t.y11=(t.t+t.b)/2+t.dy4-0,t.y12=(t.t+t.b)/2+t.dy3-0,t.y13=(t.t+t.b)/2+t.dy2-0,t.y14=(t.t+t.b)/2+t.dy1-0,t.iwd2=t.w/2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx1=99518*t.iwd2/1e5,t.sdx2=95694*t.iwd2/1e5,t.sdx3=88192*t.iwd2/1e5,t.sdx4=77301*t.iwd2/1e5,t.sdx5=63439*t.iwd2/1e5,t.sdx6=47140*t.iwd2/1e5,t.sdx7=29028*t.iwd2/1e5,t.sdx8=9802*t.iwd2/1e5,t.sdy1=99518*t.ihd2/1e5,t.sdy2=95694*t.ihd2/1e5,t.sdy3=88192*t.ihd2/1e5,t.sdy4=77301*t.ihd2/1e5,t.sdy5=63439*t.ihd2/1e5,t.sdy6=47140*t.ihd2/1e5,t.sdy7=29028*t.ihd2/1e5,t.sdy8=9802*t.ihd2/1e5,t.sx1=(t.l+t.r)/2+0-t.sdx1,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+0-t.sdx3,t.sx4=(t.l+t.r)/2+0-t.sdx4,t.sx5=(t.l+t.r)/2+0-t.sdx5,t.sx6=(t.l+t.r)/2+0-t.sdx6,t.sx7=(t.l+t.r)/2+0-t.sdx7,t.sx8=(t.l+t.r)/2+0-t.sdx8,t.sx9=(t.l+t.r)/2+t.sdx8-0,t.sx10=(t.l+t.r)/2+t.sdx7-0,t.sx11=(t.l+t.r)/2+t.sdx6-0,t.sx12=(t.l+t.r)/2+t.sdx5-0,t.sx13=(t.l+t.r)/2+t.sdx4-0,t.sx14=(t.l+t.r)/2+t.sdx3-0,t.sx15=(t.l+t.r)/2+t.sdx2-0,t.sx16=(t.l+t.r)/2+t.sdx1-0,t.sy1=(t.t+t.b)/2+0-t.sdy1,t.sy2=(t.t+t.b)/2+0-t.sdy2,t.sy3=(t.t+t.b)/2+0-t.sdy3,t.sy4=(t.t+t.b)/2+0-t.sdy4,t.sy5=(t.t+t.b)/2+0-t.sdy5,t.sy6=(t.t+t.b)/2+0-t.sdy6,t.sy7=(t.t+t.b)/2+0-t.sdy7,t.sy8=(t.t+t.b)/2+0-t.sdy8,t.sy9=(t.t+t.b)/2+t.sdy8-0,t.sy10=(t.t+t.b)/2+t.sdy7-0,t.sy11=(t.t+t.b)/2+t.sdy6-0,t.sy12=(t.t+t.b)/2+t.sdy5-0,t.sy13=(t.t+t.b)/2+t.sdy4-0,t.sy14=(t.t+t.b)/2+t.sdy3-0,t.sy15=(t.t+t.b)/2+t.sdy2-0,t.sy16=(t.t+t.b)/2+t.sdy1-0,t.idx=t.iwd2*Math.cos(27e5*Math.PI/108e5),t.idy=t.ihd2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.it=(t.t+t.b)/2+0-t.idy,t.ir=(t.l+t.r)/2+t.idx-0,t.ib=(t.t+t.b)/2+t.idy-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star32._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star32.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.star32.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.star32.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy8},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy7},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy5},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx7,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx8,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx9,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx10,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x9,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx11,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x10,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx12,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x11,y:t.y4},r.push(s),s.x,s.y,s={action:"L",x:t.sx13,y:t.sy5},r.push(s),s.x,s.y,s={action:"L",x:t.x12,y:t.y5},r.push(s),s.x,s.y,s={action:"L",x:t.sx14,y:t.sy6},r.push(s),s.x,s.y,s={action:"L",x:t.x13,y:t.y6},r.push(s),s.x,s.y,s={action:"L",x:t.sx15,y:t.sy7},r.push(s),s.x,s.y,s={action:"L",x:t.x14,y:t.y7},r.push(s),s.x,s.y,s={action:"L",x:t.sx16,y:t.sy8},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx16,y:t.sy9},r.push(s),s.x,s.y,s={action:"L",x:t.x14,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:t.sx15,y:t.sy10},r.push(s),s.x,s.y,s={action:"L",x:t.x13,y:t.y9},r.push(s),s.x,s.y,s={action:"L",x:t.sx14,y:t.sy11},r.push(s),s.x,s.y,s={action:"L",x:t.x12,y:t.y10},r.push(s),s.x,s.y,s={action:"L",x:t.sx13,y:t.sy12},r.push(s),s.x,s.y,s={action:"L",x:t.x11,y:t.y11},r.push(s),s.x,s.y,s={action:"L",x:t.sx12,y:t.sy13},r.push(s),s.x,s.y,s={action:"L",x:t.x10,y:t.y12},r.push(s),s.x,s.y,s={action:"L",x:t.sx11,y:t.sy14},r.push(s),s.x,s.y,s={action:"L",x:t.x9,y:t.y13},r.push(s),s.x,s.y,s={action:"L",x:t.sx10,y:t.sy15},r.push(s),s.x,s.y,s={action:"L",x:t.x8,y:t.y14},r.push(s),s.x,s.y,s={action:"L",x:t.sx9,y:t.sy16},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx8,y:t.sy16},r.push(s),s.x,s.y,s={action:"L",x:t.x7,y:t.y14},r.push(s),s.x,s.y,s={action:"L",x:t.sx7,y:t.sy15},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y13},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy14},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y12},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy13},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y11},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy12},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y10},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy11},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y9},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy10},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y8},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy9},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star4={name:"star4",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star4.getDefaultAdjustValues=t=>{let e={};return e.adj=12500,e},e.star4.getAdjustValueNames=()=>["adj"],e.star4.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.iwd2=t.w/2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx=t.iwd2*Math.cos(27e5*Math.PI/108e5),t.sdy=t.ihd2*Math.sin(27e5*Math.PI/108e5),t.sx1=(t.l+t.r)/2+0-t.sdx,t.sx2=(t.l+t.r)/2+t.sdx-0,t.sy1=(t.t+t.b)/2+0-t.sdy,t.sy2=(t.t+t.b)/2+t.sdy-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star4._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star4.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.star4.getTextRect=t=>({l:t.sx1,t:t.sy1,r:t.sx2,b:t.sy2}),e.star4.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star5={name:"star5",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star5.getDefaultAdjustValues=t=>{let e={};return e.adj=19098,e.hf=105146,e.vf=110557,e},e.star5.getAdjustValueNames=()=>["adj","hf","vf"],e.star5.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.swd2=t.w/2*t.hf/1e5,t.shd2=t.h/2*t.vf/1e5,t.svc=(t.t+t.b)/2*t.vf/1e5,t.dx1=t.swd2*Math.cos(108e4*Math.PI/108e5),t.dx2=t.swd2*Math.cos(1836e4*Math.PI/108e5),t.dy1=t.shd2*Math.sin(108e4*Math.PI/108e5),t.dy2=t.shd2*Math.sin(1836e4*Math.PI/108e5),t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.y1=t.svc+0-t.dy1,t.y2=t.svc+0-t.dy2,t.iwd2=t.swd2*t.a/5e4,t.ihd2=t.shd2*t.a/5e4,t.sdx1=t.iwd2*Math.cos(2052e4*Math.PI/108e5),t.sdx2=t.iwd2*Math.cos(324e4*Math.PI/108e5),t.sdy1=t.ihd2*Math.sin(324e4*Math.PI/108e5),t.sdy2=t.ihd2*Math.sin(2052e4*Math.PI/108e5),t.sx1=(t.l+t.r)/2+0-t.sdx1,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+t.sdx2-0,t.sx4=(t.l+t.r)/2+t.sdx1-0,t.sy1=t.svc+0-t.sdy1,t.sy2=t.svc+0-t.sdy2,t.sy3=t.svc+t.ihd2-0,t.yAdj=t.svc+0-t.ihd2},e.star5._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star5.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:t.y1}),e.push(r),e},e.star5.getTextRect=t=>({l:t.sx1,t:t.sy1,r:t.sx4,b:t.sy3}),e.star5.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star6={name:"star6",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star6.getDefaultAdjustValues=t=>{let e={};return e.adj=28868,e.hf=115470,e},e.star6.getAdjustValueNames=()=>["adj","hf"],e.star6.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.swd2=t.w/2*t.hf/1e5,t.dx1=t.swd2*Math.cos(18e5*Math.PI/108e5),t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+t.dx1-0,t.y2=(t.t+t.b)/2+t.h/4-0,t.iwd2=t.swd2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx2=+t.iwd2/2,t.sx1=(t.l+t.r)/2+0-t.iwd2,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+t.sdx2-0,t.sx4=(t.l+t.r)/2+t.iwd2-0,t.sdy1=t.ihd2*Math.sin(36e5*Math.PI/108e5),t.sy1=(t.t+t.b)/2+0-t.sdy1,t.sy2=(t.t+t.b)/2+t.sdy1-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star6._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star6.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:t.h/4}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.h/4}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.star6.getTextRect=t=>({l:t.sx1,t:t.sy1,r:t.sx4,b:t.sy2}),e.star6.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.h/4},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.h/4},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star7={name:"star7",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star7.getDefaultAdjustValues=t=>{let e={};return e.adj=34601,e.hf=102572,e.vf=105210,e},e.star7.getAdjustValueNames=()=>["adj","hf","vf"],e.star7.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.swd2=t.w/2*t.hf/1e5,t.shd2=t.h/2*t.vf/1e5,t.svc=(t.t+t.b)/2*t.vf/1e5,t.dx1=97493*t.swd2/1e5,t.dx2=78183*t.swd2/1e5,t.dx3=43388*t.swd2/1e5,t.dy1=62349*t.shd2/1e5,t.dy2=22252*t.shd2/1e5,t.dy3=90097*t.shd2/1e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+0-t.dx3,t.x4=(t.l+t.r)/2+t.dx3-0,t.x5=(t.l+t.r)/2+t.dx2-0,t.x6=(t.l+t.r)/2+t.dx1-0,t.y1=t.svc+0-t.dy1,t.y2=t.svc+t.dy2-0,t.y3=t.svc+t.dy3-0,t.iwd2=t.swd2*t.a/5e4,t.ihd2=t.shd2*t.a/5e4,t.sdx1=97493*t.iwd2/1e5,t.sdx2=78183*t.iwd2/1e5,t.sdx3=43388*t.iwd2/1e5,t.sx1=(t.l+t.r)/2+0-t.sdx1,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+0-t.sdx3,t.sx4=(t.l+t.r)/2+t.sdx3-0,t.sx5=(t.l+t.r)/2+t.sdx2-0,t.sx6=(t.l+t.r)/2+t.sdx1-0,t.sdy1=90097*t.ihd2/1e5,t.sdy2=22252*t.ihd2/1e5,t.sdy3=62349*t.ihd2/1e5,t.sy1=t.svc+0-t.sdy1,t.sy2=t.svc+0-t.sdy2,t.sy3=t.svc+t.sdy3-0,t.sy4=t.svc+t.ihd2-0,t.yAdj=t.svc+0-t.ihd2},e.star7._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star7.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.x5,y:t.y1}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x6,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x4,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x3,y:t.y3}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x2,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),e},e.star7.getTextRect=t=>({l:t.sx2,t:t.sy1,r:t.sx5,b:t.sy3}),e.star7.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx6,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x6,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx5,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy3},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.star8={name:"star8",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.star8.getDefaultAdjustValues=t=>{let e={};return e.adj=37500,e},e.star8.getAdjustValueNames=()=>["adj"],e.star8.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,5e4)),t.dx1=t.w/2*Math.cos(27e5*Math.PI/108e5),t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+t.dx1-0,t.dy1=t.h/2*Math.sin(27e5*Math.PI/108e5),t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+t.dy1-0,t.iwd2=t.w/2*t.a/5e4,t.ihd2=t.h/2*t.a/5e4,t.sdx1=92388*t.iwd2/1e5,t.sdx2=38268*t.iwd2/1e5,t.sdy1=92388*t.ihd2/1e5,t.sdy2=38268*t.ihd2/1e5,t.sx1=(t.l+t.r)/2+0-t.sdx1,t.sx2=(t.l+t.r)/2+0-t.sdx2,t.sx3=(t.l+t.r)/2+t.sdx2-0,t.sx4=(t.l+t.r)/2+t.sdx1-0,t.sy1=(t.t+t.b)/2+0-t.sdy1,t.sy2=(t.t+t.b)/2+0-t.sdy2,t.sy3=(t.t+t.b)/2+t.sdy2-0,t.sy4=(t.t+t.b)/2+t.sdy1-0,t.yAdj=(t.t+t.b)/2+0-t.ihd2},e.star8._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:(t.l+t.r)/2,y:t.yAdj}),e.push(r),e},e.star8.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x1,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.y1}),e.push(r),e},e.star8.getTextRect=t=>({l:t.sx1,t:t.sy1,r:t.sx4,b:t.sy4}),e.star8.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy1},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.sx4,y:t.sy3},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx3,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.sx2,y:t.sy4},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.sx1,y:t.sy3},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.straightConnector1={name:"straightConnector1",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.straightConnector1.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.straightConnector1.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"none"}),e},e.stripedRightArrow={name:"stripedRightArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.stripedRightArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.stripedRightArrow.getAdjustValueNames=()=>["adj1","adj2"],e.stripedRightArrow.updateShapeGuides=t=>{t.maxAdj2=84375*t.w/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.x4=5*Math.min(t.w,t.h)/32,t.dx5=Math.min(t.w,t.h)*t.a2/1e5,t.x5=t.r+0-t.dx5,t.dy1=t.h*t.a1/2e5,t.y1=(t.t+t.b)/2+0-t.dy1,t.y2=(t.t+t.b)/2+t.dy1-0,t.dx6=t.dy1*t.dx5/(t.h/2),t.x6=t.r+0-t.dx6},e.stripedRightArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x5,y:t.t}),e.push(r),e},e.stripedRightArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x5,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x5,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.stripedRightArrow.getTextRect=t=>({l:t.x4,t:t.y1,r:t.x6,b:t.y2}),e.stripedRightArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:Math.min(t.w,t.h)/32,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:Math.min(t.w,t.h)/32,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:Math.min(t.w,t.h)/16,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:Math.min(t.w,t.h)/8,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:Math.min(t.w,t.h)/8,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:Math.min(t.w,t.h)/16,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,s={action:"M",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:(t.t+t.b)/2},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x5,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.sun={name:"sun",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.sun.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e},e.sun.getAdjustValueNames=()=>["adj"],e.sun.updateShapeGuides=t=>{t.a=Math.max(12500,Math.min(t.adj,46875)),t.g0=5e4-t.a,t.g1=30274*t.g0/32768,t.g2=12540*t.g0/32768,t.g3=t.g1+5e4-0,t.g4=t.g2+5e4-0,t.g5=5e4-t.g1,t.g6=5e4-t.g2,t.g7=23170*t.g0/32768,t.g8=5e4+t.g7-0,t.g9=5e4-t.g7,t.g10=3*t.g5/4,t.g11=3*t.g6/4,t.g12=t.g10+3662-0,t.g13=t.g11+3662-0,t.g14=t.g11+12500-0,t.g15=1e5-t.g10,t.g16=1e5-t.g12,t.g17=1e5-t.g13,t.g18=1e5-t.g14,t.ox1=18436*t.w/21600,t.oy1=3163*t.h/21600,t.ox2=3163*t.w/21600,t.oy2=18436*t.h/21600,t.x8=t.w*t.g8/1e5,t.x9=t.w*t.g9/1e5,t.x10=t.w*t.g10/1e5,t.x12=t.w*t.g12/1e5,t.x13=t.w*t.g13/1e5,t.x14=t.w*t.g14/1e5,t.x15=t.w*t.g15/1e5,t.x16=t.w*t.g16/1e5,t.x17=t.w*t.g17/1e5,t.x18=t.w*t.g18/1e5,t.x19=t.w*t.a/1e5,t.wR=t.w*t.g0/1e5,t.hR=t.h*t.g0/1e5,t.y8=t.h*t.g8/1e5,t.y9=t.h*t.g9/1e5,t.y10=t.h*t.g10/1e5,t.y12=t.h*t.g12/1e5,t.y13=t.h*t.g13/1e5,t.y14=t.h*t.g14/1e5,t.y15=t.h*t.g15/1e5,t.y16=t.h*t.g16/1e5,t.y17=t.h*t.g17/1e5,t.y18=t.h*t.g18/1e5},e.sun._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x19,y:(t.t+t.b)/2}),e.push(r),e},e.sun.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),e},e.sun.getTextRect=t=>({l:t.x9,t:t.y9,r:t.x8,b:t.y8}),e.sun.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.r,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x15,y:t.y18},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x15,y:t.y14},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ox1,y:t.oy1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x16,y:t.y13},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x17,y:t.y12},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:(t.l+t.r)/2,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x18,y:t.y10},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x14,y:t.y10},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ox2,y:t.oy1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x13,y:t.y12},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x12,y:t.y13},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x10,y:t.y14},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x10,y:t.y18},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ox2,y:t.oy2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x12,y:t.y17},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x13,y:t.y16},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:(t.l+t.r)/2,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x14,y:t.y15},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x18,y:t.y15},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ox1,y:t.oy2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x17,y:t.y16},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x16,y:t.y17},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x19,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.wR,l=t.hR,h=108e5,(p=0==(u=0))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.wR,ry:t.hR,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.teardrop={name:"teardrop",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.teardrop.getDefaultAdjustValues=t=>{let e={};return e.adj=1e5,e},e.teardrop.getAdjustValueNames=()=>["adj"],e.teardrop.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,2e5)),t.r2=Math.sqrt(2),t.tw=t.w/2*t.r2/1,t.th=t.h/2*t.r2/1,t.sw=t.tw*t.a/1e5,t.sh=t.th*t.a/1e5,t.dx1=t.sw*Math.cos(27e5*Math.PI/108e5),t.dy1=t.sh*Math.sin(27e5*Math.PI/108e5),t.x1=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+0-t.dy1,t.x2=((t.l+t.r)/2+t.x1)/2,t.y2=((t.t+t.b)/2+t.y1)/2,t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.teardrop._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),e},e.teardrop.getConnections=t=>{let e=[],r;return(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.x1,y:t.y1}),e.push(r),e},e.teardrop.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.teardrop.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Q",x1:t.x2,y1:t.t,x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"Q",x1:t.r,y1:t.y2,x:t.r,y:(t.t+t.b)/2},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.trapezoid={name:"trapezoid",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.trapezoid.getDefaultAdjustValues=t=>{let e={};return e.adj=25e3,e},e.trapezoid.getAdjustValueNames=()=>["adj"],e.trapezoid.updateShapeGuides=t=>{t.maxAdj=5e4*t.w/Math.min(t.w,t.h),t.a=Math.max(0,Math.min(t.adj,t.maxAdj)),t.x1=Math.min(t.w,t.h)*t.a/2e5,t.x2=Math.min(t.w,t.h)*t.a/1e5,t.x3=t.r+0-t.x2,t.x4=t.r+0-t.x1,t.il=t.w/3*t.a/t.maxAdj,t.it=t.h/3*t.a/t.maxAdj,t.ir=t.r+0-t.il},e.trapezoid._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.trapezoid.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x4,y:(t.t+t.b)/2}),e.push(r),e},e.trapezoid.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.b}),e.trapezoid.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.triangle={name:"triangle",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.triangle.getDefaultAdjustValues=t=>{let e={};return e.adj=5e4,e},e.triangle.getAdjustValueNames=()=>["adj"],e.triangle.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,1e5)),t.x1=t.w*t.a/2e5,t.x2=t.w*t.a/1e5,t.x3=t.x1+t.w/2-0},e.triangle._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:t.t}),e.push(r),e},e.triangle.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:t.x2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.l,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.r,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x3,y:(t.t+t.b)/2}),e.push(r),e},e.triangle.getTextRect=t=>({l:t.x1,t:(t.t+t.b)/2,r:t.x3,b:t.b}),e.triangle.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.upArrowCallout={name:"upArrowCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.upArrowCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e.adj4=64977,e},e.upArrowCallout.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4"],e.upArrowCallout.updateShapeGuides=t=>{t.maxAdj2=5e4*t.w/Math.min(t.w,t.h),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.maxAdj3=1e5*t.h/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.q2=t.a3*Math.min(t.w,t.h)/t.h,t.maxAdj4=1e5-t.q2,t.a4=Math.max(0,Math.min(t.adj4,t.maxAdj4)),t.dx1=Math.min(t.w,t.h)*t.a2/1e5,t.dx2=Math.min(t.w,t.h)*t.a1/2e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+0-t.dx2,t.x3=(t.l+t.r)/2+t.dx2-0,t.x4=(t.l+t.r)/2+t.dx1-0,t.y1=Math.min(t.w,t.h)*t.a3/1e5,t.dy2=t.h*t.a4/1e5,t.y2=t.b+0-t.dy2,t.y3=(t.y2+t.b)/2},e.upArrowCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x2,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.x1,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),e},e.upArrowCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y2}),e.push(r),e},e.upArrowCallout.getTextRect=t=>({l:t.l,t:t.y2,r:t.r,b:t.b}),e.upArrowCallout.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x4,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x3,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.upDownArrow={name:"upDownArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.upDownArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=5e4,e.adj2=5e4,e},e.upDownArrow.getAdjustValueNames=()=>["adj1","adj2"],e.upDownArrow.updateShapeGuides=t=>{t.maxAdj2=5e4*t.h/Math.min(t.w,t.h),t.a1=Math.max(0,Math.min(t.adj1,1e5)),t.a2=Math.max(0,Math.min(t.adj2,t.maxAdj2)),t.y2=Math.min(t.w,t.h)*t.a2/1e5,t.y3=t.b+0-t.y2,t.dx1=t.w*t.a1/2e5,t.x1=(t.l+t.r)/2+0-t.dx1,t.x2=(t.l+t.r)/2+t.dx1-0,t.dy1=t.x1*t.y2/(t.w/2),t.y1=t.y2+0-t.dy1,t.y4=t.y3+t.dy1-0},e.upDownArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.x1,y:t.y3}),e.push(r),(r={}).pos=t=>({x:t.l,y:t.y2}),e.push(r),e},e.upDownArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:t.y3}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y3}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x2,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y2}),e.push(r),e},e.upDownArrow.getTextRect=t=>({l:t.x1,t:t.y1,r:t.x2,b:t.y4}),e.upDownArrow.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:(t.l+t.r)/2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y3},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.y2},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.uturnArrow={name:"uturnArrow",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.uturnArrow.getDefaultAdjustValues=t=>{let e={};return e.adj1=25e3,e.adj2=25e3,e.adj3=25e3,e.adj4=43750,e.adj5=75e3,e},e.uturnArrow.getAdjustValueNames=()=>["adj1","adj2","adj3","adj4","adj5"],e.uturnArrow.updateShapeGuides=t=>{t.a2=Math.max(0,Math.min(t.adj2,25e3)),t.maxAdj1=2*t.a2/1,t.a1=Math.max(0,Math.min(t.adj1,t.maxAdj1)),t.q2=t.a1*Math.min(t.w,t.h)/t.h,t.q3=1e5-t.q2,t.maxAdj3=t.q3*t.h/Math.min(t.w,t.h),t.a3=Math.max(0,Math.min(t.adj3,t.maxAdj3)),t.q1=t.a3+t.a1-0,t.minAdj5=t.q1*Math.min(t.w,t.h)/t.h,t.a5=Math.max(t.minAdj5,Math.min(t.adj5,1e5)),t.th=Math.min(t.w,t.h)*t.a1/1e5,t.aw2=Math.min(t.w,t.h)*t.a2/1e5,t.th2=+t.th/2,t.dh2=t.aw2+0-t.th2,t.y5=t.h*t.a5/1e5,t.ah=Math.min(t.w,t.h)*t.a3/1e5,t.y4=t.y5+0-t.ah,t.x9=t.r+0-t.dh2,t.bw=+t.x9/2,t.bs=Math.min(t.bw,t.y4),t.maxAdj4=1e5*t.bs/Math.min(t.w,t.h),t.a4=Math.max(0,Math.min(t.adj4,t.maxAdj4)),t.bd=Math.min(t.w,t.h)*t.a4/1e5,t.bd3=t.bd+0-t.th,t.bd2=Math.max(t.bd3,0),t.x3=t.th+t.bd2-0,t.x8=t.r+0-t.aw2,t.x6=t.x8+0-t.aw2,t.x7=t.x6+t.dh2-0,t.x4=t.x9+0-t.bd,t.x5=t.x7+0-t.bd2,t.cx=(t.th+t.x7)/2},e.uturnArrow._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.th,y:t.b}),e.push(r),(r={}).pos=t=>({x:t.x6,y:t.b}),e.push(r),(r={}).pos=t=>({x:t.x6,y:t.y4}),e.push(r),(r={}).pos=t=>({x:t.bd,y:t.t}),e.push(r),(r={}).pos=t=>({x:t.r,y:t.y5}),e.push(r),e},e.uturnArrow.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.x6,y:t.y4}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.x8,y:t.y5}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:t.y4}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.cx,y:t.t}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.th2,y:t.b}),e.push(r),e},e.uturnArrow.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.uturnArrow.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.bd},n.push(i),r=i.x,s=i.y,o=t.bd,l=t.bd,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bd,ry:t.bd,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bd,ry:t.bd,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.t},n.push(i),r=i.x,s=i.y,o=t.bd,l=t.bd,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bd,ry:t.bd,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bd,ry:t.bd,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x9,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x8,y:t.y5},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.x3},n.push(i),r=i.x,s=i.y,o=t.bd2,l=t.bd2,h=0,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bd2,ry:t.bd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bd2,ry:t.bd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.th},n.push(i),r=i.x,s=i.y,o=t.bd2,l=t.bd2,h=162e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.bd2,ry:t.bd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.bd2,ry:t.bd2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.th,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.verticalScroll={name:"verticalScroll",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.verticalScroll.getDefaultAdjustValues=t=>{let e={};return e.adj=12500,e},e.verticalScroll.getAdjustValueNames=()=>["adj"],e.verticalScroll.updateShapeGuides=t=>{t.a=Math.max(0,Math.min(t.adj,25e3)),t.ch=Math.min(t.w,t.h)*t.a/1e5,t.ch2=+t.ch/2,t.ch4=+t.ch/4,t.x3=t.ch+t.ch2-0,t.x4=t.ch+t.ch-0,t.x6=t.r+0-t.ch,t.x7=t.r+0-t.ch2,t.x5=t.x6+0-t.ch2,t.y3=t.b+0-t.ch,t.y4=t.b+0-t.ch2},e.verticalScroll._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.ch}),e.push(r),e},e.verticalScroll.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.ch,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x6,y:(t.t+t.b)/2}),e.push(r),e},e.verticalScroll.getTextRect=t=>({l:t.ch,t:t.ch,r:t.x6,b:t.y4}),e.verticalScroll.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.ch2,y:t.b},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.ch2,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=54e5,(p=0==(u=-108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.t},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x4,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"norm"}),n=[],r=0,s=0,i={action:"M",x:t.x4,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ch,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=162e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!1,fill:"darkenLess"}),n=[],r=0,s=0,i={action:"M",x:t.ch,y:t.y3},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.ch2},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x7,y:t.t},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x6,y:t.y4},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.ch2,y:t.b},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x3,y:t.t},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=54e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x4,y:t.ch2},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.x6,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x3,y:t.ch},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ch2,y:t.y3},n.push(i),r=i.x,s=i.y,o=t.ch4,l=t.ch4,h=162e5,(p=0==(u=108e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch4,ry:t.ch4,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.y4},n.push(i),r=i.x,s=i.y,i={action:"M",x:t.ch2,y:t.b},n.push(i),r=i.x,s=i.y,o=t.ch2,l=t.ch2,h=54e5,(p=0==(u=-54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.ch2,ry:t.ch2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.ch,y:t.y3},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"none"}),e},e.wave={name:"wave",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.wave.getDefaultAdjustValues=t=>{let e={};return e.adj1=12500,e.adj2=0,e},e.wave.getAdjustValueNames=()=>["adj1","adj2"],e.wave.updateShapeGuides=t=>{t.a1=Math.max(0,Math.min(t.adj1,2e4)),t.a2=Math.max(-1e4,Math.min(t.adj2,1e4)),t.y1=t.h*t.a1/1e5,t.dy2=10*t.y1/3,t.y2=t.y1+0-t.dy2,t.y3=t.y1+t.dy2-0,t.y4=t.b+0-t.y1,t.y5=t.y4+0-t.dy2,t.y6=t.y4+t.dy2-0,t.dx1=t.w*t.a2/1e5,t.of2=t.w*t.a2/5e4,t.x1=Math.abs(t.dx1),t.dx2=t.of2>0?0:t.of2,t.x2=t.l+0-t.dx2,t.dx5=t.of2>0?t.of2:0,t.x5=t.r+0-t.dx5,t.dx3=(t.dx2+t.x5)/3,t.x3=t.x2+t.dx3-0,t.x4=(t.x3+t.x5)/2,t.x6=t.l+t.dx5-0,t.x10=t.r+t.dx2-0,t.x7=t.x6+t.dx3-0,t.x8=(t.x7+t.x10)/2,t.x9=t.r+0-t.x1,t.xAdj=(t.l+t.r)/2+t.dx1-0,t.xAdj2=(t.l+t.r)/2+0-t.dx1,t.il=Math.max(t.x2,t.x6),t.ir=Math.min(t.x5,t.x10),t.it=t.h*t.a1/5e4,t.ib=t.b+0-t.it},e.wave._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.l,y:t.y1}),e.push(r),(r={}).pos=t=>({x:t.xAdj,y:t.b}),e.push(r),e},e.wave.getConnections=t=>{let e=[],r;return(r={}).ang=t=>54e5,r.pos=t=>({x:t.xAdj2,y:t.y1}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.x1,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.xAdj,y:t.y4}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.x9,y:(t.t+t.b)/2}),e.push(r),e},e.wave.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.wave.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.x2,y:t.y1},r.push(s),s.x,s.y,s={action:"C",x1:t.x3,y1:t.y2,x2:t.x4,y2:t.y3,x:t.x5,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.x10,y:t.y4},r.push(s),s.x,s.y,s={action:"C",x1:t.x8,y1:t.y6,x2:t.x7,y2:t.y5,x:t.x6,y:t.y4},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.wedgeEllipseCallout={name:"wedgeEllipseCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.wedgeEllipseCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=-20833,e.adj2=62500,e},e.wedgeEllipseCallout.getAdjustValueNames=()=>["adj1","adj2"],e.wedgeEllipseCallout.updateShapeGuides=t=>{t.dxPos=t.w*t.adj1/1e5,t.dyPos=t.h*t.adj2/1e5,t.xPos=(t.l+t.r)/2+t.dxPos-0,t.yPos=(t.t+t.b)/2+t.dyPos-0,t.sdx=t.dxPos*t.h/1,t.sdy=t.dyPos*t.w/1,t.pang=108e5*s(t.sdx,t.sdy)/Math.PI,t.stAng=t.pang+66e4-0,t.enAng=t.pang+0-66e4,t.dx1=t.w/2*Math.cos(t.stAng*Math.PI/108e5),t.dy1=t.h/2*Math.sin(t.stAng*Math.PI/108e5),t.x1=(t.l+t.r)/2+t.dx1-0,t.y1=(t.t+t.b)/2+t.dy1-0,t.dx2=t.w/2*Math.cos(t.enAng*Math.PI/108e5),t.dy2=t.h/2*Math.sin(t.enAng*Math.PI/108e5),t.x2=(t.l+t.r)/2+t.dx2-0,t.y2=(t.t+t.b)/2+t.dy2-0,t.stAng1=108e5*s(t.dx1,t.dy1)/Math.PI,t.enAng1=108e5*s(t.dx2,t.dy2)/Math.PI,t.swAng1=t.enAng1+0-t.stAng1,t.swAng2=t.swAng1+216e5-0,t.swAng=t.swAng1>0?t.swAng1:t.swAng2,t.idx=t.w/2*Math.cos(27e5*Math.PI/108e5),t.idy=t.h/2*Math.sin(27e5*Math.PI/108e5),t.il=(t.l+t.r)/2+0-t.idx,t.ir=(t.l+t.r)/2+t.idx-0,t.it=(t.t+t.b)/2+0-t.idy,t.ib=(t.t+t.b)/2+t.idy-0},e.wedgeEllipseCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.wedgeEllipseCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.il,y:t.it}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.il,y:t.ib}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.ir,y:t.ib}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>162e5,r.pos=t=>({x:t.ir,y:t.it}),e.push(r),(r={}).ang=t=>t.pang,r.pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.wedgeEllipseCallout.getTextRect=t=>({l:t.il,t:t.it,r:t.ir,b:t.ib}),e.wedgeEllipseCallout.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.xPos,y:t.yPos},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.y1},n.push(i),r=i.x,s=i.y,o=t.w/2,l=t.h/2,h=t.stAng1,u=t.swAng%216e5,(p=0!==t.swAng&&0===u)&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.w/2,ry:t.h/2,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e},e.wedgeRectCallout={name:"wedgeRectCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.wedgeRectCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=-20833,e.adj2=62500,e},e.wedgeRectCallout.getAdjustValueNames=()=>["adj1","adj2"],e.wedgeRectCallout.updateShapeGuides=t=>{t.dxPos=t.w*t.adj1/1e5,t.dyPos=t.h*t.adj2/1e5,t.xPos=(t.l+t.r)/2+t.dxPos-0,t.yPos=(t.t+t.b)/2+t.dyPos-0,t.dx=t.xPos+0-(t.l+t.r)/2,t.dy=t.yPos+0-(t.t+t.b)/2,t.dq=t.dxPos*t.h/t.w,t.ady=Math.abs(t.dyPos),t.adq=Math.abs(t.dq),t.dz=t.ady+0-t.adq,t.xg1=t.dxPos>0?7:2,t.xg2=t.dxPos>0?10:5,t.x1=t.w*t.xg1/12,t.x2=t.w*t.xg2/12,t.yg1=t.dyPos>0?7:2,t.yg2=t.dyPos>0?10:5,t.y1=t.h*t.yg1/12,t.y2=t.h*t.yg2/12,t.t1=t.dxPos>0?t.l:t.xPos,t.xl=t.dz>0?t.l:t.t1,t.t2=t.dyPos>0?t.x1:t.xPos,t.xt=t.dz>0?t.t2:t.x1,t.t3=t.dxPos>0?t.xPos:t.r,t.xr=t.dz>0?t.r:t.t3,t.t4=t.dyPos>0?t.xPos:t.x1,t.xb=t.dz>0?t.t4:t.x1,t.t5=t.dxPos>0?t.y1:t.yPos,t.yl=t.dz>0?t.y1:t.t5,t.t6=t.dyPos>0?t.t:t.yPos,t.yt=t.dz>0?t.t6:t.t,t.t7=t.dxPos>0?t.yPos:t.y1,t.yr=t.dz>0?t.y1:t.t7,t.t8=t.dyPos>0?t.yPos:t.b,t.yb=t.dz>0?t.t8:t.b},e.wedgeRectCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.wedgeRectCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.wedgeRectCallout.getTextRect=t=>({l:t.l,t:t.t,r:t.r,b:t.b}),e.wedgeRectCallout.getPaths=t=>{let e=[],r,s;return r=[],s={action:"M",x:t.l,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.xt,y:t.yt},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.t},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y1},r.push(s),s.x,s.y,s={action:"L",x:t.xr,y:t.yr},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.r,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.x2,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.xb,y:t.yb},r.push(s),s.x,s.y,s={action:"L",x:t.x1,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.b},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y2},r.push(s),s.x,s.y,s={action:"L",x:t.xl,y:t.yl},r.push(s),s.x,s.y,s={action:"L",x:t.l,y:t.y1},r.push(s),s.x,s.y,s={action:"Z"},r.push(s),s.x,s.y,e.push({path:r,stroke:!0,fill:"norm"}),e},e.wedgeRoundRectCallout={name:"wedgeRoundRectCallout",getAdjustValueNames:()=>[],getDefaultAdjustValues:t=>({}),updateShapeGuides:t=>{},_getAdjustHandles:t=>[],getPaths:t=>[],getConnections:t=>[],getTextRect:t=>{}},e.wedgeRoundRectCallout.getDefaultAdjustValues=t=>{let e={};return e.adj1=-20833,e.adj2=62500,e.adj3=16667,e},e.wedgeRoundRectCallout.getAdjustValueNames=()=>["adj1","adj2","adj3"],e.wedgeRoundRectCallout.updateShapeGuides=t=>{t.dxPos=t.w*t.adj1/1e5,t.dyPos=t.h*t.adj2/1e5,t.xPos=(t.l+t.r)/2+t.dxPos-0,t.yPos=(t.t+t.b)/2+t.dyPos-0,t.dq=t.dxPos*t.h/t.w,t.ady=Math.abs(t.dyPos),t.adq=Math.abs(t.dq),t.dz=t.ady+0-t.adq,t.xg1=t.dxPos>0?7:2,t.xg2=t.dxPos>0?10:5,t.x1=t.w*t.xg1/12,t.x2=t.w*t.xg2/12,t.yg1=t.dyPos>0?7:2,t.yg2=t.dyPos>0?10:5,t.y1=t.h*t.yg1/12,t.y2=t.h*t.yg2/12,t.t1=t.dxPos>0?t.l:t.xPos,t.xl=t.dz>0?t.l:t.t1,t.t2=t.dyPos>0?t.x1:t.xPos,t.xt=t.dz>0?t.t2:t.x1,t.t3=t.dxPos>0?t.xPos:t.r,t.xr=t.dz>0?t.r:t.t3,t.t4=t.dyPos>0?t.xPos:t.x1,t.xb=t.dz>0?t.t4:t.x1,t.t5=t.dxPos>0?t.y1:t.yPos,t.yl=t.dz>0?t.y1:t.t5,t.t6=t.dyPos>0?t.t:t.yPos,t.yt=t.dz>0?t.t6:t.t,t.t7=t.dxPos>0?t.yPos:t.y1,t.yr=t.dz>0?t.y1:t.t7,t.t8=t.dyPos>0?t.yPos:t.b,t.yb=t.dz>0?t.t8:t.b,t.u1=Math.min(t.w,t.h)*t.adj3/1e5,t.u2=t.r+0-t.u1,t.v2=t.b+0-t.u1,t.il=29289*t.u1/1e5,t.ir=t.r+0-t.il,t.ib=t.b+0-t.il},e.wedgeRoundRectCallout._getAdjustHandles=t=>{let e=[],r;return(r={}).pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.wedgeRoundRectCallout.getConnections=t=>{let e=[],r;return(r={}).ang=t=>162e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.t}),e.push(r),(r={}).ang=t=>108e5,r.pos=t=>({x:t.l,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:(t.l+t.r)/2,y:t.b}),e.push(r),(r={}).ang=t=>0,r.pos=t=>({x:t.r,y:(t.t+t.b)/2}),e.push(r),(r={}).ang=t=>54e5,r.pos=t=>({x:t.xPos,y:t.yPos}),e.push(r),e},e.wedgeRoundRectCallout.getTextRect=t=>({l:t.il,t:t.il,r:t.ir,b:t.ib}),e.wedgeRoundRectCallout.getPaths=t=>{let e=[],r,s,n,i,o,l,h,u,c,p;return n=[],r=0,s=0,i={action:"M",x:t.l,y:t.u1},n.push(i),r=i.x,s=i.y,o=t.u1,l=t.u1,h=108e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.xt,y:t.yt},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.t},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.u2,y:t.t},n.push(i),r=i.x,s=i.y,o=t.u1,l=t.u1,h=162e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.xr,y:t.yr},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.r,y:t.v2},n.push(i),r=i.x,s=i.y,o=t.u1,l=t.u1,h=0,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.x2,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.xb,y:t.yb},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.x1,y:t.b},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.u1,y:t.b},n.push(i),r=i.x,s=i.y,o=t.u1,l=t.u1,h=54e5,(p=0==(u=54e5))&&(u=108e5),c=a(o,l,h*Math.PI/108e5,r,s,(h+u)*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i),p&&(r=i.x,s=i.y,h-=108e5,c=a(o,l,h*Math.PI/108e5,r,s,(h+(u=108e5))*Math.PI/108e5),i={action:"A",rx:t.u1,ry:t.u1,x:c.x,y:c.y,a:0,b:+(Math.abs(u)>108e5),c:u<0?0:1},n.push(i)),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y2},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.xl,y:t.yl},n.push(i),r=i.x,s=i.y,i={action:"L",x:t.l,y:t.y1},n.push(i),r=i.x,s=i.y,i={action:"Z"},n.push(i),r=i.x,s=i.y,e.push({path:n,stroke:!0,fill:"norm"}),e}},856:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class r{constructor(t,e,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=r}}class s{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}}function n(t,e){let{line:s,column:n,index:a}=t;return new r(s,n+e,a+e)}let a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",i={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},o=t=>"UpdateExpression"===t.type?i.UpdateExpression[`${t.prefix}`]:i[t.type],l=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var h=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${o({type:t})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});let u=["message"];function c(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function p(t,e){if(Array.isArray(t))return e=>p(e,t[0]);let s={};for(let n of Object.keys(t)){let a=t[n],i="string"==typeof a?{message:()=>a}:"function"==typeof a?{message:a}:a,{message:o}=i,l=function(t,e){if(null==t)return{};var r={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(-1!==e.indexOf(s))continue;r[s]=t[s]}return r}(i,u),h="string"==typeof o?()=>o:o;s[n]=function({toMessage:t,code:e,reasonCode:s,syntaxPlugin:n}){let a="MissingPlugin"===s||"MissingOneOfPlugins"===s;{let t={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};t[s]&&(s=t[s])}return function i(o,l){let h=SyntaxError();return h.code=e,h.reasonCode=s,h.loc=o,h.pos=o.index,h.syntaxPlugin=n,a&&(h.missingPlugin=l.missingPlugin),c(h,"clone",(function(t={}){var e;let{line:s,column:n,index:a}=null!=(e=t.loc)?e:o;return i(new r(s,n,a),Object.assign({},l,t.details))})),c(h,"details",l),Object.defineProperty(h,"message",{configurable:!0,get(){let e=`${t(l)} (${o.line}:${o.column})`;return this.message=e,e},set(t){Object.defineProperty(this,"message",{value:t,writable:!0})}}),h}}(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:h},e?{syntaxPlugin:e}:{},l))}return s}let d=Object.assign({},p({ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}}),p({AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${o(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${o(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${o(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."}),p({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),p`pipelineOperator`(h)),{defineProperty:y}=Object,x=(t,e)=>{t&&y(t,e,{enumerable:!1,value:t[e]})};function g(t){return x(t.loc.start,"index"),x(t.loc.end,"index"),t}class f{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}}let m={brace:new f("{"),j_oTag:new f("<tag"),j_cTag:new f("</tag"),j_expr:new f("<tag>...</tag>",!0)};m.template=new f("`",!0);class b{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null}}let _=new Map;function A(t,e={}){e.keyword=t;let r=k(t,e);return _.set(t,r),r}function M(t,e){return k(t,{beforeExpr:!0,binop:e})}let w=-1,S=[],C=[],P=[],T=[],v=[],I=[];function k(t,e={}){var r,s,n,a;return++w,C.push(t),P.push(null!=(r=e.binop)?r:-1),T.push(null!=(s=e.beforeExpr)&&s),v.push(null!=(n=e.startsExpr)&&n),I.push(null!=(a=e.prefix)&&a),S.push(new b(t,e)),w}function E(t,e={}){var r,s,n,a;return++w,_.set(t,w),C.push(t),P.push(null!=(r=e.binop)?r:-1),T.push(null!=(s=e.beforeExpr)&&s),v.push(null!=(n=e.startsExpr)&&n),I.push(null!=(a=e.prefix)&&a),S.push(new b("name",e)),w}let N={bracketL:k("[",{beforeExpr:!0,startsExpr:!0}),bracketHashL:k("#[",{beforeExpr:!0,startsExpr:!0}),bracketBarL:k("[|",{beforeExpr:!0,startsExpr:!0}),bracketR:k("]"),bracketBarR:k("|]"),braceL:k("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:k("{|",{beforeExpr:!0,startsExpr:!0}),braceHashL:k("#{",{beforeExpr:!0,startsExpr:!0}),braceR:k("}"),braceBarR:k("|}"),parenL:k("(",{beforeExpr:!0,startsExpr:!0}),parenR:k(")"),comma:k(",",{beforeExpr:!0}),semi:k(";",{beforeExpr:!0}),colon:k(":",{beforeExpr:!0}),doubleColon:k("::",{beforeExpr:!0}),dot:k("."),question:k("?",{beforeExpr:!0}),questionDot:k("?."),arrow:k("=>",{beforeExpr:!0}),template:k("template"),ellipsis:k("...",{beforeExpr:!0}),backQuote:k("`",{startsExpr:!0}),dollarBraceL:k("${",{beforeExpr:!0,startsExpr:!0}),templateTail:k("...`",{startsExpr:!0}),templateNonTail:k("...${",{beforeExpr:!0,startsExpr:!0}),at:k("@"),hash:k("#",{startsExpr:!0}),interpreterDirective:k("#!..."),eq:k("=",{beforeExpr:!0,isAssign:!0}),assign:k("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:k("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:k("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:k("_=",{beforeExpr:!0,isAssign:!0}),incDec:k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:k("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:k("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:k("^^",{startsExpr:!0}),doubleAt:k("@@",{startsExpr:!0}),pipeline:M("|>",0),nullishCoalescing:M("??",1),logicalOR:M("||",1),logicalAND:M("&&",2),bitwiseOR:M("|",3),bitwiseXOR:M("^",4),bitwiseAND:M("&",5),equality:M("==/!=/===/!==",6),lt:M("</>/<=/>=",7),gt:M("</>/<=/>=",7),relational:M("</>/<=/>=",7),bitShift:M("<</>>/>>>",8),bitShiftL:M("<</>>/>>>",8),bitShiftR:M("<</>>/>>>",8),plusMin:k("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",{binop:10,startsExpr:!0}),star:k("*",{binop:10}),slash:M("/",10),exponent:k("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:A("in",{beforeExpr:!0,binop:7}),_instanceof:A("instanceof",{beforeExpr:!0,binop:7}),_break:A("break"),_case:A("case",{beforeExpr:!0}),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",{beforeExpr:!0}),_else:A("else",{beforeExpr:!0}),_finally:A("finally"),_function:A("function",{startsExpr:!0}),_if:A("if"),_return:A("return",{beforeExpr:!0}),_switch:A("switch"),_throw:A("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:A("try"),_var:A("var"),_const:A("const"),_with:A("with"),_new:A("new",{beforeExpr:!0,startsExpr:!0}),_this:A("this",{startsExpr:!0}),_super:A("super",{startsExpr:!0}),_class:A("class",{startsExpr:!0}),_extends:A("extends",{beforeExpr:!0}),_export:A("export"),_import:A("import",{startsExpr:!0}),_null:A("null",{startsExpr:!0}),_true:A("true",{startsExpr:!0}),_false:A("false",{startsExpr:!0}),_typeof:A("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:A("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:A("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:A("do",{isLoop:!0,beforeExpr:!0}),_for:A("for",{isLoop:!0}),_while:A("while",{isLoop:!0}),_as:E("as",{startsExpr:!0}),_assert:E("assert",{startsExpr:!0}),_async:E("async",{startsExpr:!0}),_await:E("await",{startsExpr:!0}),_defer:E("defer",{startsExpr:!0}),_from:E("from",{startsExpr:!0}),_get:E("get",{startsExpr:!0}),_let:E("let",{startsExpr:!0}),_meta:E("meta",{startsExpr:!0}),_of:E("of",{startsExpr:!0}),_sent:E("sent",{startsExpr:!0}),_set:E("set",{startsExpr:!0}),_source:E("source",{startsExpr:!0}),_static:E("static",{startsExpr:!0}),_using:E("using",{startsExpr:!0}),_yield:E("yield",{startsExpr:!0}),_asserts:E("asserts",{startsExpr:!0}),_checks:E("checks",{startsExpr:!0}),_exports:E("exports",{startsExpr:!0}),_global:E("global",{startsExpr:!0}),_implements:E("implements",{startsExpr:!0}),_intrinsic:E("intrinsic",{startsExpr:!0}),_infer:E("infer",{startsExpr:!0}),_is:E("is",{startsExpr:!0}),_mixins:E("mixins",{startsExpr:!0}),_proto:E("proto",{startsExpr:!0}),_require:E("require",{startsExpr:!0}),_satisfies:E("satisfies",{startsExpr:!0}),_keyof:E("keyof",{startsExpr:!0}),_readonly:E("readonly",{startsExpr:!0}),_unique:E("unique",{startsExpr:!0}),_abstract:E("abstract",{startsExpr:!0}),_declare:E("declare",{startsExpr:!0}),_enum:E("enum",{startsExpr:!0}),_module:E("module",{startsExpr:!0}),_namespace:E("namespace",{startsExpr:!0}),_interface:E("interface",{startsExpr:!0}),_type:E("type",{startsExpr:!0}),_opaque:E("opaque",{startsExpr:!0}),name:k("name",{startsExpr:!0}),placeholder:k("%%",{startsExpr:!0}),string:k("string",{startsExpr:!0}),num:k("num",{startsExpr:!0}),bigint:k("bigint",{startsExpr:!0}),decimal:k("decimal",{startsExpr:!0}),regexp:k("regexp",{startsExpr:!0}),privateName:k("#name",{startsExpr:!0}),eof:k("eof"),jsxName:k("jsxName"),jsxText:k("jsxText",{beforeExpr:!0}),jsxTagStart:k("jsxTagStart",{startsExpr:!0}),jsxTagEnd:k("jsxTagEnd")};function L(t){return t>=93&&t<=133}function j(t){return t>=58&&t<=133}function R(t){return t>=58&&t<=137}function O(t){return t>=129&&t<=131}function D(t){return t>=58&&t<=92}function F(t){return t>=24&&t<=25}S[8].updateContext=t=>{t.pop()},S[5].updateContext=S[7].updateContext=S[23].updateContext=t=>{t.push(m.brace)},S[22].updateContext=t=>{t[t.length-1]===m.template?t.pop():t.push(m.template)},S[143].updateContext=t=>{t.push(m.j_expr,m.j_oTag)};let B="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",V="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",H=RegExp("["+B+"]"),G=RegExp("["+B+V+"]");B=V=null;let z=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],U=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function q(t,e){let r=65536;for(let s=0,n=e.length;s<n&&!((r+=e[s])>t);s+=2)if((r+=e[s+1])>=t)return!0;return!1}function $(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&H.test(String.fromCharCode(t)):q(t,z)))}function J(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&G.test(String.fromCharCode(t)):q(t,z)||q(t,U))))}let W=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),Z=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),Y=new Set(["eval","arguments"]);function X(t,e){return e&&"await"===t||"enum"===t}function K(t,e){return X(t,e)||Z.has(t)}function Q(t,e){return K(t,e)||Y.has(t)}let tt=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class et{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class rt{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(64&t)>0&&(2&t)==0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(128&e)return!0;if(451&e)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new et(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(130&t.flags||!this.parser.inModule&&1&t.flags)}declareName(t,e,r){let s=this.currentScope();if(8&e||16&e){this.checkRedeclarationInScope(s,t,e,r);let n=s.names.get(t)||0;16&e?n|=4:(s.firstLexicalName||(s.firstLexicalName=t),n|=2),s.names.set(t,n),8&e&&this.maybeExportDefined(s,t)}else if(4&e)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,e,r),s.names.set(t,1|(s.names.get(t)||0)),this.maybeExportDefined(s,t),!(387&s.flags));--n);this.parser.inModule&&1&s.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,r,s){this.isRedeclaredInScope(t,e,r)&&this.parser.raise(d.VarRedeclaration,s,{identifierName:e})}isRedeclaredInScope(t,e,r){if(!(1&r))return!1;if(8&r)return t.names.has(e);let s=t.names.get(e);return 16&r?(2&s)>0||!this.treatFunctionsAsVarInScope(t)&&(1&s)>0:(2&s)>0&&!(8&t.flags&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(4&s)>0}checkLocalExport(t){let{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(387&e)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(451&e&&!(4&e))return e}}}class st extends et{constructor(...t){super(...t),this.declareFunctions=new Set}}class nt extends rt{createScope(t){return new st(t)}declareName(t,e,r){let s=this.currentScope();if(2048&e){this.checkRedeclarationInScope(s,t,e,r),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,e,r)}isRedeclaredInScope(t,e,r){if(super.isRedeclaredInScope(t,e,r))return!0;if(2048&r&&!t.declareFunctions.has(e)){let r=t.names.get(e);return(4&r)>0||(2&r)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class at{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if("string"==typeof t)return this.plugins.has(t);{let[e,r]=t;if(!this.hasPlugin(e))return!1;let s=this.plugins.get(e);for(let t of Object.keys(r))if((null==s?void 0:s[t])!==r[t])return!1;return!0}}getPluginOption(t,e){var r;return null==(r=this.plugins.get(t))?void 0:r[e]}}function it(t,e){void 0===t.trailingComments?t.trailingComments=e:t.trailingComments.unshift(...e)}function ot(t,e){void 0===t.innerComments?t.innerComments=e:t.innerComments.unshift(...e)}function lt(t,e,r){let s=null,n=e.length;for(;null===s&&n>0;)s=e[--n];null===s||s.start>r.start?ot(t,r.comments):it(s,r.comments)}class ht extends at{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:e}=this.state,r=e.length;if(0===r)return;let s=r-1,n=e[s];n.start===t.end&&(n.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let r=e[s],n=r.end;if(n>a)r.containingNode=t,this.finalizeComment(r),e.splice(s,1);else{n===a&&(r.trailingNode=t);break}}}finalizeComment(t){let{comments:e}=t;if(null!==t.leadingNode||null!==t.trailingNode){var r;null!==t.leadingNode&&it(t.leadingNode,e),null!==t.trailingNode&&(r=t.trailingNode,void 0===r.leadingComments?r.leadingComments=e:r.leadingComments.unshift(...e))}else{let{containingNode:r,start:s}=t;if(44===this.input.charCodeAt(this.offsetToSourcePos(s)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":lt(r,r.properties,t);break;case"CallExpression":case"OptionalCallExpression":lt(r,r.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":lt(r,r.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":lt(r,r.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":lt(r,r.specifiers,t);break;case"TSEnumDeclaration":case"TSEnumBody":lt(r,r.members,t);break;default:ot(r,e)}else ot(r,e)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:e}=this.state,{length:r}=e;if(0===r)return;let s=e[r-1];s.leadingNode===t&&(s.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:e}=this.state,{length:r}=e;0!==r&&(e[r-1].trailingNode===t?e[r-1].trailingNode=null:r>=2&&e[r-2].trailingNode===t&&(e[r-2].trailingNode=null))}takeSurroundingComments(t,e,r){let{commentStack:s}=this.state,n=s.length;if(0===n)return;let a=n-1;for(;a>=0;a--){let n=s[a],i=n.end;if(n.start===r)n.leadingNode=t;else if(i===e)n.trailingNode=t;else if(i<e)break}}}let ut=RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function ct(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function pt(t,e,r){for(let s=e;s<r;s++)if(ct(t.charCodeAt(s)))return!0;return!1}let dt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,yt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;class xt{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[m.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startIndex:s,startLine:n,startColumn:a}){this.strict=!1!==t&&(!0===t||"module"===e),this.startIndex=s,this.curLine=n,this.lineStart=-a,this.startLoc=this.endLoc=new r(n,a,s)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new xt;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}let gt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ft={bin:t=>48===t||49===t,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function mt(t,e,r,s,n,a){let i=r,o=s,l=n,h="",u=null,c=r,{length:p}=e;for(;;){var d,y,x,g;if(r>=p){a.unterminated(i,o,l),h+=e.slice(c,r);break}let f=e.charCodeAt(r);if(d=t,y=f,x=e,g=r,"template"===d?96===y||36===y&&123===x.charCodeAt(g+1):y===("double"===d?34:39)){h+=e.slice(c,r);break}if(92===f){h+=e.slice(c,r);let i=function(t,e,r,s,n,a){let i=!n;e++;let o=t=>({pos:e,ch:t,lineStart:r,curLine:s}),l=t.charCodeAt(e++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let n;return({code:n,pos:e}=bt(t,e,r,s,2,!1,i,a)),o(null===n?null:String.fromCharCode(n))}case 117:{let n;return({code:n,pos:e}=At(t,e,r,s,i,a)),o(null===n?null:String.fromCodePoint(n))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===t.charCodeAt(e)&&++e;case 10:r=e,++s;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);a.strictNumericEscape(e-1,r,s);default:if(l>=48&&l<=55){let i=e-1,l=/^[0-7]+/.exec(t.slice(i,e+2))[0],h=parseInt(l,8);h>255&&(h=parseInt(l=l.slice(0,-1),8)),e+=l.length-1;let u=t.charCodeAt(e);if("0"!==l||56===u||57===u)if(n)return o(null);else a.strictNumericEscape(i,r,s);return o(String.fromCharCode(h))}return o(String.fromCharCode(l))}}(e,r,s,n,"template"===t,a);null!==i.ch||u?h+=i.ch:u={pos:r,lineStart:s,curLine:n},({pos:r,lineStart:s,curLine:n}=i),c=r}else 8232===f||8233===f?(++r,++n,s=r):10===f||13===f?"template"===t?(h+=e.slice(c,r)+"\n",++r,13===f&&10===e.charCodeAt(r)&&++r,++n,c=s=r):a.unterminated(i,o,l):++r}return{pos:r,str:h,firstInvalidLoc:u,lineStart:s,curLine:n,containsInvalid:!!u}}function bt(t,e,r,s,n,a,i,o){let l,h=e;return({n:l,pos:e}=_t(t,e,r,s,16,n,a,!1,o,!i)),null===l&&(i?o.invalidEscapeSequence(h,r,s):e=h-1),{code:l,pos:e}}function _t(t,e,r,s,n,a,i,o,l,h){let u=e,c=16===n?gt.hex:gt.decBinOct,p=16===n?ft.hex:10===n?ft.dec:8===n?ft.oct:ft.bin,d=!1,y=0;for(let u=0,x=null==a?1/0:a;u<x;++u){let a,u=t.charCodeAt(e);if(95===u&&"bail"!==o){let n=t.charCodeAt(e-1),a=t.charCodeAt(e+1);if(o){if(Number.isNaN(a)||!p(a)||c.has(n)||c.has(a)){if(h)return{n:null,pos:e};l.unexpectedNumericSeparator(e,r,s)}}else{if(h)return{n:null,pos:e};l.numericSeparatorInEscapeSequence(e,r,s)}++e;continue}if(u>=97)a=u-97+10;else if(u>=65)a=u-65+10;else a=u>=48&&u<=57?u-48:1/0;if(a>=n)if(a<=9&&h)return{n:null,pos:e};else if(a<=9&&l.invalidDigit(e,r,s,n))a=0;else if(i)a=0,d=!0;else break;++e,y=y*n+a}return e===u||null!=a&&e-u!==a||d?{n:null,pos:e}:{n:y,pos:e}}function At(t,e,r,s,n,a){let i;if(123===t.charCodeAt(e)){if(++e,({code:i,pos:e}=bt(t,e,r,s,t.indexOf("}",e)-e,!0,n,a)),++e,null!==i&&i>1114111)if(!n)return{code:null,pos:e};else a.invalidCodePoint(e,r,s)}else({code:i,pos:e}=bt(t,e,r,s,4,!1,n,a));return{code:i,pos:e}}function Mt(t,e,s){return new r(s,t-e,t)}let wt=new Set([103,109,115,105,121,117,100,118]);class St{constructor(t){let e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new s(t.startLoc,t.endLoc)}}class Ct extends ht{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(t,e,r,s)=>!!(2048&this.optionFlags)&&(this.raise(d.InvalidDigit,Mt(t,e,r),{radix:s}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(d.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(d.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(d.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(d.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(t,e,r)=>{this.recordStrictModeErrors(d.StrictNumericEscape,Mt(t,e,r))},unterminated:(t,e,r)=>{throw this.raise(d.UnterminatedString,Mt(t-1,e,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(d.StrictNumericEscape),unterminated:(t,e,r)=>{throw this.raise(d.UnterminatedTemplate,Mt(t,e,r))}}),this.state=new xt,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new St(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return!!this.match(t)&&(this.next(),!0)}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return dt.lastIndex=t,dt.test(this.input)?dt.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return yt.lastIndex=t,yt.test(this.input)?yt.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((64512&e)==55296&&++t<this.input.length){let r=this.input.charCodeAt(t);(64512&r)==56320&&(e=65536+((1023&e)<<10)+(1023&r))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach((([t,e])=>this.raise(t,e))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length)return void this.finishToken(140);this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(t,r+2);if(-1===n)throw this.raise(d.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+t.length,ut.lastIndex=r+2;ut.test(this.input)&&ut.lastIndex<=n;)++this.state.curLine,this.state.lineStart=ut.lastIndex;if(this.isLookahead)return;let a={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+t.length),loc:new s(e,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipLineComment(t){let e,r=this.state.pos;this.isLookahead||(e=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!ct(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,i={type:"CommentLine",value:this.input.slice(r+t,a),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(a),loc:new s(e,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(i),i}skipSpace(){let t=this.state.pos,e=4096&this.optionFlags?[]:null;t:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let t=this.skipBlockComment("*/");void 0!==t&&(this.addComment(t),null==e||e.push(t));break}case 47:{let t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),null==e||e.push(t));break}default:break t}break;default:if(function(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}(r))++this.state.pos;else if(45===r&&!this.inModule&&8192&this.optionFlags){let r=this.state.pos;if(45===this.input.charCodeAt(r+1)&&62===this.input.charCodeAt(r+2)&&(0===t||this.state.lineStart>t)){let t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),null==e||e.push(t))}else break t}else if(60===r&&!this.inModule&&8192&this.optionFlags){let t=this.state.pos;if(33===this.input.charCodeAt(t+1)&&45===this.input.charCodeAt(t+2)&&45===this.input.charCodeAt(t+3)){let t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),null==e||e.push(t))}else break t}else break t}}if((null==e?void 0:e.length)>0){let r=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(r),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(r)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(d.UnexpectedDigitAfterHash,this.state.curPosition());if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===e?d.RecordExpressionHashIncorrectStartSyntaxType:d.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===e?this.finishToken(7):this.finishToken(1)}else $(e)?(++this.state.pos,this.finishToken(139,this.readWord1(e))):92===e?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57)return void this.readNumber(!0);46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;let e=this.state.pos;for(this.state.pos+=1;!ct(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let r=this.input.slice(e+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(t){let e=42===t?55:54,r=1,s=this.input.charCodeAt(this.state.pos+1);42===t&&42===s&&(r++,s=this.input.charCodeAt(this.state.pos+2),e=57),61!==s||this.state.inType||(r++,e=37===t?33:30),this.finishOp(e,r)}readToken_pipe_amp(t){let e=this.input.charCodeAt(this.state.pos+1);if(e===t)return void(61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===t?41:42,2));if(124===t){if(62===e)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&93===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(61===e)return void this.finishOp(30,2);this.finishOp(124===t?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);61!==t||this.state.inType?94===t&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let e=this.input.charCodeAt(this.state.pos+1);if(e===t)return void this.finishOp(34,2);61===e?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,e=this.input.charCodeAt(t+1);return 60===e?61===this.input.charCodeAt(t+2)?void this.finishOp(30,3):void this.finishOp(51,2):61===e?void this.finishOp(49,2):void this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(62===e){let e=62===this.input.charCodeAt(t+2)?3:2;return 61===this.input.charCodeAt(t+e)?void this.finishOp(30,e+1):void this.finishOp(52,e)}if(61===e)return void this.finishOp(49,2);this.finishOp(48,1)}readToken_eq_excl(t){let e=this.input.charCodeAt(this.state.pos+1);if(61===e)return void this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2);if(61===t&&62===e){this.state.pos+=2,this.finishToken(19);return}this.finishOp(61===t?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?61===e?this.finishOp(30,3):this.finishOp(40,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(d.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if($(t))return void this.readWord(t)}throw this.raise(d.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){let r=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,r)}readRegexp(){let t,e,r=this.state.startLoc,s=this.state.start+1,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(d.UnterminatedRegExp,n(r,1));let s=this.input.charCodeAt(a);if(ct(s))throw this.raise(d.UnterminatedRegExp,n(r,1));if(t)t=!1;else{if(91===s)e=!0;else if(93===s&&e)e=!1;else if(47===s&&!e)break;t=92===s}}let i=this.input.slice(s,a);++a;let o="",l=()=>n(r,a+2-s);for(;a<this.length;){let t=this.codePointAtPos(a),e=String.fromCharCode(t);if(wt.has(t))118===t?o.includes("u")&&this.raise(d.IncompatibleRegExpUVFlags,l()):117===t&&o.includes("v")&&this.raise(d.IncompatibleRegExpUVFlags,l()),o.includes(e)&&this.raise(d.DuplicateRegExpFlags,l());else if(J(t)||92===t)this.raise(d.MalformedRegExpFlags,l());else break;++a,o+=e}this.state.pos=a,this.finishToken(138,{pattern:i,flags:o})}readInt(t,e,r=!1,s=!0){let{n:n,pos:a}=_t(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,r,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(t){let e=this.state.pos,r=this.state.curPosition(),s=!1;this.state.pos+=2;let a=this.readInt(t);null==a&&this.raise(d.InvalidDigit,n(r,2),{radix:t});let i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,s=!0;else if(109===i)throw this.raise(d.InvalidDecimal,r);if($(this.codePointAtPos(this.state.pos)))throw this.raise(d.NumberIdentifier,this.state.curPosition());if(s){let t=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,t);return}this.finishToken(135,a)}readNumber(t){let e=this.state.pos,r=this.state.curPosition(),s=!1,a=!1,i=!1,o=!1;t||null!==this.readInt(10)||this.raise(d.InvalidNumber,this.state.curPosition());let l=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(l){let t=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(d.StrictOctalLiteral,r),!this.state.strict){let e=t.indexOf("_");e>0&&this.raise(d.ZeroDigitNumericSeparator,n(r,e))}o=l&&!/[89]/.test(t)}let h=this.input.charCodeAt(this.state.pos);if(46!==h||o||(++this.state.pos,this.readInt(10),s=!0,h=this.input.charCodeAt(this.state.pos)),69!==h&&101!==h||o||((43===(h=this.input.charCodeAt(++this.state.pos))||45===h)&&++this.state.pos,null===this.readInt(10)&&this.raise(d.InvalidOrMissingExponent,r),s=!0,i=!0,h=this.input.charCodeAt(this.state.pos)),110===h&&((s||l)&&this.raise(d.InvalidBigIntLiteral,r),++this.state.pos,a=!0),109===h){this.expectPlugin("decimal",this.state.curPosition()),(i||l)&&this.raise(d.InvalidDecimal,r),++this.state.pos;var u=!0}if($(this.codePointAtPos(this.state.pos)))throw this.raise(d.NumberIdentifier,this.state.curPosition());let c=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(a)return void this.finishToken(136,c);if(u)return void this.finishToken(137,c);let p=o?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}readCodePoint(t){let{code:e,pos:r}=At(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=r,e}readString(t){let{str:e,pos:r,curLine:s,lineStart:n}=mt(34===t?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:e,firstInvalidLoc:s,pos:n,curLine:a,lineStart:i}=mt("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=a,s&&(this.state.firstInvalidTemplateEscapePos=new r(s.curLine,s.pos-s.lineStart,this.sourceToOffsetPos(s.pos))),96===this.input.codePointAt(n)?this.finishToken(24,s?null:t+e+"`"):(this.state.pos++,this.finishToken(25,s?null:t+e+"${"))}recordStrictModeErrors(t,e){let r=e.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(t,e):this.state.strictErrors.set(r,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="",r=this.state.pos,s=this.state.pos;for(void 0!==t&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let t=this.codePointAtPos(this.state.pos);if(J(t))this.state.pos+=t<=65535?1:2;else if(92===t){this.state.containsEsc=!0,e+=this.input.slice(s,this.state.pos);let t=this.state.curPosition(),n=this.state.pos===r?$:J;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(d.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);null!==a&&(n(a)||this.raise(d.EscapedCharNotAnIdentifier,t),e+=String.fromCodePoint(a)),s=this.state.pos}else break}return e+this.input.slice(s,this.state.pos)}readWord(t){let e=this.readWord1(t),r=_.get(e);void 0!==r?this.finishToken(r,C[r]):this.finishToken(132,e)}checkKeywordEscapes(){let{type:t}=this.state;D(t)&&this.state.containsEsc&&this.raise(d.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:C[t]})}raise(t,e,s={}){let n=t(e instanceof r?e:e.loc.start,s);if(!(2048&this.optionFlags))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,e,s={}){let n=e instanceof r?e:e.loc.start,a=n.index,i=this.state.errors;for(let e=i.length-1;e>=0;e--){let r=i[e];if(r.loc.index===a)return i[e]=t(n,s);if(r.loc.index<a)break}return this.raise(t,e,s)}updateContext(t){}unexpected(t,e){throw this.raise(d.UnexpectedToken,null!=t?t:this.state.startLoc,{expected:e?C[e]:null})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise(d.MissingPlugin,null!=e?e:this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some((t=>this.hasPlugin(t))))throw this.raise(d.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,r,s)=>{this.raise(t,Mt(e,r,s))}}}class Pt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Tt{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Pt)}exit(){let t=this.stack.pop(),e=this.current();for(let[r,s]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(r)||e.undefinedPrivateNames.set(r,s):this.parser.raise(d.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(t,e,r){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),i=s.has(t);if(3&e){let r=i&&n.get(t);if(r){let s=4&e;(i=(3&r)==(3&e)||(4&r)!==s)||n.delete(t)}else i||n.set(t,e)}i&&this.parser.raise(d.PrivateNameRedeclaration,r,{identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,e){let r;for(r of this.stack)if(r.privateNames.has(t))return;r?r.undefinedPrivateNames.set(t,e):this.parser.raise(d.InvalidPrivateFieldResolution,e,{identifierName:t})}}class vt{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class It extends vt{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){let r=e.index;this.declarationErrors.set(r,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class kt{constructor(t){this.parser=void 0,this.stack=[new vt],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){let r=e.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(t,r),a=s[--n]}this.parser.raise(t,r)}recordArrowParameterBindingError(t,e){let{stack:r}=this,s=r[r.length-1],n=e.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else{if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(t,n)}}recordAsyncArrowParametersError(t){let{stack:e}=this,r=e.length-1,s=e[r];for(;s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(d.AwaitBindingIdentifier,t),s=e[--r]}validateAsPattern(){let{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors((([e,r])=>{this.parser.raise(e,r);let s=t.length-2,n=t[s];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r.index),n=t[--s]}))}}class Et{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Nt(t,e){return 2*!!t|+!!e}class Lt extends Ct{addExtra(t,e,r,s=!0){if(!t)return;let{extra:n}=t;null==n&&(t.extra=n={}),s?n[e]=r:Object.defineProperty(n,e,{enumerable:s,value:r})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){let r=t+e.length;if(this.input.slice(t,r)===e){let t=this.input.charCodeAt(r);return!(J(t)||(64512&t)==55296)}return!1}isLookaheadContextual(t){let e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return!!this.isContextual(t)&&(this.next(),!0)}expectContextual(t,e){if(!this.eatContextual(t)){if(null!=e)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return pt(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return pt(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(d.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){let r={node:null};try{let s=t(((t=null)=>{throw r.node=t,r}));if(this.state.errors.length>e.errors.length){let t=this.state;return this.state=e,this.state.tokensLength=t.tokensLength,{node:s,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){let s=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:s};if(t===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw t}}checkExpressionErrors(t,e){if(!t)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a}=t,i=!!r||!!s||!!a||!!n;if(!e)return i;null!=r&&this.raise(d.InvalidCoverInitializedName,r),null!=s&&this.raise(d.DuplicateProto,s),null!=n&&this.raise(d.UnexpectedPrivateField,n),null!=a&&this.unexpected(a)}isLiteralPropertyName(){return R(this.state.type)}isPrivateName(t){return"PrivateName"===t.type}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&this.isPrivateName(t.property)}isObjectProperty(t){return"ObjectProperty"===t.type}isObjectMethod(t){return"ObjectMethod"===t.type}initializeScopes(t="module"===this.options.sourceType){let e=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let i=this.prodParam;this.prodParam=new Et;let o=this.classScope;this.classScope=new Tt(this);let l=this.expressionScope;return this.expressionScope=new kt(this),()=>{this.state.labels=e,this.exportedIdentifiers=r,this.inModule=s,this.scope=n,this.prodParam=i,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),32&this.optionFlags&&(t|=1),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:e}=t;null!==e&&this.expectPlugin("destructuringPrivate",e)}}class jt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class Rt{constructor(t,e,r){this.type="",this.start=e,this.end=0,this.loc=new s(r),(null==t?void 0:t.optionFlags)&128&&(this.range=[e,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)}}let Ot=Rt.prototype;function Dt(t){let{type:e,start:r,end:s,loc:n,range:a,extra:i,name:o}=t,l=Object.create(Ot);return l.type=e,l.start=r,l.end=s,l.loc=n,l.range=a,l.extra=i,l.name=o,"Placeholder"===e&&(l.expectedNode=t.expectedNode),l}Ot.__clone=function(){let t=new Rt(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,s=e.length;r<s;r++){let s=e[r];"leadingComments"!==s&&"trailingComments"!==s&&"innerComments"!==s&&(t[s]=this[s])}return t};class Ft extends Lt{startNode(){let t=this.state.startLoc;return new Rt(this,t.index,t)}startNodeAt(t){return new Rt(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEndLoc)}finishNodeAt(t,e,r){return t.type=e,t.end=r.index,t.loc.end=r,128&this.optionFlags&&(t.range[1]=r.index),4096&this.optionFlags&&this.processComment(t),t}resetStartLocation(t,e){t.start=e.index,t.loc.start=e,128&this.optionFlags&&(t.range[0]=e.index)}resetEndLocation(t,e=this.state.lastTokEndLoc){t.end=e.index,t.loc.end=e,128&this.optionFlags&&(t.range[1]=e.index)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}}let Bt=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Vt=p`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Ht(t){return"type"===t.importKind||"typeof"===t.importKind}let Gt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},zt=/\*?\s*@((?:no)?flow)\b/,Ut={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},qt=p`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function $t(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function Jt(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return Jt(t.object)+"."+Jt(t.property);throw Error("Node had unexpected type: "+t.type)}class Wt extends et{constructor(...t){super(...t),this.tsNames=new Map}}class Zt extends rt{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Wt(t)}enter(t){256===t&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return 256===t&&this.importsStack.pop(),t}hasImport(t,e){let r=this.importsStack.length;if(this.importsStack[r-1].has(t))return!0;if(!e&&r>1){for(let e=0;e<r-1;e++)if(this.importsStack[e].has(t))return!0}return!1}declareName(t,e,r){if(4096&e){this.hasImport(t,!0)&&this.parser.raise(d.VarRedeclaration,r,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),n=s.tsNames.get(t)||0;if(1024&e){this.maybeExportDefined(s,t),s.tsNames.set(t,16|n);return}super.declareName(t,e,r),2&e&&(1&e||(this.checkRedeclarationInScope(s,t,e,r),this.maybeExportDefined(s,t)),n|=1),256&e&&(n|=2),512&e&&(n|=4),128&e&&(n|=8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,e,r){let s=t.tsNames.get(e);if((2&s)>0)return!(256&r)||!!(512&r)!=(4&s)>0;if(128&r&&(8&s)>0)if(2&t.names.get(e))return!!(1&r);else return!1;return!!(2&r)&&(1&s)>0||super.isRedeclaredInScope(t,e,r)}checkLocalExport(t){let{name:e}=t;if(this.hasImport(e))return;let r=this.scopeStack.length;for(let t=r-1;t>=0;t--){let r=this.scopeStack[t].tsNames.get(e);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(t)}}let Yt=t=>"ParenthesizedExpression"===t.type?Yt(t.expression):t;class Xt extends Ft{toAssignable(t,e=!1){var r,s,n;let a;switch(("ParenthesizedExpression"===t.type||null!=(r=t.extra)&&r.parenthesized)&&(a=Yt(t),e?"Identifier"===a.type?this.expressionScope.recordArrowParameterBindingError(d.InvalidParenthesizedAssignment,t):"MemberExpression"!==a.type&&!this.isOptionalMemberExpression(a)&&this.raise(d.InvalidParenthesizedAssignment,t):this.raise(d.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let r=0,s=t.properties.length,a=s-1;r<s;r++){let s=t.properties[r],i=r===a;this.toAssignableObjectExpressionProp(s,i,e),i&&"RestElement"===s.type&&null!=(n=t.extra)&&n.trailingCommaLoc&&this.raise(d.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:r,value:s}=t;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(s,e);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,null==(s=t.extra)?void 0:s.trailingCommaLoc,e);break;case"AssignmentExpression":"="!==t.operator&&this.raise(d.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(a,e)}}toAssignableObjectExpressionProp(t,e,r){if("ObjectMethod"===t.type)this.raise("get"===t.kind||"set"===t.kind?d.PatternHasAccessor:d.PatternHasMethod,t.key);else if("SpreadElement"===t.type){t.type="RestElement";let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,r),e||this.raise(d.RestTrailingComma,t)}else this.toAssignable(t,r)}toAssignableList(t,e,r){let s=t.length-1;for(let n=0;n<=s;n++){let a=t[n];a&&(this.toAssignableListItem(t,n,r),"RestElement"===a.type&&(n<s?this.raise(d.RestTrailingComma,a):e&&this.raise(d.RestTrailingComma,e)))}}toAssignableListItem(t,e,r){let s=t[e];if("SpreadElement"===s.type){s.type="RestElement";let t=s.argument;this.checkToRestConversion(t,!0),this.toAssignable(t,r)}else this.toAssignable(s,r)}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let e=t.properties.length-1;return t.properties.every(((t,r)=>"ObjectMethod"!==t.type&&(r===e||"SpreadElement"!==t.type)&&this.isAssignable(t)))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((t=>null===t||this.isAssignable(t)));case"AssignmentExpression":return"="===t.operator;case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){for(let r of(this.toReferencedList(t,e),t))(null==r?void 0:r.type)==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(t){let e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,r){let s=1&r,n=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else if(this.eat(t))break;else if(this.match(21)){let s=this.parseRestBinding();if((this.hasPlugin("flow")||2&r)&&(s=this.parseFunctionParamType(s)),n.push(s),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{let t=[];if(2&r)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(d.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());n.push(this.parseBindingElement(r,t))}return n}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:e}=this.state;if(21===t)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return 139===t?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,e,!1,!1,!0,!1)}parseBindingElement(t,e){let r=this.parseMaybeDefault();(this.hasPlugin("flow")||2&t)&&this.parseFunctionParamType(r);let s=this.parseMaybeDefault(r.loc.start,r);return e.length&&(r.decorators=e),s}parseFunctionParamType(t){return t}parseMaybeDefault(t,e){if(null!=t||(t=this.state.startLoc),e=null!=e?e:this.parseBindingAtom(),!this.eat(29))return e;let r=this.startNodeAt(t);return r.left=e,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(t,e,r){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return"OptionalMemberExpression"===t.type}checkLVal(t,e,r=64,s=!1,n=!1,a=!1){var i;let o,l,h=t.type;if(this.isObjectMethod(t))return;let u=this.isOptionalMemberExpression(t);if(u||"MemberExpression"===h){u&&(this.expectPlugin("optionalChainingAssign",t.loc.start),"AssignmentExpression"!==e.type&&this.raise(d.InvalidLhsOptionalChaining,t,{ancestor:e})),64!==r&&this.raise(d.InvalidPropertyBindingPattern,t);return}if("Identifier"===h){this.checkIdentifier(t,r,n);let{name:e}=t;s&&(s.has(e)?this.raise(d.ParamDupe,t):s.add(e));return}let c=this.isValidLVal(h,!(a||null!=(i=t.extra)&&i.parenthesized)&&"AssignmentExpression"===e.type,r);if(!0===c)return;if(!1===c){let s=64===r?d.InvalidLhs:d.InvalidLhsBinding;this.raise(s,t,{ancestor:e});return}"string"==typeof c?(o=c,l="ParenthesizedExpression"===h):[o,l]=c;let p="ArrayPattern"===h||"ObjectPattern"===h?{type:h}:e,y=t[o];if(Array.isArray(y))for(let t of y)t&&this.checkLVal(t,p,r,s,n,l);else y&&this.checkLVal(y,p,r,s,n,l)}checkIdentifier(t,e,r=!1){var s;this.state.strict&&(r?Q(t.name,this.inModule):(s=t.name,Y.has(s)))&&(64===e?this.raise(d.StrictEvalArguments,t,{referenceName:t.name}):this.raise(d.StrictEvalArgumentsBinding,t,{bindingName:t.name})),8192&e&&"let"===t.name&&this.raise(d.LetInLexicalBinding,t),64&e||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(d.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===t?d.RestTrailingComma:d.ElementAfterRest,this.state.startLoc),!0)}}function Kt(t){if(!t)throw Error("Assert fail")}let Qt=p`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function te(t){return"private"===t||"public"===t||"protected"===t}function ee(t,e){return e?"Literal"===t.type&&("number"==typeof t.value||"bigint"in t):"NumericLiteral"===t.type||"BigIntLiteral"===t.type}let re=p`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),se=["minimal","fsharp","hack","smart"],ne=["^^","@@","^","%","#"],ae={estree:t=>class extends t{parse(){let t=g(super.parse());return 256&this.optionFlags&&(t.tokens=t.tokens.map(g)),t}parseRegExpLiteral({pattern:t,flags:e}){let r=null;try{r=new RegExp(t,e)}catch(t){}let s=this.estreeParseLiteral(r);return s.regex={pattern:t,flags:e},s}parseBigIntLiteral(t){let e;try{e=BigInt(t)}catch(t){e=null}let r=this.estreeParseLiteral(e);return r.bigint=String(r.value||t),r}parseDecimalLiteral(t){let e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}directiveToStmt(t){let e=t.value;return delete t.value,e.type="Literal",e.raw=e.extra.raw,e.value=e.extra.expressionValue,t.type="ExpressionStatement",t.expression=e,t.directive=e.extra.rawValue,delete e.extra,t}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){null!=t&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var e;return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&!(null!=(e=t.expression.extra)&&e.parenthesized)}parseBlockBody(t,e,r,s,n){super.parseBlockBody(t,e,r,s,n);let a=t.directives.map((t=>this.directiveToStmt(t)));t.body=a.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}convertPrivateNameToPrivateIdentifier(t){let e=super.getPrivateNameSV(t);return delete t.id,t.name=e,t.type="PrivateIdentifier",t}isPrivateName(t){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===t.type:super.isPrivateName(t)}getPrivateNameSV(t){return this.getPluginOption("estree","classFeatures")?t.name:super.getPrivateNameSV(t)}parseLiteral(t,e){let r=super.parseLiteral(t,e);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(t,e,r=!1){super.parseFunctionBody(t,e,r),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,r,s,n,a,i=!1){let o=this.startNode();o.kind=t.kind,(o=super.parseMethod(o,e,r,s,n,a,i)).type="FunctionExpression",delete o.kind,t.value=o;let{typeParameters:l}=t;return l&&(delete t.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l)),"ClassPrivateMethod"===a&&(t.computed=!1),this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return"Literal"===t.type?"constructor"===t.value:super.nameIsConstructor(t)}parseClassProperty(...t){let e=super.parseClassProperty(...t);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition"),e}parseClassPrivateProperty(...t){let e=super.parseClassPrivateProperty(...t);return this.getPluginOption("estree","classFeatures")&&(e.type="PropertyDefinition",e.computed=!1),e}parseClassAccessorProperty(t){let e=super.parseClassAccessorProperty(t);return this.getPluginOption("estree","classFeatures")&&(e.type="AccessorProperty"),e}parseObjectMethod(t,e,r,s,n){let a=super.parseObjectMethod(t,e,r,s,n);return a&&(a.type="Property","method"===a.kind&&(a.kind="init"),a.shorthand=!1),a}parseObjectProperty(t,e,r,s){let n=super.parseObjectProperty(t,e,r,s);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(t,e,r){return"Property"===t?"value":super.isValidLVal(t,e,r)}isAssignable(t,e){return null!=t&&this.isObjectProperty(t)?this.isAssignable(t.value,e):super.isAssignable(t,e)}toAssignable(t,e=!1){if(null!=t&&this.isObjectProperty(t)){let{key:r,value:s}=t;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(s,e)}else super.toAssignable(t,e)}toAssignableObjectExpressionProp(t,e,r){"Property"===t.type&&("get"===t.kind||"set"===t.kind)?this.raise(d.PatternHasAccessor,t.key):"Property"===t.type&&t.method?this.raise(d.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,e,r)}finishCallExpression(t,e){let r=super.finishCallExpression(t,e);if("Import"===r.callee.type){var s,n;r.type="ImportExpression",r.source=r.arguments[0],r.options=null!=(s=r.arguments[1])?s:null,r.attributes=null!=(n=r.arguments[1])?n:null,delete r.arguments,delete r.callee}return r}toReferencedArguments(t){"ImportExpression"!==t.type&&super.toReferencedArguments(t)}parseExport(t,e){let r=this.state.lastTokStartLoc,s=super.parseExport(t,e);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":1===s.specifiers.length&&"ExportNamespaceSpecifier"===s.specifiers[0].type&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:t}=s;(null==t?void 0:t.type)==="ClassDeclaration"&&(null==(n=t.decorators)?void 0:n.length)>0&&t.start===s.start&&this.resetStartLocation(s,r)}}return s}parseSubscript(t,e,r,s){let n=super.parseSubscript(t,e,r,s);if(s.optionalChainMember){if(("OptionalMemberExpression"===n.type||"OptionalCallExpression"===n.type)&&(n.type=n.type.substring(8)),s.stop){let t=this.startNodeAtNode(n);return t.expression=n,this.finishNode(t,"ChainExpression")}}else("MemberExpression"===n.type||"CallExpression"===n.type)&&(n.optional=!1);return n}isOptionalMemberExpression(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return"ChainExpression"===t.type&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return"Property"===t.type&&"init"===t.kind&&!t.method}isObjectMethod(t){return"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}finishNodeAt(t,e,r){return g(super.finishNodeAt(t,e,r))}resetStartLocation(t,e){super.resetStartLocation(t,e),g(t)}resetEndLocation(t,e=this.state.lastTokEndLoc){super.resetEndLocation(t,e),g(t)}},jsx:t=>class extends t{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(qt.UnterminatedJsxContent,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start)return void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(r));t+=this.input.slice(e,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:ct(r)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let e,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,e=t?"\n":"\r\n"):e=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,e}jsxReadString(t){let e="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(d.UnterminatedString,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);if(s===t)break;38===s?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos):ct(s)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}e+=this.input.slice(r,this.state.pos++),this.finishToken(134,e)}jsxReadEntity(){let t=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);let e=this.readInt(t,void 0,!1,"bail");if(null!==e&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(e)}else{let e=0,r=!1;for(;e++<10&&this.state.pos<this.length&&!(r=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){let e=Ut[this.input.slice(t,this.state.pos)];if(++this.state.pos,e)return e}}return this.state.pos=t,"&"}jsxReadWord(){let t,e=this.state.pos;do{t=this.input.charCodeAt(++this.state.pos)}while(J(t)||45===t);this.finishToken(141,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){let t=this.startNode();return this.match(141)?t.name=this.state.value:D(this.state.type)?t.name=C[this.state.type]:this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){let t=this.state.startLoc,e=this.jsxParseIdentifier();if(!this.eat(14))return e;let r=this.startNodeAt(t);return r.namespace=e,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let t=this.state.startLoc,e=this.jsxParseNamespacedName();if("JSXNamespacedName"===e.type)return e;for(;this.eat(16);){let r=this.startNodeAt(t);r.object=e,r.property=this.jsxParseIdentifier(),e=this.finishNode(r,"JSXMemberExpression")}return e}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(m.brace),this.next(),"JSXEmptyExpression"===(t=this.jsxParseExpressionContainer(t,m.j_oTag)).expression.type&&this.raise(qt.AttributeIsEmpty,t),t;case 143:case 134:return this.parseExprAtom();default:throw this.raise(qt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(m.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,e){return this.match(8)?t.expression=this.jsxParseEmptyExpression():t.expression=this.parseExpression(),this.setContext(e),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){let t=this.startNode();return this.match(5)?(this.setContext(m.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(m.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){let e=this.startNodeAt(t);return this.eat(144)?this.finishNode(e,"JSXOpeningFragment"):(e.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(e))}jsxParseOpeningElementAfterName(t){let e=[];for(;!this.match(56)&&!this.match(144);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(56),this.expect(144),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){let e=this.startNodeAt(t);return this.eat(144)?this.finishNode(e,"JSXClosingFragment"):(e.name=this.jsxParseElementName(),this.expect(144),this.finishNode(e,"JSXClosingElement"))}jsxParseElementAt(t){let e=this.startNodeAt(t),r=[],s=this.jsxParseOpeningElementAt(t),n=null;if(!s.selfClosing){t:for(;;)switch(this.state.type){case 143:if(t=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(t);break t}r.push(this.jsxParseElementAt(t));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let t=this.startNode();this.setContext(m.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(t)):r.push(this.jsxParseExpressionContainer(t,m.j_expr));break}default:this.unexpected()}$t(s)&&!$t(n)&&null!==n?this.raise(qt.MissingClosingTagFragment,n):!$t(s)&&$t(n)?this.raise(qt.MissingClosingTagElement,n,{openingTagName:Jt(s.name)}):$t(s)||$t(n)||Jt(n.name)===Jt(s.name)||this.raise(qt.MissingClosingTagElement,n,{openingTagName:Jt(s.name)})}if($t(s)?(e.openingFragment=s,e.closingFragment=n):(e.openingElement=s,e.closingElement=n),e.children=r,this.match(47))throw this.raise(qt.UnwrappedAdjacentJSXElements,this.state.startLoc);return $t(s)?this.finishNode(e,"JSXFragment"):this.finishNode(e,"JSXElement")}jsxParseElement(){let t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){let{context:e}=this.state;e[e.length-1]=t}parseExprAtom(t){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){let e=this.curContext();if(e===m.j_expr)return void this.jsxReadToken();if(e===m.j_oTag||e===m.j_cTag){if($(t))return void this.jsxReadWord();if(62===t){++this.state.pos,this.finishToken(144);return}if((34===t||39===t)&&e===m.j_oTag)return void this.jsxReadString(t)}if(60===t&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(t)}updateContext(t){let{context:e,type:r}=this.state;if(56===r&&143===t)e.splice(-2,2,m.j_cTag),this.state.canStartJSXElement=!1;else if(143===r)e.push(m.j_oTag);else if(144===r){let r=e[e.length-1];r===m.j_oTag&&56===t||r===m.j_cTag?(e.pop(),this.state.canStartJSXElement=e[e.length-1]===m.j_expr):(this.setContext(m.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=T[r]}},flow:t=>class extends t{constructor(...t){super(...t),this.flowPragma=void 0}getScopeHandler(){return nt}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(t,e){134!==t&&13!==t&&28!==t&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(t,e)}addComment(t){if(void 0===this.flowPragma){let e=zt.exec(t.value);if(e)if("flow"===e[1])this.flowPragma="flow";else if("noflow"===e[1])this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(t)}flowParseTypeInitialiser(t){let e=this.state.inType;this.state.inType=!0,this.expect(t||14);let r=this.flowParseType();return this.state.inType=e,r}flowParsePredicate(){let t=this.startNode(),e=this.state.startLoc;return(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>e.index+1&&this.raise(Vt.UnexpectedSpaceBetweenModuloChecks,e),this.eat(10))?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let t=this.state.inType;this.state.inType=!0,this.expect(14);let e=null,r=null;return this.match(54)?(this.state.inType=t,r=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(54)&&(r=this.flowParsePredicate())),[e,r]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();let e=t.id=this.parseIdentifier(),r=this.startNode(),s=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11),[r.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){if(this.match(80))return this.flowParseDeclareClass(t);if(this.match(68))return this.flowParseDeclareFunction(t);if(this.match(74))return this.flowParseDeclareVariable(t);if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(t);else return e&&this.raise(Vt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t);if(this.isContextual(130))return this.flowParseDeclareTypeAlias(t);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(t);if(this.isContextual(129))return this.flowParseDeclareInterface(t);if(this.match(82))return this.flowParseDeclareExportDeclaration(t,e);this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(134)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();let e=t.body=this.startNode(),r=e.body=[];for(this.expect(5);!this.match(8);){let t=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(Vt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(t)):(this.expectContextual(125,Vt.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),r.push(t)}this.scope.exit(),this.expect(8),this.finishNode(e,"BlockStatement");let s=null,n=!1;return r.forEach((t=>{"DeclareExportAllDeclaration"!==t.type&&("DeclareExportDeclaration"!==t.type||t.declaration&&("TypeAlias"===t.declaration.type||"InterfaceDeclaration"===t.declaration.type))?"DeclareModuleExports"===t.type&&(n&&this.raise(Vt.DuplicateDeclareModuleExports,t),"ES"===s&&this.raise(Vt.AmbiguousDeclareModuleKind,t),s="CommonJS",n=!0):("CommonJS"===s&&this.raise(Vt.AmbiguousDeclareModuleKind,t),s="ES")})),t.kind=s||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!e){let t=this.state.value;throw this.raise(Vt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:t,suggestion:Gt[t]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(t=this.parseExport(t,null)).type&&(t.type="ExportDeclaration",t.default=!1,delete t.exportKind),t.type="Declare"+t.type,t):void this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();let e=this.flowParseTypeAlias(t);return e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(t){this.next();let e=this.flowParseOpaqueType(t,!0);return e.type="DeclareOpaqueType",e}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,e){if(t.id=this.flowParseRestrictedIdentifier(!e,!0),this.scope.declareName(t.id.name,e?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(12));if(e){if(t.implements=[],t.mixins=[],this.eatContextual(117))do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})}flowParseInterfaceExtends(){let t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){"_"===t&&this.raise(Vt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,e,r){Bt.has(t)&&this.raise(r?Vt.AssignReservedType:Vt.UnexpectedReservedType,e,{reservedType:t})}flowParseRestrictedIdentifier(t,e){return this.checkReservedType(this.state.value,this.state.startLoc,e),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,e){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){let e=this.state.startLoc,r=this.startNode(),s=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=s,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):t&&this.raise(Vt.MissingTypeParamDefault,e),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){let t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let r=!1;do{let t=this.flowParseTypeParameter(r);e.params.push(t),t.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterDeclaration")}flowInTopLevelContext(t){if(this.curContext()===m.brace)return t();{let e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let t=this.startNode(),e=this.state.inType;return this.state.inType=!0,t.params=[],this.flowInTopLevelContext((()=>{this.expect(47);let e=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=e})),this.state.inType=e,this.state.inType||this.curContext()!==m.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return;let t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){let t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,r){return t.static=e,14===this.lookahead().type?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=r,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){let r=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(r),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:e,allowSpread:r,allowProto:s,allowInexact:n}){let a,i,o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let h=!1;for(e&&this.match(6)?(this.expect(6),a=9,i=!0):(this.expect(5),a=8,i=!1),l.exact=i;!this.match(a);){let e=!1,a=null,o=null,u=this.startNode();if(s&&this.isContextual(118)){let e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),a=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){let t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}let c=this.flowParseVariance();if(this.eat(0))null!=a&&this.unexpected(a),this.eat(0)?(c&&this.unexpected(c.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,e))):l.indexers.push(this.flowParseObjectTypeIndexer(u,e,c));else if(this.match(10)||this.match(47))null!=a&&this.unexpected(a),c&&this.unexpected(c.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(u,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&R(this.lookahead().type)&&(t=this.state.value,this.next());let s=this.flowParseObjectTypeProperty(u,e,a,c,t,r,null!=n?n:!i);null===s?(h=!0,o=this.state.lastTokStartLoc):l.properties.push(s)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(Vt.UnexpectedExplicitInexactInObject,o)}this.expect(a),r&&(l.inexact=h);let u=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,u}flowParseObjectTypeProperty(t,e,r,s,n,a,i){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?i||this.raise(Vt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Vt.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(Vt.InexactVariance,s),null):(a||this.raise(Vt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),s&&this.raise(Vt.SpreadVariance,s),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=r,t.kind=n;let i=!1;return this.match(47)||this.match(10)?(t.method=!0,null!=r&&this.unexpected(r),s&&this.unexpected(s.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),("get"===n||"set"===n)&&this.flowCheckGetterSetterParams(t),!a&&"constructor"===t.key.name&&t.value.this&&this.raise(Vt.ThisParamBannedInConstructor,t.value.this)):("init"!==n&&this.unexpected(),t.method=!1,this.eat(17)&&(i=!0),t.value=this.flowParseTypeInitialiser(),t.variance=s),t.optional=i,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){let e=+("get"!==t.kind),r=t.value.params.length+ +!!t.value.rest;t.value.this&&this.raise("get"===t.kind?Vt.GetterMayNotHaveThisParam:Vt.SetterMayNotHaveThisParam,t.value.this),r!==e&&this.raise("get"===t.kind?d.BadGetterArity:d.BadSetterArity,t),"set"===t.kind&&t.value.rest&&this.raise(d.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e){null!=t||(t=this.state.startLoc);let r=e||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let e=this.startNodeAt(t);e.qualification=r,e.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(e,"QualifiedTypeIdentifier")}return r}flowParseGenericType(t,e){let r=this.startNodeAt(t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(t,e),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){let t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){let t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let e=null,r=!1,s=null,n=this.startNode(),a=this.lookahead(),i=78===this.state.type;return 14===a.type||17===a.type?(i&&!t&&this.raise(Vt.ThisParamMustBeFirst,n),e=this.parseIdentifier(i),this.eat(17)&&(r=!0,i&&this.raise(Vt.ThisParamMayNotBeOptional,n)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),n.name=e,n.optional=r,n.typeAnnotation=s,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){let e=this.startNodeAt(t.loc.start);return e.name=null,e.optional=!1,e.typeAnnotation=t,this.finishNode(e,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let e=null,r=null;for(this.match(78)&&((r=this.flowParseFunctionTypeParam(!0)).name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e=this.flowParseFunctionTypeParam(!1)),{params:t,rest:e,_this:r}}flowIdentToTypeAnnotation(t,e,r){switch(r.name){case"any":return this.finishNode(e,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(e,"BooleanTypeAnnotation");case"mixed":return this.finishNode(e,"MixedTypeAnnotation");case"empty":return this.finishNode(e,"EmptyTypeAnnotation");case"number":return this.finishNode(e,"NumberTypeAnnotation");case"string":return this.finishNode(e,"StringTypeAnnotation");case"symbol":return this.finishNode(e,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(t,r)}}flowParsePrimaryType(){let t,e,r=this.state.startLoc,s=this.startNode(),n=!1,a=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,e=this.flowParseTupleType(),this.state.noAnonFunctionType=a,e;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e.params=(t=this.flowParseFunctionTypeParams()).params,e.rest=t.rest,e.this=t._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{let r=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(L(this.state.type)||this.match(78)){let t=this.lookahead().type;n=17!==t&&14!==t}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,e=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),e;this.eat(12)}return r.params=(t=e?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(e)]):this.flowParseFunctionTypeParams()).params,r.rest=t.rest,r.this=t._this,this.expect(11),this.expect(19),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return s.value=this.match(85),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(Vt.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(D(this.state.type)){let t=C[this.state.type];return this.next(),super.createIdentifier(s,t)}if(L(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(r,s,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){let t=this.state.startLoc,e=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let s=this.startNodeAt(t),n=this.eat(18);r=r||n,this.expect(0),!n&&this.match(3)?(s.elementType=e,this.next(),e=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=e,s.indexType=this.flowParseType(),this.expect(3),r?(s.optional=n,e=this.finishNode(s,"OptionalIndexedAccessType")):e=this.finishNode(s,"IndexedAccessType"))}return e}flowParsePrefixType(){let t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let e=this.startNodeAt(t.loc.start);return e.params=[this.reinterpretTypeAsFunctionTypeParam(t)],e.rest=null,e.this=null,e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){let t=this.startNode();this.eat(45);let e=this.flowParseAnonFunctionWithoutParens();for(t.types=[e];this.eat(45);)t.types.push(this.flowParseAnonFunctionWithoutParens());return 1===t.types.length?e:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){let t=this.startNode();this.eat(43);let e=this.flowParseIntersectionType();for(t.types=[e];this.eat(43);)t.types.push(this.flowParseIntersectionType());return 1===t.types.length?e:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){let t=this.state.inType;this.state.inType=!0;let e=this.flowParseUnionType();return this.state.inType=t,e}flowParseTypeOrImplicitInstantiation(){if(132!==this.state.type||"_"!==this.state.value)return this.flowParseType();{let t=this.state.startLoc,e=this.parseIdentifier();return this.flowParseGenericType(t,e)}}flowParseTypeAnnotation(){let t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){let e=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e)),e}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(53)?(t=this.startNode(),"+"===this.state.value?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")):t}parseFunctionBody(t,e,r=!1){if(e)return void this.forwardNoArrowParamsConversionAt(t,(()=>super.parseFunctionBody(t,!0,r)));super.parseFunctionBody(t,!1,r)}parseFunctionBodyAndFinish(t,e,r=!1){if(this.match(14)){let e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,e,r)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){if(j(this.lookahead().type)){let t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.isContextual(126)){let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}let e=super.parseStatementLike(t);return void 0!==this.flowPragma||this.isValidDirective(e)||(this.flowPragma=null),e}parseExpressionStatement(t,e,r){if("Identifier"===e.type){if("declare"===e.name){if(this.match(80)||L(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(L(this.state.type)){if("interface"===e.name)return this.flowParseInterface(t);else if("type"===e.name)return this.flowParseTypeAlias(t);else if("opaque"===e.name)return this.flowParseOpaqueType(t,!1)}}return super.parseExpressionStatement(t,e,r)}shouldParseExportDeclaration(){let{type:t}=this.state;return 126===t||O(t)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:t}=this.state;return 126===t||O(t)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,e,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(r),t}this.expect(17);let s=this.state.clone(),n=this.state.noArrowAt,a=this.startNodeAt(e),{consequent:i,failed:o}=this.tryParseConditionalConsequent(),[l,h]=this.getArrowLikeExpressions(i);if(o||h.length>0){let t=[...n];if(h.length>0){this.state=s,this.state.noArrowAt=t;for(let e=0;e<h.length;e++)t.push(h[e].start);({consequent:i,failed:o}=this.tryParseConditionalConsequent()),[l,h]=this.getArrowLikeExpressions(i)}o&&l.length>1&&this.raise(Vt.AmbiguousConditionalArrow,s.startLoc),o&&1===l.length&&(this.state=s,t.push(l[0].start),this.state.noArrowAt=t,({consequent:i,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(i,!0),this.state.noArrowAt=n,this.expect(14),a.test=t,a.consequent=i,a.alternate=this.forwardNoArrowParamsConversionAt(a,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let t=this.parseMaybeAssignAllowIn(),e=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){let r=[t],s=[];for(;0!==r.length;){let t=r.pop();"ArrowFunctionExpression"===t.type&&"BlockStatement"!==t.body.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):s.push(t),r.push(t.body)):"ConditionalExpression"===t.type&&(r.push(t.consequent),r.push(t.alternate))}return e?(s.forEach((t=>this.finishArrowValidation(t))),[s,[]]):function(t,e){let r=[],s=[];for(let n=0;n<t.length;n++)(e(t[n],n,t)?r:s).push(t[n]);return[r,s]}(s,(t=>t.params.every((t=>this.isAssignable(t,!0)))))}finishArrowValidation(t){var e;this.toAssignableList(t.params,null==(e=t.extra)?void 0:e.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,e){let r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=e(),this.state.noArrowParamsConversionAt.pop()):r=e(),r}parseParenItem(t,e){let r=super.parseParenItem(t,e);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){let t=this.startNodeAt(e);return t.expression=r,t.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(t,"TypeCastExpression")}return r}assertModuleNodeAllowed(t){("ImportDeclaration"!==t.type||"type"!==t.importKind&&"typeof"!==t.importKind)&&("ExportNamedDeclaration"!==t.type||"type"!==t.exportKind)&&("ExportAllDeclaration"!==t.type||"type"!==t.exportKind)&&super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";let e=this.startNode();return(this.next(),this.match(5))?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(e)}if(this.isContextual(131)){t.exportKind="type";let e=this.startNode();return this.next(),this.flowParseOpaqueType(e,!1)}if(this.isContextual(129)){t.exportKind="type";let e=this.startNode();return this.next(),this.flowParseInterface(e)}{if(!this.isContextual(126))return super.parseExportDeclaration(t);t.exportKind="value";let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}}eatExportStar(t){return!!super.eatExportStar(t)||!!this.isContextual(130)&&55===this.lookahead().type&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){let{startLoc:e}=this.state,r=super.maybeParseExportNamespaceSpecifier(t);return r&&"type"===t.exportKind&&this.unexpected(e),r}parseClassId(t,e,r){super.parseClassId(t,e,r),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,r){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,r),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type&&"PropertyDefinition"!==e.type?this.raise(Vt.DeclareClassElement,s):e.value&&this.raise(Vt.DeclareClassFieldInitializer,e.value))}isIterator(t){return"iterator"===t||"asyncIterator"===t}readIterator(){let t=super.readWord1(),e="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(d.InvalidIdentifier,this.state.curPosition(),{identifierName:e}),this.finishToken(132,e)}getTokenFromCode(t){let e=this.input.charCodeAt(this.state.pos+1);if(123===t&&124===e)this.finishOp(6,2);else if(this.state.inType&&(62===t||60===t))this.finishOp(62===t?48:47,1);else if(this.state.inType&&63===t)46===e?this.finishOp(18,2):this.finishOp(17,1);else{var r;(r=this.input.charCodeAt(this.state.pos+2),64===t&&64===e&&$(r))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t)}}isAssignable(t,e){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,e):super.isAssignable(t,e)}toAssignable(t,e=!1){e||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,e)}toAssignableList(t,e,r){for(let e=0;e<t.length;e++){let r=t[e];(null==r?void 0:r.type)==="TypeCastExpression"&&(t[e]=this.typeCastToParameter(r))}super.toAssignableList(t,e,r)}toReferencedList(t,e){for(let s=0;s<t.length;s++){var r;let n=t[s];n&&"TypeCastExpression"===n.type&&!(null!=(r=n.extra)&&r.parenthesized)&&(t.length>1||!e)&&this.raise(Vt.TypeCastInPattern,n.typeAnnotation)}return t}parseArrayLike(t,e,r,s){let n=super.parseArrayLike(t,e,r,s);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(t,e,r){return"TypeCastExpression"===t||super.isValidLVal(t,e,r)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,r,s,n,a){if(e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,r,s,n,a),e.params&&n){let t=e.params;t.length>0&&this.isThisParam(t[0])&&this.raise(Vt.ThisParamBannedInConstructor,e)}else if("MethodDefinition"===e.type&&n&&e.value.params){let t=e.value.params;t.length>0&&this.isThisParam(t[0])&&this.raise(Vt.ThisParamBannedInConstructor,e)}}pushClassPrivateMethod(t,e,r,s){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,r,s)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let e=t.implements=[];do{let t=this.startNode();t.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,e.push(this.finishNode(t,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);let e=this.getObjectOrClassMethodParams(t);if(e.length>0){let r=e[0];this.isThisParam(r)&&"get"===t.kind?this.raise(Vt.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(Vt.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,e,r,s,n,a,i){let o;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!a&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(t,e,r,s,n,a,i);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(t){return this.eat(17)&&("Identifier"!==t.type&&this.raise(Vt.PatternIsOptional,t),this.isThisParam(t)&&this.raise(Vt.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(Vt.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(Vt.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,e){let r=super.parseMaybeDefault(t,e);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Vt.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(Vt.ImportReflectionHasImportType,t.specifiers[0].loc.start)}parseImportSpecifierLocal(t,e,r){e.local=Ht(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,r))}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){if(!t)return!0;let e=this.lookaheadCharCode();return 123===e||42===e}return!t&&this.isContextual(87)}applyImportPhase(t,e,r,s){(super.applyImportPhase(t,e,r,s),e)?!r&&this.match(65)||(t.exportKind="type"===r?r:"value"):("type"===r&&this.match(55)&&this.unexpected(),t.importKind="type"===r||"typeof"===r?r:"value")}parseImportSpecifier(t,e,r,s,n){let a=t.imported,i=null;"Identifier"===a.type&&("type"===a.name?i="type":"typeof"===a.name&&(i="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let e=this.parseIdentifier(!0);null===i||j(this.state.type)?(t.imported=a,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=i,t.local=Dt(e))}else{if(null!==i&&j(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=i;else{if(e)throw this.raise(d.ImportBindingIsString,t,{importName:a.value});t.imported=a,t.importKind=null}this.eatContextual(93)?t.local=this.parseIdentifier():(o=!0,t.local=Dt(t.imported))}let l=Ht(t);return r&&l&&this.raise(Vt.ImportTypeShorthandOnlyInPureImport,t),(r||l)&&this.checkReservedType(t.local.name,t.local.loc.start,!0),!o||r||l||this.checkReservedWord(t.local.name,t.loc.start,!0,!0),this.finishImportSpecifier(t,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(t,e){let r=t.kind;"get"!==r&&"set"!==r&&this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){if(this.match(14)){let e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=e}return super.parseAsyncArrowFromCallExpression(t,e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,e){var r,s,n;let a,i=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),!(a=this.tryParse((()=>super.parseMaybeAssign(t,e)),i)).error)return a.node;let{context:r}=this.state,s=r[r.length-1];(s===m.j_oTag||s===m.j_expr)&&r.pop()}if(null!=(r=a)&&r.error||this.match(47)){let r;i=i||this.state.clone();let o=this.tryParse((s=>{var n;r=this.flowParseTypeParameterDeclaration();let a=this.forwardNoArrowParamsConversionAt(r,(()=>{let s=super.parseMaybeAssign(t,e);return this.resetStartLocationFromNode(s,r),s}));null!=(n=a.extra)&&n.parenthesized&&s();let i=this.maybeUnwrapTypeCastExpression(a);return"ArrowFunctionExpression"!==i.type&&s(),i.typeParameters=r,this.resetStartLocationFromNode(i,r),a}),i),l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(Vt.UnexpectedTypeParameterBeforeAsyncArrowFunction,r),o.node;l=o.node}if(null!=(s=a)&&s.node)return this.state=a.failState,a.node;if(l)return this.state=o.failState,l;if(null!=(n=a)&&n.thrown)throw a.error;if(o.thrown)throw o.error;throw this.raise(Vt.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(t,e)}parseArrow(t){if(this.match(14)){let e=this.tryParse((()=>{let e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let r=this.startNode();return[r.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(e.thrown)return null;e.error&&(this.state=e.failState),t.returnType=e.node.typeAnnotation?this.finishNode(e.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,e){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,r,s=!0){if(!(r&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start)))){for(let e=0;e<t.params.length;e++)this.isThisParam(t.params[e])&&e>0&&this.raise(Vt.ThisParamMustBeFirst,t.params[e]);super.checkParams(t,e,r,s)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(t,e,r){if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(e.index)){this.next();let r=this.startNodeAt(e);r.callee=t,r.arguments=super.parseCallExpressionArguments(11),t=this.finishNode(r,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){let s=this.state.clone(),n=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e)||t()),s);if(!n.error&&!n.aborted)return n.node;let a=this.tryParse((()=>super.parseSubscripts(t,e,r)),s);if(a.node&&!a.error)return a.node;if(n.node)return this.state=n.failState,n.node;if(a.node)return this.state=a.failState,a.node;throw n.error||a.error}return super.parseSubscripts(t,e,r)}parseSubscript(t,e,r,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,r)return s.stop=!0,t;this.next();let n=this.startNodeAt(e);return n.callee=t,n.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11),n.optional=!0,this.finishCallExpression(n,!0)}if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let r=this.startNodeAt(e);r.callee=t;let n=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11),s.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,s.optionalChainMember))));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(t,e,r,s)}parseNewCallee(t){super.parseNewCallee(t);let e=null;this.shouldParseTypes()&&this.match(47)&&(e=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),t.typeArguments=e}parseAsyncArrowWithTypeParameters(t){let e=this.startNodeAt(t);if(this.parseFunctionParams(e,!1),this.parseArrow(e))return super.parseArrowExpression(e,void 0,!0)}readToken_mult_modulo(t){let e=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===e&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(t)}readToken_pipe_amp(t){let e=this.input.charCodeAt(this.state.pos+1);if(124===t&&125===e)return void this.finishOp(9,2);super.readToken_pipe_amp(t)}parseTopLevel(t,e){let r=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(Vt.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Vt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:t}=this.state,e=2;for(;[32,9].includes(this.input.charCodeAt(t+e));)e++;let r=this.input.charCodeAt(e+t),s=this.input.charCodeAt(e+t+1);return 58===r&&58===s?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===r&&58!==s&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(d.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:e,memberName:r}){this.raise(Vt.EnumBooleanMemberNotInitialized,t,{memberName:r,enumName:e})}flowEnumErrorInvalidMemberInitializer(t,e){return this.raise(e.explicitType?"symbol"===e.explicitType?Vt.EnumInvalidMemberInitializerSymbolType:Vt.EnumInvalidMemberInitializerPrimaryType:Vt.EnumInvalidMemberInitializerUnknownType,t,e)}flowEnumErrorNumberMemberNotInitialized(t,e){this.raise(Vt.EnumNumberMemberNotInitialized,t,e)}flowEnumErrorStringMemberInconsistentlyInitialized(t,e){this.raise(Vt.EnumStringMemberInconsistentlyInitialized,t,e)}flowEnumMemberInit(){let t=this.state.startLoc,e=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let r=this.parseNumericLiteral(this.state.value);if(e())return{type:"number",loc:r.loc.start,value:r};return{type:"invalid",loc:t}}case 134:{let r=this.parseStringLiteral(this.state.value);if(e())return{type:"string",loc:r.loc.start,value:r};return{type:"invalid",loc:t}}case 85:case 86:{let r=this.parseBooleanLiteral(this.match(85));if(e())return{type:"boolean",loc:r.loc.start,value:r};return{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){let t=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t}}}flowEnumCheckExplicitTypeMismatch(t,e,r){let{explicitType:s}=e;null!==s&&s!==r&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers({enumName:t,explicitType:e}){let r=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let a=this.startNode(),{id:i,init:o}=this.flowEnumMemberRaw(),l=i.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(Vt.EnumInvalidMemberName,i,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),r.has(l)&&this.raise(Vt.EnumDuplicateMemberName,i,{memberName:l,enumName:t}),r.add(l);let h={enumName:t,explicitType:e,memberName:l};switch(a.id=i,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,h,"boolean"),a.init=o.value,s.booleanMembers.push(this.finishNode(a,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,h,"number"),a.init=o.value,s.numberMembers.push(this.finishNode(a,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,h,"string"),a.init=o.value,s.stringMembers.push(this.finishNode(a,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,h);case"none":switch(e){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,h);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,h);break;default:s.defaultedMembers.push(this.finishNode(a,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:n}}flowEnumStringMembers(t,e,{enumName:r}){if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!L(this.state.type))throw this.raise(Vt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});let{value:e}=this.state;return this.next(),"boolean"!==e&&"number"!==e&&"string"!==e&&"symbol"!==e&&this.raise(Vt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:e}),e}flowEnumBody(t,e){let r=e.name,s=e.loc.start,n=this.flowEnumParseExplicitType({enumName:r});this.expect(5);let{members:a,hasUnknownMembers:i}=this.flowEnumMembers({enumName:r,explicitType:n});switch(t.hasUnknownMembers=i,n){case"boolean":return t.explicitType=!0,t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=a.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{let e=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;let n=a.booleanMembers.length,i=a.numberMembers.length,o=a.stringMembers.length,l=a.defaultedMembers.length;if(!n&&!i&&!o&&!l)return e();if(!n&&!i)return t.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody");if(i||o||!(n>=l))if(n||o||!(i>=l))return this.raise(Vt.EnumInconsistentMemberValues,s,{enumName:r}),e();else{for(let t of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(t.loc.start,{enumName:r,memberName:t.id.name});return t.members=a.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}else{for(let t of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(t.loc.start,{enumName:r,memberName:t.id.name});return t.members=a.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}}}}flowParseEnumDeclaration(t){let e=this.parseIdentifier();return t.id=e,t.body=this.flowEnumBody(this.startNode(),e),this.finishNode(t,"EnumDeclaration")}jsxParseOpeningElementAfterName(t){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(t.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(t)}isLookaheadToken_lt(){let t=this.nextTokenStart();if(60===this.input.charCodeAt(t)){let e=this.input.charCodeAt(t+1);return 60!==e&&61!==e}return!1}reScan_lt_gt(){let{type:t}=this.state;47===t?(this.state.pos-=1,this.readToken_lt()):48===t&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return 51===t?(this.state.pos-=2,this.finishOp(47,1),47):t}maybeUnwrapTypeCastExpression(t){return"TypeCastExpression"===t.type?t.expression:t}},typescript:t=>class extends t{constructor(...t){super(...t),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Qt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Qt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Qt.InvalidModifierOnTypeParameter})}getScopeHandler(){return Zt}tsIsIdentifier(){return L(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,e){if(!L(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;let r=this.state.value;if(t.includes(r)){if(e&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:e,stopOnStartOfClassStaticBlock:r,errorTemplate:s=Qt.InvalidModifierOnTypeMember},n){let a=(t,e,r,s)=>{e===r&&n[s]&&this.raise(Qt.InvalidModifiersOrder,t,{orderedModifiers:[r,s]})},i=(t,e,r,s)=>{(n[r]&&e===s||n[s]&&e===r)&&this.raise(Qt.IncompatibleModifiers,t,{modifiers:[r,s]})};for(;;){let{startLoc:o}=this.state,l=this.tsParseModifier(t.concat(null!=e?e:[]),r);if(!l)break;if(te(l))n.accessibility?this.raise(Qt.DuplicateAccessibilityModifier,o,{modifier:l}):(a(o,l,l,"override"),a(o,l,l,"static"),a(o,l,l,"readonly"),n.accessibility=l);else"in"===l||"out"===l?(n[l]&&this.raise(Qt.DuplicateModifier,o,{modifier:l}),n[l]=!0,a(o,l,"in","out")):(hasOwnProperty.call(n,l)?this.raise(Qt.DuplicateModifier,o,{modifier:l}):(a(o,l,"static","readonly"),a(o,l,"static","override"),a(o,l,"override","readonly"),a(o,l,"abstract","override"),i(o,l,"declare","override"),i(o,l,"static","abstract")),n[l]=!0);null!=e&&e.includes(l)&&this.raise(s,o,{modifier:l})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(t,e){let r=[];for(;!this.tsIsListTerminator(t);)r.push(e());return r}tsParseDelimitedList(t,e,r){var s=this.tsParseDelimitedListWorker(t,e,!0,r);if(null==s)throw Error(`Unexpected ${s} value.`);return s}tsParseDelimitedListWorker(t,e,r,s){let n=[],a=-1;for(;!this.tsIsListTerminator(t);){a=-1;let s=e();if(null==s)return;if(n.push(s),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(t))break;r&&this.expect(12);return}return s&&(s.value=a),n}tsParseBracketedList(t,e,r,s,n){s||(r?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(t,e,n);return r?this.expect(3):this.expect(48),a}tsParseImportType(){let t=this.startNode();return this.expect(83),this.expect(10),this.match(134)?t.argument=this.parseStringLiteral(this.state.value):(this.raise(Qt.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=super.parseExprAtom()),this.eat(12)&&!this.match(11)?(t.options=super.parseMaybeAssignAllowIn(),this.eat(12)):t.options=null,this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(3)),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(t){let e;if(1&t&&this.match(78))if(2&t)e=this.parseIdentifier(!0);else{let t=this.startNode();this.next(),e=this.finishNode(t,"ThisExpression")}else e=this.parseIdentifier(!!(1&t));for(;this.eat(16);){let r=this.startNodeAtNode(e);r.left=e,r.right=this.parseIdentifier(!!(1&t)),e=this.finishNode(r,"TSQualifiedName")}return e}tsParseTypeReference(){let t=this.startNode();return t.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();let e=this.startNodeAtNode(t);return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),e.asserts=!1,this.finishNode(e,"TSTypePredicate")}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){let t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(t){let e=this.startNode();return t(e),e.name=this.tsParseTypeParameterName(),e.constraint=this.tsEatThenParseType(81),e.default=this.tsEatThenParseType(29),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){let e=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let r={value:-1};return e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,r),0===e.params.length&&this.raise(Qt.EmptyTypeParameters,e),-1!==r.value&&this.addExtra(e,"trailingComma",r.value),this.finishNode(e,"TSTypeParameterDeclaration")}tsFillSignature(t,e){let r=19===t,s="typeAnnotation";e.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),e.parameters=this.tsParseBindingListForSignature(),r?e[s]=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(e[s]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){let t=super.parseBindingList(11,41,2);for(let e of t){let{type:t}=e;("AssignmentPattern"===t||"TSParameterProperty"===t)&&this.raise(Qt.UnsupportedSignatureParameterKind,e,{type:t})}return t}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(t,e){return this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!L(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(t){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(3),t.parameters=[e];let r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){if(this.eat(17)&&(t.optional=!0),this.match(10)||this.match(47)){e&&this.raise(Qt.ReadonlyForMethodSignature,t),t.kind&&this.match(47)&&this.raise(Qt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon();let r="parameters",s="typeAnnotation";if("get"===t.kind)t[r].length>0&&(this.raise(d.BadGetterArity,this.state.curPosition()),this.isThisParam(t[r][0])&&this.raise(Qt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===t.kind){if(1!==t[r].length)this.raise(d.BadSetterArity,this.state.curPosition());else{let e=t[r][0];this.isThisParam(e)&&this.raise(Qt.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Qt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Qt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}t[s]&&this.raise(Qt.SetAccessorCannotHaveReturnType,t[s])}else t.kind="method";return this.finishNode(t,"TSMethodSignature")}{e&&(t.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){let e=this.startNode();return(this.next(),this.match(10)||this.match(47))?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);let e=this.tsTryParseIndexSignature(t);return e||(super.parsePropertyName(t),!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&this.tsTokenCanFollowModifier()&&(t.kind=t.key.name,super.parsePropertyName(t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return(this.next(),this.eat(53))?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){let t=this.startNode();this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0);{let e=this.startNode();e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),t.typeParameter=this.finishNode(e,"TSTypeParameter")}return t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1;return t.elementTypes.forEach((t=>{let{type:r}=t;e&&"TSRestType"!==r&&"TSOptionalType"!==r&&!("TSNamedTupleMember"===r&&t.optional)&&this.raise(Qt.OptionalTypeBeforeRequired,t),e||(e="TSNamedTupleMember"===r&&t.optional||"TSOptionalType"===r)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){let t,e,r,s,n=this.state.startLoc,a=this.eat(21),{startLoc:i}=this.state,o=j(this.state.type)?this.lookaheadCharCode():null;if(58===o)t=!0,r=!1,e=this.parseIdentifier(!0),this.expect(14),s=this.tsParseType();else if(63===o){r=!0;let n=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(t=!0,e=this.createIdentifier(this.startNodeAt(i),n),this.expect(17),this.expect(14),s=this.tsParseType()):(t=!1,s=a,this.expect(17))}else s=this.tsParseType(),r=this.eat(17),t=this.eat(14);if(t){let t;e?((t=this.startNodeAt(i)).optional=r,t.label=e,t.elementType=s,this.eat(17)&&(t.optional=!0,this.raise(Qt.TupleOptionalAfterType,this.state.lastTokStartLoc))):((t=this.startNodeAt(i)).optional=r,this.raise(Qt.InvalidTupleMemberLabel,s),t.label=s,t.elementType=this.tsParseType()),s=this.finishNode(t,"TSNamedTupleMember")}else if(r){let t=this.startNodeAt(i);t.typeAnnotation=s,s=this.finishNode(t,"TSOptionalType")}if(a){let t=this.startNodeAt(n);t.typeAnnotation=s,s=this.finishNode(t,"TSRestType")}return s}tsParseParenthesizedType(){let t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,e){let r=this.startNode();return"TSConstructorType"===t&&(r.abstract=!!e,e&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,t)}tsParseLiteralTypeNode(){let t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){{let t=this.startNode();return t.literal=super.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){let t=this.startNode(),e=this.lookahead();return 135!==e.type&&136!==e.type&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:t}=this.state;if(L(t)||88===t||84===t){let e=88===t?"TSVoidKeyword":84===t?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){let t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:t}=this.state,e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let r=this.startNodeAt(t);r.elementType=e,this.expect(3),e=this.finishNode(r,"TSArrayType")}else{let r=this.startNodeAt(t);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e}tsParseTypeOperator(){let t=this.startNode(),e=this.state.value;return this.next(),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Qt.UnexpectedReadonly,t)}}tsParseInferType(){let t=this.startNode();this.expectContextual(115);let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let t=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){var t;return(t=this.state.type)>=121&&t<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(t,e,r){let s=this.startNode(),n=this.eat(r),a=[];do{a.push(e())}while(this.eat(r));return 1!==a.length||n?(s.types=a,this.finishNode(s,t)):a[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(L(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:t}=this.state,e=t.length;try{return this.parseObjectLike(8,!0),t.length===e}catch(t){return!1}}if(this.match(0)){this.next();let{errors:t}=this.state,e=t.length;try{return super.parseBindingList(3,93,1),t.length===e}catch(t){}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))return!0;return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{let e=this.startNode();this.expect(t);let r=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let t=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===t.type?(r.parameterName=t,r.asserts=!0,r.typeAnnotation=null,t=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(t,r),t.asserts=!0),e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return s?(r.parameterName=this.parseIdentifier(),r.asserts=s,r.typeAnnotation=null,e.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,e);let a=this.tsParseTypeAnnotation(!1);return r.parameterName=n,r.typeAnnotation=a,r.asserts=s,e.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;let t=this.state.containsEsc;return this.next(),(!!L(this.state.type)||!!this.match(78))&&(t&&this.raise(d.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(t=!0,e=this.startNode()){return this.tsInType((()=>{t&&this.expect(14),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){Kt(this.state.inType);let t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;let e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),e.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),e.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(e,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Qt.ReservedTypeAssertion,this.state.startLoc);let t=this.startNode();return t.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){let e=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{{let t=this.startNode();return t.expression=this.tsParseEntityName(3),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")}}));return r.length||this.raise(Qt.EmptyHeritageClauseType,e,{token:t}),r}tsParseInterfaceDeclaration(t,e={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),e.declare&&(t.declare=!0),L(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(Qt.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType((()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){let t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInTopLevelContext(t){if(this.curContext()===m.brace)return t();{let e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}}tsInType(t){let e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}}tsInDisallowConditionalTypesContext(t){let e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsInAllowConditionalTypesContext(t){let e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType((()=>(this.expect(t),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){let t=this.startNode();return t.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,e={}){return e.const&&(t.const=!0),e.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseEnumBody(){let t=this.startNode();return this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumBody")}tsParseModuleBlock(){let t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,e=!1){if(t.id=this.parseIdentifier(),e||this.checkIdentifier(t.id,1024),this.eat(16)){let e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.kind="global",t.global=!0,t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,e,r){t.isExport=r||!1,t.id=e||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);let s=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==s.type&&this.raise(Qt.ImportAliasHasImportType,s),t.moduleReference=s,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){let e=this.state.clone(),r=t();return this.state=e,r}tsTryParseAndCatch(t){let e=this.tryParse((e=>t()||e()));if(!e.aborted&&e.node)return e.error&&(this.state=e.failState),e.node}tsTryParse(t){let e=this.state.clone(),r=t();if(void 0!==r&&!1!==r)return r;this.state=e}tsTryParseDeclare(t){let e;if(this.isLineTerminator())return;let r=this.state.type;return this.isContextual(100)&&(r=74,e="let"),this.tsInAmbientContext((()=>{switch(r){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return t.declare=!0,this.parseVarStatement(t,e||this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0});case 129:{let e=this.tsParseInterfaceDeclaration(t,{declare:!0});if(e)return e}default:if(L(r))return this.tsParseDeclaration(t,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(t,e,r){switch(e.name){case"declare":{let e=this.tsTryParseDeclare(t);return e&&(e.declare=!0),e}case"global":if(this.match(5))return this.scope.enter(256),this.prodParam.enter(0),t.kind="global",t.global=!0,t.id=e,t.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(t,"TSModuleDeclaration");break;default:return this.tsParseDeclaration(t,e.name,!1,r)}}tsParseDeclaration(t,e,r,s){switch(e){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||L(this.state.type)))return this.tsParseAbstractDeclaration(t,s);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(t);else if(L(this.state.type))return t.kind="module",this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&L(this.state.type))return t.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(r)&&L(this.state.type))return this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminator(t){return t?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;let e=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let r=this.tsTryParseAndCatch((()=>{let e=this.startNodeAt(t);return e.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(e),e.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),e}));if(this.state.maybeInArrowParameters=e,r)return super.parseArrowExpression(r,null,!0)}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let t=this.startNode();return t.params=this.tsInType((()=>this.tsInTopLevelContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===t.params.length?this.raise(Qt.EmptyTypeArguments,t):this.state.inType||this.curContext()!==m.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){var t;return(t=this.state.type)>=124&&t<=130}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(t,e){let r=this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let n=s.accessibility,a=s.override,i=s.readonly;!(4&t)&&(n||i||a)&&this.raise(Qt.UnexpectedParameterModifier,r);let o=this.parseMaybeDefault();2&t&&this.parseFunctionParamType(o);let l=this.parseMaybeDefault(o.loc.start,o);if(n||i||a){let t=this.startNodeAt(r);return e.length&&(t.decorators=e),n&&(t.accessibility=n),i&&(t.readonly=i),a&&(t.override=a),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Qt.UnsupportedParameterPropertyKind,t),t.parameter=l,this.finishNode(t,"TSParameterProperty")}return e.length&&(o.decorators=e),l}isSimpleParameter(t){return"TSParameterProperty"===t.type&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(let e of t.params)"Identifier"!==e.type&&e.optional&&!this.state.isAmbientContext&&this.raise(Qt.PatternIsOptional,e)}setArrowFunctionParameters(t,e,r){super.setArrowFunctionParameters(t,e,r),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,e,r=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e||"ClassPrivateMethod"===e?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,s):"TSDeclareFunction"===s&&this.state.isAmbientContext&&(this.raise(Qt.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,s,r):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,e,r))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach((t=>{(null==t?void 0:t.type)==="TSTypeCastExpression"&&this.raise(Qt.UnexpectedTypeAnnotation,t.typeAnnotation)}))}toReferencedList(t,e){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,e,r,s){let n=super.parseArrayLike(t,e,r,s);return"ArrayExpression"===n.type&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(t,e,r,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"TSNonNullExpression")}let n=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return s.stop=!0,t;s.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let a,i=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(t)){let t=this.tsTryParseGenericAsyncArrowFunction(e);if(t)return t}let i=this.tsParseTypeArgumentsInExpression();if(!i)return;if(n&&!this.match(10)){a=this.state.curPosition();return}if(F(this.state.type)){let r=super.parseTaggedTemplateExpression(t,e,s);return r.typeParameters=i,r}if(!r&&this.eat(10)){let r=this.startNodeAt(e);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=i,s.optionalChainMember&&(r.optional=n),this.finishCallExpression(r,s.optionalChainMember)}let o=this.state.type;if(48===o||52===o||10!==o&&v[o]&&!this.hasPrecedingLineBreak())return;let l=this.startNodeAt(e);return l.expression=t,l.typeParameters=i,this.finishNode(l,"TSInstantiationExpression")}));if(a&&this.unexpected(a,10),i)return"TSInstantiationExpression"===i.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Qt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),i}return super.parseSubscript(t,e,r,s)}parseNewCallee(t){var e;super.parseNewCallee(t);let{callee:r}=t;"TSInstantiationExpression"!==r.type||null!=(e=r.extra)&&e.parenthesized||(t.typeParameters=r.typeParameters,t.callee=r.expression)}parseExprOp(t,e,r){let s;if(P[58]>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let n=this.startNodeAt(e);return n.expression=t,n.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75))?(s&&this.raise(d.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,e,r)}return super.parseExprOp(t,e,r)}checkReservedWord(t,e,r,s){this.state.isAmbientContext||super.checkReservedWord(t,e,r,s)}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(Qt.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){let e=this.lookaheadCharCode();return t?123===e||42===e:61!==e}return!t&&this.isContextual(87)}applyImportPhase(t,e,r,s){super.applyImportPhase(t,e,r,s),e?t.exportKind="type"===r?"type":"value":t.importKind="type"===r||"typeof"===r?r:"value"}parseImport(t){let e;if(this.match(134))return t.importKind="value",super.parseImport(t);if(L(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){let r=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,r);e=super.parseImportSpecifiersAndAfter(t,r)}else e=super.parseImport(t);return"type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(Qt.TypeImportCannotSpecifyDefaultAndNamed,e),e}parseExport(t,e){if(this.match(83)){this.next();let e=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?e=this.parseMaybeImportPhase(t,!1):t.importKind="value",this.tsParseImportEqualsDeclaration(t,e,!0)}return this.eat(29)?(t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")):this.eatContextual(93)?(this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")):super.parseExport(t,e)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,e,r=!1){let{isAmbientContext:s}=this.state,n=super.parseVarStatement(t,e,r||s);if(!s)return n;for(let{id:t,init:r}of n.declarations)r&&("const"!==e||t.typeAnnotation?this.raise(Qt.InitializerNotAllowedInAmbientContext,r):!function(t,e){var r;let{type:s}=t;if(null!=(r=t.extra)&&r.parenthesized)return!1;if(e){if("Literal"===s){let{value:e}=t;if("string"==typeof e||"boolean"==typeof e)return!0}}else if("StringLiteral"===s||"BooleanLiteral"===s)return!0;return!!(ee(t,e)||function(t,e){if("UnaryExpression"===t.type){let{operator:r,argument:s}=t;if("-"===r&&ee(s,e))return!0}return!1}(t,e)||"TemplateLiteral"===s&&0===t.expressions.length||function(t){if("MemberExpression"!==t.type)return!1;let{computed:e,property:r}=t;return(!e||"StringLiteral"===r.type||"TemplateLiteral"===r.type&&!(r.expressions.length>0))&&function t(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&t(e.object)}(t.object)}(t))}(r,this.hasPlugin("estree"))&&this.raise(Qt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));return n}parseStatementContent(t,e){if(this.match(75)&&this.isLookaheadContextual("enum")){let t=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(t,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,e){return e.some((e=>te(e)?t.accessibility===e:!!t[e]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(t,e,r){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Qt.InvalidModifierOnTypeParameterPositions},e);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(e,s)&&this.raise(Qt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,e)):this.parseClassMemberWithIsStatic(t,e,r,!!e.static)};e.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(t,e,r,s){let n=this.tsTryParseIndexSignature(e);if(n){t.body.push(n),e.abstract&&this.raise(Qt.IndexSignatureHasAbstract,e),e.accessibility&&this.raise(Qt.IndexSignatureHasAccessibility,e,{modifier:e.accessibility}),e.declare&&this.raise(Qt.IndexSignatureHasDeclare,e),e.override&&this.raise(Qt.IndexSignatureHasOverride,e);return}!this.state.inAbstractClass&&e.abstract&&this.raise(Qt.NonAbstractClassHasAbstractMethod,e),e.override&&!r.hadSuperClass&&this.raise(Qt.OverrideNotInSubClass,e),super.parseClassMemberWithIsStatic(t,e,r,s)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(Qt.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(Qt.ClassMethodHasDeclare,t)}parseExpressionStatement(t,e,r){return("Identifier"===e.type?this.tsParseExpressionStatement(t,e,r):void 0)||super.parseExpressionStatement(t,e,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(t,e,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(r),t}return super.parseConditional(t,e,r)}parseParenItem(t,e){let r=super.parseParenItem(t,e);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){let r=this.startNodeAt(e);return r.expression=t,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(t)));let e=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Qt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let s=L(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return s?(("TSInterfaceDeclaration"===s.type||"TSTypeAliasDeclaration"===s.type||r)&&(t.exportKind="type"),r&&"TSImportEqualsDeclaration"!==s.type&&(this.resetStartLocation(s,e),s.declare=!0),s):null}parseClassId(t,e,r,s){if((!e||r)&&this.isContextual(113))return;super.parseClassId(t,e,r,t.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(t.typeParameters=n)}parseClassPropertyAnnotation(t){!t.optional&&(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));let e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&!(t.readonly&&!t.typeAnnotation)&&this.match(29)&&this.raise(Qt.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){let{key:e}=t;this.raise(Qt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==e.type||t.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(Qt.PrivateElementHasAbstract,t),t.accessibility&&this.raise(Qt.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(Qt.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,e,r,s,n,a){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&n&&this.raise(Qt.ConstructorHasTypeParameters,i);let{declare:o=!1,kind:l}=e;o&&("get"===l||"set"===l)&&this.raise(Qt.DeclareAccessor,e,{kind:l}),i&&(e.typeParameters=i),super.pushClassMethod(t,e,r,s,n,a)}pushClassPrivateMethod(t,e,r,s){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.pushClassPrivateMethod(t,e,r,s)}declareClassPrivateMethodInScope(t,e){"TSDeclareMethod"!==t.type&&("MethodDefinition"!==t.type||hasOwnProperty.call(t.value,"body"))&&super.declareClassPrivateMethodInScope(t,e)}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,e,r,s,n,a,i){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(t.typeParameters=o),super.parseObjPropValue(t,e,r,s,n,a,i)}parseFunctionParams(t,e){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(t.typeParameters=r),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(t.id.typeAnnotation=r,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(t,e){var r,s,n,a,i;let o,l,h,u;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),!(l=this.tryParse((()=>super.parseMaybeAssign(t,e)),o)).error)return l.node;let{context:r}=this.state,s=r[r.length-1];(s===m.j_oTag||s===m.j_expr)&&r.pop()}if(!(null!=(r=l)&&r.error)&&!this.match(47))return super.parseMaybeAssign(t,e);o&&o!==this.state||(o=this.state.clone());let c=this.tryParse((r=>{var s,n;u=this.tsParseTypeParameters(this.tsParseConstModifier);let a=super.parseMaybeAssign(t,e);return("ArrowFunctionExpression"!==a.type||null!=(s=a.extra)&&s.parenthesized)&&r(),(null==(n=u)?void 0:n.params.length)!==0&&this.resetStartLocationFromNode(a,u),a.typeParameters=u,a}),o);if(!c.error&&!c.aborted)return u&&this.reportReservedArrowTypeParam(u),c.node;if(!l&&(Kt(!this.hasPlugin("jsx")),!(h=this.tryParse((()=>super.parseMaybeAssign(t,e)),o)).error))return h.node;if(null!=(s=l)&&s.node)return this.state=l.failState,l.node;if(c.node)return this.state=c.failState,u&&this.reportReservedArrowTypeParam(u),c.node;if(null!=(n=h)&&n.node)return this.state=h.failState,h.node;throw(null==(a=l)?void 0:a.error)||c.error||(null==(i=h)?void 0:i.error)}reportReservedArrowTypeParam(t){var e;1===t.params.length&&!t.params[0].constraint&&!(null!=(e=t.extra)&&e.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Qt.ReservedArrowTypeParam,t)}parseMaybeUnary(t,e){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,e)}parseArrow(t){if(this.match(14)){let e=this.tryParse((t=>{let e=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&t(),e}));if(e.aborted)return;e.thrown||(e.error&&(this.state=e.failState),t.returnType=e.node)}return super.parseArrow(t)}parseFunctionParamType(t){this.eat(17)&&(t.optional=!0);let e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e),this.resetEndLocation(t),t}isAssignable(t,e){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,e);case"TSParameterProperty":return!0;default:return super.isAssignable(t,e)}}toAssignable(t,e=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,e);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":e?this.expressionScope.recordArrowParameterBindingError(Qt.UnexpectedTypeCastInParameter,t):this.raise(Qt.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,e);break;case"AssignmentExpression":e||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,e)}}toAssignableParenthesizedExpression(t,e){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,e);break;default:super.toAssignable(t,e)}}checkToRestConversion(t,e){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,e)}}isValidLVal(t,e,r){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!e)&&["expression",!0];default:return super.isValidLVal(t,e,r)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t,e){if(this.match(47)||this.match(51)){let r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(t,e);return s.typeParameters=r,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t,e)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,e){let r=super.parseMaybeDefault(t,e);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Qt.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(t){if(this.state.inType){if(62===t)return void this.finishOp(48,1);if(60===t)return void this.finishOp(47,1)}super.getTokenFromCode(t)}reScan_lt_gt(){let{type:t}=this.state;47===t?(this.state.pos-=1,this.readToken_lt()):48===t&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return 51===t?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableListItem(t,e,r){let s=t[e];"TSTypeCastExpression"===s.type&&(t[e]=this.typeCastToParameter(s)),super.toAssignableListItem(t,e,r)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every((t=>this.isAssignable(t,!0))):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){let e=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){let e=super.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t)[0];return r&&this.isThisParam(r)?e+1:e}parseCatchClauseParam(){let t=super.parseCatchClauseParam(),e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e,this.resetEndLocation(t)),t}tsInAmbientContext(t){let{isAmbientContext:e,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=e,this.state.strict=r}}parseClass(t,e,r){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,e,r)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(t,e){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(e,this.parseClass(t,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(Qt.NonClassMethodPropertyHasAbstractModifer,t),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,80)}parseMethod(t,e,r,s,n,a,i){let o=super.parseMethod(t,e,r,s,n,a,i);if(o.abstract&&(this.hasPlugin("estree")?o.value:o).body){let{key:t}=o;this.raise(Qt.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==t.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,e,r,s){return!e&&s?(this.parseTypeOnlyImportExportSpecifier(t,!1,r),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,e,r,s))}parseImportSpecifier(t,e,r,s,n){return!e&&s?(this.parseTypeOnlyImportExportSpecifier(t,!0,r),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,e,r,s,r?4098:4096))}parseTypeOnlyImportExportSpecifier(t,e,r){let s,n=e?"imported":"local",a=e?"local":"exported",i=t[n],o=!1,l=!0,h=i.loc.start;if(this.isContextual(93)){let t=this.parseIdentifier();if(this.isContextual(93)){let r=this.parseIdentifier();j(this.state.type)?(o=!0,i=t,s=e?this.parseIdentifier():this.parseModuleExportName()):s=r,l=!1}else j(this.state.type)?(l=!1,s=e?this.parseIdentifier():this.parseModuleExportName()):(o=!0,i=t)}else j(this.state.type)&&(o=!0,e?(i=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(i.name,i.loc.start,!0,!0)):i=this.parseModuleExportName());o&&r&&this.raise(e?Qt.TypeModifierIsUsedInTypeImports:Qt.TypeModifierIsUsedInTypeExports,h),t[n]=i,t[a]=s,t[e?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(t[a]=e?this.parseIdentifier():this.parseModuleExportName()),t[a]||(t[a]=Dt(t[n])),e&&this.checkIdentifier(t[a],o?4098:4096)}},v8intrinsic:t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,e=this.startNode();if(this.next(),L(this.state.type)){let t=this.parseIdentifierName(),r=this.createIdentifier(e,t);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(133)){let e=this.startNode();return this.next(),this.assertNoSpace(),e.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){let r=t;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=e,r}getTokenFromCode(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,e,r,s){void 0!==t&&super.checkReservedWord(t,e,r,s)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,e,r){return"Placeholder"===t||super.isValidLVal(t,e,r)}toAssignable(t,e){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":super.toAssignable(t,e)}chStartsBindingIdentifier(t,e){return!!super.chStartsBindingIdentifier(t,e)||133===this.lookahead().type}verifyBreakContinue(t,e){t.label&&"Placeholder"===t.label.type||super.verifyBreakContinue(t,e)}parseExpressionStatement(t,e){var r;return"Placeholder"!==e.type||null!=(r=e.extra)&&r.parenthesized?super.parseExpressionStatement(t,e):this.match(14)?(t.label=this.finishPlaceholder(e,"Identifier"),this.next(),t.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(t,"LabeledStatement")):(this.semicolon(),t.name=e.name,this.finishPlaceholder(t,"Statement"))}parseBlock(t,e,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,e,r)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,e,r){let s=e?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,a=this.parsePlaceholder("Identifier");if(a)if(this.match(81)||this.match(133)||this.match(5))t.id=a;else if(r||!e)return t.id=null,t.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(t,s);else throw this.raise(re.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(t,e,r);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,n),this.finishNode(t,s)}parseExport(t,e){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(t,e);if(!this.isContextual(98)&&!this.match(12))return t.specifiers=[],t.source=null,t.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(t,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let s=this.startNode();return s.exported=r,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(t,e)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(C[133],this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,e){var r;return null!=(r=t.specifiers)&&!!r.length||super.maybeParseExportDefaultSpecifier(t,e)}checkExport(t){let{specifiers:e}=t;null!=e&&e.length&&(t.specifiers=e.filter((t=>"Placeholder"===t.exported.type))),super.checkExport(t),t.specifiers=e}parseImport(t){let e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let r=this.startNodeAtNode(e);return r.local=e,t.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(re.UnexpectedSpace,this.state.lastTokEndLoc)}}},ie=Object.keys(ae);class oe extends Xt{checkProto(t,e,r,s){if("SpreadElement"===t.type||this.isObjectMethod(t)||t.computed||t.shorthand)return r;let n=t.key;return"__proto__"===("Identifier"===n.type?n.name:n.value)?(e?this.raise(d.RecordNoProto,n):r&&(s?null===s.doubleProtoLoc&&(s.doubleProtoLoc=n.loc.start):this.raise(d.DuplicateProto,n)),!0):r}shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&this.offsetToSourcePos(t.start)===e}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,256&this.optionFlags&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd((()=>this.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){let e=this.state.startLoc,r=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(e);for(s.expressions=[r];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e)))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd((()=>this.parseMaybeAssign(t,e)))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,e){var r;let s,n=this.state.startLoc,a=this.isContextual(108);if(a&&this.prodParam.hasYield){this.next();let t=this.parseYield(n);return e&&(t=e.call(this,t,n)),t}t?s=!1:(t=new jt,s=!0);let{type:i}=this.state;(10===i||L(i))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(e&&(o=e.call(this,o,n)),(r=this.state.type)>=29&&r<=33){let e=this.startNodeAt(n);if(e.operator=this.state.value,this.match(29)){this.toAssignable(o,!0),e.left=o;let r=n.index;null!=t.doubleProtoLoc&&t.doubleProtoLoc.index>=r&&(t.doubleProtoLoc=null),null!=t.shorthandAssignLoc&&t.shorthandAssignLoc.index>=r&&(t.shorthandAssignLoc=null),null!=t.privateKeyLoc&&t.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else e.left=o;return this.next(),e.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(e,"AssignmentExpression")),e}if(s&&this.checkExpressionErrors(t,!0),a){let{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?v[t]:v[t]&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(d.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(t){let e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,r)?s:this.parseConditional(s,e,t)}parseConditional(t,e,r){if(this.eat(17)){let r=this.startNodeAt(e);return r.test=t,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,r)?s:this.parseExprOp(s,e,-1)}parseExprOp(t,e,r){if(this.isPrivateName(t)){let e=this.getPrivateNameSV(t);!(r>=P[58])&&this.prodParam.hasIn&&this.match(58)||this.raise(d.PrivateInExpectedIn,t,{identifierName:e}),this.classScope.usePrivateName(e,t.loc.start)}let s=this.state.type;if(s>=39&&s<=59&&(this.prodParam.hasIn||!this.match(58))){let n=P[s];if(n>r){if(39===s){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}let a=this.startNodeAt(e);a.left=t,a.operator=this.state.value;let i=41===s||42===s,o=40===s;if(o&&(n=P[42]),this.next(),39===s&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(d.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let l=this.finishNode(a,i||o?"LogicalExpression":"BinaryExpression"),h=this.state.type;if(o&&(41===h||42===h)||i&&40===h)throw this.raise(d.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,e,r)}}return t}parseExprOpRightExpr(t,e){let r=this.state.startLoc;if(39===t){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(d.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),r)}))}return this.parseExprOpBaseRightExpr(t,e)}parseExprOpBaseRightExpr(t,e){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===t?e-1:e)}parseHackPipeBody(){var t;let{startLoc:e}=this.state,r=this.parseMaybeAssign();return l.has(r.type)&&!(null!=(t=r.extra)&&t.parenthesized)&&this.raise(d.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(d.PipeTopicUnused,e),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(d.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){let r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let t=this.parseAwait(r);return e||this.checkExponentialAfterUnary(t),t}let n=this.match(34),a=this.startNode();if(I[this.state.type]){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let r=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&r){let t=a.argument;"Identifier"===t.type?this.raise(d.StrictDelete,a):this.hasPropertyAsPrivateName(t)&&this.raise(d.DeletePrivateField,a)}if(!n)return e||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let i=this.parseUpdate(a,n,t);if(s){let{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?v[t]:v[t]&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(d.AwaitNotInAsyncContext,r),this.parseAwait(r)}return i}parseUpdate(t,e,r){if(e)return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),t;let s=this.state.startLoc,n=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return n;for(;34===this.state.type&&!this.canInsertSemicolon();){let t=this.startNodeAt(s);t.operator=this.state.value,t.prefix=!1,t.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(t,"UpdateExpression"))}return n}parseExprSubscripts(t){let e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,r)?s:this.parseSubscripts(s,e)}parseSubscripts(t,e,r){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,r,s),s.maybeAsyncArrow=!1}while(!s.stop);return t}parseSubscript(t,e,r,s){let{type:n}=this.state;if(!r&&15===n)return this.parseBind(t,e,r,s);if(F(n))return this.parseTaggedTemplateExpression(t,e,s);let a=!1;if(18===n){if(r&&(this.raise(d.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return s.stop=!0,t;s.optionalChainMember=a=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,s,a);{let r=this.eat(0);return r||a||this.eat(16)?this.parseMember(t,e,s,r,a):(s.stop=!0,t)}}parseMember(t,e,r,s,n){let a=this.startNodeAt(e);return(a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===t.type&&this.raise(d.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),r.optionalChainMember)?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,e,r,s){let n=this.startNodeAt(e);return n.object=t,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),e,r)}parseCoverCallAndAsyncArrowHead(t,e,r,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let i=this.startNodeAt(e);i.callee=t;let{maybeAsyncArrow:o,optionalChainMember:l}=r;o&&(this.expressionScope.enter(new It(2)),a=new jt),l&&(i.optional=s),s?i.arguments=this.parseCallExpressionArguments(11):i.arguments=this.parseCallExpressionArguments(11,"Super"!==t.type,i,a);let h=this.finishCallExpression(i,l);return o&&this.shouldParseAsyncArrow()&&!s?(r.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),h=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),h)):(o&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(h)),this.state.maybeInArrowParameters=n,h}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,r){let s=this.startNodeAt(e);return s.tag=t,s.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(d.OptionalChainingNoTemplate,e),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,e){if("Import"===t.callee.type)if(0===t.arguments.length||t.arguments.length>2)this.raise(d.ImportCallArity,t);else for(let e of t.arguments)"SpreadElement"===e.type&&this.raise(d.ImportCallSpreadArgument,e);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,r,s){let n=[],a=!0,i=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(!1,s,e))}return this.state.inFSharpPipelineDirectBody=i,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var r;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,null==(r=e.extra)?void 0:r.trailingCommaLoc),e.innerComments&&ot(t,e.innerComments),e.callee.trailingComments&&ot(t,e.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,r=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:if(e=this.startNode(),this.next(),this.match(16))return this.parseImportMetaProperty(e);if(!this.match(10))return this.raise(d.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import");if(512&this.optionFlags)return this.parseImportCall(e);return this.finishNode(e,"Import");case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let t=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(t)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;let t=e.callee=this.parseNoCallExpr();if("MemberExpression"===t.type)return this.finishNode(e,"BindExpression");throw this.raise(d.UnsupportedBind,t)}case 139:return this.raise(d.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let t=this.getPluginOption("pipelineOperator","proposal");if(t)return this.parseTopicReference(t);this.unexpected();break}case 47:{let t=this.input.codePointAt(this.nextTokenStart());$(t)||62===t?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(137===s)return this.parseDecimalLiteral(this.state.value);if(L(s)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();let t=this.state.potentialArrowAt===this.state.start,e=this.state.containsEsc,r=this.parseIdentifier();if(!e&&"async"===r.name&&!this.canInsertSemicolon()){let{type:t}=this.state;if(68===t)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(L(t))if(61===this.lookaheadCharCode())return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r));else return r;if(90===t)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}if(t&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1);return r}this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=n(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(t){let e=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(e,r,t,s)}finishTopicReference(t,e,r,s){if(this.testTopicReferenceConfiguration(r,e,s))if("hack"===r)return this.topicReferenceIsAllowedInCurrentContext()||this.raise(d.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,"TopicReference");else return this.topicReferenceIsAllowedInCurrentContext()||this.raise(d.PrimaryTopicNotAllowed,e),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference");throw this.raise(d.PipeTopicUnconfiguredToken,e,{token:C[s]})}testTopicReferenceConfiguration(t,e,r){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:C[r]}]);case"smart":return 27===r;default:throw this.raise(d.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Nt(!0,this.prodParam.hasYield));let e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(d.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();let r=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=r,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||16&this.optionFlags?this.scope.allowSuper||16&this.optionFlags||this.raise(d.UnexpectedSuper,t):this.raise(d.SuperNotAllowed,t),this.match(10)||this.match(0)||this.match(16)||this.raise(d.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),e=this.startNodeAt(n(this.state.startLoc,1)),r=this.state.value;return this.next(),t.id=this.createIdentifier(e,r),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,r){t.meta=e;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==r||s)&&this.raise(d.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:r}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(d.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let e=this.isContextual(105);if(this.expectPlugin(e?"sourcePhaseImports":"deferredImportEvaluation"),!(512&this.optionFlags))throw this.raise(d.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=e?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,r){return this.addExtra(r,"rawValue",t),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=t,this.next(),this.finishNode(r,e)}parseLiteral(t,e){let r=this.startNode();return this.parseLiteralAtNode(t,e,r)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let e=this.startNode();return this.addExtra(e,"raw",this.input.slice(this.offsetToSourcePos(e.start),this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){let e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let e,r,s,n=this.state.startLoc;this.next(),this.expressionScope.enter(new It(1));let a=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let o=this.state.startLoc,l=[],h=new jt,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===h.optionalParametersLoc?null:h.optionalParametersLoc),this.match(11)){s=this.state.startLoc;break}if(this.match(21)){let t=this.state.startLoc;if(r=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),t)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowIn(h,this.parseParenItem))}let c=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=a,this.state.inFSharpPipelineDirectBody=i;let p=this.startNodeAt(n);return t&&this.shouldParseArrow(l)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(h),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,l,!1),p):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),s&&this.unexpected(s),r&&this.unexpected(r),this.checkExpressionErrors(h,!0),this.toReferencedListDeep(l,!0),l.length>1?((e=this.startNodeAt(o)).expressions=l,this.finishNode(e,"SequenceExpression"),this.resetEndLocation(e,c)):e=l[0],this.wrapParenthesis(n,e))}wrapParenthesis(t,e){if(!(1024&this.optionFlags))return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;let r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let r=this.parseMetaProperty(t,e,"target");return this.scope.inNonArrowFunction||this.scope.inClass||4&this.optionFlags||this.raise(d.UnexpectedNewTarget,r),r}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let e=this.match(83),r=this.parseNoCallExpr();t.callee=r,e&&("Import"===r.type||"ImportExpression"===r.type)&&this.raise(d.ImportCallNotNewExpression,r)}parseTemplateElement(t){let{start:e,startLoc:r,end:s,value:a}=this.state,i=this.startNodeAt(n(r,1));null!==a||t||this.raise(d.InvalidEscapeSequenceTemplate,n(this.state.firstInvalidTemplateEscapePos,1));let o=this.match(24),l=o?-1:-2,h=s+l;i.value={raw:this.input.slice(e+1,h).replace(/\r\n?/g,"\n"),cooked:null===a?null:a.slice(1,l)},i.tail=o,this.next();let u=this.finishNode(i,"TemplateElement");return this.resetEndLocation(u,n(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode(),r=this.parseTemplateElement(t),s=[r],n=[];for(;!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(t));return e.expressions=n,e.quasis=s,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,i=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(t);){let n;if(i)i=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}e?n=this.parseBindingProperty():(n=this.parsePropertyDefinition(s),a=this.checkProto(n,r,a,s)),r&&!this.isObjectProperty(n)&&"SpreadElement"!==n.type&&this.raise(d.InvalidRecordProperty,n),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.next(),this.state.inFSharpPipelineDirectBody=n;let l="ObjectExpression";return e?l="ObjectPattern":r&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e,r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(d.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let s=this.startNode(),n=!1,a=!1;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(s.decorators=r,r=[]),s.method=!1,t&&(e=this.state.startLoc);let i=this.eat(55);this.parsePropertyNamePrefixOperator(s);let o=this.state.containsEsc;if(this.parsePropertyName(s,t),!i&&!o&&this.maybeAsyncOrAccessorProp(s)){let{key:t}=s,e=t.name;"async"!==e||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(t),i=this.eat(55),this.parsePropertyName(s)),("get"===e||"set"===e)&&(a=!0,this.resetPreviousNodeTrailingComments(t),s.kind=e,this.match(55)&&(i=!0,this.raise(d.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,e,i,n,!1,a,t)}getGetterSetterExpectedParamCount(t){return+("get"!==t.kind)}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let r=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==r&&this.raise("get"===t.kind?d.BadGetterArity:d.BadSetterArity,t),"set"===t.kind&&(null==(e=s[s.length-1])?void 0:e.type)==="RestElement"&&this.raise(d.BadSetterRestParameter,t)}parseObjectMethod(t,e,r,s,n){if(n){let r=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||e||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,r,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,r,s){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(t,"ObjectProperty");if(!t.computed&&"Identifier"===t.key.type){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,Dt(t.key));else if(this.match(29)){let r=this.state.startLoc;null!=s?null===s.shorthandAssignLoc&&(s.shorthandAssignLoc=r):this.raise(d.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,Dt(t.key))}else t.value=Dt(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,r,s,n,a,i){let o=this.parseObjectMethod(t,r,s,n,a)||this.parseObjectProperty(t,e,n,i);return o||this.unexpected(),o}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let r,{type:s,value:n}=this.state;if(j(s))r=this.parseIdentifier(!0);else switch(s){case 135:r=this.parseNumericLiteral(n);break;case 134:r=this.parseStringLiteral(n);break;case 136:r=this.parseBigIntLiteral(n);break;case 139:{let t=this.state.startLoc;null!=e?null===e.privateKeyLoc&&(e.privateKeyLoc=t):this.raise(d.UnexpectedPrivateField,t),r=this.parsePrivateName();break}default:if(137===s){r=this.parseDecimalLiteral(n);break}this.unexpected()}t.key=r,139!==s&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,r,s,n,a,i=!1){this.initFunction(t,r),t.generator=e,this.scope.enter(18|64*!!i|32*!!n),this.prodParam.enter(Nt(r,t.generator)),this.parseFunctionParams(t,s);let o=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!r,s,a),this.state.inFSharpPipelineDirectBody=n,this.finishNode(a,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,r,s){this.scope.enter(6);let n=Nt(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,r);let a=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,r){this.toAssignableList(e,r,!1),t.params=e}parseFunctionBodyAndFinish(t,e,r=!1){return this.parseFunctionBody(t,!1,r),this.finishNode(t,e)}parseFunctionBody(t,e,r=!1){let s=e&&!this.match(5);if(this.expressionScope.enter(new vt),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{let s=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(n=>{let a=!this.isSimpleParamList(t.params);n&&a&&this.raise(d.IllegalLanguageModeDirective,("method"===t.kind||"constructor"===t.kind)&&t.key?t.key.loc.end:t);let i=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!r&&!a,e,i),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,i)})),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return"Identifier"===t.type}isSimpleParamList(t){for(let e=0,r=t.length;e<r;e++)if(!this.isSimpleParameter(t[e]))return!1;return!0}checkParams(t,e,r,s=!0){let n=!e&&new Set,a={type:"FormalParameters"};for(let e of t.params)this.checkLVal(e,a,5,n,s)}parseExprList(t,e,r,s){let n=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(e,r))}return n}parseExprListItem(t,e,r){let s;if(this.match(12))t||this.raise(d.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){let t=this.state.startLoc;s=this.parseParenItem(this.parseSpread(e),t)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(d.UnexpectedArgumentPlaceholder,this.state.startLoc);let t=this.startNode();this.next(),s=this.finishNode(t,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return s}parseIdentifier(t){let e=this.startNode(),r=this.parseIdentifierName(t);return this.createIdentifier(e,r)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t){let e,{startLoc:r,type:s}=this.state;j(s)?e=this.state.value:this.unexpected();let n=s<=92;return t?n&&this.replaceToken(132):this.checkReservedWord(e,r,n,!1),this.next(),e}checkReservedWord(t,e,r,s){if(!(t.length>10)){if(tt.has(t)){if(r&&W.has(t))return void this.raise(d.UnexpectedKeyword,e,{keyword:t});if((this.state.strict?s?Q:K:X)(t,this.inModule))return void this.raise(d.UnexpectedReservedWord,e,{reservedWord:t});if("yield"===t){if(this.prodParam.hasYield)return void this.raise(d.YieldBindingIdentifier,e)}else if("await"===t){if(this.prodParam.hasAwait)return void this.raise(d.AwaitBindingIdentifier,e);if(this.scope.inStaticBlock)return void this.raise(d.AwaitBindingIdentifierInStaticBlock,e);this.expressionScope.recordAsyncArrowParametersError(e)}else if("arguments"===t&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(d.ArgumentsInClass,e)}}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait||1&this.optionFlags&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(d.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(d.ObsoleteAwaitStar,e),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return 53===t||10===t||0===t||F(t)||102===t&&!this.state.containsEsc||138===t||56===t||this.hasPlugin("v8intrinsic")&&54===t}parseYield(t){let e=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(d.YieldInParameter,e);let r=!1,s=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}return e.delegate=r,e.argument=s,this.finishNode(e,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)&&!this.match(11)&&(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(d.ImportCallArity,t)}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===t.type&&this.raise(d.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){let r=this.startNodeAt(e);return r.callee=t,this.finishNode(r,"PipelineBareFunction")}{let r=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),r.expression=t,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(d.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(d.PipelineTopicUnused,t)}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return t();{let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){let e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(8|e);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(-9&e);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=r,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let e=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{r()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}let le={kind:1},he={kind:2},ue=/[\uD800-\uDFFF]/u,ce=/in(?:stanceof)?/y;class pe extends oe{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.comments,256&this.optionFlags&&(t.tokens=function(t,e,r){for(let s=0;s<t.length;s++){let a=t[s],{type:i}=a;if("number"==typeof i){if(139===i){let{loc:e,start:r,value:i,end:o}=a,l=r+1,h=n(e.start,1);t.splice(s,1,new St({type:S[27],value:"#",start:r,end:l,startLoc:e.start,endLoc:h}),new St({type:S[132],value:i,start:l,end:o,startLoc:h,endLoc:e.end})),s++;continue}if(F(i)){let o,l,h,u,c,{loc:p,start:d,value:y,end:x}=a,g=d+1,f=n(p.start,1);o=new St(96===e.charCodeAt(d-r)?{type:S[22],value:"`",start:d,end:g,startLoc:p.start,endLoc:f}:{type:S[8],value:"}",start:d,end:g,startLoc:p.start,endLoc:f}),24===i?(h=x-1,u=n(p.end,-1),l=null===y?null:y.slice(1,-1),c=new St({type:S[22],value:"`",start:h,end:x,startLoc:u,endLoc:p.end})):(h=x-2,u=n(p.end,-2),l=null===y?null:y.slice(1,-2),c=new St({type:S[23],value:"${",start:h,end:x,startLoc:u,endLoc:p.end})),t.splice(s,1,o,new St({type:S[20],value:l,start:g,end:h,startLoc:f,endLoc:u}),c),s+=2;continue}a.type=S[i]}}return t}(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,e=140,r=this.options.sourceType){let s;if(t.sourceType=r,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(let[t,e]of Array.from(this.scope.undefinedExports))this.raise(d.ModuleExportUndefined,e,{localName:t});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}return 140===e?this.finishNode(t,"Program"):this.finishNodeAt(t,"Program",n(this.state.startLoc,-1))}stmtToDirective(t){t.type="Directive",t.value=t.expression,delete t.expression;let e=t.value,r=e.value,s=this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end)),n=e.value=s.slice(1,-1);return this.addExtra(e,"raw",s),this.addExtra(e,"rawValue",n),this.addExtra(e,"expressionValue",r),e.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(t,e){if($(t)){if(ce.lastIndex=e,ce.test(this.input)){let t=this.codePointAtPos(ce.lastIndex);if(!J(t)&&92!==t)return!1}return!0}return 92===t||!1}chStartsBindingPattern(t){return 91===t||123===t}hasFollowingBindingAtom(){let t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return 123===e||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){let{type:t,containsEsc:e}=this.lookahead();return(102!==t||!!e)&&(L(t)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){let r=this.state.type,s=this.startNode(),n=!!(2&t),a=!!(4&t),i=1&t;switch(r){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(46===this.lookaheadCharCode())break;return a||this.raise(this.state.strict?d.StrictFunction:this.options.annexB?d.SloppyFunctionAnnexB:d.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?n||this.raise(d.UnexpectedLexicalDeclaration,s):this.raise(d.AwaitUsingNotInAsyncContext,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(d.UnexpectedUsingDeclaration,this.state.startLoc):n||this.raise(d.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let t=this.nextTokenStart(),e=this.codePointAtPos(t);if(91!==e&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(e,t)&&123!==e))break}case 75:n||this.raise(d.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let t=this.state.value;return this.parseVarStatement(s,t)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let t=this.lookaheadCharCode();if(40===t||46===t)break}case 82:{let t;return 8&this.optionFlags||i||this.raise(d.UnexpectedImportExport,this.state.startLoc),this.next(),t=83===r?this.parseImport(s):this.parseExport(s,e),this.assertModuleNodeAllowed(t),t}default:if(this.isAsyncFunction())return n||this.raise(d.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let o=this.state.value,l=this.parseExpression();return L(r)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(s,o,l,t):this.parseExpressionStatement(s,l,e)}assertModuleNodeAllowed(t){8&this.optionFlags||this.inModule||this.raise(d.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(t,e,r){if(t){var s;null!=(s=e.decorators)&&s.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(d.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),r&&this.resetStartLocationFromNode(r,e)}return e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=[];do{e.push(this.parseDecorator())}while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(d.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(d.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let e,r=this.state.startLoc;if(this.match(10)){let r=this.state.startLoc;this.next(),e=this.parseExpression(),this.expect(11),e=this.wrapParenthesis(r,e);let s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(e,r),!1===this.getPluginOption("decorators","allowCallParenthesized")&&t.expression!==e&&this.raise(d.DecoratorArgumentsOutsideParentheses,s)}else{for(e=this.parseIdentifier(!1);this.eat(16);){let t=this.startNodeAt(r);t.object=e,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),t.property=this.parsePrivateName()):t.property=this.parseIdentifier(!0),t.computed=!1,e=this.finishNode(t,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(e,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,e){if(this.eat(10)){let r=this.startNodeAt(e);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let r;for(r=0;r<this.state.labels.length;++r){let s=this.state.labels[r];if((null==t.label||s.name===t.label.name)&&(null!=s.kind&&(e||1===s.kind)||t.label&&e))break}r===this.state.labels.length&&this.raise(d.IllegalBreakContinue,t,{type:e?"BreakStatement":"ContinueStatement"})}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(le),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(le);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==e&&this.unexpected(e),this.parseFor(t,null);let r=this.isContextual(100);{let s=this.isContextual(96)&&this.startsAwaitUsing(),n=s||this.isContextual(107)&&this.startsUsingForOf(),a=r&&this.hasFollowingBindingAtom()||n;if(this.match(74)||this.match(75)||a){let r,a=this.startNode();s?(r="await using",this.recordAwaitIfAllowed()||this.raise(d.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):r=this.state.value,this.next(),this.parseVar(a,!0,r);let i=this.finishNode(a,"VariableDeclaration"),o=this.match(58);return(o&&n&&this.raise(d.ForInUsing,i),(o||this.isContextual(102))&&1===i.declarations.length)?this.parseForIn(t,i,e):(null!==e&&this.unexpected(e),this.parseFor(t,i))}}let s=this.isContextual(95),n=new jt,a=this.parseExpression(!0,n),i=this.isContextual(102);return(i&&(r&&this.raise(d.ForOfLet,a),null===e&&s&&"Identifier"===a.type&&this.raise(d.ForOfAsync,a)),i||this.match(58))?(this.checkDestructuringPrivate(n),this.toAssignable(a,!0),this.checkLVal(a,{type:i?"ForOfStatement":"ForInStatement"}),this.parseForIn(t,a,e)):(this.checkExpressionErrors(n,!0),null!==e&&this.unexpected(e),this.parseFor(t,a))}parseFunctionStatement(t,e,r){return this.next(),this.parseFunction(t,1|2*!!r|8*!!e)}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||2&this.optionFlags||this.raise(d.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){let e,r;this.next(),t.discriminant=this.parseHeaderExpression();let s=t.cases=[];for(this.expect(5),this.state.labels.push(he),this.scope.enter(0);!this.match(8);)if(this.match(61)||this.match(65)){let t=this.match(61);e&&this.finishNode(e,"SwitchCase"),s.push(e=this.startNode()),e.consequent=[],this.next(),t?e.test=this.parseExpression():(r&&this.raise(d.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),r=!0,e.test=null),this.expect(14)}else e?e.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(d.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===t.type?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,t.handler||t.finalizer||this.raise(d.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,r=!1){return this.next(),this.parseVar(t,!1,e,r),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(le),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(d.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,r,s){var n;for(let t of this.state.labels)t.name===e&&this.raise(d.LabelRedeclaration,r,{labelName:e});let a=(n=this.state.type)>=90&&n<=92?1:this.match(71)?2:null;for(let e=this.state.labels.length-1;e>=0;e--){let r=this.state.labels[e];if(r.statementStart===t.start)r.statementStart=this.sourceToOffsetPos(this.state.start),r.kind=a;else break}return this.state.labels.push({name:e,kind:a,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=8&s?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,r){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,r){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,r),e&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,r,s,n){let a=t.body=[],i=t.directives=[];this.parseBlockOrModuleBlockBody(a,e?i:void 0,r,s,n)}parseBlockOrModuleBlockBody(t,e,r,s,n){let a=this.state.strict,i=!1,o=!1;for(;!this.match(s);){let s=r?this.parseModuleItem():this.parseStatementListItem();if(e&&!o){if(this.isValidDirective(s)){let t=this.stmtToDirective(s);e.push(t),i||"use strict"!==t.value.value||(i=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}t.push(s)}null==n||n.call(this,i),a||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,r){let s=this.match(58);return this.next(),s?null!==r&&this.unexpected(r):t.await=null!==r,"VariableDeclaration"!==e.type||null==e.declarations[0].init||s&&this.options.annexB&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type||this.raise(d.ForInOfLoopInitializer,e,{type:s?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===e.type&&this.raise(d.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,e,r,s=!1){let n=t.declarations=[];for(t.kind=r;;){let t=this.startNode();if(this.parseVarId(t,r),t.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===t.init&&!s&&("Identifier"===t.id.type||e&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(d.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(d.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(t,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){let r=this.parseBindingAtom();("using"===e||"await using"===e)&&("ArrayPattern"===r.type||"ObjectPattern"===r.type)&&this.raise(d.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===e?5:8201),t.id=r}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){let r=2&e,s=!!(1&e),n=!!(8&e);this.initFunction(t,n),this.match(55)&&(r&&this.raise(d.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(s&&!(4&e)));let a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Nt(n,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),s&&!r&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=a,t}parseFunctionId(t){return t||L(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(new vt(3)),t.params=this.parseBindingList(11,41,2|4*!!e),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,r){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,r),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return"Identifier"===t.type&&"constructor"===t.name||"StringLiteral"===t.type&&"constructor"===t.value}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:t},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(d.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let t=this.startNode();s.length&&(t.decorators=s,this.resetStartLocationFromNode(t,s[0]),s=[]),this.parseClassMember(n,t,r),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(d.DecoratorConstructor,t)}})),this.state.strict=e,this.next(),s.length)throw this.raise(d.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,e){let r=this.parseIdentifier(!0);return this.isClassMethod()?(e.kind="method",e.computed=!1,e.key=r,e.static=!1,this.pushClassMethod(t,e,!1,!1,!1,!1),!0):this.isClassProperty()?(e.computed=!1,e.key=r,e.static=!1,t.body.push(this.parseClassProperty(e)),!0):(this.resetPreviousNodeTrailingComments(r),!1)}parseClassMember(t,e,r){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5))return void this.parseClassStaticBlock(t,e)}this.parseClassMemberWithIsStatic(t,e,r,s)}parseClassMemberWithIsStatic(t,e,r,s){if(e.static=s,this.parsePropertyNamePrefixOperator(e),this.eat(55)){e.kind="method";let r=this.match(139);return(this.parseClassElementName(e),r)?void this.pushClassPrivateMethod(t,e,!0,!1):(this.isNonstaticConstructor(e)&&this.raise(d.ConstructorIsGenerator,e.key),void this.pushClassMethod(t,e,!0,!1,!1,!1))}let n=!this.state.containsEsc&&L(this.state.type),a=this.parseClassElementName(e),i=n?a.name:null,o=this.isPrivateName(a),l=this.state.startLoc;if(this.parsePostMemberNameModifiers(e),this.isClassMethod()){if(e.kind="method",o)return void this.pushClassPrivateMethod(t,e,!1,!1);let s=this.isNonstaticConstructor(e),n=!1;s&&(e.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(d.DuplicateConstructor,a),s&&this.hasPlugin("typescript")&&e.override&&this.raise(d.OverrideOnConstructor,a),r.hadConstructor=!0,n=r.hadSuperClass),this.pushClassMethod(t,e,!1,!1,s,n)}else if(this.isClassProperty())o?this.pushClassPrivateProperty(t,e):this.pushClassProperty(t,e);else if("async"!==i||this.isLineTerminator())if("get"!==i&&"set"!==i||this.match(55)&&this.isLineTerminator())if("accessor"!==i||this.isLineTerminator())this.isLineTerminator()?o?this.pushClassPrivateProperty(t,e):this.pushClassProperty(t,e):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(a);let r=this.match(139);this.parseClassElementName(e),this.pushClassAccessorProperty(t,e,r)}else{this.resetPreviousNodeTrailingComments(a),e.kind=i;let r=this.match(139);this.parseClassElementName(e),r?this.pushClassPrivateMethod(t,e,!1,!1):(this.isNonstaticConstructor(e)&&this.raise(d.ConstructorIsAccessor,e.key),this.pushClassMethod(t,e,!1,!1,!1,!1)),this.checkGetterSetterParams(e)}else{this.resetPreviousNodeTrailingComments(a);let r=this.eat(55);e.optional&&this.unexpected(l),e.kind="method";let s=this.match(139);this.parseClassElementName(e),this.parsePostMemberNameModifiers(e),s?this.pushClassPrivateMethod(t,e,r,!0):(this.isNonstaticConstructor(e)&&this.raise(d.ConstructorIsAsync,e.key),this.pushClassMethod(t,e,r,!0,!1,!1))}}parseClassElementName(t){let{type:e,value:r}=this.state;if((132===e||134===e)&&t.static&&"prototype"===r&&this.raise(d.StaticPrototype,this.state.startLoc),139===e){"constructor"===r&&this.raise(d.ConstructorClassPrivateField,this.state.startLoc);let e=this.parsePrivateName();return t.key=e,e}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var r;this.scope.enter(208);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=e.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(e,"StaticBlock")),null!=(r=e.decorators)&&r.length&&this.raise(d.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(d.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){let r=this.parseClassPrivateProperty(e);t.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(t,e,r){!r&&!e.computed&&this.nameIsConstructor(e.key)&&this.raise(d.ConstructorClassField,e.key);let s=this.parseClassAccessorProperty(e);t.body.push(s),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,e,r,s,n,a){t.body.push(this.parseMethod(e,r,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(t,e,r,s){let n=this.parseMethod(e,r,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);let a="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(new vt),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,r,s=8331){if(L(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,s);else if(r||!e)t.id=null;else throw this.raise(d.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){let r,s=this.parseMaybeImportPhase(t,!0),n=this.maybeParseExportDefaultSpecifier(t,s),a=!n||this.eat(12),i=a&&this.eatExportStar(t),o=i&&this.maybeParseExportNamespaceSpecifier(t),l=a&&(!o||this.eat(12)),h=n||i;if(i&&!o){if(n&&this.unexpected(),e)throw this.raise(d.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(t);if(n&&a&&!i&&!u&&this.unexpected(null,5),o&&l&&this.unexpected(null,98),h||u){if(r=!1,e)throw this.raise(d.UnsupportedDecoratorExport,t);this.parseExportFrom(t,h)}else r=this.maybeParseExportDeclaration(t);if(h||u||r){var c;if(this.checkExport(t,!0,!1,!!t.source),(null==(c=t.declaration)?void 0:c.type)==="ClassDeclaration")this.maybeTakeDecorators(e,t.declaration,t);else if(e)throw this.raise(d.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(t,"ExportNamedDeclaration")}if(this.eat(65)){let r=this.parseExportDefaultExpression();if(t.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(e,r,t);else if(e)throw this.raise(d.UnsupportedDecoratorExport,t);return this.checkExport(t,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==e?void 0:e.loc.start);let r=e||this.parseIdentifier(!0),s=this.startNodeAtNode(r);return s.exported=r,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){null!=t.specifiers||(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let e="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(d.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(d.UnsupportedDefaultExport,this.state.startLoc);let e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(L(t)){if(95===t&&!this.state.containsEsc||100===t)return!1;if((130===t||129===t)&&!this.state.containsEsc){let{type:t}=this.lookahead();if(L(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let e=this.nextTokenStart(),r=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||L(this.state.type)&&r)return!0;if(this.match(65)&&r){let t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return 26===t&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(d.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(d.UsingDeclarationExport,this.state.startLoc),!0):74===t||75===t||68===t||80===t||this.isLet()||this.isAsyncFunction()}checkExport(t,e,r,s){if(e){var n,a;if(r){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){let e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||null!=(a=e.extra)&&a.parenthesized||this.raise(d.ExportDefaultFromAsIdentifier,e)}}else if(null!=(n=t.specifiers)&&n.length)for(let e of t.specifiers){let{exported:t}=e,r="Identifier"===t.type?t.name:t.value;if(this.checkDuplicateExports(e,r),!s&&e.local){let{local:t}=e;"Identifier"!==t.type?this.raise(d.ExportBindingIsString,e,{localName:t.value,exportName:r}):(this.checkReservedWord(t.name,t.loc.start,!0,!1),this.scope.checkLocalExport(t))}}else if(t.declaration){let e=t.declaration;if("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type){let{id:r}=e;if(!r)throw Error("Assertion failure");this.checkDuplicateExports(t,r.name)}else if("VariableDeclaration"===e.type)for(let t of e.declarations)this.checkDeclaration(t.id)}}}checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type)for(let e of t.properties)this.checkDeclaration(e);else if("ArrayPattern"===t.type)for(let e of t.elements)e&&this.checkDeclaration(e);else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&("default"===e?this.raise(d.DuplicateDefaultExport,t):this.raise(d.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){let e=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(a,n,t,s))}return e}parseExportSpecifier(t,e,r,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=function(t){let{type:e,start:r,end:s,loc:n,range:a,extra:i}=t;if("Placeholder"===e)return Dt(t);let o=Object.create(Ot);return o.type=e,o.start=r,o.end=s,o.loc=n,o.range=a,void 0!==t.raw?o.raw=t.raw:o.extra=i,o.value=t.value,o}(t.local):t.exported||(t.exported=Dt(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),e=ue.exec(t.value);return e&&this.raise(d.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return null!=t.assertions&&t.assertions.some((({key:t,value:e})=>"json"===e.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)))}checkImportReflection(t){let{specifiers:e}=t,r=1===e.length?e[0].type:null;if("source"===t.phase)"ImportDefaultSpecifier"!==r&&this.raise(d.SourcePhaseImportRequiresDefault,e[0].loc.start);else if("defer"===t.phase)"ImportNamespaceSpecifier"!==r&&this.raise(d.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var s;"ImportDefaultSpecifier"!==r&&this.raise(d.ImportReflectionNotBinding,e[0].loc.start),(null==(s=t.assertions)?void 0:s.length)>0&&this.raise(d.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&"ExportAllDeclaration"!==t.type){let{specifiers:e}=t;if(null!=e){let t=e.find((t=>{let e;if("ExportSpecifier"===t.type?e=t.local:"ImportSpecifier"===t.type&&(e=t.imported),void 0!==e)return"Identifier"===e.type?"default"!==e.name:"default"!==e.value}));void 0!==t&&this.raise(d.ImportJSONBindingNotDefault,t.loc.start)}}}isPotentialImportPhase(t){return!t&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(t,e,r,s){!e&&("module"===r?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;let r=this.parseIdentifier(!0),{type:s}=this.state;return(j(s)?98!==s||102===this.lookaheadCharCode():12!==s)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(t,e,r.name,r.loc.start),null):(this.applyImportPhase(t,e,null),r)}isPrecedingIdImportPhase(t){let{type:e}=this.state;return L(e)?98!==e||102===this.lookaheadCharCode():12!==e}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];let r=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),s=r&&this.maybeParseStarImportSpecifier(t);return r&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return null!=t.specifiers||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,r){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,r))}finishImportSpecifier(t,e,r=8201){return this.checkLVal(t.local,{type:e},r),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);let t=[],e=new Set;do{if(this.match(8))break;let r=this.startNode(),s=this.state.value;if(e.has(s)&&this.raise(d.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),e.add(s),this.match(134)?r.key=this.parseStringLiteral(s):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(d.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],e=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(d.ModuleAttributeDifferentFromType,r.key),e.has(r.key.name)&&this.raise(d.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),e.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(d.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(e=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):e=this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(d.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),e=this.parseImportAttributes()):e=[];!r&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){let r=this.startNodeAtNode(e);return r.local=e,t.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!j(this.state.type)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(d.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),s=this.match(134),n=this.isContextual(130);r.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(r,s,"type"===t.importKind||"typeof"===t.importKind,n,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,e,r,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:r}=t;if(e)throw this.raise(d.ImportBindingIsString,t,{importName:r.value});this.checkReservedWord(r.name,t.loc.start,!0,!0),t.local||(t.local=Dt(r))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return"Identifier"===t.type&&"this"===t.name}}class de extends pe{constructor(t,e,r){super(t=function(t){let e={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==t)return e;if(null!=t.annexB&&!1!==t.annexB)throw Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(e))null!=t[r]&&(e[r]=t[r]);if(1===e.startLine)null==t.startIndex&&e.startColumn>0?e.startIndex=e.startColumn:null==t.startColumn&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((null==t.startColumn||null==t.startIndex)&&null!=t.startIndex)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return e}(t),e),this.options=t,this.initializeScopes(),this.plugins=r,this.filename=t.sourceFilename,this.startIndex=t.startIndex;let s=0;t.allowAwaitOutsideFunction&&(s|=1),t.allowReturnOutsideFunction&&(s|=2),t.allowImportExportEverywhere&&(s|=8),t.allowSuperOutsideMethod&&(s|=16),t.allowUndeclaredExports&&(s|=64),t.allowNewTargetOutsideFunction&&(s|=4),t.allowYieldOutsideFunction&&(s|=32),t.ranges&&(s|=128),t.tokens&&(s|=256),t.createImportExpressions&&(s|=512),t.createParenthesizedExpressions&&(s|=1024),t.errorRecovery&&(s|=2048),t.attachComment&&(s|=4096),t.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return rt}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}}let ye=function(t){let e={};for(let r of Object.keys(t))e[r]=S[t[r]];return e}(N);function xe(t,e){let r=de,s=new Map;if(null!=t&&t.plugins){for(let e of t.plugins){let t,r;"string"==typeof e?t=e:[t,r]=e,s.has(t)||s.set(t,r||{})}!function(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let e=t.get("decorators").decoratorsBeforeExport;if(null!=e&&"boolean"!=typeof e)throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=t.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!=typeof r)throw Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;let r=t.get("pipelineOperator").proposal;if(!se.includes(r)){let t=se.map((t=>`"${t}"`)).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${t}.`)}let s=(null==(e=t.get("recordAndTuple"))?void 0:e.syntaxType)==="hash";if("hack"===r){if(t.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let e=t.get("pipelineOperator").topicToken;if(!ne.includes(e)){let t=ne.map((t=>`"${t}"`)).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${t}.`)}if("#"===e&&s)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}else if("smart"===r&&s)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("deprecatedImportAssert")||t.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==t.get("moduleAttributes").version)throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(t.has("importAssertions")&&t.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax&&t.set("deprecatedImportAssert",{}),t.has("recordAndTuple")){let e=t.get("recordAndTuple").syntaxType;if(null!=e){let t=["hash","bar"];if(!t.includes(e))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+t.map((t=>`'${t}'`)).join(", "))}}if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let t=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(t.has("optionalChainingAssign")&&"2023-07"!==t.get("optionalChainingAssign").version)throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(s),r=function(t){let e=[];for(let r of ie)t.has(r)&&e.push(r);let r=e.join("|"),s=ge.get(r);if(!s){for(let t of(s=de,e))s=ae[t](s);ge.set(r,s)}return s}(s)}return new r(t,e,s)}let ge=new Map;e.parse=function(t,e){var r;if((null==(r=e)?void 0:r.sourceType)!=="unambiguous")return xe(e,t).parse();e=Object.assign({},e);try{e.sourceType="module";let r=xe(e,t),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",xe(e,t).parse()}catch(t){}else s.program.sourceType="script";return s}catch(r){try{return e.sourceType="script",xe(e,t).parse()}catch(t){}throw r}},e.parseExpression=function(t,e){let r=xe(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},e.tokTypes=ye},685:function(t,e){(function(t){"use strict";class e{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,e,r,s){t&&(null!==r?t[e][r]=s:t[e]=s)}remove(t,e,r){t&&(null!==r?t[e].splice(r,1):delete t[e])}}class r extends e{constructor(t,e){super(),this.enter=t,this.leave=e}visit(t,e,r,s){if(t){if(this.enter){let n=this.should_skip,a=this.should_remove,i=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,e,r,s),this.replacement&&(t=this.replacement,this.replace(e,r,s,t)),this.should_remove&&this.remove(e,r,s);let o=this.should_skip,l=this.should_remove;if(this.should_skip=n,this.should_remove=a,this.replacement=i,o)return t;if(l)return null}for(let e in t){let r=t[e];if("object"==typeof r)if(Array.isArray(r))for(let s=0;s<r.length;s+=1)null!==r[s]&&"string"==typeof r[s].type&&!this.visit(r[s],t,e,s)&&s--;else null!==r&&"string"==typeof r.type&&this.visit(r,t,e,null)}if(this.leave){let n=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,e,r,s),this.replacement&&(t=this.replacement,this.replace(e,r,s,t)),this.should_remove&&this.remove(e,r,s);let i=this.should_remove;if(this.replacement=n,this.should_remove=a,i)return null}}return t}}class s extends e{constructor(t,e){super(),this.enter=t,this.leave=e}async visit(t,e,r,s){if(t){if(this.enter){let n=this.should_skip,a=this.should_remove,i=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,t,e,r,s),this.replacement&&(t=this.replacement,this.replace(e,r,s,t)),this.should_remove&&this.remove(e,r,s);let o=this.should_skip,l=this.should_remove;if(this.should_skip=n,this.should_remove=a,this.replacement=i,o)return t;if(l)return null}for(let e in t){let r=t[e];if("object"==typeof r)if(Array.isArray(r))for(let s=0;s<r.length;s+=1)null!==r[s]&&"string"==typeof r[s].type&&!await this.visit(r[s],t,e,s)&&s--;else null!==r&&"string"==typeof r.type&&await this.visit(r,t,e,null)}if(this.leave){let n=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,t,e,r,s),this.replacement&&(t=this.replacement,this.replace(e,r,s,t)),this.should_remove&&this.remove(e,r,s);let i=this.should_remove;if(this.replacement=n,this.should_remove=a,i)return null}}return t}}t.asyncWalk=async function(t,{enter:e,leave:r}){let n=new s(e,r);return await n.visit(t,null)},t.walk=function(t,{enter:e,leave:s}){return new r(e,s).visit(t,null)},Object.defineProperty(t,"__esModule",{value:!0})})(e)},745:function(t,e,r){"use strict";let s;var n,a=r(1);let i=t=>s=t,o=Symbol();function l(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}e.MutationType=void 0,(n=e.MutationType||(e.MutationType={})).direct="direct",n.patchObject="patch object",n.patchFunction="patch function";let h=()=>{};function u(t,e,r,s=h){t.push(e);let n=()=>{let r=t.indexOf(e);r>-1&&(t.splice(r,1),s())};return!r&&a.getCurrentScope()&&a.onScopeDispose(n),n}function c(t,...e){t.slice().forEach((t=>{t(...e)}))}let p=t=>t(),d=Symbol(),y=Symbol();function x(t,e){for(let r in t instanceof Map&&e instanceof Map?e.forEach(((e,r)=>t.set(r,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t),e){if(!e.hasOwnProperty(r))continue;let s=e[r],n=t[r];l(n)&&l(s)&&t.hasOwnProperty(r)&&!a.isRef(s)&&!a.isReactive(s)?t[r]=x(n,s):t[r]=s}return t}let g=Symbol(),{assign:f}=Object;function m(t,r,s={},n,o,m){let b,_,A,M,w,S=f({actions:{}},s),C={deep:!0},P=[],T=[],v=n.state.value[t];function I(r){let s;_=A=!1,"function"==typeof r?(r(n.state.value[t]),s={type:e.MutationType.patchFunction,storeId:t,events:M}):(x(n.state.value[t],r),s={type:e.MutationType.patchObject,payload:r,storeId:t,events:M});let i=w=Symbol();a.nextTick().then((()=>{w===i&&(_=!0)})),A=!0,c(P,s,n.state.value[t])}m||v||(a.isVue2?a.set(n.state.value,t,{}):n.state.value[t]={}),a.ref({});let k=m?function(){let{state:t}=s,e=t?t():{};this.$patch((t=>{f(t,e)}))}:h,E=(e,r="")=>{if(d in e)return e[y]=r,e;let s=function(){let r;i(n);let a=Array.from(arguments),o=[],l=[];c(T,{args:a,name:s[y],store:L,after:function(t){o.push(t)},onError:function(t){l.push(t)}});try{r=e.apply(this&&this.$id===t?this:L,a)}catch(t){throw c(l,t),t}return r instanceof Promise?r.then((t=>(c(o,t),t))).catch((t=>(c(l,t),Promise.reject(t)))):(c(o,r),r)};return s[d]=!0,s[y]=r,s},N={_p:n,$id:t,$onAction:u.bind(null,T),$patch:I,$reset:k,$subscribe(r,s={}){let i=u(P,r,s.detached,(()=>o())),o=b.run((()=>a.watch((()=>n.state.value[t]),(n=>{("sync"===s.flush?A:_)&&r({storeId:t,type:e.MutationType.direct,events:M},n)}),f({},C,s))));return i},$dispose:function(){b.stop(),P=[],T=[],n._s.delete(t)}};a.isVue2&&(N._r=!1);let L=a.reactive(N);n._s.set(t,L);let j=(n._a&&n._a.runWithContext||p)((()=>n._e.run((()=>(b=a.effectScope()).run((()=>r({action:E})))))));for(let e in j){let r=j[e];if(a.isRef(r)&&(!a.isRef(r)||!r.effect)||a.isReactive(r)){var R;m||(!v||l(R=r)&&R.hasOwnProperty(g)||(a.isRef(r)?r.value=v[e]:x(r,v[e])),a.isVue2?a.set(n.state.value[t],e,r):n.state.value[t][e]=r)}else if("function"==typeof r){let t=E(r,e);a.isVue2?a.set(j,e,t):j[e]=t,S.actions[e]=r}}return a.isVue2?Object.keys(j).forEach((t=>{a.set(L,t,j[t])})):(f(L,j),f(a.toRaw(L),j)),Object.defineProperty(L,"$state",{get:()=>n.state.value[t],set:t=>{I((e=>{f(e,t)}))}}),a.isVue2&&(L._r=!0),n._p.forEach((t=>{f(L,b.run((()=>t({store:L,app:n._a,pinia:n,options:S}))))})),v&&m&&s.hydrate&&s.hydrate(L.$state,v),_=!0,A=!0,L}e.defineStore=function(t,e,r){let n,l,h="function"==typeof e;function u(t,r){let u=a.hasInjectionContext();return(t=t||(u?a.inject(o,null):null))&&i(t),(t=s)._s.has(n)||(h?m(n,e,l,t):!function(t,e,r,s){let{state:n,actions:o,getters:l}=e,h=r.state.value[t];m(t,(function(){return h||(a.isVue2?a.set(r.state.value,t,n?n():{}):r.state.value[t]=n?n():{}),f(a.toRefs(r.state.value[t]),o,Object.keys(l||{}).reduce(((e,s)=>(e[s]=a.markRaw(a.computed((()=>{i(r);let e=r._s.get(t);if(!a.isVue2||e._r)return l[s].call(e,e)}))),e)),{}))}),e,r,void 0,!0)}(n,l,t)),t._s.get(n)}return"string"==typeof t?(n=t,l=h?r:e):(l=t,n=t.id),u.$id=n,u}},1:function(t,e,r){var s=r(440);Object.keys(s).forEach((function(t){e[t]=s[t]})),e.set=function(t,e,r){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,r)):t[e]=r,r},e.del=function(t,e){if(Array.isArray(t))return void t.splice(e,1);delete t[e]},e.Vue=s,e.Vue2=void 0,e.isVue2=!1,e.isVue3=!0,e.install=function(){}}},e={};function r(s){var n=e[s];if(void 0!==n)return n.exports;var a=e[s]={exports:{}};return t[s].call(a.exports,a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};(()=>{"use strict";let t,e;r.r(s),r.d(s,{schemaTable:()=>m,schemaLegacy:()=>H,migrator:()=>g,schemaDocument:()=>G,model:()=>u,schemaList:()=>S,schemaPresentationLegacy:()=>q,chart:()=>y,schemaBasic:()=>C,transform:()=>x,utils:()=>hP,schemaPresentation:()=>U,schemaDocumentLegacy:()=>z,schemaComment:()=>T});var n,a,i,o,l={};r.r(l),r.d(l,{mixin:()=>st,mixinFunction:()=>dt,mixinGetter:()=>lt,mixinGetterValue:()=>ht,mixinProperty:()=>nt,mixinSetter:()=>ot,mixinSetterGetter:()=>it,mixinTypeAttr:()=>ct,mixinTypeAttrValue:()=>pt,mixinTypeAttrs:()=>ut,mixinValue:()=>at});var h={};r.r(h),r.d(h,{GraphemeSegmenter:()=>rr,buildRangesMap:()=>nr,codePointAt:()=>Je,createMatchString:()=>hr,createUnicodeMatchString:()=>xr,every:()=>or,findHeadJoiningTarget:()=>wr,findHeadJoiningTrigger:()=>Cr,findTailJoiningTarget:()=>Sr,findTailJoiningTrigger:()=>Pr,getCharType:()=>mr,getUnicodeRanges:()=>cr,isAscii:()=>Ne,isAsciiAlphabet:()=>Re,isAsciiControl:()=>Le,isAsciiPrint:()=>je,isBasicMultilingualPlane:()=>qe,isInRanges:()=>ar,isLeadSurrogate:()=>ze,isRTL:()=>vr,isSupplementaryPlane:()=>$e,isSurrogate:()=>Ge,isTrailSurrogate:()=>Ue,isUnicodeCategory:()=>pr,iterateCodePoints:()=>We,iterateGraphemeBreaks:()=>er,iterateGraphemes:()=>tr,leadSurrogateEnd:()=>De,leadSurrogateStart:()=>Oe,mergeContinuousRanges:()=>sr,nextGraphemeBreak:()=>Ke,replaceNonPrintableText:()=>Ir,some:()=>ir,surrogateEnd:()=>He,surrogateStart:()=>Ve,trailSurrogateEnd:()=>Be,trailSurrogateStart:()=>Fe,unicodeEvery:()=>yr,unicodeRangesMap:()=>ur,unicodeSome:()=>dr});var u={};r.r(u),r.d(u,{Attribute:()=>sn,Block:()=>ba,BlockMark:()=>Ea,ContainerBlock:()=>_a,ContentExpr:()=>ja,CssMark:()=>Na,CustomParserManager:()=>Ki,DOMBoundingBox:()=>Mo,DOMMatrix:()=>_o,DOMStructCreator:()=>lo,DOMTransform:()=>Ao,DomParser:()=>eo,DomParserManager:()=>no,DomRenderContext:()=>ao,DomRenderer:()=>io,EditableType:()=>ma,EditingState:()=>co,Fragment:()=>Tn,GlobalState:()=>kn,Inline:()=>Sa,InlineFieldText:()=>Ta,InlineObject:()=>Pa,Line:()=>Ma,Mark:()=>yn,MarkType:()=>ka,MultiBreakGraphSelection:()=>Ni,MultiCellSelection:()=>Bi,MultiCustomTextSelection:()=>Ti,MultiFloatingSelection:()=>Hi,MultiHolderListSelection:()=>ji,MultiHolderTextSelection:()=>Pi,MultiInlineNodeSelection:()=>ki,MultiListSelection:()=>Li,MultiNodeSelection:()=>Ii,MultiPageNumberSelection:()=>Ei,MultiSelection:()=>Mi,MultiSlideContainerSelection:()=>Ji,MultiSlideContentSelection:()=>$i,MultiSlideSelection:()=>Gi,MultiSlideSeparatorSelection:()=>qi,MultiTextSelection:()=>Si,Node:()=>ha,NodeRange:()=>mi,NodeType:()=>xa,NonEditableType:()=>fa,NonTextInline:()=>Ca,Paragraph:()=>wa,PathData:()=>un,ProseMirrorError:()=>Qn,ReplaceError:()=>ta,ResolvedPos:()=>mn,RootNode:()=>pa,RootType:()=>ga,Schema:()=>oo,SchemaItem:()=>on,SchemaItemType:()=>nn,SelectionRange:()=>gi,SharedState:()=>kn,Slice:()=>vn,SpecialMultiNodeSelection:()=>Ri,StateMap:()=>Fn,StateUpdater:()=>Bn,TableIndexStore:()=>Oi,Text:()=>va,TextBlock:()=>Aa,TextNode:()=>ua,TextRange:()=>fi,ToggleableCssMark:()=>La,createMultiSelection:()=>Yi,getMultiSelectionType:()=>Zi,isSelection:()=>Ai,isSelectionRange:()=>xi,jsonParseAttrs:()=>Ks,jsonStringifyAttrs:()=>Xs,mergeSchemaSpecs:()=>ci,mixinBaseFragment:()=>wn,mixinHolderSelection:()=>Ci,normalizerMap:()=>J,replace:()=>ea,wrapMarks:()=>la});var c={};r.r(c),r.d(c,{STATUS_OPEN:()=>wl,STATUS_REOPENED:()=>Cl,STATUS_RESOLVED:()=>Sl,TYPE_DISCUSSION:()=>Al,TYPE_SUGGESTION:()=>Ml});var p={};r.r(p),r.d(p,{BLANK_AS:()=>up,CHART_TYPE:()=>sp,DEFAULT:()=>ep,DIRECTION:()=>rp,GROUPING:()=>np,LABEL_POSITION:()=>lp,LEGEND_POSITION:()=>op,LINE_DASH:()=>hp,MARKER_SYMBOL:()=>ip,ORIENTATION:()=>ap});var d={};r.r(d),r.d(d,{PLOT_STYLE:()=>gp,ensureString:()=>bp,getFontHeight:()=>fp,isDefined:()=>pp,isEmpty:()=>cp,isFunction:()=>dp,isNumber:()=>yp,isString:()=>xp,parseHexColor:()=>_p,trimArray:()=>mp});var y={};r.r(y),r.d(y,{PmChartInfo:()=>ad});var x={};r.r(x),r.d(x,{AddMarkStep:()=>kc,BaseNodeArrayAttrsStep:()=>Jc,ClearIndexMap:()=>al,ClearRangeMap:()=>Ro,CustomMap:()=>el,DeleteNodeStep:()=>Cc,EmptyStep:()=>pc,GroupPosMap:()=>zo,IndexedNodeArrayAttrsStep:()=>Wc,InsertNodeArrayAttrsStep:()=>Yc,InsertNodeStep:()=>Pc,LiftTransItem:()=>yl,MapNodeRange:()=>Co,MapRange:()=>So,MapResult:()=>wo,Mapping:()=>gl,ModifyNodeArrayAttrsStep:()=>Qc,NodeStep:()=>Uc,NodeStep2:()=>dc,OrderNodeStep:()=>qc,OverwriteStep:()=>fc,PosMap:()=>Ho,RangeMap:()=>No,Remapping:()=>gl,RemoveMarkStep:()=>Ec,RemoveNodeArrayAttrsStep:()=>Xc,ReorderNodeArrayAttrsStep:()=>Kc,ReplaceAroundStep:()=>Ac,ReplaceIndexMap:()=>sl,ReplacePosMap:()=>Ho,ReplaceRangeMap:()=>Lo,ReplaceStep:()=>_c,ResizeTransItem:()=>ul,ScaleTransItem:()=>pl,SelfScaleTransItem:()=>dl,SetChartConfigStep:()=>od,SetChartDataValueStep:()=>ld,SetNodeArrayAttrsStep:()=>tp,SetNodeAttrsStep:()=>wc,SetRootNodeAttrsStep:()=>jc,ShiftIndexMap:()=>nl,ShiftPosMap:()=>Go,ShiftRangeMap:()=>jo,Step:()=>cc,StepError:()=>fl,StepMap:()=>To,StepResult:()=>_l,TransFixing:()=>hl,TransItem:()=>ll,TransMap:()=>ol,TransResult:()=>il,Transform:()=>gc,TransformError:()=>xc,TranslateTransItem:()=>cl,ValuedNodeArrayAttrsStep:()=>Zc,canSplit:()=>Bc,computeChangeRange:()=>Qo,ensureMarksHandler:()=>Nc,findWrapping:()=>Fc,fitSlice:()=>mc,insertPoint:()=>zc,joinPoint:()=>Gc,joinable:()=>Vc,liftShallowTarget:()=>Dc,liftTarget:()=>Oc,makeRecover:()=>vo,mapNodeThrough:()=>Yo,mapNodeThroughRange:()=>Ko,mapNodeThroughResult:()=>Xo,mapThrough:()=>Jo,mapThroughRange:()=>Zo,mapThroughResult:()=>Wo,mixinCustomMappable:()=>tl,mixinIndexMap:()=>rl,mixinPipelinePosMappable:()=>Do,mixinPosMap:()=>Fo,mixinPosMappable:()=>Oo,mixinPosRangeMap:()=>Bo,posCmp:()=>Vo,recoverIndex:()=>Io,recoverOffset:()=>ko});var g={};r.r(g),r.d(g,{CommandStepUpgrader:()=>Nd,CommentStepUpgrader:()=>Ld,MIGRATION_STATUS:()=>hd,migrate:()=>jd});var f={};r.r(f),r.d(f,{read:()=>ey});var m={};r.r(m),r.d(m,{BaseReplaceTableCellsStep:()=>vy,CellAlign:()=>f,DEFAULT_COL_WIDTH:()=>Ud,DEFAULT_ROW_HEIGHT:()=>qd,DeleteTableCellsStep:()=>Ey,InsertDeleteTableCellsStep:()=>Iy,InsertTableCellsStep:()=>ky,InsertTableColStep:()=>Cy,InsertTableRowStep:()=>by,RemoveTableColStep:()=>Py,RemoveTableRowStep:()=>_y,ReplaceTableCellsStep:()=>Ny,ReplaceTableColStep:()=>Sy,ReplaceTableRowColStep:()=>yy,ReplaceTableRowStep:()=>my,SetTableCellAttrsStep:()=>Ty,Table:()=>ny,TableCell:()=>iy,TableCellsStep:()=>ly,TableRow:()=>ay,TableStep:()=>oy,getOpAdapter:()=>zd,mixinInsertTableRowColStep:()=>xy,mixinRemoveTableRowColStep:()=>gy});var b={};r.r(b),r.d(b,{add:()=>Ky,move:()=>tx,remove:()=>Qy});var _={};r.r(_),r.d(_,{attrToFormat:()=>xx,cssToFormat:()=>yx,defaultBullet:()=>nx,domToFormat:()=>gx,formatToCss:()=>dx,getBulletText:()=>ix,isBullet:()=>ax,isChinese:()=>Rr,isDecimal:()=>kr,isLetter:()=>Er,isRoman:()=>Nr,isSimplifiedChinese:()=>jr,isTraditionalChinese:()=>Lr});var A={};r.r(A),r.d(A,{create:()=>mx,createDefaultCssText:()=>Mx,createDefaultFormatText:()=>_x,ensurePrefixSuffix:()=>wx,listTextReplacement:()=>fx,parseContent:()=>Tx,parseLevels:()=>vx,parsePrefix:()=>Cx,parseSuffix:()=>Px,parseText:()=>Sx});var M={};r.r(M),r.d(M,{readFormat:()=>kx,writeFormat:()=>Ix,writeString:()=>Nx,writeTextChunks:()=>Lx});var w={};r.r(w),r.d(w,{getBulletListConfigs:()=>Bx,getOrderedListConfigs:()=>Fx,matchBulletConfigs:()=>zx,matchConfigs:()=>Ux,matchOrderedConfigs:()=>Gx});var S={};r.r(S),r.d(S,{AddListMapStep:()=>mg,ListCustomParser:()=>xg,ListFormat:()=>_,ListItem:()=>M,ListParser:()=>qx,ListPreset:()=>w,ListText:()=>A,PseudoList:()=>Yx,PseudoListItem:()=>hg,SetListConfigsStep:()=>Mg,SetListInfoStep:()=>Ag,TrimListMapStep:()=>bg,createListMapNormalizer:()=>ng,listConfigTypeAttrs:()=>Jx,listConfigTypeAttrsList:()=>Wx,listContainerTypeAttrs:()=>ag,listContainerTypeAttrsList:()=>ig,listInfoTypeAttrs:()=>rg,listInfoTypeAttrsList:()=>sg,listMaxLevel:()=>sx,listTypeAttrs:()=>Xx,listTypeAttrsList:()=>Kx,mixinListBlock:()=>tg,mixinListContainer:()=>lg});var C={};r.r(C),r.d(C,{BackgroundColorMark:()=>Ug,BasicParagraph:()=>Sg,BasicRoot:()=>ex,Block:()=>ba,ColorMark:()=>zg,ContainerBlock:()=>_a,DirectionMark:()=>rf,EditableType:()=>ma,EmMark:()=>Dg,FontFamilyMark:()=>Og,FontSizeMark:()=>Eg,HardBreak:()=>Cg,Inline:()=>Sa,InlineFieldText:()=>Ta,InlineObject:()=>Pa,Line:()=>Ma,LineHeightMark:()=>ef,LinkMark:()=>Hg,Node:()=>ha,NodeType:()=>xa,NonEditableType:()=>fa,RootNode:()=>pa,RootType:()=>ga,Settings:()=>rx,StrikeMark:()=>Xg,StrongMark:()=>Fg,SubscriptMark:()=>Wg,SuperscriptMark:()=>Jg,Tab:()=>Pg,TabStopUtils:()=>b,Table:()=>ny,TableCell:()=>iy,TableParser:()=>Tg,TableRow:()=>ay,Text:()=>va,TextAlignMark:()=>tf,TextBlock:()=>Aa,TextIndentMark:()=>Kg,TextNode:()=>ua,UnderlineMark:()=>Yg,cssTypeAttrs:()=>Vy,getTabStopLeaderChar:()=>Yy,indentTypeAttrs:()=>zy,indentTypeAttrsList:()=>Uy,marksTypeAttrs:()=>Oy,marksTypeAttrsList:()=>Dy,mixinContentEditable:()=>Ly,mixinCssBlock:()=>Hy,mixinDefaultParagraph:()=>Xy,mixinIndentBlock:()=>qy,mixinIndependentScroller:()=>jy,mixinMarksBlock:()=>Fy,mixinTabBlock:()=>Zy,normalizeFontFamily:()=>Lg,sanitizeLink:()=>Vg,schemaSpec:()=>sf,tabAttrs:()=>Jy});var P={};r.r(P),r.d(P,{add:()=>om,collectDeletedRanges:()=>nm,collectInsertedRanges:()=>am,ensure:()=>Kf,forEach:()=>tm,forEachReversed:()=>em,intersect:()=>im,isSameRanges:()=>rm,iterate:()=>Qf,map:()=>hm,remove:()=>lm});var T={};r.r(T),r.d(T,{AddCommentTrackingStep:()=>cm,BaseComment:()=>vl,BaseCommentStep:()=>uf,Comment:()=>kl,CommentEnum:()=>c,CommentOperationStep:()=>cf,CommentStore:()=>Nl,CommentTrackingStep:()=>um,CommentTransform:()=>wf,CreateCommentStep:()=>xf,CreateReplyStep:()=>gf,EditCommentStep:()=>Af,EditReplyStep:()=>Mf,Enum:()=>c,RangedComment:()=>bm,RangedCommentStore:()=>Am,RangedReply:()=>mm,RemoveCommentStep:()=>pf,RemoveCommentTrackingStep:()=>pm,RemoveReplyStep:()=>ff,ReopenCommentStep:()=>_f,Reply:()=>Il,ResolveCommentStep:()=>bf,SetStatusCommentStep:()=>mf,TrackingMark:()=>Ef,TrackingRangesUtils:()=>P,TrackingSchema:()=>wm,TrackingTransform:()=>Mm,createCommentBaseStore:()=>hc,createCommentNotFoundError:()=>Pl,createReplyNotFoundError:()=>Tl,generateCommentId:()=>df,generateReplyId:()=>yf,isCommentStep:()=>ym,isCommentableStep:()=>xm,isPublicCommentStep:()=>gm,isPublicCommentableStep:()=>fm,mixinTrackable:()=>If,mixinTrackableInline:()=>kf});var v={};r.r(v),r.d(v,{PrependBasicBlockStep:()=>Nm});var I={};r.r(I),r.d(I,{RenameTextMarksStep:()=>jm,mixinMarksBlock:()=>Lm});var k={};r.r(k),r.d(k,{RefineTextblockStep:()=>Hm,filterLineHeight:()=>Rm,filterPadding:()=>Om,mixinParagraph:()=>Vm});var E={};r.r(E),r.d(E,{FillEmptyTableRowStep:()=>Gm});var N={};r.r(N),r.d(N,{FlattenNodeStep:()=>$m,LegacyDummyContainer:()=>zm});var L={};r.r(L),r.d(L,{FlattenListStep:()=>Km,LegacyBulletList:()=>Zm,LegacyList:()=>Jm,LegacyListItem:()=>Ym,LegacyOrderedList:()=>Wm,NodeListParser:()=>Xm});var j={};r.r(j),r.d(j,{EraseMarkStep:()=>rb,LegacyDummyMark:()=>Qm});var R={};r.r(R),r.d(R,{SeparateLinkStyleStep:()=>sb});var O={};r.r(O),r.d(O,{mixinTableCell:()=>ob});var D={};r.r(D),r.d(D,{FlattenCommentStep:()=>fb,LegacyDeletionMark:()=>yb,LegacyDiscussionMark:()=>pb,LegacyInsertionMark:()=>xb,mixinMarksBlock:()=>ub,mixinSynoCommentable:()=>lb});var F={};r.r(F),r.d(F,{AddSettingsMigrationStep:()=>mb});var B={};r.r(B),r.d(B,{mixinListContainer:()=>Ab,mixinMark:()=>bb,mixinMarksBlock:()=>_b});var V={};r.r(V),r.d(V,{mixinListContainer:()=>Sb,mixinMark:()=>Mb,mixinMarksBlock:()=>wb});var H={};r.r(H),r.d(H,{AddSettings:()=>F,EraseMark:()=>j,FillEmptyTableRow:()=>E,FillFontFamilyMarkValue:()=>B,FlattenComment:()=>D,FlattenList:()=>L,FlattenNode:()=>N,MigrateMarksStep:()=>Cm,MigrateSchemaStep:()=>Pm,MigrationError:()=>Im,MigrationResult:()=>km,MigrationStep:()=>Sm,ParseFontSizeMarkValue:()=>V,PrependBasicBlock:()=>v,RefineTableCellAttrs:()=>O,RefineTextblock:()=>k,RenameTextMarks:()=>I,SchemaManager:()=>Em,SeparateLinkStyle:()=>R,useMarkMigrator:()=>Tm});var G={};r.r(G),r.d(G,{Chart:()=>c_,Connector:()=>VA,Decorator:()=>g_,Document:()=>Bb,DocumentBaseParagraph:()=>Kb,DocumentNode:()=>Vb,DocumentParagraph:()=>Qb,DocumentSettings:()=>Hb,DocumentTable:()=>o_,DocumentTextBox:()=>qA,Drawing:()=>FA,EditArea:()=>a_,Footer:()=>b_,Header:()=>m_,HeaderFooter:()=>f_,HeadingParser:()=>Xb,HorizontalRule:()=>h_,Image:()=>p_,InvisibleNode:()=>s_,Navigation:()=>l_,Page:()=>i_,PageBreak:()=>u_,PageDecorate:()=>x_,PageNumber:()=>__,PageNumberBlock:()=>A_,PageNumberText:()=>M_,PageSetup:()=>jb,Picture:()=>HA,SCHEMA_VERSION:()=>Cb,Shape:()=>BA,StyleEditor:()=>t_,StyleEditorNode:()=>e_,StyleParagraph:()=>r_,headerFooterTypeList:()=>y_,headingConfigs:()=>Ub,headingMaxLevel:()=>Gb,headingTagMatcher:()=>zb,headingTypeAttrs:()=>Wb,headingTypeAttrsList:()=>Zb,mixinHeadingBlock:()=>Yb,pageDecoratorNameList:()=>d_,queryDecorator:()=>w_,schema:()=>JA,schemaSpec:()=>$A,sectionAttr:()=>Fb,watermarkAttr:()=>Db});var z={};r.r(z),r.d(z,{schemaManager:()=>uM});var U={};r.r(U),r.d(U,{AbstractTextBlock:()=>Fw,BoxNode:()=>Sw,DateTimeText:()=>Xw,FloatingNode:()=>Mw,GeometryInfo:()=>vM,GroupNode:()=>ww,HidableTextBlock:()=>Vw,HolderParagraph:()=>Zw,HolderTextBlock:()=>Uw,HolderTextBlockNode:()=>Tw,LayoutContentContainer:()=>BM,LayoutHolderTextBlock:()=>$w,LayoutNode:()=>_w,MasterContentContainer:()=>FM,MasterHolderTextBlock:()=>qw,MasterNode:()=>bw,PageNode:()=>mw,PageNumText:()=>Yw,PathHelper:()=>Kw,PresentationNode:()=>fw,PresentationNonEditableType:()=>dM,PresentationParagraph:()=>Ww,PresentationSettings:()=>OM,SCHEMA_VERSION:()=>cM,ShapeNode:()=>Cw,ShapeTextBlock:()=>Gw,SimpleTextBlock:()=>Bw,SlideContentContainer:()=>VM,SlideHolderTextBlock:()=>Jw,SlideNode:()=>Aw,Table:()=>HM,TableBlock:()=>zw,TableCell:()=>zM,TableRow:()=>GM,TextBlock:()=>Hw,TextBlockNode:()=>Pw,adjustAncestorGroup:()=>CC,applyChangeMap:()=>MC,applyChangeTransform:()=>wC,checkTransMap:()=>AC,collectAffectedConnectorAdaptations:()=>RM,collectAffectedConnectorTransforms:()=>LM,collectAncestorGroups:()=>PC,collectFloatings:()=>IM,computeConnectorAdaptation:()=>TM,ensureSynoTransform:()=>MM,ensureSynoTransformSizeValue:()=>AM,fixLineConnectionAndGroup:()=>IC,generateCorrespondingSections:()=>mM,generateSections:()=>fM,getConnectorEndInfo:()=>PM,getConnectorEndPos:()=>CM,getCssMatrix:()=>_M,getDefaultOptions:()=>_C,getGeometryInfoFromNode:()=>wM,getSynoTransform:()=>bM,mixinPresentationListType:()=>pM,resizeGroup:()=>TC,schema:()=>yC,schemaSpec:()=>dC,sectionSettingAttr:()=>xM,transformFloating:()=>SC});var q={};r.r(q),r.d(q,{schemaManager:()=>lP});let $=t=>{let e="number"==typeof t?t:t?Number(t):NaN;return isFinite(e)?e:void 0},J={number:$,nonZeroNumber:t=>{let e=$(t);return"number"==typeof e&&0!==e?e:void 0},nonNegativeNumber:t=>{let e=$(t);return"number"==typeof e&&e>=0?e:void 0},positiveNumber:t=>{let e=$(t);return"number"==typeof e&&e>0?e:void 0},betweenZeroOneNumber:t=>{let e=$(t);return"number"==typeof e&&e>=0&&e<=1?e:void 0},integer:t=>{let e=$(t);return"number"==typeof e?Math.round(e):void 0},string:t=>"string"==typeof t?t:"number"==typeof t&&isFinite(t)?String(t):void 0,boolean:t=>null==t?void 0:!!t},W=Object.freeze(Object.create(null)),Z=Object.freeze([]);function Y(){}function X(){return!0}function K(){return!1}function Q(t){return null!=t}function tt(){throw Error("Must override me.")}let et=function t(e,r,s={}){if(e===r)return!0;if(!(e&&"object"==typeof e)||!(r&&"object"==typeof r))return!1;let n=Array.isArray(e);if(Array.isArray(r)!=n)return!1;if(n){if(e.length!=r.length)return!1;for(let s=0;s<e.length;s++)if(!t(e[s],r[s]))return!1}else{for(let n in e){if(!(n in r))return!1;if("function"==typeof s[n]){if(!s[n](e[n],r[n]))return!1}else if(!t(e[n],r[n]))return!1}for(let t in r)if(!(t in e))return!1}return!0};function rt(t,e,r){for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e.call(r,t[s],s,t))break}function st(t,e,r,s){let n;!0!==s&&(!1===s?e in t.prototype:t.prototype.hasOwnProperty(e))||(t.prototype[e]=r)}function nt(t,e,r){Object.defineProperty(t.prototype,e,r)}function at(t,e,r){nt(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r})}function it(t,e,r,s){nt(t,e,{configurable:!0,set:r,get:s})}function ot(t,e,r){return it(t,e,r,void 0)}function lt(t,e,r){return it(t,e,void 0,r)}function ht(t,e,r){return lt(t,e,(()=>r))}function ut(t,e){let r=Object.assign(Object.create(null),t.prototype.attrs);return rt(e,(function(t,e){if(null==t)delete r[e];else{let s=Object.getPrototypeOf(t);s&&s!==Object.prototype?r[e]=t:r[e]=r[e].copy(t)}})),ht(t,"attrs",r)}function ct(t,e,r){let s=Object.assign(Object.create(null),t.prototype.attrs);return null==r?delete s[e]:s[e]=r,ht(t,"attrs",s)}function pt(t,e,r,s){let n=t.prototype.attrs[e];if(!n)throw Error("Given attr name is invalid.");return ct(t,e,n.copy({[r]:s}))}function dt(t,e,r,s=W){if(s.use_super){let s=Y;for(let r=t;r;r=Object.getPrototypeOf(r)){let t=Object.getOwnPropertyDescriptor(r,e);if(t){"function"==typeof t.value&&(s=t.value);break}}let n=r;r=function(){return n.call(this,s,...arguments)}}return t[e]=r,t}function yt(t,e){return t>=0?t%e:(e- -t%e)%e}function xt(t,e,r){if("number"==typeof t){if(t<0)return-1;else if(t>0)return 1;else if(e&&0===t)return 0}return"number"==typeof r?xt(r,e):+!e}function gt(t,e,r=1e-6){let s=t-e;return s>r?1:s<-r?-1:0}function ft(t){return Number.isInteger(Number(t))}function mt(t){for(let e in t)return!1;return!0}function bt(t,e,r){return r.forEach((r=>{let s=r in e?e[r]:void 0;void 0!==s&&(t[r]=s)})),t}function _t(t,e){return bt(Object.create(null),t,e)}function At(t,e,r){let s=null;return rt(t,((t,n,a)=>!!e.call(r,t,n,a)&&(s=n,!0))),s}function Mt(t,e,r){let s=!0;return rt(t,((t,n,a)=>!e.call(r,t,n,a)&&(s=!1,!0))),s}function wt(t,e,r){let s=Object.create(null);return rt(t,((t,n,a)=>{s[n]=e.call(r,t,n,a)})),s}function St(t,e,r){return rt(t,((t,s,n)=>{r=e(r,t,s,n)})),r}function Ct(t){return St(t,((t,e,r)=>(t[e]=r,t)),Object.create(null))}class Pt{constructor(t){this.content=t}find(t){for(let e=0;e<this.content.length;e+=2)if(this.content[e]==t)return e;return-1}get(t){let e=this.find(t);return-1==e?void 0:this.content[e+1]}update(t,e,r){let s=r&&r!=t?this.remove(r):this,n=s.find(t),a=s.content.slice();return-1==n?a.push(r||t,e):(a[n+1]=e,r&&(a[n]=r)),new Pt(a)}remove(t){let e=this.find(t);if(-1==e)return this;let r=this.content.slice();return r.splice(e,2),new Pt(r)}addToStart(t,e){return new Pt([t,e].concat(this.remove(t).content))}addToEnd(t,e){let r=this.remove(t).content.slice();return r.push(t,e),new Pt(r)}addBefore(t,e,r){let s=this.remove(e),n=s.content.slice(),a=s.find(t);return n.splice(-1==a?n.length:a,0,e,r),new Pt(n)}forEach(t){for(let e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])}prepend(t){return(t=Pt.from(t)).size?new Pt(t.content.concat(this.subtract(t).content)):this}append(t){return(t=Pt.from(t)).size?new Pt(this.subtract(t).content.concat(t.content)):this}subtract(t){let e=this;return Pt.from(t).forEach((t=>e=e.remove(t))),e}get size(){return this.content.length>>1}static from(t){if(t instanceof Pt)return t;let e=[];if(t)for(let r in t)e.push(r,t[r]);return new Pt(e)}}function Tt(t=10){let e="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let s=0;s<t;s++)e+=r.charAt(Math.floor(Math.random()*r.length));return e}function vt(t,e){let r;if(!0===t.isSimpleDOM){do{r=Tt(10)}while(!0===t.synoIdMap.hasOwnProperty(r));t.synoIdMap[r]=e}else do{r=Tt(10)}while(t.querySelector("["+e+'="'+r+'"]'));return r}function It(t,e=t){return{x:t,y:e}}function kt(t){return{x:-t.x,y:-t.y}}function Et(t){return{x:1/t.x,y:1/t.y}}function Nt(t,e){let r=t.x-e.x,s=t.y-e.y;return r*r+s*s}function Lt(t,e){return!gt(t.x,e)&&!gt(t.y,e)}function jt(t,e,r,s=!0){var n;let a=e||Object.create(null);if(!0===r&&(a=(n=a)?JSON.parse(JSON.stringify(n)):Object.create(null)),!t)return a;if(!0===s)for(let e in t)a[e]=t[e];else Array.isArray(s)&&s.forEach((function(e){void 0!==t[e]&&(a[e]=t[e])}));return a}function Rt(t,e,r,s){if(t===e)return!0;if(!t||!e||"object"!=typeof t||"object"!=typeof e)return!1;let n=Array.isArray(t);if(n!==Array.isArray(e))return!1;if(null==s)if(n){let s=t.length;if(s!==e.length)return!1;for(let n=0;n<s;++n)if(!r(t[n],e[n],n))return!1;return!0}else{for(let s in t)if(!(s in e)||!r(t[s],e[s],s))return!1;for(let r in e)if(!(r in t))return!1;return!0}if(Array.isArray(s)){for(let n=0,a=s.length;n<a;++n){let a=s[n];if(!r(t[a],e[a],a))return!1}return!0}return r(t[s],e[s],s)}function Ot(t,e){return t===e}function Dt(t,e){return Rt(t,e,Dt)}function Ft(t,e,r,s="value"){let n=function(t,e){for(let r=t;r;r=Object.getPrototypeOf(r)){let t=Object.getOwnPropertyDescriptor(r,e);if(t)return t}}(t,e),a=n&&"function"==typeof n[s]?n[s]:null;return function(){return r.call(this,a,...arguments)}}function Bt(t,e,r,s){return!!function(t,e,r){switch(r){case"has":return!(e in t);case"own":return!t.hasOwnProperty(e);default:return!0}}(t,e,s)&&(Object.defineProperty(t,e,r),!0)}function Vt(t,e,r,s){return Bt(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r},s)}function Ht(t,e,r,s,n){return s&&(r=Ft(t,e,r,"get")),Bt(t,e,{configurable:!0,set:void 0,get:r},n)}function Gt(t,e,r,s){return Ht(t,e,(()=>r),!1,s)}function zt(t,e,r,s,n){return s&&(r=Ft(t,e,r)),Vt(t,e,r,n)}let Ut=Math.PI/180,qt=180/Math.PI;var $t=/\s/;let Jt=function(t){for(var e=t.length;e--&&$t.test(t.charAt(e)););return e};var Wt=/^\s+/;let Zt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Yt="object"==typeof global&&global&&global.Object===Object&&global,Xt="object"==typeof self&&self&&self.Object===Object&&self,Kt=Yt||Xt||Function("return this")(),Qt=Kt.Symbol,te=Object.prototype,ee=te.hasOwnProperty,re=te.toString,se=Qt?Qt.toStringTag:void 0;let ne=function(t){var e=ee.call(t,se),r=t[se];try{t[se]=void 0;var s=!0}catch(t){}var n=re.call(t);return s&&(e?t[se]=r:delete t[se]),n};var ae=Object.prototype.toString,ie=Qt?Qt.toStringTag:void 0;let oe=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ie&&ie in Object(t)?ne(t):ae.call(t)},le=function(t){return null!=t&&"object"==typeof t},he=function(t){return"symbol"==typeof t||le(t)&&"[object Symbol]"==oe(t)};var ue=0/0,ce=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,de=/^0o[0-7]+$/i,ye=parseInt;let xe=function(t){if("number"==typeof t)return t;if(he(t))return ue;if(Zt(t)){var e,r="function"==typeof t.valueOf?t.valueOf():t;t=Zt(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,Jt(e)+1).replace(Wt,""):e;var s=pe.test(t);return s||de.test(t)?ye(t.slice(2),s?2:8):ce.test(t)?ue:+t},ge=function(t,e,r){var s,n,a;return void 0===r&&(r=e,e=void 0),void 0!==r&&(r=(r=xe(r))==r?r:0),void 0!==e&&(e=(e=xe(e))==e?e:0),s=xe(t),n=e,a=r,s==s&&(void 0!==a&&(s=s<=a?s:a),void 0!==n&&(s=s>=n?s:n)),s};function fe(t,e){return isNaN(t=Number(t))?0:ge(t=t>=0?Math.floor(t):e+(t=Math.ceil(t)),0,e)}function me(t,e,r){return[t=void 0===t?0:fe(t,r),t>(e=void 0===e?r:fe(e,r))?t:e]}function be(...t){let e=t.length;if(0===e)return[];if(1===e)return t[0].slice();if(2===e){let e=t[1];return t[0].filter((t=>e.includes(t)))}{let r=t[0].slice();for(let s=1;s<e;++s){if(!r.length||!t[s].length)return[];let e=new Set;t[s].forEach(e.add,e),r=r.filter(e.has,e)}return r}}function _e(...t){let e=t.filter((t=>!!(t&&t.length))),r=e.length;if(0===r)return[];if(1===r)return e[0].slice();if(2!==r)return Array.from(e.reduce(((t,e)=>(e.forEach(t.add,t),t)),new Set));{let t=e[0];return e[1].reduce(((e,r)=>(t.includes(r)||e.push(r),e)),t.slice())}}function Ae(t,e){let r=new Set(e);return t.filter((t=>!r.has(t)))}let Me=/(?:https?:\/\/|www\.(?:[-\w@:%\\+~#=]+\.)+[a-zA-Z]{2,6}\b)/g,we=RegExp(`${Me.source}[\\u0021-\\u007E]*`,"g"),Se={newLine:/(?:\r\n|\r|\n)/g,linkHttpHost:Me,linkHttp:we,linkMailTo:/(?:mailto:)?(?:[^<>()[\]\\,;:\s@"]+|".+")@(?:\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]|(?:[a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})/g},Ce={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},Pe=/[&<>"]/g;function Te(t){return t&&Pe.test(t)?t.replace(Pe,(function(t){return Ce[t]})):t}let ve=function(t,e,r){return Object.getOwnPropertyNames(e).forEach((s=>{if(!r&&Object.prototype.hasOwnProperty.call(t,s))throw Error(`Trying to mixin duplicated member ${s}.`);Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(e,s))})),e},Ie=function(t,e,r){return ve(t.prototype,e,r)},ke=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]),Ee=new Set(["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]);function Ne(t){return t>=0&&t<=127}function Le(t){return t>=0&&t<=31||127===t}function je(t){return t>=32&&t<=126}function Re(t){return t>=65&&t<=90||t>=97&&t<=122}let Oe=55296,De=56319,Fe=56320,Be=57343,Ve=55296,He=57343;function Ge(t){return t>=Oe&&t<=Be}function ze(t){return t>=Oe&&t<=De}function Ue(t){return t>=Fe&&t<=Be}function qe(t){return t>=0&&t<65536}function $e(t){return t>=65536&&t<=1114111}function Je(t,e,r){if(r>0)return t.codePointAt(e);if(e>=1&&e<=t.length){let r=t.charCodeAt(e-1);if(!Ue(r))return r;{let s=e>=2?t.codePointAt(e-2):void 0;return void 0!==s&&$e(s)?s:r}}}function*We(t,e={}){let{from:r=0,to:s=t.length,reversed:n=!1}=e;if(!(r>=0&&r<=t.length&&s>=0&&s<=t.length&&r<s))return;let a=n?-1:1,i=n?r:s,o=n?s:r;for(;;){let e;if(o===i||"number"!=typeof(e=o+a===i?t.charCodeAt(n?o+a:o):Je(t,o,a)))break;let r=$e(e),s=r?2:1,l=o+s*a;yield{value:e,index:n?l:o,length:s,isSupplementary:r},o=l}}var Ze=r(777),Ye=r.n(Ze);let Xe=(()=>{let t;return()=>t??(t=new(Ye()))})();function Ke(t,e){let r=Xe();return Ue(t.charCodeAt(e))?e+r.nextBreak(t.slice(e),0):r.nextBreak(t,e)}function*Qe(t,e){let r=Xe(),s=0;for(;!(s>=t.length);){let e=r.nextBreak(t,s);yield{index:s,length:e-s},s=e}}function*tr(t,e){if(e?.reversed){let r=Array.from(Qe(t,e));for(let t=r.length-1;t>=0;--t)yield r[t]}else yield*Qe(t,e)}function*er(t,e){if(e?.reversed){yield t.length;let r=Array.from(Qe(t,e));for(let t=r.length-2;t>=0;--t){let{index:e,length:s}=r[t];yield e+s}}else for(let{index:r,length:s}of Qe(t,e))yield r+s}class rr{constructor(t){this.text=t,this.breakCache=[]}next(t){if(t<0)return 0;if(t>=this.text.length)return this.text.length;let{text:e,breakCache:r}=this,s=Xe();for(;t>=r.length;){let t=s.nextBreak(e,r.length);for(let e=r.length;e<t;++e)r.push(t)}return r[t]}}function sr(t){return t.map((t=>Array.isArray(t)?t:[t,t])).sort(((t,e)=>t[0]-e[0])).reduce(((t,e)=>{var r;let s=t.length;if(s&&(r=t[s-1],qe(r[0])===qe(e[0])&&e[0]<=r[1]+1)){let r=t[s-1];r[1]<e[1]&&(t[s-1]=[r[0],e[1]])}else t.push(e);return t}),[])}function nr(t){let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=sr(t[r]));return e}function ar(t,e){let r="string"==typeof e?e.charCodeAt(0):e;for(let e of t)if(r>=e[0]&&r<=e[1])return!0;else if(r<e[0])break;return!1}function ir(t,e){return Array.prototype.some.call(e,(e=>ar(t,e)))}function or(t,e){return Array.prototype.every.call(e,(e=>ar(t,e)))}function lr(t){return"\\u"+t.toString(16).padStart(4,"0")}function hr(t){let e="",r="";t.forEach((([t,s])=>{if(qe(t))t===s?e+=`${lr(t)}`:e+=`${lr(t)}-${lr(s)}`;else{let e=String.fromCodePoint(t),n=e.charCodeAt(0),a=e.charCodeAt(1),i=String.fromCodePoint(s),o=i.charCodeAt(0),l=i.charCodeAt(1);r&&(r+="|"),t===s?r+=`${lr(n)}${lr(a)}`:n===o?r+=`${lr(n)}[${lr(a)}-${lr(l)}]`:(r+=`${lr(n)}[${lr(a)}-${lr(Be)}]`,n+1<=o-1&&(r+=`|[${lr(n+1)}-${lr(o-1)}][${lr(Fe)}-${lr(Be)}]`),r+=`|${lr(o)}[${lr(Fe)}-${lr(l)}]`)}}));let s="";return e&&(s+=`[${e}]`),r&&(s&&(s+="|"),s+=`${r}`),`(${s})`}let ur=nr({cjk:[[12544,12591],[12704,12735],[19968,40959],[13312,19903],[131072,173791],[173824,177983],[177984,178207],[178208,183983],[183984,191456],[63744,64255],[194560,195103],[12032,12255],[11904,12031],[12736,12783],[12272,12287]],kana:[[12352,12447],[12448,12543],[12784,12799],[65381,65439],[12688,12703],[110592,110847],[110848,110895],[110896,110959]],hangui:[[4352,4607],[43360,43391],[55216,55295],[12592,12687],[65440,65500],[44032,55215]],symbol:[[8192,11263],[11776,11903],[65024,65039],[65280,65519],[65520,65535]],symbolCjk:[[12288,12351],[94176,94207],[65072,65103],[65104,65135],[65040,65055],[12800,13055],[127488,127743],[13056,13311]],arabic:[[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]],thai:[[3584,3711]],space:[[9,13],65279,32,160,[8192,8202],8239,8287],asciiTabNewline:[9,10,13],asciiWhitespace:[9,10,12,13,32],breakingSpace:[9,10,13,32,133,5760,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8232,8233,8287,12288,8203],surrogate:[[Ve,He]],joiningTypeLeft:[[43122,43122],[68301,68301],[68311,68311],[68864,68864]],joiningTypeRight:[[1570,1573],[1575,1575],[1577,1577],[1583,1586],[1608,1608],[1649,1651],[1653,1655],[1672,1689],[1728,1728],[1731,1739],[1741,1741],[1743,1743],[1746,1747],[1749,1749],[1774,1775],[1808,1808],[1813,1817],[1822,1822],[1832,1832],[1834,1834],[1836,1836],[1839,1839],[1869,1869],[1881,1883],[1899,1900],[1905,1905],[1907,1908],[1912,1913],[2112,2112],[2118,2119],[2121,2121],[2132,2132],[2151,2151],[2153,2154],[2218,2220],[2222,2222],[2225,2226],[2233,2233],[68293,68293],[68295,68295],[68297,68298],[68302,68306],[68317,68317],[68321,68321],[68324,68324],[68335,68335],[68481,68481],[68483,68485],[68489,68489],[68492,68492],[68494,68495],[68497,68497],[68521,68524],[68898,68898],[69427,69427],[69460,69460]],joiningTypeDual:[[1568,1568],[1574,1574],[1576,1576],[1578,1582],[1587,1599],[1601,1607],[1609,1610],[1646,1647],[1656,1671],[1690,1727],[1729,1730],[1740,1740],[1742,1742],[1744,1745],[1786,1788],[1791,1791],[1810,1812],[1818,1821],[1823,1831],[1833,1833],[1835,1835],[1837,1838],[1870,1880],[1884,1898],[1901,1904],[1906,1906],[1909,1911],[1914,1919],[1994,2026],[2113,2117],[2120,2120],[2122,2131],[2133,2133],[2144,2144],[2146,2149],[2152,2152],[2208,2217],[2223,2224],[2227,2228],[2230,2232],[2234,2237],[6151,6151],[6176,6264],[6279,6312],[6314,6314],[43072,43121],[68288,68292],[68307,68310],[68312,68316],[68318,68320],[68331,68334],[68480,68480],[68482,68482],[68486,68488],[68490,68491],[68493,68493],[68496,68496],[68525,68526],[68865,68897],[68899,68899],[69424,69426],[69428,69444],[69457,69459],[125184,125251]],joiningTypeTransparent:[[173,173],[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1756],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2273],[2275,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8203],[8206,8207],[8234,8238],[8288,8292],[8298,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531],[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125259],[917505,917505],[917536,917631],[917760,917999]],joiningTypeCausing:[[1600,1600],[2042,2042],[6154,6154],[8205,8205]]});function cr(...t){return 1===t.length?ur[t[0]]:sr(t.reduce(((t,e)=>(t.push(...ur[e]),t)),[]))}function pr(t,e){return ar(cr(e),t)}function dr(t,e){return ir(cr(e),t)}function yr(t,e){return or(cr(e),t)}function xr(...t){return hr(cr(...t))}let gr={space:cr("space"),symbol:sr([[0,25],[33,38],[40,44],[46,47],[58,64],[91,96],[123,127],171,187,[8220,8223]]),single:cr("cjk","kana","symbolCjk"),surrogate:cr("surrogate")},fr=Object.keys(gr);function mr(t){return fr.find((e=>ar(gr[e],t)))||"word"}let br=cr("joiningTypeLeft","joiningTypeDual"),_r=cr("joiningTypeRight","joiningTypeDual"),Ar=cr("joiningTypeTransparent"),Mr=cr("joiningTypeCausing");function wr(t,e,r){for(let{value:s}of We(t,{from:e}))if(ar(_r,s))return r?s:void 0;else if(ar(Mr,s))r=!0;else if(!ar(Ar,s))break}function Sr(t,e,r){for(let{value:s}of We(t,{to:e,reversed:!0}))if(ar(br,s))return r?s:void 0;else if(ar(Mr,s))r=!0;else if(!ar(Ar,s))break}function Cr(t,e){for(let{value:r}of We(t,{from:e}))if(ar(_r,r)||ar(Mr,r))return r;else if(!ar(Ar,r))break}function Pr(t,e){for(let{value:r}of We(t,{to:e,reversed:!0}))if(ar(br,r)||ar(Mr,r))return r;else if(!ar(Ar,r))break}let Tr=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1519,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1564],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2046,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2144,2154],[2208,2228],[2230,2237],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],[67903,67903],[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[69376,69415],[69424,69445],[69457,69465],[69600,69622],[124928,125124],[125127,125135],[125184,125251],[125259,125259],[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]];function vr(t){return ar(Tr,t)}function Ir(t,e=""){let r=!0;for(let{value:e}of We(t))if(Le(e)||Ge(e)){r=!1;break}return r?t:Array.from(We(t),(({value:t})=>Le(t)||Ge(t)?e:String.fromCodePoint(t))).join("")}function kr(t){return"decimal"===t||"decimalZero"===t}function Er(t){return"lowerLetter"===t||"upperLetter"===t}function Nr(t){return"lowerRoman"===t||"upperRoman"===t}function Lr(t){return"ideographDigital"===t||"ideographLegalTraditional"===t||"taiwaneseCounting"===t||"taiwaneseCountingThousand"===t||"taiwaneseDigital"===t}function jr(t){return"chineseCounting"===t||"chineseCountingThousand"===t||"chineseLegalSimplified"===t}function Rr(t){return Lr(t)||jr(t)}class Or{}class Dr extends Or{write(t){return String(t)}read(t){let e=parseInt(t,10);return e>=0?e:NaN}}class Fr extends Or{write(t){if(!t)return"";let e=--t%26;return String.fromCharCode((this.lowerCase?97:65)+e).repeat((t-e)/26+1)}read(t){if(!t)return 0;let e=t[0];if(!function(t){let e=t.charCodeAt(0);return e>=65&&e<=90||e>=97&&e<=122}(e)||!function(t,e){if(!t)return!e;e=(e||t)[0];for(let r=0,s=t.length;r<s;++r)if(t[r]!==e)return!1;return!0}(t,e))return NaN;let r=e.charCodeAt(0);return(t.length-1)*26+(r-(r>=97?97:65))+1}}let Br=["V","L","D"].reduce(((t,e)=>(t[e]=t[e.toLowerCase()]=!0,t)),Object.create(null)),Vr=St({I:1,IV:4,V:5,IX:9,X:10,XL:40,L:50,XC:90,C:100,CD:400,D:500,CM:900,M:1e3},((t,e,r)=>(t[r]=t[r.toLowerCase()]=e,t)),Object.create(null)),Hr=function(t){let e=[];for(let r=0;r<3;++r){let s=2*r,n=t[s],a=t[s+1],i=t[s+2],o=[""];for(let t=1;t<=3;++t)o.push(n.repeat(t));o.push(n+a),o.push(a);for(let t=1;t<=3;++t)o.push(a+n.repeat(t));o.push(n+i),e.push(o)}return e}(["I","V","X","L","C","D","M"]);class Gr extends Or{write(t){if(!t)return"";let e="";for(let r=0;r<3&&t;++r){let s=t%10;e=Hr[r][s]+e,t=(t-s)/10}return"M".repeat(t)+e}read(t){let e=0,r=0,s=t.length,n=1e4;for(;r<s;){let a=t[r],i=Vr[a];if(null==i)return NaN;let o=1;for(;a===t[r+o];)++o;if(o>1){if("M"!==a.toUpperCase()&&o>3||Br[a])return NaN;i*=o}else if(r+1<s){let e=Vr[t[r+1]];if(null!=e&&i<e){if(null==(i=Vr[t.slice(r,r+2)]))return NaN;o=2}}if(i>=n)return NaN;n=i,e+=i,r+=o}return e}}class zr extends Or{getDigitMap(){return this.digitMap||(this.digitMap=this.digits.reduce(((t,e,r)=>(t[e]=r,t)),Object.create(null)))}getDigitString(t){return this.digits[t]||""}getDigitNumber(t){return this.getDigitMap()[t]??-1}write(t){let e="",r=String(t);for(let t=0,s=r.length;t<s;++t)e+=this.getDigitString(r[t]);return e}read(t){if(!t)return NaN;let e=0;for(let r=0,s=t.length;r<s;++r){let s=this.getDigitNumber(t[r]);if(s<0)return NaN;e=10*e+s}return e}constructor(...t){super(...t),this.digitMap=void 0}}class Ur extends zr{write(t){if(t<10||t>=100)return super.write(t);let e=t%10,r=(t-e)/10,s="";return r>1&&(s+=this.getDigitString(r)),s+=this.tenDigit,e&&(s+=this.getDigitString(e)),s}read(t){return NaN}}let qr=["零","一","二","三","四","五","六","七","八","九"],$r=["零","壹","貳","參","肆","伍","陸","柒","捌","玖"],Jr=qr.map(((t,e)=>e?t:"○")),Wr=qr.map(((t,e)=>e?t:"〇")),Zr=["十","百","千"],Yr=["拾","佰","仟"],Xr=["萬","億","兆"],Kr=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],Qr=["万","亿","兆"];class ts extends Or{getDigit(t,e){return this.digits[t]}getUnit(t,e){return 0===t||0===e?"":this.units[e-1]}getGroupUnit(t,e){if(!t||0===e)return"";let r=this.groups,s=e-1,n=r.length,a=s%n;return r[a]+r[n-1].repeat((s-a)/n)}writeGroup(t,e,r){let s="",n=!1,a=t.length;for(let i=0;i<a;++i){let o,l=parseInt(t[a-1-i],10);0===l?n?(n=!1,o=this.getDigit(0,0)):o="":(n=!0,o=this.getUnit(l,i),this.suppressTenDigit&&2===a&&1===l&&1===i&&e===r-1||(o=this.getDigit(l,i)+o)),s=o+s}return s+this.getGroupUnit(s,e)}splitNumber(t){let e=[];for(let r=t.length;r>0;r-=4)e.push(t.slice(Math.max(r-4,0),r));return e}write(t){return t?this.splitNumber(String(t)).map(((t,e,r)=>this.writeGroup(t,e,r.length))).reverse().join(""):this.getDigit(0,0)}read(t){return NaN}constructor(...t){super(...t),this.suppressTenDigit=!0}}class es extends ts{constructor(...t){super(...t),this.groups=Qr}}class rs extends ts{constructor(...t){super(...t),this.groups=Xr}}let ss=wt({decimal:Dr,decimalZero:class extends Dr{write(t){return String(t).padStart(2,"0")}},lowerLetter:class extends Fr{constructor(...t){super(...t),this.lowerCase=!0}},upperLetter:class extends Fr{constructor(...t){super(...t),this.lowerCase=!1}},lowerRoman:class extends Gr{write(t){return super.write(t).toLowerCase()}},upperRoman:Gr,chineseCounting:class extends Ur{constructor(...t){super(...t),this.digits=Jr,this.tenDigit=Zr["0"]}},chineseCountingThousand:class extends es{constructor(...t){super(...t),this.digits=qr,this.units=Zr}},chineseLegalSimplified:class extends es{constructor(...t){super(...t),this.suppressTenDigit=!1,this.digits=Kr,this.units=Yr}},ideographDigital:class extends zr{constructor(...t){super(...t),this.digits=Wr}},ideographLegalTraditional:class extends rs{constructor(...t){super(...t),this.suppressTenDigit=!1,this.digits=$r,this.units=Yr}},taiwaneseCounting:class extends Ur{constructor(...t){super(...t),this.digits=Jr,this.tenDigit=Zr["0"]}},taiwaneseCountingThousand:class extends rs{constructor(...t){super(...t),this.digits=qr,this.units=Zr}},taiwaneseDigital:class extends zr{constructor(...t){super(...t),this.digits=Jr}}},(t=>new t));function ns(t){return t in ss?ss[t]:null}function as(t,e){let r=e.find((([e,r])=>r instanceof RegExp?r.test(t):"function"==typeof r&&r(t)));return r?r[0]:null}let is="undefined"==typeof navigator?"node":as(navigator.userAgent,[["opera",/opera/i],["chrome",/chrome/i],["safari",/safari/i],["firefox",/gecko\/\d/i]]);"undefined"!=typeof navigator&&/\bwv\b/.test(navigator.userAgent);let os="undefined"==typeof navigator?null:as(navigator.userAgent,[["ios",()=>/iPhone|iPad|iPod/i.test(navigator.platform)],["ipad",()=>/MacIntel/i.test(navigator.platform)&&navigator.maxTouchPoints>1],["android",/android/i],["windows",/windows|win32/i],["linux",/linux/i],["mac",/Mac_PowerPC|Macintosh/i]]);function ls(t){return"nodeType"in t}function hs(t){return ls(t)&&t.nodeType===t.ELEMENT_NODE}function us(t){return ls(t)&&t.nodeType===t.TEXT_NODE}(function(){if("undefined"==typeof performance)return;let t=performance.getEntriesByType?.("navigation")[0]||performance.getEntries?.()[0];t&&t.nextHopProtocol})(),"undefined"!=typeof navigator&&/mobile/i.test(navigator.userAgent);let cs=["base","link","meta","noscript","script","style","template","title","command"],ps=["embed","iframe","object","head"].concat(cs),ds=["table","caption","col","colgroup","tbody","td","tfoot","th","thead","tr"],ys=["address","article","aside","blockquote","dd","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","menu","nav","ol","p","pre","section","ul",...ds],xs={metadata:cs,heading:["h1","h2","h3","h4","h5","h6","hgroup"],phrasing:["a","abbr","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","math","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","command","keygen"],embedded:["audio","canvas","embed","iframe","img","math","object","picture","svg","video"],ignored:ps,list:["ol","ul"],table:ds,textblock:["p","li","h1","h2","h3","h4","h5","h6"],block:ys},gs=(Object.keys(xs),wt(xs,(t=>t.reduce(((t,e)=>(t[e.toLowerCase()]=t[e.toUpperCase()]=!0,t)),Object.create(null)))));function fs(t,e){return!!gs[e]["string"==typeof t?t.toLowerCase():t.tagName]}function ms(t){let e,r=t.firstElementChild;if(!r)return null;for(;e=r.firstElementChild;)r=e;return r}function bs(t,e){for(let r=t.firstElementChild;r;r=r.nextElementSibling)if(r.matches(e))return r;return null}function _s(t,e){Object.assign(t.style,e)}let As=["xlink:href"].reduce(((t,e)=>(t[e]=!0,t)),Object.create(null)),Ms=Object.prototype.hasOwnProperty;var ws=r(150),Ss=r.n(ws);let Cs=(()=>{let t=["a","script","style","title"].reduce(((t,e)=>(t[e]=!0,t)),Object.create(null));return Ss().reduce(((e,r)=>(t[r]||e.add(r),e)),new Set)})();function Ps(t,e,r,s){if(!e){if(!globalThis.document)throw Error("Document is not provided");e=globalThis.document}return function t(e,r,s,n){if(null!=e.nodeType)return e;if("string"==typeof e)return r.createTextNode(e);if(Array.isArray(e)){let a,i=e[0];a=Cs.has(i)?r.createElementNS("http://www.w3.org/2000/svg",i):r.createElement(i);let o=1,l=e[1];if(null==l)++o;else if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){++o;for(let t in l)if(Ms.call(l,t)){let e=l[t];if(null==e)continue;switch(t){case"class":case"classList":{let t=a.getAttribute("class");a.setAttribute("class",(t?t+" ":"")+function t(e){return e?Array.isArray(e)?e.reduce(((e,r)=>(e.length&&" "!==e.at(-1)&&(e+=" "),e+=t(r))),""):e:""}(e));break}case"style":a.style.cssText=String(e);break;case"inline_style":_s(a,e);break;default:As[t]?a.setAttributeNS("http://www.w3.org/1999/xlink",t,String(e)):a.setAttribute(t,String(e))}}}for(let i=o,l=e.length;i<l;++i){let l=e[i];null!=l&&(0===l?s?.call(n,a,e,i,o):"function"==typeof l?l(a):a.appendChild(t(l,r,s,n)))}return a}throw Error(`Invalid structure [${e}]`)}(t,e,r,s)}function Ts(t,e,r){return t?e[t]||r:null}let vs=["inherit","initial","unset","revert","revert-layer"],Is=function(){let t=Object.create(null);return t.px=.75,t.cm=72/2.54,t.mm=.1*t.cm,t.q=.025*t.cm,t.in=72,t.pc=12,t.pt=1,t}(),ks=function(){let t=Object.create(null),e=1/Is.px;return rt(Is,(function(r,s){t[s]=r*e})),t.px=1,t}(),Es=function(){let t=Object.create(null);return rt(ks,(function(e,r){t[r]=1/e})),t.px=1,t}();function Ns(t){return!t||"%"===t}function Ls(t,e,r){return"%"!==e||r?e||"%"!==r?t:100*t:.01*t}function js(t,e,r,s){var n,a,i,o;if(e&&(e=e.toLowerCase()),r&&(r=r.toLowerCase()),e===r)return t;let l=!(n=e)||"%"===n,h=!(a=r)||"%"===a;if(l&&h)return Ls(t,e,r);if(l)return null==s?NaN:Ls(t*s,e,"");if(h)return null==s?NaN:Ls(t/s,"",r);return i=e,o=r,0===t?0:t*ks[i]*Es[o]}function Rs(t,e,r){var s;let n=parseFloat(t);return isNaN(n)||(n=js(n,"string"!=typeof(s=t)?"":s.trim().match(/[a-zA-Z%]*$/)[0].toLowerCase(),e,r)),n}var Os=r(654),Ds=r.n(Os);let Fs="transparent";function Bs(t,e){if(!t)return null;if(t===Fs)return e?.disableTransparent?null:Fs;if((3===t.length||6===t.length||8===t.length)&&/^[0-9a-fA-F]+$/.test(t)&&(t="#"+t),e?.simple){var r;return(7===(r=t).length||9===r.length)&&/^#[0-9a-fA-F]+$/.test(r)?"hexa"===(e?.format??"hex")?t.padEnd(9,"f").toLowerCase():"00"===t.slice(7,9)?e?.disableTransparent?null:Fs:t.slice(0,7).toLowerCase():null}try{let r=new(Ds())(t),s=e?.format??"hex";if("hexa"===s)return(r.hex()+Math.round(255*r.alpha()).toString(16).padStart(2,"0")).toLowerCase();if(0===r.alpha())return e?.disableTransparent?null:Fs;return r.hex().toLowerCase()}catch{return null}}let Vs=Ct(Object.assign(Object.create(null),{none:"none",solid:"solid",dotted:"dotted",dashed:"dashed"}));function Hs(t){var e,r;return e=t,r=Vs,e?r[e]||"solid":null}function Gs(t){return(t=t.trim().replaceAll('"',"")).startsWith("'")&&t.endsWith("'")&&(t=t.slice(1,-1)),t}function zs(t,e){return t.split(",",e).map(Gs).filter((t=>t))}function Us(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}Object.assign(Ct(Object.assign(Object.create(null),{none:"none",solid:"none",dotted:"2,2",dashed:"6,6"})),{none:"solid"}),["Apple Symbols","Bookshelf Symbol 7","Marlett","Symbol","Webdings","Wingdings","Wingdings 2","Wingdings 3"].map((t=>t.toLowerCase()));class qs{constructor(t){this.matrix=t}static from(t,e,r,s,n,a){return new qs([t,e,r,s,n,a])}static create(){return this.from(1,0,0,1,0,0)}static createTranslate(t=0,e=0){return this.from(1,0,0,1,t,e)}static createRotate(t,e=0,r=0){let s=t*Ut,n=Math.sin(s),a=Math.cos(s);return this.from(a,n,-n,a,-e*a+r*n+e,-e*n-r*a+r)}static createScale(t,e=t,r=0,s=0){return this.from(t,0,0,e,r*(1-t),s*(1-e))}static createFlip(t,e=t,r=0,s=0){return"boolean"==typeof t&&(t=t?-1:1),"boolean"==typeof e&&(e=e?-1:1),this.createScale(Math.sign(t),Math.sign(e),r,s)}static createSkewY(t,e=0){let r=Math.tan(t*Ut);return this.from(1,r,0,1,0,-e*r)}static applyTranslate(t,e,r){return{x:t.x+e,y:t.y+r}}static applyRotate(t,e,r=0,s=0){return this.createRotate(e,r,s).apply(t)}static applyScale(t,e,r=e,s=0,n=0){return this.createScale(e,r,s,n).apply(t)}static applyFlip(t,e,r=e,s=0,n=0){return this.createFlip(e,r,s,n).apply(t)}static applySkewY(t,e,r=0){return this.createSkewY(e,r).apply(t)}apply({x:t,y:e}){let r=this.matrix;return{x:r[0]*t+r[2]*e+r[4],y:r[1]*t+r[3]*e+r[5]}}applyDirected(t){let e=yt(t.ang,360)*Ut,{x:r,y:s}=this.apply(t),{x:n,y:a}=this.apply({x:t.x+100*Math.cos(e),y:t.y+100*Math.sin(e)});return{x:r,y:s,ang:yt(Math.atan2(a-s,n-r)*qt,360)}}applyWithoutTranslate({x:t,y:e}){let r=this.matrix;return{x:r[0]*t+r[2]*e,y:r[1]*t+r[3]*e}}inverse(){let t,e=this.matrix,r=e[0]*e[3]-e[1]*e[2];if(0===r)t=Array(6).fill(NaN);else{let s=1/r,n=e[0]*s,a=e[1]*s,i=e[2]*s,o=e[3]*s,l=e[4],h=e[5];t=[o,-a,-i,n,i*h-o*l,a*l-n*h]}return this.matrix=t,this}multiply(...t){for(let e of t)this.matrix=Us(this.matrix,e.matrix);return this}preMultiply(...t){for(let e=t.length-1;e>=0;--e)this.matrix=Us(t[e].matrix,this.matrix);return this}translate(t=0,e=0){return this.multiply(qs.createTranslate(t,e))}rotate(t,e=0,r=0){return this.multiply(qs.createRotate(t,e,r))}scale(t,e=t,r=0,s=0){return this.multiply(qs.createScale(t,e,r,s))}flip(t,e=t,r=0,s=0){return this.multiply(qs.createFlip(t,e,r,s))}skewY(t,e=0){return this.multiply(qs.createSkewY(t,e))}prependTranslate(t,e){return this.preMultiply(qs.createTranslate(t,e))}prependRotate(t,e=0,r=0){return this.preMultiply(qs.createRotate(t,e,r))}prependScale(t,e=t,r=0,s=0){return this.preMultiply(qs.createScale(t,e,r,s))}prependFlip(t,e=t,r=0,s=0){return this.preMultiply(qs.createFlip(t,e,r,s))}prependSkewY(t,e=0){return this.preMultiply(qs.createSkewY(t,e))}copy(){return new qs(this.matrix)}toString(){let t=this.matrix;return`matrix(${t[0]},${t[1]},${t[2]},${t[3]},${t[4]},${t[5]})`}}let $s=new WeakMap;function Js(t,e){return function(t){let e,r=$s.get(t);if(r)return r;let s=[];for(let r of function*(t){for(let e=t;e;e=Object.getPrototypeOf(e))yield e}(t)){if(e=$s.get(r))break;s.push(r)}for(let t of s.reverse())e=function(t,e){if(!Object.hasOwn(t,"getSelfPropertyName"))return e??new Set;let r=new Set(e);var s=t.getSelfPropertyName?.();if(s)for(let t of Array.isArray(s)?s:[s])t&&r.add(t);return r}(t,e),$s.set(t,e);return e??new Set}(t).has(e)}class Ws{constructor(t,e){if(0===e.length||e.length%3!=0)throw RangeError(`Invalid path length: ${e.length}`);this.pos=t,this.path=e}static ensurePath(t){return t?t.slice():[]}static _resolve(t,e,r,s){if(!(s>=0&&s<=e.getContentSize()))throw RangeError(`Offset ${s} out of range [0, ${e.getContentSize()}].`);let n=this.ensurePath(t),a=r+s;for(;;){let{index:t,offset:a}=e.findIndex(s),i=s-a;if(n.push(e,t,r+a),!i||(e=e.child(t)).isText)break;s=i-1,r+=a+1}return new this(a,n)}static _resolveIndex(t,e,r,s){let n=this.ensurePath(t);Array.isArray(s)||(s=[s]);let a=s.length;if(!n.length&&!a)throw RangeError("Invalid to resolve empty index array on empty path.");for(let t=0;t<a;++t){if(0!==t&&e.type.isLeaf)throw RangeError(`Invalid to resolve index inside leaf node ${e.type.name}.`);let a=s[t];if(!(a>=0&&a<=e.childCount)){let r=`Index ${a} out of range [0, ${e.childCount}]`;throw 0!==t&&(r+=` in node ${e.type.name}}`),RangeError(r+".")}let i=e.offsetAt(a);n.push(e,a,r+i),e=e.maybeChild(a),r+=i+1}return new this(r-1,n)}}class Zs extends Ws{static resolve(t,e){return this._resolve(null,t,0,e)}}class Ys{constructor(t,e){this._pos=t,this._path=e}get depth(){return this._path.length/2}get pos(){return this.isAtEnd()?-1:this._pos}get index(){if(this.isAtEnd())return-1;let t=this._path;return t[t.length-1]}get parent(){if(this.isAtEnd())return null;let t=this._path;return t[t.length-2]}get parentNode(){let t=this.parent;return t&&t.type?t:null}get node(){let t=this.parent;return t?t.maybeChild(this.index):null}isAtEnd(){return 0===this.depth}move(t,e){this._pos+=e.nodeSize*t;let r=this._path;r[r.length-1]+=t}enter(t,e){this._pos+=t;let r=this._path;t>0?r.push(e,0):(--r[r.length-1],r.push(e,e.childCount))}leave(t){this._pos+=t;let e=this._path;e.length-=2,t>0&&++e[e.length-1]}next(t=!1){if(this.isAtEnd())return this;let e=this.node;return e?t||e.type.isLeaf?this.move(1,e):this.enter(1,e):this.leave(1),this}prev(t=!1){if(this.isAtEnd())return this;let e=this.index;if(e){let r=this.parent.maybeChild(e-1);t||r.type.isLeaf?this.move(-1,r):this.enter(-1,r)}else this.leave(-1);return this}walk(t,e){return t>0?this.next(e):this.prev(e)}clone(){return new this.constructor(this._pos,this._path.slice())}static create(t,e,r=-1){let s=Zs.resolve(t,e).path,n=[];for(let t=0,e=s.length;t<e;t+=3)n.push(s[t],s[t+1]);let a=e-s[s.length-1];if(a&&(e-=a,r>0)){let t=n.length;e+=n[t-2].child(n[t-1]).nodeSize,++n[t-1]}return new this(e,n)}}function Xs(t){let e=function(t){try{return JSON.stringify(t)}catch{return}}(t);return void 0!==e&&e.length>2?e:void 0}function Ks(t){if(!t)return;let e=function(t){try{return JSON.parse(t)}catch{return}}(t);return e&&"object"==typeof e&&!Array.isArray(e)?e:void 0}let Qs=Object.prototype.hasOwnProperty;function tn(t){let e;for(;(e=t.length)&&null==t[e-1];)t.pop();return t}class en{assertAvailable(){if(this.hasValue()){if(this.optional)throw Error("Can not create attribute with both default value and `optional`.");if(this.deep)throw Error("Can not create attribute with both default value and `deep`.");if(this.array)throw Error("Can not create attribute with both default value and `array`.")}if(this.deep&&this.array)throw Error("Can not create attribute with both `deep` and `array`.");if(this.deep){if(this.normalizer)throw Error("Can not create attribute with both `deep` and `normalizer`.");if(this.optional&&this.constructor.isAttrsRequired(this.deep))throw Error("Can not create attribute with both `deep` and `optional` while there is required attribute inside `deep`.")}if(this.array&&this.normalizer)throw Error("Can not create attribute with both `array` and `normalizer`.");if(this.normalizer){if(this.hasValue()){let t=this.getValue();if(t!=this.normalizeValue(t))throw Error(`Given default value can not pass given normalizer. ${JSON.stringify(t)} => ${JSON.stringify(this.normalizeValue(t))}`)}let t=this.getEmptyValue();if(null!=t){let e=this.normalizeValue(t);if(null!=e&&t!==e)throw Error(`Given empty value can not pass given normalizer. ${JSON.stringify(t)} => ${JSON.stringify(this.normalizeValue(t))}`)}}if(!this.settable&&this.clearable)throw Error("Can not create attribute with clearable but non-settable.")}isRequired(t){return this.constructor.isAttrRequired(this,t)}static defaultAttrs(t){let e=Object.create(null);for(let r in t)if(Qs.call(t,r)){let s,n=t[r];if(n.optional)continue;if(n.deep?s=this.defaultAttrs(n.deep):n.array?s=[]:"function"!=typeof n.default&&(s=n.default),null==s)return null;e[r]=s}return e}static emptyAttrs(t){let e=Object.create(null);for(let r in t)if(Qs.call(t,r)){let s=t[r].getEmptyValue();null!=s&&(e[r]=s)}return e}static isAttrRequired(t,e){return!(t.optional||t.hasValue())&&(t.deep?this.isAttrsRequired(t.deep,e):null==e)}static isAttrsRequired(t,e){for(let r in t)if(Qs.call(t,r)&&this.isAttrRequired(t[r],e&&e[r]))return!0;return!1}static checkAttr(t,e,r){if(!t||!t.settable)return!1;if(null==e)return!t.isRequired();if(t.deep){if(!this.checkAttrs(t.deep,e))return!1}else if(t.array){let s=t.array;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;++t)if(!this.checkAttr(s,e[t],r))return!1}else if(!r)return!1;else for(let t in e)if(Qs.call(e,t)&&ft(t)&&!this.checkAttr(s,e[t],r))return!1}return!0}static checkAttrs(t,e,r){if(!e)return!0;for(let s in e)if(Qs.call(e,s)&&!this.checkAttr(t[s],e[s],r))return!1;return!0}static copyAttr(t,e,r,s){if(!t||void 0===r)return e??null;if(null===r)return null;if(t.deep)e=this.copyAttrs(t.deep,e,r,s);else if(t.array){if(Array.isArray(r))e=r;else if(s){let n=t.array,a=e?e.slice():[];for(let t in r)Qs.call(r,t)&&ft(t)&&(a[t]=this.copyAttr(n,e&&e[t],r[t],s));e=tn(a)}}else e=r;return e}static copyAttrs(t,e,r,s){if(!r)return e||Object.create(null);let n=Object.assign(Object.create(null),e);for(let a in r)if(Qs.call(r,a)){let i=this.copyAttr(t[a],e&&e[a],r[a],s);null==i?delete n[a]:n[a]=i}return n}static invertAttr(t,e,r,s){if(t&&void 0!==r){if(null==e)return null;if(null===r)return e??null;if(t.deep)e=this.invertAttrs(t.deep,e,r,s);else if(t.array&&!Array.isArray(r)&&s){let n=t.array,a=Object.create(null);for(let t in r)Qs.call(r,t)&&ft(t)&&(a[t]=this.invertAttr(n,e[t],r[t],s));e=a}return e}}static invertAttrs(t,e,r,s){if(!r)return null;let n=Object.create(null);for(let a in r)Qs.call(r,a)&&(n[a]=this.invertAttr(t[a],e&&e[a],r[a],s));return n}static computeAttrsEmptyValue(t){let e;for(let r in t)if(Qs.call(t,r)){let s=t[r],n=s.getEmptyValue();if(null==n){if(!s.hasValue())continue;n=s.getValue()}e||(e=Object.create(null)),e[r]=n}return e}static isAttrCopyable(t){return!(t.copyable<=0)&&(t.deep?this.isAttrsCopyable(t.deep):!t.array||this.isAttrCopyable(t.array))}static isAttrsCopyable(t){for(let e in t)if(Qs.call(t,e)&&!this.isAttrCopyable(t[e]))return!1;return!0}static copyableAttr(t,e){if(null==e)return e;if(0===t.copyable)e=t.copyTransformer?t.copyTransformer(e)??null:null;else if(t.deep)e=this.copyableAttrs(t.deep,e);else if(t.array&&Array.isArray(e)){let r,s=t.array;for(let t=0,n=e.length;t<n;++t){let n=e[t],a=this.copyableAttr(s,n);n!==a&&(r||(r=e.slice()),r[t]=a)}r&&(e=tn(r))}return e}static copyableAttrs(t,e){let r;for(let s in t)if(Qs.call(t,s)){let n=t[s],a=n.copyable<0,i=e[s],o=this.copyableAttr(n,i);(i!==o||null!=i&&a)&&(r||(r=Object.assign(Object.create(null),e)),a?(delete r[s],r["__"+s]=o):null==o?delete r[s]:r[s]=o)}return r||e}static mergeAttrs(t){let e=Object.create(null),r=arguments.length;for(let s=0,n=t.length;s<n;++s){let n,a,i=t[s];for(let t=1;t<r;++t)if(n=arguments[t][i],null!=n&&""!==n){a=!0;break}e[i]=a?n:null}return e}}function rn(t){return t&&"object"==typeof t?t:null}class sn extends en{static{this.empty=new sn}static{this.optional=new sn({optional:!0})}static{this.id=new sn({default:Tt,copyable:-1})}constructor(t=Object.create(null)){super(),this.default=t.default,this.empty_value=t.empty_value??void 0,this.optional=!!t.optional,this.deep=t.deep,this.array=t.array,this.normalizer=this.ensureNormalizer(t.normalizer),this.clearable=!!t.clearable,this.hidden=!!t.hidden,this.copyable="number"==typeof t.copyable?xt(t.copyable,!0,1):+(!1!==t.copyable),this.copyTransformer=t.copyTransformer,this.backward=!!t.backward,this.settable=!1!==t.settable,this.options=t,!this.optional||!this.deep||"empty_value"in t||(this.empty_value=this.constructor.computeAttrsEmptyValue(this.deep)),this.assertAvailable()}ensureNormalizer(t){return"string"==typeof t?this.constructor.getPresetNormalizer(t):Array.isArray(t)?e=>t.includes(e)?e:null:t}getEmptyValue(){return this.empty_value}getDefaultValue(){return this.getEmptyValue()}hasValue(){return null!=this.default}getValue(){let t=this.default;if(null==t)throw Error("No value in attribute.");return"function"==typeof t?t():t}normalizeValue(t,e=!1){return(null!=t&&this.normalizer&&(t=this.normalizer.call(null,t)),null!=t)?t:e?this.getEmptyValue():void 0}copy(t){let e={...this.options,...t};return new this.constructor(e)}static isSettableAttr(t){return!!t.settable&&(t.deep?this.isSettableAttrs(t.deep):!t.array||this.isSettableAttr(t.array))}static isSettableAttrs(t){return Mt(t,(t=>this.isSettableAttr(t)))}static settableAttrValue(t,e){if(t.settable)return null==e?null:(t.deep&&(e=this.settableAttrValues(t.deep,e)),e)}static settableAttrValues(t,e){let r=rn(e);return r?St(r,((e,r,s)=>{let n=t[s];if(n){let t=this.settableAttrValue(n,r);void 0!==t&&(e[s]=t)}return e}),Object.create(null)):null}static completeAttrValue(t,e){return null==e?null:(t.deep&&(e=this.completeAttrValues(t.deep,e)),e)}static completeAttrValues(t,e){let r=rn(e),s=Object.create(null);for(let[e,n]of Object.entries(t))s[e]=this.completeAttrValue(n,r?.[e])??null;return s}static computeAttr(t,e){let r;if(t.optional&&null==e)return;if(t.deep)r=this.computeAttrs(t.deep,e);else if(t.array)if(Array.isArray(e)){let s,n=t.array;for(let t=0,r=e.length;t<r;++t){let r=e[t],a=this.computeAttr(n,r);r!==a&&(s||(s=e.slice()),s[t]=a)}r=s?tn(s):e}else r=[];else r=null!=e?e:t.getValue();let s=t.normalizeValue(r);if(null!=s)return s;if(null==e)throw Error("Infinity recursion detected. The preset attribute value must always pass the normalizer.");return this.computeAttr(t,null)}static computeAttrs(t,e){let r=rn(e),s=Object.create(null);for(let[e,n]of Object.entries(t)){let t=this.computeAttr(n,r?.[e]);null!=t&&(s[e]=t)}return s}static clearBackwardAttrValues(t,e){let r,s=rn(e);return rt(t,((t,e)=>{t.backward&&(r||(r={...s}),r[e]=null)})),r||s||null}static normalizeAttrValue(t,e){let r;if(null!=e){if(t.deep)r=this.normalizeAttrValues(t.deep,e);else if(t.array)if(Array.isArray(e)){let s,n=t.array;for(let t=0,r=e.length;t<r;++t){let r=e[t],a=this.normalizeAttrValue(n,r);r!==a&&(s||(s=e.slice()),s[t]=a)}r=s?tn(s):r}else r=void 0;else r=t.normalizeValue(e);return r}}static normalizeAttrValues(t,e){let r,s=rn(e);if(s)return rt(t,((t,e)=>{let n=s[e],a=this.normalizeAttrValue(t,n);(null==a||n!==a)&&(r||(r={...s}),null==a?delete r[e]:r[e]=a)})),r||s}static mergeTypeAttrs(t,...e){let r=Object.assign(Object.create(null),t);for(let t=0,s=e.length;t<s;++t){let s=e[t];s&&rt(s,((t,e)=>{if(null==t)delete r[e];else if(t instanceof sn)r[e]=t;else{let s=r[e];if(!s)throw RangeError(`Base attribute \`${e}\` is missing.`);r[e]=s.copy(t)}}))}return r}static getPresetNormalizer(t){return J[t]}static createMarksNormalizer(t){return e=>this.normalizeArrayValue(e,(e=>{let r=e&&e._?e:void 0;if(!r)return;let s=t(r);return null==s?void 0:"boolean"==typeof s?s?r:void 0:s}),{pruneEmpty:!0})}static createArrayNormalizer(t,e){let r;return r="function"==typeof t?t:e=>this.normalizeAttrValue(t,e),t=>this.normalizeArrayValue(t,r,e)}static normalizeArrayValue(t,e,r=W){let s;if(!Array.isArray(t))return null;for(let r=0,n=t.length;r<n;++r){let n=t[r]??null,a=e(n)??null;n!==a&&(s||(s=t.slice()),s[r]=a)}let n=s||t;return r.allowNull||n.every(Q)||(n=n.filter(Q)),r.pruneEmpty&&0===n.length&&(n=null),n}static create(t){return t?new this(t):this.empty}static createOptional(t){return t?new this({...t,optional:!0}):this.optional}}class nn{constructor(t,e){this.name=t,this.schema=e,this.type=this,this.attrKeys=void 0,this.defaultAttrValues=void 0,this.presetAttrValues=void 0,this._isSettableAttrs=void 0,this.getFreezeList().forEach((t=>{let e=this[t];void 0!==e&&Object.defineProperty(this,t,{value:e})}))}getFreezeList(){return["className"]}static getSelfPropertyName(){}get classPrefix(){return"syno-o-doc-pm-"}get className(){return this.classPrefix+this.name.replace(/_/g,"-")}static is(t){return Js(this,t)}is(t){return t===this.name||Js(this.constructor,t)||(!function(t){let e=t.charCodeAt(0);return e>=65&&e<=90}(t[0])?!!this[t]:!!this[`is${t}`])}get attrs(){return W}getAttrKeys(){return this.attrKeys??=Object.keys(this.attrs)}getDefaultAttrValues(){return this.defaultAttrValues??=sn.emptyAttrs(this.attrs)}getPresetAttrValues(){return void 0!==this.presetAttrValues?this.presetAttrValues:this.presetAttrValues=sn.defaultAttrs(this.attrs)}computeCopyableAttrValues(t){return sn.copyableAttrs(this.attrs,t)}isSettableAttrs(){return void 0!==this._isSettableAttrs?this._isSettableAttrs:this._isSettableAttrs=sn.isSettableAttrs(this.attrs)}settableAttrValues(t){return sn.settableAttrValues(this.attrs,t)}completeAttrValues(t){return sn.completeAttrValues(this.attrs,t)}clearBackwardAttrValues(t){return sn.clearBackwardAttrValues(this.attrs,t)}normalizeAttrValues(t){return sn.normalizeAttrValues(this.attrs,t)}static ensureFilter(t){return t?"string"==typeof t?e=>e.is(t):t:K}}class an extends nn{}class on{constructor(t,e){this.type=t,this.attrs=e}get name(){return this.type.name}get schema(){return this.type.schema}is(t){return this.type.is(t)}getAttrValue(t,e=!1){let r=this.attrs[t];if(!e&&null==r){let e=this.type.attrs[t];e&&(r=e.getEmptyValue())}return null!=r?r:null}hasAttrValue(t,e=!1){return null!=this.getAttrValue(t,e)}}class ln extends Ws{indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&this.atNodeBoundary?0:1)}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let r=this.innerOffset,s=t.child(e);return r?t.child(e).cut(r):s}get nodeBefore(){let t=this.index(this.depth),e=this.innerOffset;return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}sameDepth(t){return this.commonDepth(t)}commonDepth(t){let e=0,r=Math.min(this.depth,t.depth);for(;e<r&&this.index(e)==t.index(e);)++e;return e}commonNode(t){return this.node(this.commonDepth(t))}blockRange(t=this,e){if(t.pos<this.pos)return t.blockRange(this,e);for(let r=this.depth-(this.parent.isTextblock||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!e||e(this.node(r))))return new hn(this,t,r)}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}toString(){let t="";for(let e=1;e<=this.depth;e++)t+=(t?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return t+":"+this.parentOffset}plusOne(){if(this.index()===this.parent.childCount)return this;let t=this.path.slice(),e=this.parent.child(t[t.length-2]++).nodeSize-this.innerOffset,r=t[t.length-1]=this.pos+e;return new this.constructor(r,t,this.parentOffset+e)}minusOne(){let t,e,r=this.innerOffset;return r?(t=this.path,e=r):0!==this.index()&&(t=this.path.slice(),e=this.parent.child(--t[t.length-2]).nodeSize,t[t.length-1]-=e),t?new this.constructor(t[t.length-1],t,this.parentOffset-e):this}map(t,e,r){return t.resolve(e.map(this.pos,r))}textblockDepth(t){let e=-1;for(let r=this.depth+1;r>0;--r){let s=this.node(r);if(s){if(s.type.isTextblock){if(e=r,t<0)break}else if(!s.type.isText)break}}return e}eq(t){return this.pos===t.pos&&this.doc===t.doc}eqChanged(t){if(this.eq(t))return!0;let e=this.self,r=t.self;if(!e&&!r){if(this.parentOffset!==t.parentOffset)return!1;e=this.parent,r=t.parent}if(e!==r||this.depth!==t.depth)return!1;for(let e=0;e<=this.depth;++e){let r=this.node(e),s=t.node(e);if(r!==s){if(r.dom!==s.dom)return!1}else break}return!0}eqChangedLoose(t){if(this.pos===t.pos)return!0;let e=this.self,r=t.self;if(!e||!r){if(this.parentOffset!==t.parentOffset||e&&!e.isText||r&&!r.isText)return!1;e=this.parent,r=t.parent}return e===r||e.dom&&e.dom===r.dom}}class hn{constructor(t,e,r){this.$from=t,this.$to=e,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}class un{constructor(t,e=t.depth+1,r=t.before(e),s=t.node(e)){this.$pos=t,this.depth=e,this.pos=r,this.node=s}static getResolvedPos(t){return t&&t.$pos}static getDepth(t){return t?t.depth:NaN}static getPos(t){return t?t.pos:NaN}static getNode(t){return t&&t.node}}function cn(t,e,r){if(!t)return e;let s=r&&t.isInSet(r);return e=s?s.addToSet(e):t.removeFromSet(e)}function pn(t){return t.reduce(((t,e)=>(t[e._]=e,t)),Object.create(null))}class dn extends on{static mergeSetJSON(){let t,e;for(let r=arguments.length-1;r>=0;--r){let s=arguments[r];if(s&&s.length)if(t){e||(e=(t=t.slice()).reduce(((t,e)=>(t[e._]=!0,t)),Object.create(null)));for(let r=s.length-1;r>=0;--r){let n=s[r];n._ in e||(e[n._]=!0,t.push(n))}}else t=s}return t||this.none}static trimSet(t,e){if(!t||!t.length||!e||!e.length)return null;let r=t;for(let t=e.length-1;t>=0;--t)r=e[t].removeFromSet(r);return r!==t?r:null}static trimSetJSON(t,e){if(!t||!t.length||!e||!e.length)return null;let r=pn(t),s=pn(e),n=!1;return t.forEach((t=>{let e=t._,a=s[e];a&&Rt(a,r[e],Dt,void 0)&&(n=!0,delete r[e])})),n?St(r,((t,e)=>(t.push(e),t)),[]):null}addToSet(t){for(let e=0;e<t.length;e++){let r=t[e];if(r.type==this.type){let s;if(this.type.supportMerge){let e=this.type.merge(r,this);if(e===r)return t;s=e}else{if(this.eq(r))return t;s=this}let n=t.slice();return n[e]=s,n}if(r.type.rank>this.type.rank)return t.slice(0,e).concat(this).concat(t.slice(e))}return t.concat(this)}removeFromSet(t){for(let e=0;e<t.length;e++){let r=t[e];if(r.type===this.type){if(this.type.supportMerge){let s=this.type.split(r,this);if(s===r)break;{let r=t.slice();return s?r[e]=s:r.splice(e,1),r}}else if(this.eq(t[e]))return t.slice(0,e).concat(t.slice(e+1))}if(r.type.rank>this.type.rank)break}return t}isInSet(t){for(let e=0;e<t.length;e++)if(this.eq(t[e]))return!0;return!1}eq(t){return this==t||this.type==t.type&&!!et(t.attrs,this.attrs,this.type.checker)}static sameSet(t,e){if(t==e)return!0;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(e[r]))return!1;return!0}static sameSetJSON(t,e){return t==e||t.length==e.length&&Rt(pn(t),pn(e),Dt,void 0)}static computeActiveMark(t,e,r){return e=function(t,e,r){let s=t.maybeMarkType("link");if(!s)return e;let n=s.isInSet(e);if(!n)return e;let a=r&&s.isInSet(r);if(a)if(a.eq(n))return e;else e=s.removeFromSet(e),r=null;return e=cn(t.maybeMarkType("color"),e,r),e=cn(t.maybeMarkType("underline"),e,r)}(t,e,r),this.filterSet(e,(t=>t.type.inclusiveBefore||r&&t.isInSet(r)))}}class yn extends dn{static{this.none=Z}constructor(t,e){super(t,e)}getValue(){let t=this.getAttrValue(this.type.valueKey);if(null==t)throw Error(`There is no valid value in attribute with name \`${this.type.valueKey}\`.`);return t}toJSON(t=W){let e=this.type.name,r={_:e,...this.attrsToJSON(t)};return r._=e,r}toJSONString(t=W){return`{"_":${JSON.stringify(this.type.name)}${this.attrsToJSONString(t)}}`}async toJSONStream(t,e=W){await t.write(`{"_":${JSON.stringify(this.type.name)}`),await this.attrsToJSONStream(t,e),await t.write("}")}attrsToJSON(t){let e=this.type.computeJsonConversionAttrs(this,t);if(!mt(e))return e}attrsToJSONString(t){let e=this.attrsToJSON(t);if(!e)return"";let r=JSON.stringify(e);return r.length>=2&&(r=r.slice(1,-1))&&(r=`,${r}`),r}async attrsToJSONStream(t,e){let r=this.attrsToJSONString(e);r&&await t.write(r)}static fromJSON(t,e){let r=t.markType(e._),s=null;for(let t in e)"_"!==t&&(s||(s=Object.create(null)),s[t]=e[t]);return r.create(s)}static*iterateMarks(...t){for(let e of t)e&&(Array.isArray(e)?yield*e:yield e)}static*iterateMarksAsMarks(...t){for(let e of t)e&&(Array.isArray(e)?yield e:yield[e])}static intersectMarks(...t){let e;for(let r of this.iterateMarks(...t)){e=r.type.schema;break}if(!e)return this.none;let r=[...this.iterateMarksAsMarks(...t)],s=r.length;if(0===s)return this.none;{if(1===s)return this.setFrom(r[0]);let t=[];for(let n of e.markTypes()){let e=r.map((t=>n.findFromSet(t)));if(e.some((t=>!t)))continue;let a=e[0];if(n.supportMerge)for(let t=1;t<s&&(a=n.intersect(a,e[t]));++t);else for(let t=1;t<s;++t)if(!a.eq(e[t])){a=null;break}a&&t.push(a)}return this.setFrom(t)}}static filterSet(t,e){let r=t.filter(e);return r.length===t.length?t:r}static mergeSet(...t){let e=this.none;for(let r of this.iterateMarksAsMarks(...t))if(e.length)for(let t=r.length-1;t>=0;--t)e=r[t].addToSet(e);else e=this.setFrom(r);return e}static setToStyle(t,e){let r=e?.ignoreMarks,s=void 0!==r?Array.isArray(r)?r:[r]:void 0,n=Object.create(null),a=null;if(t.forEach((t=>{if(!t.type.hasCss||s&&s.some(t.is,t))return;if(t.is("Script")){if(a&&a.getValue()&&!t.getValue())return;a=t}let{type:e,key:r,value:i}=t.type.getCssStyle(t);"append"===e&&"string"==typeof n[r]?n[r]+=" "+i:n[r]=i})),a&&a.getValue()){let t=n["font-size"]?Rs(n["font-size"],"pt",11):a.schema.markType("font_size").getDefaultMark().getValue();n["font-size"]=t*a.type.fontSizeRatio+"pt"}return n}static setToDOMStyle(t,e,r){_s(e,this.setToStyle(t,r))}static setFrom(t){if(!t)return this.none;if(!Array.isArray(t))return[t];if(t.length<=1)return 0===t.length?this.none:t;{let e=t.slice().sort(((t,e)=>t.type.rank-e.type.rank));for(let t=e.length-1;t>0;--t)e[t].type===e[t-1].type&&e.splice(t-1,1);return e}}static setToJSON(t,e){return 0===t.length?this.none:t.map((t=>t.toJSON(e)))}static setFromJSON(t,e){return 0===e.length?this.none:this.setFrom(e.map((e=>this.fromJSON(t,e))))}}let xn=[],gn=0;function fn(t){if("type"in t&&t.type.isLeaf)throw RangeError(`Leaf node ${t.name} could not be resolved.`)}class mn extends ln{constructor(t,e){super(t,e),this.pos=t,this.path=e,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parentOffset(){return this.pos-this.start()}get schema(){let t=(this.root.firstChild||this.root).type;if(!t)throw Error("Failed to get schema.");return t.schema}get root(){return this.node(0)}get doc(){return this.root}get parent(){return this.node()}get self(){return void 0!==this._self?this._self:this._self=this.atNodeBoundary?this.parent.maybeChild(this.index(this.depth)):null}node(t){let e=(t=this.resolveDepth(t))===this.depth+1?this.self:this.path[3*t];if(!e)throw RangeError(`No node at given depth ${t}.`);return e}index(t){t=this.resolveDepth(t);let e=this.path[3*t+1];if("number"!=typeof e)throw RangeError(`No index at given depth ${t}.`);return e}get atStart(){return this.pos===this.start()}get atEnd(){return this.pos===this.end()}get atNodeBoundary(){return 0===this.innerOffset}get innerOffset(){return this.pos-this.path[this.path.length-1]}before(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position before the top-level node.");return t===this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw RangeError("There is no position after the top-level node.");return t===this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}start(t){return 0===(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).getContentSize()}getMarks(t){let e,r=this.parent;if(!("type"in r)||!r.is("Textblock"))return yn.none;if(0===r.childCount)return r.is("MarksBlock")?r.textMarks:yn.none;if(!this.atNodeBoundary)return r.child(this.index()).marks;let s=t?.usePureNodeMarks??!1;e=this.atStart?1:this.atEnd?-1:t?.bias??-1;let n=this.index(),a=r.child(n+(e>0?0:-1));if(s)return a.marks;{let t=r.maybeChild(n+(e>0?-1:0));return yn.computeActiveMark(this.schema,a.marks,t?t.marks:r.type.getInheritedTextMarks(r))}}forEach(t,e){for(let r=this.depth+ +!!this.self;r>=0;--r){let s=this.node(r);if(s&&t.call(e,r,s))return}}findDepth(t,e=W){let r,s,n;t.startsWith("is")&&(t=t.slice(2));let a=this.depth+(e.excludeSelf||!this.self?0:1);e.reversed||"number"==typeof e.dir&&e.dir>0?(r=null!=e.startDepth?ge(e.startDepth,1,a+1):1,s=null!=e.endDepth?ge(e.endDepth+1,r,a+1):a+1,n=1):(r=null!=e.startDepth?ge(e.startDepth,0,a):a,s=null!=e.endDepth?ge(e.endDepth-1,0,r):0,n=-1);let i=e.stopAt;for(;r!==s;r+=n){let e=this.node(r);if(e&&e.type){if(i&&e.is(i))break;if(e.is(t))return r}}return NaN}findNode(t,e){let r=this.findDepth(t,e);return isNaN(r)?null:this.node(r)}findPos(t,e){let r=this.findDepth(t,e);return isNaN(r)?-1:this.before(r)}findIndex(t,e){let r=this.findDepth(t,e);return isNaN(r)?-1:this.index(r)}findData(t,e){let r=this.findDepth(t,e);return isNaN(r)?null:{depth:r,node:this.node(r),pos:this.before(r)}}exists(t,e){return!isNaN(this.findDepth(t,e))}lift(t,e){let r=this.depth,s=this.pos,n=t>0?"end":"start";for(;r>0&&s===this[n](r)&&this.node(r).is("EditableType")&&(!e||e(this,r));)--r;return r===this.depth?this:this.shrink(r,t>0)}static expandRange(t,e,r){return{$from:t.lift(-1,r),$to:e.lift(1,r)}}toStart(){return this.toSibling(0)}toEnd(){return this.toSibling(this.parent.childCount)}toSibling(t){return t===this.index()&&0===this.innerOffset?this:this.shrink(-1).extendIndex(t)}maybeShrink(t,e=!1){let r;if("number"==typeof t)r=this.resolveDepth(t);else{let e=this.findDepth(t);if(!e)return null;r=e-1}if(isNaN(r)||r<0||r>this.depth)return null;if(r===this.depth&&!e)return this;let s=this.path.slice(0,(r+1)*3);if(e){let t=this.node(r+1);s[s.length-2]+=1,s[s.length-1]+=t.nodeSize}return new this.constructor(s[s.length-1],s)}shrink(t,e=!1){let r=this.maybeShrink(t,e);if(!r)throw RangeError(`Depth matching predicate [${t}] is out of range.`);return r}extend(t){let e=this.self;if(!e)throw RangeError(`There is no node at given position ${this.pos} for extending.`);return this.constructor._resolve(this.path,e,this.pos+1,t)}extendIndex(t){let e=this.self;if(!e)throw RangeError(`There is no node at given position ${this.pos} for extending.`);return this.constructor._resolveIndex(this.path,e,this.pos+1,t)}static _resolve(t,e,r,s){return fn(e),super._resolve(t,e,r,s)}static _resolveIndex(t,e,r,s){return fn(e),super._resolveIndex(t,e,r,s)}static resolve(t,e){return this._resolve(null,t,0,e)}static resolveCached(t,e){for(let r of xn)if(r.pos===e&&r.root===t)return r;let r=xn[gn]=this.resolve(t,e);return gn=(gn+1)%6,r}static resolveIndex(t,e){return this._resolveIndex(null,t,0,e)}static resolveCommon(t,e,r){let s=this.resolve(t,e),n=this.resolve(t,r),a=s.commonDepth(n);return a?s.shrink(a-1):null}}let bn={index:0,offset:0};function _n(t,e){return bn.index=t,bn.offset=e,bn}function An(t,e){if(t.nodeSize!==e.nodeSize)throw RangeError(`Size of mapped node has changed from ${t.nodeSize} to ${e.nodeSize}.`)}function Mn(t,e,r,s){return t.is("Text")?t.text.slice(Math.max(r,e)-e,Math.min(s,e+t.nodeSize)-e):t.type.getAltText(t)}let wn=(t=class{})=>class extends t{getContent(){throw Error("getContent must be implemented")}getContentSize(){throw Error("getContentSize must be implemented")}isEmpty(){return 0===this.getContentSize()}get empty(){return this.isEmpty()}assertIndex(t){if(t<0||t>this.childCount)throw RangeError(`Index ${t} out of range for ${this.childCount} with size ${this.getContentSize()}.`)}assertOffset(t){if(t<0||t>this.getContentSize())throw RangeError(`Offset ${t} out of range for ${this.getContentSize()} with count ${this.childCount}.`)}findIndex(t,e=-1){this.assertOffset(t);let r=null;return this.forEach(((s,n,a)=>{let i=n+s.nodeSize;if(t<i)return r=t===n||e<0?_n(a,n):_n(a+1,i),!0}),this,!0),r||_n(this.childCount,this.getContentSize())}get childCount(){return this.getContent().length}get firstChild(){return this.maybeChild(0)}get lastChild(){let t=this.childCount;return t?this.maybeChild(t-1):null}maybeChild(t){return this.getContent()[t]||null}child(t){let e=this.maybeChild(t);if(!e)throw RangeError(`Index ${t} out of range for ${this.childCount} with size ${this.getContentSize()}.`);return e}childs(){return this.getContent().slice()}childBefore(t){if(0===t)return{node:null,index:0,offset:0};let{index:e,offset:r}=this.findIndex(t);if(r!==t)return{node:this.child(e),index:e,offset:r};{let t=this.child(e-1);return{node:t,index:e-1,offset:r-t.nodeSize}}}childAfter(t){let{index:e,offset:r}=this.findIndex(t);return{node:this.maybeChild(e),index:e,offset:r}}nodeAt(t){let e=(t,e)=>{let{index:r,offset:s}=t.findIndex(e);return{node:t.maybeChild(r),offset:s}},{node:r,offset:s}=e(this,t);for(;r;){if(s===t||r.type.isText)return r;t-=s+1,({node:r,offset:s}=e(r,t))}return null}indexOf(t,e=0){return this.getContent().indexOf(t,e)}index(t,e){return this.indexOf(t,e)}offsetAt(t){let e;this.assertIndex(t);let r=this.childCount;if(2*t<r){e=0;for(let r=0;r<t;++r)e+=this.child(r).nodeSize}else{e=this.getContentSize();for(let s=r-1;s>=t;--s)e-=this.child(s).nodeSize}return e}sizeBetween(t,e){let r;if([t,e]=me(t,e,this.childCount),t>=e)return 0;let s=this.childCount;if((e-t)*2<s)for(r=0;t<e;++t)r+=this.child(t).nodeSize;else{r=this.getContentSize();for(let e=0;e<t;++e)r-=this.child(e).nodeSize;for(let t=e;t<s;++t)r-=this.child(t).nodeSize}return r}doQueryChild(t,e,r){let s=!!r||void 0;this.forEach(((r,n,a)=>{if(r.type.is(e))return t.push({node:r,offset:n,index:a}),s}),this,!0)}queryChild(t,e=!1){let r=[];if(this.doQueryChild(r,t,!0),e&&!r.length)throw RangeError(`There is no child matched with \`${t}\`.`);return r[0]||null}queryChildNode(t,e){let r=this.queryChild(t,e);return r?r.node:null}queryChildOffset(t,e){let r=this.queryChild(t,e);return r?r.offset:-1}queryChildOffsetRange(t,e){let r=this.queryChild(t,e);return r?[r.offset,r.offset+r.node.nodeSize]:null}queryChildResolvedPos(t,e){let r=this.queryChild(t,e);return r?mn.resolveIndex(this,r.index):null}queryChildIndex(t,e){let r=this.queryChild(t,e);return r?r.index:-1}queryAllChild(t){let e=[];return this.doQueryChild(e,t,!1),e}queryAllChildNode(t){return this.queryAllChild(t).map((t=>t.node))}queryAllChildOffset(t){return this.queryAllChild(t).map((t=>t.offset))}queryAllChildOffsetRange(t){return this.queryAllChild(t).map((t=>[t.offset,t.offset+t.node.nodeSize]))}queryAllChildIndex(t){return this.queryAllChild(t).map((t=>t.index))}doQuery(t,e,r,s){let n=!1;r.startsWith("/")&&(n=!0,r=r.slice(1));let a=r.indexOf("/"),i=a>=0?r.slice(0,a):r,o=a>=0?r.slice(a):"";if(!i)return;let l=(r,n)=>{if(r.type.is(i)&&(o?r.doQuery(t,e+n+1,o,s):t.push({node:r,offset:e+n}),s&&t.length))return!0};n?this.forEach(l,this,!0):this.descendants(l)}query(t,e=!1){let r=[];if(this.doQuery(r,0,t,!0),e&&!r.length)throw RangeError(`There is no node matched with \`${t}\`.`);return r[0]||null}queryNode(t,e){let r=this.query(t,e);return r?r.node:null}queryOffset(t,e){let r=this.query(t,e);return r?r.offset:-1}queryOffsetRange(t,e){let r=this.query(t,e);return r?[r.offset,r.offset+r.node.nodeSize]:null}queryResolvedPos(t,e){let r=this.query(t,e);return r?mn.resolve(this,r.offset):null}queryAll(t){let e=[];return this.doQuery(e,0,t,!1),e}queryAllNode(t){return this.queryAll(t).map((t=>t.node))}queryAllOffset(t){return this.queryAll(t).map((t=>t.offset))}queryAllOffsetRange(t){return this.queryAll(t).map((t=>[t.offset,t.offset+t.node.nodeSize]))}*iterateChildren(t=0,e=this.childCount){for(let r=t,s=this.offsetAt(t);r<e;){let t=this.maybeChild(r);if(!t)return;yield{node:t,offset:s,index:r},++r,s+=t.nodeSize}}*iterateChildrenByOffset(t=0,e=this.getContentSize()){for(let{index:r,offset:s}=this.findIndex(t);s<e;){let t=this.maybeChild(r);if(!t)return;yield{node:t,offset:s,index:r},++r,s+=t.nodeSize}}forRange(t,e,r,s,n){for(let{node:a,offset:i,index:o}of this.iterateChildren(t??void 0,null!=e?e+1:void 0)){let t=r.call(s,a,i,o);if(n&&null!=t)return t}}forEach(t,e,r){for(let{node:s,offset:n,index:a}of this.iterateChildren()){let i=t.call(e,s,n,a);if(r&&null!=i)return i}}nodesInside(t,e,r,s=Object.create(null)){let n,a=s.preset;a&&("editor"===a&&(s={overrideRoot:"ContentEditable",skipInlineContent:!0,...s}),s.preset=void 0);let{start:i=0,parent:o=null,overrideRoot:l,skipOutOfRange:h,skipInlineContent:u,enableLeaving:c}=s;if(null!=l){s.overrideRoot=void 0;let n=function(t,e,r,s){let n=mn.resolveCommon(t,e,r);return n?!0===s?{node:n.self,pos:n.pos}:"string"==typeof s?n.findData(s):"number"!=typeof s?null:0===s?null:{node:n.node(s),pos:n.before(s)}:null}(this,t,e,l);if(n){let a=n.pos+1;return s.start=(s.start||0)+a,n.node.nodesInside(t-a,e-a,r,s)}}if(h){s.skipOutOfRange=void 0;let n=r,a=i+t,o=i+e;r=(t,e,r,s,i)=>{if(t.is("Text"))return n(t,e,r,s,i);{let l=i?e+1+t.getContentSize():e;if(l>=a&&l<o)return n(t,e,r,s,i)}}}for(let{node:a,offset:l,index:h}of this.iterateChildrenByOffset(t,e)){let p=i+l;if(!0===(n=r(a,p,h,o,!1)))return!0;if(!1!==n&&(!u||!a.is("Inline"))){let o=a.getContentSize();if(o){let h=l+1;if(s.start=i+h,s.parent=a,!0===(n=a.content.nodesInside(Math.max(0,t-h),Math.min(o,e-h),r,s)))return!0}}if(c&&!a.type.isLeaf&&!0===(n=r(a,p,h,o,!0)))return!0}return n}descendants(t,e){return this.nodesInside(0,this.getContentSize(),t,e)}mapNodesInside(t,e,r,s=Object.create(null)){let{start:n=0,parent:a=null,skipInlineContent:i,enableLeaving:o}=s,l=this.getContent().slice();for(let{node:h,offset:u,index:c}of this.iterateChildrenByOffset(t,e)){let p=r(h,n+u,c,a,!1);if(An(h,p),!i||!h.is("Inline")){let a=u+1;s.start=n+a,p=p.mapNodesInside(Math.max(0,t-a),Math.min(p.getContentSize(),e-a),r,s)}o&&!p.type.isLeaf&&An(h,p=r(p,n+u,c,a,!0)),l[c]=p}return l}mapDescendants(t,e){return this.mapNodesInside(0,this.getContentSize(),t,e)}textBetween(t,e,r=W){let{blockSeparator:s="",inlineSeparator:n="",endOfLine:a="\n",tabText:i="\t",prependListItem:o,forceSeparateBlock:l,keepInlineSize:h}=function(t=W){let{blockSeparator:e="",forceSeparateBlock:r=!1,keepInlineSize:s=!1}=t,{inlineSeparator:n="",endOfLine:a="\n",tabText:i="\t"}=t,o="object"==typeof t.prependListItem?t.prependListItem:t.prependListItem?W:null,l=o&&{listItemIndentText:o.listItemIndentText??"\t"};return s&&(1!==n.length&&(n=n?n[0]:" "),1!==a.length&&(a="\n"),1!==i.length&&(i="\t")),{blockSeparator:e,inlineSeparator:n,endOfLine:a,prependListItem:l,tabText:i,forceSeparateBlock:r,keepInlineSize:s}}(r),u="",c=!0,p=!0;return this.nodesInside(t,e,((r,d)=>{if(r.is("Inline")){let s=Mn(r,d,t,e);return s?("\n"!==a&&(s=s.replace("\n",a)),"\t"!==i&&(s=s.replace("\t",i))):s=h?n.repeat(r.nodeSize):n,s&&(u+=s,c=!1),!1}r.is("Textblock")&&(p?p=!1:(!c||l)&&(u+=s,c=!0),o&&d>=t&&r.is("ListBlock")&&r.type.isValidListBlock(r)&&(o.listItemIndentText&&(u+=o.listItemIndentText.repeat(r.getAttrValue("listLevel")??0)),u+=r.type.getListText(r)+"\t",c=!1))}),{skipInlineContent:!0,overrideRoot:!0}),u}textDescendants(t){return this.textBetween(0,this.getContentSize(),t)}containTextBetween(t,e,r){let{includeBlockSeparator:s,includeInlineObject:n,ignoreWhiteSpace:a}=function(t=W){return{includeBlockSeparator:t.includeBlockSeparator??!1,includeInlineObject:t.includeInlineObject??!1,ignoreWhiteSpace:t.ignoreWhiteSpace??!1}}(r),i=a?/^\s+$/:void 0,o=!1,l=!0;return this.nodesInside(t,e,((r,a)=>{if(r.is("Inline")){let s=Mn(r,a,t,e);if(s){if(!i?.test(s))return o=!0,!0}else if(n)return o=!0,!0;return!1}if(r.is("Textblock")){if(l)l=!1;else if(s)return o=!0,!0}}),{skipInlineContent:!0,overrideRoot:!0}),o}containTextDescendants(t){return this.containTextBetween(0,this.getContentSize(),t)}walkPos(t,e,r,s=W){let{start:n=0,parent:a}=s,i=Ys.create(a||this,t,-e);for(;;){let t=e>0?i:i.clone().prev();if(t.isAtEnd())return;let s=r(n+t.pos,t.node,t.index,t.parentNode),a=!1;if(!0===s)return;!1===s&&(a=!0),i.walk(e,a)}}posBetween(t,e,r,s){let n=e-t;0!==n&&this.walkPos(t,n,((t,s,a,i)=>(n>0?t>=e:t<e)||r(t,s,a,i)),s)}};class Sn extends(wn(on)){}class Cn extends(wn()){toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}nodesBetween(t,e,r,s,n){for(let a=0,i=0;i<e;a++){let o=this.content[a];if(!o)break;let l=i+o.nodeSize;if(l>t&&!1!==r(o,s+i,n,a)&&o.content.size){let n=i+1;o.nodesBetween(Math.max(0,t-n),Math.min(o.content.size,e-n),r,s+n)}i=l}}cut(t,e){if(null==e&&(e=this.size),0==t&&e==this.size)return this;let r=[],s=0;if(e>t)for(let n=0,a=0;a<e;n++){let i=this.content[n],o=a+i.nodeSize;o>t&&((a<t||o>e)&&(i=i.isText?i.cut(Math.max(0,t-a),Math.min(i.text.length,e-a)):i.cut(Math.max(0,t-a-1),Math.min(i.content.size,e-a-1))),r.push(i),s+=i.nodeSize),a=o}return new this.constructor(r,s)}cutByIndex(t,e){return t==e?this.constructor.empty:0==t&&e==this.content.length?this:new this.constructor(this.content.slice(t,e))}dropByIndex(t,e){return([t,e]=me(t,e,this.childCount),t>=e)?this:0==t&&e==this.content.length?this.constructor.empty:new this.constructor(this.content.slice(0,t).concat(this.content.slice(e,this.content.length)))}append(){let t=arguments.length;if(!t)return this;let e=this.content.slice(),r=this.size;for(let a=0;a<t;++a){var s,n;let t=arguments[a];if(!t)continue;let{content:i,size:o}=this.constructor.from(t);if(!o)continue;let l=0,h=(s=e[e.length-1],n=i[0],s&&n&&s.type.isText&&s.sameMarkup(n)?s.copyWithText(s.text+n.text):null);for(h&&(e[e.length-1]=h,l=1);l<i.length;++l)e.push(i[l]);r+=o}return new this.constructor(e,r)}prepend(){let t=arguments.length;if(!t)return this;let e=Array.prototype.slice.call(arguments,1);return e.push(this),this.constructor.from(arguments[0]).append(...e)}replaceChild(t,e){let r=this.content[t];if(r==e)return this;let s=this.content.slice(),n=this.size+e.nodeSize-r.nodeSize;return s[t]=e,new this.constructor(s,n)}static fromArray(t){if(!t.length)return this.empty;let e,r=0;for(let s=0;s<t.length;s++){let n=t[s];r+=n.nodeSize,s&&n.isText&&t[s-1].sameMarkup(n)?(e||(e=t.slice(0,s)),e[e.length-1]=n.copyWithText(e[e.length-1].text+n.text)):e&&e.push(n)}return new this(e||t,r)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(t.content[e]))return!1;return!0}findDiffStart(t,e=0){return function t(e,r,s){for(let n=0;;n++){if(n==e.childCount||n==r.childCount)return e.childCount==r.childCount?null:s;let a=e.child(n),i=r.child(n);if(a==i){s+=a.nodeSize;continue}if(!a.sameMarkup(i))return s;if(a.isText&&a.text!=i.text){let t=a.text.replace(/\s/g," "),e=i.text.replace(/\s/g," ");if(t!=e){for(let r=0;t[r]==e[r];r++)s++;return s}}if(a.content.size||i.content.size){let e=t(a.content,i.content,s+1);if(null!=e)return e}s+=a.nodeSize}}(this,t,e)}findDiffEnd(t,e=this.size,r=t.size){return function t(e,r,s,n){for(let a=e.childCount,i=r.childCount;;){if(0==a||0==i)return a==i?null:{a:s,b:n};let o=e.child(--a),l=r.child(--i),h=o.nodeSize;if(o==l){s-=h,n-=h;continue}if(!o.sameMarkup(l))return{a:s,b:n};if(o.isText&&o.text!=l.text){let t=o.text.replace(/\s/g," "),e=l.text.replace(/\s/g," ");if(t!=e){let r=0,a=Math.min(t.length,e.length);for(;r<a&&t[t.length-r-1]==e[e.length-r-1];)r++,s--,n--;return{a:s,b:n}}}if(o.content.size||l.content.size){let e=t(o.content,l.content,s-1,n-1);if(e)return e}s-=h,n-=h}}(this,t,e,r)}}function Pn(t){let e=t?.document??window.document;if(!e)throw Error("A document must be given in a non-browser environment.");return e}class Tn extends Cn{static{this.empty=new Tn(Z,0)}constructor(t,e){super(),this.content=t,this.size=null!=e?e:t.reduce(((t,e)=>t+e.nodeSize),0)}*[Symbol.iterator](){yield*this.iterateChildren()}getContent(){return this.content}getContentSize(){return this.size}mapNodesInside(t,e,r,s){return this.constructor.from(super.mapNodesInside(t,e,r,s))}map(t,e){let r=[];return this.forEach(((s,n,a)=>{r.push(t.call(e,s,n,a))})),this.constructor.from(r)}splice(t,e,...r){let s,n=0,a=[];r.forEach((t=>{t instanceof Tn?(a.push(...t.content),n+=t.size):Array.isArray(t)?(a.push(...t),n+=t.reduce(((t,e)=>t+e.nodeSize),0)):t&&(a.push(t),n+=t.nodeSize)}));let i=t+e;return 0===t?s=a:(s=this.content.slice(0,t)).push(...a),s.push(...this.content.slice(i)),this.constructor.create(s,this.size-this.sizeBetween(t,i)+n)}swap(t,e){if(0===this.getContentSize())return this;let r=this.getContent();if(t=fe(t,r.length),e=fe(e,r.length),t===e)return this;let s=r.slice(),n=s[t];return s[t]=s[e],s[e]=n,this.constructor.create(s,this.getContentSize())}move(t,e){return this.moveTo(t,ge(t+e,0,this.getContent().length-1))}moveTo(t,e){if(0===this.getContentSize())return this;let r=this.getContent(),s=r.length;if(t=ge(fe(t,s),0,s-1),e=ge(fe(e,s),0,s-1),t===e)return this;let n=r.slice(0,Math.min(t,e));return t<e?n.push(...r.slice(t+1,e+1),r[t]):n.push(r[t],...r.slice(e,t)),n.push(...r.slice(Math.max(t,e)+1)),this.constructor.create(n,this.getContentSize())}deepCopy(t){let e=this.getContent();return 0===e.length?this:this.constructor.fromJSON(e[0].type.schema,this.toJSON(t))}render(t){return this.isEmpty()?Pn(t).createDocumentFragment():this.child(0).schema.getDomRenderer().renderFragment(this,t)}toJSON(t){return this.content.map((e=>e.toJSON(t)))}toJSONString(t){let e=this.content.reduce(((e,r)=>(e&&(e+=","),e+=r.toJSONString(t))),"");return`[${e}]`}async toJSONStream(t,e){await t.write("[");let r=this.content;for(let s=0;s<r.length;++s)0!==s&&await t.write(","),await r[s].toJSONStream(t,e);await t.write("]")}static create(t,e){return t.length?new this(t,e):this.empty}static fromJSON(t,e){return e&&e.length?this.create(e.map(t.nodeFromJSON)):this.empty}static from(t){return t?t instanceof Tn?t:Array.isArray(t)?this.fromArray(t):this.create([t],t.nodeSize):this.empty}static jsonFrom(t){return t?Array.isArray(t)?t:[t]:[]}}class vn extends(wn()){static{this.empty=new vn(Tn.empty,0,0)}constructor(t,e,r,s){super(),this.content=Tn.from(t),this.openLeft=e||0,this.openRight=r||0,this.possibleParent=s||null}get size(){return this.content.size-this.openLeft-this.openRight}getContent(){return this.content.getContent()}getContentSize(){return this.content.getContentSize()}mapNodesInside(t,e,r,s=Object.create(null)){s.start=(s.start||0)-this.openLeft;let n=this.possibleParent;return n&&(s.parent=n),this.constructor.from(super.mapNodesInside(t,e,r,s),this.openLeft,this.openRight,n)}walkPos(t,e,r,s=Object.create(null)){s.start=(s.start||0)-this.openLeft,super.walkPos(t,e,r,s)}insertAt(t,e){let r=function t(e,r,s,n){let{index:a,offset:i}=e.findIndex(r);if(i===r||e.child(a).isText)return n&&!n.canReplace(a,a,s)?null:e.cut(0,r).append(s).append(e.cut(r));{let n=e.child(a),o=t(n.content,r-i-1,s,null);return o&&e.replaceChild(a,n.copy(o))}}(this.content,t+this.openLeft,e,null);return r?this.constructor.from(r,this.openLeft,this.openRight):null}removeBetween(t,e){return t===e?this:this.constructor.from(function t(e,r,s){let{index:n,offset:a}=e.findIndex(r),i=e.child(n),{index:o,offset:l}=e.findIndex(s);if(a===r||i.isText){if(l!==s&&!e.child(o).isText)throw RangeError(`Removing non-flat range [${r}, ${s}].`);return e.cut(0,r).append(e.cut(s))}if(n!==o)throw RangeError(`Removing non-flat range [${r}, ${s}].`);return e.replaceChild(n,i.copy(t(i.content,r-a-1,s-a-1)))}(this.content,t+this.openLeft,e+this.openLeft),this.openLeft,this.openRight)}toString(){return`${this.content}(${this.openLeft},${this.openRight})`}deepCopy(t){let e=this.getContent();return 0===e.length?this:this.constructor.fromJSON(e[0].type.schema,this.toJSON(t))}toJSON(t){return this.content.size?{content:this.content.toJSON(t),openLeft:this.openLeft,openRight:this.openRight}:null}static fromJSON(t,e){return e?new vn(Tn.fromJSON(t,e.content),e.openLeft,e.openRight):vn.empty}static from(t,e=0,r=0,s){return t?t instanceof vn?t:new this(Tn.from(t),e,r,s):vn.empty}static jsonFrom(t){if(!t)return{content:null,openLeft:0,openRight:0};if("openLeft"in t)return t;{let e=Tn.jsonFrom(t);return{content:e.length>0?e:null,openLeft:0,openRight:0}}}}let In=0;class kn{constructor(){this._state=[]}static registerIndex(){return In++}set(t,e){this._state[t]=e}get(t){return this._state[t]}pushToStack(t,e){let r=this._state[t];r instanceof Array||(this._state[t]=r=[]),r.push(e)}popFromStack(t){let e=this._state[t];if(!(e instanceof Array)||0===e.length)return;let r=e[e.length-1];return e.splice(e.length-1,1),r}topOfStack(t){let e=this._state[t];if(e instanceof Array&&0!==e.length)return e[e.length-1]}setRootNode(t){this.set(En,t)}getRootNode(){return this.get(En)}pushTableInfo(t){this.pushToStack(Nn,t)}popTableInfo(){return this.popFromStack(Nn)}topTableInfo(){return this.topOfStack(Nn)}setTableInfo(t,e){let r=this.topTableInfo();r&&(r[t]=e)}getTableInfo(t){let e=this.topTableInfo();return e&&e[t]}setTableNode(t){t?(this.pushTableInfo({}),this.setTableInfo(Ln,t)):this.popTableInfo()}getTableNode(){return this.getTableInfo(Ln)}setTableRowIndex(t){this.setTableInfo(jn,t)}setTableColIndex(t){this.setTableInfo(Rn,t)}getTableRowIndex(){return this.getTableInfo(jn)}getTableColIndex(){return this.getTableInfo(Rn)}setTableUpdateInfoMap(t){return this.setTableInfo(On,t)}getTableUpdateInfoMap(){return this.getTableInfo(On)}pushListMap(t){this.pushToStack(Dn,t)}popListMap(t){this.popFromStack(Dn)}getListMap(){return this.topOfStack(Dn)}getListConfigs(t){let e=this.getListMap();return e&&e[t]}}let En=kn.registerIndex(),Nn=kn.registerIndex(),Ln=kn.registerIndex(),jn=kn.registerIndex(),Rn=kn.registerIndex(),On=kn.registerIndex(),Dn=kn.registerIndex();class Fn{constructor(){this.update_maps={},this.phase_index=0,this.FROM_PARENT=this.phase_index++,this.UPDATE_START=this.phase_index++,this.UPDATE_END=this.phase_index++,this.SELF_START=this.phase_index++,this.SELF_END=this.phase_index++,this.INHERITED_START=this.phase_index++,this.INHERITED_END=this.phase_index++,this.BEFORE_CHILD=this.phase_index++,this.AFTER_CHILD=this.phase_index++}getSchemaMaps(t){return this.update_maps[t]||(this.update_maps[t]=[])}getMap(t,e){if(!(t>=0&&t<this.phase_index))throw RangeError("Given phase is invalid.");let r=this.getSchemaMaps(e);return r[t]||(r[t]=[])}createMapItem(t,e,r){if("string"!=typeof t||null!==e&&"string"!=typeof e||"function"!=typeof r)throw Error("Type of map item is error.");return{name:t,type:e,func:r}}register(t,e,r,s,n){let a=this.getMap(t,e);a.some((t=>t.name===r&&t.type===s&&t.func===n))||a.push(this.createMapItem(r,s,n))}unregister(t,e,r){let s=this.getMap(t,e);for(let t=s.length-1;t>=0;--t)s[t].name===r&&s.splice(t,1)}reorder(t,e,r){let s=this.getMap(t,e);for(let t=0,e=s.length;t<e;++t)s[t].name===r&&(s.push(...s.splice(t,1)),--t,--e)}}class Bn{constructor(t,e){this.global_state=t,this.state_map=e}runMap(t,e,r){let s=this.state_map.getMap(t,e.type.name),n=r?[e,r,this.global_state]:[e,this.global_state];r||(r=e);let a=r.getStateRank();for(let t=0;t<s.length;++t){let e=s[t];if(e.type&&!r.type.is(e.type))continue;let i=e.func.apply(null,n);void 0!==i&&i>a&&(a=i)}return a}runFromParent(t,e){t.getStateRank()<zn&&e.getStateRank()<zn||t.setMinStateRank(this.runMap(this.state_map.FROM_PARENT,t,e))}runUpdateStart(t){t.setMinStateRank(this.runMap(this.state_map.UPDATE_START,t))}runSelfStart(t){t.getStateRank()<zn||t.setMinStateRank(this.runMap(this.state_map.SELF_START,t))}runInheritedStart(t){return this.runMap(this.state_map.INHERITED_START,t)===qn}runBeforeChild(t,e){this.runMap(this.state_map.BEFORE_CHILD,t,e)}runAfterChild(t,e){this.runMap(this.state_map.AFTER_CHILD,t,e)}runInheritedEnd(t){this.runMap(this.state_map.INHERITED_END,t)}runSelfEnd(t){t.getStateRank()<zn||this.runMap(this.state_map.SELF_END,t)}runUpdateEnd(t){this.runMap(this.state_map.UPDATE_END,t)}trimNode(t,e){return t.getStateRank()>=zn&&(t=t.type.trimNode(t,e)||t),t}run(t,e,r){let s;if(!t.type.enableLocalAttrs)return;let n=r.findInherit,a=r.partialUpdate;e&&this.runFromParent(t,e),this.runUpdateStart(t),this.runSelfStart(t),n&&this.runInheritedStart(t)&&(r.findInherit=!1),a&&t.getStateRank()>=Gn&&(r.partialUpdate=!1);for(let e=0,n=t.childCount;e<n;++e){let n=t.child(e);if(this.runBeforeChild(t,n),!r.partialUpdate||n.getStateRank()>=Hn){let a=this.run(n,t,r);n!==a&&(n=a,t=t.duplicate(t.content.replaceChild(e,n))),n.getRenderRank()!==$n&&(s=Jn)}this.runAfterChild(t,n)}return n&&this.runInheritedEnd(t),this.runSelfEnd(t),this.runUpdateEnd(t),r.trimNode&&(t=this.trimNode(t,e)),t.getStateRank()>=Un&&(s=Wn),null!=s&&t.setMinRenderRank(s),t.setStateRank(Vn),r.findInherit=n,r.partialUpdate=a,t}static _update(t,e=Object.create(null)){if(!t.type.is("RootType"))throw Error("Only root node can update state.");return t.type.enableLocalAttrs?(e.partialUpdate&&(e.findInherit=!0),e.force&&t.setMinStateRank(zn),new Bn(t.getGlobalState(),t.type.schema.state_map).run(t,null,e)):t}static update(t,e=Object.create(null)){let r=this._update(t,e);if(r!==t)throw Error("Node is changed after state updating.");return r}static updateAndTrim(t,e=Object.create(null)){return e.trimNode=!0,this._update(t,e)}static shouldInherited(t){return t.getStateRank()>=zn}static markInheritNodePath(t){for(t.setMinStateRank(Gn),t=t.state.parent;t&&t.getStateRank()<Hn;)t.setStateRank(Hn),t=t.state.parent;return qn}static markInheritNodesPath(t,e=0,r=t.length){for(;e<r;++e)this.markInheritNodePath(t[e]);return qn}static maybeInherited(t,e,r,s){return this.shouldInherited(t)?this.markInheritNodesPath(e,r,s):Vn}static markResolvedPos(t,e=zn){let r;for(let s=t.length+1;s>=0;--s){let n=t.node(s);n&&(n.setMinStateRank(r?Hn:e),r=!0)}}static markIndexArr(t,e,r=zn){let s=t;for(let t=0,r=e.length;t<r;++t)s.setMinStateRank(Hn),s=s.child(e[t]);s.setMinStateRank(r)}}let Vn=Bn.STATE_NONE=0,Hn=Bn.STATE_PASSING=1,Gn=Bn.STATE_SCAN=2,zn=Bn.STATE_UPDATE=3,Un=Bn.STATE_REDRAW=4,qn=Bn.STATE_FIND=100,$n=Bn.RENDER_NONE=0,Jn=Bn.RENDER_PASSING=1,Wn=Bn.RENDER_REDRAW=2,Zn=Object.create(null),Yn=Bn.STATE_UPDATE,Xn=Bn.RENDER_NONE;class Kn extends Sn{constructor(t,e,r,s,n=Zn){super(t,e),this.content=r||Tn.empty,this.marksRaw=s||yn.none,this.type.enableLocalAttrs&&(this.node_id=Tt(),this.state_rank="state_rank"in n?n.state_rank:Yn,this.state=n.state&&jt(n.state)),this.render_rank="render_rank"in n?n.render_rank:Xn,this.type.nodeConstructor(this,n),this.type.enableLocalAttrs&&!this.state&&(this.state=this.type.createDefaultLocalAttrs(this))}get node_id(){if(!this.type.enableLocalAttrs)throw Error(`Local attrs is not enabled for type ${this.type.name}`);return this.node_id_}set node_id(t){this.node_id_=t}get localAttrs(){if(!this.type.enableLocalAttrs)throw Error(`Local attrs is not enabled for type ${this.type.name}`);return this.state}set localAttrs(t){if(!this.type.enableLocalAttrs)throw Error(`Local attrs is not enabled for type ${this.type.name}`);this.state=t}getStateRank(){return this.state_rank}setStateRank(t){this.state_rank=t}setMinStateRank(t){t>this.state_rank&&(this.state_rank=t)}setMaxStateRank(t){t<this.state_rank&&(this.state_rank=t)}getRenderRank(){return this.render_rank}setRenderRank(t){this.render_rank=t}setMinRenderRank(t){t>this.render_rank&&(this.render_rank=t)}setMaxRenderRank(t){t<this.render_rank&&(this.render_rank=t)}resetRenderRank(){this.render_rank=Bn.RENDER_NONE}get marks(){return this.type.enableLocalAttrs&&this.state.marks||this.marksRaw}set marks(t){throw Error("Cannot directly set marks.")}getMarks(t){return t?this.marksRaw:this.marks}getTextMarksJSON(t){return t?this.textMarksRawJSON:this.textMarksJSON}get textMarksRawJSON(){return this.attrs.textMarks||[]}get textMarksJSON(){return this.type.enableLocalAttrs&&this.state.text_marks_json||this.textMarksRawJSON}getTextMarks(t){return t?this.textMarksRaw:this.textMarks}get textMarksRaw(){return this.type.schema.marksFromJSON(this.textMarksRawJSON)}get textMarks(){return this.type.enableLocalAttrs&&this.state.text_marks||this.textMarksRaw}getListMarksJSON(t){return t?this.listMarksRawJSON:this.listMarksJSON}get listMarksRawJSON(){return this.getAttrValue("listMarks")||[]}get listMarksJSON(){return this.state.list_marks_json||this.listMarksRawJSON}getListMarks(t){return t?this.listMarksRaw:this.listMarks}get listMarksRaw(){return this.type.schema.marksFromJSON(this.listMarksRawJSON)}get listMarks(){return this.state.list_marks||this.listMarksRaw}eq(t){return this==t||this.sameMarkup(t,!0)&&this.content.eq(t.content)}shouldRender(t){if(this===t)return!1;if(this.type!==t.type||!yn.sameSet(this.marks,t.marks))return!0;let e=this.attrs,r=t.attrs,s=!1;return rt(this.type.attrs,((t,n)=>{if(!t.hidden)return s=!et(e[n],r[n])})),s}sameMarkup(t,e){return this==t||this.hasMarkup(t.type,t.attrs,t.getMarks(e),e)}hasMarkup(t,e,r,s){return this.type===t&&et(this.attrs,e||t.getPresetAttrValues()||Zn)&&yn.sameSet(this.getMarks(s),r||yn.none)}defaultOptions(t){return jt(t,{state:this.state,state_rank:this.state_rank,render_rank:this.render_rank})}duplicate(t,e,r){let s=new this.constructor(this.type,this.type.copyAttrs(this.attrs,e),t||this.content,r||this.marksRaw);return s.state=Object.assign(Object.create(null),this.state),s.state_rank=this.state_rank,s.render_rank=this.render_rank,s}copy(t,e,r,s=Object.create(null)){return null===r?r=this.getStateRank():void 0===r&&(r=Yn),s.state_rank=r,new this.constructor(this.type,this.type.copyAttrs(this.attrs,e,s),t,this.marks,this.defaultOptions(s))}mark(t){return(t=t||yn.none,yn.sameSet(t,this.marksRaw)&&yn.sameSet(this.marks,this.marksRaw))?this:new this.constructor(this.type,this.attrs,this.content,t,this.defaultOptions())}cut(t,e){return this.copy(this.content.cut(t,e))}slice(t,e=this.content.size){if(t==e)return vn.empty;let r=this.resolve(t),s=this.resolve(e),n=r.sameDepth(s),a=r.start(n),i=r.node(n);return new vn(i.content.cut(r.pos-a,s.pos-a),r.depth-n,s.depth-n,i)}nodesBetween(t,e,r,s=0){this.content.nodesBetween(t,e,r,s,this)}marksAt(t,e){return this.resolve(t).getMarks(e)}rangeHasMark(t,e,r){let s=!1;return this.nodesBetween(t,e,(t=>(r.isInSet(t.marks)&&(s=!0),!s))),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}contentMatchAt(t){return this.type.contentExpr.getMatchAt(this.attrs,this.content,t)}canReplace(t,e,r,s,n){return this.type.contentExpr.checkReplace(this.attrs,this.content,t,e,r,s,n)}canReplaceWith(t,e,r,s,n){return this.type.contentExpr.checkReplaceWith(this.attrs,this.content,t,e,r,s,n||yn.none)}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}defaultContentType(t){let e=this.contentMatchAt(t)?.nextElement;return e&&e.defaultType()}getDOM(){return this.dom}setDOM(t){this.dom=t}}class Qn extends Error{constructor(t=""){super(t),this.message!==t&&(this.message=t,Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error(t).stack)}get name(){return this.constructor.name||"ProseMirrorError"}}class ta extends Qn{}function ea(t,e,r){if(r.openLeft>t.depth)throw new ta("Inserted content deeper than insertion position");if(t.depth-r.openLeft!=e.depth-r.openRight)throw new ta("Inconsistent open depths");return function t(e,r,s,n){let a=e.index(n),i=e.node(n);if(a==r.index(n)&&n<e.depth-s.openLeft){let o=t(e,r,s,n+1);return i.duplicate(i.content.replaceChild(a,o))}if(!s.content.size)return ra(i,oa(e,r,n));{let{start:t,end:a}=function(t,e){let r=e.depth-t.openLeft,s=e.node(r).copy(t.content,null,null);for(let t=r-1;t>=0;--t)s=e.node(t).copy(Tn.from(s),null,null);return{start:s.resolveNoCache(t.openLeft+r,!1),end:s.resolveNoCache(s.content.size-t.openRight-r,!1)}}(s,e);return ra(i,function t(e,r,s,n,a){var i,o,l,h,u,c;let p=e.depth>a&&sa(e,r,a+1),d=n.depth>a&&sa(s,n,a+1),y=[];return(aa(null,e,a,y),p&&d&&r.index(a)==s.index(a))?(i=ia(na(p,d),t(e,r,s,n,a+1)),e.node(a),y.push(i)):(p&&(l=ia(p,oa(e,r,a+1)),e.node(a),y.push(l)),aa(r,s,a,y),d&&(u=ia(d,oa(s,n,a+1)),s.node(a),y.push(u))),aa(n,null,a,y),Tn.fromArray(y)}(e,t,a,r,n))}}(t,e,r,0)}function ra(t,e){if(!t.type.validContent(e,t.attrs))throw new ta("Invalid content for node "+t.type.name);return t.duplicate(e)}function sa(t,e,r){return na(t.node(r),e.node(r))}function na(t,e){if(!e.type.compatibleContent(t.type))throw new ta("Cannot join "+e.type.name+" onto "+t.type.name);let r=t.type.attrs,s=e.type.attrs,n=St(r,((r,n,a)=>{if(n.backward&&s[a]&&s[a].backward){let s=e.getAttrValue(a);s!==t.getAttrValue(a)&&(r||(r=Object.create(null)),r[a]=s)}return r}),null);return n?t.copy(t.content,n,null):t}function aa(t,e,r,s){var n,a,i,o,l;let h=(e||t).node(r),u=0,c=e?e.index(r):h.childCount;t&&((u=t.index(r),t.depth>r)?u++:!t.atNodeBoundary&&(n=t.nodeAfter,t.parent,s.push(n),u++));for(let t=u;t<c;++t)i=h.child(t),s.push(i);e&&e.depth==r&&!e.atNodeBoundary&&(o=e.nodeBefore,e.parent,s.push(o))}function ia(t,e){if(!t.type.validContent(e,t.attrs))throw new ta("Invalid content for node "+t.type.name);return t.copy(e,null,null)}function oa(t,e,r){let s=[];if(aa(null,t,r,s),t.depth>r){var n,a;n=ia(sa(t,e,r+1),oa(t,e,r+1)),t.node(r),s.push(n)}return aa(e,null,r,s),Tn.fromArray(s)}function la(t,e){for(let r=t.length-1;r>=0;r--)e=`${t[r].type.name}(${e})`;return e}class ha extends Kn{constructor(t,e,r,s,n){"string"==typeof r&&(r=Tn.empty),super(t,e,r,s,n)}setState(t,e){this.state[t]=e}getState(t,e){return this.state[t]??e}getContent(){return this.content.getContent()}getContentSize(){return this.content.getContentSize()}nodesInside(t,e,r,s){return s&&"number"!=typeof s||(s={start:s||0}),s.parent=this,super.nodesInside(t,e,r,s)}mapNodesInside(t,e,r,s=Object.create(null)){return s.parent=this,this.copyWithContent(super.mapNodesInside(t,e,r,s))}walkPos(t,e,r,s=Object.create(null)){return s.parent=this,super.walkPos(t,e,r,s)}get selfSize(){return this.type.isLeaf?1:2}get nodeSize(){return this.selfSize+this.content.size}resolve(t){return mn.resolveCached(this,t)}resolveNoCache(t){return mn.resolve(this,t)}resolveIndex(t){return mn.resolveIndex(this,t)}resolveCommon(t,e){return mn.resolveCommon(this,t,e)}replaceSimple(t,e,r=vn.empty){if(t===e&&0===r.size)return this;this.setMinStateRank(Bn.STATE_UPDATE);let s=ea(this.resolve(t),this.resolve(e),r);return s.setMinStateRank(Bn.STATE_UPDATE),s}replace(t,e,r){return this.replaceSimple(t,e,r)}replaceAll(t){return this.replace(0,this.getContentSize(),t)}deepCopy(t){return this.constructor.fromJSON(this.type.schema,this.toJSON(t))}copyWithAttrs(t){return this.copy(this.content,t)}copyWithContent(t){return this.copy(Tn.from(t))}duplicateWithAttrs(t){return this.duplicate(this.content,t)}duplicateWithContent(t){return this.duplicate(Tn.from(t))}render(t){return this.schema.getDomRenderer().renderNode(this,t)}toString(){let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),la(this.marks,t)}toJSON(t=Object.create(null)){let e={type:this.type.name},r=this.attrsToJSON(t);r&&(e.attrs=r);let s=this.contentToJSON(t);s&&(e.content=s);let n=this.marksToJSON(t);return n&&(e.marks=n),e}toJSONString(t=Object.create(null)){return`{${this.memberToJSONString(t)}}`}memberToJSONString(t){return`"type":${JSON.stringify(this.type.name)}`+this.attrsToJSONString(t)+this.contentToJSONString(t)+this.marksToJSONString(t)}async toJSONStream(t,e=Object.create(null)){await t.write("{"),await this.memberToJSONStream(t,e),await t.write("}")}async memberToJSONStream(t,e){await t.write(`"type":${JSON.stringify(this.type.name)}`),await this.attrsToJSONStream(t,e),await this.contentToJSONStream(t,e),await this.marksToJSONStream(t,e)}attrsToJSON(t){let e=this.type.computeJsonConversionAttrs(this,t);if(!mt(e))return e}attrsToJSONString(t){let e=this.attrsToJSON(t);return e?`,"attrs":${JSON.stringify(e)}`:""}async attrsToJSONStream(t,e){this.type.collectFileIds(t.file,this);let r=this.attrsToJSONString(e);r&&await t.write(r)}contentToJSON(t){let e=this.content;if(0!==e.size)return e.toJSON(this.type.overrideJsonConversionContentOptions(this,t))}contentToJSONString(t){let e=this.content;return 0===e.size?"":`,"content":${e.toJSONString(this.type.overrideJsonConversionContentOptions(this,t))}`}async contentToJSONStream(t,e){let r=this.content;0!==r.size&&(await t.write(',"content":'),await r.toJSONStream(t,this.type.overrideJsonConversionContentOptions(this,e)))}marksToJSON(t){let e=this.type.computeJsonConversionMarks(this,t);if(0===e.length)return;let{markFilter:r}=t;if(!r)return e.map((e=>e.toJSON(t)));{let s=[];for(let n of e){let e=n.toJSON(t);r(e)&&s.push(e)}return s}}marksToJSONString(t){let e=this.type.computeJsonConversionMarks(this,t);if(0===e.length)return"";let r=e.reduce(((e,r)=>(e&&(e+=","),e+=r.toJSONString(t))),"");return`,"marks":[${r}]`}async marksToJSONStream(t,e){let r=this.type.computeJsonConversionMarks(this,e);if(0!==r.length){await t.write(',"marks":[');for(let s=0;s<r.length;++s)0!==s&&await t.write(","),await r[s].toJSONStream(t,e);await t.write("]")}}static fromJSON(t,e){return t.nodeType(e.type).create(e.attrs,"string"==typeof e.text?e.text:Tn.fromJSON(t,e.content),e.marks&&e.marks.map(t.markFromJSON).sort(((t,e)=>t.type.rank-e.type.rank)))}}class ua extends ha{constructor(t,e,r,s,n){if(super(t,e,Tn.empty,s,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}mapNodesInside(t,e,r,s){return this}textBetween(t,e,r){return this.text.slice(t,e)}textDescendants(t){return this.text}get selfSize(){return this.text.length}get nodeSize(){return this.text.length}eq(t){return this.sameMarkup(t,!0)&&this.text===t.text}duplicate(t,e,r){return super.duplicate(t||this.text,e,r)}copyWithText(t,e){return new this.constructor(this.type,this.attrs,t,e??this.marks,this.defaultOptions())}duplicateWithText(t,e){return this.duplicate(t,null,e)}cut(t=0,e=this.text.length){return this.copyWithText(this.text.slice(t,e))}mark(t){return(t=t||yn.none,yn.sameSet(t,this.marksRaw)&&yn.sameSet(this.marks,this.marksRaw))?this:this.copyWithText(this.text,t)}toString(){return la(this.marks,JSON.stringify(this.text))}toJSON(t){return{...super.toJSON(t),text:Ir(this.text," ")}}memberToJSONString(t){return`${super.memberToJSONString(t)},"text":${JSON.stringify(Ir(this.text," "))}`}async memberToJSONStream(t,e){await super.memberToJSONStream(t,e),await t.write(`,"text":${JSON.stringify(Ir(this.text," "))}`)}}let ca=Object.create(null);class pa extends ha{constructor(t,e,r,s,n=ca){super(t,e,r,s,n),this.type.enableLocalAttrs&&(this.global_state=n.global_state||this.createGlobalState())}createGlobalState(){return new kn}getGlobalState(){return this.global_state}defaultOptions(t){return"global_state"in(t=super.defaultOptions(t))||(t.global_state=this.global_state),t}duplicate(t,e,r){let s=super.duplicate(...arguments);return s.global_state=this.getGlobalState(),s}maybeUpdateState(t){this.getStateRank()!==Bn.STATE_NONE&&this.updateState(t)}updateState(t){return Bn.update(this,t)}updateStateAndTrim(t){return Bn.updateAndTrim(this,t)}replace(t,e,r=vn.empty,s=Bn.STATE_UPDATE){if(t===e&&0===r.size)return this;let n=this.resolve(t),a=this.resolve(e),i=ea(n,a,r),o=i.resolve(t),l=i.resolve(t+r.size),h=Math.min(n.sameDepth(a),o.sameDepth(l));return da(n,a,h,s),da(o,l,h,s),i.updateStateAndTrim({partialUpdate:!0})}replaceRootAttrs(t){let e=this.copy(this.content,t);return this.setMinStateRank(Bn.STATE_UPDATE),e.updateState(),e}}function da(t,e,r,s){let n=t.node(r);if(!n||n!==e.node(r))throw Error("Given depth is not common depth.");for(let e=r-1;e>=0;--e)t.node(e).setMinStateRank(Bn.STATE_PASSING);if(n.setMinStateRank(Bn.STATE_PASSING),n.isTextblock)n.forEach((t=>{t.setMinStateRank(s)}));else{let a=t.index(r),i=e.index(r);e.before(r+1)===e.pos&&--i;for(let t=a;t<=i;++t)n.child(t).setMinStateRank(s)}}class ya extends an{constructor(t,e,r){super(t,e),this.isAttrsCopyable=sn.isAttrsCopyable(this.attrs),this.contentExpr=null,this.enableLocalAttrs&&(this.state_map=e.state_map,this.registerLocalAttrsUpdateMap())}getFreezeList(){let t=super.getFreezeList();return t.push("attrs","clearable"),t}getStateMap(){if(this.enableLocalAttrs)return this.state_map}get isBlock(){return!1}get isTextblock(){return!1}get isInline(){return!1}get isText(){return!1}get isLeaf(){return this.contentExpr.isLeaf}get selectable(){return!1}get clearable(){return null!==At(this.attrs,(t=>t.clearable),void 0)}get copyable(){return!0}get canSelectionLeave(){return!0}get draggable(){return!1}get textDraggable(){return!0}get unbreakable(){return!1}get needHeightCalculating(){return!1}get deleteWhenEmpty(){return!1}get Node(){return ha}getLeftPaddingWidth(t){return 0}getRightPaddingWidth(t){return 0}getTopPaddingHeight(t){return 0}getBottomPaddingHeight(t){return 0}getPaddingHeight(t){return this.getTopPaddingHeight(t)+this.getBottomPaddingHeight(t)}compatibleContent(t){return this==t||this.contentExpr.compatible(t.contentExpr)}isAttrsRequired(t){return sn.isAttrsRequired(this.attrs,t)}computeAttrs(t){return!t&&this.getPresetAttrValues()?this.getPresetAttrValues():sn.computeAttrs(this.attrs,t)}copyAttrs(t,e,r){let s=t;return r&&r.filter_copyable&&(s=sn.copyableAttrs(this.attrs,s)),(s=sn.copyAttrs(this.attrs,s,e,r&&r.loose))===t?s:sn.computeAttrs(this.attrs,s)}invertAttrs(t,e,r){return sn.invertAttrs(this.attrs,t,e,r&&r.loose)}nodeConstructor(t,e){}static compile(t,e){let r=Object.create(null);if(t.forEach(((t,s)=>r[t]=new s.type(t,e,s))),!r.doc)throw RangeError("Every schema needs a 'doc' type");if(!r.text)throw RangeError("Every schema needs a 'text' type");return r}get enableLocalAttrs(){return!0}static findFuncStack(t,e){let r=[];for(let s=t;s[e];s=Object.getPrototypeOf(s))s.hasOwnProperty(e)&&r.push(s[e]);return r}createDefaultLocalAttrs(t){return{cached_attrs:Object.create(null)}}registerLocalAttrsUpdateMap(){let t=ya.findFuncStack(this,"registerSelfLocalAttrsUpdateMap"),e=this.state_map;for(let r=t.length-1;r>=0;--r)t[r].call(this,e)}registerSelfLocalAttrsUpdateMap(t){t.register(t.UPDATE_END,this.name,"set_parent_node",null,function(t){t.forEach((function(e){e.type.enableLocalAttrs&&(e.state.parent=t)}))}.bind(this)),t.register(t.SELF_END,this.name,"cache_attrs",null,function(t){t.state.cached_attrs=t.attrs}.bind(this))}storeAttrToState(t,e){return t.state[e]=e in t.attrs?t.attrs[e]:this.attrs[e].getDefaultValue()}storeInheritedAttrToState(t,e){return t.state[e]=e in t.attrs?t.attrs[e]:t.state["inherited_"+e]}}class xa extends ya{constructor(t,e,r){super(t,e,r)}get printable(){return!0}get allowContentMatchInside(){return!0}getFileId(t){}collectFileIds(t,e){let r=e.type.getFileId(e);r&&(Array.isArray(r)?t.push(...r):t.push(r))}initContentExpression(t){this.contentExpr=t}validContent(t,e){return this.contentExpr.matches(e,t)}trimNode(t,e){}_create(t,e,r){return new this.Node(this,t,e,yn.setFrom(r))}create(t,e,r,s){switch(s){case"check":return this.createChecked(t,e,r);case"fill":return this.maybeCreateFilled(t,e,r);default:return this.createComputed(t,e,r)}}createFromDOM(t,e,r,s){return this.createComputed(t,e,r)}createComputed(t,e,r){return this._create(this.computeAttrs(t),Tn.from("string"==typeof e?null:e),r)}maybeCreateChecked(t,e,r){return"string"==typeof e?null:(t=this.computeAttrs(t),e=Tn.from(e),this.validContent(e,t))?this._create(t,e,r):null}createChecked(t,e,r){let s=this.maybeCreateChecked(t,e,r);if(!s)throw RangeError(`Invalid content for node ${this.name}`);return s}maybeCreateFilled(t,e,r){if("string"==typeof e)return null;if(t=this.computeAttrs(t),(e=Tn.from(e)).size){let r=this.contentExpr.start(t).fillBefore(e);if(!r)return null;e=r.append(e)}let s=this.contentExpr.getMatchAt(t,e);if(!s)return null;let n=s.fillBefore(Tn.empty,!0);return n?(e=e.append(n),this._create(t,e,r)):null}createFilled(t,e,r){let s=this.maybeCreateFilled(t,e,r);if(!s)throw RangeError(`Unable to fill a valid content for node ${this.name}`);return s}createAndFill(t,e,r){return this.maybeCreateFilled(t,e,r)}get matchDOMTag(){return null}parseDOM(t,e){let r=this.parseAttrs(t,e),s=this.parseContent(t,e);return s?[r,s]:r}parseAttrs(t,e){let{parser:r}=e,s=Object.create(null),n=Ks(t.getAttribute("data-syno-attrs")??"");return n&&(s=this.parseAttrsFromJson(s,n,e)),s=this.parseAttrsFromDom(s,t,e),r&&(s=this.parseAttrsFromParser(s,r,e)),s}parseAttrsFromJson(t,e,r){return Object.assign(t,e)}parseAttrsFromDom(t,e,r){return t}parseAttrsFromParser(t,e,r){return t}parseContent(t,e){return this.parseContentSyno(t,e)}parseContentSyno(t,e){let r,s=t.getAttribute("data-syno-content");if(!s)return null;try{r=JSON.parse(s)}catch{}let n=null;if("object"==typeof r&&r&&Array.isArray(r))try{n=this.schema.nodesFromJSON(r)}catch{}return n}renderAttrs(t,e,r){t||(t=Object.create(null)),this.renderAttrsDom(t,e,r);let s=r.target;if("editor"===s||"viewer"===s||"general"===s)t.class=[this.className,this.printable?"":"ProseMirror-non-printable",t.class];else if("clipboard"===s){let n=Xs(this.renderAttrsJson(Object.create(null),e,r));if(n&&(t["data-syno-attrs"]=n),"clipboard"===s){let s=this.renderContentSyno(e,r);if(s)try{t["data-syno-content"]=JSON.stringify(s.toJSON(r))}catch{}}}return t}renderAttrsDom(t,e,r){return t}renderAttrsJson(t,e,r){return t}renderContentSyno(t,e){return null}toDOM(t,e){return"clipboard"===e.target?this.toCopyDOM(t,e):this.toRenderDOM(t,e)}toRenderDOM(t,e){throw Error("Override me!")}toCopyDOM(t,e){return this.toRenderDOM(t,e)}queryDom(t,e,r){let s=t.matches(e)?t:t.querySelector(e);if(r&&!s)throw RangeError(`There is no child matched with \`${e}\`.`);return s}computeJsonConversionAttrs(t,e){let r=t.attrs,s=e.target;return"clipboard"===s?this.isAttrsCopyable?r:sn.copyableAttrs(this.attrs,r):"replace"===s?this.isSettableAttrs()?r:this.settableAttrValues(r)??{}:r}computeJsonConversionMarks(t,e){let{target:r,useComputedStyle:s}=e,n=t.getMarks("clipboard"!==r||!s);return n.length?"clipboard"===r?yn.filterSet(n,(t=>t.type.copyable)):"replace"===r?yn.filterSet(n,(t=>t.type.settable)):n:n}overrideJsonConversionContentOptions(t,e){return e}}class ga extends xa{static getSelfPropertyName(){return"RootType"}get unbreakable(){return!0}get Node(){return pa}get attrs(){return{schema:sn.create({default:1}),type:sn.create({default:""})}}createDefaultContentStyles(){return{}}toRenderDOM(){return["div",null,0]}}class fa extends xa{get isNonEditableType(){return!0}get allowContentMatchInside(){return!1}get unbreakable(){return!0}toRenderDOM(t,e){return["div",this.renderAttrs(null,t,e),this.is("Leaf")?null:0]}}class ma extends xa{static getSelfPropertyName(){return"EditableType"}get needHeightCalculating(){return!0}getTextRectInfo(t,e){return t.state.parent_text_rect_info||{left:0,width:0}}setStateTextRectInfo(t,e){return t.state.text_rect_info=this.getTextRectInfo(t,e),Bn.STATE_UPDATE}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_parent_text_rect_info",null,((t,e)=>{let r=e.state.text_rect_info;return r&&r!==t.state.parent_text_rect_info?(t.state.parent_text_rect_info=r,Bn.STATE_UPDATE):Bn.STATE_NONE})),t.register(t.SELF_START,this.name,"set_text_rect_info",null,this.setStateTextRectInfo.bind(this))}}class ba extends ma{get isBlock(){return!0}getBlockContentDOM(t){return t.firstChild}toDOM(t,e){let r=super.toDOM(t,e);return("editor"===e.target||"viewer"===e.target||"general"===e.target)&&(r=["div",{class:this.classPrefix+"block"},r]),r}toRenderDOM(t,e){return this.renderBlockStructure(t,e)}toCopyDOM(t,e){return this.renderBlockStructure(t,e)}renderBlockStructure(t,e){throw Error("Override me!")}}class _a extends ba{get isContainerBlock(){return!0}}class Aa extends ba{get isTextblock(){return!0}}class Ma extends ma{get isLine(){return!0}get isPseudoType(){return!0}getLocationDOM(t){return t.firstChild}getContentDOM(t){return this.getLocationDOM(t).firstChild}getIndicatorWrapperDOM(t){return this.getLocationDOM(t)}toRenderDOM(t,e){let r=this.classPrefix+"line";return["div",{class:r},["div",{class:r+"-location"},["div",{class:r+"-content"},["span",0]]]]}}class wa extends Aa{get isParagraph(){return!0}get selectable(){return!0}setStateTextRectInfo(t,e){return super.setStateTextRectInfo(t,e),Bn.STATE_REDRAW}get matchDOMTag(){let t=(t,e)=>this.parseDOM(t,e);return["p","h1","h2","h3","h4","h5","h6"].reduce(((e,r)=>(e[r]=t,e)),Object.create(null))}renderAttrsDom(t,e,r){return super.renderAttrsDom(t,e,r),Object.assign(t.inline_style||(t.inline_style=Object.create(null)),{"padding-left":"0px","padding-top":"0px","padding-right":"0px","padding-bottom":"0px","margin-left":"0px","margin-top":"0px","margin-right":"0px","margin-bottom":"0px"}),t}}class Sa extends ma{static getSelfPropertyName(){return"Inline"}get isInline(){return!0}get needHeightCalculating(){return!1}getAltText(t){return""}nodeConstructor(t,e){super.nodeConstructor(t,e),t.type.enableLocalAttrs&&t.state&&(t.state=null)}createDefaultLocalAttrs(t){let e=super.createDefaultLocalAttrs(t);return e.cached_marks=[],e}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.SELF_END,this.name,"cache_marks",null,(t=>{t.state.cached_marks=t.marksRaw})),t.register(t.FROM_PARENT,this.name,"inherit_text_marks","isMarksBlock",((t,e)=>{let r=t.state,s=e.state;return r.inherited_text_marks===s.inherited_text_marks?Bn.STATE_NONE:(r.inherited_text_marks=s.inherited_text_marks,r.inherit=!0,Bn.STATE_UPDATE)})),t.register(t.SELF_END,this.name,"clear_inherit_flag",null,(t=>{t.state.inherit=!1})),t.register(t.SELF_START,this.name,"merge_marks",null,(t=>{let e=t.state;return e.inherit||e.cached_marks!==t.marksRaw?(e.marks=yn.mergeSet(e.inherited_text_marks,t.marksRaw),Bn.STATE_REDRAW):Bn.STATE_NONE}))}trimNode(t,e){t=super.trimNode(t,e)||t;let r=yn.trimSet(t.marksRaw,t.state.inherited_text_marks);return r&&(t=t.duplicate(null,null,r)),t}}class Ca extends Sa{static getSelfPropertyName(){return"NonTextInline"}}class Pa extends Ca{static getSelfPropertyName(){return"InlineObject"}get selectable(){return!0}get draggable(){return!0}getObjectBorder(t){return{left:0,top:0,right:0,bottom:0}}renderAttrsDom(t,e,r){return super.renderAttrsDom(t,e,r),Object.assign(t.inline_style||(t.inline_style=Object.create(null)),{display:"inline-block","white-space":"nowrap"}),t}}class Ta extends Ca{static getSelfPropertyName(){return"InlineFieldText"}get selectable(){return!0}get draggable(){return!1}}class va extends Sa{static getSelfPropertyName(){return"Text"}get isText(){return!0}get Node(){return ua}_create(t,e,r){if("string"!=typeof e)throw Error("Invalid fragment content for a text node.");return new ua(this,t,e,yn.setFrom(r))}createComputed(t,e,r){return this._create(this.computeAttrs(t),"string"!=typeof e?"":e,r)}maybeCreateChecked(t,e,r){return"string"==typeof e&&e?this._create(this.computeAttrs(t),e,r):null}maybeCreateFilled(t,e,r){return"string"!=typeof e?null:this._create(this.computeAttrs(t),e||" ",r)}toDOM(t,e){let r=t.text;return"clipboard"===e.target?["span",{inline_style:{"white-space":"pre-wrap"}},r]:["span",this.renderAttrs(null,t,e),r]}}class Ia extends nn{constructor(t,e,r){super(t,r);let s=this.attrs;if(Object.defineProperty(this,"attrs",{value:s}),!s[this.valueKey])throw Error(`Attribute ${this.valueKey} is not defined in mark ${t}.`);this.rank=e}get classPrefix(){return"syno-o-doc-pm-mark-"}get copyable(){return!0}get clearable(){return!0}get settable(){return!0}get inclusiveBefore(){return!0}get supportTextblock(){return!0}get supportListBlock(){return!0}get valueKey(){return"value"}get hasCss(){return!1}get attrs(){return{}}toDOM(t,e){throw Error("Failed to override MarkType.toDOM")}get matchDOMTag(){return null}get matchDOMStyle(){return null}}class ka extends Ia{constructor(t,e,r){super(t,e,r),this.defaultMark=void 0,this.presetMark=void 0}getDefaultValue(){return this.getDefaultAttrValues()[this.valueKey]}createDefaultMark(){return this.doCreate(this.getDefaultAttrValues())}getDefaultMark(){return this.defaultMark??=this.createDefaultMark()}createPresetMark(){return this.doCreate(Object.create(null))}getPresetMark(){return this.presetMark??=this.createPresetMark()}isInSet(t){return this.findFromSet(t)}findFromSet(t){return t.find((t=>t.type===this))??null}findIndexFromSet(t){return t.findIndex((t=>t.type===this))}removeFromSet(t){let e=this.findIndexFromSet(t);if(e<0)return t;let r=t.slice();return r.splice(e,1),r}doCreate(t){return new yn(this,sn.computeAttrs(this.attrs,t))}create(t){return!t||mt(t)?this.getPresetMark():this.doCreate(t)}computeJsonConversionAttrs(t,e){return t.attrs}static compile(t,e){let r=Object.create(null),s=0;for(let[n,a]of e){if(r[n])throw RangeError(`Duplicate mark type name: ${n}`);r[n]=new a(n,s++,t)}return r}}class Ea extends ka{static getSelfPropertyName(){return"Block"}}class Na extends ka{static getSelfPropertyName(){return"Css"}get hasCss(){return!0}get cssType(){return"overwrite"}get cssName(){throw Error("Must override!")}get cssDefaultValue(){throw Error("Must override!")}getCssStyle(t){return{type:this.cssType,key:this.cssName,value:this.getCssValue(t)}}toDOM(t,e){return["span",{inline_style:{[this.cssName]:this.getCssValue(t)}}]}}class La extends Na{static getSelfPropertyName(){return"ToggleableCss"}get cssValue(){throw Error("Must override!")}get attrs(){return{value:sn.create({default:!0,empty_value:!1,normalizer:"boolean"})}}getCssValue(t){return t.getValue()?this.cssValue:this.cssDefaultValue}computeJsonConversionAttrs(t,e){return 1===this.getAttrKeys().length&&!0===t.getValue()?W:t.attrs}create(t){return t&&null!=t.is_on&&null==t.value&&(t={...t,value:t.is_on,is_on:void 0}),super.create(t)}}class ja{constructor(t,e,r){this.nodeType=t,this.elements=e,this.inlineContent=r}get isLeaf(){return 0==this.elements.length}start(t){return new Oa(this,t,0,0)}matches(t,e,r,s){return this.start(t).matchToEnd(e,r,s)}getMatchAt(t,e,r=e.childCount){return 1==this.elements.length?new Oa(this,t,0,r):this.start(t).matchFragment(e,0,r)}checkReplace(t,e,r,s,n=Tn.empty,a=0,i=n.childCount){if(1==this.elements.length){let o=this.elements[0];if(!Va(o,e.childCount-(s-r)+(i-a),t,this))return!1;for(let e=a;e<i;e++)if(!o.matches(n.child(e),t,this))return!1;return!0}let o=this.getMatchAt(t,e,r)?.matchFragment(n,a,i);return!!o&&o.matchToEnd(e,s)}checkReplaceWith(t,e,r,s,n,a,i){if(1==this.elements.length){let o=this.elements[0];return!!Va(o,e.childCount-(s-r)+1,t,this)&&o.matchesType(n,a,i,t,this)}let o=this.getMatchAt(t,e,r)?.matchType(n,a,i);return!!o&&o.matchToEnd(e,s)}compatible(t){for(let e=0;e<this.elements.length;e++){let r=this.elements[e];for(let e=0;e<t.elements.length;e++)if(t.elements[e].compatible(r))return!0}return!1}generateContent(t){return this.start(t).fillBefore(Tn.empty,!0)}static parse(t,e,r){let s=[],n=0,a=null;for(;(n+=/^\s*/.exec(e.slice(n))[0].length)!=e.length;){let r=/^(?:(\w+)|\(\s*(\w+(?:\s*\|\s*\w+)*)\s*\))/.exec(e.slice(n));if(!r)throw SyntaxError("Invalid content expression '"+e+"' at "+n);n+=r[0].length;let i=/^\[([^\]]+)\]/.exec(e.slice(n));i&&(n+=i[0].length);let o=/^<(?:(_)|\s*(\w+(?:\s+\w+)*)\s*)>/.exec(e.slice(n));o&&(n+=o[0].length);let l=/^(?:([+*?])|\{\s*(\d+|\.\w+)\s*(,\s*(\d+|\.\w+)?)?\s*\})/.exec(e.slice(n));l&&(n+=l[0].length);let h=function(t,e,r){let{nodes:s,groups:n}=t,a=[];return r.forEach((t=>{let e=s[t]?[s[t]]:n[t];if(!e)throw SyntaxError("Node type or group '"+t+"' does not exist");for(let t=0,r=e.length;t<r;++t){let r=e[t];-1==a.indexOf(r)&&a.push(r)}})),a}(t.schema,0,r[1]?[r[1]]:r[2].split(/\s*\|\s*/));for(let t=0;t<h.length;t++)if(null==a)a=h[t].isInline;else if(a!=h[t].isInline)throw SyntaxError("Mixing inline and block content in a single node");let u=i?function(t,e){let r=e.split(/\s*,\s*/),s=Object.create(null);for(let e=0;e<r.length;e++){let n=/^(\w+)=(\w+|"(?:\\.|[^\\])*"|\.\w+)$/.exec(r[e]);if(!n)throw SyntaxError("Invalid attribute syntax: "+r[e]);s[n[1]]=Fa(t,n[2])}return s}(t,i[1]):null,c=!!o&&(!!o[1]||function(t,e){let r=[];for(let s=0;s<e.length;s++){let n=t.marks[e[s]];if(n)r.push(n);else throw SyntaxError("Unknown mark type: '"+e[s]+"'")}return r}(t.schema,o[2].split(/\s+/))),{min:p,max:d}=function(t,e){let r=1,s=1;if(e&&("+"==e[1]?s=2e9:"*"==e[1]?(r=0,s=2e9):"?"==e[1]?r=0:e[2]&&(r=Fa(t,e[2]),s=e[3]?e[4]?Fa(t,e[4]):2e9:r),0==s||r>s))throw SyntaxError("Invalid repeat count in '"+e[0]+"'");return{min:r,max:s}}(t,l);if(0!=p&&h[0].isAttrsRequired(u))throw SyntaxError("Node type "+r[0]+" in type "+t.name+" is required, but has non-optional attributes");let y=new Ra(h,u,c,p,d);for(let t=s.length-1;t>=0;t--){let r=s[t];if(r.min!=r.max&&r.overlaps(y))throw SyntaxError("Possibly ambiguous overlapping adjacent content expressions in '"+e+"'");if(0!=r.min)break}s.push(y)}return new ja(t,s,!!a)}}class Ra{constructor(t,e,r,s,n){this.nodeTypes=t,this.attrs=e,this.marks=r,this.min=s,this.max=n}matchesType(t,e,r,s,n){if(-1==this.nodeTypes.indexOf(t))return!1;if(this.attrs){if(!e)return!1;for(let r in this.attrs)if((null!=e[r]?e[r]:t.attrs[r].getEmptyValue())!=Ba(this.attrs[r],s,n))return!1}if(!0===this.marks)return!0;if(!1===this.marks)return 0==r.length;for(let t=0;t<r.length;t++)if(-1==this.marks.indexOf(r[t].type))return!1;return!0}matches(t,e,r){return this.matchesType(t.type,t.attrs,t.marks,e,r)}compatible(t){for(let e=0;e<this.nodeTypes.length;e++)if(-1!=t.nodeTypes.indexOf(this.nodeTypes[e]))return!0;return!1}constrainedAttrs(t,e){if(!this.attrs)return null;let r=Object.create(null);for(let s in this.attrs)r[s]=Ba(this.attrs[s],t,e);return r}createFiller(t,e){let r=this.nodeTypes[0],s=r.computeAttrs(this.constrainedAttrs(t,e));return r.create(s,r.contentExpr.generateContent(s))}defaultType(){return this.nodeTypes[0].getPresetAttrValues()&&this.nodeTypes[0]}overlaps(t){return this.nodeTypes.some((e=>t.nodeTypes.indexOf(e)>-1))}allowsMark(t){return!0===this.marks||this.marks&&this.marks.indexOf(t)>-1}}class Oa{constructor(t,e,r,s){this.expr=t,this.attrs=e,this.index=r,this.count=s}get element(){return this.expr.elements[this.index]}get nextElement(){for(let t=this.index,e=this.count;t<this.expr.elements.length;t++){let r=this.expr.elements[t];if(this.resolveValue(r.max)>e)return r;e=0}return null}move(t,e){return new Oa(this.expr,this.attrs,t,e)}resolveValue(t){return t instanceof Da?Ba(t,this.attrs,this.expr):t}matchNode(t){return this.matchType(t.type,t.attrs,t.marks)}matchType(t,e,r=yn.none){for(let{index:s,count:n}=this;s<this.expr.elements.length;s++,n=0){let a=this.expr.elements[s];if(n<this.resolveValue(a.max)&&a.matchesType(t,e,r,this.attrs,this.expr))return n++,this.move(s,n);if(n<this.resolveValue(a.min))return null}}matchFragment(t,e=0,r=t.childCount){if(e==r)return this;let s=e,n=this.expr.elements.length;for(let{index:e,count:a}=this;e<n;e++,a=0){let n=this.expr.elements[e],i=this.resolveValue(n.max);for(;a<i;)if(n.matches(t.child(s),this.attrs,this.expr)){if(a++,++s==r)return this.move(e,a)}else break;if(a<this.resolveValue(n.min))return null}return!1}matchToEnd(t,e,r){let s=this.matchFragment(t,e,r);return s&&s.validEnd()||!1}validEnd(){for(let t=this.index,e=this.count;t<this.expr.elements.length;t++,e=0)if(e<this.resolveValue(this.expr.elements[t].min))return!1;return!0}fillBefore(t,e,r){let s=[],n=this,a=r||0,i=this.expr.elements.length;for(;;){let r=n.matchFragment(t,a);if(r&&(!e||r.validEnd()))return Tn.from(s);if(!1===r)return null;let o=n.element;if(n.count<this.resolveValue(o.min))s.push(o.createFiller(this.attrs,this.expr)),n=n.move(n.index,n.count+1);else if(n.index<i)n=n.move(n.index+1,0);else if(t.childCount>a)return null;else return Tn.from(s)}}possibleContent(){let t=[];for(let e=this.index,r=this.count;e<this.expr.elements.length;e++,r=0){let s=this.expr.elements[e],n=s.constrainedAttrs(this.attrs,this.expr);if(r<this.resolveValue(s.max))for(let e=0;e<s.nodeTypes.length;e++){let r=s.nodeTypes[e];r.isAttrsRequired(n)||t.push({type:r,attrs:n})}if(this.resolveValue(s.min)>r)break}return t}allowsMark(t){return this.element.allowsMark(t)}findWrapping(t,e){let r=Object.create(null),s={match:this,via:null},n=[s];for(;n.length;){let a=n.shift(),i=a.match;if(i.matchType(t,e)){let t=[];for(let e=a;e!=s;e=e.via)t.push({type:e.match.expr.nodeType,attrs:e.match.attrs});return t.reverse()}let o=i.possibleContent();for(let t=0;t<o.length;t++){let{type:e,attrs:l}=o[t],h=e.computeAttrs(l);!e.isLeaf&&e.allowContentMatchInside&&!(e.name in r)&&(a==s||i.matchType(e,h)?.validEnd())&&(n.push({match:e.contentExpr.start(h),via:a}),r[e.name]=!0)}}}}class Da{constructor(t){this.attr=t}}function Fa(t,e){if("."!=e.charAt(0))return JSON.parse(e);{let r=e.slice(1);if(!t.attrs[r])throw SyntaxError("Node type "+t.name+" has no attribute "+r);return new Da(r)}}function Ba(t,e,r){if(!(t instanceof Da))return t;let s=e&&e[t.attr];if(void 0!==s)return s;let n=r.nodeType.getPresetAttrValues();return n?n[t.attr]:void 0}function Va(t,e,r,s){return e>=Ba(t.min,r,s)&&e<=Ba(t.max,r,s)}let Ha=function(t,e,r){var s=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(r=r>n?n:r)<0&&(r+=n),n=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(n);++s<n;)a[s]=t[s+e];return a},Ga=function(t,e,r){var s=t.length;return r=void 0===r?s:r,!e&&r>=s?t:Ha(t,e,r)};var za=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let Ua=function(t){return za.test(t)};var qa="\ud800-\udfff",$a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ja="\ud83c[\udffb-\udfff]",Wa="[^"+qa+"]",Za="(?:\ud83c[\udde6-\uddff]){2}",Ya="[\ud800-\udbff][\udc00-\udfff]",Xa="(?:"+$a+"|"+Ja+")?",Ka="[\\ufe0e\\ufe0f]?",Qa="(?:\\u200d(?:"+[Wa,Za,Ya].join("|")+")"+Ka+Xa+")*",ti=RegExp(Ja+"(?="+Ja+")|"+("(?:"+[Wa+$a+"?",$a,Za,Ya,"["+qa+"]"].join("|"))+")"+(Ka+Xa+Qa),"g");let ei=function(t,e){for(var r=-1,s=null==t?0:t.length,n=Array(s);++r<s;)n[r]=e(t[r],r,t);return n};var ri=Array.isArray,si=1/0,ni=Qt?Qt.prototype:void 0,ai=ni?ni.toString:void 0;let ii=function t(e){if("string"==typeof e)return e;if(ri(e))return ei(e,t)+"";if(he(e))return ai?ai.call(e):"";var r=e+"";return"0"==r&&1/e==-si?"-0":r},oi=function(t){return null==t?"":ii(t)},li=function(t){var e,r=Ua(t=oi(t))?Ua(e=t)?e.match(ti)||[]:e.split(""):void 0,s=r?r[0]:t.charAt(0),n=r?Ga(r,1).join(""):t.slice(1);return s.toUpperCase()+n};class hi{compile(){let t=this.spec;this.name=t.name;let e=this.name.replace(/_[a-zA-Z]/,(t=>t[1].toUpperCase()));0>e.indexOf("_")&&(this["is"+li(e)]=!0),this.state_map=new Fn,this.nodeSpec=Pt.from(t.nodes),this.groupSpec=Pt.from(t.groups),this.marks=ka.compile(this,t.marks),this.attr_marks=ka.compile(this,t.attr_marks),this.nodes=xa.compile(this.nodeSpec,this),this.groups=this.compileGroups(this.groupSpec,this),this.parsers=t.parsers??{},this.version=this.nodes.doc.attrs.schema.getValue(),rt(this.nodes,(function(t,e){if(e in this.marks||e in this.attr_marks)throw RangeError(`Type name (${e}) can not be both a node and a mark`);t.initContentExpression(ja.parse(t,this.nodeSpec.get(e).content||"",this.nodeSpec))}),this)}compileGroups(t,e){let r=Object.create(null);return t.forEach((function(t,s){r[t]=s.map((function(r){let s=e.nodeType(r);return(s.group||(s.group=[])).push(t),s}))})),r}node(t,e,r,s,n){if("string"==typeof t)t=this.nodeType(t);else if(t instanceof xa){if(t.schema!=this)throw RangeError("Node type from different schema used ("+t.name+")")}else throw RangeError("Invalid node type: "+t);let a=t.create(e,r,s,n||"check");if(!a)throw RangeError(`Invalid content for node ${t.name}`);return a}inline(t,e,r){return this.node(t,e,null,r)}text(t,e){return this.nodeType("text").create(null,t,e)}nodeFrom(t,e){return t instanceof ha?t:Array.isArray(t)?this.node(t[0],t[1],"text"===t[0]?t[3]:this.nodesFrom(t.slice(3),e),this.marksFrom(t[2]),e):this.node(t.type,t.attrs,"text"===t.type?t.text:this.nodesFrom(t.content,e),this.marksFrom(t.marks),e)}nodesFrom(t,e){return Tn.from(t&&t.length?t.reduce(((t,r)=>(r&&t.push(this.nodeFrom(r,e)),t)),[]):null)}}function ui(t,e){return e?St(e,((e,r,s)=>{var n;if((n=r)&&"function"==typeof n&&!(n===ka||n.prototype instanceof ka)){let e=t.find((([t])=>t===s))?.[1];if(!e)throw Error(`Failed to merge mark item spec by function without base spec: ${s}`);r=r(e,t)}let a=e.findIndex((([t])=>t===s));return null==r?a>=0&&e.splice(a,1):a>=0?e[a]=[s,r]:e.push([s,r]),e}),t.slice()):t}function ci(t,...e){return t=Object.assign(Object.create(null),t),e.forEach((e=>{!function(t,e){var r,s,n,a,i,o,l;if(!e)return;let{name:h,version:u,nodes:c,groups:p,marks:d,attr_marks:y,preset:x,parsers:g}=e;r=t.name,t.name=null==h?r:"string"==typeof h?h:h(r),s=t.version,t.version=null==u?s:"number"==typeof u?u:u(s),n=t.nodes,t.nodes=c?St(c,((t,e,r)=>{"function"==typeof e&&(e=e(n[r]||null,n));let s=function(t,e){if(!e)return null;let r=St(e,((e,r,s)=>{var n;if((n=r)&&"function"==typeof n&&!(n===xa||n.prototype instanceof xa)){if(!t)throw Error(`Failed to merge ${s} in node item spec by function without base spec.`);r=r(t[s],t)}return null==r?delete e[s]:e[s]=r,e}),{...t});if(!r.type)throw Error("Invalid schema node item spec without a node type.");return r}(t[r],e);return null==s?delete t[r]:t[r]=s,t}),{...n}):n,a=t.groups,t.groups=p?St(p,((t,e,r)=>("function"==typeof e&&(e=e(a[r]||[],a)),null==e?delete t[r]:t[r]=e,t)),{...a}):a,t.marks=ui(t.marks,d),t.attr_marks=ui(t.attr_marks,y),i=t.preset,t.preset=void 0===x?i:"function"==typeof x?t=>x(t,i??null):x,o=t.parsers,t.parsers=void 0===g?o:St(g,((t,e,r)=>(null==e?delete t[r]:t[r]=e,t)),{...o}),l=t.getInitialSelection,t.getInitialSelection=e.getInitialSelection??l}(t,e)})),t}let pi=Object.create(null);function di(t,e,r,s,n,a,i){if(e.type.isTextblock)return yi.getSelectionType("text").create(t,n);"object"!=typeof i&&(i={text_only:!!i});let{text_only:o,hidden_cell:l}=i;for(let h=s-+(a<0),u=a<0?-1:e.childCount;h!==u;h+=a){let s=e.child(h);if(s.type.isLeaf){if(!o&&s.type.selectable)return yi.getSelectionType("node").create(t,n-(a<0?s.nodeSize:0))}else{let o;if(s.type.isTableCell&&!1===s.state.display){if("skip"!==l){let n=t.resolve(r-1),{node:l,offset:u,row:c,col_span:p}=n.parent.getDisplayCellData(n.index(),h);if(a<0||c!==n.index()&&p!==e.childCount){let e=n.start()+u+1;o=di(t,l,e,a<0?s.childCount:0,e+(a<0?l.content.size:0),a,i)}}}else s.type.isStyleEditor||(o=di(t,s,n-(a<0?s.nodeSize:0)+1,a<0?s.childCount:0,n+a,a,i));if(o)return o}n+=s.nodeSize*a}return null}class yi{getRange(){return[this.from,this.to]}toJSON(){return{type:this.selectionName,range:this.getRange()}}static fromJSON(t,e,r){return this.getSelectionType(e.type).create(t,e.range[0],e.range[1],r)}static registerJSONType(t,e){if(t in pi)throw RangeError(`Duplicate use of SelectionRange JSON name ${t}.`);return pi[t]=e,e.prototype.selectionName=t,e}static getSelectionType(t){return pi[t]}map(t,e,r){return this.constructor.fromJSON(t,this.constructor.mapJSON(this.toJSON(),e),r)}static mapRange(t,e){throw Error("Implement this function.")}static mapJSON(t,e){return this.getSelectionType(t.type)._mapJSON(t,e)}static _mapJSON(t,e){return{...t,range:this.mapRange(t.range,e)}}toMultiSelection(t){return tt()}static findFrom(t,e,r){if(t.parent.isTextblock)return this.getSelectionType("text").createResolved(t);e=xt(e);let s=t.doc;if(t.atNodeBoundary){let n=e<0?t.index()>0?t.parent.child(t.index()-1):null:t.self;if(n&&!n.type.canSelectionLeave)return di(s,n,t.pos-(e<0?n.nodeSize:0)+1,e<0?n.childCount:0,t.pos+e,e,r)}let n=0;for(let a=t.depth;a>=0;--a){let i=t.node(a),o=e<0?t.before(a+1):t.after(a+1),l=di(s,i,t.start(a),t.index(a)+n,o,e,r);if(l)return l;if(!1===i.type.canSelectionLeave)return null;n=e<0?0:1}}static findNear(t,e=1,r,s){let n=this.findFrom(t,e,r)||this.findFrom(t,-e,r)||(s?null:this.findAtBoundary(t.doc,e,r));if(!n)throw RangeError("Searching for selection in invalid document "+t.node(0));return n}static findRange(t,e=t){let r=t.pos===e.pos;return t=this.findNear(t,1,!0).$from,r?e=t:(e=this.findNear(e,-1,!0).$to).pos<t.pos&&(e=t),this.getSelectionType("text").createResolved(t,e)}static findAtBoundary(t,e,r){return e<0?this.findAtEnd(t,r):this.findAtStart(t,r)}static findAtStart(t,e){return di(t,t,0,0,0,1,e)}static findAtEnd(t,e){return di(t,t,0,t.childCount,t.content.size,-1,e)}}function xi(t){return!!t.isSelection}class gi extends yi{constructor(t,e){super(),this.$from=t,this.$to=e}get isSelection(){return!0}get isMultiSelection(){return!1}get from(){return this.$from.pos}get to(){return this.$to.pos}get empty(){return this.from===this.to}get root(){return this.$from.root}get doc(){return this.root}get schema(){return this.root.schema}static getSelfPropertyName(){}is(t){return Js(this.constructor,t)}textBetween(t){return this.root.textBetween(this.from,this.to,t)}containTextBetween(t){return this.root.containTextBetween(this.from,this.to,t)}getMarks(t){return this.$from.getMarks({...t,bias:this.empty?-1:1})}getExpandedRange(){return{$from:this.$from,$to:this.$to}}_eq(t,e){return t instanceof this.constructor&&this.$from[e](t.$from)&&this.$to[e](t.$to)}eq(t){return this._eq(t,"eq")}eqChanged(t){return this._eq(t,"eqChanged")}eqChangedLoose(t){return this._eq(t,"eqChangedLoose")}commonDepth(){return this.$from.commonDepth(this.$to)}commonNode(){return this.$from.commonNode(this.$to)}ensureSelection(t){return this.toMultiSelection(t)}static checkAvailable(t){throw Error("Override me.")}static create(...t){throw Error("Override me.")}static createResolved(...t){throw Error("Override me.")}}class fi extends gi{constructor(t,e=t){let r=t.pos>e.pos;super(r?e:t,r?t:e),this.$anchor=t,this.$head=e}static getSelfPropertyName(){return"Text"}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get inverted(){return this.anchor>this.head}getSidePos(t){switch(t){case"from":return this.$from;case"to":return this.$to;case"head":return this.$head;case"anchor":return this.$anchor;default:throw RangeError(`Invalid side: ${t}`)}}isSpanningTextblock(){return this.$from.before()!==this.$to.before()}collapse(t="head"){return this.empty?this:new this.constructor(this.getSidePos(t))}invert(){return this.empty?this:new this.constructor(this.$head,this.$anchor)}containPos(t,e){let r=e?.bias??0,{$from:{pos:s},$to:{pos:n}}=e?.useExpandedRange?this.getExpandedRange():this;return(t>s||t===s&&r>=0)&&(t<n||t===n&&r<=0)}getExpandedRange(){let{$from:t,$to:e}=this,r={endDepth:this.commonDepth()+1},s=t.findDepth("selectionExtendable",r),n=e.findDepth("selectionExtendable",r);return s&&(t=t.shrink(s-1)),n&&(e=e.shrink(n-1,!0)),{$from:t,$to:e}}expand(t=0){let{$from:e,$to:r}=this.getExpandedRange(),s=this.inverted,n=t<=0?s?r:e:this.$anchor,a=t>=0?s?e:r:this.$head,i=n.pos===this.anchor?n:fi.findFrom(n,s?1:-1)?.$from??n,o=a.pos===this.head?a:fi.findFrom(a,s?-1:1)?.$from??a;return i.pos===this.anchor&&o.pos===this.head?this:this.constructor.createResolved(i,o,!0)||this}_eq(t,e){return t instanceof this.constructor&&this.inverted===t.inverted&&this.to-this.from==t.to-t.from&&this.$from[e](t.$from)}getRange(){return[this.anchor,this.head]}static mapRange(t,e){return[e.map(t[0]),e.map(t[1])]}static checkAvailable(t){return!!t.parent.isTextblock}static create(t,e,r,s){return this.createResolved(null==e?null:t.resolve(e),null==r?null:t.resolve(r),s)}static createResolved(t,e,r){if(!t&&!e)throw Error("One should give at least `anchor` or `head`.");return(t||(t=e),e||(e=t),this.checkAvailable(e))?this.checkAvailable(t)?new this(t,e):r?null:new this(e):r?null:gi.findNear(e,1,{text_only:!0})}}gi.registerJSONType("text",fi);class mi extends gi{constructor(t){super(t,t.plusOne()),this.node=t.nodeAfter}static getSelfPropertyName(){return"Node"}_eq(t,e){return t instanceof this.constructor&&this.$from[e](t.$from)}containPos(t,e){let r=e?.bias??0;return(t>this.from||t===this.from&&r>=0)&&t<this.to}static mapRange(t,e){if(t[1]<0)return[e.mapNode(t[0],1),-1];{let r=e.mapNodeRange(t[0],t[1]);return[r.from,r.deleted?-1:r.to]}}static checkAvailable(t){let e=t.self;return!!(e&&e.type.selectable)}static create(t,e,r,s){let n=t.resolve(e);return this.checkAvailable(n)&&(null==r||r===e+n.self.nodeSize)?new this(n):s?null:gi.findNear(n)}static createResolved(t,e){return this.checkAvailable(t)?new this(t):e?null:gi.findNear(t)}}gi.registerJSONType("node",mi);let bi=Object.create(null);class _i{get isSelection(){return!1}get isMultiSelection(){return!0}get supportMulti(){return!1}get copyable(){return!this.selection().empty}get pastable(){return!0}get insideEditor(){return!0}get typable(){return!0}get spellCheckable(){return!0}get selectionIndex(){return this.selections.length-1}get length(){return this.selections.length}get empty(){return 0===this.length}get single(){return 1===this.length}get multi(){return this.length>1}findEditor(){if(!this.insideEditor)throw Error("Try to find editor from multi-selection which is not inside an editor.");let t=this.$from(),e=t.findDepth("ContentEditable");return isNaN(e)?null:t.shrink(e-1)}_insert(t){let e=this.index(t),r=this.selections.slice();return e%1==0?r.length>1&&r.splice(e,1):r.push(t),new this.constructor(r,this.defaultOptions)}insert(t){return this.supportMulti&&this.constructor.checkSelectionAvailable(t)?this._insert(t):t.toMultiSelection(this.defaultOptions)}$from(t){let e=this.selection(t);return e&&e.$from}$to(t){let e=this.selection(t);return e&&e.$to}from(t){let e=this.selection(t);return e&&e.from}to(t){let e=this.selection(t);return e&&e.to}index(t){for(let e=0;e<this.selections.length;++e)if(t.eq(this.selections[e]))return e;return-.5}has(t){return this.index(t)%1==0}forEach(t,e,r){for(let s=0,n=this.selections.length;s<n;++s){let n=t.call(e,this.selections[s],s);if(r&&null!=n)return n}}eqType(t){return t instanceof this.constructor}_eq(t,e){if(!this.eqType(t)||this.selections.length!==t.selections.length)return!1;for(let r=this.selections.length-1;r>=0;--r)if(!this.selections[r][e](t.selections[r]))return!1;return!0}eq(t){return this._eq(t,"eq")}eqChanged(t){return this._eq(t,"eqChanged")}eqChangedLoose(t){return this._eq(t,"eqChangedLoose")}toJSON(){let t=[];for(let e=0,r=this.selections.length;e<r;++e)t.push(this.selections[e].toJSON());return{type:this.selectionName,selections:t,options:this.defaultOptions}}static registerJSONType(t,e){if(t in bi)throw RangeError(`Duplicate use of MultiSelection JSON name ${t}.`);return bi[t]=e,e.prototype.selectionName=t,e}static getSelectionType(t){return bi[t]}toMultiSelection(){return this}toResolvedPosArray(t=0,e=this.selections.length){let r=[];for(let s=t;s<e;++s)r.push(this.selections[s].$from);return r}}function Ai(t){return!!t.isMultiSelection}class Mi extends _i{constructor(t,e){super(),this.ranges=t,this.$editor=this.insideEditor?this.findEditor():null}get rangeCount(){return this.ranges.length}get selections(){return this.ranges}get root(){return this.getRange().root}get doc(){return this.root}get schema(){return this.root.schema}get defaultOptions(){return null}static getSelfPropertyName(){}is(t){return Js(this.constructor,t)||!!this[`isMulti${t}Selection`]}getResolvedEditor(){return this.$editor}getRanges(){return this.ranges}getRange(t){return this.ranges[t??this.selectionIndex]}selection(t){return this.getRange(t)}getTypableSelection(){return this.typable?this:null}containPos(t,e){return this.getRanges().some((r=>r.containPos(t,e)))}contentToSlice(){return null}contentToJSON(t){return null}static fromJSON(t,e,r=!1){let s=[];for(let r of e.selections){let e=gi.fromJSON(t,r,!0);e&&s.push(e)}let n=this.getSelectionType(e.type);return s.length?n.fromJSONSucc(t,e,s):r?null:n.fromJSONFailed(t,e)}static fromJSONSucc(t,e,r){return this.createSelected(r,!0,e.options)||this.fromJSONFailed(t,e)}static fromJSONFailed(t,e){throw Error("Implement me.")}map(t,e,r){let s=this.constructor;return s.fromJSON(t,s.mapJSON(this.toJSON(),e),r)}static mapJSON(t,e){return this.getSelectionType(t.type)._mapJSON(t,e)}static _mapJSON(t,e){return{...t,selections:t.selections.map((t=>gi.mapJSON(t,e)))}}ensureSelection(){return this}static checkSelectionAvailable(t){return!1}static filterSelections(t,e){return t.every(this.checkSelectionAvailable,this)?t:[]}static _createSelected(t,e){return t.length>1&&!this.prototype.supportMulti&&(t=[t[t.length-1]]),e=Object.assign(Object.create(null),e),(t=this.filterSelections(t,e)).length?new this(t,e):null}static createSelected(t,e,r){let s=this._createSelected(t,r);return e||s?s:this.createAdapted(t,e,r)}static _createResolved(t,e){return null}static createResolved(t,e,r){let s=this._createResolved(t,r);return e||s?s:this.createAdapted(t,e,r)}static adaptResolvedPos(t){return null}static adaptTextSelection(t){let e=this.adaptResolvedPos(t.$head),r=this.adaptResolvedPos(t.$anchor);return e&&r?e.concat(r):e||r}static adaptNodeSelection(t){return this.adaptResolvedPos(t.$from)}static adaptSelection(t){return t.is("Text")?this.adaptTextSelection(t):this.adaptNodeSelection(t)}static adaptContent(t){return t instanceof mn?this.adaptResolvedPos(t):this.adaptSelection(t)}static _createAdapted(t,e){return null}static createAdapted(t,e,r){let s=this._createAdapted(t,r);if(e||s)return s;if(!t.length)throw Error("Given resolved pos array is empty.");let n=t[t.length-1];return n instanceof mn||(n=n.is("Text")?n.$head:n.$from),this.createFailed(n,r)}static createFailed(t,e){return"presentation"!==t.doc.type.schema.name||t.exists("ContentEditable")?gi.findNear(t).toMultiSelection(e):this.getSelectionType("slide_content").createFailed(t,e)}static fromRange(t,e){throw Error("Implement me.")}}class wi extends Mi{constructor(t,e){super(t,e),this.bias=this.ensureHeadBias(e&&e.bias)}get isMultiTextSelection(){return!0}get defaultOptions(){return{bias:this.bias}}getTypableSelection(){let t,e,r=this.getRange();if(r.empty)return this;let s=r.$from,n=r.$to;if(s.findNode("TableCell")===n.findNode("TableCell"))return this;let a=s.findDepth("Table",{dir:1});t=isNaN(a)?s:gi.findFrom(s.shrink(a-1),-1,!0).$from;let i=n.findDepth("Table",{dir:1});return e=isNaN(i)?n:gi.findFrom(n.shrink(i-1,!0),1,!0).$from,fi.createResolved(t,e).toMultiSelection()}ensureHeadBias(t){let e=this.getRange();t=null==t?e.empty||e.inverted?1:-1:t<0?-1:1;let r=e.$head;return t<0&&0!==r.parentOffset&&r.atNodeBoundary&&r.parent.child(r.index()-1).is("HardBreak")&&(t=1),t}$anchor(t){let e=this.getRange(t);return e&&e.$anchor}$head(t){let e=this.getRange(t);return e&&e.$head}anchor(t){let e=this.getRange(t);return e&&e.anchor}head(t){let e=this.getRange(t);return e&&e.head}static fromJSONFailed(t,e){return this.createFailed(t.resolve(e.selections[e.selections.length-1].range[1]),e.options)}}class Si extends wi{replaceRange(t){return t&&t!==this.getRange()&&this.constructor.createSelected([t],!0)||this}collapse(){return this.replaceRange(this.getRange().collapse())}invert(){return this.replaceRange(this.getRange().invert())}expand(t){return this.replaceRange(this.getRange().expand(t))}contentToSlice(){let t=this.getRange();if(t.empty)return vn.empty;let{$from:e,$to:r}=t.getExpandedRange(),s=e.pos;for(let t=e.depth;t>0&&e.end(t)===s;--t)++s;let n=r.pos,a=e.root.slice(s,n),i=a.possibleParent;if(i?.is("Textblock")){let t;if(e.parent===r.parent&&r.pos-e.pos!==e.parent.content.size)for(let e of(t={},i.type.listAttrsList))t[e]=null;a=vn.from(i.copy(a.content,t),a.openLeft+1,a.openRight+1)}return a}static checkSelectionAvailable(t){return t.is("Text")}static filterSelections(t,e){return super.filterSelections(t,e)}static _createSelected(t,e){return super._createSelected(t,e)}static createSelected(t,e,r){return super.createSelected(t,e,r)}static _createResolved(t,e){let r=[];for(let e of t){let t=fi.createResolved(e,e,!0);if(!t)return null;r.push(t)}return this._createSelected(r,e)}static adaptResolvedPos(t){let e=gi.findNear(t,1,void 0,!0);return e?[e]:null}static _createAdapted(t,e){return this._createSelected(t.reduce(((t,e)=>{let r=this.adaptContent(e);return r&&r.forEach((e=>{let r;(r=e instanceof mn?fi.createResolved(e,null,!0):e)&&t.push(r)})),t}),[]),e)}}Mi.registerJSONType("text",Si);let Ci=t=>class extends t{get copyable(){return!1}get pastable(){return!1}get typable(){return!1}get spellCheckable(){return!1}getTypableSelection(){return null}};class Pi extends(Ci(Si)){get isMultiHolderTextSelection(){return!0}static checkSelectionAvailable(t){return!!(super.checkSelectionAvailable(t)&&t.$from.parent.type.isHolderParagraph&&t.$to.parent.type.isHolderParagraph)}}Mi.registerJSONType("holder_text",Pi);class Ti extends Si{get isMultiCustomTextSelection(){return!0}get copyable(){return!1}get pastable(){return!1}get typable(){return!1}get spellCheckable(){return!1}getTypableSelection(){return null}static checkSelectionAvailable(t){return!!(super.checkSelectionAvailable(t)&&t.$from.parent.type.isStyleParagraph)}static filterSelections(t,e){return super.filterSelections(t,e).map((t=>t.collapse()))}}Mi.registerJSONType("style_text",Ti);class vi extends Mi{indexPos(t){for(let e=0;e<this.ranges.length;++e)if(this.ranges[e].from===t)return e;return-.5}indexNode(t){for(let e=0;e<this.ranges.length;++e)if(this.ranges[e].node===t)return e;return-.5}hasPos(t){return this.indexPos(t)%1==0}hasNode(t){return this.indexNode(t)%1==0}node(t){let e=this.getRange(t);return e&&e.node}resolvedPos(t){return this.$from(t)}pos(t){return this.from(t)}static fromJSONFailed(t,e){return this.createFailed(t.resolve(e.selections[e.selections.length-1].range[0]),e.options)}getNodePosArr(){let t=[];for(let e of this.ranges)t.push(e.from);return t}toNodeArray(t=0,e=this.ranges.length){let r=[];for(let s=t;s<e;++s)r.push(this.ranges[s].node);return r}toPosArray(t=0,e=this.ranges.length){let r=[];for(let s=t;s<e;++s)r.push(this.ranges[s].from);return r}}class Ii extends vi{get isMultiNodeSelection(){return!0}get copyable(){return this.getRange().node.type.copyable}contentToSlice(){let t=this.ranges.slice().sort(((t,e)=>t.from-e.from)).map((t=>t.node));return vn.from(t)}contentToJSON(t){let e=this.contentToSlice();return e&&e.toJSON(t)}static checkNode(t){return!0}static checkSelectionAvailable(t){return t.is("Node")&&this.checkNode(t.node)}static filterSelections(t,e){let r=super.filterSelections(t,e),s=r.length;if(s>1){let t=[],e=Object.create(null);for(let n=s-1;n>=0;--n){let s=r[n],a=s.from;e[a]||(e[a]=!0,t.push(s))}t.reverse(),r=t}return r}static _createSelected(t,e){return super._createSelected(t,e)}static _createResolved(t,e){let r=[];for(let e of t){let t=mi.createResolved(e,!0);if(!t)return null;r.push(t)}return this._createSelected(r,e)}static adaptResolvedPos(t){return t.self?[t]:null}static _createAdapted(t,e){return this._createSelected(t.reduce(((t,e)=>{let r=this.adaptContent(e);return r&&r.forEach((e=>{let r;(r=e instanceof mn?mi.createResolved(e,!0):e)&&t.push(r)})),t}),[]),e)}static create2(t,e,r,s){return this.createResolved(e.map(t.resolve,t),r,s)}}Mi.registerJSONType("node",Ii);class ki extends Ii{get isMultiInlineNodeSelection(){return!0}get typable(){return"document"===this.schema.name&&this.getRange().node.is("Shape")}getTypableSelection(){if(!this.typable)return null;let t=gi.findFrom(this.root.resolve(this.getRange().to-1),-1,!0);if(!t)return null;let e=Mi.fromRange(t);return e.is("Text")?e:null}static checkNode(t){return!!t.is("Inline")}static checkSelectionAvailable(t){return super.checkSelectionAvailable(t)&&!t.$from.parent.type.isInvisible}}Mi.registerJSONType("inline_node",ki);class Ei extends ki{get isMultiPageNumberSelection(){return!0}get copyable(){return!1}get pastable(){return!1}get typable(){return!1}get spellCheckable(){return!1}getTypableSelection(){return null}static checkTextSelection(t){return!!(t.is("Text")&&t.$from.parent.type.isPageNumberBlock&&t.$to.parent.type.isPageNumberBlock)}static checkSelectionAvailable(t){return super.checkSelectionAvailable(t)||this.checkTextSelection(t)}static checkNode(t){return t.type.isPageNumberText}static filterSelections(t,e){if(1===t.length){let e=t[0];this.checkTextSelection(e)&&(t=[mi.createResolved(e.$from.minusOne())])}return super.filterSelections(t,e)}static _createAdapted(t,e){return this.getSelectionType("text")._createAdapted.apply(this,arguments)}}Mi.registerJSONType("page_num",Ei);class Ni extends Ii{get isMultiBreakGraphSelection(){return!0}get pastable(){return!1}get spellCheckable(){return!1}get insideEditor(){return!1}get typable(){return this.getRange().node.is("Shape")}getTypableSelection(){if(!this.typable)return null;let t=gi.findFrom(this.root.resolve(this.getRange().to-1),-1,!0);if(!t)return null;let e=Mi.fromRange(t);return e.is("Text")?e:null}static checkNode(t){return!!t.is("Inline")}static checkSelectionAvailable(t){return super.checkSelectionAvailable(t)&&!!t.$from.parent.type.isInvisible}}Mi.registerJSONType("break_graph",Ni);class Li extends Ii{constructor(t,e){super(t,e),this.whole=!!(e&&e.whole)}get isMultiListSelection(){return!0}get copyable(){return!1}get pastable(){return!1}get defaultOptions(){return{whole:this.whole}}get listId(){return this.getRange().node.getAttrValue("listId")||""}get listLevel(){return this.getRange().node.getAttrValue("listLevel")||0}get listConfig(){return this.getRange().node.state.list_config}get listConfigs(){return this.getRange().node.state.list_configs}getListInfo(){let t=this.getRange().node;return{id:t.getAttrValue("listId")||"",level:t.getAttrValue("listLevel")||0,type:t.state.list_config.type,config:t.state.list_config}}getTypableSelection(){return gi.findFrom(this.getRange().$from,1)?.toMultiSelection()??null}forEachList(t,e){if(this.whole){let r=this.getResolvedEditor();if(r){let{id:s,level:n}=this.getListInfo();r.self.descendants(((r,a)=>{if(this.constructor.checkNode(r)&&r.getAttrValue("listId")===s&&r.getAttrValue("listLevel")===n)return!!t.call(e,r,a)}),{start:r.pos+1,preset:"editor"})}}else{let r=this.getRange();t.call(e,r.node,r.from)}}static checkNode(t){return t.type.is("ListBlock")&&t.type.isValidListBlock(t)}static adaptResolvedPos(t){let e=-1;return t.forEach(((t,r)=>!!r.is("ContentEditable")||(this.checkNode(r)?(e=t,!0):void 0))),e>=0?[t.shrink(e-1)]:null}}Mi.registerJSONType("list",Li);class ji extends(Ci(Li)){get isMultiHolderListSelection(){return!0}static checkSelectionAvailable(t){return!!(super.checkSelectionAvailable(t)&&t.$from.self.type.isHolderParagraph)}}Mi.registerJSONType("holder_list",ji);class Ri extends Ii{get isSpecial(){return!0}get supportMulti(){return!0}get pastable(){return!0}get insideEditor(){return!1}get typable(){return!1}getTypableSelection(){return null}static create(t,e,r){return this.createAdapted(t,e,r)}}Mi.registerJSONType("special_node",Ri);class Oi{constructor(){this.index_map=Object.create(null),this.row_idx_min=void 0,this.row_idx_max=void 0,this.col_idx_min=void 0,this.col_idx_max=void 0}getAt(t,e){if(t in this.index_map&&e in this.index_map[t])return this.index_map[t][e]}setAt(t,e,r){t in this.index_map||(this.index_map[t]=Object.create(null)),this.index_map[t][e]=r,(isNaN(this.row_idx_min)||t<this.row_idx_min)&&(this.row_idx_min=t),(isNaN(this.row_idx_max)||t>this.row_idx_max)&&(this.row_idx_max=t),(isNaN(this.col_idx_min)||e<this.col_idx_min)&&(this.col_idx_min=e),(isNaN(this.col_idx_max)||e>this.col_idx_max)&&(this.col_idx_max=e)}setRange(t,e,r,s,n){for(let a=t;a<=e;++a)for(let t=r;t<=s;++t)this.setAt(a,t,n)}flattenToArray(){let t=[];return Object.keys(this.index_map).forEach((e=>{let r=Object.keys(this.index_map[e]),s=Number(e);r.forEach((r=>{t.push({row_index:s,col_index:Number(r),data:this.index_map[e][r]})}))})),t}toPosArray(t){let e=[],r=t.findData("Table");if(!r)return e;let s=r.pos;return r.node.forEach(((t,r,n)=>{if(!(n in this.index_map))return;let a=this.index_map[n];t.forEach(((t,n,i)=>{i in a&&e.push(s+1+r+1+n)}))})),e}toResolvedPosArray(t){let e=this.toPosArray(t),r=t.doc;return e.map((t=>r.resolve(t)))}forEach(t,e,r){for(let s in this.index_map){let n=this.index_map[s];for(let a in s=Number(s),n){let i=t.call(e,s,Number(a),n[a]);if(r&&null!=i)return i}}}forEachCell(t,e,r,s){let n,a,i,o;return this.forEach((function(s,l,h){let u=t.maybeChild(s),c=u&&u.maybeChild(l);if(u&&c)return i===s?a+=u.sizeBetween(o,l):(a=(n=null==i?t.offsetAt(s):n+t.sizeBetween(i,s))+1+u.offsetAt(l),i=s),o=l,e.call(r,c,a,s,l,h)}),this,s)}getRectRowSize(){return isNaN(this.row_idx_max)?0:this.row_idx_max-this.row_idx_min+1}getRectColSize(){return isNaN(this.col_idx_max)?0:this.col_idx_max-this.col_idx_min+1}getRect(){return{top:this.row_idx_min,bottom:this.row_idx_max,left:this.col_idx_min,right:this.col_idx_max}}}class Di{constructor(t,e,r){let s=t[0].findDepth("Table");if(isNaN(s))throw RangeError("Given resolved pos does not inside table");this.$table=t[0].shrink(s-1);let n=this.getIndexRectInfo(this.$table,t,e,r);this.sel_rect=n.rect,this.anchor=n.anchor,this.head=n.head;let a=this.$table.self;this.raw_idx_store_=a.getRawIdxStoreByRect(this.sel_rect),this.display_idx_store_=a.getDisplayIdxStoreByRect(this.sel_rect),this.op_idx_store_=a.getOpIdxStoreByRect(this.sel_rect)}getRawResolvedPosArray(){return this.raw_resolved_pos_arr_||(this.raw_resolved_pos_arr_=this.raw_idx_store_.toResolvedPosArray(this.$table)),this.raw_resolved_pos_arr_}getDisplayResolvedPosArray(){return this.display_resolved_pos_arr_||(this.display_resolved_pos_arr_=this.display_idx_store_.toResolvedPosArray(this.$table)),this.display_resolved_pos_arr_}getOpResolvedPosArray(){return this.op_resolved_pos_arr_||(this.op_resolved_pos_arr_=this.op_idx_store_.toResolvedPosArray(this.$table)),this.op_resolved_pos_arr_}get mergedCellResolvedPosArray(){return this.getOpResolvedPosArray().filter((t=>{let e=t.self.state;return(e.view_colspan>1||e.view_rowspan>1)&&e.display}))}get tableDoms(){return this.$table.self.dom}get cellDoms(){return this.getDisplayResolvedPosArray().map((t=>t.self.dom))}isSquare(){let t=Object.keys(this.op_idx_store_.index_map).map((t=>Number(t)));if(!t.length)return!1;for(let e=1;e<t.length;e++)if(t[e-1]+1!==t[e])return!1;let e=Object.keys(this.op_idx_store_.index_map[t[0]]).map((t=>Number(t)));for(let t=1;t<e.length;t++)if(e[t-1]+1!==e[t])return!1;for(let r=1;r<t.length;r++){let s=Object.keys(this.op_idx_store_.index_map[t[r]]).map((t=>Number(t)));if(s.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(s[t]!==e[t])return!1}return!0}isOnlyOneVisibleCell(){return 1===this.getDisplayResolvedPosArray().length}isSingleRow(){return 1===Object.keys(this.op_idx_store_).length}isSingleCol(){let t=Object.keys(this.op_idx_store_);if(0===t.length)return!1;let e=Object.keys(this.op_idx_store_[t[0]]);if(1!==e.length)return!1;let r=e[0];for(let e=1;e<t.length;e++){let s=Object.keys(this.op_idx_store_[t[e]]);if(1!==s.length||s[0]!==r)return!1}return!0}canBeMerged(){return this.isSquare()&&!this.isOnlyOneVisibleCell()}canBeUnmerged(){return this.mergedCellResolvedPosArray.length>0}getIndexRect(t){let e;for(let r of t){let t,s,n,a;t=n=r.index(),s=a=r.index(-1),e?(e.top=Math.min(e.top,s),e.bottom=Math.max(e.bottom,a),e.left=Math.min(e.left,t),e.right=Math.max(e.right,n)):e={left:t,top:s,right:n,bottom:a}}return e}getCornerIndex(t,e,r){return{row:e?t.bottom:t.top,col:r?t.right:t.left}}getAnchorIndex(t,e,r){return this.getCornerIndex(t,e<0,r<0)}getHeadIndex(t,e,r){return this.getCornerIndex(t,e>0,r>0)}getIndexRectInfo(t,e,r,s){let n=t.self,a=this.getIndexRect(e),i=this.getAnchorIndex(a,r,s),o=this.getHeadIndex(a,r,s);return i=n.getEnsuredCellIndex(i.row,i.col),o=n.getEnsuredCellIndex(o.row,o.col),a.top=Math.min(i.row,o.row),a.bottom=Math.max(i.row,o.row),a.left=Math.min(i.col,o.col),a.right=Math.max(i.col,o.col),{rect:a,anchor:i,head:o}}}class Fi extends Ri{constructor(t,e){let r=xt(e&&e.dir_col,!1,1),s=xt(e&&e.dir_row,!1,1),n=new Di(t.map((t=>t.$from)),s,r);super(n.getRawResolvedPosArray().map((t=>mi.createResolved(t,!0))),e),this.dir_col=r,this.dir_row=s,this.helper_=n;let a=e&&e.anchor,i,{$from:o,$to:l}=this.anchorSelection();if(null!=a&&a>=o.pos&&a<l.pos){if(i=o.doc.resolve(a),!fi.checkAvailable(i)){let t=gi.findNear(i,1,!0).$from;t.pos<o.pos&&t.pos>=l.pos&&(t=gi.findNear(i,-1,!0).$from),i=t}}else i=gi.findNear(o,1,!0).$from;this.$anchor=i}get isMultiCellSelection(){return!0}get insideEditor(){return!0}get defaultOptions(){return{dir_col:this.dir_col,dir_row:this.dir_row,anchor:this.$anchor.pos}}get typable(){return!0}getTypableSelection(){let t=this.headIndex,e=this.$table;t=e.self.getDisplayCellIndex(t.row,t.col);let r=gi.findFrom(e.extendIndex([t.row,t.col]),1,!0).$from,s=gi.findFrom(e.extendIndex([t.row,t.col+1]),-1,!0).$to;return fi.createResolved(r,s).toMultiSelection()}get minRow(){return this.helper_.sel_rect.top}get maxRow(){return this.helper_.sel_rect.bottom}get minCol(){return this.helper_.sel_rect.left}get maxCol(){return this.helper_.sel_rect.right}get anchorIndex(){return this.helper_.anchor}get headIndex(){return this.helper_.head}get $table(){return this.helper_.$table}anchorSelection(){return this.ranges.find(function(t){let e=t.$from;return e.index()===this.anchorIndex.col&&e.index(-1)===this.anchorIndex.row}.bind(this))}headSelection(){return this.ranges.find(function(t){let e=t.$from;return e.index()===this.headIndex.col&&e.index(-1)===this.headIndex.row}.bind(this))}canBeMerged(){return this.helper_.canBeMerged()}canBeUnmerged(){return this.helper_.canBeUnmerged()}canDeleteRow(){return this.helper_.$table.self.getRowSize()>this.helper_.op_idx_store_.getRectRowSize()}canDeleteCol(){return this.helper_.$table.self.getColSize()>this.helper_.op_idx_store_.getRectColSize()}getRawResolvedPosArray(){return this.helper_.getRawResolvedPosArray()}getDisplayResolvedPosArray(){return this.helper_.getDisplayResolvedPosArray()}getOpResolvedPosArray(){return this.helper_.getOpResolvedPosArray()}forEachCell(t,e,r){let s=this.$table.pos+1;return this.$table.self.forEachCell(this.minRow,this.maxRow,this.minCol,this.maxCol,(function(r,n,a,i){return t.call(e,r,s+n,a,i)}),this,r)}forEachDisplayCell(t,e,r){let s=this.$table.pos+1;return this.$table.self.forEachDisplayCell(this.minRow,this.maxRow,this.minCol,this.maxCol,(function(r,n,a,i){return t.call(e,r,s+n,a,i)}),this,r)}forEachOperateCell(t,e,r){let s=this.$table.pos+1;return this.$table.self.forEachOperateCell(this.minRow,this.maxRow,this.minCol,this.maxCol,(function(r,n,a,i){return t.call(e,r,s+n,a,i)}),this,r)}contentToSlice(){let t=this.helper_.$table.self,e=this.helper_.op_idx_store_,r=e.getRect(),s=[];t.forRange(r.top,r.bottom,((n,a,i)=>{let o=[];n.forRange(r.left,r.right,((r,s,n)=>{let a;a=e.getAt(i,n)?r:t.type.schema.nodes.table_cell.createAndFill(r.attrs),o.push(a)}),this),s.push(n.copy(Tn.fromArray(o)))}),this);let n=t.attrs.colgroup.slice(r.left,r.right+1),a=t.copy(Tn.fromArray(s),{colgroup:n});return vn.from([a])}contentToJSON(){return null}static _mapJSON(t,e){if((t=super._mapJSON(t,e)).options&&null!=t.options.anchor){let r=jt(t.options);r.anchor=e.map(t.options.anchor),t.options=r}return t}static checkSelectionAvailable(t){return super.checkSelectionAvailable(t)||this.checkTextSelection(t)}static checkTextSelection(t){if(!t||!(t instanceof fi))return!1;let{$from:e,$to:r}=t,s=e.findDepth("TableCell");if(isNaN(s))return!1;let n=r.findDepth("TableCell");return!isNaN(n)&&e.node(s-2)===r.node(n-2)&&e.node(s)!==r.node(n)}static checkNode(t){return!!t.type.isTableCell}static filterSelections(t,e){if(1===t.length){let r=t[0];if(this.checkTextSelection(r)){let s=r.$anchor.shrink("TableCell"),n=r.$head.shrink("TableCell");t=[mi.createResolved(s,!0),mi.createResolved(n,!0)],e=Object.assign(e,{dir_col:n.index()>=s.index()?1:-1,dir_row:n.index(-1)>=s.index(-1)?1:-1,anchor:r.anchor})}}return t.some((t=>t.is("Text")))||(t=super.filterSelections(t,e)).length>1&&!this.checkSameTable(t)?[]:t}static checkSameTable(t){let e=t[0].$from.findData("Table");if(!e)return!1;let r=e.node,s=e.depth;return t.every((t=>t.$from.node(s)===r))}}class Bi extends Fi{getResolvedTable(){return this.$table}getCellSelectionHelper(){return this.helper_}getDisplayCellsRange(){let{top:t,bottom:e,left:r,right:s}=this.getCellSelectionHelper().display_idx_store_.getRect();return{row:[t,e],col:[r,s]}}static adaptTextSelection(t){let e=t.$from.commonDepth(t.$to);if(0===e)return null;let r=t.$from.shrink(e-1),s=r.self;if(s&&(s.type.isTable||s.type.isTableRow)){let e=this.adaptResolvedPos(t.$head),r=this.adaptResolvedPos(t.$anchor);return e&&r?e.concat(r):e||r}return this.adaptResolvedPos(r)}static adaptResolvedPos(t){let e=t.self;if(e){if("presentation"===e.type.schema.name&&(e.is("TableBox")?e=(t=t.extend(e.getTextBlockOffset()+1)).self:e.is("TableBlock")&&(e=(t=t.extend(0)).self)),e.is("Table")){let r=[];return e.forEachCell(null,null,null,null,((e,s,n,a)=>{r.push(t.extendIndex([n,a]))})),r}if(e.is("TableRow")){let r=[];return e.forEach(((e,s,n)=>{r.push(t.extendIndex([n]))})),r}}let r=-1;return t.forEach(((t,e)=>!!e.is("ContentEditable")||(e.is("TableCell")?(r=t,!0):void 0))),r>=0?[t.shrink(r-1)]:null}}Mi.registerJSONType("cell",Bi);class Vi extends Ri{forEachFloating(t,e,r){return this.forEach((function(s){let{node:n,from:a}=s,i=t.call(e,n,a);return r&&null!=i?i:n.type.isObjectGroup?n.forEachFloating((function(r,s){return t.call(e,r,a+1+s)}),this,r):i}),this,r)}forEachBox(t,e,r){return this.forEach((function(s){let{node:n,from:a}=s;return n.type.isObjectGroup?n.forEachBox((function(r,s){return t.call(e,r,a+1+s)}),this,r):t.call(e,n,a)}),this,r)}static checkNode(t){return!!t.type.isFloatingObject}static filterSelections(t,e){if((t=super.filterSelections(t,e)).length>1){if(!this.checkSameSlide(t))return[];t=this.filterSelectionsInsideGroup(t)}return t}static checkSameSlide(t){let e=t[0].$from.findData("AbstractSlide");if(!e)return!1;let r=e.pos,s=r+e.node.nodeSize;return t.every((t=>t.from>r&&t.to<s))}static filterSelectionsInsideGroup(t,e){let r,s,n=t[0].$from.findDepth("ContentContainer")+1,a=[],i=t.length;for(let e=0;e<i;++e){let i=t[e].$from,o=i.depth+1!==n;a.push(o);let l=!!o&&i.before(n);null==r?r=l:r!==l&&(s=!0)}return s?super.filterSelections(t.map(((t,e)=>a[e]?mi.createResolved(t.$from.shrink(n-1),!0):t)),e):!1===r?t:this.flattenGroupSelections(t,e)}static flattenGroupSelections(t,e){let r=[];for(let e=0,s=t.length;e<s;++e)this._flattenGroupSelections(r,t[e]);return super.filterSelections(r,e)}static _flattenGroupSelections(t,e){let r=e.node;if(r.type.isObjectGroup&&e.$from.parent.type.isObjectGroup){let s=e.$from;r.forEachBox((function(e,r,n){t.push(mi.createResolved(s.extend(r),!0))}))}else t.push(e)}static adaptResolvedPos(t){return(t=t.maybeShrink("FloatingObject"))?[t]:null}static createFailed(t,e){return this.getSelectionType("slide_content").createFailed(t,e)}}class Hi extends Vi{get isMultiFloatingSelection(){return!0}get typable(){if(this.single){let t=this.getRange().node.type;return t.isWithTextBox&&!t.isMasterHolder&&!t.isLayoutHolder}return!1}static get type(){return"floating_object"}getTypableSelection(){let t;if(!this.typable)return null;let e=this.getRange(),r=e.node;if(r.type.isTableBox){let s=r.getTextBlockData(),n=e.doc.resolve(e.from+1+s.offset+1+s.node.firstChild.getCellOffset(0,0));t=gi.findFrom(n.plusOne(),-1,!0)}else t=gi.findFrom(e.$to,-1,!0);return t?t.toMultiSelection():null}*iterateFloatings(){for(let t of this.getRanges()){let{node:e,from:r}=t;yield*function*t(e,r){if(yield{node:e,pos:r},e.is("ObjectGroup"))for(let{node:s,offset:n}of e.iterateChildren())yield*t(s,r+1+n)}(e,r)}}contentToJSON(t){return super.contentToJSON({...t,use_abs_transform:!0})}}Mi.registerJSONType("floating",Hi);class Gi extends Ri{constructor(t,e){if(super(t,e),!this.empty&&!(e&&e.skip_master_tracking)){let t=this.resolvedPos(),e=t.self,r=t.doc;if(e.type.isLayout||e.type.isSlide){let t=r.getMasterOffset(e.state.master_id);isNaN(t)||(this.active_master=mi.create(r,t))}if(e.type.isSlide){let t=r.getLayoutOffset(e.state.master_id,e.state.layout_id);isNaN(t)||(this.active_layout=mi.create(r,t))}}}get isMultiSlideSelection(){return!0}static get type(){return"slide"}get activeMasterSelection(){return this.active_master}get activeLayoutSelection(){return this.active_layout}findMasterSelection(){if("_master_sel"in this)return this._master_sel;let t=this.node();return this._master_sel=t.type.isSlide||t.type.isLayout?this.constructor.createAdapted([this.doc.resolve(this.doc.getMasterOffset(t.state.master_id))],!0):null}findLayoutSelection(){if("_layout_sel"in this)return this._layout_sel;let t=this.node();return this._layout_sel=t.type.isSlide?this.constructor.createAdapted([this.doc.resolve(this.doc.getLayoutOffset(t.state.master_id,t.state.layout_id))],!0):null}static checkNode(t){return!!t.type.isAbstractSlide}static filterSelections(t,e){if((t=super.filterSelections(t,e)).length>1){if(!this.checkSameSlideContainer(t))return[];let e=t[t.length-1];e.node.type.isMaster&&(t=[e])}return t}static checkSameSlideContainer(t){let e=t[0].$from.findData("AbstractSlideContainer");if(!e)return!1;let r=e.pos,s=r+e.node.nodeSize;return t.every((t=>t.from>r&&t.to<s))}static adaptResolvedPos(t){return t.parent.type.isAbstractSlideContainer&&!t.self?null:(t=t.maybeShrink("AbstractSlide"))?[t]:null}static createFailed(t,e){let r=t.findData("AbstractSlideContainer");if(!r)return gi.findNear(t).toMultiSelection(e);let s=r.node.childCount;if(0===s)return this.getSelectionType("slide_container").createAdapted([t],!1,e);let n=r.depth;return n>t.depth?this.findFirstSlide(t.shrink(n-1).extendIndex(0),e):t.index(n)<s?this.findNextSlide(t.shrink(n),e):this.findLastSlide(t.shrink(n-1).extendIndex(s-1),e)}static findNextSlide(t,e){return this.createResolved([t],!1,e)}static findFirstSlide(t,e){return this.createResolved([t],!1,e)}static findLastSlide(t,e){return this.createResolved([t],!1,e)}}Mi.registerJSONType("slide",Gi);let zi=sn.create({deep:{id:sn.id,slideId:sn.optional,title:sn.optional}});function Ui(t,e){return{...t,slideId:t.slideId??null,indexStarted:e,contentLength:0}}sn.createOptional({empty_value:Z,normalizer:sn.createArrayNormalizer(zi)});class qi extends Gi{constructor(t,e){super(t,e),this.bias=0>(e&&e.bias)?-1:1,this.section=null,this.initCorrespondingSection(e?.sectionId)}get isMultiSlideSeparatorSelection(){return!0}get defaultOptions(){return{bias:this.bias,sectionId:this.sectionId}}get supportMulti(){return!1}get copyable(){return!1}get separatorIndex(){return this.showIndex+.5*this.showDirection}get showIndex(){return this.resolvedPos().index()}get showDirection(){return this.section?.dir??this.bias}get sectionId(){return this.section?.id??null}eqType(t){return t.isMultiSlideSelection}initCorrespondingSection(t){var e;if(null==t||this.node().type.isMaster||this.node().type.isLayout)return;let r=function(t,e){var r,s;let n;if(0===e.length)return[];let a=e.map((t=>({...t})));r=t[0],0!==(s=a).length&&(s.some((t=>t.slideId===r))||(s[0].slideId=r));let{slideIdToSettingIndexGetter:i,isSectionEmptyChecker:o}=function(t,e){let r=function(t){let e=new Set(t);return({slideId:t})=>!(t&&e.has(t))}(t),s=new Map;return e.forEach(((t,e)=>{let n=t.slideId;if(void 0!==n){if(s.has(n)||r(t)){t.slideId=void 0;return}s.set(n,e)}})),{isSectionEmptyChecker:r,slideIdToSettingIndexGetter:t=>s.get(t)}}(t,a),l=[],h=0;t.forEach(((t,e)=>{let r=i(t);if(void 0===r){if(!n)return;++n.contentLength;return}for(let t=h;t<r;++t)if(o(a[t])){l.push(Ui(a[t],e));continue}h=Math.max(h,r),n=Ui(a[r],e),l.push(n),++n.contentLength}));for(let e=h+1;e<a.length;++e)l.push(Ui(a[e],t.length));return l}((e=this.doc).queryAll("/slide_container/slide").map((({node:t})=>t.getAttrValue("id"))),e.queryChildNode("settings",!0).getAttrValue("sections")??[]).find((e=>e.id===t));this.updateRelatedSection(r??null)}updateRelatedSection(t){if(!t){this.section&&(this.bias=this.section.dir,this.section=null);return}let e=this.getRange().$from.index(),r=t.indexStarted-e;0===r?this.section={id:t.id,dir:-1}:1===r?this.section={id:t.id,dir:1}:(this.section=null,this.bias=r>0?1:-1)}static checkNode(t){return!!(t.type.isLayout||t.type.isSlide)}static findNextSlide(t,e){return this.createResolved([t],!1,Object.assign(Object.create(null),e,{bias:-1}))}static findFirstSlide(t,e){return this.createResolved([t],!1,Object.assign(Object.create(null),e,{bias:1}))}static findLastSlide(t,e){return this.createResolved([t],!1,Object.assign(Object.create(null),e,{bias:1}))}}Mi.registerJSONType("slide_separator",qi);class $i extends Gi{get isMultiSlideContentSelection(){return!0}get supportMulti(){return!1}get copyable(){return!1}eqType(t){return t.isMultiSlideSelection}}Mi.registerJSONType("slide_content",$i);class Ji extends Ri{get isMultiSlideContainerSelection(){return!0}get supportMulti(){return!1}get copyable(){return!1}static fromJSONSucc(t,e,r){let s=r[r.length-1];return this.checkSelectionAvailable(s)&&s.node.childCount?this.getSelectionType("slide").createResolved([s.$from.extendIndex([0])],!1,e.options):super.fromJSONSucc(t,e,r)}static checkNode(t){return!!t.type.isSlideContainer}static adaptResolvedPos(t){return(t=t.maybeShrink("SlideContainer"))?[t]:null}static createFailed(t,e){return gi.findNear(t).toMultiSelection(e)}}Mi.registerJSONType("slide_container",Ji);let Wi=[Bi,ji,Pi,Ti,Ei,ki,Si,Li,Hi,Gi,Ji,Ni,Ii];function Zi(t){Array.isArray(t)&&(t=t[0]);for(let e=0;e<Wi.length;++e)if(Wi[e].checkSelectionAvailable(t))return Wi[e];return Mi}function Yi(t,e){return Zi(t).createSelected([t],!0,e)}gi.prototype.toMultiSelection=function(t){return Yi(this,t)},Mi.fromRange=function(t,e){return Yi(t,e)};class Xi{parse(t){return this._parse(t),{node:this.finish(null),custom:this.finishCustom()}}parseContext(t){this._parse(t);let e=Math.min(this.root.openDepth,this.top.depth),r=this.finish(e),s=this.sliceFrom,n=r.content.size-e,a=r.resolve(s);for(let t=a.depth;t>=0&&s<n&&s===a.end(t);--t)++s;return{slice:r.slice(s,n),custom:this.finishCustom()}}_parse(t){let e=this.controller.getBlockSelector();return e&&Array.prototype.slice.call(t.querySelectorAll(e)).forEach((function(t){let e=t.previousSibling,r=t.nextSibling;e&&(fs(e,"textblock")||fs(e,"list"))||t.parentNode.insertBefore(t.ownerDocument.createElement("p"),t),r&&(fs(r,"textblock")||fs(r,"list"))||t.parentNode.insertBefore(t.ownerDocument.createElement("p"),r)}),this),this.addAll(t,null,this.options.start,this.options.end)}addElement(t){let e=t.nodeName.toLowerCase();(!this.options.editableContent||("br"!=e||"true"===t.parentNode.getAttribute("synobr")||t.nextSibling)&&"trailing-break"!==t.getAttribute("pm-ignore"))&&(this.getCustomParserManager().add(t,this),this.parseNodeType(t,e)||(this.top.type.isTextblock&&fs(t,"block")&&this.sync(this.top.prev),this.addElementContent(t)),this.getCustomParserManager().remove(t,this))}addElementContent(t){if(fs(t,"ignored"))return;let e=fs(t,"block")?this.top:null;this.addAll(t,e),e&&this.sync(e)}addAll(t,e,r,s){let n=r||0;for(let a=r?t.childNodes[r]:t.firstChild,i=null==s?null:t.childNodes[s];a!=i;a=a.nextSibling,++n)this.addDOM(a),e&&fs(a,"block")&&this.sync(e)}findPlace(t,e,r){let s,n;for(let r=this.top;;r=r.prev){let a=r.match.findWrapping(t,e);if(a&&(!s||s.length>a.length)&&(s=a,n=r,!a.length)||r.solid)break}return!!s&&(this.sync(n),s.forEach((({type:t,attrs:e})=>{this._enter(t,t.parseAttrsFromParser(Object.assign(Object.create(null),e),this,this.options),!1,null,this.top.preserveWhitespace)})),!0)}addSucc(t,e){}open(t,e){let r=this.openLeft;return null==r&&(r=this.top.type.isTextblock&&t.isTextblock?1:0),r>0&&this.top.match.matchType(t,e)&&(r=0),this.openLeft=r,0===r||(--this.openLeft,!1)}openInsert(t,e,r,s){let n=this.insert(...arguments);return n&&(this.openLeft=0,this.addSucc(t,e)),n}insert(t,e,r,s=this.marks){if(!this.findPlace(t,e,s))return null;if(t.isText)return this.top.addText(r,s);{let n=t.maybeCreateChecked(e,r,s);return n?this.top.addNode(n):null}}openEnter(t,e,r){let s=null;return this.open(t,e)&&(s=this.enter(...arguments),!s)?null:(this.addSucc(t,e),s)}enter(t,e,r){return this.findPlace(t,e,this.marks)?this._enter(t,e,!0,null,r):null}_enter(t,e,r,s,n){let a=this.top.start(t,e,r,s,n);return a&&this.sync(a),a}leave(){this.top=this.top.prev}sync(t){for(;t&&t.isClosed();)t=t.prev;for(;;){for(let e=t;e;e=e.prev)if(e==this.top){this.top=t;return}this.leave()}}}class Ki{constructor(t=W){this.parsers=t,this.parsersList=Object.entries(t).filter((t=>!!t[1]))}getParsersList(){return this.parsersList}getParser(t){return this.parsers[t]||null}init(t,e,r){this.getParsersList().forEach((([s,n])=>{n.init&&n.init(t,e,r[s]||W)}))}add(t,e){this.getParsersList().forEach((([r,s])=>{s.add&&s.add(t,e)}))}remove(t,e){this.getParsersList().forEach((([r,s])=>{s.remove&&s.remove(t,e)}))}finish(t,e,r){return this.getParsersList().forEach((([s,n])=>{n.finish&&(t=n.finish(t,e,r))})),t}finishCustom(t){return this.getParsersList().reduce(((e,[r,s])=>(s.finishCustom&&(e[r]=s.finishCustom(t)),e)),Object.create(null))}}function Qi(t){return t instanceof ha&&t.type.isText&&/\s+$/.test(t.text)}class to{constructor(t,e,r,s,n,a,i){this.type=t,this.match=n||t.contentExpr.start(e),this.solid=r,this.content=[],this.prev=s,this.openChild=null,this.preserveWhitespace=a,this.options=i||s&&s.options,this.closed=!1}get attrs(){return this.match.attrs}isClosed(){return this.closed}assertOpened(){if(this.isClosed())throw Error("Current NodeBuilder is already closed.")}add(t,e,r,s){return t.isText?this.addText(r,s):this.addNode(t.create(e,r,s))}addText(t,e){if(!this.preserveWhitespace){t=t.replace(/\s+/g," ");let e=/^\s/.exec(t);if(e){let r=this.content[this.content.length-1];(!r||Qi(r))&&(t=t.slice(e[0].length))}}return t?this.addNode(this.type.schema.text(t,e)):null}addNode(t){this.assertOpened();let e=this.match.matchNode(t);return(!e&&(t=function(t,e){let r=t.marks,s=r.length;return 0===s||(r=r.filter((t=>e.allowsMark(t.type)))).length===s?null:t.mark(r)}(t,this.match))&&(e=this.match.matchNode(t)),e)?(this.closeChild(),this.content.push(t),this.match=e,t):null}start(t,e,r,s,n){this.assertOpened();let a=this.match.matchType(t,e);return a?(this.closeChild(),this.match=a,this.openChild=new to(t,e,r,this,s,n,this.options)):null}closeChild(t){let e=this.openChild;e&&(this.openChild=null,e.close(t&&t-1),this.content.push(e))}close(t){this.isClosed()||(this.closed=!0,this.closeChild(t))}finish(t){this.close(t);let e=t&&t-1,r=this.content.map((t=>(t instanceof to&&(t=t.finish(e)),t)));if(this.content=null,!this.preserveWhitespace){let t=r.length-1,e=r[t];e&&Qi(e)&&(r[t]=e.copyWithText(e.text.trimEnd()))}return r=Tn.from(r),t||(r=r.append(this.match.fillBefore(Tn.empty,!0))),this.type.createFromDOM(this.match.attrs,r,null,this.options)}get depth(){let t=0;for(let e=this.prev;e;e=e.prev)t++;return t}get openDepth(){let t=0;for(let e=this.openChild;e;e=e.openChild)t++;return t}}class eo extends Xi{constructor(t,e,r=Object.create(null)){super(),this.controller=t,this.options=r,this.schema=t.schema,this.customParser=new Ki({...this.schema.createCustomParsers(),...r.parsers}),this.breakTextblockWithBr=r.breakTextblockWithBr??!1,this.marks=r.marks||yn.none,this.blockMarks=r.blockMarks||yn.none,({top:this.top,root:this.root,sliceFrom:this.sliceFrom,openLeft:this.openLeft}=this.initNodeBuilder(e)),r.state=r.parser=this,r.target=r.target||"clipboard",this.getCustomParserManager().init(this,e instanceof mn?e:null,r.parserOptions||W)}initNodeBuilder(t){return t instanceof mn?this.initFromResolvedPos(t):t instanceof ha?this.initFromNode(t):this.initFromNodeType(t||this.schema.nodeType("doc"))}initFromNodeType(t,e){let{options:r}=this,s=new to(t,e||null,!0,null,null,r.preserveWhitespace,r);return{root:s,top:s,sliceFrom:0,openLeft:s.type.is("RootType")?0:r.openLeft}}initFromNode(t){return this.initFromNodeType(t.type,t.attrs)}initFromResolvedPos(t){let{options:e}=this,r=!!e.preserveWhitespace,s=t.depth,n=0,a=null,i=null;for(let o=0;o<=s;++o){let s=t.node(o),l=s.contentMatchAt(t.index(o));i=i?i.start(s.type,s.attrs,s.type.unbreakable,l,r):new to(s.type,s.attrs,!0,null,l,r,e),(!a||s.type.unbreakable)&&(a=i,n=o)}if(!a||!i)throw Error("No valid root NodeBuilder.");return{root:a,top:i,sliceFrom:s-n,openLeft:a.type.is("RootType")?0:e.openLeft}}getCustomParserManager(){return this.customParser}getCustomParser(t){return this.getCustomParserManager().getParser(t)}getParser(t){return this.getCustomParser(t)}parseNodeType(t){if(this.breakTextblockWithBr&&"br"===t.nodeName.toLowerCase()){let t,e=this.top;return e.type.is("Textblock")?(t={type:e.type,attrs:e.type.computeCopyableAttrValues(e.attrs),content:null},this.sync(e.prev)):t={type:this.schema.getDefaultTextblockType(),attrs:null,content:null},this.openEnter(t.type,t.attrs,this.top.preserveWhitespace),!0}{let e=this.controller.matchNode(t,this.options);if(!e)return!1;let{type:r,attrs:s,content:n}=e;if(n||r.isLeaf)this.openInsert(r,s,n);else{let e=this.openEnter(r,s,this.top.preserveWhitespace);this.addAll(t,e),e&&this.sync(e.prev)}return!0}}parseMarks(t){let e=this.controller.matchMarks(t,this.options);this.marks=yn.mergeSet(this.marks,e)}parseBlockMarks(t){let e=this.controller.matchBlockMarks(t,this.options);this.blockMarks=yn.mergeSet(this.blockMarks,e)}finish(t){return this.getCustomParserManager().finish(this.root.finish(t),this.sliceFrom,this)}finishCustom(){return this.getCustomParserManager().finishCustom(this)}addDOM(t){if(us(t))this.addText(t);else if(hs(t)){let e=t.getAttribute("pm-ignore");if(e)"self"===e&&this.addElementContent(t);else{let e=this.marks,r=this.blockMarks;this.parseMarks(t),this.parseBlockMarks(t),this.addElement(t),this.blockMarks=r,this.marks=e}}}addText(t){var e,r;let s=Ir(t.data.replace(/\t/g,"    ").replace((r="newLine",Object.prototype.hasOwnProperty.call(Se,r)?Se[r]:void 0)," "));!s||!this.top.type.isTextblock&&yr(s,"asciiWhitespace")||this.openInsert(this.schema.nodeType("text"),null,s)}addMarks(t){this.marks=yn.mergeSet(this.marks,t)}getMarks(){return this.marks}getMark(t,e){let r=this.schema.maybeMarkType(t)??this.schema.maybeAttrMarkType(t);if(!r)return null;let s=r.is("Block")?this.blockMarks:this.marks;if(!s.length)return null;let n=r.findFromSet(s);if(!n)return null;if(e){let t=r.removeFromSet(s);r.is("Block")?this.blockMarks=t:this.marks=t}return n}getMarkValue(t,e){let r=this.getMark(t,e);return r?r.getValue():null}}function ro(t,e){let r=e.matchDOMTag;r&&rt(r,((r,s)=>{t.push({type:e,selector:s,value:r})}))}function so(t,e){let r=e.matchDOMStyle;r&&rt(r,((r,s)=>{t.push({type:e,style:s,value:r})}))}class no{constructor(t){this.schema=t,this.schemaMatchSpec=function(t){let e=[],r=[],s=[],n=[],a=[],i="",o=t.nodes;for(let t in o){let r=o[t],s=e.length;ro(e,r);let n=e.length;if(s!==n){let t=r.group;if(t&&(t.indexOf("block")>=0||t.indexOf("first_level_block")>=0)&&0>t.indexOf("basic_block"))for(let t=s;t<n;++t)i&&(i+=", "),i+=e[t].selector}}let l=t.marks;for(let t in l){let e=l[t];ro(r,e),so(s,e)}let h=t.attr_marks;for(let t in h){let e=h[t];ro(n,e),so(a,e)}return{nodeDomMatches:e,markDomMatches:r,markCssMatches:s,blockMarkDomMatches:n,blockMarkCssMatches:a,blockSelector:i}}(t)}parse(t,e,r){return new eo(this,e||null,r).parse(t)}parseContext(t,e,r){return new eo(this,e,r).parseContext(t)}getBlockSelector(){return this.schemaMatchSpec.blockSelector}matchNodeDom(t,e,r){let s,n;if(!e.matches(t.selector))return null;let a=null,i=t.value;if(i instanceof Function){let t=i(e,r);if(!1===t)return null;a=t}else a=i;return Array.isArray(a)?[s,n]=a:(s=a,n=null),{type:t.type,attrs:s,content:n}}matchNode(t,e){let r=this.schemaMatchSpec.nodeDomMatches;for(let s=0,n=r.length;s<n;++s){let n=this.matchNodeDom(r[s],t,e);if(n)return n}return null}matchMarkStyle(t,e,r){let s=e.style.getPropertyValue(t.style);if(!s)return null;let n=null,a=t.value;if(a instanceof Function){let t=a(s,e,r);if(!1===t)return null;n=t}else n=a;return t.type.create(n)}matchMarkDom(t,e,r){if(!e.matches(t.selector))return null;let s=null,n=t.value;if(n instanceof Function){let t=n(e,r);if(!1===t)return null;s=t}else s=n;return t.type.create(s)}_matchMarks(t,e,r,s){let n=[];for(let e=0,a=t.length;e<a;++e){let a=this.matchMarkDom(t[e],r,s);a&&n.push(a)}for(let t=0,a=e.length;t<a;++t){let a=this.matchMarkStyle(e[t],r,s);a&&n.push(a)}return n}matchMarks(t,e){let r=this.schemaMatchSpec;return this._matchMarks(r.markDomMatches,r.markCssMatches,t,e)}matchBlockMarks(t,e){let r=this.schemaMatchSpec;return this._matchMarks(r.blockMarkDomMatches,r.blockMarkCssMatches,t,e)}}class ao{constructor(t=Object.create(null)){null==t.target&&(t.target="general"),this.options=t,this.target=t.target,this.doc=Pn(t),this.overrideChildContainer=t.overrideChildContainer,this.filterContentProgressiveRenderable=nn.ensureFilter(t.filterContentProgressiveRenderable),this.renderInlineFlat=t.renderInlineFlat??!0,this.listCountMap=void 0}getTarget(){return this.target}isTarget(t){return this.constructor.isTargetMatch(this.getTarget(),t)}onChildContainer(t,e){this.options.onChildContainer?.(t,e)}onRender(t,e,r,s){let{onRender:n,onAfterRender:a}=this.options;return n&&(e=n(t,e,r,s,this)),t.is("Inline")&&(e=this.wrapInline(t,e)),a&&a(t,e,r,s,this),e}onChange(t,e,r,s,n){let{onChange:a}=this.options;a&&a(t,e,r,s,n,this)}onAfterChildRender(t,e,r,s){let{onAfterChildRender:n,renderInlineFlat:a}=this.options;n&&n(t,e,r,s,this),"function"==typeof a&&t.is("Inline")&&a(t,e,r,s,this.options.ranges)}onMarkRender(t,e){let{onMarkRender:r}=this.options;r&&r(t,e,this)}renderStructure(t){if(!t){if(this.isTarget("display"))throw RangeError("Given render structure should exist.");return null}let e=null,r=Ps(t,this.doc,((t,r,s,n)=>{if(e)throw RangeError("Each structure must have at most one content hole.");if(e=t,s<r.length-1||s>n)throw RangeError("Content hole must be the only child of its parent node.")}));return e&&this.onChildContainer(e,r),{dom:r,childContainer:e}}renderNodeStructure(t){let e=this.renderStructure(t.type.toDOM(t,this.options));if(!e)return null;if(this.isTarget("display")){let r=!t.is("Leaf");if(!!e.childContainer!==r)throw Error(`The render result must match the content expression in node ${t.name}.`)}return e}renderMarkStructure(t){let e=this.renderStructure(t.type.toDOM(t,this.options));if(!e)return null;if(e.childContainer)throw Error(`There must not be child container in the render result of mark ${t.name}.`);return e}*renderNode(t,e,r,s){let n=this.doRenderNode(t,r,s),{done:a,value:i}=n.next();if(a||!i.dom){yield{node:t,dom:null,pos:r,size:t.nodeSize},yield*n;return}let o=i.dom;e.appendChild(o),this.onChange(t,o,r,s,null);let l=i.size;if(l===t.nodeSize)this.onAfterChildRender(t,o,r,s),yield i,yield*n;else for(yield i;;){let{done:e,value:a}=n.next();if(e)break;a.dom&&this.onChange(t,o,r,s,{node:a.node,dom:a.dom,pos:a.pos,offset:a.pos-r-1}),(l+=a.size)===t.nodeSize&&this.onAfterChildRender(t,o,r,s),yield a}}*doRenderNode(t,e,r){return t.is("Text")?yield*this.doRenderTextNode(t,e,r):yield*this.doRenderNonTextNode(t,e,r)}*doRenderTextNode(t,e,r){let s,n=this.renderNodeStructure(t);if(!n)return void(yield{node:t,dom:null,pos:e,size:t.nodeSize});let{dom:a}=n;if(us(a))(s=this.doc.createElement("span")).appendChild(a);else{if(!hs(a))throw Error("The render result of `TextNode` must be `Text` or `Element`.");s=a}s=this.onRender(t,s,e,r),yield{node:t,dom:s,pos:e,size:t.nodeSize}}*doRenderNonTextNode(t,e,r){let s=this.renderNodeStructure(t);if(!s)return void(yield{node:t,dom:null,pos:e,size:t.nodeSize});let{dom:n,childContainer:a}=s;if(!hs(n))throw Error(`The render result of non-text node ${t.name} must be \`Element\`.`);let i=this.onRender(t,n,e,r),o=t.selfSize;if(a){let r=this.renderFragment(t.content,(()=>this.getChildContainer(t,n,a)),e+1);if(!this.isContentProgressiveRenderable(t))for(let e=0,s=t.childCount;e<s;++e){let{done:t,value:e}=r.next();if(t)break;o+=e.size}yield{node:t,dom:i,pos:e,size:o},yield*r}else yield{node:t,dom:i,pos:e,size:o}}getChildContainer(t,e,r){return this.overrideChildContainer?this.overrideChildContainer.call(null,t,e,r):r}isContentProgressiveRenderable(t){return!(t.type.isLeaf||t.is("RootType"))&&this.filterContentProgressiveRenderable.call(null,t)}wrapInline(t,e){return this.renderInlineFlat&&(e=this.wrapInlineMarksFlat(e,t.marks)),t.type.is("Drawing")&&"break"===t.attrs.config.alignment||(e=this.wrapInlineSpan(e,t)),e}wrapInlineMarksFlat(t,e){for(let r=e.length-1;r>=0;--r){let s=this.renderMark(e[r]);s&&((ms(s)||s).appendChild(t),t=s)}return t}wrapInlineSpan(t,e){let r=this.doc.createElement("span");return r.appendChild(t),r}*renderFragment(t,e,r){if(t.isEmpty())return;let s="function"==typeof e?e:()=>e;return t.child(0).is("Inline")?this.renderInlineFlat?yield*this.renderFragmentInlineFlat(t,s,r):yield*this.renderFragmentInline(t,s,r):yield*this.renderFragmentBlocks(t,s,r)}*renderFragmentBlocks(t,e,r){let s=null,n=[];return yield*this.doRenderFragmentBy(t,r,(t=>{if(this.isTarget("clipboard"))if(t.type.is("ListBlock")&&t.type.isValidListBlock(t)){let r=t.getAttrValue("listId")??"",a=t.getAttrValue("listLevel")??0;r!==s&&(s=r,n.length=0);let i=this.listCountMap||(this.listCountMap=Object.create(null)),o=i[r]||(i[r]=[]),l=n.length-1;if(l<a){let r=n.at(-1)??e();for(let e=l+1;e<=a;++e){let s=this.renderStructure(t.type.getPseudoListType().toDOM(t,{...this.options,list_level:e,list_index:o[e]||0}));if(!s||!s.childContainer)throw Error("The render result of `PseudoListType` must be `Element`.");r.appendChild(s.dom),r=s.childContainer,n.push(s.childContainer)}}else l>a&&(n.length=a+1);o[a]=(o[a]||0)+1}else s=null,n.length=0;return n.length?n[n.length-1]:e()}))}*renderFragmentInlineFlat(t,e,r){return yield*this.doRenderFragmentBy(t,r,e)}*renderFragmentInline(t,e,r){let s=[],n=e();return yield*this.doRenderFragmentBy(t,r,(t=>{let r=t.marks,a=0;for(let t=Math.min(s.length,r.length);a<t&&r[a].eq(s[a].mark);++a);s.length=a,n=a>0?s[a-1].childContainer:e();for(let t=a;t<r.length;++t){let e=r[t],a=this.renderMark(e);a&&(n.appendChild(a),n=ms(a)||a),s.push({mark:e,childContainer:n})}return n}))}*doRenderFragmentBy(t,e,r){let s=[];for(let{node:n,offset:a,index:i}of t){let t=e+a,o=this.renderNode(n,r(n,a,i),t,a);s.push(o);let{done:l,value:h}=o.next();if(l||!h.dom){yield{node:n,dom:null,pos:t,size:n.nodeSize};continue}yield h}for(let t of s)yield*t}renderMark(t){if(this.isTarget("clipboard")&&!t.type.copyable||t.is("ToggleableCss")&&!t.getValue())return null;let e=this.renderMarkStructure(t)?.dom;if(!e)return null;if(!hs(e))throw Error("The render result of `Mark` must be `Element`.");return this.onMarkRender(t,e),e}static isTargetMatch(t,e){return"major"===e?"editor"===t||"viewer"===t:"minor"===e?"general"===t||"clipboard"===t:"display"===e?"editor"===t||"viewer"===t||"general"===t:t===e}static renderFragment(t,e,r){return new this(r).renderFragment(t,e,r?.pos??0)}static renderNode(t,e,r){return new this(r).renderNode(t,e,r?.pos??0,r?.offset??0)}}class io{constructor(t){}*getFragmentGenerator(t,e,r){let s=ao.renderFragment(t,e,r),n=r?.progressiveRenderContent??!1;for(let e=0,r=t.childCount;e<r;++e)s.next(),n&&(yield);n||(yield),yield*this.handleProgressiveGenerator(s,r)}*getNodeGenerator(t,e,r){let s=ao.renderNode(t,e,r);s.next(),yield,yield*this.handleProgressiveGenerator(s,r)}ensureProgressiveStopChecker(t){if(!t)return X;if("function"==typeof t)return t;if("object"==typeof t){let{preset:e,value:r}=t;if("time"===e){let t=Date.now();return()=>{let e=Date.now();return!(e-t<r)&&(t=e,!0)}}if("size"===e){let t=0;return({size:e})=>!((t+=e)<r)&&(t=0,!0)}}return X}*handleProgressiveGenerator(t,e){let r=this.ensureProgressiveStopChecker(e?.progressiveStopThreshold);for(let e of t)r(e)&&(yield)}renderFragment(t,e){let r=Pn(e).createDocumentFragment(),s=ao.renderFragment(t,r,e);for(;!s.next().done;);return r}renderNode(t,e){let r=Pn(e).createDocumentFragment(),s=ao.renderNode(t,r,e);for(;!s.next().done;);return r}}class oo extends hi{constructor(t,e=Object.create(null)){for(let r of(super(),this.rawSpec=t,this.spec=t=this.transformSpec(t),this.data=e,this.compile(),this.preset=t.preset??null,this.domParser=void 0,this.domRenderer=void 0,this.defaultContentStyles=void 0,this.cached=Object.create(null),this.getBindList())){let t=this[r];"function"==typeof t&&(this[r]=t.bind(this))}}getBindList(){return["node","text","mark","nodeFromJSON","nodesFromJSON","markFromJSON","marksFromJSON","nodeFrom","nodesFrom","markFrom","marksFrom"]}static mergeSpec(t,...e){return ci(t,...e)}transformSpec(t){return this.constructor.mergeSpec(t,{nodes:{doc:{type:e=>class extends e{get attrs(){return{...super.attrs,schema:sn.create({default:t.version})}}}}}})}getVersion(){return this.version}testVersion(t){return this.constructor.findSchemaVersion(t)===this.getVersion()}static findSchemaVersion(t){let e=t.attrs?.schema;return"number"==typeof e?e:-1}getPresetData(t,e){let r=function(t,e){let r;if(null==(r="function"==typeof e?e(t):e))return t.getRootType().createFilled();if("string"!=typeof r)return r;{let t=JSON.parse(r);if(!t||"object"!=typeof t)throw Error(`Given json string is invalid: ${r}`);return t}}(this,t);if(!this.testVersion(r))throw Error(`Mismatched schema version for preset data: ${this.constructor.findSchemaVersion(r)}, ${this.getVersion()}`);if(r instanceof ha)if("node"===e)return r;else return r.toJSON();return"node"===e?this.nodeFromJSON(r):r}getPreset(){return this.getPresetData(this.preset,"node")}getPresetJson(){return this.getPresetData(this.preset,"json")}getDomParser(){return this.domParser||(this.domParser=new no(this))}createCustomParsers(){return wt(this.parsers,(t=>t(this)))}getDomRenderer(){return this.domRenderer||(this.domRenderer=new io(this))}copy(t,e){let r=this.constructor;return new r(r.mergeSpec(this.rawSpec,t),e)}setCache(t,e){this.cached[t]=e}getCache(t){return this.cached[t]}maybeNodeType(t){return this.nodes[t]??null}nodeType(t){let e=this.maybeNodeType(t);if(!e)throw RangeError(`Unknown node type: ${t}`);return e}getRootType(){return this.nodeType("doc")}getDefaultTextblockType(){let t=this.groups?.block;if(!t)throw RangeError("There is no block types.");let e=t.find((t=>t.is("Textblock")));if(!e)throw RangeError("There is no textblock types.");return e}*nodeTypes(){let t=this.nodes;for(let e in t)Object.hasOwn(t,e)&&(yield t[e])}maybeMarkType(t){return this.marks[t]??null}markType(t){let e=this.maybeMarkType(t);if(!e)throw RangeError(`Unknown mark type: ${t}`);return e}*markTypes(){let t=this.marks;for(let e in t)Object.hasOwn(t,e)&&(yield t[e])}mark(t,e){if("string"==typeof t)t=this.markType(t);else if(t instanceof ka){if(t.schema!==this)throw RangeError("Mark type from different schema used ("+t.name+")")}else throw RangeError("Invalid mark type: "+t);return t.create(e)}markFrom(t){return"string"==typeof t?this.markType(t).getPresetMark():t instanceof ka?t.getPresetMark():t instanceof yn?t:Array.isArray(t)?this.mark(t[0],t[1]):this.markFromJSON(t)}marksFrom(t){return yn.setFrom(t&&t.length?t.map(this.markFrom,this):null)}maybeAttrMarkType(t){return this.attr_marks[t]??null}attrMarkType(t){let e=this.maybeAttrMarkType(t);if(!e)throw RangeError(`Unknown attr mark type: ${t}`);return e}getInitialSelection(t){return this.spec.getInitialSelection?this.spec.getInitialSelection.call(null,t):gi.findAtStart(t,!0).toMultiSelection()}getDefaultContentStyles(){return this.defaultContentStyles||(this.defaultContentStyles=this.nodeType("doc").createDefaultContentStyles())}nodeFromJSON(t){return ha.fromJSON(this,t)}nodesFromJSON(t){return Tn.fromJSON(this,t)}markFromJSON(t){return yn.fromJSON(this,t)}marksFromJSON(t){return yn.setFromJSON(this,t)}}let lo=new class{constructor(){this.arrow_size=12}createSvg(t,e,...r){return["svg",{"pointer-events":"none",fill:"none",stroke:"none","fill-rule":"evenodd",overflow:"visible",width:((t=Math.ceil(t))||1)+"px",height:((e=Math.ceil(e))||1)+"px",inline_style:{position:"absolute"}},...r]}createGroup(...t){return["g",...t]}createGroupWithAttrs(t={},...e){return["g",t,...e]}createChartGroup(t,e){let r=["image",{preserveAspectRatio:"none",x:"0",y:"0",width:Math.abs(e.width)+"",height:Math.abs(e.height)+""}];return this.createGroup(r)}setupDefaultPathAttrs(t,e){return t.d=e,t}makePathAttrs(t,e){let r=jt(t);return this.setupDefaultPathAttrs(r,e)}createPathsGroup(t,e,r,s={}){let n=[];for(let s=0;s<e.length;++s){let a=e[s];if(!a.define)continue;let i=r.call(this,t,a);n.push(["path",i])}return this.createGroupWithAttrs(s,...n)}createTriggerGroup(t,e){return this.createPathsGroup(t,e,(function(t,e){let r=this.makePathAttrs(t,e.define);return r.class="syno-o-slide-pm-svg-element-trigger",r.fill="none"===e.fill?"none":"#000000",r["fill-opacity"]="0",r.stroke="#000000",r["stroke-opacity"]="0",r["stroke-width"]="stroke-width"in r?Math.max(parseInt(r["stroke-width"]),10):10,r["stroke-dasharray"]=void 0,r}),{"pointer-events":"visiblePainted"})}createPatternGroup(t,e,r){return t?this.createGroup(["pattern",{id:t,patternUnits:"userSpaceOnUse",patternContentUnits:"userSpaceOnUse",width:Math.abs(r.width)+"",height:Math.abs(r.height)+""},["image",{preserveAspectRatio:"none",x:"0",y:"0",width:Math.abs(r.width)+"",height:Math.abs(r.height)+""}]]):this.createGroup()}createShapeGroup(t,e,r,s){return this.createPathsGroup(t,e,(function(t,e){let r=this.makePathAttrs(t,e.define);return s?r.fill="url(#"+s+")":"color"in e&&(r.fill=e.color),"stroke"in e&&!e.stroke&&(r.stroke="none"),r}),r)}createShapeStrokeGroup(t,e){return"stroke-type"in t?this.createStrokeGroup(t,e):this.createGroup()}createStrokeGroup(t,e){return this.createPathsGroup(t,e,(function(t,e){let r=this.makePathAttrs(t,e.define);return delete r.fill,delete r["fill-opacity"],r}))}createLineGroup(t,e){return this.createPathsGroup(t,e,(function(t,e){return this.makePathAttrs(t,e.define)}))}createArrowGroup(t,e){return this.createPathsGroup(t,e,(function(t,e){let r=this.makePathAttrs(t,e.define);return"color"in e?r.fill=e.color:r.fill=t.stroke,r["fill-opacity"]=t["stroke-opacity"],r["stroke-miterlimit"]=10,delete r["stroke-dasharray"],r}))}createHighlightRect(t,e){return["rect",{rx:1,ry:1,fill:"none",stroke:"#000000","stroke-width":3}]}createHighlightRectGroup(t,e){return this.createGroup(this.createHighlightRect(t,e))}createDiv(...t){return["div",{inline_style:{position:"absolute"}},...t]}createNodeDiv(t){let e,r={class:t,inline_style:{position:"absolute",width:"0px",height:"0px"}};if(Array.isArray(arguments[1])||"object"!=typeof arguments[1])e=1;else{let t=arguments[1];t.inline_style&&(jt(t.inline_style,r.inline_style),delete t.inline_style),jt(t,r),e=2}let s=["div",r];for(let t=e,r=arguments.length;t<r;++t)s.push(arguments[t]);return s}createInstanceTextDiv(t,...e){return["div",{inline_style:{visibility:"hidden",position:"absolute",width:t.width+"px"}},...e]}createTriggerDiv(t,e={},...r){return["div",{inline_style:jt(e,{visibility:"hidden",position:"absolute",width:t.width+"px",height:t.height+"px"})},...r]}createIndicatorWrapper(t,e){return["div",{class:"ProseMirror-non-printable syno-o-pm-plugin-indicator-wrapper",inline_style:{position:"absolute",left:(t||0)+"px",top:(e||0)+"px"}}]}},ho=require("@synology-office/logger");var uo=r.n(ho);class co{constructor(t,e,r){this.schema=t.type.schema,this.doc=t,this.commentStore=e,this._selection=null,this._multiSelection=null,this._storedMarks=null,this._cachedMarks=null,r&&this.select(r)}set comments(t){this.commentStore=t}get comments(){return this.commentStore}set comment_store(t){this.commentStore=t}get comment_store(){return this.commentStore}_setState(t,e,r,s){this.schema=t.type.schema,this.doc=t,this.commentStore=e,this.select(r,s)}setState(t,e,r){return this._setState(t,e,r,!1)}get selection(){return this._selection}get multiSelection(){return this._multiSelection}selectText(t,e,r=W){let s=fi.create(this.doc,t,e,!r.useFallbackSelection);if(!s)throw RangeError(`Setting text selection with invalid anchor ${t} and head ${e}.`);return this.select(s,r.preserveMarks)}selectNode(t,e=W){let r=mi.create(this.doc,t,null,!e.useFallbackSelection);if(!r)throw RangeError(`Setting node selection with invalid node position ${t}.`);return this.select(r,e.preserveMarks)}clearSelection(){this._select(null)}select(t,e=!1){return t&&(t.doc!==this.doc?uo().error("Try to select at a different root node."):(t instanceof gi&&(t=t.toMultiSelection()),this._select(t,e))),this}_select(t,e=!1){this._selection=t&&t.getRange(),this._multiSelection=t,e?this._cachedMarks=null:this.clearActiveMarks()}getStoredMarks(){return this._storedMarks}setStoredMarks(t){return this._storedMarks=t,t}clearStoredMarks(){this.setStoredMarks(null)}getActiveMarks(){let t=this.getStoredMarks()||this._cachedMarks;if(t)return t;let e=this.selection;return t=e&&e.is("Text")?e.getMarks():yn.none,this._cachedMarks=t}setActiveMarks(t){return this.setStoredMarks(yn.setFrom(t))}clearActiveMarks(){this.clearStoredMarks(),this._cachedMarks=null}addActiveMarks(t){let e=this.getActiveMarks();return t?(Array.isArray(t)||(t=[t]),this.setActiveMarks(t.reduce(((t,e)=>e.addToSet(t)),e))):e}removeActiveMarks(t){let e=this.getActiveMarks();return t?(Array.isArray(t)||(t=[t]),this.setActiveMarks(t.reduce(((t,e)=>e.removeFromSet(t)),e))):e}}function po(t,e){let r=t.x-e.x,s=t.y-e.y;return Math.sqrt(r*r+s*s)}let yo=Math.PI/180,xo=180/Math.PI,go={left:0,top:1,right:2,bottom:3},fo=[3,12,48,192],mo=[5,65,20,80],bo=Object.create(null);class _o{static createDefault(){return[1,0,0,1,0,0]}static createTranslate(t=0,e=0){return[1,0,0,1,t,e]}static createRotate(t,e=0,r=0){let s=t*yo,n=Math.sin(s),a=Math.cos(s);return[a,n,-n,a,-e*a+r*n+e,-e*n-r*a+r]}static createScale(t,e=t,r=0,s=0){return[t,0,0,e,r*(1-t),s*(1-e)]}static createFlip(t,e=t,r=0,s=0){return this.createScale(Math.sign(t),Math.sign(e),r,s)}static createSkewY(t,e=0){let r=Math.tan(t*yo);return[1,r,0,1,0,-e*r]}static apply(t,e){let r=t.x,s=t.y;return t.x=e[0]*r+e[2]*s+e[4],t.y=e[1]*r+e[3]*s+e[5],t}static applyNoTranslate(t,e){let r=t.x,s=t.y;return t.x=e[0]*r+e[2]*s,t.y=e[1]*r+e[3]*s,t}static applyTranslate(t,e,r){return t.x+=e,t.y+=r,t}static applyRotate(t,e,r=0,s=0){return this.apply(t,this.createRotate(e,r,s))}static applyScale(t,e,r=e,s=0,n=0){return this.apply(t,this.createScale(e,r,s,n))}static applyFlip(t,e,r=e,s=0,n=0){return this.apply(t,this.createFlip(e,r,s,n))}static applySkewY(t,e,r=0){return this.apply(t,this.createSkewY(e,r))}static reverse(t){let e=1/(t[0]*t[3]-t[1]*t[2]),r=t[0]*e,s=t[1]*e,n=t[2]*e,a=t[3]*e,i=t[4],o=t[5];return[a,-s,-n,r,n*o-a*i,s*i-r*o]}static multiply2(t,e){let r=[];return r.push(t[0]*e[0]+t[2]*e[1]),r.push(t[1]*e[0]+t[3]*e[1]),r.push(t[0]*e[2]+t[2]*e[3]),r.push(t[1]*e[2]+t[3]*e[3]),r.push(t[0]*e[4]+t[2]*e[5]+t[4]),r.push(t[1]*e[4]+t[3]*e[5]+t[5]),r}static multiply(){let t=arguments[0];for(let e=1;e<arguments.length;++e)t=this.multiply2(t,arguments[e]);return t}static translate(t,e=0,r=0){return this.multiply(t,this.createTranslate(e,r))}static rotate(t,e,r=0,s=0){return this.multiply(t,this.createRotate(e,r,s))}static scale(t,e,r=e,s=0,n=0){return this.multiply(t,this.createScale(e,r,s,n))}static flip(t,e,r=e,s=0,n=0){return this.multiply(t,this.createFlip(e,r,s,n))}static skewY(t,e,r=0){return this.multiply(t,this.createSkewY(e,r))}static prependTranslate(t,e,r){return this.multiply(this.createTranslate(e,r),t)}static prependRotate(t,e,r=0,s=0){return this.multiply(this.createRotate(e,r,s),t)}static prependScale(t,e,r=e,s=0,n=0){return this.multiply(this.createScale(e,r,s,n),t)}static prependFlip(t,e,r=e,s=0,n=0){return this.multiply(this.createFlip(e,r,s,n),t)}static prependSkewY(t,e,r=0){return this.multiply(this.createSkewY(e,r),t)}static fromTransform(t){if(!t)return null;let e=t.deg?t.deg*yo:0,r=t.skewY?t.skewY*yo:0,s=Math.sin(e),n=Math.cos(e),a=Math.tan(r),i=t.width?Math.sign(t.width):1,o=t.height?Math.sign(t.height):1;return[i*(n-s*a),i*(s+n*a),-o*s,o*n,t.left||0,t.top||0]}static toMatrixStr(t){return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"}static transformToMatrixStr(t){return this.toMatrixStr(this.fromTransform(t))}}class Ao{static get prop_list(){return["left","top","width","height","deg","skewY"]}static getAttrs(t=bo){let e,r=this.prop_list,s=Object.create(null);for(let n=r.length-1;n>=0;--n){let a=r[n],i=t[a];null==i&&(e||(e=this.createDefault()),i=e[a]),s[a]=new sn({default:i})}return s}static getImageAttrs(t=bo){let e,r=this.prop_list,s=Object.create(null);for(let n=r.length-1;n>=0;--n){let a=r[n],i=t[a];null==i&&(e||(e=this.createImageDefault()),i=e[a]),s[a]=new sn({default:i})}return s}static createDefault(){return{left:0,top:0,width:100,height:100,deg:0,skewY:0}}static createImageDefault(){return{left:0,top:0,width:1,height:1,deg:0,skewY:0}}static createImageCenter(t,e){let r=t.width?e.width/t.width:0,s=t.height?e.height/t.height:0;return{left:(1-r)/2,top:(1-s)/2,width:r,height:s,deg:0,skewY:0}}static createFilled(t){return jt(t,this.createDefault(),!1,this.prop_list)}static createImageFilled(t){return jt(t,this.createImageDefault(),!1,this.prop_list)}static _createFilledFromArray(t,e){let r=this.prop_list,s=Math.min(r.length,t.length);for(let n=0;n<s;++n)e[r[n]]=t[n];return e}static createFilledFromArray(t){return this._createFilledFromArray(t,this.createDefault())}static createImageFilledFromArray(t){return this._createFilledFromArray(t,this.createImageFilled())}static copy(t,e){return t&&(t=jt(t,null,!1,this.prop_list),e&&(t=jt(e,t,!1,this.prop_list))),t}static _compare(t,e,r){return this._compareCoords(t,e,r)&&this._compareShape(t,e,r)}static compare(t,e,r){return t===e||this._compare(t,e,r)}static _compareShape(t,e,r){return!gt(t.skewY,e.skewY)&&(!gt(t.deg,e.deg)&&!gt(t.width,e.width)&&!gt(t.height,e.height)||!r&&!gt(this.ensureDeg(t.deg+180),e.deg)&&!gt(-t.width,e.width)&&!gt(-t.height,e.height))}static compareShape(t,e,r){return t===e||this._compareShape(t,e,r)}static _compareCoords(t,e,r){return!gt(t.left,e.left)&&!gt(t.top,e.top)}static compareCoords(t,e,r){return t===e||this._compareCoords(t,e,r)}static _compareSize(t,e,r){return!gt(t.width,e.width)&&!gt(t.height,e.height)||!r&&!gt(-t.width,e.width)&&!gt(-t.height,e.height)}static compareSize(t,e,r){return t===e||this._compareSize(t,e,r)}static _compareDeg(t,e,r){return!gt(this.getTrueDeg(t),this.getTrueDeg(e))}static compareDeg(t,e,r){return t===e||this._compareDeg(t,e,r)}static add(t,e){return t?e?(t=this.copy(t),this.addTranslate(t,e.left,e.top),this.addScale(t,e.width,e.height),this.addRotate(t,e.deg),this.addSkewY(t,e.skewY),t):this.copy(t):this.copy(e)}static addTranslate(t,e,r){return t.left+=e||0,t.top+=r||0,t}static addScale(t,e,r){return null!=e&&(t.width=e*Math.sign(t.width)),null!=r&&(t.height=r*Math.sign(t.height)),t}static addFlip(t,e,r){return null!=e&&(t.width*=Math.sign(e)),null!=r&&(t.height*=Math.sign(r)),t}static addRotate(t,e){return e&&(t.deg=this.ensureDeg(t.deg+e)),t}static addSkewY(t,e){return e&&(t.skewY=this.ensureSkew(t.skewY+e)),t}static merge(t,e,r,s){if(!t)return this.copy(e);if(!e)return this.copy(t);let n=Object.create(null);r||(r=_o.fromTransform(t)),s||(s=_o.fromTransform(e));let a=_o.multiply(r,s);return this.mergeMove(n,a,0,0),this.mergeResize(n,t,e),this.mergeRotateSkew(n,a),n}static split(t,e,r,s){if(!t)return this.copy(e);if(!e)return Ao.createDefault();let n=Object.create(null);r||(r=_o.fromTransform(t)),s||(s=_o.fromTransform(e));let a=_o.multiply(_o.reverse(r),s);return this.mergeMove(n,a,0,0),this.mergeResize(n,t,e),this.mergeRotateSkew(n,a),n}static mergeMove(t,e,r,s){let n=_o.apply({x:r,y:s},e);return t.left=n.x,t.top=n.y,t}static mergeResize(t,e,r){return t.width=Math.abs(null!=r.width?r.width:e.width),t.height=Math.abs(null!=r.height?r.height:e.height),t}static mergeRotateSkew(t,e){let r=_o.applyNoTranslate({x:1,y:0},e),s=_o.applyNoTranslate({x:0,y:1},e);return this.setDegSkewFromPos(t,r,s)}static setDegSkewFromPos(t,e,r,s={x:0,y:0}){let n,a,i=e.x-s.x,o=e.y-s.y,l=r.x-s.x,h=r.y-s.y;(i||o)&&(n=Math.atan2(o,i)*xo+90),(l||h)&&(a=Math.atan2(h,l)*xo+90),null==n&&null==a?(n=90,a=180):null==n?n=a-90:null==a&&(a=n+90);let u=this.ensureDeg(a-n);return u>180&&(u-=180,t.width*=-1),t.deg=this.ensureDeg(a+180),t.skewY=90-u,t}static applyMatrix(t,e,r){r||(r=_o.fromTransform(e)),t=_o.multiply(t,r);let s=Math.abs(e.width),n=Math.abs(e.height),a=_o.apply({x:0,y:0},t),i=_o.apply({x:s,y:0},t),o=_o.apply({x:0,y:n},t),l=Object.create(null);return l.left=a.x,l.top=a.y,l.width=po(a,i),l.height=po(a,o),this.setDegSkewFromPos(l,i,o,a),l.width*=Math.cos(l.skewY*yo),l}static getScaleAppliedMatrix(t,e){return _o.multiply(e,_o.createScale(t.x,t.y),_o.reverse(e))}static getCenterPos(t,e=_o.fromTransform(t)){return _o.apply({x:Math.abs(t.width)/2,y:Math.abs(t.height)/2},e)}static getTopLeftPos(t,e=_o.fromTransform(t)){return _o.apply({x:0,y:0},e)}static getBottomRightPos(t,e=_o.fromTransform(t)){return _o.apply({x:Math.abs(t.width),y:Math.abs(t.height)},e)}static translate(t,e,r){return this.addTranslate(this.copy(t),e,r)}static rotate(t,e,r,s=0,n=0){return this.applyMatrix(_o.createRotate(r,s,n),t,e)}static rotateCenter(t,e,r){e||(e=_o.fromTransform(t));let s=this.getCenterPos(t,e);return this.rotate(t,e,r,s.x,s.y)}static scale(t,e,r,s=r,n=0,a=0){return this.applyMatrix(_o.createScale(r,s,n,a),t,e)}static scaleCenter(t,e,r,s=r){e||(e=_o.fromTransform(t));let n=this.getCenterPos(t,e);return this.scale(t,e,r,s,n.x,n.y)}static flip(t,e,r,s=r,n=0,a=0){return this.scale(t,e,Math.sign(r),Math.sign(s),n,a)}static flipCenter(t,e,r,s=r){return this.scaleCenter(t,e,Math.sign(r),Math.sign(s))}static skewY(t,e,r,s=0){return this.applyMatrix(_o.createSkewY(r,s),t,e)}static skewYCenter(t,e,r){e||(e=_o.fromTransform(t));let s=this.getCenterPos(t,e);return this.skewY(t,e,r,s.x)}static getScale(t,e){return{x:null!=e.width&&t.width?Math.abs(e.width/t.width):1,y:null!=e.height&&t.height?Math.abs(e.height/t.height):1}}static getTrueDeg(t){return t.height>0?t.deg:this.ensureDeg(t.deg+180)}static ensureDeg(t){return yt(t,360)}static ensureSkew(t){return t>=-90&&t<=90?t:yt(t+90,180)-90}static fixDegForLine(t,e,r=!0){r&&(t=jt(t)),e||(e=this.getMatrix(t));let{x1:s,y1:n}=_o.apply({x:0,y:0},e),{x2:a,y2:i}=_o.apply({x:Math.abs(t.width),y:Math.abs(t.height)},e);return t.left=s,t.top=n,t.width=a-s,t.height=i-n,t.deg=0,t.skewY=0,t}static fromImageTransform(t,e){let r=Math.abs(t.width),s=Math.abs(t.height),n=this.copy(e);return n.left*=r,n.top*=s,n.width*=r,n.height*=s,n}static toImageTransform(t,e){let r=1/Math.abs(t.width),s=1/Math.abs(t.height),n=this.copy(e);return n.left*=r,n.top*=s,n.width*=r,n.height*=s,n}static getMatrix(t){return _o.fromTransform(t)}static matrixToStr(t){return _o.toMatrixStr(t)}static getMatrixStr(t){return _o.transformToMatrixStr(t)}static fromBoundingBox(t){let e=this.createFilled(t);return e.width=t.right-t.left,e.height=t.bottom-t.top,e}}class Mo{static get prop_list(){return["left","top","right","bottom"]}static createDefault(){return{left:0,top:0,right:0,bottom:0}}static createSmallest(){return{left:1/0,top:1/0,right:-1/0,bottom:-1/0}}static createFilled(t){return jt(t,this.createDefault(),!1,this.prop_list)}static copy(t){return t&&jt(t,null,!1,this.prop_list)}static ensure(t){let e,r="left_source"in t;return t.left>t.right&&(e=t.left,t.left=t.right,t.right=e,r&&(e=t.left_source,t.left_source=t.right_source,t.right_source=e)),t.top>t.bottom&&(e=t.top,t.top=t.bottom,t.bottom=e,r&&(e=t.top_source,t.top_source=t.bottom_source,t.bottom_source=e)),t}static expand2(t,e){return e&&(t.left=Math.min(t.left,e.left),t.top=Math.min(t.top,e.top),t.right=Math.max(t.right,e.right),t.bottom=Math.max(t.bottom,e.bottom)),t}static expand(t,e,r=Y){return e?t?(e.left<t.left&&(t.left=e.left,r("left",t,e)),e.top<t.top&&(t.top=e.top,r("top",t,e)),e.right>t.right&&(t.right=e.right,r("right",t,e)),e.bottom>t.bottom&&(t.bottom=e.bottom,r("bottom",t,e)),t):e:t}static expandFromGetter(t,e,r,s){return this.expand(t,r(e),s)}static expandFromTransform(t,e,r=_o.fromTransform(e),s){return this.expand(t,this.fromTransform(e,r),s)}static expandFromNode(t,e,r){return this.expandFromTransform(t,e.type.getAbsTransform(e),e.type.getAbsMatrix(e),r)}static expandFromNodeGetter(t,e,r,s){return this.expandFromNode(t,r(e),s)}static expandFromResolvedPos(t,e,r){return this.expandFromNode(t,e.self,r)}static fromArray(t,e,...r){let s=this.createSmallest();for(let n=0;n<t.length;++n)e(s,t[n],...r);return s}static fromBoundingArray(t,e){return this.fromArray(t,this.expand.bind(this),e)}static fromGetterArray(t,e,r){return this.fromArray(t,this.expandFromGetter.bind(this),e,r)}static fromNodeArray(t,e){return this.fromArray(t,this.expandFromNode.bind(this),e)}static fromNodeGetterArray(t,e,r){return this.fromArray(t,this.expandFromNodeGetter.bind(this),e,r)}static fromResolvedPosArray(t,e){return this.fromArray(t,this.expandFromResolvedPos.bind(this),e)}static fromMap(t,e,...r){let s=this.createSmallest();for(let n in t)t.hasOwnProperty(n)&&e(s,t[n],...r);return s}static fromBoundingMap(t,e){return this.fromArray(t,this.expand.bind(this),e)}static fromGetterMap(t,e,r){return this.fromMap(t,this.expandFromGetter.bind(this),e,r)}static fromNodeMap(t,e){return this.fromMap(t,this.expandFromNode.bind(this),e)}static fromNodeGetterMap(t,e,r){return this.fromArray(t,this.expandFromNodeGetter.bind(this),e,r)}static fromResolvedPosMap(t,e){return this.fromMap(t,this.expandFromResolvedPos.bind(this),e)}static getIntersection(t,e){let r={left:Math.max(t.left,e.left),top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom)};return r.left<=r.right&&r.top<=r.bottom?r:null}static getEdgeResult(t,e){return{left:gt(t.left,e.left),top:gt(t.top,e.top),right:gt(t.right,e.right),bottom:gt(t.bottom,e.bottom)}}static recoverSource(t,e){let r=go[e];return(t&fo[r])>>(r<<1)}static fromSizeAndMatrix(t,e,r,s){let n=[];if(n.push(_o.apply({x:0,y:0},r)),n.push(_o.apply({x:0,y:e},r)),n.push(_o.apply({x:t,y:0},r)),n.push(_o.apply({x:t,y:e},r)),!s)return{left:Math.min(n[0].x,n[1].x,n[2].x,n[3].x),top:Math.min(n[0].y,n[1].y,n[2].y,n[3].y),right:Math.max(n[0].x,n[1].x,n[2].x,n[3].x),bottom:Math.max(n[0].y,n[1].y,n[2].y,n[3].y)};let a=Object.create(null);a.pos_arr=n;let i=function(t,e){let r,s,n,i,o;switch(e){case"left":i="x",o=-1;break;case"top":i="y",o=-1;break;case"right":i="x",o=1;break;case"bottom":i="y",o=1;break;default:return}for(let e=0;e<4;++e)!function(e){let a=mo[e],l=t[e],h=l[i],u=null==n?null:gt(h,n);null==u||u*o>0?(n=h,r=a,s=l):0===u&&(r=(r&a)<<1,s=null)}(e);a[e]=n,a[e+"_source"]=r,a[e+"_pos"]=s},o=this.prop_list;for(let t=0;t<o.length;++t)i(n,o[t]);return a}static fromTransform(t,e,r){return this.fromSizeAndMatrix(Math.abs(t.width),Math.abs(t.height),e||_o.fromTransform(t),r)}static fromNode(t,e){return this.fromTransform(t.type.getAbsTransform(t),t.type.getAbsMatrix(t),e)}static toTransform(t){return Ao.fromBoundingBox(t)}static translate(t,e,r){return this.calculateTranslate(this.copy(t),e,r)}static scale(t,e,r){return this.calculateScale(this.copy(t),e,r)}static calculateTranslate(t,e,r=e){return t.left+=e,t.top+=r,t.right+=e,t.bottom+=r,t}static calculateScale(t,e,r=e){return t.left*=e,t.top*=r,t.right*=e,t.bottom*=r,t}static calculateCenter(t){return t.h_center=(t.left+t.right)/2,t.v_center=(t.top+t.bottom)/2,t}static calculateSize(t){return t.width=t.right-t.left,t.height=t.bottom-t.top,t}static calculateSource(t){return t.left_source=2,t.top_source=8,t.right_source=32,t.bottom_source=128,t}}class wo{constructor(t,e=!1,r){this.pos=t,this.deleted=!!e,this.recover=r}}class So{constructor(t,e){this.from=t.pos,this.to=e.pos,this.deleted=this.checkDeleted(t,e)}get empty(){return this.from===this.to}checkDeleted(t,e){return t.deleted&&e.deleted}}class Co extends So{checkDeleted(t,e){return t.deleted||e.deleted||this.from>=this.to}}let Po=Object.create(null);class To{static{this.mapType=""}static{this.mapId=""}constructor(){}toJSON(){let t={id:this.constructor.mapId};for(let e in this)if(Object.prototype.hasOwnProperty.call(this,e)){let r=this[e];t[e]=r&&"object"==typeof r&&"function"==typeof r.toJSON?r.toJSON():r}return t}static fromJSON(t){return new this}static deserializeJSON(t,e){let r=this.findMapConstructor(t.id).fromJSON(t);if(e&&e!==r.constructor.mapType)throw RangeError(`No ${e} map is named \`${t.id}\`.`);return r}static findMapConstructor(t){let e=Po[t];if(!e)throw RangeError(`No step map is named \`${t}\`.`);return e}static register(){let t=this.mapId;if(!t)throw RangeError("Step map id should be defined.");if(t in Po)throw RangeError(`Duplicate use of step map id \`${t}\`.`);Po[t]=this}}function vo(t,e){return t+65536*e}function Io(t){return 65535&t}function ko(t){return(t-(65535&t))/65536}function Eo(t,e,r,s=!1){return t!==e?t-e:s?r:0}class No extends To{constructor(t,e=!1){super(),this.ranges=this.constructor.ensureRanges(t),this.inverted=!!e}isMappable(){return!!this.ranges.length}invert(){return new this.constructor(this.ranges,!this.inverted)}static fromJSON(t){return new this(t.ranges,t.inverted)}static ensureRanges(t){let e=t.length%3;return 0!==e&&(t=t.slice(0,t.length-e)),t}}class Lo extends No{forEach(t,e){let{ranges:r,inverted:s}=this,n=s?2:1,a=s?1:2,i=0;for(let o=0,l=r.length;o<l;o+=3){let l=r[o],h=l-(s?i:0),u=l+(s?0:i),c=r[o+n],p=r[o+a];if(t.call(e,h,c,u,p,i))return;i+=p-c}}run(t,e,r,s,n){e=xt(e,!1,1);let{ranges:a,inverted:i}=this,o=i?2:1,l=i?1:2,h=0;for(let n=0,u=a.length;n<u;n+=3){let u=a[n]-(i?h:0),c=Eo(t,u,e,r);if(c<0)break;let p=a[n+o],d=a[n+l],y=u+p,x=Eo(t,y,e,r);if(x<=0){let r;r=0===p?e:t===u?-1:t===y?1:e;let a=u+h+(r<0?0:d);return s?a:new wo(a,c>0&&x<0,vo(n/3,t-u))}h+=d-p}return t+=h,s?t:new wo(t)}static appendRange(t,e,r,s){let n=t.length-3;n>=0&&t[n]+t[n+1]===e?(t[n+1]+=r,t[n+2]+=s):t.push(e,r,s)}}class jo extends No{run(t,e,r,s,n){let a=xt(e,!1,1);return this.forEach(((e,s,n,i)=>{let o=this.constructor.calcRangeInfo(e,s,n,i);if(!o)return;let{from:l,to:h,split:u}=o;if(0>=Eo(t,l,a,r)||Eo(t,h,a,r)>=0)return;let c=Eo(t,u,a,r);c<0?t+=h-u:c>0?t-=u-l:t=o.forward?h:l}),this),s?t:new wo(t)}forEach(t,e,r){let s,n,a,{ranges:i,inverted:o}=this;o?(s=i.length-3,n=-3,a=-3):(s=0,n=i.length,a=3);for(let l=s;l!==n;l+=a){let s=t.call(e,i[l],i[l+1],i[l+2],o);if(r&&null!=s)return s}}static invertRange(t,e,r){let s,n,a=t+e;if(r<t)s=r,n=a;else{if(!(r>a))return null;s=r-e,n=t}return[s,e,n]}static calcRangeInfo(t,e,r,s){let n,a,i,o;if(s){let s=this.invertRange(t,e,r);if(!s)return null;[t,e,r]=s}let l=t+e;if(r<t)n=r,a=l,i=t,o=!0;else{if(!(r>l))return null;n=t,a=r,i=l,o=!1}return{start:t,size:e,target:r,end:l,from:n,to:a,split:i,forward:o}}}class Ro extends No{constructor(t){super([],t)}invert(){return new this.constructor(!this.inverted)}run(t,e,r,s,n){return s?0:new wo(0,!0)}}let Oo=t=>class extends(t||class{}){isMappable(){return!0}mapRange(t,e){return new So(this.mapResult(t,1),this.mapResult(e,-1))}mapResult(t,e){throw Error("Override me.")}map(t,e){throw Error("Override me.")}mapNodeRange(t,e){return new Co(this.mapNodeResult(t,1),this.mapNodeResult(e,-1))}mapNodeResult(t,e){return this.mapResult(...arguments)}mapNode(t,e){return this.map(...arguments)}invert(){throw Error("Override me.")}intersect(t,e){return!1}},Do=t=>class extends(Oo(t)){getPosMaps(){return[]}intersect(t,e){let r=this.getPosMaps();for(let s=0,n=r.length;s<n;++s){let n=r[s];if(n.intersect(t,e))return!0;t=n.map(t,-1),e=n.map(e,1)}return!1}},Fo=t=>class extends(Oo(t)){static{this.mapType="pos"}},Bo=t=>class extends(Fo(t)){isMappable(){return!!this.ranges.length}invert(){return new this.constructor(this.ranges,!this.inverted)}};function Vo(t,e,r,s){return t!==e?t-e:s?r:0}class Ho extends(Bo(Lo)){static{this.mapId="replacePos"}constructor(t,e){super(t,e)}recover(t){let e=0,r=Io(t);if(3*r>=this.ranges.length)return NaN;if(!this.inverted)for(let t=0;t<r;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*r]+e+ko(t)}mapResult(t,e){return this.run(t,e,!1,!1)}map(t,e){return this.run(t,e,!1,!0)}mapNodeResult(t,e){return this.run(t,e,!0,!1)}mapNode(t,e){return this.run(t,e,!0,!0)}touches(t,e){let r=0,s=Io(e),n=this.inverted?2:1,a=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let i=this.ranges[e]-(this.inverted?r:0);if(i>t)break;let o=this.ranges[e+n];if(t<=i+o&&e==3*s)return!0;r+=this.ranges[e+a]-o}return!1}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}intersect(t,e){let r=0,s=this.inverted?2:1,n=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let i=this.ranges[a]-(this.inverted?r:0);if(i>t&&i>e)break;let o=this.ranges[a+s],l=this.ranges[a+n],h=i+o;if(t<=h||e<=h)return!0;r+=l-o,t+=r,e+=r}return!1}static create(t,e){return t.length?new this(t,e):this.empty}}Ho.empty=new Ho([]),Ho.register();class Go extends(Fo(To)){static{this.mapId="shiftPos"}constructor(t){if(super(),!t)return;let e=t.length,r=[],s=[];for(let n=0;n<e;n+=3){let e=t[n],a=t[n+1],i=t[n+2];r.push([e,a,i]),s.push([i,a,e])}let n=(t,e)=>t[0]-e[0],a=(t,e)=>(t.push(...e),t);this.oldRanges=r.sort(n).reduce(a,[]),this.newRanges=s.sort(n).reduce(a,[])}static from(t,e){let r=new Go;return r.oldRanges=t,r.newRanges=e,r}isMappable(){return!!this.oldRanges.length}mapResult(t,e){return this.run(t,e,!1,!1)}map(t,e){return this.run(t,e,!1,!0)}mapNodeResult(t,e){return this.run(t,e,!0,!1)}mapNode(t,e){return this.run(t,e,!0,!0)}run(t,e,r,s){let n=this.oldRanges.length,a=0;for(let i=0;i<n;i+=3){let n=this.oldRanges[i];if(0>=Vo(t,n,e,r))break;let o=this.oldRanges[i+1];if(0>Vo(t,n+o,e,r)){let e=this.oldRanges[i+2]+(t-n);return s?e:new wo(e)}a+=-o}t+=a;for(let r=0;r<n;r+=3){let s=this.newRanges[r];if(0>Vo(t,s,e,!0))break;t+=this.newRanges[r+1]}return s?t:new wo(t)}invert(){return Go.from(this.newRanges,this.oldRanges)}toString(){return JSON.stringify(this.oldRanges)+"\n"+JSON.stringify(this.newRanges)}toJSON(){return{id:this.constructor.mapId,oldRanges:this.oldRanges,newRanges:this.newRanges}}static fromJSON(t){return this.from(t.oldRanges,t.newRanges)}}Go.empty=Go.from([],[]),Go.register();class zo extends(Fo(To)){static{this.mapId="groupPos"}constructor(t,e){if(super(),!t)return;let r=[],s=e;for(let n=0;n<t.length;++n){let a=t[n],i=a.pos,o=a.node.nodeSize;r.push(i,o,null),i<e&&(s-=o)}let n=s;for(let t=0;t<r.length;t+=3)r[t+2]=n,n+=r[t+1];this.posMap=new Ho([s,0,1,n,0,1]),this.shiftPosMap=new Go(r),this.group=!0}static from(t,e,r){let s=new zo;return s.posMap=t,s.shiftPosMap=e,s.group=!!r,s}isMappable(){return this.posMap.isMappable()||this.shiftPosMap.isMappable()}mapResult(t,e){let r;return this.group?(t=this.shiftPosMap.map(t,e),r=this.posMap.mapResult(t,e)):(r=this.posMap.mapResult(t,e)).pos=this.shiftPosMap.map(r.pos,e),r}map(t,e){return this.group?(t=this.shiftPosMap.map(t,e),t=this.posMap.map(t,e)):(t=this.posMap.map(t,e),t=this.shiftPosMap.map(t,e)),t}mapNodeResult(t,e){let r;return this.group?(t=this.shiftPosMap.mapNode(t,e),r=this.posMap.mapNodeResult(t,e)):(r=this.posMap.mapNodeResult(t,e)).pos=this.shiftPosMap.mapNode(r.pos,e),r}mapNode(t,e){return this.group?(t=this.shiftPosMap.mapNode(t,e),t=this.posMap.mapNode(t,e)):(t=this.posMap.mapNode(t,e),t=this.shiftPosMap.mapNode(t,e)),t}recover(t){return this.posMap.recover(t)}touches(t,e){return this.posMap.touches(t,e)}invert(){return zo.from(this.posMap.invert(),this.shiftPosMap.invert(),!this.group)}toString(){return(this.group?"group":"ungroup")+"\n"+JSON.stringify(this.posMap)+"\n"+JSON.stringify(this.shiftPosMap)}toJSON(){return{id:this.constructor.mapId,posMap:this.posMap?.toJSON(),shiftPosMap:this.shiftPosMap?.toJSON(),group:this.group}}static fromJSON(t){return this.from(t.posMap&&To.deserializeJSON(t.posMap),t.shiftPosMap&&To.deserializeJSON(t.shiftPosMap),t.group)}}function Uo(t,e,r,s,n){let a=s?"mapNode":"map";for(let s=n||0;s<t.length;s++)e=t[s][a](e,r);return e}function qo(t,e,r,s,n){let a=!1,i=s?"mapNodeResult":"mapResult";for(let s=n||0;s<t.length;s++){let n=t[s][i](e,r);e=n.pos,n.deleted&&(a=!0)}return new wo(e,a)}function $o(t,e,r,s,n){return new(s?Co:So)(qo(t,e,1,s,n),qo(t,r,-1,s,n))}function Jo(t,e,r,s){return Uo(t,e,r,!1,s)}function Wo(t,e,r,s){return qo(t,e,r,!1,s)}function Zo(t,e,r,s){return $o(t,e,r,!1,s)}function Yo(t,e,r,s){return Uo(t,e,r,!0,s)}function Xo(t,e,r,s){return qo(t,e,r,!0,s)}function Ko(t,e,r,s){return $o(t,e,r,!0,s)}function Qo(t){let e=!1,r=Number.MAX_SAFE_INTEGER,s=0;return(t.forEach((t=>{t instanceof Ho&&t.forEach(((t,n)=>{r=Math.min(r,t),s=Math.max(s,t+n),e=!0})),e&&(r=t.map(r,-1),s=t.map(s,1))})),e)?[r,s]:null}function tl(t){return st(t,"map",(function(t,e,r,s,n,a){return n||!this.inverted==!a?t:this._map(t,e,r,s)}),!1),st(t,"_map",(function(t,e,r,s){return tt()}),!1),st(t,"invert",(function(){return tt()}),!1),t.mapType="custom",t}zo.empty=zo.from(Ho.empty,Go.empty,!0),zo.register();class el{constructor(t){this.maps=t}map(t,e,r,s,n,a){let i=this.maps;for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let l=i[o];l&&(t[o]=l.map(t[o],e,r,s,n,a))}}invert(){let t=this.maps,e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r].invert());return new this.constructor(e)}}function rl(t){st(t,"invert",(function(){return new this.constructor(this.pos,this.ranges,!this.inverted)})),st(t,"_map",(function(t){if(!t)return null;Array.isArray(t)||(t=[t]);for(let e=0,r=t.length;e<r;++e){let r=t[e],s=this.run(r.index,r.bias,!r.deleted&&r.sticky,!1);r.index=s.pos,s.deleted&&(r.deleted=!0)}return t}));let e=Object.prototype.hasOwnProperty.call(t.prototype,"map");if(tl(t),!e){let e=t.prototype.map;st(t,"map",(function(t,r,s,n,a,i){return r!==this.pos?t:e.apply(this,arguments)}),!0)}return t}tl(el);class sl extends Lo{constructor(t,e,r){super(e,r),this.pos=t}}rl(sl);class nl extends jo{constructor(t,e,r){super(e,r),this.pos=t}}rl(nl);class al extends Ro{constructor(t,e){super(e),this.pos=t}invert(){return new this.constructor(this.pos,!this.inverted)}}rl(al);class il{constructor(t,e){this.trans=Ao.copy(t),this.scale=function(t,e,r){return t?{x:t.x,y:t.y}:It(1,void 0)}(e,0)}}class ol{constructor(t){this.inverted=!!t,this.hash_map=new Map}get size(){return this.hash_map.size}set(t,e){let r=this.hash_map.get(t);return r&&(e=hl.merge(r,e)),this.hash_map.set(t,e)}get(t){return this.hash_map.get(t)}invert(){let t=new ol(!this.inverted);return this.hash_map.forEach((function(e,r){t.set(r,e.invert())})),t}_map(t,e){let r=this.get(e);return r&&(t=r.applyResult(t)),t}}tl(ol);class ll{invert(){throw Error("Override me!")}apply(t,e){throw Error("Override me!")}applyResult(t,e){throw Error("Override me!")}}class hl extends ll{constructor(t){super(),this.items=t}static merge(t,e){return t instanceof hl?t.append(e):new hl([t,e])}append(t){return this.items.push(t),this}invert(){let t=[];for(let e=this.items.length-1;e>=0;--e)t.push(this.items[e].invert());return new hl(t)}apply(t,e){for(let r=0;r<this.items.length;++r)t=this.items[r].apply(t,e);return t}applyResult(t,e){for(let r=0;r<this.items.length;++r)t=this.items[r].applyResult(t,e);return t}}class ul extends ll{constructor(t,e){super(),this.move_offset=t,this.size_offset=e}invert(){return new ul(kt(this.move_offset),kt(this.size_offset))}isMove(){return!Lt(this.move_offset,0)}getTransform(t,e){e=e||It(1,void 0);let r=Object.create(null);return r.left=this.move_offset.x*e.x,r.top=this.move_offset.y*e.y,r.width=Math.abs(t.width)+this.size_offset.x*e.x,r.height=Math.abs(t.height)+this.size_offset.y*e.y,r}apply(t,e){let r=this.getTransform(t,e&&e.scale);return this.isMove()?Ao.merge(t,r):Ao.add(t,r)}applyResult(t,e){return t.trans=this.apply(t.trans,{scale:t.scale}),t}}class cl extends ll{constructor(t){super(),this.move_offset=t}invert(){return new cl(kt(this.move_offset))}apply(t,e){return Ao.translate(t,this.move_offset.x,this.move_offset.y)}applyResult(t,e){return t.trans=this.apply(t.trans,{scale:t.scale}),t}}class pl extends ll{constructor(t,e,r,s,n,a,i){super(),this.scale=t,this.ref_final_trans=e,this.ref_final_matrix=r,this.matrix=Ao.getScaleAppliedMatrix(this.scale,this.ref_final_matrix),this.parent_ori_final_trans=s,this.parent_ori_final_matrix=n,this.parent_new_final_trans=a||Ao.applyMatrix(this.matrix,this.parent_ori_final_trans,this.parent_ori_final_matrix),this.parent_new_final_matrix=i||_o.fromTransform(this.parent_new_final_trans)}invert(){return new pl(Et(this.scale),this.ref_final_trans,this.ref_final_matrix,this.parent_ori_final_trans,this.parent_ori_final_matrix)}apply(t,e){return this.applyWithInfo(t,e).trans}applyWithInfo(t,e){let r=e&&e.final_trans||Ao.merge(this.parent_ori_final_trans,t,this.parent_ori_final_matrix),s=e&&e.final_matrix||_o.fromTransform(r),n=Ao.applyMatrix(this.matrix,r,s),a=_o.fromTransform(n);return{ori_final_trans:r,ori_final_matrix:s,new_final_trans:n,new_final_matrix:a,trans:Ao.split(this.parent_new_final_trans,n,this.parent_new_final_matrix,a)}}applyResult(t,e){return t.trans=this.apply(t.trans,e),t}}class dl extends ll{constructor(t){super(),this.scale=t}invert(){return new dl(Et(this.scale))}apply(t,e){return t}applyResult(t,e){var r,s;return t.trans=this.apply(t.trans,e),r=t.scale,s=this.scale,t.scale={x:r.x*s.x,y:r.y*s.y},t}}class yl extends ll{constructor(t,e,r,s){super(),this.parent_ori_final_trans=t,this.parent_ori_final_matrix=e||_o.fromTransform(t),this.parent_new_final_trans=r,this.parent_new_final_matrix=s||_o.fromTransform(r)}invert(){return new yl(this.parent_new_final_trans,this.parent_new_final_matrix,this.parent_ori_final_trans,this.parent_ori_final_matrix)}apply(t,e){return t=Ao.merge(this.parent_ori_final_trans,t,this.parent_ori_final_matrix),t=Ao.split(this.parent_new_final_trans,t,this.parent_new_final_matrix)}applyResult(t,e){return t.trans=this.apply(t.trans,e),t}}class xl extends(Do()){get maps(){return this.posMaps}set maps(t){this.posMaps=t}get customs(){return this.customMaps}set customs(t){this.customMaps=t}get innerMapTo(){return this.mapTo??this.length}mapResult(t,e,r){return this.run(t,e,!1,!1,r)}map(t,e,r){if(this.mirror.length)return this.run(t,e,!1,!0,r);let s=this.maps;for(let r=this.mapFrom,n=this.innerMapTo;r<n;++r)t=s[r].map(t,e);return t}mapNodeResult(t,e,r){return this.run(t,e,!0,!1,r)}mapNode(t,e,r){if(this.mirror.length)return this.run(t,e,!0,!0,r);let s=this.maps;for(let r=this.mapFrom,n=this.innerMapTo;r<n;++r)t=s[r].mapNode(t,e);return t}runCustom(t,e,r,s,n,a,i){if(null==e)return;let o=this.customs[t];o&&o.map(e,r,s,n,a,i)}run(t,e,r,s,n){let a=!1,i,o=n&&n.map_custom,l=this.maps;for(let s=this.mapFrom,h=this.innerMapTo;s<h;this.runCustom(s,o,t,e,r,a,!0),s++){this.runCustom(s,o,t,e,r,a,!1);let u=l[s],c=i&&i[s];if(null!=c&&u.touches(t,c)){let e=u.recover(c);if(!isNaN(e)){t=e;continue}}let p=r?u.mapNodeResult(t,e,n):u.mapResult(t,e,n);if(null!=p.recover){let e=this.getMirror(s);if(e>s&&e<h)if(p.deleted){let r=this.maps[e].recover(p.recover);if(!isNaN(r)){s=e,t=r;continue}}else i||(i=Object.create(null)),i[e]=p.recover}p.deleted&&(a=!0),t=p.pos}return s?t:new wo(t,a)}}class gl extends xl{static{this.empty=new gl}constructor(t,e,r=0,s=[]){super(),this.posMaps=t||[],this.customMaps=e||Array(this.posMaps.length).fill(null),this.mapFrom=r,this.mapTo=void 0,this.mirror=s,this.assertValid()}assertValid(){this.posMaps.length!==this.customMaps.length&&(this.customMaps.length=this.posMaps.length),this.mirror.length%2!=0&&(this.mirror.length-=1)}get length(){return this.posMaps.length}getMappingCount(){return this.innerMapTo-this.mapFrom}isMappable(){return!!this.length}getPosMaps(){return this.posMaps}getMirror(t){let e=this.mirror.findIndex((e=>e===t));return e<0?-1:this.mirror[e+(e%2?-1:1)]}setMirror(t,e){this.mirror.push(t,e)}forEachMirror(t,e){let r=this.mirror,s=r.length;for(let n=0,a=0;a<s;++n,a+=2)t.call(e,r[a],r[a+1],n)}shiftMirrors(t){let e=this.mirror;for(let r=0,s=e.length;r<s;++r)e[r]+=t}unshift(t,e,r){this.posMaps.unshift(t||Ho.empty),this.customMaps.unshift(e),this.shiftMirrors(1),null!=r&&this.setMirror(0,r+1)}push(t,e,r){this.posMaps.push(t||Ho.empty),this.customMaps.push(e),null!=r&&this.setMirror(this.length-1,r)}prependMapping(t){this.posMaps.unshift(...t.posMaps),this.customMaps.unshift(...t.customMaps),this.shiftMirrors(t.length),t instanceof gl&&this.mirror.push(...t.mirror)}appendMapping(t){let e=this.length;this.posMaps.push(...t.posMaps),this.customMaps.push(...t.customMaps),t instanceof gl&&t.forEachMirror(((t,r)=>{this.setMirror(e+t,e+r)}))}prepend(...t){t.forEach(this.prependMapping,this)}append(...t){t.forEach(this.appendMapping,this)}concat(...t){let e=this.slice();return t.forEach(e.appendMapping,e),e}slice(t,e){let r=this.length;[t,e]=me(t,e,r);let s=this.mirror;if(0===t&&e===this.length)s=s.slice();else{let r=[];for(let n=0,a=s.length;n<a;n+=2){let a=s[n],i=s[n+1];a>=t&&a<e&&i>=t&&i<e&&r.push(a-t,i-t)}s=r}return new this.constructor(this.posMaps.slice(t,e),this.customMaps.slice(t,e),0,s)}withMappingRange(t,e,r){let{mapFrom:s,mapTo:n}=this;"number"==typeof t&&(this.mapFrom=t),"number"==typeof e&&(this.mapTo=e),r(this),this.mapFrom=s,this.mapTo=n}computeChangeRange(){return Qo(this.posMaps)}invert(){let t=[],e=[],{posMaps:r,customMaps:s}=this;for(let n=this.length-1;n>=0;--n)t.push(r[n].invert()),e.push(s[n]?.invert());let n=this.length-1,a=this.mirror.map((t=>n-t));return new this.constructor(t,e,0,a)}static from(...t){let e=new this;return e.append(...t),e}}class fl extends Qn{}class ml{constructor(t,e){this.succ=!0,this.doc=t,this.commentStore=e}get comments(){return this.commentStore}get comment_store(){return this.commentStore}set comment_store(t){this.commentStore=t}}class bl{constructor(t){this.succ=!1,this.reason=t}get failed(){return this.reason}}let _l={ok:(t,e)=>new ml(t,e),fail:t=>new bl(t),fromReplace(t,e,r,s){try{return _l.ok(t.replace(e,r,s))}catch(t){if(t instanceof ta)return _l.fail(t.message);throw t}},fromReplaceFunc(t,e){try{return _l.ok(t.call(e))}catch(t){if(t instanceof ta)return _l.fail(t.message);throw t}}},Al=0,Ml=1,wl=0,Sl=1,Cl=2;function Pl(t){return Error(`Comment id: "${t}" Not Found`)}function Tl(t,e){return Error(`Request #${t}, only ${e} replies`)}class vl{constructor(t){if(void 0===t.status)throw Error("not given a status");this.id=t.id,"number"==typeof t.author?(this.author=t.author,this.authorName=t.authorName||""):(this.author=0,this.authorName=t.authorName||t.author||""),this.status=t.status,this.text=t.text||"",this.timestamp=t.timestamp||0,this.lastModified=t.lastModified||0}isOpened(){return this.status===wl}isResolved(){return this.status===Sl}isAuthor(t){return 0===t||this.author===t}editText(t){if(!t.text)throw Error("empty string is not allowed");return this.copy({text:t.text,lastModified:t.lastModified})}toJSON(){return{id:this.id,author:this.author,authorName:this.authorName||void 0,status:this.status,text:this.text,timestamp:this.timestamp,lastModified:this.lastModified}}static fromJSON(t){throw Error("BaseComment is not constructable.")}}class Il extends vl{constructor(t){super(t)}isReopened(){return this.status===Cl}copy(t){return new this.constructor(Object.assign(this.toObject(),t))}toObject(){return this.toJSON()}static fromJSON(t){return new this(t)}}class kl extends vl{constructor(t){super(t),this.type=t.type,this.replies=t.replies||[]}isDiscussion(){return this.type===Al}isSuggestion(){return this.type===Ml}getReply(t){return this._ensureReplyIndexInBound(t),this.replies[t]}_ensureReplyIndexInBound(t){if(t<0||t>=this.replies.length)throw Tl(t,this.replies.length)}reply(t){if(this.status===Sl){let e=this.constructor.createReply({...t,status:Cl});return this.copy({status:wl,replies:this.replies.concat(e)})}{let e=this.constructor.createReply(t);return this.copy({replies:this.replies.concat(e)})}}resolve(t){return this._setStatus(t,Sl,Sl)}reopen(t){return this._setStatus(t,wl,Cl)}_setStatus(t,e,r){if(this.status===e)return this;let s=this.constructor.createReply({...t,status:r,text:""});return this.copy({status:e,replies:this.replies.concat(s)})}removeReply(t){this._ensureReplyIndexInBound(t.replyIndex);let e=this.replies.slice();return e.splice(t.replyIndex,1),this.copy({replies:e})}editReplyText(t){this._ensureReplyIndexInBound(t.replyIndex);let e=this.replies.slice();return e[t.replyIndex]=e[t.replyIndex].editText(t),this.copy({replies:e})}copy(t){return new this.constructor(Object.assign(this.toObject(),t))}toObject(){return Object.assign(super.toJSON(),{type:this.type,replies:this.replies.slice()})}toJSON(){return Object.assign(super.toJSON(),{type:this.type,replies:this.replies.map((t=>t.toJSON()))})}static fromJSON(t){return new this({...t,replies:(t.replies||[]).map(this.createReply,this)})}static createReply(t){return Il.fromJSON(t)}}var El=r(312);class Nl extends El.EventEmitter{constructor(t){super(),this.comments=t||Object.create(null)}getCommentById(t,e=!1){let r=this.comments[t]||null;if(!r&&e)throw Pl(t);return r}getBy(t,e){return this.getCommentById(t,e)}getComments(){return this.comments}getAllCommentIds(){return Object.keys(this.comments)}getAllCommentValues(){return Object.values(this.comments)}getCommentCount(){return this.getAllCommentIds().length}forEach(t,e){let r=this.comments;for(let s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&t.call(e,r[s],s,r))break}copy(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this,{comments:{...this.comments}})}setComment(t){let e=this.copy();return e.comments[t.id]=t,this.emit("commentChanged",[[t.id,t.toJSON()]]),e}deleteComment(t){let e=this.copy();return delete e.comments[t],this.emit("commentChanged",[[t,null]]),e}createComment(t,e){if(this.getCommentById(e.id))throw Error(`Comment id "${e.id}" already exists in store`);if(t!==e.author)throw Error("Can only create comment by yourself");if(e.type===Al&&e.status!==wl)throw Error("Can only create open status discussion.");let r=this.constructor.createComment(e);return this.setComment(r)}removeComment(t,e){if(!this.getCommentById(e.target,!0).isAuthor(t))throw Error("Can only remove comment created by self");return this.deleteComment(e.target)}reply(t,e){let r=this.getCommentById(e.target,!0);return this.setComment(r.reply(e))}removeReply(t,e){let r=this.getCommentById(e.target,!0),s=r.getReply(e.replyIndex);if(!s.isAuthor(t))throw Error(`No permission to remove reply in reply \`${s.id}\` of comment \`${r.id}\` by uid ${t}.`);return this.setComment(r.removeReply(e))}resolve(t,e){let r=this.getCommentById(e.target,!0);return this.setComment(r.resolve(e))}reopen(t,e){let r=this.getCommentById(e.target,!0);return this.setComment(r.reopen(e))}editCommentText(t,e){let r=this.getCommentById(e.target,!0);if(!r.isOpened())throw Error(`Unable to edit comment text in a resolved comment \`${r.id}\`.`);if(!r.isAuthor(t))throw Error(`No permission to edit comment text in comment \`${r.id}\` by uid ${t}.`);return this.setComment(r.editText(e))}editReplyText(t,e){let r=this.getCommentById(e.target,!0);if(!r.isOpened())throw Error(`Unable to edit reply text in a resolved comment \`${r.id}\`.`);let s=r.getReply(e.replyIndex);if(s.isResolved()||s.isReopened()&&!s.text)throw Error(`Unable to edit reply text in a resolved/reopened reply \`${s.id}\` of comment \`${r.id}\`.`);if(!s.isAuthor(t))throw Error(`No permission to edit reply text in reply \`${s.id}\` of comment \`${r.id}\` by uid ${t}.`);return this.setComment(r.editReplyText(e))}toJSON(){return Object.keys(this.comments).map((t=>this.comments[t].toJSON()))}static fromJSON(t){return new this(this.createComments(t||[]))}static createComment(t){return kl.fromJSON(t)}static createComments(t){return t.reduce(((t,e)=>{let r=this.createComment(e);return t[r.id]=r,t}),Object.create(null))}}var Ll=r(745);let jl=function(t,e){for(var r=-1,s=e.length,n=t.length;++r<s;)t[n+r]=e[r];return t},Rl=function(t){return le(t)&&"[object Arguments]"==oe(t)};var Ol=Object.prototype,Dl=Ol.hasOwnProperty,Fl=Ol.propertyIsEnumerable,Bl=Rl(function(){return arguments}())?Rl:function(t){return le(t)&&Dl.call(t,"callee")&&!Fl.call(t,"callee")},Vl=Qt?Qt.isConcatSpreadable:void 0;let Hl=function(t){return ri(t)||Bl(t)||!!(Vl&&t&&t[Vl])},Gl=function t(e,r,s,n,a){var i=-1,o=e.length;for(s||(s=Hl),a||(a=[]);++i<o;){var l=e[i];r>0&&s(l)?r>1?t(l,r-1,s,n,a):jl(a,l):n||(a[a.length]=l)}return a};var zl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ul=/^\w*$/;let ql=function(t,e){if(ri(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||he(t))||Ul.test(t)||!zl.test(t)||null!=e&&t in Object(e)},$l=function(t){if(!Zt(t))return!1;var e=oe(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var Jl=Kt["__core-js_shared__"],Wl=function(){var t=/[^.]+$/.exec(Jl&&Jl.keys&&Jl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Zl=Function.prototype.toString;let Yl=function(t){if(null!=t){try{return Zl.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Xl=/^\[object .+?Constructor\]$/,Kl=Object.prototype,Ql=Function.prototype.toString,th=Kl.hasOwnProperty,eh=RegExp("^"+Ql.call(th).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let rh=function(t){return!!Zt(t)&&(!Wl||!(Wl in t))&&($l(t)?eh:Xl).test(Yl(t))},sh=function(t,e){var r=null==t?void 0:t[e];return rh(r)?r:void 0};var nh=sh(Object,"create"),ah=Object.prototype.hasOwnProperty,ih=Object.prototype.hasOwnProperty;function oh(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}oh.prototype.clear=function(){this.__data__=nh?nh(null):{},this.size=0},oh.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=+!!e,e},oh.prototype.get=function(t){var e=this.__data__;if(nh){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ah.call(e,t)?e[t]:void 0},oh.prototype.has=function(t){var e=this.__data__;return nh?void 0!==e[t]:ih.call(e,t)},oh.prototype.set=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=nh&&void 0===e?"__lodash_hash_undefined__":e,this};let lh=function(t,e){return t===e||t!=t&&e!=e},hh=function(t,e){for(var r=t.length;r--;)if(lh(t[r][0],e))return r;return-1};var uh=Array.prototype.splice;function ch(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}ch.prototype.clear=function(){this.__data__=[],this.size=0},ch.prototype.delete=function(t){var e=this.__data__,r=hh(e,t);return!(r<0)&&(r==e.length-1?e.pop():uh.call(e,r,1),--this.size,!0)},ch.prototype.get=function(t){var e=this.__data__,r=hh(e,t);return r<0?void 0:e[r][1]},ch.prototype.has=function(t){return hh(this.__data__,t)>-1},ch.prototype.set=function(t,e){var r=this.__data__,s=hh(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this};var ph=sh(Kt,"Map");let dh=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},yh=function(t,e){var r=t.__data__;return dh(e)?r["string"==typeof e?"string":"hash"]:r.map};function xh(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function gh(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var s=arguments,n=e?e.apply(this,s):s[0],a=r.cache;if(a.has(n))return a.get(n);var i=t.apply(this,s);return r.cache=a.set(n,i)||a,i};return r.cache=new(gh.Cache||xh),r}xh.prototype.clear=function(){this.size=0,this.__data__={hash:new oh,map:new(ph||ch),string:new oh}},xh.prototype.delete=function(t){var e=yh(this,t).delete(t);return this.size-=+!!e,e},xh.prototype.get=function(t){return yh(this,t).get(t)},xh.prototype.has=function(t){return yh(this,t).has(t)},xh.prototype.set=function(t,e){var r=yh(this,t),s=r.size;return r.set(t,e),this.size+=+(r.size!=s),this},gh.Cache=xh;var fh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mh=/\\(\\)?/g,bh=function(t){var e=gh(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(fh,(function(t,r,s,n){e.push(s?n.replace(mh,"$1"):r||t)})),e}));let _h=function(t,e){return ri(t)?t:ql(t,e)?[t]:bh(oi(t))};var Ah=1/0;let Mh=function(t){if("string"==typeof t||he(t))return t;var e=t+"";return"0"==e&&1/t==-Ah?"-0":e},wh=function(t,e){e=_h(e,t);for(var r=0,s=e.length;null!=t&&r<s;)t=t[Mh(e[r++])];return r&&r==s?t:void 0};function Sh(t){var e=this.__data__=new ch(t);this.size=e.size}function Ch(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new xh;++e<r;)this.add(t[e])}Sh.prototype.clear=function(){this.__data__=new ch,this.size=0},Sh.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Sh.prototype.get=function(t){return this.__data__.get(t)},Sh.prototype.has=function(t){return this.__data__.has(t)},Sh.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ch){var s=r.__data__;if(!ph||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new xh(s)}return r.set(t,e),this.size=r.size,this},Ch.prototype.add=Ch.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ch.prototype.has=function(t){return this.__data__.has(t)};let Ph=function(t,e){for(var r=-1,s=null==t?0:t.length;++r<s;)if(e(t[r],r,t))return!0;return!1},Th=function(t,e,r,s,n,a){var i=1&r,o=t.length,l=e.length;if(o!=l&&!(i&&l>o))return!1;var h=a.get(t),u=a.get(e);if(h&&u)return h==e&&u==t;var c=-1,p=!0,d=2&r?new Ch:void 0;for(a.set(t,e),a.set(e,t);++c<o;){var y=t[c],x=e[c];if(s)var g=i?s(x,y,c,e,t,a):s(y,x,c,t,e,a);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!Ph(e,(function(t,e){if(!d.has(e)&&(y===t||n(y,t,r,s,a)))return d.push(e)}))){p=!1;break}}else if(!(y===x||n(y,x,r,s,a))){p=!1;break}}return a.delete(t),a.delete(e),p};var vh=Kt.Uint8Array;let Ih=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,s){r[++e]=[s,t]})),r},kh=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var Eh=Qt?Qt.prototype:void 0,Nh=Eh?Eh.valueOf:void 0;let Lh=function(t,e,r,s,n,a,i){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!a(new vh(t),new vh(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return lh(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var o=Ih;case"[object Set]":var l=1&s;if(o||(o=kh),t.size!=e.size&&!l)break;var h=i.get(t);if(h)return h==e;s|=2,i.set(t,e);var u=Th(o(t),o(e),s,n,a,i);return i.delete(t),u;case"[object Symbol]":if(Nh)return Nh.call(t)==Nh.call(e)}return!1},jh=function(t,e,r){var s=e(t);return ri(t)?s:jl(s,r(t))},Rh=function(t,e){for(var r=-1,s=null==t?0:t.length,n=0,a=[];++r<s;){var i=t[r];e(i,r,t)&&(a[n++]=i)}return a};var Oh=Object.prototype.propertyIsEnumerable,Dh=Object.getOwnPropertySymbols,Fh=Dh?function(t){return null==t?[]:Rh(Dh(t=Object(t)),(function(e){return Oh.call(t,e)}))}:function(){return[]};let Bh=function(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s};var Vh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hh=Vh&&"object"==typeof module&&module&&!module.nodeType&&module,Gh=Hh&&Hh.exports===Vh?Kt.Buffer:void 0;let zh=(Gh?Gh.isBuffer:void 0)||function(){return!1};var Uh=/^(?:0|[1-9]\d*)$/;let qh=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Uh.test(t))&&t>-1&&t%1==0&&t<e},$h=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Jh={};Jh["[object Float32Array]"]=Jh["[object Float64Array]"]=Jh["[object Int8Array]"]=Jh["[object Int16Array]"]=Jh["[object Int32Array]"]=Jh["[object Uint8Array]"]=Jh["[object Uint8ClampedArray]"]=Jh["[object Uint16Array]"]=Jh["[object Uint32Array]"]=!0,Jh["[object Arguments]"]=Jh["[object Array]"]=Jh["[object ArrayBuffer]"]=Jh["[object Boolean]"]=Jh["[object DataView]"]=Jh["[object Date]"]=Jh["[object Error]"]=Jh["[object Function]"]=Jh["[object Map]"]=Jh["[object Number]"]=Jh["[object Object]"]=Jh["[object RegExp]"]=Jh["[object Set]"]=Jh["[object String]"]=Jh["[object WeakMap]"]=!1;let Wh=function(t){return function(e){return t(e)}};var Zh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yh=Zh&&"object"==typeof module&&module&&!module.nodeType&&module,Xh=Yh&&Yh.exports===Zh&&Yt.process,Kh=function(){try{var t=Yh&&Yh.require&&Yh.require("util").types;if(t)return t;return Xh&&Xh.binding&&Xh.binding("util")}catch(t){}}(),Qh=Kh&&Kh.isTypedArray,tu=Qh?Wh(Qh):function(t){return le(t)&&$h(t.length)&&!!Jh[oe(t)]},eu=Object.prototype.hasOwnProperty;let ru=function(t,e){var r=ri(t),s=!r&&Bl(t),n=!r&&!s&&zh(t),a=!r&&!s&&!n&&tu(t),i=r||s||n||a,o=i?Bh(t.length,String):[],l=o.length;for(var h in t)(e||eu.call(t,h))&&!(i&&("length"==h||n&&("offset"==h||"parent"==h)||a&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||qh(h,l)))&&o.push(h);return o};var su=Object.prototype;let nu=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||su)};var au=(i=Object.keys,o=Object,function(t){return i(o(t))}),iu=Object.prototype.hasOwnProperty;let ou=function(t){if(!nu(t))return au(t);var e=[];for(var r in Object(t))iu.call(t,r)&&"constructor"!=r&&e.push(r);return e},lu=function(t){return null!=t&&$h(t.length)&&!$l(t)},hu=function(t){return lu(t)?ru(t):ou(t)},uu=function(t){return jh(t,hu,Fh)};var cu=Object.prototype.hasOwnProperty;let pu=function(t,e,r,s,n,a){var i=1&r,o=uu(t),l=o.length;if(l!=uu(e).length&&!i)return!1;for(var h=l;h--;){var u=o[h];if(!(i?u in e:cu.call(e,u)))return!1}var c=a.get(t),p=a.get(e);if(c&&p)return c==e&&p==t;var d=!0;a.set(t,e),a.set(e,t);for(var y=i;++h<l;){var x=t[u=o[h]],g=e[u];if(s)var f=i?s(g,x,u,e,t,a):s(x,g,u,t,e,a);if(!(void 0===f?x===g||n(x,g,r,s,a):f)){d=!1;break}y||(y="constructor"==u)}if(d&&!y){var m=t.constructor,b=e.constructor;m!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(d=!1)}return a.delete(t),a.delete(e),d};var du=sh(Kt,"DataView"),yu=sh(Kt,"Promise"),xu=sh(Kt,"Set"),gu=sh(Kt,"WeakMap"),fu="[object Map]",mu="[object Promise]",bu="[object Set]",_u="[object WeakMap]",Au="[object DataView]",Mu=Yl(du),wu=Yl(ph),Su=Yl(yu),Cu=Yl(xu),Pu=Yl(gu),Tu=oe;(du&&Tu(new du(new ArrayBuffer(1)))!=Au||ph&&Tu(new ph)!=fu||yu&&Tu(yu.resolve())!=mu||xu&&Tu(new xu)!=bu||gu&&Tu(new gu)!=_u)&&(Tu=function(t){var e=oe(t),r="[object Object]"==e?t.constructor:void 0,s=r?Yl(r):"";if(s)switch(s){case Mu:return Au;case wu:return fu;case Su:return mu;case Cu:return bu;case Pu:return _u}return e});let vu=Tu;var Iu="[object Arguments]",ku="[object Array]",Eu="[object Object]",Nu=Object.prototype.hasOwnProperty;let Lu=function(t,e,r,s,n,a){var i=ri(t),o=ri(e),l=i?ku:vu(t),h=o?ku:vu(e);l=l==Iu?Eu:l,h=h==Iu?Eu:h;var u=l==Eu,c=h==Eu,p=l==h;if(p&&zh(t)){if(!zh(e))return!1;i=!0,u=!1}if(p&&!u)return a||(a=new Sh),i||tu(t)?Th(t,e,r,s,n,a):Lh(t,e,l,r,s,n,a);if(!(1&r)){var d=u&&Nu.call(t,"__wrapped__"),y=c&&Nu.call(e,"__wrapped__");if(d||y){var x=d?t.value():t,g=y?e.value():e;return a||(a=new Sh),n(x,g,r,s,a)}}return!!p&&(a||(a=new Sh),pu(t,e,r,s,n,a))},ju=function t(e,r,s,n,a){return e===r||(null!=e&&null!=r&&(le(e)||le(r))?Lu(e,r,s,n,t,a):e!=e&&r!=r)},Ru=function(t,e,r,s){var n=r.length,a=n,i=!s;if(null==t)return!a;for(t=Object(t);n--;){var o=r[n];if(i&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++n<a;){var l=(o=r[n])[0],h=t[l],u=o[1];if(i&&o[2]){if(void 0===h&&!(l in t))return!1}else{var c=new Sh;if(s)var p=s(h,u,l,t,e,c);if(!(void 0===p?ju(u,h,3,s,c):p))return!1}}return!0},Ou=function(t){return t==t&&!Zt(t)},Du=function(t){for(var e=hu(t),r=e.length;r--;){var s=e[r],n=t[s];e[r]=[s,n,Ou(n)]}return e},Fu=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},Bu=function(t){var e=Du(t);return 1==e.length&&e[0][2]?Fu(e[0][0],e[0][1]):function(r){return r===t||Ru(r,t,e)}},Vu=function(t,e,r){var s=null==t?void 0:wh(t,e);return void 0===s?r:s},Hu=function(t,e){return null!=t&&e in Object(t)},Gu=function(t,e,r){e=_h(e,t);for(var s=-1,n=e.length,a=!1;++s<n;){var i=Mh(e[s]);if(!(a=null!=t&&r(t,i)))break;t=t[i]}return a||++s!=n?a:!!(n=null==t?0:t.length)&&$h(n)&&qh(i,n)&&(ri(t)||Bl(t))},zu=function(t){return t},Uu=function(t){var e;return ql(t)?(e=Mh(t),function(t){return null==t?void 0:t[e]}):function(e){return wh(e,t)}},qu=function(t){if("function"==typeof t)return t;if(null==t)return zu;if("object"==typeof t){var e,r;return ri(t)?(e=t[0],r=t[1],ql(e)&&Ou(r)?Fu(Mh(e),r):function(t){var s=Vu(t,e);return void 0===s&&s===r?null!=t&&Gu(t,e,Hu):ju(r,s,3)}):Bu(t)}return Uu(t)},$u=function(t,e,r){for(var s=-1,n=Object(t),a=r(t),i=a.length;i--;){var o=a[++s];if(!1===e(n[o],o,n))break}return t};var Ju=(n=function(t,e){return t&&$u(t,e,hu)},function(t,e){if(null==t)return t;if(!lu(t))return n(t,e);for(var r=t.length,s=-1,a=Object(t);++s<r&&!1!==e(a[s],s,a););return t});let Wu=function(t,e){var r=-1,s=lu(t)?Array(t.length):[];return Ju(t,(function(t,n,a){s[++r]=e(t,n,a)})),s},Zu=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Yu=function(t,e){if(t!==e){var r=void 0!==t,s=null===t,n=t==t,a=he(t),i=void 0!==e,o=null===e,l=e==e,h=he(e);if(!o&&!h&&!a&&t>e||a&&i&&l&&!o&&!h||s&&i&&l||!r&&l||!n)return 1;if(!s&&!a&&!h&&t<e||h&&r&&n&&!s&&!a||o&&r&&n||!i&&n||!l)return-1}return 0},Xu=function(t,e,r){for(var s=-1,n=t.criteria,a=e.criteria,i=n.length,o=r.length;++s<i;){var l=Yu(n[s],a[s]);if(l){if(s>=o)return l;return l*("desc"==r[s]?-1:1)}}return t.index-e.index},Ku=function(t,e,r){e=e.length?ei(e,(function(t){return ri(t)?function(e){return wh(e,1===t.length?t[0]:t)}:t})):[zu];var s=-1;return e=ei(e,Wh(qu)),Zu(Wu(t,(function(t,r,n){return{criteria:ei(e,(function(e){return e(t)})),index:++s,value:t}})),(function(t,e){return Xu(t,e,r)}))},Qu=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var tc=Math.max,ec=function(){try{var t=sh(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),rc=Date.now,sc=function(t){var e=0,r=0;return function(){var s=rc(),n=16-(s-r);if(r=s,n>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ec?function(t,e){return ec(t,"toString",{configurable:!0,enumerable:!1,value:function(){return e},writable:!0})}:zu);let nc=function(t,e,r){if(!Zt(r))return!1;var s=typeof e;return("number"==s?!!(lu(r)&&qh(e,r.length)):"string"==s&&e in r)&&lh(r[e],t)};var ac=function(t,e){var r;return sc((r=tc((r=void 0,t.length-1),0),function(){for(var e=arguments,s=-1,n=tc(e.length-r,0),a=Array(n);++s<n;)a[s]=e[r+s];s=-1;for(var i=Array(r+1);++s<r;)i[s]=e[s];return i[r]=zu(a),Qu(t,this,i)}),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&nc(t,e[0],e[1])?e=[]:r>2&&nc(e[0],e[1],e[2])&&(e=[e[0]]),Ku(t,Gl(e,1),[])})),ic=Math.floor,oc=Math.min;let lc=function(t,e,r,s){var n=0,a=null==t?0:t.length;if(0===a)return 0;for(var i=(e=r(e))!=e,o=null===e,l=he(e),h=void 0===e;n<a;){var u=ic((n+a)/2),c=r(t[u]),p=void 0!==c,d=null===c,y=c==c,x=he(c);if(i)var g=s||y;else g=h?y&&(s||p):o?y&&p&&(s||!d):l?y&&p&&!d&&(s||!x):!d&&!x&&(s?c<=e:c<e);g?n=u+1:a=u}return oc(a,4294967294)};function hc(t){return(0,Ll.defineStore)(`comment-base-${t}`,{state:()=>({comments:[]}),getters:{getCommentById:({comments:t})=>e=>t.find((t=>t.id===e))??null},actions:{flush(t){t.comments&&(this.comments=ac(t.comments,["id"]))},updateByDelta(t){for(let[r,s]of t){var e;let t=(e=this.comments,lc(e,{id:r},qu("id",2))),n=this.comments[t]?.id===r;s?this.comments.splice(t,+!!n,s):n&&this.comments.splice(t,1)}}}})}let uc=Object.create(null);class cc{static{this.stepType=""}get stepType(){return this.jsonID}is(t){return this.stepType===t}prepare(){return this.doPrepare()}doPrepare(){return{step:this}}apply(t,e){try{let r=this.doApply(t,e);if(r instanceof pa)return _l.ok(r,e);if(r instanceof Nl)return _l.ok(t,r);if(r&&"object"==typeof r&&"boolean"==typeof r.succ)return r;else return _l.fail("string"==typeof r?r:`Invalid returned value of Step.prototype.doApply(). (${r})`)}catch(t){if(t instanceof ta||t instanceof fl)return _l.fail(t.message);throw t}}doApply(t,e){throw Error("must override")}invert(t,e){try{return this.doInvert(t,e)}catch(t){return uo().error("Caught exception during Step.invert()."),uo().error(t instanceof Error?t.stack:t),null}}doInvert(t,e){return null}posMap(t){return this.doCreatePosMap(t)??Ho.empty}doCreatePosMap(t){return null}customMap(t){return null}map(t){return this.doMap(t)}doMap(t){return null}relay(t,e,r){let s=r.apply(t,e);if(!s.succ)throw new ta(s.reason);return s.commentStore||(s.commentStore=e),s}deepCopy(t,e){return this.constructor.fromJSON(t,this.toJSON(e))}toJSON(t){let e={stepType:this.jsonID};for(let r in this)if(Object.hasOwn(this,r)){let s=this[r];e[r]=s&&"object"==typeof s&&"toJSON"in s&&"function"==typeof s.toJSON?s.toJSON(t):s}return e}static fromJSON(t,e){return this.stepClass(e.stepType).fromJSON(t,e)}static create(...t){return new this(...t)}static register(t,e=this){if(t in uc)throw RangeError(`Duplicate use of step JSON ID \`${t}\`.`);uc[t]=e,e.stepType=t,e.prototype.jsonID=t}static jsonID(t,e){return this.register(t,e),e}static stepClass(t){let e=uc[t];if(!e)throw RangeError(`No step named ${t}`);return e}static normalizeStepId(t){return t.replace(/V\d+$/i,"")}}cc.prototype.jsonID="";class pc extends cc{doApply(t,e){return t}static fromJSON(t,e){return new this}}class dc extends cc{constructor(t){super(),this.pos=t}checkNode(t){return this.constructor.checkNode(t)}resolvePos(t,e){return this.constructor.resolvePos(t,this.pos,e)}doApply(t,e){return this.applyAtPos(this.resolvePos(t,!0),e)}applyAtPos(t,e){return t.root}doInvert(t,e){let r=this.resolvePos(t);return r&&this.invertAtPos(r)}invertAtPos(t){return null}doCreatePosMap(t){let e=this.resolvePos(t);return e&&this.createPosMapAtPos(e)}createPosMapAtPos(t){return null}doMap(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e)}mapPos(t){let e=t.mapNodeResult(this.pos,1);return e.deleted?null:e.pos}static fromJSON(t,e){return new this(e.pos)}static checkNode(t){return!0}static resolvePos(t,e,r){let s=t.resolve(e),n=s.self;if(!n||!this.checkNode(n))if(!r)return null;else throw new ta(`No valid node at position ${e}.`);return s}}class yc extends(Do(co)){get comment_stores(){return this.commentStores}set comment_stores(t){this.commentStores=t}get maps(){return this.posMaps}set maps(t){this.posMaps=t}get customs(){return this.customMaps}set customs(t){this.customMaps=t}_updateSelection(t,e){return t.map(this.doc,e?this.toRemapping(e):this)}updateSelection(){let t=this._multiSelection;if(!t)return;let e=this._sel_at;e>=this.length||this.select(this._updateSelection(t,e),!0)}_select(t,e){return this._sel_at=this.steps?this.steps.length:0,super._select(...arguments)}storeSelection(){this._stored||(this._stored=[]),this._stored.push(this._multiSelection,this._selection,this._sel_at)}restoreSelection(t){let e=this._stored;if(!e)return!1;let r=e.length;return!!e.length&&(t?(this._multiSelection=e[0],this._selection=e[1],this._sel_at=e[2],e.length=0):(this._multiSelection=e[r-3],this._selection=e[r-2],this._sel_at=e[r-1],e.length=r-3),!0)}isMappable(){return!!this.length}getPosMaps(){return this.maps}mapRange(t,e,r){return Zo(this.maps,t,e,r)}mapResult(t,e,r){return Wo(this.maps,t,e,r)}map(t,e,r){return Jo(this.maps,t,e,r)}mapNodeRange(t,e,r){return Ko(this.maps,t,e,r)}mapNodeResult(t,e,r){return Xo(this.maps,t,e,r)}mapNode(t,e,r){return Yo(this.maps,t,e,r)}toRemapping(t){return new gl(this.maps,this.customs,t)}}class xc extends Qn{}class gc extends yc{constructor(t,e,r){super(t,e,r),this.docs=[],this.commentStores=[],this.steps=[],this.posMaps=[],this.customMaps=[]}get length(){return this.steps.length}get baseDoc(){return this.length?this.docs[0]:this.doc}get baseCommentStore(){return this.length?this.commentStores[0]:this.commentStore}get lastDoc(){let t=this.length;return t?this.docs[t-1]:void 0}get lastCommentStore(){let t=this.length;return t?this.commentStores[t-1]:void 0}get lastStep(){let t=this.length;return t?this.steps[t-1]:void 0}get lastPosMap(){let t=this.length;return t?this.posMaps[t-1]:void 0}get lastCustomMap(){let t=this.length;return t&&this.customMaps[t-1]||void 0}get selection(){return this.updateSelection(),this._selection}get multiSelection(){return this.updateSelection(),this._multiSelection}selectText(t,e,r=W){let{stateIndex:s}=r;return"number"==typeof s&&s<this.length&&(t=this.map(t,1,s),"number"==typeof e&&(e=this.map(e,1,s))),super.selectText(t,e,r)}selectNode(t,e=W){let{stateIndex:r}=e;return"number"==typeof r&&r<this.length&&(t=this.mapNode(t,1,r)),super.selectNode(t,e)}runWithSelectionRecovery(t){this.storeSelection();let e=t(this);return this.restoreSelection(),e}step(t,e){let r=this.maybeStep(t,e);if(!r.succ)throw new xc(r.reason);return this}maybeStep(t,e){return this.addStep(t.prepare().step)}addStep(t){let e=t.apply(this.doc,this.commentStore);return e.succ&&!e.commentStore&&(e.commentStore=this.commentStore),e.succ&&this.saveStepResult(t,e),e}saveStepResult(t,e){let{doc:r,commentStore:s}=this;this.docs.push(r),this.commentStores.push(s),this.steps.push(t),this.posMaps.push(t.posMap(r)),this.customMaps.push(t.customMap(r)),this.doc=e.doc,this.commentStore=e.commentStore,this.clearActiveMarks()}cherryPick(...t){return function(t,e,r,s,n=gl.empty,a=W){var i,o;i=e.length===r.length&&e.length===s.length,o=`In rebasing, the length of given steps (${e.length}), posMaps (${r.length}), customMaps (${s.length}) must be same.`,i||function(t){throw Error(t||"Assertion failed.")}(o);let{discardBase:l,suppressFailure:h}=a,u=e.length,c=new gl(r.map((t=>t?t.invert():Ho.empty)).reverse(),s.map((t=>t&&t.invert())).reverse());c.append(n,t),c.mapFrom=u;for(let r=0;r<u;++r){let s=e[r].map(c);if(--c.mapFrom,!s)continue;l||(s=s.deepCopy(t.schema));let n=t.maybeStep(s);if(!n.succ)if(h)continue;else throw new xc(n.reason);c.push(t.lastPosMap,t.lastCustomMap,c.mapFrom)}return c}(this,...t)}hasDoneReplace(){return this.steps.some((t=>"replace"===t.jsonID||"replaceAround"===t.jsonID))}toMapping(t,e){return new gl(this.posMaps.slice(t,e),this.customMaps.slice(t,e))}forEach(t,e){let{length:r,steps:s,posMaps:n,customMaps:a}=this;for(let i=0;i<r&&!t.call(e,s[i],n[i],a[i],i);++i);}}class fc extends cc{constructor(t,e){super(),this.root=t,this.comments=e}doApply(){return _l.ok(this.root.updateStateAndTrim({force:!0}),Nl.fromJSON(this.comments))}doInvert(t,e){return new fc(t,e.toJSON())}doCreatePosMap(t){return Ho.create([0,t.getContentSize(),this.root.getContentSize()])}doMap(){return this}static fromJSON(t,e){return new this(t.nodeFromJSON(e.root),e.comments)}}function mc(t,e,r,s=vn.empty){let n=function(t,e,r){let s=function(t,e){let r=t.depth,s=null,n=[],a=null;for(let i=e.openLeft;;--i){let o,l,h;if(i>=0)i>0?({type:o,attrs:l,content:h}=bc(e.content,i)):0==i&&(h=e.content),i<e.openLeft&&(h=h.cut(h.firstChild.nodeSize));else if(a){h=Tn.empty;let t=a[a.length+i-1];o=t.type,l=t.attrs}if(s&&(h=h.prepend(s)),0==h.size&&i<=0)break;let u=function(t,e,r,s){let n=!1;for(let e=0;e<t.childCount;e++)t.child(e).marks.length&&(n=!0);for(let a=r;a>=0;a--){let r=e.node(a).contentMatchAt(e.indexAfter(a)),i=s[a];i&&(r=r?.matchFragment(i.content));let o=r?.fillBefore(t);if(o)return{depth:a,fragment:(i?i.content.append(o):o).append(t)};if(n){let e=function(t,e){let r=[];for(let s=0;s<e.childCount;s++){let n=e.child(s),a=n.mark(n.marks.filter((e=>t.allowsMark(e.type))));if(!(t=t.matchNode(a)))return null;r.push(a)}return Tn.from(r)}(r,t);if(e)return{depth:a,fragment:i?i.content.append(e):e}}}}(h,t,r,n);if(u&&function(t,e,r,s,n){if(n<1)return!1;for(;e>r;e--){let r=t.node(e).contentMatchAt(t.indexAfter(e));if(r){for(let t=n-1;t>=0;t--)if(r.matchNode(bc(s.content,t)))return!0}}return!1}(t,r,u.depth,e,i)&&(u=null),u){if(u.fragment.size>0&&(n[u.depth]={content:u.fragment,openRight:i>0?0:e.openRight-i,depth:u.depth}),i<=0)break;s=null,r=u.depth-+(o==t.node(u.depth).type)}else{if(0==i){let e=t.node(0),r=e.contentMatchAt(t.index(0))?.findWrapping(h.firstChild.type,h.firstChild.attrs);if(!r||0==r.length)break;let s=r[r.length-1];if(!s.type.contentExpr.matches(s.attrs,h))break;a=[{type:e.type,attrs:e.attrs}].concat(r),({type:o,attrs:l}=s)}h.size?(h=o.contentExpr.start(l).fillBefore(h,!0)?.append(h),s=o.create(l,h)):s=null}}return n}(t,r),n=function(t,e){let{content:r,openRight:s}=function t(e,r,s,n){let a=Tn.empty,i=0,o=s[r];if(e.depth>r){let l=t(e,r+1,s,n||o);i=l.openRight+1,a=Tn.from(e.node(r+1).copy(l.content,null,null))}return o&&(a=a.append(o.content),i=o.openRight),n&&(a=a.append(e.node(r).contentMatchAt(e.indexAfter(r))?.fillBefore(Tn.empty,!0)),i=0),{content:a,openRight:i}}(t,0,e,!1);return new vn(r,t.depth,s||0)}(t,s),a=function(t,e,r){let s=function t(e,r,s,n,a,i,o){let l,h=e.childCount,u=h-+(o>0);l=i<0?r.contentMatchAt(u):1==h&&o>0?s.node(a).contentMatchAt(i?s.index(a):s.indexAfter(a)):s.node(a).contentMatchAt(s.indexAfter(a))?.matchFragment(e,h>0&&i?1:0,u);let c=n.node(a);if(o>0&&a<n.depth){let r=c.content.cutByIndex(n.indexAfter(a)).prepend(e.lastChild),u=l?.fillBefore(r,!0);if(u&&u.size&&i>0&&1==h&&(u=null),u){let r=t(e.lastChild.content,e.lastChild,s,n,a+1,1==h?i-1:-1,o-1);if(r){let t=e.lastChild.copy(r);return u.size?e.cutByIndex(0,h-1).append(u,t):e.replaceChild(h-1,t)}}}o>0&&l&&(l=l.matchNode(1==h&&i>0?s.node(a+1):e.lastChild));let p=n.index(a);if(p==c.childCount&&!c.type.compatibleContent(r.type))return null;let d=l?.fillBefore(c.content,!0,p);if(!d)return null;if(o>0){let t=function t(e,r,s,n,a){let i,o=e.content,l=o.childCount;if(i=a>=0?s.node(n).contentMatchAt(s.indexAfter(n))?.matchFragment(o,+(a>0),l):e.contentMatchAt(l),r>0){let e=t(o.lastChild,r-1,s,n+1,1==l?a-1:-1);o=o.replaceChild(l-1,e)}return e.copy(o.append(i?.fillBefore(Tn.empty,!0)))}(e.lastChild,o-1,s,a+1,1==h?i-1:-1);e=e.replaceChild(h-1,t)}return e=e.append(d),n.depth>a&&(e=e.append(function t(e,r){let s=e.node(r),n=s.contentMatchAt(0)?.fillBefore(s.content,!0,e.index(r));return e.depth>r&&(n=n?.append(t(e,r+1))),s.copy(n,null,null,{filter_copyable:!0})}(n,a+1))),e}(r.content,t.node(0),t,e,0,r.openLeft,r.openRight);if(!s)return null;for(var n=s,a=r.openLeft,i=e.depth;a>0&&i>0&&1==n.childCount;)n=n.firstChild.content,a--,i--;return new vn(n,a,i)}(t,e,n);return a?{fittedLeft:n,fitted:a}:null}(t.resolve(e),t.resolve(r),s);return n?n.fitted:null}fc.register("overwrite"),ve(gc.prototype,{overwrite(t,e){if("doc"!==t.type)throw Error(`Invalid root type: ${t.type}`);return this.step(new fc(this.schema.nodeFromJSON(t),e))}});function bc(t,e){for(let r=1;r<e;r++)t=t.firstChild.content;return t.firstChild}class _c extends cc{constructor(t,e,r,s){super(),this.from=t,this.to=e,this.slice=r,this.structure=!!s}doPrepare(){return{step:new this.constructor(this.from,this.to,this.slice.deepCopy({target:"replace"}),this.structure),replacements:[{pos:this.from,insertionSlice:this.slice}]}}doApply(t){let{from:e,to:r,slice:s}=this;return this.structure&&Mc(t,e,r)?"Structure replace would overwrite content":t.replace(e,r,s.deepCopy({target:"replace"}))}doInvert(t){return new this.constructor(this.from,this.from+this.slice.size,t.slice(this.from,this.to).deepCopy({target:"replace"}))}doCreatePosMap(t){return Ho.create([this.from,this.to-this.from,this.slice.size])}doMap(t){let e=t.mapRange(this.from,this.to);return e.deleted?null:new this.constructor(e.from,Math.max(e.from,e.to),this.slice)}static fromJSON(t,e){return new this(e.from,e.to,vn.fromJSON(t,e.slice))}}_c.register("replace");class Ac extends cc{constructor(t,e,r,s,n,a,i,o){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=s,this.slice=n,this.insert=a,this.structure=!!i,this.skipSuggest=!!o}doPrepare(){return{step:new this.constructor(this.from,this.to,this.gapFrom,this.gapTo,this.slice.deepCopy({target:"replace"}),this.insert,this.structure,this.skipSuggest)}}doApply(t){if(this.structure&&(Mc(t,this.from,this.gapFrom)||Mc(t,this.gapTo,this.to)))return"Structure gap-replace would overwrite content";let e=t.slice(this.gapFrom,this.gapTo);if(e.openLeft||e.openRight)return"Gap is not a flat range";let r=this.slice.deepCopy({target:"replace"}).insertAt(this.insert,e.content);return r?t.replace(this.from,this.to,r):"Content does not fit in gap"}doInvert(t){let e=this.gapTo-this.gapFrom;return new this.constructor(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from).deepCopy({target:"replace"}),this.gapFrom-this.from,this.structure)}doCreatePosMap(t){return Ho.create([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}doMap(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),s=t.map(this.gapFrom,-1),n=t.map(this.gapTo,1);return e.deleted&&r.deleted||s<e.pos||n>r.pos?null:new this.constructor(e.pos,r.pos,s,n,this.slice,this.insert,this.structure)}static fromJSON(t,e){return new this(e.from,e.to,e.gapFrom,e.gapTo,vn.fromJSON(t,e.slice),e.insert,e.structure)}}function Mc(t,e,r){let s=t.resolve(e),n=r-e,a=s.depth;for(;n>0&&a>0&&s.indexAfter(a)===s.node(a).childCount;)a--,n--;if(n>0){let t=s.node(a).maybeChild(s.indexAfter(a));for(;n>0;){if(!t||t.type.isLeaf)return!0;t=t.firstChild,n--}}return!1}Ac.register("replaceAround"),ve(gc.prototype,{fitSlice(t,e,r){return mc(this.doc,t,e,r)},getReplaceStep(t,e,r){let s=this.fitSlice(t,e,r);return s?new _c(t,e,s):null},replace(t,e=t,r,s){let n=vn.from(r);if(t===e&&0===n.size)return this;let a=this.getReplaceStep(t,e,n);return a?this.step(a,s):this},delete(t,e){return this.replace(t,e,vn.empty)},insert(t,e){return this.replace(t,t,e)}});class wc extends dc{constructor(t,e){super(t),this.attrs=e}applyAtPos(t,e){let{doc:r,pos:s,self:n}=t,a=this.attrs;if(a){let t=a.synocomment;if(t&&Array.isArray(t)&&t.length>0){let r;for(let s=0;s<t.length;++s){let n=t[s];if(e.getCommentById(n)){r&&r.push(n);continue}r||(r=t.slice(0,s))}r&&(a=Object.assign({},this.attrs,{synocomment:r.length?r:null}))}}let i=a?n.copy(n.content,n.type.settableAttrValues(a)):n.type.create(null,n.content,n.marksRaw);return r.replace(s,s+n.nodeSize,vn.from(i))}invertAtPos(t){let e=t.self;return new this.constructor(t.pos,e.type.invertAttrs(e.attrs,this.attrs))}doMap(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.attrs)}static fromJSON(t,e){return new this(null!=e.pos?e.pos:e.from,e.attrs)}}function Sc(t,e){let r=t.doc.resolve(e).self;if(!r)throw new xc(`No node at pos ${e}.`);return r}cc.jsonID("setNodeAttrs",wc),ve(gc.prototype,{setNodeAttrs(t,e){let r=Sc(this,t);if(e?!sn.checkAttrs(r.type.attrs,e):null!==e)throw new xc(`Invalid attrs for node type ${r.type.name}. ${JSON.stringify(e)}`);return this.step(new wc(t,e))},clearNodeAttrs(t){let e=Sc(this,t);if(e.type.clearable){let r;rt(e.type.attrs,((t,e)=>{t.clearable&&(r||(r=Object.create(null)),r[e]=null)})),r&&this.setNodeAttrs(t,r)}return this},overwriteNodeAttrs(t,e){let r=Sc(this,t);return this.setNodeAttrs(t,r.type.completeAttrValues(e))}});class Cc extends dc{applyAtPos(t){return t.root.replace(t.pos,t.pos+t.self.nodeSize,vn.empty)}invertAtPos(t){return new Pc(t.pos,t.self.deepCopy({target:"replace"}))}createPosMapAtPos(t){return Ho.create([t.pos,t.self.nodeSize,0])}static fromJSON(t,e){return new this(e.pos??e.from)}}Cc.register("deleteNode"),ve(gc.prototype,{deleteNode(t){return Cc.resolvePos(this.doc,t,!0),this.step(new Cc(t))}});class Pc extends cc{constructor(t,e){super(),this.pos=t,this.node=e}doPrepare(){return{step:new this.constructor(this.pos,this.node.deepCopy({target:"replace"})),replacements:[{pos:this.pos,insertionSlice:this.node}]}}doApply(t){return t.replace(this.pos,this.pos,vn.from(this.node.deepCopy({target:"replace"})))}doInvert(t){return new Cc(this.pos)}doCreatePosMap(t){return Ho.create([this.pos,0,this.node.nodeSize])}doMap(t){let{pos:e,deleted:r}=t.mapResult(this.pos,1);return r?null:new this.constructor(e,this.node)}static fromJSON(t,e){return new this(e.pos,t.nodeFromJSON(e.node))}}function Tc(t,e,r){let s=JSON.stringify(t.mark.toJSON()),n=r.get(s);n&&n.count===t.count-1?(n.to=t.to,n.count=t.count):(r.set(s,t),e.push(t))}function vc(t,e,r){let s=r?"_addMark":"_removeMark";for(let r=e.length-1;r>=0;--r){let{from:n,to:a,mark:i}=e[r];t[s](n,a,i)}}function Ic(t,e){return new vn(function t(e,r,s){let n=[];for(let a=0;a<e.childCount;a++){let i=e.child(a);i.isInline?i=r(i,s,a):i.childCount&&(i=i.copy(t(i.content,r,i))),n.push(i)}return Tn.fromArray(n)}(t.content,e,t.possibleParent),t.openLeft,t.openRight)}Pc.register("insertNode"),ve(gc.prototype,{insertNode(t,e,r){return this.step(new Pc(t,e),r)}});class kc extends cc{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t,e){let r=this.mark;if(r.type.is("Tracking")){let t=[],s=!1;for(let n of r.attrs.id)e.getCommentById(n)?t.push(n):s=!0;s&&(r=r.type.create({...r.attrs,id:t}))}let s=Ic(t.slice(this.from,this.to),((t,e,s)=>{let n=e.contentMatchAt(s+1);return n&&n.allowsMark(r.type)?t.mark(r.addToSet(t.marks)):t}));return _l.fromReplace(t,this.from,this.to,s)}invert(){return new Ec(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new kc(e.pos,r.pos,this.mark)}static fromJSON(t,e){return new kc(e.from,e.to,t.markFromJSON(e.mark))}}cc.jsonID("addMark",kc);class Ec extends cc{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(t){let e=Ic(t.slice(this.from,this.to),function(t,e){let r=this.mark.removeFromSet(t.marks);if(t.marks!==r&&e.type.enableLocalAttrs&&e.type.isMarksBlock&&e.state.inherited_text_marks){let t=this.mark.type.isInSet(e.state.inherited_text_marks);t&&(r=t.addToSet(r))}return t.mark(r)}.bind(this));return _l.fromReplace(t,this.from,this.to,e)}invert(){return new kc(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new Ec(e.pos,r.pos,this.mark)}static fromJSON(t,e){return new Ec(e.from,e.to,t.markFromJSON(e.mark))}}function Nc(t){if(!t)return null;{if("function"==typeof t)return t;if(Array.isArray(t))return t.length?()=>t:null;let e=[t];return()=>e}}cc.jsonID("removeMark",Ec),ve(gc.prototype,{handleMarksBy(t,e,r,s){var n;if(t===e)return this;n=s,s=function(){let t=n(...arguments);return t?Array.isArray(t)?0!==t.length?t:null:[t]:null};let a=0,i=new Map,o=[],l=new Map,h=[],u=[];this.doc.nodesInside(t,e,((n,c,p,d)=>{if(n.type.isInline){++a;let u=n.marks,y=s(u,"inline");if(!y)return;let x=y===u,g=r&&d.contentMatchAt(p+1);for(let s of y){let p;if(x)p=!0;else if(s instanceof yn)p=!!s.isInSet(u);else{if(!(s=s.isInSet(u)))continue;p=!0}if(r){if(p||!g||!g.allowsMark(s.type))continue}else if(!p)continue;let d={from:Math.max(c,t),to:Math.min(c+n.nodeSize,e),mark:s,count:a};if(r){let t=s.type.isInSet(u);t&&Tc(Object.assign(Object.create(null),d,{mark:t}),o,i),Tc(d,h,l)}else Tc(d,o,i)}}else if(n.type.isMarksBlock){if(c<t||c+n.nodeSize>e)return;let a=n.textMarks,i=s(a,"text"),o=n.type.is("ListBlock")&&n.type.isValidListBlock(n)?n.listMarks:null,l=o&&s(o,"list");if(!i&&!l)return;let h=Object.create(null);i&&(h.textMarks=yn.setToJSON(i.reduce(((t,e)=>e.type.supportTextblock?e[r?"addToSet":"removeFromSet"](t):t),a))),l&&(h.listMarks=yn.setToJSON(l.reduce(((t,e)=>e.type.supportListBlock?e[r?"addToSet":"removeFromSet"](t):t),o))),u.push({pos:c,attrs:h})}}),{preset:"editor"}),vc(this,o,!1);for(let t=u.length-1;t>=0;--t){let{pos:e,attrs:r}=u[t];this.setNodeAttrs(e,r)}return vc(this,h,!0),this},_addMark(t,e,r){return this.step(new kc(t,e,r))},_removeMark(t,e,r){return this.step(new Ec(t,e,r))},addMarks(t,e,r){let s=Nc(r);return s?this.handleMarksBy(t,e,!0,s):this},removeMarks(t,e,r){let s=Nc(r);return s?this.handleMarksBy(t,e,!1,s):this},clearMarks(t,e){return this.removeMarks(t,e,(t=>t))}});class Lc extends cc{constructor(){super()}map(t){return this}}class jc extends Lc{constructor(t){super(),this.attrs=t}apply(t,e){return _l.ok(t.replaceRootAttrs(t.type.settableAttrValues(this.attrs)),e)}invert(t){return new jc(t.type.invertAttrs(t.attrs,this.attrs))}toJSON(){return{stepType:this.jsonID,attrs:this.attrs}}static fromJSON(t,e){return new jc(e.attrs)}}function Rc(t,e,r){return(0==e||t.canReplace(e,t.childCount))&&(r==t.childCount||t.canReplace(0,r))}function Oc(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let s=t.$from.node(r),n=t.$from.index(r),a=t.$to.indexAfter(r);if(r<t.depth&&s.canReplace(n,a,e))return r;if(0==r||!Rc(s,n,a)||s.type.unbreakable)break}}function Dc(t){let e,r=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let s=t.depth;;--s){let n=t.$from.node(s),a=t.$from.index(s),i=t.$to.indexAfter(s);if(s<t.depth&&n.canReplace(a,i,r)&&(e=s),!1===n.type.canSelectionLeave||0==s||!Rc(n,a,i))break}return e}function Fc(t,e,r,s=t){let n={type:e,attrs:r},a=function(t,e){let{parent:r,startIndex:s,endIndex:n}=t,a=r.contentMatchAt(s)?.findWrapping(e.type,e.attrs);if(!a)return null;let i=a.length?a[0]:e;return r.canReplaceWith(s,n,i.type,i.attrs)?a:null}(t,n),i=a&&function(t,e){let{parent:r,startIndex:s,endIndex:n}=t,a=r.child(s),i=e.type.contentExpr.start(e.attrs).findWrapping(a.type,a.attrs);if(!i)return null;let o=i.length?i[i.length-1]:e,l=o.type.contentExpr.start(o.attrs);for(let t=s;t<n;t++)l=l&&l.matchNode(r.child(t));return l&&l.validEnd()?i:null}(s,n);return i?a.concat(n).concat(i):null}function Bc(t,e,r=1,s,n){let a=t.resolve(e),i=a.depth-r;if(i<0||!a.parent.canReplace(a.index(),a.parent.childCount)||!a.parent.canReplace(0,a.indexAfter()))return!1;for(let t=a.depth-1;t>i;t--){let e=a.node(t),r=a.index(t);if(!e.canReplace(0,r)||!e.canReplaceWith(r,e.childCount,s||a.node(t+1).type,s?n:a.node(t+1).attrs))return!1;s=null}let o=a.indexAfter(i);return a.node(i).canReplaceWith(o,o,s||a.node(i+1).type,s?n:a.node(i+1).attrs)}function Vc(t,e){let r=t.resolve(e),s=r.index();return Hc(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(s,s+1)}function Hc(t,e){return t&&e&&!t.isLeaf&&t.canAppend(e)}function Gc(t,e,r=-1){let s=t.resolve(e);for(let t=s.depth;;t--){let n,a;if(t==s.depth?(n=s.nodeBefore,a=s.nodeAfter):r>0?(n=s.node(t+1),a=s.node(t).maybeChild(s.index(t)+1)):(n=s.node(t).maybeChild(s.index(t)-1),a=s.node(t+1)),n&&!n.isTextblock&&Hc(n,a))return e;if(0===t||!s.node(t).type.canSelectionLeave)break;e=r<0?s.before(t):s.after(t)}}function zc(t,e,r,s){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r,s))return e;if(0==n.parentOffset)for(let t=n.depth-1;t>=0;t--){let e=n.index(t);if(n.node(t).canReplaceWith(e,e,r,s))return n.before(t+1);if(e>0)return null}if(n.parentOffset==n.parent.content.size)for(let t=n.depth-1;t>=0;t--){let e=n.indexAfter(t);if(n.node(t).canReplaceWith(e,e,r,s))return n.after(t+1);if(e<n.node(t).childCount)return null}}cc.jsonID("setRootNodeAttrs",jc),gc.prototype.lift=function(t,e){let{$from:r,$to:s,depth:n}=t,a=r.before(n+1),i=s.after(n+1),o=a,l=i,h=Tn.empty,u=0;for(let t=n,s=!1;t>e;t--)s||r.index(t)>0?(s=!0,h=Tn.from(r.node(t).copy(h)),u++):o--;let c=Tn.empty,p=0;for(let t=n,r=!1;t>e;t--)r||s.after(t+1)<s.end(t)?(r=!0,c=Tn.from(s.node(t).copy(c)),p++):l++;return this.step(new Ac(o,l,a,i,new vn(h.append(c),u,p),h.size-u,!0,!0))},gc.prototype.wrap=function(t,e){let r=Tn.empty;for(let t=e.length-1;t>=0;t--)r=Tn.from(e[t].type.create(e[t].attrs,r));let s=t.start,n=t.end;return this.step(new Ac(s,n,s,n,new vn(r,0,0),e.length,!0))},gc.prototype.setRootNodeAttrs=function(t){let e=this.doc;if(!t||!sn.checkAttrs(e.type.attrs,t))throw RangeError(`Invalid attrs ${t} for node type ${e.type.name}`);return this.step(new jc(t))},gc.prototype.split=function(t,e=1,r,s){let n=this.doc.resolve(t),a=Tn.empty,i=Tn.empty;for(let t=n.depth,o=n.depth-e;t>o;t--){let e=n.node(t);a=Tn.from(e.copy(a,e.type.clearBackwardAttrValues())),r?(s=sn.copyableAttrs(r.attrs,Object.assign(Object.create(null),e.attrs,s)),i=Tn.from(r.create(s,i)),r=null):i=Tn.from(e.type.create(sn.copyableAttrs(e.type.attrs,e.attrs),i)),s=null}return this.step(new _c(t,t,new vn(a.append(i),e,e,!0)))},gc.prototype.join=function(t,e=1,r=!1){if(r&&(t<e||t+e>this.doc.content.size))return this;let s=new _c(t-e,t+e,vn.empty,!0);return r?this.maybeStep(s):this.step(s),this};class Uc extends cc{constructor(t,e){super(),this.from=t,this.to=e}checkResolvedPos(t,e,r){let s=t.resolve(e),n=s.self;return n&&(null==r||r===e+n.nodeSize)?s:null}checkNode(t,e,r){let s=this.checkResolvedPos(t,e,r);return s&&s.self}checkPathData(t,e,r){let s=new un(t.resolve(e));return s.node&&(null==r||e+s.node.nodeSize===r)?s:null}mapRange(t,e,r){return new Co(t.mapNodeResult(this.from,1,e),t.mapNodeResult(this.to,-1,r))}checkMapResultDeleted(t,e){return t.deleted||e.deleted||t.pos>=e.pos}mapNodeResult(t,e,r){let s=t.mapNodeResult(e,1),n=t.mapNodeResult(r,-1);return{deleted:this.checkMapResultDeleted(s,n),from:s.pos,to:n.pos}}}class qc extends Uc{constructor(t,e,r){super(t,e),this.index=r}resolveIndex(t){let e=t.$pos,r=t.depth-1,s=e.node(r).childCount-1;return{old_index:ge(e.index(r),0,s),new_index:ge(this.index,0,s)}}apply(t,e){let r=this.checkPathData(t,this.from,this.to);if(!r)return _l.fail("No valid node in given from.");this.checkPosMap(t)||this._genPosMap(t,r);let{old_index:s,new_index:n}=this.resolveIndex(r);if(s===n)return _l.ok(t,e);let a=r.$pos,i=r.depth-1,o=a.node(i),l=r.node.copy(r.node.content),h=o.content.replaceChild(s,l).moveTo(s,n),u=o.copy(h);return _l.fromReplace(t,a.before(i),a.after(i),new vn(Tn.from(u),0,0))}checkPosMap(t){return this.cache_doc===t&&this.pos_map}_genPosMap(t,e){let r;if(this.cache_doc=t,!e)return this.pos_map=Go.empty;let{old_index:s,new_index:n}=this.resolveIndex(e);if(s===n)return this.pos_map=Go.empty;let a=e.node.nodeSize,i=e.$pos,o=e.depth-1;return r=s<n?i.start(o)+i.node(o).content.offsetAt(n+1)-a:i.start(o)+i.node(o).content.offsetAt(n),this.pos_map=new Go([e.pos,a,r])}genPosMap(t){return t?this.checkPosMap(t)?this.pos_map:this._genPosMap(t,this.checkPathData(t,this.from,this.to)):this.pos_map||Go.empty}posMap(t){return this.genPosMap(t)}invert(t){let e=this.checkPathData(t,this.from,this.to);if(!e)return null;let r=this.mapNodeResult(this.posMap(t),this.from,this.to);return new qc(r.from,r.to,e.$pos.index(e.depth-1))}map(t){let e=this.mapNodeResult(t,this.from,this.to);return e.deleted?null:new this.constructor(e.from,e.to,this.index)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to,index:this.index}}static fromJSON(t,e){return new qc(e.from,e.to,e.index)}}cc.jsonID("orderNode",qc);class $c{constructor(t,e,r,s,n,a){this.type_attrs=t,this.attrs=e,this.builts=r?Object.create(null):null,this.name_path=s||[],this.index_path=n||[],this.value=a,this.cur_type_attrs=this.type_attrs,this.cur_attrs=this.attrs,this.cur_builts=this.builts,this.cur_name_path=0,this.cur_index_path=0,this.cur_type_attr=null,this.cur_attr=null,this.cur_built=null,this.status=0,this.walkAttrs()}get success(){return this.status>=0}walkAttrs(){for(let t=0,e=this.name_path.length;t<e;++t)if(!this.advance())return}advance(){return 0===this.status&&(this.status=this._advance(),this.success)}walk(t,e){return t&&t[e]}build(t,e,r){return t&&(t[e]=r)}_advance(){let{cur_type_attrs:t,cur_attrs:e,cur_builts:r,cur_name_path:s,cur_index_path:n}=this,a=this.name_path[s++];if(null==a)return-1;let i=t[a];if(!i)return-1;let o=s===this.name_path.length;if(o){if(!i.array)return-1;this.cur_type_attr=i,this.cur_attr=this.walk(e,a),this.cur_built=this.build(r,a,this.value),t=null,e=null,r=null}else{for(;i.array;)if(i=i.array,e=this.walk(e,a),r=this.build(r,a,Object.create(null)),null==(a=this.index_path[n++]))return-1;if(!i.deep)return-1;t=i.deep,e=this.walk(e,a),r=this.build(r,a,Object.create(null))}return this.cur_type_attrs=t,this.cur_attrs=e,this.cur_builts=r,this.cur_name_path=s,this.cur_index_path=n,+!!o}}class Jc extends Uc{constructor(t,e,r){super(t,e),this.path=null==r?null:Array.isArray(r)?r:[r]}get customMapName(){return tt()}_customMap(t){return null}customMap(t){let e=this._customMap(t);return e&&new el({[this.customMapName]:e})}get nodeTypeName(){return tt()}get namePath(){return null}getWalkerTypeAttrs(t){return t.nodeType(this.nodeTypeName).attrs}getWalkerNamePath(){return this.namePath}getWalkerIndexPath(){return this.path}getWalkerValue(){return Object.create(null)}doApply(t,e){let r=this.checkNode(t,this.from,this.to);if(!r)return`No node at given position ${this.from} - ${this.to}.`;let s=new $c(this.getWalkerTypeAttrs(t.type.schema),r.attrs,!0,this.getWalkerNamePath(),this.getWalkerIndexPath(),this.getWalkerValue());if(!s.success)return`Failed to build attrs at index ${s.cur_path} of path [${s.path}].`;if(this.applyWalker(s)){let e=r.copy(r.content,s.builts,void 0,{loose:!0});t=t.replace(this.from,this.to,new vn(e))}return t}applyWalker(t){return tt()}invert(t){let e=this.checkNode(t,this.from,this.to);if(!e)return null;let r=new $c(this.getWalkerTypeAttrs(t.type.schema),e.attrs,!1,this.getWalkerNamePath(),this.getWalkerIndexPath());return r.success?this.invertWalker(r):null}get invertStepCls(){return this.constructor}invertWalker(t){return tt()}get shouldMapCustom(){return!1}createMapCustom(){return Object.create(null)}checkMapCustom(t){return!0}map(t){let e,r=this.shouldMapCustom;r&&(e={map_custom:this.createMapCustom()});let s=this.mapRange(t,e);return s.deleted||r&&!this.checkMapCustom(e.map_custom)?null:this._map(t,s,r?e.map_custom:null)}_map(t,e,r){return new this.constructor(e.from,e.to,this.path)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to,path:this.path}}static fromJSON(t,e){return new this(e.from,e.to,e.path)}}class Wc extends Jc{constructor(t,e,r,s){super(t,e,r),this.index=s}get shouldMapCustom(){return!0}createMapCustom(){let t=super.createMapCustom();return t[this.customMapName]=[{index:this.index,bias:1,sticky:!0}],t}checkMapCustom(t){let e=t&&t[this.customMapName];return!!e&&e.every((t=>t&&!t.deleted))}_map(t,e,r){return new this.constructor(e.from,e.to,this.path,r[this.customMapName][0].index)}toJSON(t){let e=super.toJSON(t);return e.index=this.index,e}static fromJSON(t,e){return new this(e.from,e.to,e.path,e.index)}}class Zc extends Wc{constructor(t,e,r,s,n){super(t,e,r,s),this.value=n}_map(t,e,r){return new this.constructor(e.from,e.to,this.path,r[this.customMapName][0].index,this.value)}toJSON(t){let e=super.toJSON(t);return e.value=this.value,e}static fromJSON(t,e){return new this(e.from,e.to,e.path,e.index,e.value)}}class Yc extends Zc{_customMap(t){return new sl(this.from,[this.index,0,1])}getWalkerValue(){return[]}applyWalker(t){let{cur_attr:e,cur_built:r}=t;if(e)for(let t=0,s=this.index;t<s;++t)r.push(e[t]);if(r.push(this.value),e)for(let t=this.index,s=e.length;t<s;++t)r.push(e[t]);return!0}get invertStepCls(){return Xc}invertWalker(t){return new this.invertStepCls(this.from,this.to,this.path,this.index)}createMapCustom(){let t=super.createMapCustom();return t[this.customMapName][0].sticky=!1,t}}class Xc extends Wc{_customMap(t){return new sl(this.from,[this.index,1,0])}getWalkerValue(){return[]}applyWalker(t){let{cur_attr:e,cur_built:r}=t;if(e){for(let t=0,s=this.index;t<s;++t)r.push(e[t]);for(let t=this.index+1,s=e.length;t<s;++t)r.push(e[t])}return!0}get invertStepCls(){return Yc}invertWalker(t){let e=t.cur_attr;return new this.invertStepCls(this.from,this.to,this.path,this.index,e&&e[this.index])}}class Kc extends Zc{_customMap(t){return new nl(this.from,[this.index,1,this.value])}getWalkerValue(){return[]}applyWalker(t){let{cur_attr:e,cur_built:r}=t;if(!e)return!1;let s=nl.calcRangeInfo(this.index,1,this.value);if(!s)return!1;let{start:n,end:a,target:i}=s,o=function(t,s){for(let n=t;n<s;++n)r.push(e[n])};return o(0,s.from),s.forward?(o(n,a),o(i,n)):(o(a,i),o(n,a)),o(s.to,e.length),!0}invertWalker(t){if(!t.cur_attr)return null;let e=nl.invertRange(this.index,1,this.value);return e?new this.invertStepCls(this.from,this.to,this.path,e[0],e[2]):null}createMapCustom(){let t=super.createMapCustom();return t[this.customMapName].push({index:this.value,bias:1,sticky:!1}),t}_map(t,e,r){let s=r[this.customMapName];return new this.constructor(e.from,e.to,this.path,s[0].index,s[1].index)}}class Qc extends Zc{applyWalker(t){return t.cur_built[this.index]=this.value,!0}invertWalker(t){let{cur_type_attr:e,cur_attr:r}=t;return new this.invertStepCls(this.from,this.to,this.path,this.index,sn.invertAttr(e.array,r&&r[this.index],this.value))}}class tp extends Jc{constructor(t,e,r,s){super(t,e,r),this.value=s}_customMap(t){return new al(this.from)}getWalkerValue(){return this.value}applyWalker(t){return!0}invertWalker(t){return new this.invertStepCls(this.from,this.to,this.path,t.cur_attr)}_map(t,e,r){return new this.constructor(e.from,e.to,this.path,this.value)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to,path:this.path,value:this.value}}static fromJSON(t,e){return new this(e.from,e.to,e.path,e.value)}}gc.prototype.orderNode=function(t,e){return this.step(new qc(t,t+this.doc.nodeAt(t).nodeSize,e))};let ep={TYPE:"bar",BAR_DIR:"col",GROUPING:"standard",DATA_DIR:"row",ORIENTATION:"minMax",MARKER_SYMBOL:"circle",LEGEND_POSITION:"r",LABEL_POSITION:"t",LINE_DASH:"solid",BLANK_AS:"gap",BACKGROUND:"#FFFFFF"},rp={ROW:"row",COL:"col"},sp={BAR:"bar",LINE:"line",AREA:"area",PIE:"pie",SCATTER:"scatter",HYBRID:"hybrid"},np={STANDARD:"standard",STACKED:"stacked",PERCENT:"percentStacked"},ap={SEQUENCE:"minMax",REVERSE:"maxMin"},ip={CIRCLE:"circle",DIAMOND:"diamond",TRIANGLE:"triangle",SQUARE:"square",NONE:"none"},op={TOP:"t",LEFT:"l",RIGHT:"r",BOTTOM:"b"},lp={TOP:"t",LEFT:"l",RIGHT:"r",BOTTOM:"b",INSIDE_BASE:"inBase",INSIDE_END:"inEnd",INSIDE_CENTER:"inCenter"},hp={SOLID:"solid",DASH:"dash",DOT:"dot"},up={ZERO:"zero",GAP:"gap",SPAN:"span"};function cp(t){return null==t||""===t}function pp(t){return null!=t}function dp(t){return"[object Function]"===Object.prototype.toString.call(t)}function yp(t){return"number"==typeof t&&isFinite(t)}function xp(t){return"string"==typeof t}let gp={titleGap:8,legendWidth:72,padding:{top:32,bottom:32,left:16,right:16},plotGap:12,cm2pxMultiplier:72/2.54/.75};function fp(t){return 1.4*t}function mp(t,e){let r;for(;(r=t.length)&&null==t[r-1];)e&&(t=t.slice(),e=!1),t.pop();return t}function bp(t){return pp(t)?String(t):""}function _p(t){if(t.length<=7)return t;let e=parseInt(t.substr(1,2),16),r=parseInt(t.substr(3,2),16),s=parseInt(t.substr(5,2),16),n=Math.round(parseInt(t.substr(7,2),16)/255*100)/100;return`rgba(${e},${r},${s},${n})`}class Ap{constructor(t){this.chartInfo=t}initData(){let t=this.chartInfo.getEmptyCategory(),e=this.chartInfo.getEmptySeries();function r(t){let e=[];for(let r=0;r<t.length;r++)t[r]||e.push(r);return e}this._categoryIndexMap=r(t),this._seriesIndexMap=r(e);let s=this.chartInfo.getSeriesCat(),n=this.chartInfo.calcSeriesData(),a=(e,r)=>!t[r];for(let t of(n=n.filter(((t,r)=>!e[r])),s=s.filter(a),n))t.data=t.data.filter(a);this._category=this._processCategory(s),this._data=this._processData(n)}_getNullValue(){return null}_processCategory(t){for(let e=0,r=t.length;e<r;e++)cp(t[e])&&(t[e]="");return t}_processData(t){let e=this._getNullValue();for(let r=0,s=t.length;r<s;r++){let s=t[r].data;for(let t=0,r=s.length;t<r;t++)yp(s[t])||(s[t]=e);t[r].name=this._uniquifyName(t[r].name,r)}return t}_calcPlotBound(){let t=this.chartInfo.ensurePlotArea().ensureLayout();if(!t.getEnabled())return this.chartInfo.calcPlotBound();let e=(t.getTop()||0)*gp.cm2pxMultiplier,r=(t.getLeft()||0)*gp.cm2pxMultiplier;return{top:e,left:r,right:(t.getRight()||0)*gp.cm2pxMultiplier,bottom:(t.getBottom()||0)*gp.cm2pxMultiplier}}convert(t,e){return this._containerWidth=t||560,this._containerHeight=e||410,this._plotBound=this._calcPlotBound(),{title:this.convertTitle(),legend:this.convertLegend(),series:this.convertSeries(),color:this.convertColor(),backgroundColor:this.convertBackground(),textStyle:this.convertTextStyle(this.chartInfo.ensureGlobalTextStyle()),tooltip:this.convertTooltip(),animation:!1}}convertTitle(){let t={top:gp.padding.top,left:"center",itemGap:gp.titleGap},e=this.chartInfo.ensureChartTitle();e&&!e.getHidden()&&Object.assign(t,{text:e.getText(),textStyle:this.convertTextStyle(e.ensureTextStyle())});let r=this.chartInfo.ensureChartSubtitle();return r&&!r.getHidden()&&Object.assign(t,{subtext:r.getText(),subtextStyle:this.convertTextStyle(r.ensureTextStyle())}),t}convertLegend(){let t=this.chartInfo.ensureChartLegend();if(t.getHidden())return{show:!1};let e={selectedMode:!1,itemWidth:12,itemHeight:12,padding:0,formatter:this._getOriginName};switch(t.getPosition()){case"t":{let r=t.ensureTextStyle().getFontSize()||this.chartInfo.ensureGlobalTextStyle().getFontSize();e.top=this._plotBound.top-gp.plotGap-fp(r),e.orient="horizontal";break}case"b":e.bottom=gp.padding.bottom,e.orient="horizontal";break;case"l":e.top=this._plotBound.top,e.right=this._containerWidth-this._plotBound.left+gp.plotGap,e.orient="vertical";break;default:e.top=this._plotBound.top,e.left=this._containerWidth-this._plotBound.right+gp.plotGap,e.orient="vertical"}return e.textStyle=this.convertTextStyle(t.ensureTextStyle()),e.data=this._convertLegendIcon(),e}_convertLegendIcon(){return this._data.map((t=>({name:t.name,icon:"rect"})))}convertSeries(){return this._data.map(((t,e)=>this._convertSeries(this.chartInfo.ensureSeries(this._seriesIndexMap[e]),t)))}_convertSeries(t,e){let r={name:e.name,data:e.data,emphasis:this._convertSeriesEmphasis(),tooltip:{formatter:this._convertSeriesTooltipFormatter(t)}},s=t.ensureLabel();return s.getHidden()||(r.label=this._convertSeriesLabel(s,t)),r}_convertSeriesEmphasis(){return{itemStyle:{shadowColor:"rgba(0,0,0,0.5)",shadowBlur:6,shadowOffsetY:2}}}_convertSeriesLabel(t,e){let r={show:!0,position:this._switchSeriesLabelPosition(t,e),textBorderWidth:3,...this.convertTextStyle(t.ensureTextStyle())};return r.textBorderColor=r.position.startsWith("inside")?"auto":this.chartInfo.ensureChart().getBackgroundColor(),r}_switchSeriesLabelPosition(t){let e="top";switch(t.getPosition()){case"r":e="right";break;case"b":e="bottom";break;case"l":e="left"}return e}convertColor(){let t=this.chartInfo.getSeriesThemeColors();return this._data.map(((e,r)=>(r=this._seriesIndexMap[r],this.chartInfo.getSeriesColor(r)||t[r%t.length])))}convertBackground(){return _p(this.chartInfo.ensureChart().getBackgroundColor())}convertTextStyle(t){return{fontFamily:`"${t.getFontFamily()}"`,fontSize:t.getFontSize(),fontStyle:t.getItalic()?"italic":"normal",fontWeight:t.getBold()?"bold":"normal",color:t.getColor()}}convertTooltip(){return{show:!0,position:"top",transitionDuration:0,padding:[4,12],backgroundColor:"#606264",borderWidth:1,borderColor:"#FFF",extraCssText:"box-shadow: 0 1px 4px rgba(0,0,0,0.1); border-radius: 3px;"}}_convertSeriesTooltipFormatter(t){return e=>{let r="";e.name&&(r+=`<span class="syno-o-chart-tooltip-category">${Te(e.name)}</span><br>`),r+=`<span class="syno-o-chart-tooltip-icon" style="background-color: ${Te(e.color)}"></span>`;let s=this._getOriginName(e.seriesName),n=this._tooltipValueFormatter(e.value,t.getRightAxis()?"y2":"y1");return r+`<span class="syno-o-chart-tooltip-series">${s?Te(s)+": ":""}${Te(n)}</span>`}}_tooltipValueFormatter(t,e){return this._dataFormatter(t,e)}_dataFormatter(t,e){return dp(this.chartInfo.dataFormatter)?this.chartInfo.dataFormatter(t,e):t}_uniquifyName(t,e){return(1e3+e).toString().substr(1)+t}_getOriginName(t){return t.substr(3)}}class Mp extends Ap{constructor(t){super(t);let e=this.chartInfo.calcAxisBias();this._useAxis=[e<=0,e>=0]}_getGridSpace(t){return t&&t.getText()?fp(t.ensureTextStyle().getFontSize()||this.chartInfo.ensureGlobalTextStyle().getFontSize())+12:0}_calcGridBound(){let{top:t,left:e,right:r,bottom:s}=this._plotBound;return{top:t,left:e+this._getGridSpace(this._useAxis[0]&&this.chartInfo.ensureYAxis().ensureTitle()),right:r+this._getGridSpace(this._useAxis[1]&&this.chartInfo.ensureYAxis2().ensureTitle()),bottom:s+this._getGridSpace(this.chartInfo.ensureXAxis().ensureTitle())}}convert(t,e){let r=super.convert(t,e);return r.grid=this.convertGrid(),r.xAxis=this.convertXAxis(!1),r.yAxis=this.convertYAxis(!0),r}convertGrid(){return{containLabel:!0,...this._calcGridBound()}}convertXAxis(t){return this.convertCategoryAxis(this.chartInfo.ensureXAxis(),t)}convertYAxis(t){return[this.chartInfo.ensureYAxis(),this.chartInfo.ensureYAxis2()].map(((e,r)=>this.convertValueAxis(this._useAxis[r]&&e,t,"y"+(r+1))))}convertCategoryAxis(t,e){return{type:"category",data:this._category,inverse:t.ensureScaling().getRevert(),...this.convertAxis(t,e)}}convertValueAxis(t,e,r){if(!t)return{show:!1};let s={splitNumber:t.getTickNumber(),scale:!0,...this.convertAxis(t,e),...this.convertAxisScale(t.ensureScaling())};return!1!==s.axisLabel.show&&(s.axisLabel.formatter=t=>this._dataFormatter(t,r)),s}convertAxisScale(t){return{type:t.getLog()&&this.chartInfo.ensureChart().getGrouping()===np.STANDARD?"log":"value",min:t.getMin(),max:t.getMax()}}convertAxis(t,e){return{axisLine:{show:!1},axisTick:{show:!1},axisLabel:this.convertAxisLabel(t.ensureLabel(),e),splitLine:{lineStyle:this.convertAxisLine(t.ensureMajorGridLines(),e)},...this.convertAxisTitle(t.ensureTitle(),e)}}convertAxisLine(t,e){return{color:t.getHidden()?"transparent":t.getColor()}}convertAxisTitle(t,e){return!t||!t.getText()||t.getHidden()?{}:{name:t.getText(),nameTextStyle:this.convertTextStyle(t.ensureTextStyle()),nameLocation:"center",nameGap:e?56:28}}convertAxisLabel(t,e){return!t||t.getHidden()?{show:!1}:{show:!0,rotate:t.getRotate(),margin:e?12:4,...this.convertTextStyle(t.ensureTextStyle())}}convertLegend(){let t=super.convertLegend(),e=this.chartInfo.ensureChartLegend().getPosition();return("l"===e||"r"===e)&&(t.top=this._plotBound.top),t}_convertSeries(t,e){let r=super._convertSeries(t,e);return t.getRightAxis()&&(r.yAxisIndex=1),r.label&&(r.label.formatter=e=>this._labelValueFormatter(e.value,t.getRightAxis()?"y2":"y1")),r}_labelValueFormatter(t,e){return this._dataFormatter(t,e)}}class wp extends Mp{constructor(t){super(t),this.stacked=this.chartInfo.ensureChart().getGrouping()===np.STACKED}_getNullValue(){return this.stacked?0:null}convertValueAxis(t,e,r){let s=super.convertValueAxis(t,e,r);return this.stacked&&s.scale&&(s.scale=!1),s}_convertSeries(t,e){let r=super._convertSeries(t,e);return this.stacked&&(r.stack=t.getRightAxis()?"s0":"s1"),r}}class Sp extends wp{_convertSeries(t,e){let r=super._convertSeries(t,e);return Sp.fillSeriesOption(r,this.chartInfo,t,e)}_convertLegendIcon(){let t=super._convertLegendIcon();return t.forEach(((t,e)=>{t.icon=Sp.switchLegendIcon(this.chartInfo.ensureSeries(e).ensureMarker().getSymbol())})),t}static fillSeriesOption(t,e,r,s){t.type="line";let n=r.ensureMarker();t.symbol=Sp.switchSeriesMarker(n.getSymbol()),t.symbolSize=n.getSize();let a=r.ensureLineStyle(),i=a.getType();switch(i){case"dot":i="dotted";break;case"dash":i="dashed";break;default:i="solid"}return t.lineStyle={type:i,width:a.getWidth()},r.getSmooth()&&(t.smooth=!0),e.ensurePlotArea().getBlankAs()===up.SPAN&&(t.connectNulls=!0),t}static switchSeriesMarker(t){let e;switch(t){case ip.NONE:e="image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";break;case ip.DIAMOND:e="diamond";break;case ip.TRIANGLE:e="triangle";break;case ip.SQUARE:e="rect";break;default:e="circle"}return e}static switchLegendIcon(t){let e="line";switch(t){case ip.CIRCLE:e="circle";break;case ip.DIAMOND:e="diamond";break;case ip.TRIANGLE:e="triangle";break;case ip.SQUARE:e="rect"}return e}}class Cp extends Sp{_convertSeries(t,e){let r=super._convertSeries(t,e);return r.areaStyle={opacity:t.getOpacity()},r}}class Pp extends wp{convertXAxis(t){return this.chartInfo.ensureChart().getBarDir()===ep.BAR_DIR?super.convertXAxis(t):super.convertYAxis(t)}convertYAxis(t){return this.chartInfo.ensureChart().getBarDir()===ep.BAR_DIR?super.convertYAxis(t):super.convertXAxis(t)}_convertSeries(t,e){let r=super._convertSeries(t,e);return this.chartInfo.ensureChart().getBarDir()!==ep.BAR_DIR&&r.yAxisIndex&&(r.xAxisIndex=r.yAxisIndex,delete r.yAxisIndex),Pp.fillSeriesOption(r,this.chartInfo,t,e)}_switchSeriesLabelPosition(t){let e=this.chartInfo.ensureChart().getBarDir()!==ep.BAR_DIR,r=e?"right":"top";switch(t.getPosition()){case"inBase":r=e?"insideLeft":"insideBottom";break;case"inCenter":r="inside";break;case"inEnd":r=e?"insideRight":"insideTop"}return r}static fillSeriesOption(t){return t.type="bar",t}}class Tp extends Ap{_processCategory(t){t=super._processCategory(t);for(let e=0,r=t.length;e<r;e++)t[e]=this._uniquifyName(t[e],e);return t}_processData(t){t.length=1;let e=t[0].data;for(let t=0,r=e.length;t<r;t++){let r=e[t];e[t]={value:null==r?null:Math.abs(r),name:this._category[t]}}return t}convertColor(){let t=this.chartInfo.getSeriesThemeColors(),e=t.length,r=this.chartInfo.ensurePieSeries().getPieColor(),s=[];for(let n=0,a=this._data[0].data.length;n<a;n++){let a=this._categoryIndexMap[n];s[n]=r&&r[a]||t[a%e]}return s}_convertLegendIcon(){return this._category.map((t=>({name:t,icon:"rect"})))}convertSeries(){return[this._convertSeries(this.chartInfo.ensurePieSeries(),this._data[0])]}_convertSeries(t,e){let r=this._containerWidth-this._plotBound.left-this._plotBound.right,s=this._containerHeight-this._plotBound.top-this._plotBound.bottom,n=Math.min(r,s)/2;return{type:"pie",data:e.data,emphasis:this._convertSeriesEmphasis(),selectedMode:!1,center:[this._plotBound.left+r/2,this._plotBound.top+s/2],radius:[t.getPieHoleSize()/100*n,n],itemStyle:{borderColor:_p(t.getPieBorderColor())},tooltip:{formatter:this._convertSeriesTooltipFormatter(t)},label:this._convertSeriesLabel(t.ensureLabel())}}_convertSeriesLabel(t){return{show:t.getShowCat()||t.getShowVal()||t.getShowPercent(),formatter:e=>{let r=[];return t.getShowCat()&&r.push(this._getOriginName(e.name)),t.getShowVal()&&r.push(this._dataFormatter(e.value,"y1")),t.getShowPercent()&&r.push(r.length?`(${e.percent}%)`:`${e.percent}%`),r.join(" ")},...this.convertTextStyle(t.ensureTextStyle())}}_convertSeriesTooltipFormatter(){return t=>{let e="",r=this._getOriginName(t.name);return r&&(e+=`<span class="syno-o-chart-tooltip-category">${r}</span><br>`),e+=`<span class="syno-o-chart-tooltip-icon" style="background-color: ${t.color}"></span><span class="syno-o-chart-tooltip-series">${this._tooltipValueFormatter(t.value,"y1")}</span>`}}}class vp extends Mp{_processCategory(t){if(this._xHasNumber=!1,this.chartInfo.ensureXAxis().getTreatAsText())return super._processCategory(t);for(let e=0,r=t.length;e<r;e++)yp(t[e])?this._xHasNumber=!0:t[e]=null;return t}convertXAxis(){let t=this.chartInfo.ensureXAxis();return t.getTreatAsText()?super.convertXAxis():this.convertValueAxis(t,!1,"x")}_convertSeries(t,e){let r=super._convertSeries(t,e);r.type="scatter",this.chartInfo.ensureXAxis().getTreatAsText()||(r.data=r.data.map(((t,e)=>this._xHasNumber?[this._category[e],t]:[e,t])));let s=t.ensureMarker();return r.symbol=Sp.switchSeriesMarker(s.getSymbol()),r.symbolSize=s.getSize(),r}_convertLegendIcon(){let t=super._convertLegendIcon();return t.forEach(((t,e)=>{let r=Sp.switchLegendIcon(this.chartInfo.ensureSeries(e).ensureMarker().getSymbol());t.icon="line"===r?"rect":r})),t}_tooltipValueFormatter(t,e){return Array.isArray(t)?`${this._dataFormatter(t[0],"x")},${this._dataFormatter(t[1],e)}`:this._dataFormatter(t,e)}_labelValueFormatter(t,e){let r=Array.isArray(t)?t[1]:t;return this._dataFormatter(r,e)}}class Ip extends Mp{_convertSeries(t,e){let r=super._convertSeries(t,e);return t.getType(!0)===sp.BAR?Pp.fillSeriesOption(r,this.chartInfo,t,e):Sp.fillSeriesOption(r,this.chartInfo,t,e)}_convertLegendIcon(){let t=super._convertLegendIcon();return t.forEach(((t,e)=>{let r=this.chartInfo.ensureSeries(e);r.getType()===sp.LINE&&(t.icon=Sp.switchLegendIcon(r.ensureMarker().getSymbol()))})),t}_switchSeriesLabelPosition(t,e){return e.getType()===sp.BAR?Pp.prototype._switchSeriesLabelPosition.call(this,t,e):super._switchSeriesLabelPosition(t,e)}}let kp=Object.prototype.hasOwnProperty;class Ep{constructor(t,e){this.fillArgs(...arguments),e&&this.initSubConfig(e)}fillArgs(t,e){this._info=t,this._config=e}static get configName(){return""}static get subConfigList(){return null}static get configList(){return null}static get supportMap(){return kp.call(this,"_supportMap")||(this._supportMap=this.createSupportMap()),this._supportMap}static createSupportMap(){let t,e=Object.create(null);return(t=this.configList)&&t.forEach((t=>{e[t]=!0})),(t=this.subConfigList)&&t.forEach((t=>{e[t]=!0})),e}initSubConfig(t){let e=this.constructor.subConfigList;if(e)for(let r=0,s=e.length;r<s;++r){let s=e[r],n=t[s];if(pp(n)){let t="ensure"+li(s);(this["_"+t]||this[t]).call(this,n)}}}_cloneConfig(t){return Object.assign(Object.create(null),t)}_getConfig(t,e,r,s){return t&&pp(t[e])?t[e]:s||null==r?null:r}_setConfig(t,e,r){return pp(r)?t&&t[e]===r||((t=this._cloneConfig(t))[e]=r):(!t||e in t)&&(t=this._cloneConfig(t),delete t[e]),t}build(){let t=this.getRawConfig(),e,r=this.constructor.supportMap;for(let s in t)if(kp.call(t,s)){if(r[s])continue;e||(e=this._cloneConfig(t)),delete e[s]}let s=this.constructor.subConfigList;if(s&&s.length)for(let r=0,n=s.length;r<n;++r){let n,a=s[r],i=this["get"+li(a)](),o=Array.isArray(i);o?(n=mp(i.map((t=>t&&t.build())))).length||(n=null):n=i&&i.build(),(t&&a in t?!n||(o?!function(t,e){let r=Math.max(t?t.length:0,e?e.length:0);for(let s=0;s<r;++s)if((t&&t[s])!=(e&&e[s]))return!1;return!0}(n,t[a]):n!==t[a]):n)&&(e||(e=this._cloneConfig(t)),n?e[a]=n:delete e[a])}return e&&(t=e),t&&!function(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}(t)&&(t=null),this.setRawConfig(t),t}compute(t){let e,r=Object.create(null);if((e=this.constructor.subConfigList)&&e.length)for(let s=0,n=e.length;s<n;++s){let n,a=e[s],i=li(a),o="ensure"+i,l=this[o]();if(Array.isArray(l)){let e=this["get"+i+"Count"],r=e?e.call(this):l.length;n=[];for(let e=0;e<r;++e)n.push(this[o](e).compute(t))}else n=l.compute(t);r[a]=n}if((e=this.constructor.configList)&&e.length)for(let t=0,s=e.length;t<s;++t){let s=e[t],n=this["get"+li(s)];if(n){let t=n.call(this);null!=t&&(r[s]=t)}}return r}cloneRawConfig(){return Object.assign(Object.create(null),this.getRawConfig())}getRawConfig(){return this._config}setRawConfig(t){return this._config!==t&&(this._config=t,!0)}getChartInfo(){return this._info}getSubConfig(t){return this[t]}setSubConfig(t,e,r){return r||(e=this.createSubConfig(t,e)),this[t]=e}createSubConfig(t,e){let r=this.getChartInfo(),s=r.getConfigCls(t);if(!s)throw Error(`Unknown sub-config name. (${t})`);return e[0]!==r&&(e=[r].concat(e)),new s(...e)}getConfig(t,e,r){return this._getConfig(this.getRawConfig(),t,e,r)}setConfig(t,e){return this.setRawConfig(this._setConfig(this.getRawConfig(),t,e))}}let Np=["xAxis","yAxis","yAxis2","series","layout"],Lp=["blankAs","useRowHeader","useColumnHeader","switchRowColumn"],jp=["plotArea","title","subtitle","legend","textStyle"],Rp=["backgroundColor","chartType","barDir","grouping"];function Op(t,e){return t.index-e.index}let Dp=["min","max","orientation","logBase"],Fp=["hidden","color"],Bp=["title","label","scaling","majorGridLines"],Vp=["tickNumber","treatAsText"],Hp=["symbol","size"],Gp=["type","width"],zp=["label","marker","lineStyle"],Up=["type","color","axis2","smooth","opacity","holeSize","pieColors","pieBorderColor"],qp=["textStyle"],$p=["hidden","position"],Jp=["textStyle"],Wp=["hidden","position","rotate","showVal","showCat","showPercent"],Zp=["textStyle"],Yp=["hidden","text"],Xp={title:{fontSize:16,bold:!0},subtitle:{fontSize:13,color:"#7E8082"},axisTitle:{bold:!0},global:{fontFamily:"Arial",fontSize:12,italic:!1,bold:!1,color:"#000000"}},Kp=["fontFamily","fontSize","italic","bold","color"],Qp=["enabled","top","left","right","bottom"],td=[class extends Ep{static get configName(){return"plotArea"}static get subConfigList(){return Np}static get configList(){return Lp}initSubConfig(t){super.initSubConfig(this.fixConfig(t))}fixConfig(t){let{nonNumericAsZero:e,zeroStart:r,xAxisTitle:s,yAxisTitle:n}=t;if(!pp(e)&&!r&&!s&&!n)return t;if(t=this._cloneConfig(t),delete t.nonNumericAsZero,delete t.zeroStart,delete t.xAxisTitle,delete t.yAxisTitle,!t.blankAs&&pp(e)&&(t.blankAs=e?up.ZERO:up.GAP),!t.xAxis&&(s||r)){let e=t.xAxis=Object.create(null);s&&(e.title=s),r&&(e.scaling={min:0})}if(!t.yAxis&&(n||r)){let e=t.yAxis=Object.create(null);n&&(e.title=n),r&&(e.scaling={min:0})}return!t.yAxis2&&r&&(t.yAxis2={scaling:{min:0}}),t}getXAxis(){return this.getSubConfig("xAxis")}ensureXAxis(t){return this.getXAxis()||this.setSubConfig("xAxis",this.createSubConfig("axis",[t]),!0)}getYAxis(){return this.getSubConfig("yAxis")}ensureYAxis(t){return this.getYAxis()||this.setSubConfig("yAxis",this.createSubConfig("axis",[t]),!0)}getYAxis2(){return this.getSubConfig("yAxis2")}ensureYAxis2(t){return this.getYAxis2()||this.setSubConfig("yAxis2",this.createSubConfig("axis",[t]),!0)}_getSeries(){return this.getSubConfig("series")}_ensureSeries(t){return this._getSeries()||this.setSubConfig("series",Array.isArray(t)?t.map(((t,e)=>this.createSubConfig("series",[t,e]))):[],!0)}getSeries(t){let e=this._getSeries();return e?yp(t)?e[t]:e:null}ensureSeries(t,e){let r=this._ensureSeries();return yp(t)?r[t]||(r[t]=this.createSubConfig("series",[e,t])):r}getSeriesCount(){return this.getChartInfo().getSeriesCount()}getLayout(){return this.getSubConfig("layout")}ensureLayout(t){return this.getLayout()||this.setSubConfig("layout",this.createSubConfig("layout",[t]),!0)}getBlankAs(t){return this.getConfig("blankAs",ep.BLANK_AS,t)}setBlankAs(t){return this.setConfig("blankAs",t)}getUseRowHeader(){return this.getConfig("useRowHeader",!0)}setUseRowHeader(t){return this.setConfig("useRowHeader",!!t)}getUseColumnHeader(){return this.getConfig("useColumnHeader",!0)}setUseColumnHeader(t){return this.setConfig("useColumnHeader",!!t)}getSwitchRowColumn(){return this.getConfig("switchRowColumn",!1)}setSwitchRowColumn(t){return this.setConfig("switchRowColumn",!!t)}},class extends Ep{static get configName(){return"chart"}static get subConfigList(){return jp}static get configList(){return Rp}initSubConfig(t){super.initSubConfig(this.fixConfig(t))}fixConfig(t){let e=t.plotArea;if(!e||e.series)return t;let r=e.subCharts;if(!r||!r.length)return t;e=(t=this._cloneConfig(t)).plotArea=this._cloneConfig(e),delete e.subCharts;let s=e.series=[];for(let e=0,n=r.length;e<n;++e){let{type:n,series:a,barDir:i,grouping:o}=r[e];for(let t=0,e=a.length;t<e;++t){let e=this._cloneConfig(a[t]);e.type=n,s.push(e)}i&&(t.barDir=i),o&&(t.grouping=o)}return s.sort(Op),t.chartType=r.length>1?"hybrid":r[0].type,t}getPlotArea(){return this.getSubConfig("plotArea")}ensurePlotArea(t){return this.getPlotArea()||this.setSubConfig("plotArea",[t])}getTitle(){return this.getSubConfig("title")}ensureTitle(t){return this.getTitle()||this.setSubConfig("title",[t,"title"])}getSubtitle(){return this.getSubConfig("subtitle")}ensureSubtitle(t){return this.getSubtitle()||this.setSubConfig("subtitle",this.createSubConfig("title",[t,"subtitle"]),!0)}getLegend(){return this.getSubConfig("legend")}ensureLegend(t){return this.getLegend()||this.setSubConfig("legend",[t])}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(t){return this.getTextStyle()||this.setSubConfig("textStyle",[t,"global"])}getBackgroundColor(t){return this.getConfig("backgroundColor",ep.BACKGROUND,t)}setBackgroundColor(t){return this.setConfig("backgroundColor",t)}getChartType(t){return this.getConfig("chartType",ep.TYPE,t)}setChartType(t){return this.setConfig("chartType",t)}getBarDir(t){return this.getConfig("barDir",ep.BAR_DIR,t)}setBarDir(t){return this.setConfig("barDir",t)}getGrouping(t){return this.getConfig("grouping",ep.GROUPING,t)}setGrouping(t){return this.setConfig("grouping",t)}getType(t){return this.getChartType(t)}setType(t){return this.setChartType(t)}},class extends Ep{static get configName(){return"scaling"}static get configList(){return Dp}getMin(t){return this.getConfig("min",null,t)}setMin(t){return this.setConfig("min",yp(t)?t:null)}getMax(t){return this.getConfig("max",null,t)}setMax(t){return this.setConfig("max",yp(t)?t:null)}getOrientation(t){return this.getConfig("orientation",ep.ORIENTATION,t)}setOrientation(t){return this.setConfig("orientation",t)}getLogBase(t){return this.getConfig("logBase",null,t)}setLogBase(t){return this.setConfig("logBase",yp(t)?t:null)}getRevert(){return this.getOrientation()===ap.REVERSE}setRevert(t){return this.setOrientation(t?ap.REVERSE:ap.SEQUENCE)}getLog(){return!!pp(this.getLogBase())}setLog(t){return this.setLogBase(t?10:null)}},class extends Ep{static get configName(){return"majorGridLines"}static get configList(){return Fp}getHidden(t){return this.getConfig("hidden",!1,t)}setHidden(t){return this.setConfig("hidden",!!t)}getColor(t){return this.getConfig("color","#CCCCCC",t)}setColor(t){return this.setConfig("color",t)}},class extends Ep{static get configName(){return"axis"}static get subConfigList(){return Bp}static get configList(){return Vp}getTitle(){return this.getSubConfig("title")}ensureTitle(t){return this.getTitle()||this.setSubConfig("title",[t,"axisTitle"])}getLabel(){return this.getSubConfig("label")}ensureLabel(t){return this.getLabel()||this.setSubConfig("label",[t])}getScaling(){return this.getSubConfig("scaling")}ensureScaling(t){return this.getScaling()||this.setSubConfig("scaling",[t])}getMajorGridLines(){return this.getSubConfig("majorGridLines")}ensureMajorGridLines(t){return this.getMajorGridLines()||this.setSubConfig("majorGridLines",[t])}getTickNumber(t){return this.getConfig("tickNumber",5,t)}setTickNumber(t){return this.setConfig("tickNumber",yp(t)?t:null)}getTreatAsText(t){return this.getConfig("treatAsText",!1,t)}setTreatAsText(t){return this.setConfig("treatAsText",!!t)}},class extends Ep{constructor(t,e){!0===e?e=null:!1===e&&(e={symbol:ip.NONE}),super(t,e)}static get configName(){return"marker"}static get configList(){return Hp}getSymbol(t){return this.getConfig("symbol",ep.MARKER_SYMBOL,t)}setSymbol(t){return this.setConfig("symbol",t)}getSize(t){return this.getConfig("size",5,t)}setSize(t){return this.setConfig("size",yp(t)?t:null)}},class extends Ep{static get configName(){return"lineStyle"}static get configList(){return Gp}getType(t){return this.getConfig("type",ep.LINE_DASH,t)}setType(t){return this.setConfig("type",t)}getWidth(t){return this.getConfig("width",2,t)}setWidth(t){return this.setConfig("width",yp(t)?t:null)}},class extends Ep{constructor(t,e,r){super(t,e),this.index=yp(r)?r:0}static get configName(){return"series"}static get subConfigList(){return zp}static get configList(){return Up}getDefaultType(){let t=this.getChartInfo().ensureChart().getType();return t===sp.HYBRID?sp.BAR:t}getDefaultColor(t){let e=this.getChartInfo().getSeriesThemeColors();return e[t%e.length]}compute(t){let e=super.compute(t);if(t){let t=this.getChartInfo();t.dataHasCat()&&(e.cat=t.getSourceSeriesCat()),t.dataHasTx()&&(e.tx=t.getSourceSeriesTx(this.index)),e.val=t.getSourceSeriesVal(this.index)}return e}getLabel(){return this.getSubConfig("label")}ensureLabel(t){return this.getLabel()||this.setSubConfig("label",[t])}getMarker(){return this.getSubConfig("marker")}ensureMarker(t){return this.getMarker()||this.setSubConfig("marker",[t])}getLineStyle(){return this.getSubConfig("lineStyle")}ensureLineStyle(t){return this.getLineStyle()||this.setSubConfig("lineStyle",[t])}getType(t){let e=this.getConfig("type",null,t);return t||e?e:this.getDefaultType()}setType(t){return this.setConfig("type",t)}getColor(t){let e=this.getConfig("color",null,t);return t||e?e:this.getDefaultColor(this.index)}setColor(t){return this.setConfig("color",t)}getAxis2(t){return this.getConfig("axis2",!1,t)}setAxis2(t){return this.setConfig("axis2",!!t)}getSmooth(t){return this.getConfig("smooth",!1,t)}setSmooth(t){return this.setConfig("smooth",!!t)}getOpacity(t){return this.getConfig("opacity",.2,t)}setOpacity(t){return this.setConfig("opacity",yp(t)?t:null)}getHoleSize(t){return this.getConfig("holeSize",0,t)}setHoleSize(t){return this.setConfig("holeSize",t)}getPieColors(t){return this.getConfig("pieColors",null,t)}setPieColors(t){return this.setConfig("pieColors",Array.isArray(t)?mp(t,!0):null)}getPieBorderColor(t){return this.getConfig("pieBorderColor","#FFFFFF00",t)}setPieBorderColor(t){return this.setConfig("pieBorderColor",t)}getRightAxis(t){return this.getAxis2(t)}setRightAxis(t){return this.setAxis2(t)}getLineSmooth(t){return this.getSmooth(t)}setLineSmooth(t){return this.setSmooth(t)}getAreaOpacity(t){return this.getOpacity(t)}setAreaOpacity(t){return this.setOpacity(t)}getPieHoleSize(t){return this.getHoleSize(t)}setPieHoleSize(t){return this.setHoleSize(t)}getPieColor(t,e){let r=this.getPieColors(e);return r&&Array.isArray(r)?yp(t)?r[t]||this.getDefaultColor(t):r:null}setPieColor(t,e){if(yp(t)){let r=this.getPieColors();(r=r?r.slice():[])[t]=e,e=mp(r)}return this.setPieColors(e)}},class extends Ep{static get configName(){return"legend"}static get subConfigList(){return qp}static get configList(){return $p}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(t){return this.getTextStyle()||this.setSubConfig("textStyle",[t])}getHidden(t){return this.getConfig("hidden",!1,t)}setHidden(t){return this.setConfig("hidden",!!t)}getPosition(t){return this.getConfig("position",ep.LEGEND_POSITION,t)}setPosition(t){return this.setConfig("position",t)}},class extends Ep{static get configName(){return"label"}static get subConfigList(){return Jp}static get configList(){return Wp}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(t){return this.getTextStyle()||this.setSubConfig("textStyle",[t])}getHidden(t){return this.getConfig("hidden",!1,t)}setHidden(t){return this.setConfig("hidden",!!t)}getPosition(t){return this.getConfig("position",ep.LABEL_POSITION,t)}setPosition(t){return this.setConfig("position",t)}getRotate(t){return this.getConfig("rotate",0,t)}setRotate(t){return this.setConfig("rotate",t)}getShowVal(t){return this.getConfig("showVal",!1,t)}setShowVal(t){return this.setConfig("showVal",!!t)}getShowCat(t){return this.getConfig("showCat",!1,t)}setShowCat(t){return this.setConfig("showCat",!!t)}getShowPercent(t){return this.getConfig("showPercent",!1,t)}setShowPercent(t){return this.setConfig("showPercent",!!t)}},class extends Ep{constructor(t,e,r){xp(e)&&(e={text:e}),super(t,e,r)}fillArgs(t,e,r){super.fillArgs(...arguments),this.styleKey=r}static get configName(){return"title"}static get subConfigList(){return Zp}static get configList(){return Yp}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(t){return this.getTextStyle()||this.setSubConfig("textStyle",[t,this.styleKey])}getHidden(t){return this.getConfig("hidden",!1,t)}setHidden(t){return this.setConfig("hidden",!!t)}getText(t){return this.getConfig("text","",t)}setText(t){return this.setConfig("text",t)}},class extends Ep{constructor(t,e,r){super(t,e),this.defaultStyle=Xp[r]}static get configName(){return"textStyle"}static get configList(){return Kp}getStyleConfig(t,e){let r=this.getConfig(t,null,e);if(e||pp(r))return r;let s=this.defaultStyle&&this.defaultStyle[t];return pp(s)?s:this.getChartInfo().ensureGlobalTextStyle()["get"+li(t)]()}getFontFamily(t){return this.getStyleConfig("fontFamily",t)}setFontFamily(t){return this.setConfig("fontFamily",t)}getFontSize(t){return this.getStyleConfig("fontSize",t)}setFontSize(t){return this.setConfig("fontSize",t)}getItalic(t){return this.getStyleConfig("italic",t)}setItalic(t){return this.setConfig("italic",!!t)}getBold(t){return this.getStyleConfig("bold",t)}setBold(t){return this.setConfig("bold",!!t)}getColor(t){return this.getStyleConfig("color",t)}setColor(t){return this.setConfig("color",t)}},class extends Ep{static get configName(){return"layout"}static get configList(){return Qp}getEnabled(t){return this.getConfig("enabled",!1,t)}setEnabled(t){return this.setConfig("enabled",t)}getLeft(t){return this.getConfig("left",null,t)}setLeft(t){return this.setConfig("left",t)}getTop(t){return this.getConfig("top",null,t)}setTop(t){return this.setConfig("top",t)}getRight(t){return this.getConfig("right",null,t)}setRight(t){return this.setConfig("right",t)}getBottom(t){return this.getConfig("bottom",null,t)}setBottom(t){return this.setConfig("bottom",t)}}].reduce((function(t,e){return t[e.configName]=e,t}),Object.create(null)),ed=["#509BE6","#FFC100","#F26166","#AD70CC","#4DBF4D","#FF8F3D","#8E6F69","#00B6CE","#E25FBC","#4D5FFF","#27D790","#3B8795"],rd=class{constructor(t,e){this.readChartCfg(t),this.readOptionCfg(e),this._options=e}getConfigMap(){return td}getConfigCls(t){return this.getConfigMap()[t]}readChartCfg(t){this._config=new(this.getConfigCls("chart"))(this,t)}readOptionCfg(t){}getUseRowHeader(){return this.ensurePlotArea().getUseRowHeader()}getUseColumnHeader(){return this.ensurePlotArea().getUseColumnHeader()}getSwitchRowColumn(){return this.ensurePlotArea().getSwitchRowColumn()}dataHasCat(){return this.getSwitchRowColumn()?this.getUseColumnHeader():this.getUseRowHeader()}dataHasTx(){return this.getSwitchRowColumn()?this.getUseRowHeader():this.getUseColumnHeader()}setRawData(t){this.data=t}getRawData(){return this.data}cloneRawData(t){let e=this.getRawData();if(!e)return e;if(!t)return e.map((t=>t.slice()));{let t=[],r=this._getDataColNumber(e),s=this._getDataRowNumber(e);for(let n=0;n<r;++n){t[n]=[];for(let r=0;r<s;++r)t[n][r]=this._getData(e,r,n)}return t}}_getData(t,e,r){let s=t&&t[e]&&t[e][r];return null!=s?s:null}getData(t,e){return this._getData(this.getRawData(),t,e)}_getDataRowNumber(t){return t?t.length:0}getDataRowNumber(){return this._getDataRowNumber(this.getRawData())}_getDataColNumber(t){return t&&t[0]?t[0].length:0}getDataColNumber(){return this._getDataColNumber(this.getRawData())}ensureChart(){return this._config}ensureChartTitle(){return this.ensureChart().ensureTitle()}ensureChartSubtitle(){return this.ensureChart().ensureSubtitle()}ensureChartLegend(){return this.ensureChart().ensureLegend()}ensureChartLegendStyle(){return this.ensureChartLegend().ensureTextStyle()}ensureGlobalTextStyle(){return this.ensureChart().ensureTextStyle()}ensurePlotArea(){return this.ensureChart().ensurePlotArea()}ensureSeries(t){return this.ensurePlotArea().ensureSeries(t)}ensureSeriesLabel(t){return this.ensureSeries(t).ensureLabel()}ensureSeriesLabelStyle(t){return this.ensureSeriesLabel(t).ensureTextStyle()}ensurePieSeries(){return this.ensureSeries(0)}ensurePieLabel(){return this.ensurePieSeries().ensureLabel()}ensurePieLabelStyle(){return this.ensurePieLabel().ensureTextStyle()}ensureTitle(t){switch(t){case"title":return this.ensureChartTitle();case"subtitle":return this.ensureChartSubtitle();case"xTitle":return this.ensureXAxis().ensureTitle();case"yTitle":return this.ensureYAxis().ensureTitle();case"y2Title":return this.ensureYAxis2().ensureTitle();default:return null}}ensureTitleStyle(t){let e=this.ensureTitle(t);return e&&e.ensureTextStyle()}ensureXAxis(){return this.ensurePlotArea().ensureXAxis()}ensureYAxis(){return this.ensurePlotArea().ensureYAxis()}ensureYAxis2(){return this.ensurePlotArea().ensureYAxis2()}ensureAxis(t){switch(t){case"x":return this.ensureXAxis();case"y":return this.ensureYAxis();case"y2":return this.ensureYAxis2();default:return null}}ensureAxisScaling(t){let e=this.ensureAxis(t);return e&&e.ensureScaling()}ensureAxisMajorGridLines(t){let e=this.ensureAxis(t);return e&&e.ensureMajorGridLines()}ensureAxisLabel(t){let e=this.ensureAxis(t);return e&&e.ensureLabel()}ensureAxisLabelStyle(t){let e=this.ensureAxisLabel(t);return e&&e.ensureTextStyle()}build(){return this.ensureChart().build()}compute(t){return this.ensureChart().compute(t)}getChartSetting(){let t=this.ensureChart();return this.filterChartSetting(t.getType(),t.getBarDir(),t.getGrouping(),!0)}getSeriesCat(t){let e=+!!this.dataHasTx();if(yp(t))return this.dataHasCat()?bp(this.getData(0,e+t)):"";{let t=this.getDataColNumber(),r=Array(t-e);if(this.dataHasCat())for(let s=e;s<t;++s)r[s-e]=this.getData(0,s);else r.fill("");return r}}getSourceSeriesCat(){return this.getSeriesCat()}getSeriesTx(t){let e=+!!this.dataHasCat();if(yp(t))return this.dataHasTx()?bp(this.getData(e+t,0)):"";{let t=this.getDataRowNumber(),r=Array(t-e);if(this.dataHasTx())for(let s=e;s<t;++s)r[s-e]=bp(this.getData(s,0));else r.fill("");return r}}getSourceSeriesTx(t){return this.getSeriesTx(t)}getSeriesVal(t,e){let r=t+ +!!this.dataHasCat(),s=+!!this.dataHasTx();if(yp(e))return this.getData(r,s+e);{let t=this.getDataColNumber(),e=[];for(let n=s;n<t;++n)e.push(this.getData(r,n));return e}}getSourceSeriesVal(t,e){return this.getSeriesVal(t,e)}getSeriesThemeColors(){return ed}getSeriesCount(t){let e=this.getDataRowNumber()-+!!this.dataHasCat();if(t){let t=this.ensureSeries().length;e<t&&(e=t)}return e}getSeriesColor(t){return this.ensureChart().getType()===sp.PIE?this.ensurePieSeries().getPieColor(t):this.ensureSeries(t).getColor()}calcAxisBias(){let t,e;return(this.forEachSeries((function(r){if(r.getRightAxis()?e=!0:t=!0,t&&e)return!0})),t&&e)?0:t?-1:e?1:NaN}forEachSeries(t,e,r){for(let s=0,n=this.getSeriesCount(r);s<n;++s){let r=t.call(e,this.ensureSeries(s),s,n);if(null!=r)return r}}eachSeries(t){return this.forEachSeries((function(e,r){if(!1===t.call(this,e,r))return!1}),this)}filterChartSetting(t,e,r,s){switch(t){case sp.BAR:case sp.LINE:case sp.AREA:break;default:r=s?ep.GROUPING:null}return{type:t,barDir:t===sp.BAR?e:s?ep.BAR_DIR:null,grouping:r}}handleSeries(t,e,r){yp(t)?e.call(r,this.ensureSeries(t),t):this.forEachSeries(e,r)}_handleTitle(t,e,r){let s=this.ensureTitle(t);s&&e.call(r,s,t)}handleTitle(t,e,r){t?this._handleTitle(t,e,r):["title","subtitle","xTitle","yTitle","y2Title"].forEach((t=>{this._handleTitle(t,e,r)}))}_handleAxis(t,e,r){let s=this.ensureAxis(t);s&&e.call(r,s,t)}handleAxis(t,e,r){t?this._handleAxis(t,e,r):["x","y","y2"].forEach((t=>{this._handleAxis(t,e,r)}))}getAllColors(){let t=[];function e(e){e&&t.push(e.substr(1).toLowerCase())}return e(this.ensureChart().getBackgroundColor(!0)),this.handleTitle(null,(function(t){e(t.ensureTextStyle().getColor(!0))}),this),this.forEachSeries((function(t){e(t.getColor(!0)),e(t.getPieBorderColor(!0)),e(t.ensureLabel().ensureTextStyle().getColor(!0)),(t.getPieColors(!0)||[]).forEach(e)}),this,!0),e(this.ensureChartLegendStyle().getColor(!0)),this.handleAxis(null,(function(t){e(t.ensureLabel().ensureTextStyle().getColor(!0)),e(t.ensureMajorGridLines().getColor(!0))}),this),t}static checkCmdName(t){return t&&t in this.prototype&&"apply"!==t&&(t.startsWith("apply")||t.startsWith("_apply"))}apply(t,e){return!!this.constructor.checkCmdName(t)&&(this[t].apply(this,e),!0)}invert(t,e){if(!this.constructor.checkCmdName(t))return!1;let r=this[t.replace("apply","invert")].apply(this,e);return Array.isArray(r)||(r=[r]),r.forEach((e=>{e.name||(e.name=t)})),r}applyChartSetting(t,e,r){if(({type:t,barDir:e,grouping:r}=this.filterChartSetting(t,e,r)),this._applyChartType(t),t===sp.HYBRID){let t=this.getSeriesCount()/2;this.forEachSeries((function(e,r){e.setType(r<t?sp.BAR:null)}),this,!0)}else this.forEachSeries((function(t,e){t.setType(null)}),this,!0);this._applyChartBarDir(e),this._applyChartGrouping(r)}_applyChartType(t){this.ensureChart().setType(t)}_applyChartBarDir(t){this.ensureChart().setBarDir(t)}_applyChartGrouping(t){this.ensureChart().setGrouping(t)}applyChartBackgroundColor(t){this.ensureChart().setBackgroundColor(t)}applyChartBlankAs(t){this.ensurePlotArea().setBlankAs(t)}applyChartShowBlank(t){this.applyChartBlankAs(t?up.SPAN:up.GAP)}applyGlobalFontFamily(t){this.ensureGlobalTextStyle().setFontFamily(t)}applyUseColumnHeader(t){this.ensurePlotArea().setUseColumnHeader(t)}applyUseRowHeader(t){this.ensurePlotArea().setUseRowHeader(t)}applySwitchRowColumn(t){this.ensurePlotArea().setSwitchRowColumn(t)}applyPieHoleSize(t){this.ensurePieSeries().setPieHoleSize(t)}applyPieBorderColor(t){this.ensurePieSeries().setPieBorderColor(t)}applyPieLabelDisplay(t){let e=this.ensurePieLabel();e.setShowVal(t.val),e.setShowCat(t.cat),e.setShowPercent(t.percent)}applyPieLabelFontFamily(t){this.ensurePieLabelStyle().setFontFamily(t)}applyPieLabelFontSize(t){this.ensurePieLabelStyle().setFontSize(t)}applyPieLabelBold(t){this.ensurePieLabelStyle().setBold(t)}applyPieLabelItalic(t){this.ensurePieLabelStyle().setItalic(t)}applyPieLabelColor(t){this.ensurePieLabelStyle().setColor(t)}applyTitleText(t,e){this.handleTitle(t,(function(t){t.setText(e)}))}applyTitleFontFamily(t,e){this.handleTitle(t,(function(t){t.ensureTextStyle().setFontFamily(e)}))}applyTitleFontSize(t,e){this.handleTitle(t,(function(t){t.ensureTextStyle().setFontSize(e)}))}applyTitleBold(t,e){this.handleTitle(t,(function(t){t.ensureTextStyle().setBold(e)}))}applyTitleItalic(t,e){this.handleTitle(t,(function(t){t.ensureTextStyle().setItalic(e)}))}applyTitleColor(t,e){this.handleTitle(t,(function(t){t.ensureTextStyle().setColor(e)}))}applySeriesType(t,e){this.handleSeries(t,(function(t){t.setType(e)}))}applySeriesColor(t,e){if(yp(t))if(this.ensureChart().getType()===sp.PIE)return this._applyPieColor(t,e);else return this._applySeriesColor(t,e)}_applyPieColor(t,e){this.ensurePieSeries().setPieColor(t,e)}_applySeriesColor(t,e){this.ensureSeries(t).setColor(e)}applySeriesRightAxis(t,e){this.handleSeries(t,(function(t){t.setRightAxis(e)}))}applySeriesSmooth(t,e){this.handleSeries(t,(function(t){t.setSmooth(e)}))}applySeriesOpacity(t,e){this.handleSeries(t,(function(t){t.setOpacity(e)}))}applySeriesLineType(t,e){this.handleSeries(t,(function(t){t.ensureLineStyle().setType(e)}))}applySeriesLineWidth(t,e){this.handleSeries(t,(function(t){t.ensureLineStyle().setWidth(e)}))}applySeriesMarkerSymbol(t,e){this.handleSeries(t,(function(t){t.ensureMarker().setSymbol(e)}))}applySeriesMarkerSize(t,e){this.handleSeries(t,(function(t){t.ensureMarker().setSize(e)}))}applySeriesLabelHidden(t,e){this.handleSeries(t,(function(t){t.ensureLabel().setHidden(e)}))}applySeriesLabelPosition(t,e){this.handleSeries(t,(function(t){t.ensureLabel().setPosition(e)}))}applySeriesLabelFontFamily(t,e){this.handleSeries(t,(function(t){t.ensureLabel().ensureTextStyle().setFontFamily(e)}))}applySeriesLabelFontSize(t,e){this.handleSeries(t,(function(t){t.ensureLabel().ensureTextStyle().setFontSize(e)}))}applySeriesLabelItalic(t,e){this.handleSeries(t,(function(t){t.ensureLabel().ensureTextStyle().setItalic(e)}))}applySeriesLabelBold(t,e){this.handleSeries(t,(function(t){t.ensureLabel().ensureTextStyle().setBold(e)}))}applySeriesLabelColor(t,e){this.handleSeries(t,(function(t){t.ensureLabel().ensureTextStyle().setColor(e)}))}applyLegendHidden(t){this.ensureChartLegend().setHidden(t)}applyLegendPosition(t){this.ensureChartLegend().setPosition(t),this.applyLegendHidden(!1)}applyLegendFontFamily(t){this.ensureChartLegendStyle().setFontFamily(t)}applyLegendFontSize(t){this.ensureChartLegendStyle().setFontSize(t)}applyLegendItalic(t){this.ensureChartLegendStyle().setItalic(t)}applyLegendBold(t){this.ensureChartLegendStyle().setBold(t)}applyLegendColor(t){this.ensureChartLegendStyle().setColor(t)}applyAxisTickNumber(t,e){this.handleAxis(t,(function(t){t.setTickNumber(e)}))}applyAxisTreatAsText(t,e){this.handleAxis(t,(function(t){t.setTreatAsText(e)}))}applyAxisScalingMin(t,e){this.handleAxis(t,(function(t){t.ensureScaling().setMin(e)}))}applyAxisScalingMax(t,e){this.handleAxis(t,(function(t){t.ensureScaling().setMax(e)}))}applyAxisScalingOrientation(t,e){this.handleAxis(t,(function(t){t.ensureScaling().setOrientation(e)}))}applyAxisScalingRevert(t,e){this.handleAxis(t,(function(t){t.ensureScaling().setRevert(e)}))}applyAxisScalingLogBase(t,e){this.handleAxis(t,(function(t){t.ensureScaling().setLogBase(e)}))}applyAxisScalingLog(t,e){this.handleAxis(t,(function(t){t.ensureScaling().setLog(e)}))}applyAxisGridHidden(t,e){this.handleAxis(t,(function(t){t.ensureMajorGridLines().setHidden(e)}))}applyAxisGridColor(t,e){this.handleAxis(t,(function(t){t.ensureMajorGridLines().setColor(e)}))}applyAxisLabelHidden(t,e){this.handleAxis(t,(function(t){t.ensureLabel().setHidden(e)}))}applyAxisLabelRotate(t,e){this.handleAxis(t,(function(t){t.ensureLabel().setRotate(e)}))}applyAxisLabelFontFamily(t,e){this.handleAxis(t,(function(t){t.ensureLabel().ensureTextStyle().setFontFamily(e)}))}applyAxisLabelFontSize(t,e){this.handleAxis(t,(function(t){t.ensureLabel().ensureTextStyle().setFontSize(e)}))}applyAxisLabelItalic(t,e){this.handleAxis(t,(function(t){t.ensureLabel().ensureTextStyle().setItalic(e)}))}applyAxisLabelBold(t,e){this.handleAxis(t,(function(t){t.ensureLabel().ensureTextStyle().setBold(e)}))}applyAxisLabelColor(t,e){this.handleAxis(t,(function(t){t.ensureLabel().ensureTextStyle().setColor(e)}))}applyPlotAreaLayoutEnabled(t,e){let r=this.ensurePlotArea().ensureLayout();r.setEnabled(t),t&&e?(r.setTop(e.top||0),r.setLeft(e.left||0),r.setRight(e.right||0),r.setBottom(e.bottom||0)):(r.setTop(null),r.setLeft(null),r.setRight(null),r.setBottom(null))}applyPlotAreaLeft(t){this.ensurePlotArea().ensureLayout().setLeft(t)}applyPlotAreaTop(t){this.ensurePlotArea().ensureLayout().setTop(t)}applyPlotAreaRight(t){this.ensurePlotArea().ensureLayout().setRight(t)}applyPlotAreaBottom(t){this.ensurePlotArea().ensureLayout().setBottom(t)}invertChartSetting(){let t=[];return t.push.apply(t,this.invert("_applyChartGrouping")),t.push.apply(t,this.invert("_applyChartBarDir")),this.forEachSeries((function(e,r){t.push.apply(t,this.invert("applySeriesType",[r]))}),this,!0),t.push.apply(t,this.invert("_applyChartType")),t}_invertChartType(t){return{args:[this.ensureChart().getType(!0)]}}_invertChartBarDir(t){return{args:[this.ensureChart().getBarDir(!0)]}}_invertChartGrouping(t){return{args:[this.ensureChart().getGrouping(!0)]}}invertChartBackgroundColor(t){return{args:[this.ensureChart().getBackgroundColor(!0)]}}invertChartBlankAs(t){return{args:[this.ensurePlotArea().getBlankAs(!0)]}}invertChartShowBlank(t){return this.invert("applyChartBlankAs")}invertGlobalFontFamily(t){return{args:[this.ensureGlobalTextStyle().getFontFamily(!0)]}}invertUseColumnHeader(t){return{args:[this.ensurePlotArea().getUseColumnHeader(!0)]}}invertUseRowHeader(t){return{args:[this.ensurePlotArea().getUseRowHeader(!0)]}}invertSwitchRowColumn(t){return{args:[this.ensurePlotArea().getSwitchRowColumn(!0)]}}invertPieHoleSize(t){return{args:[this.ensurePieSeries().getPieHoleSize(!0)]}}invertPieBorderColor(t){return{args:[this.ensurePieSeries().getPieBorderColor(!0)]}}invertPieLabelDisplay(t){let e=this.ensurePieLabel();return{args:[{val:e.getShowVal(!0),cat:e.getShowCat(!0),percent:e.getShowPercent(!0)}]}}invertPieLabelFontFamily(t){return{args:[this.ensurePieLabelStyle().getFontFamily(!0)]}}invertPieLabelFontSize(t){return{args:[this.ensurePieLabelStyle().getFontSize(!0)]}}invertPieLabelBold(t){return{args:[this.ensurePieLabelStyle().getBold(!0)]}}invertPieLabelItalic(t){return{args:[this.ensurePieLabelStyle().getItalic(!0)]}}invertPieLabelColor(t){return{args:[this.ensurePieLabelStyle().getColor(!0)]}}invertTitleText(t,e){let r=[];return this.handleTitle(t,(function(t,e){r.push({args:[e,t.getText(!0)]})})),r}invertTitleFontFamily(t,e){let r=[];return this.handleTitle(t,(function(t,e){r.push({args:[e,t.ensureTextStyle().getFontFamily(!0)]})})),r}invertTitleFontSize(t,e){let r=[];return this.handleTitle(t,(function(t,e){r.push({args:[e,t.ensureTextStyle().getFontSize(!0)]})})),r}invertTitleBold(t,e){let r=[];return this.handleTitle(t,(function(t,e){r.push({args:[e,t.ensureTextStyle().getBold(!0)]})})),r}invertTitleItalic(t,e){let r=[];return this.handleTitle(t,(function(t,e){r.push({args:[e,t.ensureTextStyle().getItalic(!0)]})})),r}invertTitleColor(t,e){let r=[];return this.handleTitle(t,(function(t,e){r.push({args:[e,t.ensureTextStyle().getColor(!0)]})})),r}invertSeriesType(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.getType(!0)]})})),r}invertSeriesColor(t,e){if(yp(t))if(this.ensureChart().getType()===sp.PIE)return this.invert("_applyPieColor",arguments);else return this.invert("_applySeriesColor",arguments)}_invertPieColor(t,e){return{args:[t,this.ensurePieSeries().getPieColor(t,!0)]}}_invertSeriesColor(t,e){return{args:[t,this.ensureSeries(t).getColor(!0)]}}invertSeriesRightAxis(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.getRightAxis(!0)]})})),r}invertSeriesSmooth(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.getSmooth(!0)]})})),r}invertSeriesOpacity(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.getOpacity(!0)]})})),r}invertSeriesLineType(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLineStyle().getType(!0)]})})),r}invertSeriesLineWidth(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLineStyle().getWidth(!0)]})})),r}invertSeriesMarkerSymbol(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureMarker().getSymbol(!0)]})})),r}invertSeriesMarkerSize(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureMarker().getSize(!0)]})})),r}invertSeriesLabelHidden(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLabel().getHidden(!0)]})})),r}invertSeriesLabelPosition(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLabel().getPosition(!0)]})})),r}invertSeriesLabelFontFamily(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getFontFamily(!0)]})})),r}invertSeriesLabelFontSize(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getFontSize(!0)]})})),r}invertSeriesLabelItalic(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getItalic(!0)]})})),r}invertSeriesLabelBold(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getBold(!0)]})})),r}invertSeriesLabelColor(t,e){let r=[];return this.handleSeries(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getColor(!0)]})})),r}invertLegendHidden(t){return{args:[this.ensureChartLegend().getHidden(!0)]}}invertLegendPosition(t){return[{args:[this.ensureChartLegend().getPosition(!0)]},{name:"applyLegendHidden",args:[this.ensureChartLegend().getHidden(!0)]}]}invertLegendFontFamily(t){return{args:[this.ensureChartLegendStyle().getFontFamily(!0)]}}invertLegendFontSize(t){return{args:[this.ensureChartLegendStyle().getFontSize(!0)]}}invertLegendItalic(t){return{args:[this.ensureChartLegendStyle().getItalic(!0)]}}invertLegendBold(t){return{args:[this.ensureChartLegendStyle().getBold(!0)]}}invertLegendColor(t){return{args:[this.ensureChartLegendStyle().getColor(!0)]}}invertAxisTickNumber(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.getTickNumber(!0)]})})),r}invertAxisTreatAsText(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.getTreatAsText(!0)]})})),r}invertAxisScalingMin(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureScaling().getMin(!0)]})})),r}invertAxisScalingMax(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureScaling().getMax(!0)]})})),r}invertAxisScalingOrientation(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureScaling().getOrientation(!0)]})})),r}invertAxisScalingRevert(t,e){return this.invert("applyAxisScalingOrientation",[t])}invertAxisScalingLogBase(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureScaling().getLogBase(!0)]})})),r}invertAxisScalingLog(t,e){return this.invert("applyAxisScalingLogBase",[t])}invertAxisGridHidden(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureMajorGridLines().getHidden(!0)]})})),r}invertAxisGridColor(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureMajorGridLines().getColor(!0)]})})),r}invertAxisLabelHidden(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureLabel().getHidden(!0)]})})),r}invertAxisLabelRotate(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureLabel().getRotate(!0)]})})),r}invertAxisLabelFontFamily(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getFontFamily(!0)]})})),r}invertAxisLabelFontSize(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getFontSize(!0)]})})),r}invertAxisLabelItalic(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getItalic(!0)]})})),r}invertAxisLabelBold(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getBold(!0)]})})),r}invertAxisLabelColor(t,e){let r=[];return this.handleAxis(t,(function(t,e){r.push({args:[e,t.ensureLabel().ensureTextStyle().getColor(!0)]})})),r}invertPlotAreaLayoutEnabled(t){let e=this.ensurePlotArea().ensureLayout(),r={top:e.getTop(!0),left:e.getLeft(!0),right:e.getRight(!0),bottom:e.getBottom(!0)};return{args:[e.getEnabled(!0),r]}}invertPlotAreaLeft(t){return{args:[this.ensurePlotArea().ensureLayout().getLeft(!0)]}}invertPlotAreaTop(t){return{args:[this.ensurePlotArea().ensureLayout().getTop(!0)]}}invertPlotAreaRight(t){return{args:[this.ensurePlotArea().ensureLayout().getRight(!0)]}}invertPlotAreaBottom(t){return{args:[this.ensurePlotArea().ensureLayout().getBottom(!0)]}}isDrawable(){let t,e,r,s=this.ensureChart().getType()===sp.PIE,n=+!!this.dataHasCat(),a=+!!this.dataHasTx(),i=s?n+1:this.getDataRowNumber(),o=this.getDataColNumber();if(n>=i||a>=o)return!1;for(t=n;t<i;t++)for(e=a;e<o;e++)if(yp(r=this.getData(t,e))&&(!s||r>0))return!0;return!1}getEmptyCategory(){let t=this.getSeriesCat(),e=this.getSeriesCount();return t.map(((r,s)=>{if(!cp(t[s]))return!1;for(let t=0;t<e;t++)if(yp(this.getSeriesVal(t,s)))return!1;return!0}))}getEmptySeries(){return Array.from({length:this.getSeriesCount()},((t,e)=>this.getSeriesVal(e).every((t=>cp(t)))))}calcSeriesData(t){let e=[];for(let t=0,r=this.getSeriesCount();t<r;++t)e.push({name:this.getSeriesTx(t),data:this.getSeriesVal(t)});return e}calcPlotBound(t){let{top:e,bottom:r,left:s,right:n}=gp.padding,a=this.ensureGlobalTextStyle().getFontSize(),i=this.ensureChartTitle();i.getText()&&(e+=fp(i.ensureTextStyle().getFontSize()||a));let o=this.ensureChartSubtitle();o.getText()&&(e+=fp(o.ensureTextStyle().getFontSize()||a)+(i.getText()?gp.titleGap:0));let l=this.ensureChartLegend();if(!l.getHidden())switch(l.getPosition()){case"t":e+=fp(l.ensureTextStyle().getFontSize()||a)+gp.plotGap;break;case"b":r+=fp(l.ensureTextStyle().getFontSize()||a)+gp.plotGap;break;case"l":s+=gp.legendWidth;break;default:n+=gp.legendWidth}return e+=gp.plotGap,s+=gp.plotGap,n+=gp.plotGap,t&&(e/=gp.cm2pxMultiplier,s/=gp.cm2pxMultiplier,n/=gp.cm2pxMultiplier,r/=gp.cm2pxMultiplier),{top:e,left:s,right:n,bottom:r}}getEchartParameters(t,e){let r=function(t){switch(t.ensureChart().getType()){case sp.LINE:return new Sp(t);case sp.AREA:return new Cp(t);case sp.BAR:return new Pp(t);case sp.PIE:return new Tp(t);case sp.SCATTER:return new vp(t);case sp.HYBRID:return new Ip(t)}}(this);if(r)return r.initData(),r.convert(t,e)}clone(){return new this.constructor(this.getChartCfg(),this.getOptionCfg())}getConfig(){return{chartCfg:this.getChartCfg(),optionCfg:this.getOptionCfg()}}getChartCfg(){return this.build()}getOptionCfg(){return this._options}},{isDefined:sd}=d,{DEFAULT:nd}=p;class ad extends rd{readOptionCfg(t){this.setRawData(t&&t.data||this.constructor.createDefaultData())}getData(t,e){if(this.getSwitchRowColumn()){let r=t;t=e,e=r}return super.getData(t,e)}getDataRowNumber(){return this.getSwitchRowColumn()?super.getDataColNumber():super.getDataRowNumber()}getDataColNumber(){return this.getSwitchRowColumn()?super.getDataRowNumber():super.getDataColNumber()}static createDefaultData(){return[["","Number 1","Number 2","Number 3","Number 4"],["Category A",500,520,540,520],["Category B",520,540,560,540],["Category C",540,560,580,560]]}static extractData(t,e){let r,s,n,a;if(!t)return null;let i=new this(t,e).ensureChart(),o=i.getPlotArea();if(!o)return null;let l=o.getSeries();if(!l)return null;let h=l.length;if(0===h)return null;if(e&&({switchRowColumn:r,extractCat:s,extractTx:n}=e),!sd(r)||!sd(s)||!sd(n)){let t=o.getRawConfig().dataDir;r=!!t&&t!==nd.DATA_DIR,s=!1,n=!1;for(let t=0;t<h;++t){let e=l[t];if(sd(e.cat)&&(s=!0),sd(e.tx)&&(n=!0),s&&n)break}}let u=[],c=+!!s,p=+!!n;for(let t=0,e=l.length;t<e;++t){let e=l[t];if(!e)continue;if(s&&!a){let t=e.cat;sd(t)&&(this._fillDataRow(u,0,p,this.translateDataValue(t),r),a=!0)}if(n){let s=e.tx;if(sd(s)){let e=this.translateDataValue(s);Array.isArray(e)&&(e=e[0]),this._fillDataRow(u,c+t,0,e,r)}}let i=e.val;sd(i)&&this._fillDataRow(u,c+t,p,this.translateDataValue(i),r)}return s&&n&&this._fillDataRow(u,0,0,[i.getRawConfig().cornerData||""]),this.ensureData(u)}static translateDataValue(t){return t}static _fillDataRow(t,e,r,s,n){if(Array.isArray(s)||(s=[s]),n)for(let n=0,a=s.length;n<a;++n)this._ensureDataRow(t,r+n)[e]=s[n];else{let n=this._ensureDataRow(t,e);for(let t=0,e=s.length;t<e;++t)n[r+t]=s[t]}}static _ensureDataRow(t,e){return t[e]||(t[e]=[])}static ensureData(t){if(Array.isArray(t)&&t.length){let e=t.length,r=null,s;for(let n=0;n<e;++n){let e;Array.isArray(t[n])?e=t[n].length:(e=0,s=!0),null==r?r=e:r!==e&&(s=!0,r=Math.max(r,e))}if(0===r)t=null;else if(s){let s=[];for(let n=0;n<e;++n){let e=t[n];if(Array.isArray(e)){let t=e.length;t!==r&&((e=e.slice()).length=r,e.fill("",t))}else e=Array(r).fill("");s.push(e)}t=s}}else t=null;return t}static fromNode(t){return this.fromAttrs(t.attrs)}static fromAttrs(t){return new this(t&&t.config,t)}}class id extends Uc{checkChartNode(t,e,r){let s=this.checkNode(t,e,r);return s&&s.type.isChart?s:null}}class od extends id{constructor(t,e,r){super(t,e),this.cmds=Array.isArray(r)?r:[r]}doApply(t){let e=this.checkChartNode(t,this.from,this.to);if(!e)return"No valid node in given `from`.";let r=ad.fromNode(e),s=this.cmds;for(let t=0,e=s.length;t<e;++t){let e=s[t];if(!r.apply(e.name,e.args))return`Invalid command at index ${t} of commands (${s}).`}let n=e.copy(e.content,{config:r.getChartCfg()});return t.replace(this.from,this.to,vn.from(n))}invert(t){let e=this.checkChartNode(t,this.from,this.to);if(!e)return null;let r=ad.fromNode(e),s=this.cmds,n=[];for(let t=s.length-1;t>=0;--t){let e=s[t],a=r.invert(e.name,e.args);if(!a)return null;n.push(...a)}return new this.constructor(this.from,this.to,n)}map(t){let e=this.mapRange(t);return e.deleted?null:new this.constructor(e.from,e.to,this.cmds)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to,cmds:this.cmds}}static fromJSON(t,e){return new this(e.from,e.to,e.cmds)}}cc.jsonID("setChartConfig",od);class ld extends id{constructor(t,e,r,s,n){super(t,e),this.row=r,this.col=s,this.value=!function(t){return"number"==typeof t&&isFinite(t)}(n)?null!=n?String(n):"":n}doApply(t){let e=this.checkChartNode(t,this.from,this.to);if(!e)return"No valid node in given `from`.";let{row:r,col:s}=this,n=e.getAttrValue("data");if(r>=n.length)return t;let a=n[r];if(s>=a.length)return t;(a=a.slice())[s]=this.value,(n=n.slice())[r]=a;let i=e.copy(e.content,{data:n});return t.replace(this.from,this.to,vn.from(i))}invert(t){let e=this.checkChartNode(t,this.from,this.to);if(!e)return null;let{row:r,col:s}=this,n=e.getAttrValue("data");if(r>=n.length)return null;let a=n[r];return s>=a.length?null:new this.constructor(this.from,this.to,r,s,a[s])}map(t){let e=this.mapRange(t);return e.deleted?null:new this.constructor(e.from,e.to,this.row,this.col,this.value)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to,row:this.row,col:this.col,value:this.value}}static fromJSON(t,e){return new this(e.from,e.to,e.row,e.col,e.value)}}cc.jsonID("setChartDataValue",ld),Object.assign(gc.prototype,{setChartConfig:function(t,e,r){if(!ad.checkCmdName(e))throw RangeError(`Given command name ${e} is invalid.`);let s=od.prototype.checkChartNode(this.doc,t);if(!s)throw RangeError("No chart node at given position");return this.step(new od(t,t+s.nodeSize,{name:e,args:r}))},setChartDataValue:function(t,e,r,s){let n=ld.prototype.checkChartNode(this.doc,t);if(!n)throw RangeError("No chart node at given position");return this.step(new ld(t,t+n.nodeSize,e,r,s))}});let hd={DOC_SCHEMA_IS_OLDER:0,DOC_SCHEMA_IS_NEWEST:1,PKG_SCHEMA_IS_OLDER:2};class ud{constructor(t,e){this.doc=t||Object.create(null),this.options=e,this.migrators=this.getMigrators(),this.docSchemaVer=this.getSchemaVer(),this.pkgSchemaVer=this.migrators.length+1}getMigrators(){throw Error("Need to be implemented")}doMigration(){let t=this.checkMigrationStatus();if(t===hd.DOC_SCHEMA_IS_OLDER)for(let t=this.docSchemaVer-1;t<this.pkgSchemaVer-1;++t)this.doc=this.migrators[t].call(this,this.doc)||this.doc;return{status:t,doc:this.doc}}getSchemaVer(){return void 0===this.doc.attrs?1:this.doc.attrs.schema}checkMigrationStatus(){return this.docSchemaVer<this.pkgSchemaVer?hd.DOC_SCHEMA_IS_OLDER:this.docSchemaVer===this.pkgSchemaVer?hd.DOC_SCHEMA_IS_NEWEST:hd.PKG_SCHEMA_IS_OLDER}static getDocType(t){return void 0===t.attrs?"document":t.attrs.type}}function cd(t,e,r,s){let n=t(e,r,s);return void 0===n?e:n}function pd(t,e){var r=t;if(!(r=function t(e,r,s,n,a){if(!(e=n.call(a,e,r,s)))return null;let i=e.content;if(i){let r;for(let s=0;s<i.length;++s){let o=i[s],l=t(o,e,s,n,a);o!==l&&(r||(r=!0,i=i.slice(),e.content=i),l?i[s]=l:(i.splice(s,1),--s))}}return e}(r,null,-1,(function(t,r,s){let n=e[t.type];if(n)if(Array.isArray(n))for(let e=0;e<n.length;++e)t=cd(n[e],t,r,s);else t=cd(n,t,r,s);return t}),void 0)))throw Error("Doc is null after migration.");return r}function dd(t){return function(e){e.attrs=Object.assign(Object.create(null),e.attrs),e.attrs.schema=t}}class yd{static childCount(t){return t&&t.content&&t.content.length||0}static child(t,e){return t&&t.content&&t.content[e]||null}static copy(t,e,r){let s=Object.create(null);return s.type=t.type,e?s.content=e:t.content&&(s.content=t.content),r?s.attrs=Object.assign({},t.attrs,r):t.attrs&&(s.attrs=t.attrs),t.marks&&(s.marks=t.marks),s}}let xd={type:"table_cell",content:[{type:"paragraph"}]};class gd{constructor(){this.index_map=Object.create(null),this.col_idx_min=void 0,this.col_idx_max=void 0}getAt(t,e){if(t in this.index_map&&e in this.index_map[t])return this.index_map[t][e]}setAt(t,e,r){t in this.index_map||(this.index_map[t]=Object.create(null)),this.index_map[t][e]=r,(isNaN(this.col_idx_min)||e<this.col_idx_min)&&(this.col_idx_min=e),(isNaN(this.col_idx_max)||e>this.col_idx_max)&&(this.col_idx_max=e)}getRectColSize(){return isNaN(this.col_idx_max)?0:this.col_idx_max-this.col_idx_min+1}}function fd(t){t&&t.length>0&&!isNaN(t[t.length-1])&&(t+="px");let e=Rs(t,"px");return isNaN(e)?NaN:Math.floor(e)}let md=["borderLeftWidth","borderTopWidth","borderRightWidth","borderBottomWidth"];function bd(t,e,r,s){let n=0,a=[];for(let e=0;e<t.length;++e){let r=t[e];isNaN(r)?a.push(e):n+=r}if(a.length){let i;for(let o of(i=!isNaN(e)&&e>n?Math.floor((e-n)/a.length):!isNaN(r)&&r>n?Math.floor((r-n)/a.length):s,a))t[o]=i,n+=i}else if(!isNaN(e)&&e>n){let r=e/n;for(let e=0;e<t.length;++e)t[e]=Math.floor(t[e]*r)}if(isNaN(e)&&(e=n),!isNaN(r)&&e>r){let s=r/e;for(let e=0;e<t.length;++e)t[e]=Math.floor(t[e]*s)}return t}function _d(t,e){let r=t.content,s=t.attrs,n=function(t){let e=new gd;for(let r=0;r<t.length;++r){let s=t[r];for(let t=0;t<yd.childCount(s);++t){let n=yd.child(s,t),a=r,i=t;for(;e.getAt(a,i);)i++;e.setAt(a,i,n);let o=n.attrs.colspan||1,l=n.attrs.rowspan||1;for(let t=0;t<l;++t)for(let r=0;r<o;++r){if(0===t&&0===r)continue;let s=a+t,n=i+r;if(e.getAt(s,n))o=r;else{let t=yd.copy(xd,null,{colspan:1,rowspan:1});e.setAt(s,n,t)}}}}return e}(r),a=n.getRectColSize(),i=function(t,e){let r=Array(t.length);for(let e=0;e<t.length;++e){let s=t[e],n=fd(s.attrs&&s.attrs.height);r[e]=isNaN(n)?22:n}return bd(r,e,void 0,22)}(r,fd(s&&s.height)),o=function(t,e,r){let s=Object.assign({},t),n=t.colgroup||[],a=[];for(let t=0;t<e;++t){let e=fd(n[t]&&n[t].width);a.push(e)}bd(a,fd(t.width),r,24);let i=[];for(let t=0;t<e;++t)i.push({width:a[t]});return s.colgroup=i,delete s.width,delete s.grid,s}(s,a,e),l=[];for(let t=0;t<r.length;++t){let e,s=[];for(let e=0;e<a;++e){let r=n.getAt(t,e);r||(r=xd),s.push(function(t){let e;if(!t.attrs)return t;for(let r of md)t.attrs[r]&&(e||(e=Object.create(null)),e[r]=fd(t.attrs[r]));return e?yd.copy(t,null,e):t}(r))}isNaN(i[t])||(e={height:i[t]});let o=yd.copy(r[t],s,e);l.push(o)}return yd.copy(t,l,o)}function Ad(t){var e;let r=t.attrs;if(!r)return;let s=r.config;if(!s)return;let n=r,a=s;if((a=function(t){let e=t.plotArea;if(!e)return t;let{nonNumericAsZero:r,zeroStart:s,xAxisTitle:n,yAxisTitle:a}=e;if(null==r&&!s&&!n&&!a)return t;if((t=Object.assign(Object.create(null),t)).plotArea=e=Object.assign(Object.create(null),e),delete e.nonNumericAsZero,delete e.zeroStart,delete e.xAxisTitle,delete e.yAxisTitle,e.blankAs||null==r||(e.blankAs=r?"zero":"gap"),!e.xAxis&&(n||s)){let t=e.xAxis=Object.create(null);n&&(t.title=n),s&&(t.scaling={min:0})}if(!e.yAxis&&(a||s)){let t=e.yAxis=Object.create(null);a&&(t.title=a),s&&(t.scaling={min:0})}return!e.yAxis2&&s&&(e.yAxis2={scaling:{min:0}}),t}(a=function(t){let e=t.plotArea;if(!e||e.series)return t;let r=e.subCharts;if(!r||!r.length)return t;e=(t=Object.assign(Object.create(null),t)).plotArea=Object.assign(Object.create(null),e),delete e.subCharts;let s=e.series=[];for(let e=0,n=r.length;e<n;++e){let{type:n,series:a,barDir:i,grouping:o}=r[e];for(let t=0,e=a.length;t<e;++t){let e=Object.assign(Object.create(null),a[t]);e.type=n;let r=e.marker;!0===r?delete e.marker:!1===r&&(e.marker={symbol:"none"}),"pie"===n&&(e.label={showPercent:!0}),s.push(e)}i&&(t.barDir=i),o&&(t.grouping=o)}return s.sort(wd),t.chartType=r.length>1?"hybrid":r[0].type,t}(a=(e=Md(e=a,"title"),(e=Md(e,"subtitle"))||a))||a)||a)!==s&&((n=Object.assign(Object.create(null),n)).config=a),!n.data){let t=function(t){let e,r=t.plotArea;if(!r)return null;let s=r.series;if(!s)return null;let n=s.length;if(0===n)return null;let a=r.dataDir,i=!!a&&"row"!==a,o=!1,l=!1;for(let t=0;t<n;++t){let e=s[t];if(null!=e.cat&&(o=!0),null!=e.tx&&(l=!0),o&&l)break}let h=[],u=+!!o,c=+!!l;for(let t=0,r=s.length;t<r;++t){let r=s[t];if(!r)continue;if(o&&!e){let t=r.cat;null!=t&&(Cd(h,0,c,function(t){return t}(t),i),e=!0)}if(l){let e=r.tx;if(null!=e){let r=function(t){return t}(e);Array.isArray(r)&&(r=r[0]),Cd(h,u+t,0,r,i)}}let n=r.val;null!=n&&Cd(h,u+t,c,function(t){return t}(n),i)}return o&&l&&Cd(h,0,0,[t.cornerData||""]),function(t){if(Array.isArray(t)&&t.length){let e=t.length,r=null,s;for(let n=0;n<e;++n){let e;Array.isArray(t[n])?e=t[n].length:(e=0,s=!0),null==r?r=e:r!==e&&(s=!0,r=Math.max(r,e))}if(s){let s=[];for(let n=0;n<e;++n){let e=t[n];Array.isArray(e)?e.length!==r&&((e=e.slice()).length=r):e=Array(r),s.push(e)}t=s}}else t=null;return t}(h)}(a);t&&((n=Object.assign(Object.create(null),n)).data=t)}t.attrs=n}function Md(t,e){let r=t[e];return"string"==typeof r&&(t=Object.assign(Object.create(null),t,{title:{text:r}})),t}function wd(t,e){return t.index-e.index}function Sd(t){return t}function Cd(t,e,r,s,n){var a,i,o,l;if(Array.isArray(s)||(s=[s]),n)for(let n=0,o=s.length;n<o;++n){((a=t)[i=r+n]||(a[i]=[]))[e]=s[n]}else{let n=(o=t)[l=e]||(o[l]=[]);for(let t=0,e=s.length;t<e;++t)n[r+t]=s[t]}}function Pd(t){return parseFloat(t.toFixed(2))}class Td{static getPageSizeByType(t,e){let r,s=this.PAGE_SIZE_DEFINE[t];s||(s=this.PAGE_SIZE_DEFINE.a4);let n="landscape"!==e,a=n?this.page_size_portrait_cache:this.page_size_landscape_cache;return t in a?r=a[t]:(r={width:Pd(js(s[+!n],"mm","px")),height:Pd(js(s[+!!n],"mm","px"))},a[t]=r),r}static getPagePadding(t){return{top:Pd(js(t.top,"cm","px")),bottom:Pd(js(t.bottom,"cm","px")),left:Pd(js(t.left,"cm","px")),right:Pd(js(t.right,"cm","px"))}}static getPageContentSize(t,e){return{width:Pd(t.width-e.left-e.right),height:Pd(t.height-e.top-e.bottom)}}static getDecorateMaxHeight(t){return Pd(.2*t.height)}static getDefaultPageSetup(){return{left:2.54,top:2.54,right:2.54,bottom:2.54,orientation:"portrait",page_type:"a4"}}}Td.PAGE_SIZE_DEFINE={letter:[216,279],tabloid:[279,432],legal:[216,356],statement:[140,216],executive:[184,267],folio:[216,330],a3:[297,420],a4:[210,297],a5:[148,210],b4:[250,353],b5:[176,250]},Td.page_size_portrait_cache=Object.create(null),Td.page_size_landscape_cache=Object.create(null);class vd extends ud{getMigrators(){return[this.ver1to2,this.ver2to3,this.ver3to4,this.ver4to5,this.ver5to6,this.ver6to7]}ver1to2(){let t=this.doc.content||[],e=t[0]&&"invisible"===t[0].type,r=e?t[0]:{type:"invisible"},s={type:"edit_area",content:e?t.slice(1):t.slice(0)},n=t=>({type:"header",attrs:{type:t},content:[{type:"paragraph",attrs:{}}]}),a=t=>({type:"footer",attrs:{type:t},content:[{type:"paragraph",attrs:{}}]}),i={type:"page_decorate",attrs:{},content:[n("cover"),n("even"),n("normal"),a("cover"),a("even"),a("normal"),{type:"page_num",attrs:{type:"normal"},content:[{type:"page_num_text"}]}]},o={type:this.doc.type,attrs:{schema:2,type:"document"},content:[r,s,i]};this.doc=o}ver2to3(){return this.options&&this.options.page_setup&&(this.doc.attrs.page_setup=this.options.page_setup),this.doc.attrs.schema=3,this.doc}ver3to4(){let t=this.doc.attrs.page_setup||Td.getDefaultPageSetup(),e=Td.getPageSizeByType(t.page_type,t.orientation),r=Td.getPagePadding(t),s=Td.getPageContentSize(e,r);return pd(this.doc,{doc:function(t){t.attrs=Object.assign({},t.attrs),t.attrs.schema=4},table:function(t){return _d(t,s.width)}})}ver4to5(){let t=this.doc;t.attrs=Object.assign(Object.create(null),t.attrs),t.attrs.schema=5;let e=t.content[2].content[6];return e.content=[{type:"page_num_block",content:e.content}],t}ver5to6(){return pd(this.doc,{doc:dd(6),code_block:function(t){t.type="paragraph"}})}ver6to7(){return pd(this.doc,{doc:dd(7),chart:Ad})}}let Id=Object.prototype.hasOwnProperty,kd=()=>{};class Ed extends ud{getMigrators(){return[this.toVer2,this.toVer3,kd,kd,kd,this.toVer7]}toVer2(t){let e=function(t,e,r){let s=r.type,n=s.indexOf(t);n>=0&&(r.type=s.substring(0,n)+e+s.substring(n+t.length))},r=function(t){if(!t)return null;let e=!1;for(let r in t)Id.call(t,r)&&(null==t[r]?delete t[r]:e=!0);return e?t:null},s=e.bind(this,"_holder","_master_holder"),n=e.bind(this,"_instance","_slide_holder"),a=["stroke","stroke-opacity","stroke-width","stroke-dasharray"],i=["fill","fill-opacity"],o=function(t,r){if(r.type.indexOf("master")>=0)e("_holder_shape","_master_holder_shape",t);else if(r.type.indexOf("layout")>=0)e("_holder_shape","_layout_holder_shape",t);else throw Error(`Invalid parent type ${r.type} of ${t.type}.`)},l=function(t){let e,s=t.attrs.path_config;if(!("path_config"in t.attrs)||null==s)return;let n=jt(s,null,!1,a);s=jt(s);for(let t=a.length-1;t>=0;--t)delete s[a[t]];if("stroke-dasharray"in n&&""===n["stroke-dasharray"]&&(n["stroke-dasharray"]="none"),"stroke-opacity"in n){let t=parseFloat(n["stroke-opacity"]);n["stroke-opacity"]=isNaN(t)?1:t}if("stroke-width"in n){let t=parseFloat(n["stroke-width"]);n["stroke-width"]=isNaN(t)?0:t}("none"===n.stroke||"transparent"===n.stroke||""===n.stroke||0===n["stroke-opacity"])&&(e=!1,delete n.stroke,delete n["stroke-opacity"]),0===n["stroke-width"]&&(e=!1,delete n["stroke-width"]),n=r(n),null==e&&null!=n&&(e=!0),t.attrs=jt(t.attrs),t.attrs.path_config=s,null!=n&&(t.attrs.stroke_config=n),null!=e&&(t.attrs.stroke=e)},h=function(t){let e,s=t.attrs.path_config;if(!("path_config"in t.attrs)||null==s)return;let n=jt(s,null,!1,i);s=jt(s);for(let t=i.length-1;t>=0;--t)delete s[i[t]];if("fill-opacity"in n){let t=parseFloat(n["fill-opacity"]);n["fill-opacity"]=isNaN(t)?1:t}("none"===n.fill||"transparent"===n.fill||""===n.fill||0===n["fill-opacity"])&&(e=!1,delete n.fill,delete n["fill-opacity"]),n=r(n),null==e&&null!=n&&(e=!0),t.attrs=jt(t.attrs),t.attrs.path_config=s,null!=n&&(t.attrs.fill_config=n),null!=e&&(t.attrs.fill=e)},u=function(t){t.attrs=jt(t.attrs),"align_h"in t.attrs&&(t.attrs.align_h<0||(t.attrs.vertical_align=t.attrs.align_h),delete t.attrs.align_h),("padding_left"in t.attrs||"padding_top"in t.attrs||"padding_right"in t.attrs||"padding_bottom"in t.attrs)&&(t.attrs.padding={left:t.attrs.padding_left,top:t.attrs.padding_top,right:t.attrs.padding_right,bottom:t.attrs.padding_bottom},delete t.attrs.padding_left,delete t.attrs.padding_top,delete t.attrs.padding_right,delete t.attrs.padding_bottom)},c=function(t,r){if(r.type.indexOf("master")>=0)e("_text_style","_master_holder_text_block",t);else if(r.type.indexOf("layout")>=0)e("_text_style","_layout_holder_text_block",t);else throw Error(`Invalid parent type ${r.type} of ${t.type}.`)};return pd(t,{doc:dd(2),content_container:function(t){t.type="slide_content_container"},title_holder:s,sub_title_holder:s,body_holder:s,page_number_holder:s,title_holder_shape:[o,l,h],body_holder_shape:[o,l,h],title_text_style:[u,c],body_text_style:[u,c],text_shape:[l,h],shape:[l,h],line:[function(t){let e=t.attrs.path_config;"path_config"in t.attrs&&null!=e&&"arrow-type"in e&&(t.attrs=jt(t.attrs),t.attrs.arrow=e["arrow-type"],e=jt(e),delete e["arrow-type"],t.attrs.path_config=e)},l],image:[l],chart:[l],title_instance:n,sub_title_instance:n,body_instance:n,page_number_instance:n,title_instance_shape:[n,l,h],sub_title_instance_shape:[n,l,h],body_instance_shape:[n,l,h],page_number_instance_shape:[n,l,h],title_instance_text_block:[n,u],sub_title_instance_text_block:[n,u],body_instance_text_block:[n,u],page_number_instance_text_block:[n,u]})}toVer3(){return pd(this.doc,{doc:dd(3),table_box:function(t){let e=yd.child(t,0);e.content[0]=_d(yd.child(e,0),Math.abs(t.attrs.transform.width))}})}toVer7(){let t=Object.create(null);function e(e){let r=e.content;if(r)for(let e=r.length-1;e>=0;--e){let s=r[e],n=s.attrs;n&&n.id||((s.attrs=Object.assign(Object.create(null),n)).id=function(){let e;do{e=Tt()}while(t[e]);return t[e]=!0,e}())}}return pd(this.doc,{doc:dd(7),master_content_container:e,layout_content_container:e,slide_content_container:e,object_group:e,chart:Ad,line:function(t){let e=t.attrs;if(!e)return;let r=e.arrow;r&&(t.attrs=e=Object.assign(Object.create(null),e),delete e.arrow,("start"===r||"both"===r)&&(e.arrow_start="triangle"),("end"===r||"both"===r)&&(e.arrow_end="triangle"))}})}}class Nd{static run(t){return"createComment"===t.stepType||"removeComment"===t.stepType||"resolveComment"===t.stepType||"reopenComment"===t.stepType?null:t}}class Ld{static run(t){let e=null;if("create"===t.type)e=this.loadIntoCreateCommentStep;else if("reply"===t.type)e=this.loadIntoCreateReplyStep;else if("edit"===t.type&&t.data){let r=t.data;null===r.text&&r.replyIndex<0?e=this.loadIntoRemoveCommentStep:null===r.text&&r.replyIndex>=0?e=this.loadIntoRemoveReplyStep:null!==r.text&&r.replyIndex<0?e=this.loadIntoEditCommentStep:null!==r.text&&r.replyIndex>=0&&(e=this.loadIntoEditReplyStep)}else"resolve"===t.type?e=this.loadIntoResolveCommentStep:"reopen"===t.type&&(e=this.loadIntoReopenCommentStep);return e?e.call(this,t.data):t}static _json(t,e,r){return{stepType:t,operator:e,operation:r}}static loadIntoCreateCommentStep(t){let e=t.author,r={id:t.id,author:t.author,type:t.type,text:t.text,status:wl,timestamp:t.timestamp,lastModified:t.lastModified};return Ld._json("createCommentV2",e,r)}static loadIntoCreateReplyStep(t){let e=t.author,r={id:t.id,target:t.target,lastModified:t.lastModified,timestamp:t.timestamp,text:t.text,author:t.author,status:wl};return Ld._json("createReplyV2",e,r)}static _loadStatusStep(t){return{operator:t.author,operation:{target:t.target,id:t.id,author:t.author,timestamp:t.timestamp,lastModified:t.lastModified}}}static loadIntoResolveCommentStep(t){let{operator:e,operation:r}=Ld._loadStatusStep(t);return Ld._json("resolveCommentV2",e,r)}static loadIntoReopenCommentStep(t){let{operator:e,operation:r}=Ld._loadStatusStep(t);return Ld._json("reopenCommentV2",e,r)}static loadIntoEditCommentStep(t){let e=t.author,r={target:t.threadId,lastModified:t.lastModified,text:t.text};return Ld._json("editCommentV2",e,r)}static loadIntoEditReplyStep(t){let e=t.author,r={target:t.threadId,replyIndex:t.replyIndex,text:t.text,lastModified:t.lastModified};return Ld._json("editReplyV2",e,r)}static loadIntoRemoveCommentStep(t){let e=t.author,r={target:t.threadId};return Ld._json("removeCommentV2",e,r)}static loadIntoRemoveReplyStep(t){let e=t.author,r={target:t.threadId,replyIndex:t.replyIndex,lastModified:t.lastModified};return Ld._json("removeReplyV2",e,r)}}function jd(t,e){let r,s=ud.getDocType(t);if("document"===s)r=new vd(t,e);else if("presentation"===s)r=new Ed(t,e);else throw Error("Can not migrate file of Invalid type");return r.doMigration()}function Rd(t){return t<=0?0:t<=1?1:Math.round(t)}function Od(t){return isNaN(t=Rs(t,"px"))?null:Rd(t)}function Dd(t){return Od(t.style.width||t.getAttribute("width"))}function Fd(t){return Od(t.style.height||t.getAttribute("height"))}let Bd={indexToPos(t,e,r){let s,n=t.self,a=t.pos;a+=1;for(let t=0;t<e;t++)a+=(s=n.child(t)).nodeSize;if(void 0===r)return a;a+=1,s=n.child(e);for(let t=0;t<r;t++)a+=s.child(t).nodeSize;return a},$posToTableIndex(t){let e=t.findDepth("Table"),r=t.findDepth("TableRow");return{rowIndex:t.index(e),cellIndex:t.index(r)}}};class Vd{insertColumnRight(){throw Error("Please extend this class")}insertColumnLeft(){throw Error("Please extend this class")}removeColumn(){throw Error("Please extend this class")}}class Hd extends Vd{constructor(t){super(),this.cell_selection_=t;let e=t.selection(),r=e.$from.findDepth("Table");this._$table=e.$from.shrink(r-1)}insertColumnRight(){return{$table:this._$table,insertIndex:this._columnIndexBeInsertedWhenInsertingRight(),copyRange:this.columnCopiedRange()}}insertColumnLeft(){return{$table:this._$table,insertIndex:this._columnIndexBeInsertedWhenInsertingLeft(),copyRange:this.columnCopiedRange()}}removeColumn(){let t=0,e=1e6;return this.cell_selection_.getOpResolvedPosArray().forEach((r=>{let s=Bd.$posToTableIndex(r);s.cellIndex>t&&(t=s.cellIndex),s.cellIndex<e&&(e=s.cellIndex)})),{$table:this._$table,removeIndex:e,removeCount:t-e+1}}columnCopiedRange(){let t=0,e=1e6;return this.cell_selection_.getDisplayResolvedPosArray().forEach((r=>{let s=Bd.$posToTableIndex(r).cellIndex;s>t&&(t=s),s<e&&(e=s)})),{from:e,to:t+1}}_columnIndexBeInsertedWhenInsertingRight(){let t=0;return this.cell_selection_.getOpResolvedPosArray().forEach((e=>{let r=Bd.$posToTableIndex(e);r.cellIndex>t&&(t=r.cellIndex)})),t+1}_columnIndexBeInsertedWhenInsertingLeft(){let t=1e6;return this.cell_selection_.getOpResolvedPosArray().forEach((e=>{let r=Bd.$posToTableIndex(e);r.cellIndex<t&&(t=r.cellIndex)})),t}insertRowDown(){return{$table:this._$table,insertIndex:this._rowIndexBeInsertedWhenInsertingDown(),copyRange:this.rowCopiedRange()}}insertRowUp(){return{$table:this._$table,insertIndex:this._rowIndexBeInsertedWhenInsertingUp(),copyRange:this.rowCopiedRange()}}rowCopiedRange(){let t=0,e=1e6;return this.cell_selection_.getDisplayResolvedPosArray().forEach((r=>{let s=Bd.$posToTableIndex(r).rowIndex;s>t&&(t=s),s<e&&(e=s)})),{from:e,to:t+1}}_rowIndexBeInsertedWhenInsertingDown(){let t=0;return this.cell_selection_.getOpResolvedPosArray().forEach((e=>{let r=Bd.$posToTableIndex(e).rowIndex;r>t&&(t=r)})),t+1}_rowIndexBeInsertedWhenInsertingUp(){let t=1e6;return this.cell_selection_.getOpResolvedPosArray().forEach((e=>{let r=Bd.$posToTableIndex(e).rowIndex;r<t&&(t=r)})),t}removeRow(){let t=0,e=1e6;return this.cell_selection_.getOpResolvedPosArray().forEach((r=>{let s=Bd.$posToTableIndex(r).rowIndex;s>t&&(t=s),s<e&&(e=s)})),{$table:this._$table,removeIndex:e,removeCount:t-e+1}}}class Gd extends Vd{constructor(t){super(),this._$from=t.selection().$from,this._$table=this._$from.shrink(this._$from.findDepth("Table")-1)}insertColumnRight(){let t=Bd.$posToTableIndex(this._$from).cellIndex,e=this._$from.shrink(this._$from.findDepth("TableCell")-1).self.state.view_colspan;return{$table:this._$table,insertIndex:t+e,copyRange:t}}insertColumnLeft(){let t=Bd.$posToTableIndex(this._$from).cellIndex;return{$table:this._$table,insertIndex:t,copyRange:t}}removeColumn(){let t=Bd.$posToTableIndex(this._$from).cellIndex,e=this._$from.shrink(this._$from.findDepth("TableCell")-1).self.state.view_colspan;return{$table:this._$table,removeIndex:t,removeCount:e}}insertRowDown(){let t=Bd.$posToTableIndex(this._$from).rowIndex,e=this._$from.shrink(this._$from.findDepth("TableCell")-1).self.state.view_rowspan;return{$table:this._$table,insertIndex:t+e,copyRange:t}}insertRowUp(){let t=Bd.$posToTableIndex(this._$from).rowIndex;return{$table:this._$table,insertIndex:t,copyRange:t}}removeRow(){let t=Bd.$posToTableIndex(this._$from).rowIndex,e=this._$from.findNode("TableCell").state.view_rowspan;return{$table:this._$table,removeIndex:t,removeCount:e}}}function zd(t){return t.isMultiCellSelection?new Hd(t):t.isSpecial?void 0:new Gd(t)}let Ud=24,qd=22;class $d{constructor(){this.data=[]}_ensureRowData(t){return this.data[t]||(this.data[t]=[])}_getRowData(t){return this.data[t]}getRowCount(){return this.data.length}getCellCount(t){let e=this._getRowData(t);return e?e.length-1:0}getCell(t,e){let r=this._getRowData(t);return r?r[e+1]:void 0}setCell(t,e,r){return this._ensureRowData(t)[e+1]=r}getRow(t){return this.getCell(t,-1)}setRow(t,e){return this.setCell(t,-1,e)}forEachCell(t,e){let r=this.data;for(let s=0,n=r.length;s<n;++s){let n=r[s];for(let r=0,a=n.length-1;r<a;++r)if(t.call(e,n[r+1],s,r))return}}forEachRow(t,e){let r=this.data;for(let s=0,n=r.length;s<n;++s)if(t.call(e,r[s][0],s))return}}let Jd={width:1,style:"solid",color:"#000000"},Wd=["left","top","right","bottom"].reduce((function(t,e){return t[e]=Jd,t}),Object.create(null));function Zd(t,e,r,s,n,a,i,o){t.setCell(e,r,{row_index:e,col_index:r,node:s,dirty:!1,display:!n,hidden:n,view_rowspan:a,view_colspan:i,covered_idx:o,border:n?Wd:Object.create(null)})}function Yd(t,e){let r="border"+li(e);return{width:t.getAttrValue(r+"Width"),style:t.getAttrValue(r+"Style"),color:t.getAttrValue(r+"Color")}}function Xd(t,e){return t.getAttrValue(`border${li(e)}Width`)}function Kd(t,e,r){return t.border[e]=r||Yd(t.node,e)}function Qd(t,e,r){let s=r?"left":"top";return e.border[s]||Kd(e,s)}function ty(t,e,r){let s,n,a=r?"right":"bottom",i=(n=r?t.getCell(e.row_index,e.col_index+e.view_colspan):t.getCell(e.row_index+e.view_rowspan,e.col_index))&&!n.hidden?n:void 0;if(i){let n=r?"left":"top";s=Xd(i.node,n)>Xd(e.node,a)?Qd(t,i,r):Kd(i,n,Yd(e.node,a))}return Kd(e,a,s)}function ey(e){var r,s;return r=e,s=t||(t={top:"top",middle:"middle",bottom:"bottom"}),r?s[r]||"top":null}class ry extends _a{get Node(){return sy}registerSelfLocalAttrsUpdateMap(t){t.register(t.UPDATE_START,this.name,"init_table_info",null,((t,e)=>{e.setTableNode(t)})),t.register(t.UPDATE_START,this.name,"init_table_row_index",null,((t,e)=>{e.setTableRowIndex(-1)})),t.register(t.BEFORE_CHILD,this.name,"increase_table_row_index",null,((t,e,r)=>{r.setTableRowIndex(r.getTableRowIndex()+1)})),t.register(t.UPDATE_END,this.name,"clear_table_row_index",null,((t,e)=>{e.setTableRowIndex()})),t.register(t.UPDATE_START,this.name,"scan_table",null,((t,e)=>{let r=t.getStateRank();if(r===Bn.STATE_NONE)return;let s=!1;if(r>=Bn.STATE_UPDATE)s=0;else if(t.forEach((function(t,e,r){return t.getStateRank()>=Bn.STATE_UPDATE||t.state.row_index!==r||t.state.cell_count!==t.childCount?(s=r,!0):t.forEach((function(t,e,n){if(t.getStateRank()>=Bn.STATE_UPDATE||t.state.row_index!==r||t.state.col_index!==n)return s=r,!0}),this,!0)}),this,!0),!1===s){if(t.state.row_count===t.childCount)return;s=t.childCount}t.state.row_count=t.childCount,t.forEach((function(t){t.setMinStateRank(Bn.STATE_PASSING)})),e.setTableUpdateInfoMap(function(t,e){let r=function(t){let e=new $d,r=t.childCount,s=t.content.content.map((t=>t.childCount));return t.forEach((function(t,r,s){e.setRow(s,{row_index:s,node:t,dirty:!1,border:{left:0,top:0,right:0,bottom:0}})})),t.forEachCell(null,null,null,null,(function(n,a,i,o){if(e.getCell(i,o))return;let l=Math.min(n.getAttrValue("rowspan"),r-i),h=Math.min(n.getAttrValue("colspan"),s[i]-o);if(1!==l||1!==h){for(let t=1;t<h;++t)if(e.getCell(i,o+t)){h=t;break}let r=o+h;for(let t=1;t<l;++t)if(r>s[i+t]){l=t;break}let n={row_index:i,col_index:o};for(let r=0;r<l;++r){let s=i+r;for(let a=0;a<h;++a){if(0===a&&0===r)continue;let i=o+a;Zd(e,s,i,t.getCellNode(s,i),!0,1,1,n)}}}Zd(e,i,o,n,!1,l,h,null)})),e}(t);var s=e;if(t.forEachCell(s,null,null,null,(function(t,e,s,n){r.getCell(s,n).dirty=!0})),s>0&&s<=r.getRowCount()){let e=--s;t.child(e).forEach((function(t,n,a){let i=r.getCell(e,a);if(i.hidden){let t=i.covered_idx;if(t.col_index!==a)return;i=r.getCell(t.row_index,t.col_index),s=Math.min(s,i.row_index)}i.dirty=!0}))}for(let t=s,e=r.getRowCount();t<e;++t)r.getRow(t).dirty=!0;r.forEachCell((function(t){t.hidden||(Qd(r,t,!0),Qd(r,t,!1),ty(r,t,!0),ty(r,t,!1))})),r.forEachRow((function(t){!function(t,e){let r=e.row_index,s=e.border;for(let e=0,n=t.getCellCount(r);e<n;++e){let n=t.getCell(r,e);if(n.hidden){let r=n.covered_idx;if(r.col_index!==e)continue;n=t.getCell(r.row_index,r.col_index)}let a=n.border;0===e&&(s.left=a.left.width),s.right=a.right.width,s.top=Math.max(s.top,a.top.width),s.bottom=Math.max(s.bottom,a.bottom.width)}}(r,t)}));let n=0,a=[];return(t.getAttrValue("colgroup")||Z).forEach((({width:t})=>{a.push({left:n,width:t}),n+=t})),r.forEachCell((t=>{let e=t.col_index,r=e+t.view_colspan,s=0;for(let t=e;t<r;++t)s+=a[t]?.width||0;t.width=s,t.left=e<a.length?a[e].left:n})),r}(t,s))})),t.register(t.UPDATE_END,this.name,"clear_table_info",null,((t,e)=>{e.setTableUpdateInfoMap(),e.setTableRowIndex(),e.setTableNode()})),t.register(t.SELF_START,this.name,"set_col_info",null,((t,e)=>{let r=0,s=[],n=[],a=0;for(let e=0;e<t.attrs.colgroup.length;++e){let i=t.attrs.colgroup[e].width;s.push(i),n.push(a),a+=i,r+=i}t.state.width=r,t.state.col_width_arr=s,t.state.col_left_arr=n})),t.reorder(t.SELF_START,this.name,"set_text_rect_info")}matchColgroup(t){let e=null,r=null;if(Array.prototype.forEach.call(t.children,(t=>{switch(t.nodeName){case"COLGROUP":e=t;break;case"TBODY":r=t}})),null!==e&&e.children.length>0){let t=[];return[...e.children].forEach((e=>{let r=e.span??1,s=Dd(e);for(s=null==s?NaN:s||1;r>0;)t.push({width:s}),--r})),t}return null===r?[]:Array.prototype.reduce.call(r.firstElementChild.children,((t,e)=>{let r=e.colSpan,s=Dd(e);for(null!=s&&(s=Math.floor(s/r)||1);r>0;)t.push({width:s}),--r;return t}),[])}get matchDOMTag(){return{table:(t,e)=>Object.assign(this.parseAttrs(t,e),{synotable:t.getAttribute("synotable")||t.getAttribute("data-syno-table")||vt(t.ownerDocument,"synotable"),colgroup:this.matchColgroup(t),parsed_width:Dd(t),parsed_height:Fd(t)})}}createFromDOM(t,e,r,s){let n=s&&s.editor_width||NaN,a=this.fixTableCreation(e,t,n);return e=a.content,t=a.attrs,super.createFromDOM(t,e,r,s)}maybeCreateFilled(t,e,r){let s=this.fixTableCreation(e,t);return e=s.content,t=s.attrs,super.maybeCreateFilled(t,e,r)}_getIndexStore(t){let e=new Oi;for(let r=0;r<t.childCount;++r){let s=t.child(r);if(!(s.getAttrValue("parsed_empty")&&e.getAt(r,0)))for(let t=0;t<s.childCount;++t){let n=s.child(t),a=r,i=t;for(;e.getAt(a,i);)i++;e.setAt(a,i,n);let o=n.attrs.colspan||1,l=n.attrs.rowspan||1;for(let t=0;t<l;++t)for(let r=0;r<o;++r){if(0===t&&0===r)continue;let s=a+t,l=i+r;if(e.getAt(s,l))o=r;else{let t=jt({colspan:1,rowspan:1},jt(n.attrs));e.setAt(s,l,this.schema.nodes.table_cell.createAndFill(t))}}}}return e}_fixValueArr(t,e,r,s){let n=0,a=[];for(let e=0;e<t.length;++e){let r=t[e];isNaN(r)||null==r?a.push(e):n+=r}if(a.length){let i;for(let o of(i=!isNaN(e)&&e>n?Math.floor((e-n)/a.length):!isNaN(r)&&r>n?Math.floor((r-n)/a.length):s,a))t[o]=i,n+=i}else if(!isNaN(e)&&e>n){let r=e/n;for(let e=0;e<t.length;++e)t[e]=Math.floor(t[e]*r)}if((isNaN(e)||null==e)&&(e=n),!isNaN(r)&&e>r){let s=r/e;for(let e=0;e<t.length;++e)t[e]=Math.floor(t[e]*s)}return t}_getFixedRowHeightArr(t,e){let r=Array(t.childCount);for(let e=0;e<t.childCount;++e)r[e]=t.child(e).attrs.height;return this._fixValueArr(r,e,void 0,qd)}_getFixedAttrs(t,e,r){let s={...t},n=t.colgroup||[],a=[];for(let t=0;t<e;++t){let e=n[t]?n[t].width:NaN;a.push(e)}let i=t.parsed_width;this._fixValueArr(a,i,r,Ud);let o=[];for(let t=0;t<e;++t)o.push({width:a[t]});return s.colgroup=o,delete s.parsed_width,delete s.parsed_height,s}fixTableCreation(t,e,r){t||(t=Tn.empty),e||(e={});let s=this._getIndexStore(t),n=s.getRectColSize(),a=this._getFixedRowHeightArr(t,e&&e.parsed_height),i=this._getFixedAttrs(e,n,r),o=[];for(let e=0;e<t.childCount;++e){let r=t.child(e),i=[];for(let t=0;t<n;++t){let r=s.getAt(e,t);r||(r=this.schema.nodes.table_cell.createAndFill()),i.push(r)}let l=r.copy(Tn.from(i),{parsed_empty:null});isNaN(a[e])||(l.attrs.height=a[e]),o.push(l)}return{content:Tn.from(o),attrs:i}}findGridCell(t,e,r){if(t.type!==this)return null;let s=t.attrs.grid;for(let t=0;t<s.length;++t){let n=s[t];for(let s=0;s<n.length;++s){let a=n[s];if(a.x===e&&a.y===r)return[t,s]}}return null}expandRegion(t,e,r,s,n){if(t.type!==this)return null;let a=t.attrs.grid;a[r][e].real||(e-=a[r][e].dx,r-=a[r][e].dy);let i=[e,r,s,n];for(let t=r;t<=n;++t){let e=s+a[t][s].colspan-a[t][s].dx-1;e>i[2]&&(i[2]=e)}for(let t=e;t<=s;++t){let e=n+a[n][t].rowspan-a[n][t].dy-1;e>i[3]&&(i[3]=e)}return[[i[1],i[0]],[i[3],i[2]]]}}class sy extends ha{getRowCount(){return this.childCount}getColCount(){return this.attrs&&this.attrs.colgroup&&this.attrs.colgroup.length||0}getRowSize(){return this.getRowCount()}getColSize(){return this.getColCount()}getColWidth(t){let e=this.attrs.colgroup[t];return e?e.width:NaN}getCellIndex(t,e){return this.getCellNode(t,e)&&{row:t,col:e}}getCellNode(t,e){let r=this.maybeChild(t);return r&&r.maybeChild(e)}getCellOffset(t,e){let r=this.maybeChild(t);return!r||e>=r.childCount?NaN:this.offsetAt(t)+1+r.offsetAt(e)}getCellData(t,e){let r=this.getCellNode(t,e);return r?{node:r,offset:this.getCellOffset(t,e),row:t,col:e}:null}getDisplayCellIndex(t,e){let r=this.getCellNode(t,e);return r?(r.state.display||(t=r.state.covered_idx.row_index,e=r.state.covered_idx.col_index,r=this.getCellNode(t,e)),{row:t,col:e,row_span:r.state.view_rowspan,col_span:r.state.view_colspan}):null}getDisplayCellNode(t,e){let r=this.getDisplayCellIndex(t,e);return r&&this.getCellNode(r.row,r.col)}getDisplayCellOffset(t,e){let r=this.getDisplayCellIndex(t,e);return r?this.getCellOffset(r.row,r.col):NaN}getDisplayCellData(t,e){let r=this.getDisplayCellIndex(t,e);return r&&Object.assign(this.getCellData(r.row,r.col),r)}getSiblingDisplayCellIndex(t,e,r,s){var n,a;let i=this.getDisplayCellIndex(t,e);return i&&this.getDisplayCellIndex(i.row+(n=i.row_span,r>0?n:r<0?-1:0),i.col+(a=i.col_span,s>0?a:s<0?-1:0))}getSiblingDisplayCellNode(t,e,r,s){let n=this.getSiblingDisplayCellIndex(t,e,r,s);return n&&this.getCellNode(n.row,n.col)}getSiblingDisplayCellOffset(t,e,r,s){let n=this.getSiblingDisplayCellIndex(t,e,r,s);return n?this.getCellOffset(n.row,n.col):NaN}getSiblingDisplayCellData(t,e,r,s){let n=this.getSiblingDisplayCellIndex(t,e,r,s);return n&&Object.assign(this.getCellData(n.row,n.col),n)}getNextDisplayCellIndex(t,e,r){let s,n,a,i=this.getDisplayCellIndex(t,e);if(!i)return null;for(r=xt(r),t=i.row,e=i.col+r;s=this.maybeChild(t);){for(null==e&&(e=r<0?s.childCount-1:0);n=s.maybeChild(e);){if(n.state.display){a=!0;break}e+=r}if(a)break;e=null,t+=r}return this.getDisplayCellIndex(t,e)}getNextDisplayCellNode(t,e,r,s){let n=this.getNextDisplayCellIndex(t,e,r,s);return n&&this.getCellNode(n.row,n.col)}getNextDisplayCellOffset(t,e,r,s){let n=this.getNextDisplayCellIndex(t,e,r,s);return n?this.getCellOffset(n.row,n.col):NaN}getNextDisplayCellData(t,e,r,s){let n=this.getNextDisplayCellIndex(t,e,r,s);return n&&Object.assign(this.getCellData(n.row,n.col),n)}getEnsuredCellIndex(t,e){return t=ge(t,0,this.childCount-1),e=ge(e,0,this.child(t).childCount-1),{row:t,col:e}}getEnsuredCellNode(t,e){let r=this.getEnsuredCellIndex(t,e);return this.getCellNode(r.row,r.col)}getEnsuredCellOffset(t,e){let r=this.getEnsuredCellIndex(t,e);return this.getCellOffset(r.row,r.col)}getEnsuredCellData(t,e){let r=this.getEnsuredCellIndex(t,e);return this.getCellData(r.row,r.col)}forEachCell(t,e,r,s,n,a,i){return this.forRange(t,e,(function(t,e,o){return t.forRange(r,s,(function(t,r,s){return n.call(a,t,e+1+r,o,s)}),this,i)}),this,i)}forEachDisplayCell(t,e,r,s,n,a,i){let o=new Oi;return this.forEachCell(t,e,r,s,(function(t,e,r,s){let n=this.getDisplayCellIndex(r,s);o.getAt(n.row,n.col)||o.setAt(n.row,n.col,!0)}),this),o.forEachCell(this,(function(t,e,r,s){return n.call(a,t,e,r,s)}),this,i)}forEachOperateCell(t,e,r,s,n,a,i){let o=new Oi;return this.forEachCell(t,e,r,s,(function(t,e,r,s){let n=this.getDisplayCellIndex(r,s);o.getAt(n.row,n.col)||o.setRange(n.row,n.row+n.row_span-1,n.col,n.col+n.col_span-1,!0)}),this),o.forEachCell(this,(function(t,e,r,s){return n.call(a,t,e,r,s)}),this,i)}getRawIdxStoreByRect(t){let e=new Oi;for(let r=t.top;r<=t.bottom;++r)for(let s=t.left;s<=t.right;++s)this.getCellNode(r,s)&&e.setAt(r,s,!0);return e}getDisplayIdxStoreByRect(t){let e=new Oi;for(let r=t.top;r<=t.bottom;++r)for(let s=t.left;s<=t.right;++s){let t=this.getCellNode(r,s);t&&(t.state.display?e.setAt(r,s,!0):this.getCellNode(t.state.covered_idx.row_index,t.state.covered_idx.col_index)&&e.setAt(t.state.covered_idx.row_index,t.state.covered_idx.col_index,!0))}return e}getOpIdxStoreByRect(t){let e=new Oi;for(let r=t.top;r<=t.bottom;++r)for(let s=t.left;s<=t.right;++s){let t=this.getCellNode(r,s);if(!t)continue;if(e.setAt(r,s,!0),t.state.display){for(let r=0;r<t.state.view_rowspan;++r)for(let s=0;s<t.state.view_colspan;++s){let n=r+t.state.row_index,a=s+t.state.col_index;this.getCellNode(n,a)&&e.setAt(n,a,!0)}continue}let n=this.getCellNode(t.state.covered_idx.row_index,t.state.covered_idx.col_index);if(n)for(let t=0;t<n.state.view_rowspan;++t)for(let r=0;r<n.state.view_colspan;++r){let s=t+n.state.row_index,a=r+n.state.col_index;this.getCellNode(s,a)&&e.setAt(s,a,!0)}}return e}getCellsCount(){let t=0;for(let e=0;e<this.childCount;++e)t+=this.child(e).childCount;return t}}class ny extends ry{get isTable(){return!0}get unbreakable(){return!0}get selectionExtendable(){return!0}get attrs(){return{synotable:sn.create({default:Tt,copyable:!1}),colgroup:sn.create({default:[]}),parsed_width:sn.createOptional({normalizer:"number"}),parsed_height:sn.createOptional({normalizer:"number"})}}getTextRectInfo(t,e){return{left:super.getTextRectInfo(t,e).left,width:t.state.width||0}}getTableDOM(t){return t.firstChild}getTableBodyDOM(t){return this.getTableDOM(t).childNodes[1]}getIndicatorWrapperDOM(t){return this.getTableDOM(t)}renderBlockStructure(t,e){let r=e.target;return["table",this.renderAttrs({synotable:t.getAttrValue("synotable"),inline_style:{borderCollapse:"collapse",tableLayout:"fixed",width:"clipboard"===r?null:t.state.width+"px"}},t,e),(t.getAttrValue("colgroup")||Z).reduce(((t,e)=>(t.push(["col",{inline_style:{width:`${e.width}px`}}]),t)),["colgroup",null]),["tbody",null,0],"editor"===r||"viewer"===r||"general"===r?["div"]:null]}}class ay extends ma{get isTableRow(){return!0}get unbreakable(){return!0}get hasCss(){return!0}get attrs(){return{parsed_empty:sn.create({optional:!0,empty_value:!1}),height:new sn({default:qd,normalizer:"number"})}}registerSelfLocalAttrsUpdateMap(t){t.register(t.UPDATE_START,this.name,"init_table_col_index",null,((t,e)=>{e.setTableColIndex(-1)})),t.register(t.BEFORE_CHILD,this.name,"increase_table_col_index",null,((t,e,r)=>{r.setTableColIndex(r.getTableColIndex()+1)})),t.register(t.UPDATE_END,this.name,"clear_table_col_index",null,((t,e)=>{e.setTableColIndex()})),t.register(t.UPDATE_START,this.name,"update_table_row_info",null,((t,e)=>{let r=e.getTableUpdateInfoMap();if(!r)return;let s=r.getRow(e.getTableRowIndex());if(!s.dirty)return;let n=t.state;return(n.border=s.border,t.getStateRank()<Bn.STATE_UPDATE&&n.row_index===s.row_index&&n.cell_count===t.childCount)?(t.forEach((function(t){t.setMinStateRank(Bn.STATE_PASSING)})),Bn.STATE_PASSING):(n.row_index=s.row_index,n.cell_count=t.childCount,Bn.STATE_UPDATE)}))}get matchDOMTag(){return{tr:(t,e)=>Object.assign(this.parseAttrs(t,e),{height:Fd(t),parsed_empty:!t.querySelector("td")||null})}}toDOM(t,e){return["tr",this.renderAttrs({inline_style:{height:`${t.attrs.height}px`}},t,e),0]}}class iy extends ma{get isTableCell(){return!0}get selectable(){return!0}get unbreakable(){return!0}get hasCss(){return!0}get attrs(){let t=sn.create({default:1,empty_value:1,normalizer:t=>{let e=sn.getPresetNormalizer("integer")(t);if(null!=e&&!(e<=0))return e}}),e={verticalAlign:sn.createOptional({empty_value:"middle",normalizer:["top","middle","bottom"]}),backgroundColor:sn.createOptional({empty_value:"transparent"}),rowspan:t,colspan:t},r=sn.create({default:1,empty_value:1,normalizer:Rd}),s=sn.create({default:"solid",empty_value:"solid"}),n=sn.create({default:"#7b8187",empty_value:"#7b8187"});return["Left","Top","Right","Bottom"].forEach((t=>{let a=`border${t}`;e[a+"Width"]=r,e[a+"Style"]=s,e[a+"Color"]=n})),e.codeBlock=sn.create({optional:!0}),e}getLeftPaddingWidth(t){return 6+t.state.border.left.width/2}getRightPaddingWidth(t){return 6+t.state.border.right.width/2}getTopPaddingHeight(t){return t.state.border.top.width/2}getBottomPaddingHeight(t){return t.state.border.bottom.width/2}getCustomizeColors(t){let e=[];return["borderLeftColor","borderTopColor","borderRightColor","borderBottomColor","backgroundColor"].forEach((r=>{t.attrs[r]&&e.push(t.attrs[r])})),e}getTextRectInfo(t,e){let r=t.type.getLeftPaddingWidth(t),s=t.type.getRightPaddingWidth(t),n=super.getTextRectInfo(t,e),a=t.state;return{left:n.left+a.left+r,width:a.width-r-s}}registerSelfLocalAttrsUpdateMap(t){t.register(t.UPDATE_START,this.name,"update_table_cell_info",null,((t,e)=>{let r=e.getTableUpdateInfoMap();if(!r)return;let s=r.getCell(e.getTableRowIndex(),e.getTableColIndex());if(!s.dirty)return;let n=t.state,a=n.hidden!==s.hidden||n.view_rowspan!==s.view_rowspan||n.view_colspan!==s.view_colspan||n.left!==s.left||n.width!==s.width||!et(n.border,s.border);if(n.row_index=s.row_index,n.col_index=s.col_index,n.display=s.display,n.hidden=s.hidden,n.view_rowspan=s.view_rowspan,n.view_colspan=s.view_colspan,n.covered_idx=s.covered_idx,n.left=s.left,n.width=s.width,n.border=s.border,a)return Bn.STATE_REDRAW})),t.reorder(t.SELF_START,this.name,"set_text_rect_info")}getContentDOM(t){return t.firstChild}getIndicatorWrapperDOM(t){return this.getContentDOM(t)}get matchDOMTag(){return{"td,th":(t,e)=>this.parseDOM(t,e)}}parseAttrsFromDom(t,e,r){return super.parseAttrsFromDom(...arguments),Object.assign(t,{rowspan:parseInt(e.getAttribute("rowspan"),10)||1,colspan:parseInt(e.getAttribute("colspan"),10)||1,verticalAlign:ey(e.style.verticalAlign),backgroundColor:Bs(e.style.backgroundColor)}),["Left","Top","Right","Bottom"].forEach((r=>{let s=`border${r}`;t[s+"Width"]=Od(e.style[s+"Width"]),t[s+"Style"]=Hs(e.style[s+"Style"]),t[s+"Color"]=Bs(e.style[s+"Color"])})),t}parseAttrsFromParser(t,e,r){let s=e.getMarkValue("background_color",!0);return!t.backgroundColor&&s&&(t.backgroundColor=s),t}renderAttrsJson(t,e,r){super.renderAttrsJson(t,e,r);let s=e.getAttrValue("codeBlock");return s&&(t.codeBlock=s),t}toDOM(t,e){let r=t.state;if("clipboard"===e.target&&r.hidden)return null;let s={display:r.hidden?"none":"table-cell",verticalAlign:t.getAttrValue("verticalAlign"),backgroundColor:t.getAttrValue("backgroundColor")},n=r.border;return n?rt(n,(function(t,e){let r="border"+li(e);s[r+"Width"]=t.width+"px",s[r+"Style"]=t.style,s[r+"Color"]=t.color})):["Left","top","Right","Bottom"].forEach((function(e){let r="border"+e;s[r+"Width"]=t.getAttrValue(r+"Width")+"px",s[r+"Style"]=t.getAttrValue(r+"Style"),s[r+"Color"]=t.getAttrValue(r+"Color")})),["td",this.renderAttrs({rowspan:r.view_rowspan||1,colspan:r.view_colspan||1,inline_style:s},t,e),["div",{class:this.className+"-content"},["div",{class:this.className+"-content-container"},0]]]}}class oy extends dc{static checkNode(t){return!!t.is("Table")}}class ly extends oy{constructor(t,e){super(t),this.cells=e}collectCellActions(t){let e=t.pos+1,r=e+t.self.getContentSize(),s=[];return this.cells.forEach((n=>{let{pos:a}=n;if(!(a>=e&&a<=r))return;let i=t.extend(a-e);if(!i.parent.is("TableRow"))return;let o=this.collectCellAction(i,n);o&&s.push(o)})),s.length?s.sort(((t,e)=>t.pos-e.pos)):s}applyAtPos(t,e){let{doc:r,self:s}=t,n=s,a=t.pos,i=a+n.nodeSize,o=this.collectCellActions(t);if(o.length)for(let t=o.length-1;t>=0;--t)n=this.applyCellAction(o[t],n,a);return n===s?r:r.replace(a,i,vn.from(n))}map(t){let e=this.mapPos(t);if(null==e)return null;let r=[];return(this.cells.forEach((e=>{let s=this.mapCellInfo(e,t);s&&r.push(s)})),r.length)?this.constructor.create(e,r):null}static create(t,e){if(!e.length)throw RangeError("Given cells are empty.");return super.create(t,e)}static assertCellInfo(t,e,r){let{pos:s}=r;if(!(s>e&&s<e+t.nodeSize))throw new xc(`Given cell pos ${s} is out of range (${e}, ${e+t.nodeSize}).`);if(!t.resolve(s-e-1).parent.is("TableRow"))throw new xc(`Given cell pos ${s} is not at table cell boundary.`)}}function hy(t,e,r){if(!Array.isArray(t)){let s=typeof t;if("object"===s){let{from:s,to:n}=t;null==s&&(s=0),null==n&&(n=r?e.getRowSize():e.getColSize()),t=Array.from({length:n-s},((t,e)=>s+e))}else if("number"===s)t=[t];else throw RangeError(`Given reference range ${t} is invalid.`)}if(!t.length)throw RangeError("Given reference range is empty.");return t}function uy(t,e,r){if(!e)return t.nodeType("table_cell").createAndFill(r);{let s=e.maybeChild(0),n=null;if(s&&s.type.isParagraph){let e=t.nodeType("paragraph");n=e.createAndFill(e.settableAttrValues(s.attrs))}let a=t.nodeType("table_cell");return a.createAndFill({...a.settableAttrValues(e.attrs),...r},n)}}function cy(t){return t.map((t=>t?t.reduce(((t,e)=>(t[e.index]=e.node,t)),Object.create(null)):Object.create(null)))}function py(t,e){return e.map((e=>e?e.map((e=>Object.assign(Object.create(null),e,{node:t.nodeFromJSON(e.node)}))):[]))}function dy(t,e){if(t.length<e){t=t.slice();for(let r=t.length;r<e;++r)t.push(null)}return t}class yy extends oy{constructor(t,e){super(t),this.index=e}static get replaceDir(){return""}static get replaceType(){return""}getReplaceIndex(t){return this.index}getReplaceCount(t){return 0}collectTableAttrs(t,e){return null}collectMergedCellsAttrs(t,e){let r,s,n,a,i=this.getReplaceIndex(e);if(0===i)return null;let o=this.getReplaceCount(e);if(0===o)return null;let l="insert"===this.constructor.replaceType,h=this.constructor.replaceDir,u=h+"span";"row"===h?(r=0,s=i-1):(n=0,a=i-1);let c=[];return e.forEachCell(r,s,n,a,((t,e,r,s)=>{let n=t.getAttrValue(u);if(1===n)return;let a=("row"===h?r:s)+n-1;i>a||c.push({pos:e,node:t,attrs:{[u]:n+(l?o:-Math.min(o,a-i+1))}})})),c}collectReplacingContent(t,e){return null}applyAtPos(t,e){let{doc:r,self:s}=t,n=s,a=t.pos,i=a+n.nodeSize,o=this.collectTableAttrs(r,n),l=this.collectMergedCellsAttrs(r,n),h=this.collectReplacingContent(r,n);if(o||l&&l.length||!h||1!==h.length){if(o&&(n=n.copy(n.content,o)),l&&l.forEach((({pos:t,node:e,attrs:r})=>{n=n.replace(t,t+e.nodeSize,vn.from(e.copy(e.content,r)))})),h)for(let t=h.length-1;t>=0;--t){let{from:e,to:r,content:s}=h[t];n=n.replace(e,r,s)}return n===s?r:r.replace(a,i,vn.from(n))}{let t=a+1,{from:e,to:s,content:n}=h[0];return r.replace(t+e,t+s,n)}}posMap(t){let e=this.resolvePos(t);if(!e)return Ho.empty;let r=this.collectReplacingContent(t,e.self);if(!r)return Ho.empty;let s=[],n=e.pos+1;return r.forEach((({from:t,to:e,content:r})=>{s.push(n+t,e-t,r?r.size:0)})),new Ho(s)}}let xy=t=>class extends t{static get replaceType(){return"insert"}getReplaceCount(t){return this.cells.length}},gy=t=>class extends t{static get replaceType(){return"remove"}getReplaceCount(t){return this.count}};function fy(t,e,r){e=hy(e,t,!0);let s=[],n=[],a=t.type.schema;for(let i=0,o=e.length;i<o;++i){let o=t.maybeChild(e[i]);s.push(o.type.settableAttrValues(o&&o.attrs));let l=[];o&&o.forEach(((t,e,s)=>{l.push({index:s,node:r?uy(a,t,{rowspan:1}):t.deepCopy({target:"replace"})})})),n.push(l)}return{row_attrs:s,cells:n}}class my extends yy{static get replaceDir(){return"row"}}class by extends(xy(my)){constructor(t,e,r,s){super(t,e);let n=Math.max(r.length,s.length);this.row_attrs=dy(r,n),this.cells=dy(s,n)}getReplaceIndex(t){return Math.min(t.getRowSize(),this.index)}collectReplacingContent(t,e){if(0===this.getReplaceCount(e))return null;let r=cy(this.cells),s=this.getReplaceIndex(e),n=e.getColSize(),a=e.type.schema,i=a.nodeType("table_row"),o=a.nodeType("table_cell"),l=e.offsetAt(s),h=this.row_attrs.map(((t,e)=>i.create(t,Array.from({length:n},((t,s)=>r[e][s]?.deepCopy({target:"replace"})||o.createAndFill())))));return[{from:l,to:l,content:vn.from(h)}]}invertAtPos(t){return new _y(t.pos,this.getReplaceIndex(t.self),this.getReplaceCount(t.self))}map(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.index,this.row_attrs,this.cells)}toJSON(t){return Object.assign(super.toJSON(t),{cells:this.cells.map((e=>e.map((e=>({...e,node:e.node.toJSON(t)})))))})}static fromJSON(t,e){return new this(e.pos,e.index,e.row_attrs,py(t,e.cells))}}cc.jsonID("insertTableRowV2",by);class _y extends(gy(my)){constructor(t,e,r){super(t,e),this.count=r}collectReplacingContent(t,e){let r=this.getReplaceCount(e);if(0===r)return null;let s=e.getRowSize(),n=this.getReplaceIndex(e);if(n>=s)return null;let a=Math.min(n+r,s),i=e.offsetAt(n);return[{from:i,to:i+e.sizeBetween(n,a),content:vn.empty}]}invertAtPos(t){let e=t.self,r=this.getReplaceIndex(e),s=this.getReplaceCount(e),n=s?fy(e,{from:r,to:Math.min(r+s,e.getRowSize())},!1):null;return new by(t.pos,r,n?n.row_attrs:[],n?n.cells:[])}map(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.index,this.count)}static fromJSON(t,e){return new this(e.pos,e.index,e.count)}}function Ay(t){return t&&t.width?t:{width:Ud}}function My(t,e){return e&&1!==e?t.map((t=>Object.assign(Object.create(null),t,{width:t.width*e}))):t}function wy(t,e,r,s,n){let a=[];for(let r=0;r<e;++r)a.push(Ay(t[r]));s&&s.forEach((t=>{a.push(Ay(t))}));for(let s=e+r,n=t.length;s<n;++s)a.push(Ay(t[s]));return My(a,n)}cc.jsonID("removeTableRowV2",_y),cc.jsonID("insertTableRow",class extends cc{static fromJSON(t,e){return new by(e.table_pos,e.row_index,[e.row_attrs],py([e.cell_info_arr]))}}),cc.jsonID("removeTableRow",class extends cc{static fromJSON(t,e){return new _y(e.table_pos,e.row_index,1)}}),Object.assign(gc.prototype,{insertTableRow(t,e,r){let{row_attrs:s,cells:n}=fy(my.resolvePos(this.doc,t,!0).self,r,!0);return this.step(new by(t,e,s,n))},removeTableRow(t,e,r){return my.resolvePos(this.doc,t,!0),this.step(new _y(t,e,r))}});class Sy extends yy{constructor(t,e,r){super(t,e),this.ratio=r||1}static get replaceDir(){return"col"}collectTableAttrsColgroup(t,e){return null}collectTableAttrs(t,e){let r=this.collectTableAttrsColgroup(t,e);return r?{colgroup:r}:null}}class Cy extends(xy(Sy)){constructor(t,e,r,s,n){super(t,e,r);let a=Math.max(s.length,n.length);this.colgroup=dy(s,a),this.cells=dy(n,a)}getReplaceIndex(t){return Math.min(t.getColSize(),this.index)}collectTableAttrsColgroup(t,e){return wy(e.getAttrValue("colgroup"),this.getReplaceIndex(e),0,this.colgroup,this.ratio)}collectReplacingContent(t,e){if(0===this.getReplaceCount(e))return null;let r=[],s=cy(this.cells),n=this.getReplaceIndex(e);return e.forEach(((e,a,i)=>{let o=a+1+e.offsetAt(Math.min(e.childCount,n));r.push({from:o,to:o,content:vn.from(s.map((e=>e[i]?.deepCopy({target:"replace"})||t.type.schema.nodeType("table_cell").createAndFill())))})})),r}invertAtPos(t){return new Py(t.pos,this.getReplaceIndex(t.self),1/this.ratio,this.getReplaceCount(t.self))}map(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.index,this.ratio,this.colgroup,this.cells)}toJSON(t){return Object.assign(super.toJSON(t),{cells:this.cells.map((e=>e.map((e=>({...e,node:e.node.toJSON(t)})))))})}static fromJSON(t,e){return new this(e.pos,e.index,e.ratio,e.colgroup,py(t,e.cells))}}cc.jsonID("insertTableColV2",Cy);class Py extends(gy(Sy)){constructor(t,e,r,s){super(t,e,r),this.count=s}collectTableAttrsColgroup(t,e){return wy(e.getAttrValue("colgroup"),this.getReplaceIndex(e),this.getReplaceCount(e),null,this.ratio)}collectReplacingContent(t,e){let r=this.getReplaceCount(e);if(0===r)return null;let s=[],n=this.getReplaceIndex(e),a=n+r;return e.forEach(((t,e,r)=>{if(n>=t.childCount)return;let i=e+1+t.offsetAt(n);s.push({from:i,to:i+t.sizeBetween(n,Math.min(a,t.childCount)),content:vn.empty})})),s}invertAtPos(t){let e=t.self,r=this.getReplaceIndex(e),s=this.getReplaceCount(e),n=this.ratio,a=s?My(e.getAttrValue("colgroup").slice(r,r+s),n):[],i=[];return s&&e.forEachCell(0,e.getRowSize()-1,r,r+s-1,((t,e,s,n)=>{let a=n-r;(i[a]||(i[a]=[])).push({index:s,node:t.deepCopy({target:"replace"})})})),new Cy(t.pos,r,1/n,a,i)}map(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.index,this.ratio,this.count)}static fromJSON(t,e){return new this(e.pos,e.index,e.ratio,e.count)}}cc.jsonID("removeTableColV2",Py),cc.jsonID("insertTableCol",class extends cc{static fromJSON(t,e){return new Cy(e.table_pos,e.col_index,e.table_width_ratio,[e.colgroup_info],py([e.cell_info_arr]))}}),cc.jsonID("removeTableCol",class extends cc{static fromJSON(t,e){return new Py(e.table_pos,e.col_index,e.table_width_ratio,1)}}),Object.assign(gc.prototype,{insertTableCol(t,e,r){let s,n=this.schema,a=Sy.resolvePos(this.doc,t,!0).self,i=(r=hy(r,a,!1)).length,o=a.getAttrValue("colgroup"),l=[],h=[];for(let t=0;t<i;++t){let e=r[t];l.push(Ay(e>=0?o[e]:null));let s=[];e>=0&&a.forEach(((t,r,a)=>{let i=t.maybeChild(e);i&&s.push({index:a,node:uy(n,i,{colspan:1})})})),h.push(s)}let u=a.state.width+l.reduce(((t,e)=>t+e.width),0);if(n.isDocument){let t=a.state.text_rect_info.width;s=u>t?t/u:1}else s=a.state.width/u;return this.step(new Cy(t,e,s,l,h))},removeTableCol(t,e,r){return Sy.resolvePos(this.doc,t,!0),this.step(new Py(t,e,1,r))}});class Ty extends ly{collectCellAction(t,{pos:e,attrs:r}){let s=t.self;return s?{pos:e,node:s,attrs:r}:null}applyCellAction({pos:t,node:e,attrs:r},s,n){let a=t-n-1;return s.replace(a,a+e.nodeSize,vn.from(e.copyWithAttrs(e.type.settableAttrValues(r))))}invertAtPos(t){let e=this.collectCellActions(t);if(!e.length)return null;let r=e.map((({pos:t,node:e,attrs:r})=>({pos:t,attrs:e.type.invertAttrs(e.attrs,r)})));return this.constructor.create(t.pos,r)}mapCellInfo(t,e){let r=e.mapNodeResult(t.pos,1);return r.deleted?null:{...t,pos:r.pos}}static fromJSON(t,e){return new this(e.pos,e.cells)}static create(t,e){return super.create(t,e)}static assertCellInfo(t,e,r){super.assertCellInfo(t,e,r);let{pos:s,attrs:n}=r;if(!t.nodeAt(s-e-1))throw new xc(`No node at given cell pos ${s}.`);if(!sn.checkAttrs(t.type.schema.nodeType("table_cell").attrs,n))throw new xc(`Invalid attrs for cell. ${JSON.stringify(n)}`)}}Ty.register("setTableCellAttrs"),ve(gc.prototype,{setTableCellAttrs(t,e){let r=Ty.resolvePos(this.doc,t,!0).self;return e.slice().sort(((t,e)=>t.pos-e.pos)).forEach(((s,n)=>{Ty.assertCellInfo(r,t,s);let{pos:a}=s;if(n>0&&a===e[n-1].pos)throw new xc(`Repeatedly set table cell attrs at ${a}.`)})),this.step(Ty.create(t,e))}});class vy extends ly{posMap(t){let e=this.resolvePos(t);if(!e)return Ho.empty;let r=this.collectCellActions(e);if(!r.length)return Ho.empty;let s=[];return r.forEach((t=>{this.addCellPosMapRange(t,s)})),Ho.create(s)}toJSON(t){return{stepType:this.jsonID,pos:this.pos,cells:this.cells.map((e=>{let r={...e};return e.node&&(r.node=e.node.toJSON(t)),r}))}}static create(t,e){return super.create(t,e)}static assertCellInfo(t,e,r){super.assertCellInfo(t,e,r);let{node:s}=r;if(s&&!s.is("TableCell"))throw new xc(`Given node ${s.type.name} is not table cell.`)}}class Iy extends vy{applyCellAction({pos:t,oldCell:e,newCell:r},s,n){let a=t-n-1;return s.replace(a,a+(e?e.nodeSize:0),vn.from(r?.deepCopy({target:"replace"})))}invertAtPos(t){let e=this.collectCellActions(t);if(!e.length)return null;let r=0,s=e.map((({pos:t,oldCell:e,newCell:s})=>{let n,a=t+r;return n=e?{pos:a,node:e.deepCopy({target:"replace"})}:{pos:a},r+=(s?s.nodeSize:0)-(e?e.nodeSize:0),n}));return("insert"===this.constructor.replaceType?Ey:ky).create(t.pos,s)}addCellPosMapRange({pos:t,oldCell:e,newCell:r},s){let n=e?e.nodeSize:0,a=r?r.nodeSize:0,i=s.length;i&&t===s[i-3]+s[i-2]?(s[i-2]+=n,s[i-1]+=a):s.push(t,n,a)}}class ky extends Iy{static{this.replaceType="insert"}collectCellAction(t,{pos:e,node:r}){return{pos:e,oldCell:null,newCell:r}}mapCellInfo(t,e){let r=e.mapResult(t.pos,1);return r.deleted?null:{...t,pos:r.pos}}static fromJSON(t,e){return new this(e.pos,e.cells.map((e=>({...e,node:t.nodeFromJSON(e.node)}))))}static create(t,e){return super.create(t,e)}}ky.register("insertTableCells");class Ey extends Iy{static{this.replaceType="delete"}collectCellAction(t,{pos:e,node:r}){let s=t.self;return s?{pos:e,oldCell:s,newCell:null}:null}collectCellActions(t){return super.collectCellActions(t).filter((({pos:t},e,r)=>0===e||t!==r[e-1].pos))}mapCellInfo(t,e){let r=e.mapNodeResult(t.pos,1);return r.deleted?null:{...t,pos:r.pos}}static fromJSON(t,e){return new this(e.pos,e.cells)}static create(t,e){return super.create(t,e)}}Ey.register("deleteTableCells"),ve(gc.prototype,{_insertDeleteTableCells(t,e,r,s){let n=r?ky:Ey,a=n.resolvePos(this.doc,t,!0).self;return e.forEach(((s,i)=>{let{pos:o,node:l}=s;if(n.assertCellInfo(a,t,s),!r){if(i>0&&o===e[i-1].pos)throw new xc(`Repeatedly deleting table cell at ${o}.`);if(!a.nodeAt(o-t-1))throw new xc(`No node at given cell pos ${o}.`)}if(r?!l:l)throw new xc(`node is ${r?"":"not "}required when ${r?"inserting":"deleting"} table cells.`)})),this.step(n.create(t,e),s)},insertTableCells(t,e,r){return this._insertDeleteTableCells(t,e,!0,r)},deleteTableCells(t,e,r){return this._insertDeleteTableCells(t,e,!1,r)}});class Ny extends vy{collectCellAction(t,{pos:e,node:r,range:s}){let n=t.self;if(!n)return null;let a=s||[e+1,e+1+n.getContentSize()],i=mc(t.doc,a[0],a[1],vn.from(r.content));return i?{pos:e,oldCell:n,newCell:r,replaceRange:a,replaceSlice:i}:null}collectCellActions(t){return super.collectCellActions(t).filter((({pos:t},e,r)=>0===e||t!==r[e-1].pos))}applyCellAction({pos:t,oldCell:e,newCell:r,replaceRange:[s,n],replaceSlice:a},i,o){let l=r.attrs;l=r.type.completeAttrValues(l),l=r.type.settableAttrValues(l);let h=e.replace(s-t-1,n-t-1,a.deepCopy({target:"replace"})).copyWithAttrs(l),u=t-o-1;return i.replace(u,u+e.nodeSize,vn.from(h))}invertAtPos(t){let e=this.collectCellActions(t);if(!e.length)return null;let r=0,s=e.map((({pos:t,oldCell:e,replaceRange:[s,n],replaceSlice:a})=>{e=e.deepCopy({target:"replace"});let i={pos:t+r,node:e.copyWithContent(e.slice(s-t-1,n-t-1).content),range:[s+r,s+r+a.size]};return r+=a.size-(n-s),i}));return this.constructor.create(t.pos,s)}addCellPosMapRange({replaceRange:[t,e],replaceSlice:r},s){s.push(t,e-t,r.size)}mapCellInfo(t,e){let r=e.mapNodeResult(t.pos,1);if(r.deleted)return null;let s=t.range;if(s){let t=e.mapRange(s[0],s[1]);s=[t.from,Math.max(t.from,t.to)]}return{...t,pos:r.pos,...s?{range:s}:null}}static fromJSON(t,e){return new this(e.pos,e.cells.map((e=>({...e,node:t.nodeFromJSON(e.node)}))))}static create(t,e){return super.create(t,e)}}Ny.register("replaceTableCells"),ve(gc.prototype,{replaceTableCells(t,e){let r=Ny.resolvePos(this.doc,t,!0).self;return e.forEach(((s,n)=>{let{pos:a,range:i}=s;if(Ny.assertCellInfo(r,t,s),n>0&&a===e[n-1].pos)throw new xc(`Repeatedly replacing table cell at ${a}.`);let o=r.nodeAt(a-t-1);if(!o)throw new xc(`No node at given cell pos ${a}.`);if(i){let t=a+1,e=t+o.getContentSize();if(2!==i.length||!i.every((r=>r>=t&&r<=e)))throw new xc(`Given cell replace range ${JSON.stringify(i)} out of range [${t}, ${e}].`)}})),this.step(Ny.create(t,e))}});let Ly=t=>{class e extends t{static getSelfPropertyName(){return"ContentEditable"}get canSelectionLeave(){return!1}get unbreakable(){return!0}hasVisibleContent(t){if(t.childCount>1)return!0;let e=t.firstChild;return!!(e&&(0!==e.childCount||!e.is("Paragraph")||e.is("BasicParagraph")&&e.type.isValidListBlock(e)))||!1}getIndicatorWrapperDOM(t){return t}renderAttrsDom(t,e,r){return super.renderAttrsDom(t,e,r),"clipboard"!==r.target&&Object.assign(t.inline_style||(t.inline_style=Object.create(null)),this.schema.getDefaultContentStyles()),t}toCopyDOM(t,e){return["div",{synoedit:!0},0]}}return Ie(e,{get matchDOMTag(){return{"div[synoedit]":null}}}),e},jy=t=>class extends t{static getSelfPropertyName(){return"IndependentScroller"}getScrollerInfo(t){return null}},Ry=(()=>{let t=["link","tracking"];return sn.createMarksNormalizer((e=>!t.includes(e._)))})(),Oy={textMarks:sn.create({optional:!0,empty_value:Z,clearable:!0,normalizer:Ry})},Dy=Object.keys(Oy);function Fy(t){let e=t.prototype;if(!e.isTextblock)throw Error("Unable to mixin MarksBlock to non-Textblock.");Gt(e,"isMarksBlock",!0),zt(e,"getFreezeList",(function(t){let e=t.call(this);return e.push("marksAttrs","marksAttrsList","defaultMarksAttrs"),e}),!0),Gt(e,"marksAttrs",Oy),Gt(e,"marksAttrsList",Dy),Ht(e,"defaultMarksAttrs",(function(){return sn.emptyAttrs(this.marksAttrs)})),Ht(e,"attrs",(function(t){return sn.mergeTypeAttrs(t.call(this),this.marksAttrs)}),!0),zt(e,"_getInheritedTextMarksJSON",(function(t){return t.state.inherited_text_marks_json}),!1,"has"),zt(e,"getInheritedTextMarksJSON",(function(t){return this._getInheritedTextMarksJSON(t)||yn.none}),!1,"has"),zt(e,"_getInheritedTextMarks",(function(t){return t.state.inherited_text_marks}),!1,"has"),zt(e,"getInheritedTextMarks",(function(t){return this._getInheritedTextMarks(t)||yn.none}),!1,"has"),zt(e,"mergeTextMarks",(function(t){let e=t.state;if(e.inherit||e.cached_attrs!==t.attrs)return e.text_marks_json=yn.mergeSetJSON(this.getInheritedTextMarksJSON(t),t.textMarksRawJSON),e.text_marks=yn.mergeSet(this.getInheritedTextMarks(t),t.textMarksRaw),Bn.STATE_REDRAW}),!1,"has"),zt(e,"registerMarksBlock",(function(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"merge_text_marks",null,this.mergeTextMarks.bind(this))})),zt(e,"computeJsonConversionAttrs",(function(t,e,r){let s=t.call(this,e,r),{target:n,useComputedStyle:a,markFilter:i}=r;if("clipboard"===n&&a&&(s={...s,textMarks:e.textMarksJSON}),i&&s.textMarks?.length){let t=s.textMarks.filter(i);t.length!==s.textMarks.length&&(s={...s,textMarks:t})}return s}),!0),zt(e,"trimNode",(function(t,e,r){e=t.call(this,e,r)||e;let s=yn.trimSetJSON(e.textMarksRawJSON,this.getInheritedTextMarksJSON(e));return s&&(e=e.duplicate(e.content,{textMarks:s})),e}),!0),zt(e,"parseAttrsFromJson",(function(t,e,r,s){try{r.textMarks&&Array.isArray(r.textMarks)&&(r.textMarks=yn.setToJSON(yn.setFromJSON(this.schema,r.textMarks)))}catch{r.textMarks=void 0}return t.call(this,e,r,s)}),!0),zt(e,"parseAttrsFromParser",(function(t,e,r,s){t.call(this,e,r,s);let n=r.getMarks(),a=this.schema.maybeMarkType("link");return a&&(n=a.removeLinkMarks(n)),n.length&&(e.textMarks=yn.mergeSetJSON(e.textMarks,yn.setToJSON(n))),e}),!0),zt(e,"renderAttrsDom",(function(t,e,r,s){return t.call(this,e,r,s),e}),!0),zt(e,"renderAttrsJson",(function(t,e,r,s){t.call(this,e,r,s);let n=r.textMarksJSON;return n.length&&(e.textMarks=n),e}),!0)}let By=sn.create({optional:!0,empty_value:0,normalizer:"nonNegativeNumber",clearable:!0}),Vy={textAlign:sn.create({optional:!0,empty_value:"left",clearable:!0,normalizer:["left","right","center","justify"]}),lineHeight:sn.create({optional:!0,empty_value:1,clearable:!0,normalizer:"positiveNumber"}),paddingTop:By,paddingBottom:By};function Hy(t){let e=t.prototype;if(!e.isTextblock)throw Error("Unable to mixin CssBlock to non-Textblock.");Gt(e,"isCssBlock",!0),zt(e,"getFreezeList",(function(t){let e=t.call(this);return e.push("cssAttrs","defaultCssAttrs"),e}),!0),Gt(e,"cssAttrs",Vy),Ht(e,"defaultCssAttrs",(function(){return sn.emptyAttrs(this.cssAttrs)})),Ht(e,"attrs",(function(t){return sn.mergeTypeAttrs(t.call(this),this.cssAttrs)}),!0),zt(e,"getCssAttrList",(function(){return this.cssAttrList||(this.cssAttrList=Object.keys(this.cssAttrs))}),!1,"has"),zt(e,"getCssAttrs",(function(t){return t.state.css_attrs||this.defaultCssAttrs}),!1,"has"),zt(e,"getBlockMarks",(function(t){let e=t.schema,{textAlign:r,lineHeight:s}=this.getCssAttrs(t);return yn.setFrom([e.attrMarkType("text_align").create({value:r}),e.attrMarkType("line_height").create({value:s})])}),!1,"has"),zt(e,"_getInheritedCssAttrs",(function(t){return t.state.inherited_css_attrs}),!1,"has"),zt(e,"getInheritedCssAttrs",(function(t){return this._getInheritedCssAttrs(t)||this.defaultCssAttrs}),!1,"has"),zt(e,"mergeCssAttrs",(function(t){let e=t.state;if(e.inherit||e.cached_attrs!==t.attrs)return e.css_attrs=sn.mergeAttrs(this.getCssAttrList(),t.attrs,this.getInheritedCssAttrs(t)),Bn.STATE_REDRAW}),!1,"has"),zt(e,"registerCssBlock",(function(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"merge_css_attrs",null,this.mergeCssAttrs.bind(this))})),zt(e,"computeJsonConversionAttrs",(function(t,e,r){let s=t.call(this,e,r);return"clipboard"===r.target&&r.useComputedStyle?(s===e.attrs&&(s=Object.assign(Object.create(null),s)),Object.assign(s,this.getCssAttrs(e))):s}),!0),zt(e,"trimNode",(function(t,e,r){let s,n=(e=t.call(this,e,r)||e).attrs,a=this.getInheritedCssAttrs(e),i=this.getCssAttrList();for(let t=i.length-1;t>=0;--t){let e=i[t],r=n[e];null!=r&&r===a[e]&&(s||(s=Object.create(null)),s[e]=null)}return s?e.duplicate(e.content,s):e}),!0),zt(e,"parseAttrsFromDom",(function(t,e,r,s){function n(t){var e;return e=r.style[t],Rs(e,"px",void 0)||0}t.call(this,e,r,s);let a=n("marginTop")+n("paddingTop"),i=n("marginBottom")+n("paddingBottom");return a&&(e.paddingTop=(e.paddingTop||0)+a),i&&(e.paddingBottom=(e.paddingBottom||0)+i),e}),!0),zt(e,"parseAttrsFromParser",(function(t,e,r,s){t.call(this,e,r,s);let n=r.getMarkValue("text_align");n&&(e.textAlign=n);let a=r.getMarkValue("line_height");return a&&(e.lineHeight=a),e}),!0),zt(e,"renderAttrsDom",(function(t,e,r,s){t.call(this,e,r,s);let n=e.inline_style||(e.inline_style=Object.create(null)),a=this.getCssAttrs(r);function i(t,e){n[t]=(parseFloat(n[t])||0)+e+"px"}return n["text-align"]=a.textAlign,n["line-height"]=1.2*a.lineHeight,i("padding-top",a.paddingTop),i("padding-bottom",a.paddingBottom),n["margin-top"]="0px",n["margin-bottom"]="0px",e}),!0)}let Gy=sn.create({optional:!0,empty_value:0,clearable:!0,normalizer:"number"}),zy={indentFirst:Gy,indentLeft:Gy,indentRight:Gy},Uy=Object.keys(zy);function qy(t){let e=t.prototype;if(!e.isTextblock)throw Error("Unable to mixin IndentBlock to non-Textblock.");Gt(e,"isIndentBlock",!0),zt(e,"getFreezeList",(function(t){let e=t.call(this);return e.push("baseIndent","indentAttrs","indentAttrsList","defaultIndentAttrs"),e}),!0),Gt(e,"baseIndent",30),Gt(e,"indentAttrs",zy),Gt(e,"indentAttrsList",Uy),Ht(e,"defaultIndentAttrs",(function(){return sn.emptyAttrs(this.indentAttrs)})),Ht(e,"attrs",(function(t){return sn.mergeTypeAttrs(t.call(this),this.indentAttrs)}),!0),zt(e,"getIndentAttrs",(function(t){return t.state.indent_attrs||this.defaultIndentAttrs}),!1,"has"),zt(e,"_getInheritedIndentAttrs",(function(t){return t.state.inherited_indent_attrs}),!1,"has"),zt(e,"getInheritedIndentAttrs",(function(t){return this._getInheritedIndentAttrs(t)||this.defaultIndentAttrs}),!1,"has"),zt(e,"mergeIndentAttrs",(function(t){let e=t.state;if(e.inherit||e.cached_attrs!==t.attrs)return e.indent_attrs=sn.mergeAttrs(this.indentAttrsList,t.attrs,this.getInheritedIndentAttrs(t)),Bn.STATE_REDRAW}),!1,"has"),zt(e,"registerIndentBlock",(function(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"merge_indent_attrs",null,this.mergeIndentAttrs.bind(this))})),zt(e,"computeJsonConversionAttrs",(function(t,e,r){let s=t.call(this,e,r);return"clipboard"===r.target&&r.useComputedStyle?(s===e.attrs&&(s=Object.assign(Object.create(null),s)),Object.assign(s,this.getIndentAttrs(e))):s}),!0),zt(e,"trimNode",(function(t,e,r){let s,n=(e=t.call(this,e,r)||e).attrs,a=this.getInheritedIndentAttrs(e),i=this.indentAttrsList;for(let t=i.length-1;t>=0;--t){let e=i[t],r=n[e];null!=r&&r===a[e]&&(s||(s=Object.create(null)),s[e]=null)}return s?e.duplicate(e.content,s):e}),!0),zt(e,"getTextRectInfo",(function(t,e,r){let s=t.call(this,e,r),{indentLeft:n,indentRight:a}=this.getIndentAttrs(e);return n||a?{left:s.left+n,width:s.width-n-a}:s}),!0),zt(e,"getFirstTextRectInfo",(function(t,e){let r=t.state.text_rect_info,s=this.getIndentAttrs(t),n=s.indentFirst-s.indentLeft;return n?{left:r.left+n,width:r.width-n}:r})),zt(e,"setStateTextRectInfo",(function(t,e,r){let s=t.call(this,e,r);return e.state.first_text_rect_info=this.getFirstTextRectInfo(e,r),s}),!0),zt(e,"parseAttrsFromDom",(function(t,e,r,s){function n(t){var e;return e=r.style[t],Rs(e,"px",void 0)||0}t.call(this,e,r,s);let a=n("marginLeft")+n("paddingLeft"),i=n("marginRight")+n("paddingRight");return a&&(e.indentFirst=(e.indentFirst||0)+a,e.indentLeft=(e.indentLeft||0)+a),i&&(e.indentRight=(e.indentRight||0)+i),e}),!0),zt(e,"parseAttrsFromParser",(function(t,e,r,s){t.call(this,e,r,s);let n=r.getMarkValue("text_indent");return n&&(e.indentFirst=(e.indentFirst||0)+n),e}),!0),zt(e,"renderAttrsDom",(function(t,e,r,s){if(t.call(this,e,r,s),"clipboard"===s.target){let t=e.inline_style||(e.inline_style=Object.create(null)),{indentFirst:s,indentLeft:n,indentRight:a}=this.getIndentAttrs(r),i=function(e,r){t[e]=(parseFloat(t[e])||0)+r+"px"},o=s-n;i("margin-left",Math.min(s,n)),i("padding-left",Math.max(-o,0)),i("text-indent",o),i("margin-right",a)}return e}),!0)}let $y=sn.create({deep:{pos:sn.create(),type:sn.create({normalizer:["left","right","center"]}),leader:sn.create({normalizer:["none","dot","hyphen","underscore","middleDot","heavy"]})}}),Jy={tabStops:sn.createOptional({empty_value:Z,clearable:!0,normalizer:sn.createArrayNormalizer($y)})},Wy=Object.keys(Jy),Zy=t=>{class e extends t{constructor(...t){super(...t),this.defaultTabAttrs=null}static getSelfPropertyName(){return"TabBlock"}getTabAttrList(){return Wy}getDefaultTabAttrValues(){return this.defaultTabAttrs||(this.defaultTabAttrs=sn.emptyAttrs(_t(this.attrs,this.getTabAttrList())))}getTabAttrValues(t){return t.getState("tab_attrs")||this.getDefaultTabAttrValues()}_getInheritedTabAttrValues(t){return t.getState("inherited_tab_attrs")}getInheritedTabAttrValues(t){return this._getInheritedTabAttrValues(t)||this.getDefaultTabAttrValues()}registerTabBlock(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"merge_tab_attrs",null,(t=>{if(t.getState("inherit")||t.getState("cached_attrs")!==t.attrs)return t.setState("tab_attrs",sn.mergeAttrs(this.getTabAttrList(),t.attrs,this.getInheritedTabAttrValues(t))),Bn.STATE_REDRAW}))}trimNode(t,e){let r;t=super.trimNode(t,e)||t;let s=this.getInheritedTabAttrValues(t);for(let e of this.getTabAttrList()){let n=t.getAttrValue(e,!0);null!=n&&("tabStops"===e?0===n.length&&0===s.tabStops.length:n===s[e])&&(r||(r=Object.create(null)),r[e]=null)}return r?t.duplicate(t.content,r):t}computeJsonConversionAttrs(t,e){let r=super.computeJsonConversionAttrs(t,e);return"clipboard"===e.target&&e.useComputedStyle?{...r,...this.getTabAttrValues(t)}:r}renderAttrsJson(t,e,r){super.renderAttrsJson(t,e,r);let s=e.getAttrValue("tabStops",!0);return s&&(t.tabStops=s),t}}let r=t.prototype.attrs;return Ie(e,{get attrs(){return{...r,...Jy}}}),e};function Yy(t){switch(t){case"dot":return".";case"hyphen":return"-";case"underscore":case"heavy":return"_";case"middleDot":return"·";default:return""}}let Xy=t=>class extends t{static getSelfPropertyName(){return"DefaultParagraph"}};function Ky(t,e){let r=t.slice(),s=e.pos,n=t.findIndex((({pos:t})=>s<=t));if(n>=0){let a=t[n].pos;s===a?r[n]=e:s<a&&r.splice(n,0,e)}else r.push(e);return r}function Qy(t,e){let r,s=t.findIndex((({pos:t})=>e===t));if(s>=0){let e=t.slice();e.splice(s,1),r=e}else r=t;return r}function tx(t,e,r){return t=Ky(t=Qy(t,r),e)}class ex extends ga{static getSelfPropertyName(){return"BasicRoot"}buildDefaultMarks(){let t=this.schema;return["font_size","font_family","em","strong","color"].reduce(((e,r)=>{let s=t.markType(r).getDefaultMark();return s&&e.push(s),e}),[])}buildDefaultStyles(){return{"line-height":Vy.lineHeight.getEmptyValue(),"font-variant":"normal","font-stretch":"normal"}}createDefaultContentStyles(){return{...this.buildDefaultStyles(),...yn.setToStyle(this.buildDefaultMarks())}}}class rx extends fa{static getSelfPropertyName(){return"Settings"}get copyable(){return!1}get printable(){return!1}}let sx=9,nx="●";function ax(t){return"bullet"===t||t.startsWith("bullet_")}function ix(t){return ax(t)?t.slice(7)||nx:null}function ox(t){return"bullet_"+t}let lx=new Map([["●","disc"],["•","disc"],["○","circle"],["◦","circle"],["■","square"],["□","square"],["▪","square"],["▫","square"],["▼","disclosure-open"],["▽","disclosure-open"],["▾","disclosure-open"],["▿","disclosure-open"],["▶","disclosure-closed"],["▷","disclosure-closed"],["▸","disclosure-closed"],["▹","disclosure-closed"],["►","disclosure-closed"],["▻","disclosure-closed"]].map((([t,e])=>[ox(t),e]))),hx=new Map([["decimal","decimal"],["decimalZero","decimal-leading-zero"],["lowerLetter","lower-alpha"],["upperLetter","upper-alpha"],["lowerRoman","lower-roman"],["upperRoman","upper-roman"],["chineseCounting","cjk-decimal"],["chineseCountingThousand","simp-chinese-informal"],["chineseLegalSimplified","simp-chinese-formal"],["ideographDigital","cjk-decimal"],["ideographLegalTraditional","trad-chinese-formal"],["taiwaneseCounting","cjk-decimal"],["taiwaneseCountingThousand","trad-chinese-informal"],["taiwaneseDigital","cjk-decimal"]]),ux=(()=>{let t=new Map;for(let e of["arabic-indic","armenian","upper-armenian","lower-armenian","bengali","cambodian","khmer","devanagari","georgian","gujarati","gurmukhi","hebrew","kannada","lao","malayalam","mongolian","myanmar","oriya","persian","lower-roman","upper-roman","tamil","telugu","thai","tibetan","lower-greek","hiragana","hiragana-iroha","katakana","katakana-iroha","cjk-earthly-branch","cjk-heavenly-stem","japanese-informal","japanese-formal","korean-hangul-formal","korean-hanja-informal","korean-hanja-formal"])t.set(e,"decimal");for(let[e,r]of lx)t.set(r,e);for(let[e,r]of hx)t.set(r,e);for(let[e,r]of[["disc",ox("●")],["circle",ox("○")],["square",ox("■")],["disclosure-open",ox("▾")],["disclosure-closed",ox("▸")],["cjk-decimal","ideographDigital"]])t.set(e,r);for(let[e,r]of[["lower-latin","lower-alpha"],["upper-latin","upper-alpha"],["cjk-ideographic","trad-chinese-informal"]]){let s=t.get(r);"string"==typeof s&&t.set(e,s)}return t})(),cx=new Map([["disc","●"],["circle","○"],["square","■"]].map((([t,e])=>[t,ox(e)]))),px=new Map([["a","lowerLetter"],["A","upperLetter"],["i","lowerRoman"],["I","upperRoman"],["1","decimal"]]);function dx(t){return t?ax(t)?lx.get(t)||"disc":hx.get(t)||"decimal":null}function yx(t){return t&&ux.get(t)||null}function xx(t){let e=t.tagName;if("OL"===e||"UL"===e){let r=t.getAttribute("type");return"OL"===e?r&&px.get(r)||"decimal":r&&cx.get(r)||ox(nx)}return null}function gx(t){return yx(t.style.listStyleType)||xx(t)}let fx=/%(\d)/g;function mx(t=0){return`%${ge(t+1,1,sx)}`}let bx=(()=>{let t=Object.create(null);return["decimal","decimalZero","lowerLetter","upperLetter","lowerRoman","upperRoman"].forEach((e=>{t[e]="."})),["chineseCounting","chineseCountingThousand","chineseLegalSimplified","ideographDigital","ideographLegalTraditional","taiwaneseCounting","taiwaneseCountingThousand","taiwaneseDigital"].forEach((e=>{t[e]="、"})),t})();function _x(t,e){let r;return r=t?ax(t)?"":bx[t]??"":"",mx(e)+r}let Ax=(()=>{let t=Object.create(null);return["disc","circle","square","disclosure-open","disclosure-closed"].forEach((e=>{t[e]=""})),["cjk-decimal","simp-chinese-formal","simp-chinese-informal","trad-chinese-formal","trad-chinese-informal"].forEach((e=>{t[e]="、"})),t})();function Mx(t,e){return mx(e)+(t?Ax[t]??".":".")}function wx(t){return t.replaceAll("%","")}function Sx(t){let e=Array.from(t.matchAll(fx));if(0===e.length)return null;let r=e[0].index,s=e[e.length-1].index+2;return{prefix:t.slice(0,r),suffix:t.slice(s),content:t.slice(r,s)}}function Cx(t){let e=Sx(t);return e?e.prefix:""}function Px(t){let e=Sx(t);return e?e.suffix:""}function Tx(t){let e=Sx(t);return e?e.content:""}function vx(t){let e=t.match(fx);return e?e.map((t=>parseInt(t.slice(1),10))):[]}function Ix(t,e){return ax(t)?ix(t)||"":function(t,e){let r=ns(t);if(r)return e<0||isNaN(e)?"":r.write(e)}(t,e)||""}let kx=function(t,e){let r=ns(t);return r?r.read(e):NaN};function Ex(t){return Array.isArray(t)?e=>t[e]||"":t}function Nx(t,e){let r=Ex(e);return t.replace(fx,((t,e)=>"0"===e?"":r(Number(e)-1)))}function Lx(t,e){let r=Ex(e),s=[],n=0;for(let e of t.matchAll(fx)){let a=e.index;a>n&&s.push({level:-1,text:t.slice(n,a)});let i=e[1];if("0"!==i){let t=Number(i)-1;s.push({level:t,text:r(t)})}n=a+e[0].length}return n!==t.length&&s.push({level:-1,text:t.slice(n)}),s}function jx(t){return t.forEach(((t,e)=>{t.text&&(t.text=t.text.replace(fx,`%${e+1}`))})),t}function Rx(t,e,r){let s=t.length,n=e?e.length:0,a=-1;return jx(Array.from({length:sx},((i,o)=>{let l=Object.create(null),h=o%s;return n&&0===h&&(a=(a+1)%n),l.format=t[h],n&&(l.text=e[a]),r?.(l,o),l})))}let Ox=(()=>{let t=Rx(["decimal","decimal","upperLetter","lowerLetter"],["%1."],((t,e)=>{e%4==1&&(t.text="(%1)")})),e={default:void 0,decimalPeriod:Rx(["decimal","lowerLetter","lowerRoman"],["%1."]),decimalParenthesis:Rx(["decimal","lowerLetter","lowerRoman"],["%1)","(%1)","%1."]),decimalParentheses:Rx(["decimal","lowerLetter","lowerRoman"],["(%1)","%1)","%1."]),decimalZeroPeriod:Rx(["decimalZero","lowerLetter","lowerRoman"],["%1."],((t,e)=>{e&&e%3==0&&(t.format="decimal")})),upperLetterPeriod:Rx(["upperLetter","lowerLetter","lowerRoman"],["%1."],((t,e)=>{e&&e%3==0&&(t.format="decimal")})),upperLetterParenthesis:Rx(["upperLetter","lowerLetter","lowerRoman"],["%1)","(%1)","%1."],((t,e)=>{e&&e%3==0&&(t.format="decimal")})),upperLetterParentheses:Rx(["upperLetter","lowerLetter","lowerRoman"],["(%1)","%1)","%1."],((t,e)=>{e&&e%3==0&&(t.format="decimal")})),lowerLetterPeriod:Rx(["lowerLetter","lowerRoman","decimal"],["%1."]),lowerLetterParenthesis:Rx(["lowerLetter","lowerRoman","decimal"],["%1)","(%1)","%1."]),lowerLetterParentheses:Rx(["lowerLetter","lowerRoman","decimal"],["(%1)","%1)","%1."]),upperRomanPeriod:Rx(["lowerRoman","lowerLetter","decimal"],["%1.","(%1)","%1)"],((t,e)=>{0===e?t.format="upperRoman":1===e&&(t.format="upperLetter")})),upperRomanParenthesis:Rx(["lowerRoman","lowerLetter","decimal"],["%1.","(%1)","%1."],((t,e)=>{0===e?(t.format="upperRoman",t.text="%1)"):1===e&&(t.format="upperLetter")})),upperRomanParentheses:Rx(["lowerRoman","lowerLetter","decimal"],["%1.","%1)","%1."],((t,e)=>{0===e?(t.format="upperRoman",t.text="(%1)"):1===e&&(t.format="upperLetter")})),decimalOutline:Rx(["decimal"]).map(((t,e)=>{let r="";for(let t=0;t<=e;++t)r+=`%${t+1}.`;return{...t,align:"right",text:r}})),taiwaneseCountingIdeographicComma:jx(t.map(((t,e,r)=>0===e?{format:"taiwaneseCountingThousand",text:"%1、"}:1===e?{format:"taiwaneseCountingThousand",text:"(%1)"}:{...r[e-2]}))),taiwaneseLegalCountingIdeographicComma:jx(t.map(((t,e,r)=>0===e?{format:"ideographLegalTraditional",text:"%1、"}:1===e?{format:"taiwaneseCountingThousand",text:"%1、"}:2===e?{format:"taiwaneseCountingThousand",text:"(%1)"}:{...r[e-3]}))),taiwaneseCountingPeriod:jx(t.map(((t,e,r)=>0===e?{format:"taiwaneseCountingThousand",text:"%1."}:1===e?{format:"taiwaneseCountingThousand",text:"(%1)"}:{...r[e-2]}))),taiwaneseCountingPresentationPeriod:jx(t.map(((t,e,r)=>0===e?{format:"taiwaneseCountingThousand",text:"%1."}:{...r[e-1]}))),taiwaneseLegalCountingPresentationPeriod:jx(t.map(((t,e,r)=>0===e?{format:"ideographLegalTraditional",text:"%1."}:1===e?{format:"taiwaneseCountingThousand",text:"%1."}:{...r[e-2]}))),chineseCountingIdeographicComma:jx(t.map(((t,e,r)=>0===e?{format:"chineseCountingThousand",text:"%1、"}:1===e?{format:"chineseCountingThousand",text:"(%1)"}:{...r[e-2]}))),chineseLegalCountingIdeographicComma:jx(t.map(((t,e,r)=>0===e?{format:"chineseLegalSimplified",text:"%1、"}:1===e?{format:"chineseCountingThousand",text:"%1、"}:2===e?{format:"chineseCountingThousand",text:"(%1)"}:{...r[e-3]}))),chineseCountingPeriod:jx(t.map(((t,e,r)=>0===e?{format:"chineseCountingThousand",text:"%1."}:1===e?{format:"chineseCountingThousand",text:"(%1)"}:{...r[e-2]}))),chineseCountingPresentationPeriod:jx(t.map(((t,e,r)=>0===e?{format:"chineseCountingThousand",text:"%1."}:{...r[e-1]}))),chineseLegalCountingPresentationPeriod:jx(t.map(((t,e,r)=>0===e?{format:"chineseLegalSimplified",text:"%1."}:1===e?{format:"chineseCountingThousand",text:"%1."}:{...r[e-2]})))};return e.default=e.decimalPeriod,e})(),Dx=(()=>{let t={default:void 0,bulletHollowSquare:Rx(["bullet_●","bullet_○","bullet_■"],["%1"]),diamondxArrow3dSquare:Rx(["bullet_❖","bullet_➢","bullet_■","bullet_●","bullet_◆","bullet_➢","bullet_■","bullet_●","bullet_◆"],["%1"]),arrowDiamondBullet:Rx(["bullet_➔","bullet_◆","bullet_●"],["%1"],((t,e)=>{e&&e%3==0&&(t.format="bullet_○")})),starHollowSquare:Rx(["bullet_★","bullet_○","bullet_■"],["%1"],((t,e)=>{e&&e%3==0&&(t.format="bullet_●")})),arrow3dHollowSquare:Rx(["bullet_➢","bullet_○","bullet_■"],["%1"],((t,e)=>{e&&e%3==0&&(t.format="bullet_●")})),checkbox:Rx(["bullet_❏"],["%1"]),plus:Rx(["bullet_+"],["%1"]),minus:Rx(["bullet_-"],["%1"])};return t.default=t.bulletHollowSquare,t})();function Fx(t){return Ox[t]||null}function Bx(t){return Dx[t]||null}function Vx(t,e){return null==t&&null==e||null!=t&&null!=e&&Mt(t,((t,r)=>t===e[r]))}function Hx(t,e){return e?At(t,((t,r)=>{if("default"!==r)return Rt(t,e,Vx)})):null}function Gx(t){return Hx(Ox,t)}function zx(t){return Hx(Dx,t)}function Ux(t){let e;return(e=Gx(t))?{type:"ol",name:e}:(e=zx(t))?{type:"ul",name:e}:null}class qx{constructor(){this.container=null}getNodeType(t){return""}_add(t,e){switch(t){case"container":return this.addContainer(e);case"wrapper":return this.addWrapper(e);case"list":return this.addList(e);default:return null}}add(t){this._add(this.getNodeType(t),t)}_remove(t,e){switch(t){case"container":return this.removeContainer(e);case"wrapper":return this.removeWrapper(e);case"list":return this.removeList(e);default:return null}}remove(t){this._remove(this.getNodeType(t),t)}createContainer(t){let e=Object.create(null);return{node:t,wrappers:[],map:e,has_list:!1,attrs:{listMap:e}}}getContainer(){return this.container}addContainer(t){return this.getContainer()?null:this.container=this.createContainer(t)}removeContainer(t){let e=this.getContainer();return e&&e.node===t?(this.container=null,e):null}createWrapper(t){return{node:t,lists:[]}}getWrapper(){let t=this.getContainer();return t&&t.wrappers[t.wrappers.length-1]}addWrapper(t){let e=this.getContainer()||this.addContainer(null),r=this.createWrapper(t);return e.wrappers.push(r),r}removeWrapper(t){let e=this.getWrapper();return e&&e.node===t?(this.getContainer().wrappers.length-=1,e):null}getListType(t){return""}createListConfig(t,e){return null}getList(){let t=this.getWrapper();return t&&t.lists[t.lists.length-1]}_createList(t,e,r,s){if(r||(r=Tt()),!s){let r,n=this.createListConfig(t,e),a=n?.format;s={type:a?ax(a)?"ul":"ol":this.getListType(t),configs:[n]}}return{node:t,indent:0,level:e,id:r,attrs:{listId:r,listLevel:e},info:s}}createList(t,e,r){let s;if(!r)return this._createList(t,e);let n=r.info.configs,a=n[e],i=this.createListConfig(t,e);if(a&&!Rt(a,i,Ot,void 0)){let a=n.slice(0,e);a.push(i),s=this._createList(t,e,null,Object.assign(Object.create(null),r.info,{configs:a}))}else a||n.push(i),s=this._createList(t,e,r.id,r.info);return s.indent+=r.indent,s}addList(t){let e=(this.getWrapper()||this.addWrapper(null)).lists,r=e.length;if(r>=sx)return null;let s=this.createList(t,r,e[r-1]);return e.push(s),this.storeList(s),s}removeList(t){let e=this.getList();return e&&e.node===t?(this.getWrapper().lists.length-=1,e):null}storeList(t){let e=this.getContainer(),r=e.map,s=t.id;s in r||(r[s]=t.info,e.has_list=!0)}}let $x=(()=>{let t=["underline","link","tracking"];return sn.createMarksNormalizer((e=>!t.includes(e._)))})(),Jx={start:sn.createOptional({empty_value:1,normalizer:t=>{let e=sn.getPresetNormalizer("integer")(t);return null==e?null:e>=0&&e<=9999?e:null}}),format:sn.createOptional({empty_value:`bullet_${nx}`}),text:sn.createOptional({empty_value:"%1"}),align:sn.createOptional({empty_value:"left",normalizer:["left","right"]}),marks:sn.createOptional({empty_value:Z,clearable:!0,normalizer:$x})},Wx=Object.keys(Jx);function Zx(t){let e=t.prototype;Gt(e,"isListType",!0),zt(e,"getFreezeList",(function(t){let e=t.call(this);return e.push("listConfigAttrs","listConfigAttrsList","defaultListConfigAttrs","defaultOrderedListConfigs","defaultBulletListConfigs"),e}),!0),Gt(e,"listMaxLevel",sx),Gt(e,"listConfigAttrs",Jx),Gt(e,"listConfigAttrsList",Wx),Ht(e,"defaultListConfigAttrs",(function(){return sn.emptyAttrs(this.listConfigAttrs)})),Ht(e,"defaultOrderedListConfigs",(function(){let t=this.defaultListConfigAttrs;return Fx("default").map(((e,r)=>Object.assign(Object.create(null),t,e)))})),Ht(e,"defaultBulletListConfigs",(function(){let t=this.defaultListConfigAttrs;return Bx("default").map(((e,r)=>Object.assign(Object.create(null),t,e)))}))}class Yx extends xa{static getSelfPropertyName(){return"PseudoList"}parseAttrsFromJson(t,e,r){try{if(e.configs&&Array.isArray(e.configs))for(let t of e.configs)t&&Array.isArray(t.marks)&&(t.marks=yn.setToJSON(yn.setFromJSON(this.schema,t.marks)))}catch{e.configs=void 0}return super.parseAttrsFromJson(t,e,r)}renderAttrsDom(t,e,r){if(super.renderAttrsDom(t,e,r),"clipboard"===r.target){let s=r.list_level||0,n=e.getState("list_configs"),a=n?.[s];a&&("ol"===a.type&&Object.assign(t,{start:a.start+(r.list_index||0)}),Object.assign(t.inline_style||(t.inline_style=Object.create(null)),{"margin-top":"0px","margin-bottom":"0px","margin-left":0===s?n.list_indent+"px":null,"list-style-type":dx(a.format)}))}return t}renderAttrsJson(t,e,r){super.renderAttrsJson(t,e,r);let s=e.getState("list_configs");return s?Object.assign(t,{id:s.list_id,configs:s.map((t=>this.listConfigAttrsList.reduce(((e,r)=>(e[r]=t[r],e)),Object.create(null))))}):t}toDOM(t,e){let r=e.list_level||0,s=t.getState("list_configs")?.[r];return s?[s.type,this.renderAttrs(Object.create(null),t,e),0]:null}}Zx(Yx);let Xx={listId:sn.createOptional(),listLevel:sn.createOptional({empty_value:0,normalizer:t=>{let e=sn.getPresetNormalizer("integer")(t);return null==e?null:ge(e,0,sx-1)}}),listMarks:Jx.marks},Kx=Object.keys(Xx);function Qx(t,e,r){return"ul"===t.type||e===r}function tg(t){let e=t.prototype;if(!e.isIndentBlock||!e.isMarksBlock)throw Error("Unable to mixin ListBlock to non-IndentBlock or non-MarksBlock.");Gt(e,"isListBlock",!0),zt(e,"getFreezeList",(function(t){let e=t.call(this);return e.push("listAttrs","listAttrsList","defaultListAttrs"),e}),!0),Gt(e,"listAttrs",Xx),Gt(e,"listAttrsList",Kx),Ht(e,"defaultListAttrs",(function(){return sn.emptyAttrs(this.listAttrs)})),Gt(e,"listItemPadding",2),Ht(e,"attrs",(function(t){return sn.mergeTypeAttrs(t.call(this),this.listAttrs)}),!0),zt(e,"_getInheritedListMarksJSON",(function(t){let e=t.state.list_config;return e&&e.marks}),!1,"has"),zt(e,"getInheritedListMarksJSON",(function(t){return this._getInheritedListMarksJSON(t)||yn.none}),!1,"has"),zt(e,"_getInheritedListMarks",(function(t){let e=t.state.list_config;return e&&e.marks_instance}),!1,"has"),zt(e,"getInheritedListMarks",(function(t){return this._getInheritedListMarks(t)||yn.none}),!1,"has"),zt(e,"mergeListMarks",(function(t){let e=t.state;if(e.list_config){let r=t.getAttrValue("listMarks");e.list_marks_json=yn.mergeSetJSON(this.getInheritedListMarksJSON(t),r),e.list_marks=yn.mergeSet(this.getInheritedListMarks(t),this.schema.marksFromJSON(r))}else e.list_marks_json=yn.none,e.list_marks=yn.none;return Bn.STATE_REDRAW}),!1,"has"),Vt(e,"registerListBlock",(function(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_list_info",null,((t,e)=>{if(!e.getListMap())return;let r=t.getAttrValue("listId"),s=r&&e.getListConfigs(r),n=t.state.list_configs;if(!s&&!n)return;let a=t.getAttrValue("listLevel"),i=t.state.list_path,o=s&&function(t,e){let r=[];for(let s=0;s<e;++s){let e=t[s];e.index===e.start&&++e.index,r.push(e.index-1)}r.push(t[e].index++);for(let r=t.length-1;r>e;--r){let e=t[r];e.index=e.start}return r}(s,a);if(Object.assign(t.state,s?{list_configs:s,list_path:o,list_config:s[a],list_index:o[a],list_head:0===a&&s[a].start===o[a]}:{list_configs:null,list_path:null,list_config:null,list_index:null,list_head:null}),!(t.getStateRank()<Bn.STATE_UPDATE&&n&&s&&function(t,e,r,s,n){if(t.list_id!==e.list_id||t.list_type!==e.list_type||t.list_indent!==e.list_indent)return!1;let a=e[n];if(a.dirty||!Qx(a,r[n],s[n]))return!1;let i=a.depends;return!(i&&i.some((t=>!Qx(e[t],r[t],s[t]))))}(n,s,i,o,a)))return Bn.STATE_REDRAW})),t.register(t.SELF_START,this.name,"merge_list_marks",null,this.mergeListMarks.bind(this))})),zt(e,"getTextRectInfo",(function(t,e,r){let s=t.call(this,e,r),n=e.state.list_configs;if(!n)return s;{let t=this.baseIndent*(e.getAttrValue("listLevel")+1)+n.list_indent;return{left:s.left+t,width:s.width-t}}}),!0),zt(e,"getFirstTextRectInfo",(function(t,e,r){let s=t.call(this,e,r);if(!e.state.list_configs)return s;{let t=this.baseIndent;return{left:s.left-t,width:s.width+t}}}),!0),zt(e,"computeJsonConversionAttrs",(function(t,e,r){let s=t.call(this,e,r),{target:n,useComputedStyle:a,markFilter:i}=r;if("clipboard"===n&&a&&(s={...s,listMarks:e.listMarksJSON}),i&&s.listMarks?.length){let t=s.listMarks.filter(i);t.length!==s.listMarks.length&&(s={...s,listMarks:t})}return s}),!0),zt(e,"trimNode",(function(t,e,r){e=t.call(this,e,r)||e;let s=yn.trimSetJSON(e.listMarksRawJSON,this.getInheritedListMarksJSON(e));return s&&(e=e.duplicate(e.content,{listMarks:s})),e}),!0),zt(e,"parseAttrsFromParser",(function(t,e,r,s){t.call(this,e,r,s);let n=r.getParser("list");if(!n)return e;let a=n.getList();if(a){let t=a.item;if(t){let{indentFirst:r,indentLeft:n,indentRight:a}=this.parseAttrsFromDom(Object.create(null),t.node,s);r&&(e.indentFirst=(e.indentFirst||0)+r),n&&(e.indentLeft=(e.indentLeft||0)+n),a&&(e.indentRight=(e.indentRight||0)+a)}let r=a.indent;if(r&&(e.indentFirst=(e.indentFirst||0)+r,e.indentLeft=(e.indentLeft||0)+r),n.consumeItem())Object.assign(e,a.attrs,t.attrs);else{let t=this.baseIndent*(a.level+1);e.indentFirst=(e.indentFirst||0)+t,e.indentLeft=(e.indentLeft||0)+t}}return e}),!0),zt(e,"getListText",(function(t){let e=t.getState("list_config"),r=t.getState("list_configs"),s=t.getState("list_path");return e&&r&&s?Nx(e.text,(t=>{let e=s[t];return null!=e?Ix(r[t].format,e):""})):""})),zt(e,"getPseudoListType",(function(){return Yx.prototype})),zt(e,"getPseudoListItemType",(function(){return this.schema.nodeType("pseudo_list_item")})),zt(e,"isValidListBlock",(function(t){return!!(t.getAttrValue("listId")&&t.state.list_config)})),Zx(t)}function eg(t){let e;return e=t?{...Jx,marks:Jx.marks.copy({normalizer:t})}:Jx,t=>{let r,s;if(!t||!Array.isArray(t))return;let n=t.length;if(n!==sx)if(0===n)return;else r=n>sx?t.slice(0,sx):Array.from({length:sx},((e,r)=>t[r]??null));else r=t;return r.forEach(((t,n)=>{let a=null==t?null:sn.normalizeAttrValues(e,t);a!==t&&(s||(s=r.slice()),s[n]=a)})),s??r}}let rg={type:sn.createOptional({empty_value:"ul",normalizer:["ul","ol"]}),indent:sn.createOptional({empty_value:0,normalizer:"number"}),configs:sn.createOptional({empty_value:Z,normalizer:eg()})},sg=Object.keys(rg);function ng(t){let e;return e=t?{...rg,configs:rg.configs.copy({normalizer:eg(t)})}:rg,t=>{let r;if(t&&"object"==typeof t)return rt(t,((s,n)=>{let a=null===s?null:sn.normalizeAttrValues(e,s),i=void 0===a;(i||s!==a)&&(r||(r=Object.assign(Object.create(null),t)),i?delete r[n]:r[n]=a)})),r??t}}let ag={listMap:sn.create({optional:!0,empty_value:W,hidden:!0,normalizer:ng()})},ig=Object.keys(ag),og=Wx.filter((t=>"marks"!==t));function lg(t){if(!t.is("ContentEditable"))throw Error("Unable to mixin ListContainer to non-contentEditable.");let e=t.prototype;Gt(e,"isListContainer",!0),zt(e,"getFreezeList",(function(t){let e=t.call(this);return e.push("listContainerAttrs","listContainerAttrsList","defaultListContainerAttrs","listInfoAttrs","listInfoAttrsList","defaultListInfoAttrs"),e}),!0),Gt(e,"listContainerAttrs",ag),Gt(e,"listContainerAttrsList",ig),Ht(e,"defaultListContainerAttrs",(function(){return sn.emptyAttrs(this.listContainerAttrs)})),Gt(e,"listInfoAttrs",rg),Gt(e,"listInfoAttrsList",sg),Ht(e,"defaultListInfoAttrs",(function(){return sn.emptyAttrs(this.listInfoAttrs)})),Ht(e,"attrs",(function(t){return sn.mergeTypeAttrs(t.call(this),this.listContainerAttrs)}),!0),zt(e,"_getInheritedOrderedListConfigs",(function(t){return t.state.inherited_ol_configs}),!1,"has"),zt(e,"getInheritedOrderedListConfigs",(function(t){return this._getInheritedOrderedListConfigs(t)||this.defaultOrderedListConfigs}),!1,"has"),zt(e,"_getInheritedBulletListConfigs",(function(t){return t.state.inherited_ul_configs}),!1,"has"),zt(e,"getInheritedBulletListConfigs",(function(t){return this._getInheritedBulletListConfigs(t)||this.defaultBulletListConfigs}),!1,"has"),zt(e,"getInheritedListConfigs",(function(t,e){return"ol"===e?this.getInheritedOrderedListConfigs(t):this.getInheritedBulletListConfigs(t)}),!1,"has"),zt(e,"getInheritedListConfigAttrs",(function(t,e,r){return this.getInheritedListConfigs(t,e)[r]}),!1,"has"),zt(e,"registerListContainer",(function(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_list_info",null,((t,e)=>{let r,s=!1;if(t.getStateRank()<Bn.STATE_SCAN){let e=!1;t.descendants((t=>{let r=t.getStateRank();return r>=Bn.STATE_SCAN?(s=!0,!0):t.type.isTextblock?(r===Bn.STATE_PASSING&&(e=!0),!1):void 0}),{skipInlineContent:!0}),e||(s=!0)}else s=!0;if(!s)return;let n=t.state.list_map;return n&&t.getStateRank()<Bn.STATE_SCAN?rt(r=n,(function(t,e){t.forEach((t=>{t.dirty=!1,t.index=t.start}))})):rt(r=wt(t.getAttrValue("listMap"),((e,r)=>function(t,e,r){r||(r=W);let s=r.type||t.type.defaultListInfoAttrs.type,n=r.indent||t.type.defaultListInfoAttrs.indent,a=r.configs||t.type.defaultListInfoAttrs.configs,i=t.type.getInheritedListConfigs(t,s),o=Array(sx);for(let t=0;t<sx;++t)o[t]=function(t,e,r,s){return(s=Object.assign(Object.create(null),r,s,{marks:yn.mergeSetJSON(r.marks,s&&s.marks)})).level=e,s.dirty=!1,s.index=s.start,s.type=ax(s.format)?"ul":"ol",s.depends=vx(s.text).reduce(((t,r)=>(--r>=0&&r<e&&t.push(r),t)),[]),s}(0,t,i[t],a[t]);return o.list_id=e,o.list_type=s,o.list_indent=n,o}(t,r,e))),(function(e,r){!function(t,e,r){for(let s=0;s<sx;++s){let n,a=e[s];if(a.depends&&a.depends.some((t=>e[t].dirty)))n=!0;else if(r)n=!Rt(r[s],a,Ot,["format","text","align","marks"]);else n=!0;a.dirty=n,a.marks_instance=n?t.type.schema.marksFromJSON(a.marks):r[s].marks_instance}}(t,e,n&&n[r])})),t.state.list_map=r,e.pushListMap(r),Bn.STATE_SCAN})),t.register(t.UPDATE_END,this.name,"clear_list_info",null,((t,e)=>{e.popListMap()}))})),zt(e,"computeJsonConversionAttrs",(function(t,e,r){let s=t.call(this,e,r);return"clipboard"===r.target&&r.useComputedStyle&&e.getAttrValue("listMap",!0)&&(s===e.attrs&&(s=Object.assign(Object.create(null),s)),s.listMap=wt(e.state.list_map,(t=>({indent:t.list_indent,configs:t.map((t=>Wx.reduce(((e,r)=>(e[r]=t[r],e)),Object.create(null))))})))),s}),!0),zt(e,"trimNode",(function(t,e,r){let s,n=(e=t.call(this,e,r)||e).getAttrValue("listMap",!0);if(!n)return e;let a=["ol","ul"].reduce(((t,r)=>(t[r]=this.getInheritedListConfigs(e,r),t)),Object.create(null));return rt(n,((t,e)=>{let r;if(!t)return;let{type:i,indent:o,configs:l}=t,h=a[i]||a[this.defaultListInfoAttrs.type];if(null!=o&&o===h.list_indent&&(r||(r=Object.assign(Object.create(null),t)),delete r.indent),null!=l){let e;for(let t=0;t<sx;++t){let r,s=l[t];if(!s)continue;let n=h[t];for(let t=og.length-1;t>=0;--t){let e=og[t],a=s[e];null!=a&&a===n[e]&&(r||(r=Object.assign(Object.create(null),s)),delete r[e])}let a=yn.trimSetJSON(s.marks,n.marks);a&&(r||(r=Object.assign(Object.create(null),s)),r.marks=a),r&&(e||(e=l.slice()),e[t]=r)}e&&(r||(r=Object.assign(Object.create(null),t)),r.configs=e)}r&&(s||(s=Object.assign(Object.create(null),n)),s[e]=r)})),s&&(e=e.duplicate(e.content,{listMap:s})),e}),!0),zt(e,"parseAttrsFromParser",(function(t,e,r,s){t.call(this,e,r,s);let n=r.getParser("list");if(!n)return e;let a=n.getContainer();return a&&Object.assign(e,{...a.attrs,listMap:{...e.listMap,...a.attrs.listMap}}),e}),!0),Zx(t)}class hg extends xa{static getSelfPropertyName(){return"PseudoListItem"}parseAttrsFromJson(t,e,r){try{e.listMarks&&Array.isArray(e.listMarks)&&(e.listMarks=yn.setToJSON(yn.setFromJSON(this.schema,e.listMarks)))}catch{e.listMarks=void 0}return super.parseAttrsFromJson(t,e,r)}parseAttrsFromParser(t,e,r){super.parseAttrsFromParser(t,e,r);let s=e.getMarks(),n=this.schema.maybeMarkType("link");return n&&(s=n.removeLinkMarks(s)),s.length&&(t.listMarks=yn.mergeSetJSON(t.listMarks,yn.setToJSON(s))),t}renderAttrsJson(t,e,r){super.renderAttrsJson(t,e,r);let s=e.listMarksJSON;return s.length&&(t.listMarks=s),t}}Zx(hg);let ug=Object.assign(Object.create(null),{ul:"list",ol:"list",li:"item"});class cg extends qx{getNodeType(t){if(t.nodeType!==t.ELEMENT_NODE)return null;let e=ug[t.nodeName.toLowerCase()];return e||("true"===t.getAttribute("synoedit")?"container":null)}_add(t,e){return"item"===t?this.addItem(e):(t&&this.consumeItem(),super._add(...arguments))}_remove(t,e){return"item"===t?this.removeItem(e):super._remove(...arguments)}getListType(t){return t.tagName.toLowerCase()}createListConfig(t,e){let r=this._createListConfig(t,e);for(let s=t.firstChild;s;s=s.nextSibling)if("item"===this.getNodeType(s)){Object.assign(r,this._createListConfig(s,e));break}return r}_createListConfig(t,e){let r=Object.create(null);return this.fillListConfigFormat(r,t,e),this.fillListConfigStart(r,t,e),r}fillListConfigFormat(t,e,r){let s=gx(e);return s&&(t.format=s,t.text=_x(s,r)),t}fillListConfigStart(t,e,r){let s=e.getAttribute("item"===this.getNodeType(e)?"value":"start");return s&&(isNaN(s=parseInt(s,10))||1===s||(t.start=s)),t}_createList(t,e,r,s){return Object.assign(super._createList(...arguments),{item:null})}createList(t,e,r){let s=this.type.getPseudoListType().parseAttrs(t,Object.assign(Object.create(null),this.parser.options,{list_level:e})),n=s.id;return n&&Array.isArray(s.configs)?(this.parsedIds[n]=!0,delete s.id,this._createList(t,e,n,s)):super.createList(...arguments)}createItem(t){return{node:t,marker:!0,attrs:this.type.getPseudoListItemType().parseAttrs(t,this.parser.options)}}getItem(){let t=this.getList();return t&&t.item}addItem(t){let e=this.getList();return!e||e.item?null:e.item=this.createItem(t)}removeItem(t){let e=this.getItem();return e&&e.node===t&&(this.getList().item=null),e}consumeItem(){let t=this.getItem();return!!t&&!!t.marker&&(t.marker=!1,!0)}}function pg(t){return!!t.type.isListBlock&&null!=t.getAttrValue("listId",!0)}function dg(t){return pg(t)?t.getAttrValue("listId"):null}function yg(t,e){let r=function(t,e){let r=t.parent;if(pg(r))return{type:0,node:r};let s=null,n=0;if(r.type.isTextblock?(e<0?t.atStart:t.atEnd)&&(s=t.node(-1),n=t.index(-1)+e):(s=r,n=t.index()+(e<0?-1:0)),s){let t=s.maybeChild(n);if(t&&pg(t))return{type:1,node:t}}return null}(t,e);if(!r)return null;let{type:s,node:n}=r;return{type:s,listId:n.getAttrValue("listId"),listLevel:n.getAttrValue("listLevel"),listMarks:n.getAttrValue("listMarks")}}class xg extends cg{static{this.parserName="list"}constructor(t){super(),this.type=t,this.parser=null,this.parsedIds=Object.create(null),this.currentListMap=null,this.listContextBefore=null,this.listContextAfter=null}getParseOptions(){let t=this.parser;return t?t.options:Object.create(null)}getParsedIds(){return this.parsedIds}init(t,e,r){this.parser=t;let s=r.currentListMap||null;if(!s){for(let e=t.top;e;e=e.prev)if(e.type.isListContainer){s=e.attrs.listMap||null;break}}this.currentListMap=s,e&&(e.self&&e.self.isTextblock&&(e=e.extend(0)),this.listContextBefore=yg(e,-1),this.listContextAfter=yg(e,1))}finish(t,e){return t=this.adaptList(t,e),t=this.changeListId(t,e)}finishCustom(){let t=this.getContainer();return{listMap:t&&t.map&&!mt(t.map)?t.map:null}}overrideListId(t,e,r,s){let n=e.self;if(!n)return t;let a=dg(n);if(!a)return t;let i=sx;t.descendants((t=>{dg(t)===a&&(i=Math.min(i,t.getAttrValue("listLevel")))}),{skipInlineContent:!0});let{listId:o,listLevel:l}=r;return t.mapDescendants((t=>{if(t.type.isListContainer){let e=t.getAttrValue("listMap");a in e&&(e=Object.assign(Object.create(null),e),delete e[a],t=t.copyWithAttrs({listMap:e}))}else dg(t)===a&&(t=t.copyWithAttrs({listId:o,listLevel:l+t.getAttrValue("listLevel")-i,indentFirst:null,indentLeft:null}));return t}),{skipInlineContent:!0})}applyContinuousList(t,e,r,s){let{listId:n,listLevel:a,listMarks:i}=r,o=e.parent,l=e.index(),h=s?o.childCount:-1,u=s?1:-1,c=o.childs();for(let t=l;t!==h;t+=u){let e=o.child(t);if(!e.type.isListBlock)break;c[t]=e.copyWithAttrs({listId:n,listLevel:a,listMarks:i,indentFirst:null,indentLeft:null})}let p=o.copyWithContent(c);return t===o?p:t.mapDescendants((t=>t===o?p:t),{skipInlineContent:!0})}adaptListContext(t,e,r,s){let n=e.self;if(!n||!n.type.isListBlock)return null;let a=n.getAttrValue("listId")||"";return 1!==r.type||a?a?this.overrideListId(t,e,r,s):this.applyContinuousList(t,e,r,s):null}adaptList(t,e){let{listContextBefore:r,listContextAfter:s}=this;if(!r&&!s)return t;let n=null,a=null;if(t.descendants(((t,r,s,i)=>{if(!t.type.isListBlock||r<e)return;let o={node:t,pos:r,parent:i,id:t.getAttrValue("listId")||""};n||(n=o),a=o}),{skipInlineContent:!0}),!n||!a)return t;if(r){let e=this.adaptListContext(t,n.$pos||t.resolve(n.pos),r,!0);if(e)if(t=e,n===a)a=null;else{let e=t.resolve(a.pos);e.self&&dg(e.self)===a.id?a.$pos=e:a=null}}return s&&a&&(t=this.adaptListContext(t,a.$pos||t.resolve(a.pos),s,!1)||t),t}changeListId(t,e){let r=this.getContainer();if(!r)return t;let s=this.getParsedIds(),n=this.currentListMap;if(n&&(s=function(t,e,r){let s=Object.create(null);return rt(t,((t,r,n)=>{e.call(void 0,t,r,n)&&(s[r]=t)})),s}(s,((t,e)=>void 0===n[e]))),mt(s))return t;let a=wt(s,((t,e)=>Tt())),i=r.map;return Object.entries(i).forEach((([t,e])=>{t in a&&(i[a[t]]=e,delete i[t])})),t.mapDescendants((t=>{if(t.type.isListContainer){let e=!1,r=St(t.getAttrValue("listMap"),((t,r,s)=>{let n;return s in a?(n=a[s],e=!0):n=s,t[n]=r,t}),Object.create(null));e&&(t=t.copyWithAttrs({listMap:r}))}else if(pg(t)){let e=t.getAttrValue("listId");e&&e in a&&(t=t.copyWithAttrs({listId:a[e]}))}return t}),{skipInlineContent:!0})}}class gg extends dc{static checkNode(t){return super.checkNode(t)&&t.type.isListContainer}}class fg extends gg{applyListMap(t,e){return e}applyAtPos(t,e){let{doc:r,pos:s,self:n}=t,a=this.applyListMap(t,n.getAttrValue("listMap",!0));return!1===a?r:r.replace(s,s+n.nodeSize,vn.from(n.duplicate(n.content,{listMap:a})),Bn.STATE_SCAN)}doCreatePosMap(t){return null}}class mg extends fg{constructor(t,e){super(t),this.infos=e}applyListMap(t,e){e=Object.assign(Object.create(null),e);let r=!1;return rt(this.infos,((t,s)=>{void 0!==t&&void 0===e[s]&&(e[s]=t,r=!0)})),!!r&&e}doInvert(t){return null}doMap(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.infos)}static fromJSON(t,e){return new this(e.pos,e.infos)}}cc.jsonID("addListMap",mg);class bg extends fg{constructor(){super(),delete this.pos}applyListMap(t,e){if(!e)return!1;let r=Object.create(null);return t.self.descendants((t=>{if(!t.type.isListBlock)return;let s=t.getAttrValue("listId");if(s&&!(s in r)&&Object.prototype.hasOwnProperty.call(e,s)){let t=e[s];void 0!==t&&(r[s]=t)}}),{skipInlineContent:!0}),!Rt(e,r,Ot,void 0)&&r}doApply(t,e){let r=[];t.descendants(((t,e)=>{if(t.type.isListContainer)return r.push(e),!1}));for(let s=r.length-1;s>=0;--s)t=this.applyAtPos(t.resolve(r[s]),e);return t}doInvert(t){return null}doMap(t){return this}static fromJSON(t,e){return new this}}cc.jsonID("trimListMap",bg);class _g extends fg{constructor(t,e){super(t),this.id=e}applyListAttrs(t,e){}applyListMap(t,e){e=Object.assign(Object.create(null),e);let r=this.id;return e[r]=this.applyListAttrs(t,e[r])||null,e}doMap(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.id)}static fromJSON(t,e){return new this(e.pos,e.id)}}class Ag extends _g{constructor(t,e,r){super(t,e),this.attrs=r}applyListAttrs(t,e){return sn.copyAttrs(t.self.type.listInfoAttrs,e,this.attrs)}invertAtPos(t){let{pos:e,self:r}=t,{id:s,attrs:n}=this;return new this.constructor(e,s,sn.invertAttrs(r.type.listInfoAttrs,r.getAttrValue("listMap")[s],n))}doMap(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.id,this.attrs)}static fromJSON(t,e){return new this(e.pos,e.id,e.attrs)}}cc.jsonID("setListInfo",Ag);class Mg extends _g{constructor(t,e,r){super(t,e),this.configs=r}applyListAttrs(t,e){let{configs:r}=this,s=e&&e.configs;s=s?s.slice():[];let n=t.self.type.listConfigAttrs;for(let t=0;t<sx;++t)r[t]&&(s[t]=sn.copyAttrs(n,s[t],r[t]));return Object.assign(Object.create(null),e,{configs:s})}invertAtPos(t){let{pos:e,self:r}=t,{id:s,configs:n}=this,a=r.getAttrValue("listMap")[s],i=a&&a.configs,o=r.type.listConfigAttrs;return new this.constructor(e,s,n.map(((t,e)=>sn.invertAttrs(o,i&&i[e],t))))}doMap(t){let e=this.mapPos(t);return null==e?null:new this.constructor(e,this.id,this.configs)}static fromJSON(t,e){return new this(e.pos,e.id,e.configs)}}function wg(t,e){let r=t.doc.resolve(e).self;if(!fg.checkNode(r))throw RangeError(`Invalid node at pos ${e}.`);return r}cc.jsonID("setListConfigs",Mg),Object.assign(gc.prototype,{trimListMap(){return this.step(new bg(...arguments))},addListMap(t,e){let r=wg(this,t);return rt(e,((t,e)=>{if(t?!sn.checkAttrs(r.type.listInfoAttrs,t):null!==t)throw RangeError(`Invalid list info ${JSON.stringify(t)}.`)})),this.step(new mg(...arguments))},addListInfo(t,e,r){return e in wg(this,t).state.list_map?this.setListInfo(t,e,r):this.addListMap(t,{[e]:r})},setListInfo(t,e,r){let s=wg(this,t);if(!r||!sn.checkAttrs(s.type.listInfoAttrs,r))throw RangeError(`Invalid list info ${JSON.stringify(r)}.`);return this.step(new Ag(...arguments))},setListConfigs(t,e,r){let s=wg(this,t);if(r.length>sx)throw RangeError(`Invalid list configs length ${r.length}.`);return r.forEach(((t,e)=>{if(!sn.checkAttrs(s.type.listConfigAttrs,t))throw RangeError(`Invalid list config ${JSON.stringify(t)} at level ${e}.`)})),this.step(new Mg(...arguments))},setListConfig(t,e,r,s){if(r<0||r>=sx)throw RangeError(`Invalid list level ${r}.`);if(!s)throw RangeError(`Invalid list config ${JSON.stringify(s)}.`);let n=Array(r);return n.push(s),this.setListConfigs(t,e,n)}});class Sg extends(Zy(wa)){static getSelfPropertyName(){return"BasicParagraph"}getTopPaddingHeight(t){return this.getCssAttrs(t).paddingTop}getBottomPaddingHeight(t){return this.getCssAttrs(t).paddingBottom}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();this.registerMarksBlock(),this.registerCssBlock(),this.registerIndentBlock(),this.registerTabBlock(),this.registerListBlock(),t.reorder(t.SELF_START,this.name,"set_text_rect_info")}_toChildContainerDOM(t,e){return["span",null,0]}renderBlockStructure(t,e){return["div",this.renderAttrs(Object.create(null),t,e),this._toChildContainerDOM(t,e)]}renderTag(t,e){return"p"}toCopyDOM(t,e){let r=this.renderTag(t,e),s=this.renderAttrs(Object.create(null),t,e),n=[r,s,0];if(null==t.getAttrValue("listId"))return n;{let r=s.inline_style,a={"padding-top":"0px","padding-bottom":"0px","margin-top":"0px","margin-bottom":"0px"};return["padding-left","padding-right","margin-left","margin-right"].forEach((t=>{a[t]=r[t],r[t]="0px"})),["li",this.getPseudoListItemType().renderAttrs({inline_style:a},t,e),n]}}}Fy(Sg),Hy(Sg),qy(Sg),tg(Sg);class Cg extends Ca{static getSelfPropertyName(){return"HardBreak"}getAltText(t){return"\n"}get matchDOMTag(){return{br:null}}toDOM(t,e){return["span",{linebreak:"true",synobr:"true"},["br"]]}}class Pg extends Ca{static getSelfPropertyName(){return"Tab"}getAltText(t){return"\t"}get matchDOMTag(){return{'span[data-syno-schema="tab"]':(t,e)=>this.parseDOM(t,e)}}toDOM(t,e){let r=e.target;return["span",this.renderAttrs({"data-syno-schema":"clipboard"===r?"tab":void 0,inline_style:{display:"inline-block",...yn.setToStyle(t.marks.filter((t=>t.is("TextDecoration"))))}},t,e),"clipboard"===r?" ".repeat(4):void 0]}}class Tg extends fa{static getSelfPropertyName(){return"TableParser"}}let vg=[9,9,11,12,14,18,24,36],Ig=wt({1:0,2:2,3:3,4:4,5:5,6:6,7:7},(t=>vg[t])),kg=wt({"xx-small":0,"x-small":1,small:2,medium:3,large:4,"x-large":5,"xx-large":6},(t=>vg[t]));class Eg extends Na{static getSelfPropertyName(){return"FontSize"}get cssName(){return"font-size"}get cssDefaultValue(){return"11pt"}get attrs(){return{value:sn.create({default:11,empty_value:11,normalizer:t=>{let e=sn.getPresetNormalizer("positiveNumber")(t);if(null!=e)return Math.round(e)}})}}getCssValue(t){return t.getValue()+"pt"}getFontSizeByLevel(t){return vg[t]}get matchDOMTag(){return{"font[size]":(t,e)=>{let r,s=t.getAttribute("size");if(!s||isNaN(r="+"===s[0]||"-"===s[0]?3+parseInt(s,10):parseInt(s,10)))return!1;let n=Ig[r=ge(r,1,7)];return!!n&&{value:n}}}}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>{let s;return!!(s=t in kg?kg[t]:"larger"===t||"smaller"===t?"larger"===t?14:9:Rs(t,"pt",11))&&{value:s}}}}}let Ng=function(t,e){return ju(t,e)};function Lg(t){return"string"!=typeof t?null:Gs(t)||null}let jg=new Map([["helvetica","Arial"]]);function Rg(t){return{value:t,eastAsia:t,complexScript:t}}class Og extends Na{static getSelfPropertyName(){return"FontFamily"}get cssName(){return"font-family"}get cssDefaultValue(){return"Arial"}get supportMerge(){return!0}get attrs(){let t=sn.createOptional({empty_value:this.cssDefaultValue,normalizer:Lg});return{value:t,eastAsia:t,complexScript:t,hint:sn.createOptional({empty_value:"default",normalizer:["default","eastAsia","complexScript"]})}}getCssValue(t){return this.ensureFontFamilyCssValue(t.getValue())}merge(t,e){let r={};for(let s of this.getAttrKeys()){let n=e.getAttrValue(s,!0)??t.getAttrValue(s,!0);null!=n&&(r[s]=n)}return Ng(t.attrs,r)?t:this.create(r)}split(t,e){let r={},s=!1;for(let n of this.getAttrKeys()){let a=t.getAttrValue(n,!0);null!=a&&e.getAttrValue(n,!0)!==a&&(r[n]=a,s=!0)}return s?Ng(t.attrs,r)?t:this.create(r):null}intersect(t,e){let r={},s=!1;for(let n of this.getAttrKeys()){let a=t.getAttrValue(n,!0);null!=a&&e.getAttrValue(n,!0)===a&&(r[n]=a,s=!0)}return s?Ng(t.attrs,r)?t:this.create(r):null}ensureFontFamilyCssValue(t){let e=jg.get(t.toLowerCase());return e?`"${t}","${e}"`:`"${t}"`}readFontFamily(t,e){var r;let s="",n=e.parser?.getCustomParser("font");if(n){let e=zs(t);s=e.find((t=>n.isSupported(t)))||e[0]||""}else s=zs(t,1)[0]??"";return(r=s,vs.includes(r.toLowerCase()))?"":s}get matchDOMTag(){return{"font[face]":(t,e)=>{let r=t.getAttribute("face");if(!r)return!1;let s=this.readFontFamily(r,e);return!!s&&Rg(s)}}}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>{if(!(t=this.readFontFamily(t,r)))return!1;let s=e.getAttribute("data-syno-attrs"),n=s&&Ks(s);return n&&(t===n.value||t===n.eastAsia||t===n.complexScript)?n:Rg(t)}}}toDOM(t,e){return["span",{"data-syno-attrs":"clipboard"===e.target?Xs(function(t){let e={};for(let r of t.type.getAttrKeys()){let s=t.getAttrValue(r);null!=s&&(e[r]=s)}return e}(t)):void 0,inline_style:{[this.cssName]:this.getCssValue(t)}}]}}class Dg extends La{static getSelfPropertyName(){return"Em"}get cssName(){return"font-style"}get cssValue(){return"italic"}get cssDefaultValue(){return"normal"}get matchDOMTag(){return{i:null,em:null}}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>"italic"===t||t.startsWith("oblique")?null:"normal"===t&&{value:!1}}}toDOM(t,e){return["span",{inline_style:{"font-style":"italic"}}]}}class Fg extends La{static getSelfPropertyName(){return"Strong"}get cssName(){return"font-weight"}get cssValue(){return"bold"}get cssDefaultValue(){return"normal"}get matchDOMTag(){return{b:null,strong:null}}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>{let s=parseInt(t,10);return isNaN(s)?"bold"===t||"bolder"===t?null:("normal"===t||"lighter"===t)&&{value:!1}:s>=500?null:{value:!1}}}}toDOM(t,e){return["span",{inline_style:{"font-weight":700}}]}}let Bg=RegExp(xr("asciiTabNewline"),"g");function Vg(t){return!(t=t.trim().replace(Bg,""))||t.startsWith("javascript:")?"":t.startsWith("#")||/^(?:(?:https?|s?ftp):\/\/|mailto:)/i.test(t)?t:`http://${t}`}class Hg extends ka{static getSelfPropertyName(){return"Link"}get clearable(){return!1}get supportTextblock(){return!1}get supportListBlock(){return!1}get inclusiveBefore(){return!1}get valueKey(){return"href"}get linkColor(){return"#0F7BE9"}get linkUnderline(){return!0}get attrs(){return{href:sn.create({normalizer:t=>"string"!=typeof t?"":Vg(t)})}}sanitizeLink(t){return Vg(t)}getLinkStyleMarks(){return this.linkStyleMarksCache??=yn.setFrom([this.schema.mark("color",{value:this.linkColor}),this.schema.mark("underline",{value:this.linkUnderline})])}removeLinkMarks(t,e=!1){let r=this.removeFromSet(t);if(t.length!==r.length)if(e)for(let t of this.getLinkStyleMarks())r=t.removeFromSet(r);else r=this.schema.markType("color").removeFromSet(r),r=this.schema.markType("underline").removeFromSet(r);return r}get matchDOMTag(){return{"a[href]":(t,e)=>{let r=Vg(t.getAttribute("synohref")||t.getAttribute("href")||"");if(!r)return!1;let s=e.parser;return s&&s.addMarks(this.getLinkStyleMarks()),{href:r}}}}toDOM(t,e){let r={class:this.className},s=t.getValue();if(s){let t=e.target;"viewer"===t||"clipboard"===t?(r.href=s,s.startsWith("#")||(r.target="_blank",r.rel="noreferrer noopener")):r.synohref=s}return["a",r]}constructor(...t){super(...t),this.linkStyleMarksCache=null}}function Gg(t){let e=Bs(t,{disableTransparent:!0});return!!e&&{value:e}}class zg extends Na{static getSelfPropertyName(){return"Color"}get cssName(){return"color"}get cssDefaultValue(){return"#000000"}get attrs(){return{value:new sn({default:"",empty_value:this.cssDefaultValue})}}getCssValue(t){return t.getValue()}get matchDOMTag(){return{"font[color]":(t,e)=>{let r=t.getAttribute("color");return!!r&&Gg(r)}}}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>Gg(t)}}}class Ug extends Na{static getSelfPropertyName(){return"BackgroundColor"}get cssName(){return"background-color"}get cssDefaultValue(){return"transparent"}get attrs(){return{value:new sn({default:"",empty_value:this.cssDefaultValue})}}getCssValue(t){return t.getValue()}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>function(t){let e=Bs(t);return!!e&&{value:e}}(t)}}}let qg={baseline:"base",middle:"base","text-top":"base","text-bottom":"base",super:"super",top:"super",sub:"sub",bottom:"sub"};class $g extends La{static getSelfPropertyName(){return"Script"}get fontSizeRatio(){return.8}get cssName(){return"vertical-align"}get cssValue(){return this.scriptType}get cssDefaultValue(){return"baseline"}get matchDOMTag(){return{[this.scriptType]:null}}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>{if("TD"===e.tagName)return!1;let s=qg[t];return!!s&&(s===this.scriptType?null:{value:!1})}}}toDOM(t,e){return["span",{inline_style:{"vertical-align":this.scriptType,"font-size":"clipboard"!==e.target?100*this.fontSizeRatio+"%":void 0}}]}}class Jg extends $g{static getSelfPropertyName(){return"Superscript"}get scriptType(){return"super"}get matchDOMTag(){return{sup:null}}}class Wg extends $g{static getSelfPropertyName(){return"Subscript"}get scriptType(){return"sub"}}class Zg extends La{static getSelfPropertyName(){return"TextDecoration"}get cssType(){return"append"}get cssName(){return"text-decoration-line"}get cssValue(){return this.decorationType}get cssDefaultValue(){return"none"}get matchDOMStyle(){return{[this.cssName]:(t,e,r)=>"none"===t?{value:!1}:!!t.split(" ").includes(this.decorationType)&&null}}}class Yg extends Zg{static getSelfPropertyName(){return"Underline"}get supportListBlock(){return!1}get decorationType(){return"underline"}get matchDOMTag(){return{u:null}}toDOM(t,e){return["u"]}}class Xg extends Zg{static getSelfPropertyName(){return"Strike"}get decorationType(){return"line-through"}get matchDOMTag(){return{s:null,strike:null}}toDOM(t,e){return["s"]}}class Kg extends Ea{static getSelfPropertyName(){return"TextIndent"}get attrs(){return{value:new sn({optional:!0,empty_value:0})}}get matchDOMStyle(){return{"text-indent":(t,e,r)=>{let s=Rs(t,"px");return!!s&&{value:s}}}}}function Qg(t,e){return e.parser?.getMarkValue("direction")||null}class tf extends Ea{static getSelfPropertyName(){return"TextAlign"}get attrs(){return{value:new sn({optional:!0,empty_value:"left"})}}get matchDOMStyle(){return{"text-align":(t,e,r)=>{let s;if("left"===t||"right"===t)s=t;else if(t.includes("center"))s="center";else if(t.includes("justify"))s="justify";else if("start"===t||"end"===t)s="start"===t==("rtl"===(e.style.direction||Qg(e,r)))?"right":"left";else{if(!t.includes("match-parent"))return!1;s="rtl"===Qg(e,r)?"right":"left"}return{value:s}}}}}class ef extends Ea{static getSelfPropertyName(){return"LineHeight"}get attrs(){return{value:new sn({optional:!0,empty_value:1})}}get matchDOMStyle(){return{"line-height":(t,e,r)=>{let s=Rs(t,"");return!!s&&{value:s/1.2}}}}}class rf extends Ea{static getSelfPropertyName(){return"Direction"}get attrs(){return{value:new sn({optional:!0,empty_value:"ltr"})}}get matchDOMStyle(){return{direction:(t,e,r)=>({value:t})}}}let sf={name:"",version:0,nodes:{paragraph:{type:Sg,content:"inline<_>*"},text:{type:va},hard_break:{type:Cg},tab:{type:Pg},table:{type:ny,content:"table_row+"},table_row:{type:ay,content:"table_cell+"},table_cell:{type:iy,content:"basic_block block*"},text_line:{type:Ma,content:"inline<_>*"},table_parser:{type:Tg,content:"basic_block* table basic_block*"},pseudo_list_item:{type:hg}},groups:{basic_block:["paragraph"],block:["paragraph","table"],inline:["text","hard_break","tab"]},marks:[["font_size",Eg],["font_family",Og],["em",Dg],["strong",Fg],["link",Hg],["color",zg],["background_color",Ug],["superscript",Jg],["subscript",Wg],["underline",Yg],["strike",Xg]],attr_marks:[["direction",rf],["text_align",tf],["line_height",ef],["text_indent",Kg]],parsers:{[xg.parserName]:t=>new xg(t.nodeType("paragraph"))}};class nf extends cc{constructor(t){super(),this.comment=t}apply(t,e){return _l.ok(t,e)}map(t){return new this.constructor(this.comment)}static fromJSON(t,e){return new(cc.stepClass(e.stepType))(e.comment)}}class af extends nf{get isCreateCommentStep(){return!0}invert(t){return new of(this.comment)}}cc.jsonID("createComment",af);class of extends nf{invert(t){return new af(this.comment)}}cc.jsonID("removeComment",of);class lf extends nf{invert(t){return new hf(this.comment)}}cc.jsonID("resolveComment",lf);class hf extends nf{get isReopenCommentStep(){return!0}invert(t){return new lf(this.comment)}}cc.jsonID("reopenComment",hf);class uf extends cc{constructor(t){super(),this.operator=t}}class cf extends uf{constructor(t,e){super(t),this.operation=e}doApply(t,e){return this.operate(e)}operate(t){return t[this.constructor.operationName](this.operator,this.operation)}map(t){return this}static fromJSON(t,e){return new this(e.operator,e.operation)}static create(t,e){if(!this.operationProperties.every((t=>t in e)))throw Error(`Operation ${JSON.stringify(e)} misses keys ${this.operationProperties}`);return new this(t,_t(e,this.operationProperties))}}class pf extends cf{static{this.operationName="removeComment"}static{this.operationProperties=["target"]}invert(t,e){let r=e.getCommentById(this.operation.target);return r&&r.isSuggestion()?xf.create(this.operator,r):null}static create(t,e){return super.create(t,e)}}function df(){return Tt()}function yf(t,e){return`${Tt()}-${e}`}pf.register("removeCommentV2");class xf extends cf{static{this.operationName="createComment"}static{this.operationProperties=["id","author","authorName","type","status","text","timestamp","lastModified"]}invert(t,e){return this.operation.type!==Ml?null:pf.create(this.operator,{target:this.operation.id})}static create(t,e){let r=Date.now();return super.create(t,{id:e.id||df(),author:t,authorName:e.authorName||void 0,type:e.type,text:e.text,status:e.status??wl,timestamp:e.timestamp??r,lastModified:r})}}xf.register("createCommentV2");class gf extends cf{static{this.operationName="reply"}static{this.operationProperties=["target","id","author","authorName","status","text","timestamp","lastModified"]}static create(t,e){let r=Date.now();return super.create(t,{target:e.target,id:yf(t,r),author:t,authorName:e.authorName||void 0,status:wl,text:e.text,timestamp:r,lastModified:r})}}gf.register("createReplyV2");class ff extends cf{static{this.operationName="removeReply"}static{this.operationProperties=["target","replyIndex"]}static create(t,e){return super.create(t,{target:e.target,replyIndex:e.replyIndex})}}ff.register("removeReplyV2");class mf extends cf{static{this.operationProperties=["target","id","author","authorName","timestamp","lastModified"]}invert(t,e){let r=e.getCommentById(this.operation.target);return r&&r.type!==Al?("resolve"===this.constructor.operationName?_f:bf).create(this.operator,this.operation):null}static create(t,e){let r=Date.now();return super.create(t,{target:e.target,id:yf(t,r),author:t,authorName:e.authorName||void 0,timestamp:r,lastModified:r})}}class bf extends mf{static{this.operationName="resolve"}}bf.register("resolveCommentV2");class _f extends mf{static{this.operationName="reopen"}}_f.register("reopenCommentV2");class Af extends cf{static{this.operationName="editCommentText"}static{this.operationProperties=["target","text","lastModified"]}static create(t,e){return super.create(t,{target:e.target,text:e.text,lastModified:Date.now()})}}Af.register("editCommentV2");class Mf extends cf{static{this.operationName="editReplyText"}static{this.operationProperties=["target","replyIndex","text","lastModified"]}static create(t,e){return super.create(t,{target:e.target,replyIndex:e.replyIndex,text:e.text,lastModified:Date.now()})}}Mf.register("editReplyV2");class wf extends gc{constructor(t,e,r){super(t,e,r),this.userInfo={id:0}}getUserId(){return this.userInfo.id}getUserName(){return this.userInfo.name}getUserInfo(){return this.userInfo}setUserInfo(t){this.userInfo=t}createComment(t,e){return this.step(xf.create(this.getUserId(),{authorName:this.getUserName(),...t}),e)}removeComment(t,e){return this.commentStore.getBy(t,!0),this.step(pf.create(this.getUserId(),{target:t}),e)}clearComments(t){for(let e of this.commentStore.getAllCommentIds())this.removeComment(e,t);return this}setCommentResolved(t,e,r){let s=this.commentStore.getBy(t,!0);return(e?s.isResolved():s.isOpened())?this:this.step((e?bf:_f).create(this.getUserId(),{target:t,authorName:this.getUserName()}),r)}resolveComment(t,e){return this.setCommentResolved(t,!0,e)}reopenComment(t,e){return this.setCommentResolved(t,!1,e)}createReply(t,e,r){return this.commentStore.getBy(t,!0),this.step(gf.create(this.getUserId(),{target:t,authorName:this.getUserName(),text:e}),r)}removeReply(t,e,r){return this.commentStore.getBy(t,!0),this.step(ff.create(this.getUserId(),{target:t,replyIndex:e}),r)}editCommentText(t,e,r){return this.commentStore.getBy(t,!0),this.step(Af.create(this.getUserId(),{target:t,text:e}),r)}editReplyText(t,e,r,s){return this.commentStore.getBy(t,!0),this.step(Mf.create(this.getUserId(),{target:t,replyIndex:e,text:r}),s)}}let Sf=sn.createOptional({empty_value:Z,copyable:!0,settable:!1,normalizer:t=>{let e;return t?(Array.isArray(t)?e=t:"string"==typeof t&&(e=t.split(" ")),e&&e.length?e:null):null}}),Cf={trackingSelf:Sf},Pf={...Cf,trackingStart:Sf,trackingEnd:Sf.copy({backward:!0})},Tf={...Cf,trackingLeaf:Sf};function vf(t,e){return t.getAttrValue(e)||Z}let If=(t,e=!1)=>{if(t.is("Text"))throw Error("Unable to mixin Trackable to Text.");return class extends t{getFreezeList(){let t=super.getFreezeList();return t.push("trackingAttrs","trackingAttrsList","defaultTrackingAttrs"),t}static getSelfPropertyName(){return"Trackable"}get trackingAttrs(){let t,r=this.constructor;return r.is("Inline")||!r.is("EditableType")?Cf:e?Tf:Pf}get trackingAttrsList(){return Object.keys(this.trackingAttrs)}get defaultTrackingAttrs(){return sn.emptyAttrs(this.trackingAttrs)}get attrs(){return{...super.attrs,...this.trackingAttrs}}computeJsonConversionAttrs(t,e){let r=super.computeJsonConversionAttrs(t,e);if("clipboard"!==e.target)return r;if(!e.preserveTrackings&&this.trackingAttrsList.some((t=>r[t]))){let t={...r};for(let e of this.trackingAttrsList)t[e]&&(t[e]=void 0);r=t}return r}renderAttrsDom(t,e,r){if(super.renderAttrsDom(t,e,r),"clipboard"!==r.target){let r;this.isNonEditableType?r=vf(e,"trackingSelf"):this.is("EditableType")&&!this.is("Inline")&&(r=this.isLeaf?vf(e,"trackingLeaf"):this.isTextblock?vf(e,"trackingEnd"):be(vf(e,"trackingStart"),vf(e,"trackingEnd"))),r&&r.length&&(t["data-syno-comment"]=r.join(" "))}return t}renderAttrsJson(t,e,r){if(super.renderAttrsJson(t,e,r),"clipboard"!==r.target||r.preserveTrackings)for(let r of this.trackingAttrsList){let s=e.getAttrValue(r);s?.length&&(t[r]=s)}return t}}},kf=t=>{if(!t.is("Inline"))throw Error("Unable to mixin TrackableInline to non-inline.");return class extends t{static getSelfPropertyName(){return"TrackableInline"}computeJsonConversionMarks(t,e){let r=super.computeJsonConversionMarks(t,e);return r.length&&"clipboard"===e.target&&(e.preserveTrackings||(r=this.schema.markType("tracking").removeFromSet(r))),r}}};class Ef extends ka{static getSelfPropertyName(){return"Tracking"}get supportTextblock(){return!1}get supportListBlock(){return!1}get inclusiveBefore(){return!1}get copyable(){return!0}get clearable(){return!1}get settable(){return!1}get supportMerge(){return!0}get valueKey(){return"id"}get attrs(){return{id:sn.create({normalizer:t=>Array.isArray(t)?t:Z})}}merge(t,e){let r=t.getValue(),s=_e(r,e.getValue());return s.length===r.length?t:this.create({id:s})}split(t,e){let r=t.getValue(),s=Ae(r,e.getValue());return s.length===r.length?t:s.length?this.create({id:s}):null}intersect(t,e){let r=t.getValue(),s=be(r,e.getValue());return s.length===r.length?t:s.length?this.create({id:s}):null}get matchDOMTag(){return{"span[data-syno-comment]":(t,e)=>{let r=t.getAttribute("data-syno-comment");if(!r)return!1;let s=r.split(" ").filter((t=>t));return 0!==s.length&&{id:s}}}}toDOM(t,e){let r="clipboard"!==e.target||e.preserveTrackings?t.getValue():Z;return["span",{"data-syno-comment":r.length?r.join(" "):null}]}checkIds(t,e){if(t===e)return!0;if(!t||!e)return!1;if(!t.length&&!e.length)return!0;if(t.length!==e.length)return!1;let r=new Set;for(let e of t)r.add(e);for(let t of e)if(!r.has(t))return!1;return!0}get checker(){return{id:this.checkIds}}}function Nf(t,e){return t?e?t.length&&e.length?t.concat(e):e.length?e:t:t:e}function Lf(t,e){return e.is("Tracking")&&t.push(...e.getValue()),t}function jf(t){return t.marks.reduce(Lf,[])}function Rf(t){return t.getAttrValue("trackingLeaf")||Z}function Of(t){return t.is("Trackable")?t.getAttrValue("trackingSelf")||Z:null}function Df(t){return t.is("Inline")?jf(t):null}function Ff(t){if(t.is("Inline"))return jf(t);if(t.is("Trackable"))if(t.is("Leaf"))return Rf(t);else return t.getAttrValue("trackingStart")||Z;return null}function Bf(t){if(t.is("Inline"))return jf(t);if(t.is("Trackable"))if(t.is("Leaf"))return Rf(t);else return t.getAttrValue("trackingEnd")||Z;return null}function Vf(t){return Nf(Ff(t),Of(t))}function Hf(t){return Nf(Bf(t),t.is("Leaf")?Of(t):null)}let Gf={from:-1,to:-1};function zf(t,e){return Gf.from=t,Gf.to=e,Gf}function Uf(t,e){return t.is("Trackable")?zf(e,e+1):null}function qf(t,e){if(t.is("EditableType")){if(t.is("Inline"))return zf(e,e+t.nodeSize);else if(t.is("Trackable"))return zf(e,e+1)}return null}function $f(t,e){if(t.is("EditableType")){if(t.is("Inline"))return zf(e,e+t.nodeSize);else if(t.is("Trackable")){let r=e+t.nodeSize;return zf(r-1,r)}}return null}function Jf(t,e,r,s){return!t.is("Inline")||t.is("Leaf")||e>=r&&e+t.nodeSize<=s}function Wf(t,e,r,s,n=W){let a=(t,n,a,i,o)=>{let l=t(i,o);l&&s(i,o,n(i)||Z,Math.max(e,l.from),Math.min(r,l.to),a)},i=a.bind(null,Uf,Of,!0),o=a.bind(null,qf,Ff,!1),l=a.bind(null,$f,Bf,!1);t.nodesInside(e,r,((t,s,n,a,h)=>{h||i(t,s),Jf(t,s,e,r)&&(h?t.is("Inline")||l(t,s):o(t,s))}),{overrideRoot:!0,skipOutOfRange:!0,skipInlineContent:n.skipInlineContent,enableLeaving:!0})}let Zf=new WeakMap;function Yf(t){let e=Zf.get(t);return e||(e={},Zf.set(t,e)),e}function Xf(t){for(let e=2,r=t.length;e<r;e+=2)if(t[e-1]>t[e])return!0;return!1}function Kf(t,e=!1){let r=t.length;if(r%2!=0)throw Error(`Odd tracking ranges: ${t}`);for(let e=0;e<r;e+=2)if(t[e]>=t[e+1])throw Error(`Invalid tracking ranges: ${t}`);if(Xf(t)&&Xf(t=function(t){let e=[];for(let r=0,s=t.length;r<s;r+=2)e.push([t[r],t[r+1]]);return e.sort(((t,e)=>t[0]-e[0])).flat()}(t)))throw Error(`Invalid tracking ranges with overlaps: ${t}`);return t}function*Qf(t,e){let r=t.length+(t.length%2==0?0:-1);if(e?.reversed)for(let e=r/2-1,s=r-2;s>=0;--e,s-=2)yield{from:t[s],to:t[s+1],index:e};else for(let e=0,s=0;s<r;++e,s+=2)yield{from:t[s],to:t[s+1],index:e}}function tm(t,e,r){for(let{from:s,to:n,index:a}of Qf(t))if(e.call(r,s,n,a))return}function em(t,e,r){for(let{from:s,to:n,index:a}of Qf(t,{reversed:!0}))if(e.call(r,s,n,a))return}function rm(t,e){if(t===e)return!0;let r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;++s)if(t[s]!==e[s])return!1;return!0}function sm(t){return t instanceof Ho}function nm(t){let e=Yf(t);if(e.deleted)return e.deleted;{let r=[];return sm(t)&&t.forEach(((t,e)=>{0!==e&&r.push(t,t+e)})),e.deleted=r,r}}function am(t){let e=Yf(t);if(e.inserted)return e.inserted;{let r=[];return sm(t)&&t.forEach(((t,e,s,n)=>{0!==n&&r.push(s,s+n)})),e.inserted=r,r}}function im(t,e){if(!t.length||!e.length)return[];let r=[],s=t.length,n=e.length,a=0,i=0;for(;a<s&&i<n;){let s=t[a],n=t[a+1],o=e[i],l=e[i+1];s<l&&n>o&&r.push(Math.max(s,o),Math.min(n,l)),n<=l&&(a+=2),n>=l&&(i+=2)}return r}function om(t,e){if(!e.length)return t;if(!t.length)return e;let r=[],s=t.length,n=e.length,a=-1,i=-1,o=0,l=0;for(;o<s||l<n;){let h,u;l>=n||o<s&&t[o]<e[l]?(h=t[o],u=t[o+1],o+=2):(h=e[l],u=e[l+1],l+=2),a>=0?h<=i?i=Math.max(i,u):(r.push(a,i),a=h,i=u):(a=h,i=u)}return a>=0&&r.push(a,i),r}function lm(t,e){if(!t.length||!e.length)return t;let r=[],s=t.length,n=e.length,a=-1,i=-1,o=0,l=0;for(;;){if(a<0){if(o>=s)break;a=t[o],i=t[o+1],o+=2}for(;l<n&&!(e[l+1]>a);l+=2);if(l>=n)break;let h=e[l],u=e[l+1];h<i?(h>a&&r.push(a,h),a=u<i?u:i=-1):(r.push(a,i),a=i=-1)}for(a>=0&&r.push(a,i);o<s;o+=2)r.push(t[o],t[o+1]);return r}function hm(t,e,r){if(!t.length||!r.isMappable())return t;let s=[];for(let n=0,a=t.length;n<a;n+=2)if(e){let{pos:e,deleted:a}=r.mapNodeResult(t[n],1);a||s.push(e,e+1)}else{let e=r.map(t[n],1),a=r.map(t[n+1],-1);if(e<a){let t=s.length;t&&s[t-1]>=e?s[t-1]=a:s.push(e,a)}}return e&&s.sort(((t,e)=>t-e)),s}class um extends uf{constructor(t,e,r,s){super(t),this.ids=e,this.ranges=r,this.sticky=s}collectSelfTrackingRange(t,e,r,s){let n=e.nodeAt(r);return n&&n.is("Trackable")&&t.push(r,r+1),t}collectRangedTrackingRange(t,e,r,s){let n=[];return e.nodesInside(r,s,((t,e,a,i,o)=>{let l;if(!t.is("EditableType")||!Jf(t,e,r,s)||!(l=o?$f(t,e):qf(t,e)))return;let h=Math.max(r,l.from),u=Math.min(s,l.to),c=n.length,p=c?n[c-1]:-1;h<=p?n[c-1]=Math.max(p,u):n.push(h,u)}),{overrideRoot:!0,skipOutOfRange:!0,skipInlineContent:!0,enableLeaving:!0}),om(t,n)}collectTrackingRanges(t){let e=this.sticky?this.collectSelfTrackingRange:this.collectRangedTrackingRange,r=[];return tm(this.ranges,((s,n)=>{r=e.call(this,r,t,s,n)})),r}doApply(t,e){let r=this.ids.filter((t=>e.getCommentById(t)));return r.length&&tm(this.ranges,((s,n)=>{t=this.applyTrackingRange(t,e,s,n,r)})),_l.ok(t,e)}createTrackingMark(t,e,r){return t.type.schema.mark("tracking",{id:r})}modifyCommentIds(t,e){return null}fillTrackingAttrs(t,e,r,s){let n=this.modifyCommentIds(e.getAttrValue(r)||Z,s);if(n)return Object.assign(t||Object.create(null),{[r]:n})}applySelfTrackingRange(t,e,r,s,n){let a=t.nodeAt(r);if(!a||!a.is("Trackable"))return t;let i=this.fillTrackingAttrs(void 0,a,"trackingSelf",n);return i?t.replace(r,r+a.nodeSize,vn.from(a.copyWithAttrs(i))):t}applyRangedTrackingRange(t,e,r,s,n){let a=this.createTrackingMark(t,e,n),i=t.slice(r,s).mapDescendants(((t,e,i,o)=>{if(!t.is("EditableType"))return t;if(t.is("Inline")){if(Jf(t,e,r,s)){let e=o?.contentMatchAt(i+1);if(e&&e.allowsMark(a.type))return t.mark(a["add"===this.constructor.rangeType?"addToSet":"removeFromSet"](t.marks))}}else if(t.is("Trackable")){let a;if(t.type.isLeaf?a=this.fillTrackingAttrs(a,t,"trackingLeaf",n):(e>=r&&(a=this.fillTrackingAttrs(a,t,"trackingStart",n)),e+t.nodeSize<=s&&(a=this.fillTrackingAttrs(a,t,"trackingEnd",n))),a)return t.copyWithAttrs(a)}return t}),{start:r,skipInlineContent:!0});return t.replace(r,s,i)}applyTrackingRange(t,e,r,s,n){return this.sticky?this.applySelfTrackingRange(t,e,r,s,n):this.applyRangedTrackingRange(t,e,r,s,n)}invert(t,e){return("add"===this.constructor.rangeType?pm:cm).create(this.operator,this.ids,this.ranges,this.sticky)}map(t){let e=hm(this.ranges,this.sticky,t);return e.length?new this.constructor(this.operator,this.ids,e,this.sticky):null}static fromJSON(t,e){return new this(e.operator,e.ids,e.ranges,e.sticky)}static create(...t){return super.create(...t)}}class cm extends um{static{this.rangeType="add"}modifyCommentIds(t,e){let r=_e(t,e);return r.length===t.length?null:r}}cc.jsonID("addCommentTracking",cm);class pm extends um{static{this.rangeType="remove"}modifyCommentIds(t,e){let r=Ae(t,e);return r.length===t.length?null:r}}function dm(t,e){return e===t.operator}function ym(t){switch(t.stepType){case xf.stepType:case pf.stepType:case bf.stepType:case _f.stepType:case gf.stepType:case ff.stepType:case Af.stepType:case Mf.stepType:case cm.stepType:case pm.stepType:return!0;default:return!1}}function xm(t,e){return ym(t)&&dm(t,e)}function gm(t){switch(t.stepType){case xf.stepType:case bf.stepType:case _f.stepType:case gf.stepType:case cm.stepType:return!0;default:return!1}}function fm(t,e){return gm(t)&&dm(t,e)}cc.jsonID("removeCommentTracking",pm),class extends cc{static fromJSON(t,e){return cm.create(0,[e.id],e.ranges,e.applyOnNode)}}.register("createCommentRange"),class extends cc{static fromJSON(t,e){return pm.create(0,[e.id],e.ranges,e.applyOnNode)}}.register("removeCommentRange");class mm extends Il{}class bm extends kl{constructor(t){super(t),this.ranges=t.ranges||Z,this.sticky=t.sticky??!1,this.suggestionInfo=void 0}getSuggestionInfo(){let t;if(void 0!==this.suggestionInfo)return this.suggestionInfo;if(this.isSuggestion())try{t=JSON.parse(this.text)}catch{t=null}else t=null;return this.suggestionInfo=t}getSuggestionOp(){let t=this.getSuggestionInfo();return t?t.op||"":null}getSuggestionStepId(){let t=this.getSuggestionInfo();return t?t.step||"":null}isInsertion(){return this.isSuggestion()&&"insertion"===this.getSuggestionOp()}isDeletion(){return this.isSuggestion()&&"deletion"===this.getSuggestionOp()}isSelfDiscussion(t){return this.isAuthor(t)&&this.isDiscussion()}isSelfSuggestion(t){return this.isAuthor(t)&&this.isSuggestion()}isSelfInsertion(t){return this.isAuthor(t)&&this.isInsertion()}isSelfDeletion(t){return this.isAuthor(t)&&this.isDeletion()}hasRanges(){return!!this.ranges.length}hasSingleRanges(){return this.hasRanges()&&this.ranges.length<=2}hasMultiRanges(){return this.hasRanges()&&this.ranges.length>2}isVisible(){return this.isOpened()&&this.hasRanges()}forEachRange(t,e){tm(this.ranges,t,e)}handleRanges(t,e,r=!1){let s=this.ranges,n=(r?om:lm)(s,t),a=s.length?this.sticky:e,i=e===a&&e;return a===i&&rm(s,n)?this:this.copy({ranges:n,sticky:i})}addRanges(t,e){return this.handleRanges(t,e,!0)}removeRanges(t,e){return this.handleRanges(t,e,!1)}mapRanges(t,e){let r=this.ranges;return!r.length||!t.isMappable()||rm(r=lm(r=hm(r,this.sticky,t),e),this.ranges)?this:this.copy({ranges:r})}toObject(){return Object.assign(super.toObject(),{ranges:this.ranges,sticky:this.sticky})}static createReply(t){return mm.fromJSON(t)}}let _m={ids:[],whole:!1};class Am extends Nl{constructor(t,e){if(!e)throw Error("doc is not initialized.");super(t),this.doc=e}init(){let t=Am.buildTrackingRangesMap([{fragment:this.doc}]);return this.updateCommentsMapped(((e,r)=>{let s=t.get(r);return s?e.copy(s):e.copy()}))}assertValid(){}hasVisibleSuggestion(){let t=!1;return this.forEach((e=>{if(e.isVisible()&&e.isSuggestion())return t=!0,!0})),t}commentIdsBetween(t,e,r,s){return Wf(this.doc,t,e,((t,e,s,n,a,i)=>{s.length&&r(s,i)}),s)}commentsBetween(t,e,r,s){return this.commentIdsBetween(t,e,(t=>{let e=this.idsToComments(t);e.length&&r(e)}),s)}static buildTrackingRangesMap(t){let e=new Map;for(let{fragment:r,from:s,to:n,start:a=0}of t)Wf(r,s??0,n??r.getContentSize(),((t,r,s,n,i,o)=>{for(let t of s)!function(t,r,s,n){let a=e.get(t);if(a){!n&&a.sticky&&(a.sticky=!1);let t=a.ranges,e=t.length,i=e?t[e-1]:-1;r<=i?t[e-1]=Math.max(i,s):t.push(r,s)}else e.set(t,{ranges:[r,s],sticky:n})}(t,n+a,i+a,o)}));return e}_findCommentIdsAt(t,e){let r,s,n=t.parent,a=t.index();return n.is("Textblock")&&!t.atNodeBoundary?(r=Df(n.child(a)),s=!0):(r=e>0?a===n.childCount?Hf(n):Vf(n.child(a)):0===a?Vf(n):Hf(n.child(a-1)),s=!1),_m.ids=r||Z,_m.whole=s,_m}findCommentIdsAt(t,e){return this._findCommentIdsAt(t,e).ids}findCommentIdsUnion(t){let{ids:e,whole:r}=this._findCommentIdsAt(t,-1);return r?e:_e(e,this._findCommentIdsAt(t,1).ids)}getCommentsAt(t,e){let r=this.doc.resolve(t);return this.idsToComments(0===e?this.findCommentIdsUnion(r):this.findCommentIdsAt(r,e))}getAt(t,e){return this.getCommentsAt(t,e)}getCommentsInsideRanges(t){let e=new Set;return tm(t,((t,r)=>{this.commentIdsBetween(t,r,(t=>{t.forEach(e.add,e)}))})),this.idsToComments(e)}getInsideRanges(t){return this.getCommentsInsideRanges(t)}getCommentsInside(t,e){return this.getCommentsInsideRanges([t,e])}getInside(t,e){return this.getCommentsInside(t,e)}getCommentsBetweenRanges(t){let e=new Set;return tm(t,((t,r)=>{this.commentIdsBetween(t,r,(t=>{t.forEach(e.add,e)}),{skipInlineContent:!0})})),this.idsToComments(e)}getBetweenRanges(t){return this.getCommentsBetweenRanges(t)}getCommentsBetween(t,e){return this.getCommentsBetweenRanges([t,e])}getBetween(t,e){return this.getCommentsBetween(t,e)}getCommentsFittingRanges(t){let e=[];return tm(t,((t,r)=>{e.push(this.getCommentsAt(t,1),this.getCommentsAt(r,-1))})),be(...e)}getFittingRanges(t,e){return this.getCommentsFittingRanges(t)}getCommentsFitting(t,e=t){return this.getCommentsFittingRanges([t,e])}getFitting(t,e){return this.getCommentsFitting(t,e)}getCommentsAcrossRanges(t){let e=[];return tm(t,((t,r)=>{e.push(this.getCommentsAt(t,-1),this.getCommentsAt(r,1))})),be(...e)}getAcrossRanges(t){return this.getCommentsAcrossRanges(t)}getCommentsAcross(t,e){return this.getCommentsAcrossRanges([t,e])}getAcross(t,e){return this.getCommentsAcross(t,e)}updateDoc(t){let e=this.copy();return e.doc=t,e}updateComments(t){let e=this.copy();return e.comments=t,e}updateCommentsMapped(t,e){return this.updateComments(wt(this.comments,t,e))}mapPos(t){if(!t.isMappable())return this;let e=am(t),r=[];return tm(e,((t,e)=>{let s=this.doc.resolveCommon(t,e);if(!s)return;let n=new Set;s.forEach(((t,e)=>{let r=Df(e);r&&r.forEach(n.add,n)})),r.push(n)})),this.updateCommentsMapped((s=>{let n,a=r.map((t=>t.has(s.id)));return n=a.some((t=>t))?a.reduce(((t,r,s)=>(r||t.push(e[2*s],e[2*s+1]),t)),[]):e,s.mapRanges(t,n)}))}mapCommentRanges(t,e,r,s=!1){if(!t.length||!e.length)return this;let n=s?"addRanges":"removeRanges",a=t.reduce(((t,s)=>{let a=this.getBy(s);return a&&t.push(a[n](e,r)),t}),[]),i=this.copy();return a.forEach((t=>{i.comments[t.id]=t})),i}mapCommentTrackingStep(t){return this.mapCommentRanges(t.ids,t.collectTrackingRanges(this.doc),t.sticky,"addCommentTracking"===t.jsonID)}mapStep(t){switch(t.jsonID){case"addCommentTracking":case"removeCommentTracking":return this.mapCommentTrackingStep(t);default:return this}}mapChange(t,e,r){return this.updateDoc(t).mapStep(e).mapPos(r||Ho.empty)}mapTransform(t){let e=this;return t.forEach(((r,s,n,a)=>{e=e.mapChange(t.docs[a+1]||t.doc,r,s)})),e}idsToComments(t){let e=[];return t.forEach((t=>{let r=this.getBy(t);r&&e.push(r)})),e}static createComment(t){return bm.fromJSON(t)}static createComments(t){return super.createComments(t)}static init(t){return t.init()}static fromJSON(t,e){return this.init(new this(this.createComments(t||[]),e))}static fromCommentStore(t,e){return this.fromJSON(t.toJSON(),e)}static from(t,e){return!e||Array.isArray(e)?this.fromJSON(e,t):e instanceof this&&e.doc===t?e:this.fromCommentStore(e,t)}}class Mm extends wf{constructor(t,e,r){super(t,e,r),this._lastActiveStepIndex=-1,this.duringStep=!1,this.tracking=!1}get lastActiveStepIndex(){return this._lastActiveStepIndex}get lastActiveStep(){return this.steps[this.lastActiveStepIndex]}get lastActivePosMap(){return this.posMaps[this.lastActiveStepIndex]}get lastActiveCustomMap(){return this.customMaps[this.lastActiveStepIndex]||void 0}saveActiveStepIndex(){this._lastActiveStepIndex=this.length-1}clearActiveStepIndex(){this._lastActiveStepIndex=-1}isTracking(){return this.tracking}setTracking(t){this.tracking=!!t}isDuringStep(){return this.duringStep}setDuringStep(t){this.duringStep=t}execIfTracking(t){this.isTracking()&&(this.setTracking(!1),t(),this.setTracking(!0))}maybeStep(t,e){let r,s=!this.isDuringStep();s&&this.setDuringStep(!0);let n=t.prepare();t=n.step,this.execIfTracking((()=>{r=this.handleStepPreparation(n,e),this.removeDeletedCommentTracking(t.posMap(this.doc))}));let a=this.addStep(t);return a.succ&&(s&&!e?.passive&&this.saveActiveStepIndex(),this.execIfTracking((()=>{this.addInsertedCommentTracking(this.lastPosMap),r?.insertionTrackings&&this.applyTrackingItems(r.insertionTrackings)}))),s&&this.setDuringStep(!1),a}saveStepResult(t,e){let r=!(e.commentStore instanceof Am);r&&(e.commentStore=this.commentStore.constructor.from(e.doc,e.commentStore)),super.saveStepResult(t,e),r||(this.commentStore=e.commentStore=this.commentStore.mapChange(this.doc,t,this.lastPosMap))}cherryPick(...t){let e=this.isTracking();e&&this.setTracking(!1);let r=super.cherryPick(...t);return e&&this.setTracking(!0),r}removeDeletedCommentTracking(t){let e=nm(t);if(!e.length)return;let r=this.commentStore.getCommentsInsideRanges(e).map((t=>({id:t.id,ranges:im(t.ranges,e)})));this.mergeRemoveCommentTracking(r)}addInsertedCommentTracking(t){let e=am(t);if(!e.length)return;let r=[];tm(e,((t,e)=>{r.push({ids:this.commentStore.getCommentsAcross(t,e).map((({id:t})=>t)),range:[t,e]})}));for(let t=r.length-1;t>=0;--t){let{ids:e,range:s}=r[t];this.addCommentTracking(e,s)}}handleStepPreparation(t,e){return{insertionTrackings:this.collectTrackingItems(t,e)}}collectTrackingItems(t,e){if(e?.ignoreInsertionTrackings)return[];let r=t.replacements;if(!r?.length)return[];let s=Am.buildTrackingRangesMap(r.map((({pos:t,insertionSlice:e})=>{let r=vn.from(e);return{fragment:r.content,from:r.openLeft,to:r.openLeft+r.size,start:t-r.openLeft}}))),n=[];for(let[t,{ranges:e,sticky:r}]of s)n.push({id:t,ranges:e,sticky:r});return n}applyTrackingItems(t){for(let{id:e,ranges:r}of t.filter((({id:t})=>{let e=this.commentStore.getBy(t);return e&&!e.hasRanges()})))this.addCommentTracking(e,r);return this}createCommentWithRange(t,e,r,s){let n;if(!e.length)throw new xc(`Empty ranges when creating comment from ${t}.`);if(e=Kf(e),r)for(let{from:t,to:r}of Qf(e)){if(r!==t+1)throw new xc(`Invalid self tracking ranges: ${e}`);let s=this.doc.resolve(t).self;if(!s||!s.is("Trackable"))throw new xc((s?`Invalid node \`${s.type.name}\``:"Empty node")+` at position ${t}`)}return t.id?n=t.id:(n=df(),t={...t,id:n}),this.createComment(t,s),this.commentStore.getBy(n,!0),this.doAddCommentTracking([n],e,r,s)}removeComment(t,e){return this.clearCommentTracking(t,e),super.removeComment(t,e)}resolveDiscussionsWith(t,e){let r=[];for(let s of(this.commentStore.forEach(((e,s)=>{e.isDiscussion()&&e.isOpened()&&(!t||t(e))&&r.push(s)})),r))this.resolveComment(s,e);return this}resolveAllDiscussions(t){return this.resolveDiscussionsWith(void 0,t)}doAddCommentTracking(t,e,r=!1,s){return t.length&&e.length?this.step(cm.create(this.getUserId(),t,e,r),s):this}doRemoveCommentTracking(t,e,r=!1,s){return t.length&&e.length?this.step(pm.create(this.getUserId(),t,e,r),s):this}clearCommentTracking(t,e){return"string"==typeof t&&(t=[t]),t.forEach((t=>{let r=this.commentStore.getBy(t,!0);this.doRemoveCommentTracking([r.id],r.ranges,r.sticky,e)})),this}handleCommentTracking(t,e,r,s){"string"==typeof t&&(t=[t]);let n=[],a=[];t.forEach((t=>{this.commentStore.getBy(t,!0).sticky?n.push(t):a.push(t)}));let i=r?"doAddCommentTracking":"doRemoveCommentTracking";return this[i](n,e,!0,s),this[i](a,e,!1,s),this}addCommentTracking(t,e,r){return this.handleCommentTracking(t,e,!0,r)}removeCommentTracking(t,e,r){return this.handleCommentTracking(t,e,!1,r)}mergeRemoveCommentTracking(t,e){if(t.length>=2&&t.every((({ranges:e})=>rm(e,t[0].ranges))))this.removeCommentTracking(t.map((({id:t})=>t)),t[0].ranges,e);else for(let r=t.length-1;r>=0;--r){let{id:s,ranges:n}=t[r];this.removeCommentTracking([s],n,e)}return this}}class wm extends oo{transformSpec(t){return{...t=super.transformSpec(t),nodes:wt(t.nodes,(t=>{let e=t.type;return!e.is("Trackable")&&!e.is("Text")&&e.is("EditableType")&&(t={...t,type:If(t.type,!t.content)}),!e.is("TrackableInline")&&e.is("Inline")&&(t={...t,type:kf(t.type)}),t})),marks:[...t.marks,["tracking",Ef]]}}}class Sm extends cc{constructor(t,e){super(),this.version=t}isVersionMatched(t){let e=this.version;return"number"==typeof e&&e===t.type.schema.getVersion()}shouldBatchReplacement(t,e){return e.length>=5}performReplacement(t,e,r){if(this.shouldBatchReplacement(t,e)){for(let s=e.length-1;s>=0;--s){let n=r(t,e[s],s);n&&(t=t.replaceSimple(n.from,n.to,n.slice))}t=t.updateStateAndTrim()}else for(let s=e.length-1;s>=0;--s){let n=r(t,e[s],s);n&&(t=t.replace(n.from,n.to,n.slice))}return t}doApply(t,e){return this.isVersionMatched(t)?this.applyMigration(t,e):t}applyMigration(t,e){return t}posMap(t){return this.isVersionMatched(t)&&this.getMigrationPosMap(t)||Ho.empty}getMigrationPosMap(t){return Ho.empty}invert(){return null}map(t){return this}toJSON(t){return{stepType:this.jsonID,version:this.version}}static fromJSON(t,e){return new this(e.version,e.migration_options)}}class Cm extends Sm{migrateMarks(t,e){return null}migrateJsonMarks(t,e){return null}migrateAndCheckMarks(t,e,r){let s=r?this.migrateJsonMarks(t,e):this.migrateMarks(t,e);return s&&s!==t?s:null}collectActions(t){let e=[];return t.descendants(((t,r)=>{if(t.type.isListContainer){let s=t.getAttrValue("listMap",!0);if(s){let n;rt(s,((e,r)=>{let a,i=e&&e.configs;i&&(i.forEach(((e,r)=>{let s=this.migrateAndCheckMarks(e&&e.marks||yn.none,t,!0);s&&(a||(a=i.slice()),a[r]=Object.assign(Object.create(null),e,{marks:s}))})),a&&(n||(n={...s}),n[r]=Object.assign(Object.create(null),e,{configs:a})))})),n&&e.push({pos:r,attrs:{listMap:n}})}}else if(t.type.isMarksBlock){let s=null,n=this.migrateAndCheckMarks(t.textMarksRawJSON,t,!0);if(n&&(s={textMarks:n}),t.type.isListBlock){let e=this.migrateAndCheckMarks(t.listMarksRawJSON,t,!0);e&&(s=Object.assign(s||Object.create(null),{listMarks:e}))}s&&e.push({pos:r,attrs:s})}else if(t.type.isInline){let s=this.migrateAndCheckMarks(t.marksRaw,t,!1);s&&e.push({pos:r,marks:s})}})),e}applyMigration(t){return this.performReplacement(t,this.collectActions(t),((t,e)=>{let r,{pos:s,attrs:n,marks:a}=e,i=t.resolve(s).self;return i&&(r=i.type.isInline?a?i.mark(a):void 0:n?i.copyWithAttrs(n):void 0)?{from:s,to:s+i.nodeSize,slice:vn.from(r)}:null}))}}class Pm extends Sm{applyMigration(t){let e=this.version;return"number"!=typeof e?t:t.duplicateWithAttrs({schema:e+1})}}function Tm(t){let e=sn.createMarksNormalizer((e=>{let r=t[e._];if(!r)return e;let s=r(e);return s&&s._===e._?s:{...s,_:e._}})),r=ng(e);return{mixinMark:e=>class extends e{create(e){let r=t[this.name];return super.create(r?r(e):e)}},mixinMarksBlock:t=>class extends t{get attrs(){let t={...super.attrs},r=t.textMarks;if(r){let s=r.normalizer??Y;t.textMarks=r.copy({normalizer:t=>e(s(t))})}let s=t.listMarks;if(s){let r=s.normalizer??Y;t.listMarks=s.copy({normalizer:t=>e(r(t))})}return t}},mixinListContainer:t=>class extends t{get attrs(){let t={...super.attrs},e=t.listMap;if(e){let s=e.normalizer??Y;t.listMap=e.copy({normalizer:t=>r(s(t))})}return t}}}}function vm(t,e,r=0){let s=e.length;for(;!e[r];){if(r>=s)return e;++r}if(!e[r].schema){let n;for(n=r;n<s&&!e[n].schema;++n);for(n<s&&(t=e[n].schema),--n;n>=r;--n)({schema:t}=function(t,e){let{_schema:r,diff:s}=e;return r?(r.prototype instanceof oo||(r=r(t.constructor)),t=new r(r.mergeSpec(t.rawSpec,s))):s&&(t=t.copy(s)),e.schema=t,e.spec=t.spec,e}(t,e[n]))}return e}Pm.register("migrateSchema");class Im extends Error{constructor(t,e,r,s){super(e,r,s),this.status=t}static{this.ERR_SCHEMA_INVALID=0}static{this.ERR_MIGRATION_FAILED=1}}class km{constructor(t,e){this.schema=t,Object.assign(this,e)}isMigrated(){return this.migrated}getDoc(){return this.doc||(this.doc=this.schema.nodeFromJSON(this.json_doc),this.doc.updateState()),this.doc}getJsonDoc(){return this.json_doc||(this.json_doc=this.doc.toJSON())}getCommentStore(){return this.comments||(this.comments=Nl.fromJSON(this.json_comments))}getJsonCommentStore(){return this.json_comments||(this.json_comments=this.comments.toJSON())}getRemapping(){return this.remapping||(this.remapping=new gl)}getJsonSteps(){return this.json_steps||(this.json_steps=[])}getJsonMigrationSteps(){return this.json_migration_steps||(this.json_migration_steps=[])}}class Em{constructor(t,e){if(t.getVersion()!==e.length)throw Error(`The legacy schema configs does not match the schema version: ${e.length}, ${t.getVersion()}`);this.schema=t,this.legacySchemas=this.createContexts(e)}createContexts(t){let e=t.findIndex((t=>!!t));e<0&&(e=t.length);let r=Array.from({length:e},(()=>({})));for(let s=e;s<t.length;++s)r.push(this.createContext(t[s],s));return r}createContext(t,e){return t||(t={}),this.fillMigrateSchemaStep(t,e),t}fillMigrateSchemaStep(t,e){(t.diff||(t.diff={})).version=e;let r=t.steps||(t.steps=[]);r.push({stepType:Pm.prototype.jsonID}),r.forEach((t=>{t.version=e}))}buildContext(t){return vm(this.schema,this.legacySchemas,t)[t]}getCurrentSchema(){return this.schema}fetch(t){if(t<0)throw RangeError(`Given schema version is invalid: ${t}`);let{schema:e,legacySchemas:r}=this;return t>=r.length?e:this.buildContext(t).schema}migrate(t,e,r){var s;return s=this.schema,new km(s,function(t,e,r,s,n=W){let a,i;t=jd(t,n).doc,e=e||[];let o=r.version,l=t.attrs&&t.attrs.schema||o;if(l>o)throw new Im(Im.ERR_SCHEMA_INVALID,`Json version (${l}) is newer than schema version (${o}).`);vm(r,s,l);let{apply_steps:h}=n,u=[],c=[],p=Nl.fromJSON(e),d=p;function y(t,e){if(!t.length)return t;({doc:i,comment_store:p}=t);let r=t.steps.map((t=>t.toJSON()));u.push(...r),e&&c.push(...r);let s=t.toRemapping();return a?a.appendMapping(s):a=s,t}if(l!==o||h)for(let e=l;e<=o&&(e!==o||h);++e){let a=e===o?{schema:r}:s[e];if(!a)break;let{schema:l,steps:u}=a;try{i?i.type.schema!==l&&(i=l.nodeFromJSON(i.toJSON())).updateState():(i=l.nodeFromJSON(t)).updateState()}catch(t){throw uo().error(t),new Im(Im.ERR_MIGRATION_FAILED,`Migration failed when loading doc in schema ${e}.`)}if(h){try{y(h(i,p))}catch(t){i.updateState(),uo().error("Failed to apply pending steps.",t)}h=null;let r=i.getAttrValue("schema");if(r!==e){e=r-1;continue}}if(u&&u.length)try{let t=new gc(i,p);u.map((t=>cc.fromJSON(r,Object.assign(Object.create(null),t,{migration_options:n})))).forEach(t.step,t),y(t,!0)}catch(t){throw uo().error(t),new Im(Im.ERR_MIGRATION_FAILED,`Migration failed when applying steps in schema ${e}.`)}}return i&&(i.type.schema===r?t=null:(t=i.toJSON(),i=null)),p!==d&&(e=null),{migrated:l!==o,doc:i,comments:p,remapping:a,json_doc:t,json_comments:e,json_steps:u,json_migration_steps:c}}(t,e,s,this.legacySchemas,r))}}class Nm extends Sm{collectActions(t){let e=[];return t.descendants(((t,r)=>{this.shouldStartWithBasicBlock(t)&&(t.firstChild?.type.group?.includes("basic_block")||e.push(r+1))})),e}applyMigration(t){let e=t.type.schema.nodeType("paragraph");return this.performReplacement(t,this.collectActions(t),((t,r)=>({from:r,to:r,slice:vn.from(e.createAndFill())})))}getMigrationPosMap(t){let e=[],r=this.collectActions(t);for(let t=0,s=r.length;t<s;++t){let s=r[t];e.push(s,0,2)}return Ho.create(e)}}let Lm=t=>{if(!t.prototype.isMarksBlock)throw Error("Unable to mixin MarksBlock.");return class extends t{get attrs(){let t=super.attrs;return sn.mergeTypeAttrs(t,{textMark:t.textMarks})}}};class jm extends Sm{applyMigration(t,e){let r=[];t.descendants(((t,e)=>{if(!t.type.isMarksBlock||t.getAttrValue("textMarks",!0))return;let s=t.getAttrValue("textMark",!0);s&&s.length&&r.push({pos:e,attrs:{textMark:null,textMarks:s}})}));for(let e=r.length-1;e>=0;--e){let{pos:s,attrs:n}=r[e],a=t.resolve(s).self;a&&(t=t.replaceSimple(s,s+a.nodeSize,vn.from(a.copyWithAttrs(n))))}return t.updateState(),t}}cc.jsonID("renameTextMarks",jm);let Rm=t=>t&&parseFloat(t)||null,Om=t=>{if("number"==typeof t)return t||0;let e=Rs(t,"px",1);return isNaN(e)?null:e},Dm={normalizer:Om},Fm={lineHeight:{empty_value:5566,normalizer:Rm},paddingTop:Dm,paddingBottom:Dm},Bm={textIndent:sn.create({optional:!0,clearable:!0,normalizer:t=>!!t||null}),paddingLeft:sn.create({optional:!0,empty_value:0,clearable:!0,normalizer:Dm.normalizer})},Vm=t=>{if(!t.prototype.isParagraph)throw Error("Unable to mixin Paragraph.");return class extends t{get attrs(){return sn.mergeTypeAttrs(super.attrs,Bm,Fm)}get cssAttrs(){return sn.mergeTypeAttrs(super.cssAttrs,Fm)}}};class Hm extends Sm{collectActions(t){let e=t.type.schema.markType("font_size"),r=[];return t.descendants(((t,s)=>{let n,a;if(!t.is("BasicParagraph"))return;t.type._getInheritedCssAttrs(t)||null!=t.getAttrValue("lineHeight",!0)||(n=Object.assign(Object.create(null),n,{lineHeight:1.5}));let{paddingLeft:i,textIndent:o}=t.attrs;(i||o)&&(n=Object.assign(Object.create(null),n,{paddingLeft:null,textIndent:null,indentLeft:t.getAttrValue("indentLeft")+(i||0),indentFirst:t.getAttrValue("indentFirst")+(i||0)+30*!!o})),t.childCount&&(a=e.findFromSet(t.textMarks)||void 0),(n||a)&&r.push({node:t,pos:s,attrs:n,mark:a})})),r}applyMigration(t,e){let r=t.type.schema.markType("font_size"),s=this.collectActions(t);for(let e=s.length-1;e>=0;--e){let n,{pos:a,attrs:i,mark:o}=s[e],l=t.resolve(a).self;if(l){if(o&&(l.forEach(((t,e,s)=>{let a=t.marks;r.findFromSet(a)?n&&(n[s]=t):(n||(n=l.content.content.slice(0,s)),n[s]=t.mark(o.addToSet(a)))})),!n&&!i))continue;t=t.replaceSimple(a,a+l.nodeSize,vn.from(l.copy(n?Tn.from(n):l.content,i)))}}return t.updateState(),t}}cc.jsonID("refineTextblock",Hm);class Gm extends Sm{collectActions(t){let e=[],r=(t,s)=>{if(!t.type.isTable)return;let n=!1;if(t.forEach((t=>{if(!t.childCount)return n=!0,!0}),this,!0),n){let n=1;return t.forEach((t=>{n=Math.max(n,t.childCount)})),e.push({pos:s,max:n}),t.forEach(((t,a)=>{let i=s+1+a+1;t.descendants(r,{start:i});let o=n-t.childCount;o&&e.push({pos:i+t.getContentSize(),count:o})})),!1}};return t.descendants(r),e}applyMigration(t,e){let r=t.type.schema.nodeType("table_cell");return this.performReplacement(t,this.collectActions(t),((t,e)=>{let{pos:s,count:n,max:a}=e;if(n)return{from:s,to:s,slice:vn.from(Array.from({length:n},(()=>r.createFilled())))};if(a){let e=t.resolve(s).self;if(!e)return null;let r=e.getAttrValue("colgroup");return r.length>=a?null:{from:s,to:s+e.nodeSize,slice:vn.from(e.copyWithAttrs({colgroup:r.concat(Array(a-r.length).fill({width:Ud}))}))}}return null}))}getMigrationPosMap(t){let e=[],r=this.collectActions(t);for(let t=0,s=r.length;t<s;++t){let{pos:s,count:n}=r[t];n&&e.push(s,0,4*n)}return Ho.create(e)}}cc.jsonID("fillEmptyTableRow",Gm);class zm extends ma{get isLegacyDummyContainer(){return!0}}function Um(t,e,r){let s=function t(e){for(let r=e.childCount-1;r>=0;--r){let s=e.child(r);s.type.isLegacyDummyContainer&&(e=e.splice(r,1,t(s.content)))}return e}(t.content),n=0;if(r.canReplace(e,e+1,s)||(s=s.prepend(t.type.schema.nodeType("paragraph").createAndFill()),n=2,r.canReplace(e,e+1,s)))return{content:s,fill:n};throw new ta("Flattened fragment is invalid.")}function qm(t,e,r){let s=t.length-3;s>=0&&t[s]+t[s+1]===e?r>0?t[s+2]+=r:t[s+1]+=-r:(t.push(e),r>0?t.push(0,r):t.push(-r,0))}class $m extends Sm{collectActions(t){let e=[];return t.descendants(((t,r,s,n)=>{t.type.isLegacyDummyContainer&&(n.type.isLegacyDummyContainer||e.push({node:t,pos:r,index:s,parent:n}))})),e}applyMigration(t,e){return this.performReplacement(t,this.collectActions(t),((t,e)=>{let{pos:r}=e,s=t.resolve(r),n=s.self;return n?{from:r,to:r+n.nodeSize,slice:vn.from(Um(n,s.index(),s.parent).content)}:null}))}getMigrationPosMap(t){let e=this.collectActions(t).map((t=>({...t,fill:Um(t.node,t.index,t.parent).fill}))),r=0,s=e[0],n=[];return t.descendants(((t,a,i,o,l)=>{t.type.isLegacyDummyContainer&&(l?a+=1+t.content.size:s&&s.pos===a&&(qm(n,a,s.fill),s=e[++r]),qm(n,a,-1))}),{enableLeaving:!0}),Ho.create(n)}}cc.jsonID("flattenNode",$m);class Jm extends zm{get isLegacyList(){return!0}get isLegacyListType(){return!0}}class Wm extends Jm{get isLegacyOrderedList(){return!0}get attrs(){return{order:sn.create({optional:!0,empty_value:1,normalizer:t=>isNaN(t=parseInt(t,10))||1===t?null:t})}}}class Zm extends Jm{get isLegacyBulletList(){return!0}}class Ym extends zm{get isLegacyListItem(){return!0}get isLegacyListType(){return!0}}class Xm extends qx{getNodeType(t){return t.type.isLegacyList?"list":t.type.is("EditableType")&&!(t.type.isLegacyListType||t.type.isInline||t.type.isTextblock)?"wrapper":t.is("ContentEditable")?"container":null}createOrderedListConfig(t,e){let r="decimal",s={format:r,text:_x(r,e)},n=t&&t.getAttrValue("order",!0);return null!=n&&(s.start=n),s}createBulletListConfig(t,e){let r=`bullet_${0===e?"●":1===e?"○":"■"}`;return{format:r,text:_x(r,e)}}createListConfig(t,e){return"ol"===this.getListType(t)?this.createOrderedListConfig(t,e):this.createBulletListConfig(t,e)}getListType(t){return t.type.isLegacyOrderedList?"ol":"ul"}}class Km extends Sm{createListParser(){return new Xm}applyMigration(t,e){let r=[],s=this.createListParser();return t.descendants(((t,e,n,a,i)=>{if(i)return void s.remove(t);if(a.type.isLegacyListItem){let a=s.getList();if(a){let s,{level:i,attrs:o}=a;if(t.type.isListBlock&&0===n)s={listMarks:t.getAttrValue("textMarks",!0),...o};else if(t.type.isIndentBlock){let e=t.type.baseIndent*(i+1);s={indentFirst:t.getAttrValue("indentFirst")+e,indentLeft:t.getAttrValue("indentLeft")+e}}else t.type.isTable;s&&r.push({pos:e,attrs:s})}}if(s.add(t),t.type.isListContainer){let t=s.getContainer();t&&r.push({pos:e,attrs:t.attrs,container:t})}}),{skipInlineContent:!0,enableLeaving:!0}),this.performReplacement(t,r,((t,e)=>{let{pos:r,attrs:s,container:n}=e;if(n&&!n.has_list)return null;let a=t.resolve(r).self;return a?{from:r,to:r+a.nodeSize,slice:vn.from(a.copyWithAttrs(s))}:null}))}}cc.jsonID("flattenList",Km);class Qm extends ka{get isLegacyDummyMark(){return!0}get attrs(){return{value:sn.create({default:0,empty_value:0})}}}function tb(t,e){let r=t.maybeMarkType(e._);return r&&!r.isLegacyDummyMark}function eb(t){return!t.type.isLegacyDummyMark}class rb extends Cm{migrateMarks(t,e){if(t.length&&!t.every(eb))return t.filter(eb)}migrateJsonMarks(t,r){if(t.length&&!t.every(e))return t.filter(e)}apply(t,r){return e=tb.bind(null,t.type.schema),super.apply(...arguments)}}cc.jsonID("eraseMark",rb);class sb extends Cm{migrateMarks(t,e){if(!t.length)return;let r=e.type.schema;if(!r.markType("link").isInSet(t))return;let s=r.maybeMarkType("color");s&&!s.isInSet(t)&&(t=s.create({value:"#0F7BE9"}).addToSet(t));let n=r.maybeMarkType("underline");return n&&!n.isInSet(t)&&(t=n.create().addToSet(t)),t}}cc.jsonID("separateLinkStyle",sb);let nb={normalizer:t=>Hs(t)},ab={normalizer:t=>Bs(t)},ib=["Left","Top","Right","Bottom"].reduce(((t,e)=>{let r=`border${e}`;return t[r+"Style"]=nb,t[r+"Color"]=ab,t}),{verticalAlign:{normalizer:t=>ey(t)},backgroundColor:ab}),ob=t=>{if(!t.prototype.isTableCell)throw Error("Unable to mixin TableCell.");return class extends t{get attrs(){return sn.mergeTypeAttrs(super.attrs,ib)}}},lb=t=>class extends t{static getSelfPropertyName(){return"SynoCommentable"}get attrs(){return{...super.attrs,synocomment:sn.createOptional({empty_value:Z,copyable:!1,backward:!!this.isTextblock,normalizer:t=>{let e;return t?(Array.isArray(t)?e=t:"string"==typeof t&&(e=t.split(" ")),e&&e.length?e:null):null}})}}},hb=(()=>{let t=["discussion","insertion","deletion"];return sn.createMarksNormalizer((e=>!t.includes(e._)))})(),ub=t=>{if(!t.prototype.isMarksBlock)throw Error(`Unable to mixin non-MarksBlock ${t.name}.`);return class extends t{get attrs(){let t={...super.attrs},e=t.textMarks;if(e){let r=e.normalizer??Y;t.textMarks=e.copy({normalizer:t=>hb(r(t))})}let r=t.listMarks;if(r){let e=r.normalizer??Y;t.listMarks=r.copy({normalizer:t=>hb(e(t))})}return t}}};class cb extends Ef{get isLegacyCommentMark(){return!0}}class pb extends cb{get isLegacyDiscussionMark(){return!0}}class db extends cb{get isLegacySuggestionMark(){return!0}}class yb extends db{get isLegacyDeletionMark(){return!0}}class xb extends db{get isLegacyInsertionMark(){return!0}}function gb(t,e,r){r.length&&(t[e]=_e(...r))}class fb extends Sm{doApply(t,e){let r=t.type.schema.markType("tracking"),s=[],n=t.content.mapDescendants(((t,e,n,a,i)=>{if(t.is("EditableType")){if(!i){let n=s.length?s[s.length-1]:null;if(t.is("Inline")){let e=n?n.blockComments:Z,s=t.marks,a=null;s.forEach(((t,r)=>{t.type.is("Tracking")?(e=_e(e,t.getValue()),a||(a=s.slice(0,r))):a&&a.push(t)}));let i=a||s;e.length&&(i=r.create({id:e.slice()}).addToSet(i)),i!==s&&(t=t.mark(i))}else if(t.is("SynoCommentable")){let r,s;if(n){let r,s=n.blockEnds,a=e+t.nodeSize;for(r=s.length;r>0&&a>=s[r-1];--r);r!==s.length&&(n.blockComments.length=r,s.length=r)}let a=t.getAttrValue("synocomment")||Z;if(n){r=n.blockComments;let a=n.lastTextblockCommentInfo;a&&(t.is("Textblock")&&a.pos===e&&(s=a.ids),n.lastTextblockCommentInfo=null)}if((!r||!r.length)&&(!s||!s.length)&&!a.length)return t;let i={synocomment:null};if(t.type.isLeaf)gb(i,"trackingLeaf",[t.getAttrValue("trackingLeaf"),r,a]);else if(t.is("Textblock"))gb(i,"trackingStart",[t.getAttrValue("trackingStart"),r,s]),gb(i,"trackingEnd",[t.getAttrValue("trackingEnd"),r,a]),n&&a.length&&(n.lastTextblockCommentInfo={ids:a,pos:e+t.nodeSize});else if(gb(i,"trackingStart",[t.getAttrValue("trackingStart"),r,a]),gb(i,"trackingEnd",[t.getAttrValue("trackingEnd"),r,a]),n&&a.length){let{blockComments:r,blockEnds:s}=n,i=e+t.nodeSize;for(let t of a)r.includes(t)||(r.push(t),s.push(i))}t=t.copyWithAttrs(i)}}}else if(t.is("ContentEditable")&&(i?s.pop():s.push({blockComments:[],blockEnds:[],lastTextblockCommentInfo:null})),!i&&t.is("SynoCommentable")){let e={synocomment:null};gb(e,"trackingSelf",[t.getAttrValue("trackingSelf"),t.getAttrValue("synocomment")]),t=t.copyWithAttrs(e)}return t}),{enableLeaving:!0});return t.replace(0,t.getContentSize(),vn.from(n))}}cc.jsonID("flattenComment",fb);class mb extends Sm{applyMigration(t,e){if(t.queryChild("settings"))return t;let r=t.schema.nodeType("settings").createFilled();return t.replace(0,0,vn.from(r))}getMigrationPosMap(t){return t.queryChild("settings")?null:Ho.create([0,0,1])}}let{mixinMark:bb,mixinMarksBlock:_b,mixinListContainer:Ab}=Tm({font_family:t=>{let e=t?.value??"Arial";return{...t,value:e,eastAsia:t?.eastAsia??e,complexScript:t?.complexScript??e}}}),{mixinMark:Mb,mixinMarksBlock:wb,mixinListContainer:Sb}=Tm({font_size:t=>{let e=t?.value??11,r="number"==typeof e?e:Rs(e,"pt",11);return isFinite(r)||(r=11),{...t,value:r}}}),Cb=13;class Pb extends kn{constructor(){super()}setPageSetup(t){this.set(Tb,t)}getPageSetup(){return this.get(Tb)}setPageSize(t){this.set(vb,t)}getPageSize(){return this.get(vb)}setPagePadding(t){this.set(Ib,t)}getPagePadding(){return this.get(Ib)}setPageContentSize(t){this.set(kb,t)}getPageContentSize(){return this.get(kb)}setPageDecorateHeight(t){this.set(Eb,t)}getPageDecorateHeight(){return this.get(Eb)}setCustomStyle(t,e){if(null==t)this.set(Nb);else{let r=this.get(Nb);r||this.set(Nb,r=Object.create(null)),r[t]=e}}getCustomStyle(t){let e=this.get(Nb);return e&&e[t]}}let Tb=Pb.registerIndex(),vb=Pb.registerIndex(),Ib=Pb.registerIndex(),kb=Pb.registerIndex(),Eb=Pb.registerIndex(),Nb=Pb.registerIndex();function Lb(t){return parseFloat(t.toFixed(2))}class jb{static getPageSizeByType(t,e){let r,s=this.PAGE_SIZE_DEFINE[t];s||(s=this.PAGE_SIZE_DEFINE.a4);let n="landscape"!==e,a=n?this.page_size_portrait_cache:this.page_size_landscape_cache;return t in a?r=a[t]:(r={width:Lb(js(s[+!n],"mm","px")),height:Lb(js(s[+!!n],"mm","px"))},a[t]=r),r}static getPagePadding(t){return{top:Lb(js(t.top,"cm","px")),bottom:Lb(js(t.bottom,"cm","px")),left:Lb(js(t.left,"cm","px")),right:Lb(js(t.right,"cm","px"))}}static getPageContentSize(t,e){return{width:Lb(t.width-e.left-e.right),height:Lb(t.height-e.top-e.bottom)}}static getDecorateMaxHeight(t){return Lb(.2*t.height)}static getDefaultPageSetup(){return{left:2.54,top:2.54,right:2.54,bottom:2.54,orientation:"portrait",page_type:"a4"}}}jb.PAGE_SIZE_DEFINE={letter:[216,279],tabloid:[279,432],legal:[216,356],statement:[140,216],executive:[184,267],folio:[216,330],a3:[297,420],a4:[210,297],a5:[148,210],b4:[250,353],b5:[176,250]},jb.page_size_portrait_cache=Object.create(null),jb.page_size_landscape_cache=Object.create(null);let Rb={angle:sn.createOptional({empty_value:0,normalizer:"integer"}),fileId:sn.createOptional({empty_value:""}),imageWidth:sn.createOptional({empty_value:0}),imageHeight:sn.createOptional({empty_value:0}),faded:sn.createOptional({empty_value:!1}),scale:sn.createOptional({empty_value:0}),content:sn.createOptional({empty_value:""}),opacity:sn.createOptional({empty_value:1,normalizer:"betweenZeroOneNumber"}),fontFamily:sn.createOptional({empty_value:"Arial",normalizer:Lg}),fontSize:sn.createOptional({empty_value:0}),color:sn.createOptional({empty_value:"#000000"})},Ob={type:sn.createOptional({empty_value:"none"}),config:sn.createOptional({deep:Rb})},Db=sn.createOptional({deep:Ob}),Fb=sn.createOptional({deep:{watermark:Db}});class Bb extends ex{get isDocument(){return!0}get Node(){return Vb}get attrs(){let t=jb.getDefaultPageSetup(),e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=new sn({default:t[r]}));return{schema:new sn({default:Cb}),type:new sn({default:"document"}),page_setup:new sn({deep:e})}}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_root_node",null,function(t,e){e.setRootNode(t)}.bind(this)),t.register(t.SELF_START,this.name,"set_page_setup",null,function(t,e){let r=t.state,s=t.attrs.page_setup;r.page_setup=s,e.setPageSetup(t.attrs.page_setup);let n=jb.getPageSizeByType(t.attrs.page_setup.page_type,s.orientation);r.page_size=n,e.setPageSize(n);let a=jb.getPagePadding(t.attrs.page_setup);r.page_padding=a,e.setPagePadding(a);let i=jb.getPageContentSize(n,a);r.page_content_size=i,e.setPageContentSize(i);let o=jb.getDecorateMaxHeight(i);return r.page_decorate_height=o,e.setPageDecorateHeight(o),Bn.STATE_UPDATE}.bind(this))}}class Vb extends pa{createGlobalState(){return new Pb}}class Hb extends rx{static getSelfPropertyName(){return"DocumentSettings"}get attrs(){return{finalSection:Fb}}getFileId(t){return t.getAttrValue("finalSection")?.watermark?.config?.fileId}getCustomizeColors(t){return t.getAttrValue("finalSection")?.watermark?.config?.color}}let Gb=6,zb=/^h[1-6]$/i,Ub=Array.from({length:7},((t,e)=>{let r=e-1;return{id:r>=0?`_heading${r}`:null,level:r,tag:r>=0?`h${r}`:"p"}})),qb=[24,20,16,12,11,11],$b=[20,13,10,9,0,0].map((t=>js(t,"pt","px"))),Jb=[6,4,3,3,0,0].map((t=>js(t,"pt","px"))),Wb={headingId:sn.create({optional:!0,copyable:0,copyTransformer:()=>Tt()}),headingLevel:sn.create({optional:!0,empty_value:0,normalizer:t=>{let e=sn.getPresetNormalizer("integer")(t);return null==e?null:ge(e,0,Gb-1)}})},Zb=Object.keys(Wb);function Yb(t){let e=t.prototype;if(!e.isCssBlock||!e.isMarksBlock)throw Error("Unable to mixin HeadingBlock to non-CssBlock or non-MarksBlock.");Gt(e,"isHeadingBlock",!0),zt(e,"getFreezeList",(function(t){let e=t.call(this);return e.push("headingMaxLevel","headingFontSizeMap","headingPaddingTopMap","headingPaddingBottomMap","defaultHeadingCssAttrsMap","defaultHeadingTextMarksMap","defaultHeadingTextMarksJsonMap","headingAttrs","headingAttrsList","defaultHeadingAttrs"),e}),!0),Gt(e,"headingMaxLevel",Gb),Gt(e,"headingConfigs",Ub),Gt(e,"headingFontSizeMap",qb),Gt(e,"headingPaddingTopMap",$b),Gt(e,"headingPaddingBottomMap",Jb),Ht(e,"defaultHeadingCssAttrsMap",(function(){let t=Array(Gb);for(let e=0;e<Gb;++e)t[e]=Object.assign(Object.create(null),this.defaultCssAttrs,{paddingTop:this.headingPaddingTopMap[e],paddingBottom:this.headingPaddingBottomMap[e]});return t})),Ht(e,"defaultHeadingTextMarksMap",(function(){let t=this.schema.markType("font_size");return this.headingFontSizeMap.map((e=>[t.create({value:e})]))})),Ht(e,"defaultHeadingTextMarksJsonMap",(function(){return this.defaultHeadingTextMarksMap.map((t=>t.map((t=>t.toJSON()))))})),Gt(e,"headingAttrs",Wb),Gt(e,"headingAttrsList",Zb),Ht(e,"defaultHeadingAttrs",(function(){return sn.emptyAttrs(this.headingAttrs)})),Ht(e,"attrs",(function(t){return sn.mergeTypeAttrs(t.call(this),this.headingAttrs)}),!0),zt(e,"getInheritedCssAttrs",(function(t){return this._getInheritedCssAttrs(t)||(t.getAttrValue("headingId")?this.defaultHeadingCssAttrsMap[t.getAttrValue("headingLevel")]:null)||this.defaultCssAttrs})),zt(e,"getInheritedTextMarks",(function(t){return this._getInheritedTextMarks(t)||(t.getAttrValue("headingId")?this.defaultHeadingTextMarksMap[t.getAttrValue("headingLevel")]:null)||yn.none})),zt(e,"getInheritedTextMarksJSON",(function(t){return this._getInheritedTextMarksJSON(t)||(t.getAttrValue("headingId")?this.defaultHeadingTextMarksJsonMap[t.getAttrValue("headingLevel")]:null)||yn.none})),zt(e,"mergeListMarks",(function(t){let e=t.state;if(e.list_config){let r=t.getAttrValue("listMarks");e.list_marks_json=yn.mergeSetJSON(this.getInheritedTextMarksJSON(t),this.getInheritedListMarksJSON(t),r),e.list_marks=yn.mergeSet(this.getInheritedTextMarks(t),this.getInheritedListMarks(t),this.schema.marksFromJSON(r))}else e.list_marks_json=yn.none,e.list_marks=yn.none;return Bn.STATE_REDRAW})),zt(e,"parseAttrsFromDom",(function(t,e,r,s){t.call(this,e,r,s);let n=r.tagName;return n&&zb.test(n)&&Object.assign(e,{headingId:r.getAttribute("synohead")||Tt(),headingLevel:parseInt(n[1],10)-1}),e}),!0),zt(e,"renderTag",(function(t,e,r){return e.getAttrValue("headingId")?"h"+(e.getAttrValue("headingLevel")+1):t.call(this,e,r)}),!0),zt(e,"renderAttrsDom",(function(t,e,r,s){return t.call(this,e,r,s),e.synohead=r.getAttrValue("headingId"),e}),!0),zt(e,"hasHeading",(function(t){return!!t.getAttrValue("headingId")}))}class Xb{constructor(){this.headingIdSet=null,this.doc=null}init(t,e){e&&(this.doc=e.doc)}add(t){if(!zb.test(t.tagName))return;let e=t.getAttribute("synohead")||"",r=this.ensureValidId(e);e!==r&&t.setAttribute("synohead",r)}buildIdSet(){let t=new Set,e=this.doc;return e&&e.descendants((e=>{if(!e.type.isHeadingBlock)return;let r=e.getAttrValue("headingId");r&&t.add(r)})),t}getIdSet(){return this.headingIdSet||(this.headingIdSet=this.buildIdSet())}ensureValidId(t){let e=this.getIdSet();return(!t||e.has(t))&&(t=Tt()),e.add(t),t}}class Kb extends Sg{static getSelfPropertyName(){return"DocumentBaseParagraph"}get cssAttrs(){return{...super.cssAttrs,backgroundColor:sn.createOptional({empty_value:"transparent"})}}getCustomizeColors(t){return t.getAttrValue("backgroundColor",!0)}parseAttrsFromParser(t,e,r){super.parseAttrsFromParser(t,e,r);let s=e.getMarkValue("background_color",!0);return s&&(t.backgroundColor=s),t}renderAttrsDom(t,e,r){super.renderAttrsDom(t,e,r);let s=t.inline_style||(t.inline_style=Object.create(null)),n=this.getCssAttrs(e);return s["background-color"]=n.backgroundColor,t}}Yb(Kb);class Qb extends Kb{static getSelfPropertyName(){return"DocumentParagraph"}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"inherit_style",null,((t,e)=>{let r=e.getCustomStyle(t.getAttrValue("headingId")?t.getAttrValue("headingLevel"):-1)||W,s=t.state;return s.inherited_text_marks_json===r.marks_json&&s.inherited_text_marks===r.marks&&s.inherited_css_attrs===r.css&&s.inherited_tab_attrs===r.tab?Bn.STATE_NONE:(s.inherited_text_marks_json=r.marks_json,s.inherited_text_marks=r.marks,s.inherited_css_attrs=r.css,s.inherited_tab_attrs=r.tab,s.inherit=!0,Bn.STATE_UPDATE)})),t.register(t.UPDATE_END,this.name,"clear_inherit_flag",null,(t=>{t.state.inherit=!1}))}}class t_ extends(Ly(fa)){get isStyleEditor(){return!0}get printable(){return!1}get Node(){return e_}registerSelfLocalAttrsUpdateMap(t){t.register(t.INHERITED_START,this.name,"force_scan_edit_area",null,((t,e)=>{if(t.getStateRank()>=Bn.STATE_PASSING){let t=e.getRootNode();return Bn.markInheritNodesPath(t.childs(),t.queryChildOffset("style_editor",!0)+1)}})),t.register(t.SELF_START,this.name,"set_text_rect_info",null,(t=>{t.state.text_rect_info={width:1e4,left:0}}))}get matchDOMTag(){return{"div[data-syno-style-editor]":null}}toDOM(t,e){return["div",this.renderAttrs({"data-syno-style-editor":!0,inline_style:{display:"none"}},t,e),0]}}class e_ extends ha{getStyleParagraphIdx(t){return t<0?0:t<r_.prototype.headingMaxLevel?t+1:NaN}getStyleParagraphNode(t){let e=this.getStyleParagraphIdx(t);return isNaN(e)?null:this.child(e)}getStyleParagraphOffset(t){let e=this.getStyleParagraphIdx(t);return isNaN(e)?NaN:this.offsetAt(e)}getStyleParagraphData(t){let e=this.getStyleParagraphIdx(t);return isNaN(e)?null:{node:this.child(e),offset:this.offsetAt(e)}}}class r_ extends(Xy(Kb)){get isStyleParagraph(){return!0}registerSelfLocalAttrsUpdateMap(t){t.register(t.SELF_END,this.name,"set_paragraph_style",null,((t,e)=>{e.setCustomStyle(t.getAttrValue("headingId")?t.getAttrValue("headingLevel"):-1,{marks_json:t.textMarksJSON,marks:t.textMarks,css:this.getCssAttrs(t),tab:this.getTabAttrValues(t)})}))}get matchDOMTag(){return{"div[data-syno-style-paragraph]":(t,e)=>this.parseDOM(t,e)}}parseAttrsFromDom(t,e,r){super.parseAttrsFromDom(...arguments);let s=parseInt(e.getAttribute("data-syno-style-paragraph"),10);return s&&s>=1&&s<=Gb&&Object.assign(t,{headingId:Ub[s].id,headingLevel:s-1}),t}renderAttrsDom(t,e,r){return super.renderAttrsDom(...arguments),"clipboard"===r.target&&Object.assign(t.inline_style||(t.inline_style=Object.create(null)),yn.setToStyle(e.textMarks)),t}}class s_ extends ma{get isInvisible(){return!0}get printable(){return!1}get matchDOMTag(){return{"div[syno_invisible]":null}}toDOM(t,e){return["div",this.renderAttrs({syno_invisible:"true"},t,e),0]}}function n_(t){let e=t.getStateMap();e.register(e.SELF_START,t.name,"set_page_info",null,function(t,e){let r=e.getPageSize(),s=e.getPagePadding(),n=e.getPageContentSize(),a=e.getPageDecorateHeight(),i=t.state;return i.page_size===r&&i.page_padding===s&&i.page_content_size===n&&i.page_decorate_height===a?Bn.STATE_NONE:(i.page_size=r,i.page_padding=s,i.page_content_size=n,i.page_decorate_height=a,Bn.STATE_REDRAW)}.bind(this)),e.register(e.SELF_START,t.name,"set_text_rect_info",null,function(t){t.state.text_rect_info={width:t.state.page_content_size.width,left:0}}.bind(this))}class a_ extends(Ly(fa)){get isEditArea(){return!0}get pseudoType(){return this.schema.nodes.page}getIndicatorWrapperDOM(t){return t.lastChild}createPseudoNode(t){let e=t.getState("page_size")??{width:0,height:0},r=t.getState("page_padding")??{left:0,top:0,right:0,bottom:0},s=t.getState("page_decorate_height")??0;return t.type.pseudoType.create({width:e.width,height:e.height,marginLeft:r.left,marginTop:r.top,marginRight:r.right,marginBottom:r.bottom,decoratorMaxHeight:s})}registerSelfLocalAttrsUpdateMap(){this.registerListContainer(),n_(this)}get matchDOMTag(){return{"div[synoedit]":(t,e)=>this.parseDOM(t,e)}}getPageFillingDOM(t){return t.childNodes[1]}toRenderDOM(t,e){return["div",this.renderAttrs({class:"syno-o-doc-pm-edit-area",synoedit:!0},t,e),["div",{class:"syno-o-doc-pm-edit-area-page-container"},0],["div",{class:"syno-o-doc-pm-edit-area-page-filling"}],lo.createIndicatorWrapper()]}toCopyDOM(t,e){return["div",0]}}lg(a_);class i_ extends fa{get isPage(){return!0}get isPseudoType(){return!0}get attrs(){return{width:sn.create(),height:sn.create(),marginLeft:sn.create(),marginTop:sn.create(),marginRight:sn.create(),marginBottom:sn.create(),decoratorMaxHeight:sn.create()}}getBodyDOM(t){return t.firstChild}getDecoratorDOM(t,e){switch(e){case"header":return this.getHeaderDOM(t);case"footer":return this.getFooterDOM(t);case"page_num":return this.getPageNumberDOM(t);default:throw Error(`Invalid decorator type. (${e})`)}}getHeaderDOM(t){return bs(this.getBodyDOM(t),".syno-o-doc-pm-page-header")}getContentDOM(t){return bs(this.getBodyDOM(t),".syno-o-doc-pm-page-content")}getFooterDOM(t){return bs(this.getBodyDOM(t),".syno-o-doc-pm-page-footer")}getPageNumberDOM(t){return bs(this.getBodyDOM(t),".syno-o-doc-pm-page-page-number")}getEditableAreaDOM(t){return this.getContentDOM(t).firstChild.firstChild}getGraphContainerDOM(t){return this.getContentDOM(t).childNodes[1]}toDOM(t,e){let{width:r,height:s,marginLeft:n,marginTop:a,marginRight:i,marginBottom:o,decoratorMaxHeight:l}=t.attrs;return["div",{class:"syno-o-doc-pm-page",inline_style:{width:r+"px",height:s+"px"}},["div",{class:"syno-o-doc-pm-page-body"},["div",{class:"syno-o-doc-pm-page-decorator syno-o-doc-pm-page-header",inline_style:{width:r+"px",minHeight:a+"px",maxHeight:l+"px"}}],["div",{class:"syno-o-doc-pm-page-content",inline_style:{width:r+"px"}},["div",{class:"syno-o-doc-pm-page-content-padding",inline_style:{marginLeft:n+"px",marginRight:i+"px"}},["div",{class:"syno-o-doc-pm-page-content-container",editable:"true","syno-paginated":"false",synoedit:"true",inline_style:{width:r-n-i+"px"}},0]],["div",{class:"syno-o-doc-graph-container"}]],["div",{class:"syno-o-doc-pm-page-decorator syno-o-doc-pm-page-footer",inline_style:{width:r+"px",minHeight:o+"px",maxHeight:l+"px"}}],["div",{class:"syno-o-doc-pm-page-decorator syno-o-doc-pm-page-page-number"}]]]}}class o_ extends ny{get attrs(){return{...super.attrs,align:Vy.textAlign.copy({clearable:!1}),indent:sn.createOptional({empty_value:0})}}getTextRectInfo(t,e){let r,{left:s,width:n}=t.state.parent_text_rect_info||{left:0,width:0},a=t.state.width,i=t.getAttrValue("align");return{left:s+("center"===i||"justify"===i?(n-a)/2:"right"===i?n-a:t.getAttrValue("indent")||0),width:a}}renderAttrsJson(t,e,r){return super.renderAttrsJson(t,e,r),["align","indent"].forEach((r=>{let s=e.getAttrValue(r);null!=s&&(t[r]=s)})),t}toDOM(t,e){let r=super.toDOM(t,e),s=e.target,n="editor"===s||"viewer"===s||"general"===s,a=r[1]={...r[1]},i=a.inline_style={...a.inline_style},o=t.state.parent_text_rect_info.width,l=t.state.width,h=t.getAttrValue("align");if("center"===h||"justify"===h)i["margin-left"]=i["margin-right"]=n?`${(o-l)/2}px`:"auto";else{let e="right"===h?0:t.getAttrValue("indent")||0;i[`margin-${"right"===h?"right":"left"}`]=`${e}px`,i[`margin-${"right"===h?"left":"right"}`]=n?`${o-l-e}px`:"auto"}return r}}class l_ extends _a{get isNavigation(){return!0}get unbreakable(){return!0}get selectionExtendable(){return!0}get deleteWhenEmpty(){return!0}getLeftPaddingWidth(t){return 8}getRightPaddingWidth(t){return 12}getTopPaddingHeight(t){return 8}getBottomPaddingHeight(t){return 8}getTextRectInfo(t,e){let r=t.type.getLeftPaddingWidth(t),s=t.type.getRightPaddingWidth(t),n=super.getTextRectInfo(t,e);return{left:n.left+r,width:n.width-(r+s)}}get matchDOMTag(){return{nav:(t,e)=>this.parseDOM(t,e)}}renderBlockStructure(t,e){return["nav",this.renderAttrs(Object.create(null),t,e),0]}}class h_ extends ba{get isHorizontalRule(){return!0}get forceJoinBackward(){return!0}getTopPaddingHeight(t){return 7}getBottomPaddingHeight(t){return 7}get matchDOMTag(){return{hr:(t,e)=>this.parseDOM(t.parentNode&&t.parentNode.hasAttribute("data-syno-hr")?t.parentNode:t,e)}}renderBlockStructure(t,e){return["div",this.renderAttrs({"data-syno-hr":!0,inline_style:{padding:"6px 0"}},t,e),["hr",{class:this.className+"-hr",inline_style:{margin:"0px","border-width":"1px"}}]]}}class u_ extends ba{get isPageBreak(){return!0}get forceJoinBackward(){return!0}get matchDOMTag(){return{"div[data-syno-page-break]":(t,e)=>this.parseDOM(t,e)}}renderBlockStructure(t,e){return["div",this.renderAttrs({"data-syno-page-break":!0},t,e)]}}class c_ extends Pa{get isChart(){return!0}get sizeRatio(){return 410/560}get attrs(){return{synochart:new sn({default:Tt,copyable:!1}),data:new sn({default:ad.createDefaultData(),normalizer:ad.ensureData.bind(ad)}),config:sn.optional,width:new sn({default:"560px"}),height:new sn({default:"410px"})}}getObjectSize(t){let e=Rs(t.getAttrValue("width"),"px"),r=Rs(t.getAttrValue("height"),"px");return{width:isNaN(e)?0:e,height:isNaN(r)?0:r}}getObjectBorder(t){return{left:2,top:2,right:2,bottom:2}}get matchDOMTag(){return{"span[synochart]":t=>{let e,r;try{e=JSON.parse(t.getAttribute("data-data"))}catch{}Array.isArray(e)||(e=null);try{r=JSON.parse(t.getAttribute("config"))}catch{}return"[object Object]"!==Object.prototype.toString.call(r)&&(r=null),{synochart:t.getAttribute("synochart")||vt(t.ownerDocument,"synochart"),data:e,config:r,width:t.style.width||"",height:t.style.height||""}}}}toDOM(t,e){let r=e.target;return["span",this.renderAttrs({synochart:t.attrs.synochart,"data-data":JSON.stringify(t.attrs.data),config:JSON.stringify(t.attrs.config),inline_style:{width:t.attrs.width,height:t.attrs.height,padding:"clipboard"===r?void 0:"2px"}},t,e)]}}class p_ extends Pa{get isImage(){return!0}get hasCss(){return!0}get cssAttrs(){return{width:new sn({default:""}),height:new sn({default:""})}}get attrs(){return jt(this.cssAttrs,{src:new sn({default:""}),alt:new sn({default:""}),ref:new sn({default:""}),file_id:new sn({default:""}),file_type:new sn({default:"binary"}),config:new sn({default:""})})}getFileId(t){return t.attrs.file_id}getObjectSize(t){let e=Rs(t.getAttrValue("width"),"px"),r=Rs(t.getAttrValue("height"),"px");return{width:isNaN(e)?0:e,height:isNaN(r)?0:r}}getObjectBorder(t){return{left:2,top:2,right:2,bottom:2}}get matchDOMTag(){return{"img[src]":t=>({src:t.getAttribute("src"),alt:t.getAttribute("alt")||null,ref:t.getAttribute("ref")||"",file_id:t.getAttribute("file-id")||null,file_type:t.getAttribute("file-type")||null,config:t.getAttribute("graph-config")||null,width:t.style.width||"",height:t.style.height||""})}}toDOM(t,e){let r=e.target;return"binary"===(t.attrs.file_type??"binary")?["span",this.renderAttrs({synoimg:"true",inline_style:{border:"2px solid transparent"}},t,e),t.attrs.file_id?t.attrs.alt:""]:["span",this.renderAttrs({synoimg:"true","pm-ignore":!0,inline_style:{position:"relative",width:t.attrs.width,height:t.attrs.height,padding:"clipboard"===r?void 0:"2px"}},t,e),["img",{"file-id":t.attrs.file_id,"file-type":t.attrs.file_type,alt:t.attrs.alt,"graph-config":t.attrs.config,inline_style:{display:"block",position:"absolute",width:t.attrs.width,height:t.attrs.height}}]]}}let d_=["header","footer","page_num"],y_=["cover","even","normal"];class x_ extends fa{get isPageDecorate(){return!0}get printable(){return!1}get attrs(){return{"place-show":new sn({default:!1}),"place-cover":new sn({default:!1}),"place-even":new sn({default:!1}),"num-show":new sn({default:!1}),"num-cover":new sn({default:!1}),"num-even":new sn({default:!1}),"num-pos":new sn({default:"br"})}}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_page_content_size",null,function(t,e){let r=t.state,s=e.state;return r.page_content_size===s.page_content_size?Bn.STATE_NONE:(r.page_content_size=s.page_content_size,Bn.STATE_UPDATE)}.bind(this))}get matchDOMTag(){return{"div[synodecorate]":t=>({"place-show":"true"===t.getAttribute("place-show"),"place-cover":"true"===t.getAttribute("place-cover"),"place-even":"true"===t.getAttribute("place-even"),"num-show":"true"===t.getAttribute("num-show"),"num-cover":"true"===t.getAttribute("num-cover"),"num-even":"true"===t.getAttribute("num-even"),"num-pos":t.getAttribute("num-pos")||"br"})}}toDOM(t,e){return["div",this.renderAttrs({class:"syno-o-doc-pm-decorator-container",synodecorate:!0,"place-show":String(t.attrs["place-show"]),"place-cover":String(t.attrs["place-cover"]),"place-even":String(t.attrs["place-even"]),"num-show":String(t.attrs["num-show"]),"num-cover":String(t.attrs["num-cover"]),"num-even":String(t.attrs["num-even"]),"num-pos":t.attrs["num-pos"]},t,e),0]}}class g_ extends(Ly(fa)){get isDecorator(){return!0}get decoratorType(){return""}get attrs(){return{type:new sn({default:"normal"})}}registerSelfLocalAttrsUpdateMap(){n_(this)}}class f_ extends(jy(g_)){get isHeaderFooter(){return!0}get needHeightCalculating(){return!0}getIndicatorWrapperDOM(t){return t.firstChild.childNodes[1]}getScrollerInfo(t){return{dom:t}}getTopPaddingHeight(t){return 11}getBottomPaddingHeight(t){return 11}registerSelfLocalAttrsUpdateMap(){this.registerListContainer()}get matchDOMTag(){return{[this.decoratorType]:(t,e)=>this.parseDOM(t,e)}}getEditorDOM(t){return t.firstChild}getEditableAreaDOM(t){return this.getEditorDOM(t).firstChild}parseAttrsFromDom(t,e,r){return super.parseAttrsFromDom(...arguments),t.type=e.getAttribute("type"),t}toRenderDOM(t,e){let r=this.decoratorType,s=t.state,n=s.page_padding,a=s.page_content_size,i=this.getTopPaddingHeight(t),o=this.getBottomPaddingHeight(t),l=i+o;return[r,{class:"syno-o-doc-pm-"+r,type:t.attrs.type,inline_style:{maxHeight:s.page_decorate_height-l+"px",minHeight:n["header"===r?"top":"bottom"]-l+"px"}},["div",{class:"syno-o-doc-pm-"+r+"-editor",inline_style:{width:a.width+"px"}},["div",{class:"syno-o-doc-pm-"+r+"-padding",inline_style:{padding:`${i}px ${n.right}px ${o}px ${n.left}px`}},["div",{inline_style:{width:a.width+"px"}},0]],lo.createIndicatorWrapper(4,4)]]}}lg(f_);class m_ extends f_{get isHeader(){return!0}get decoratorType(){return"header"}}class b_ extends f_{get isFooter(){return!0}get decoratorType(){return"footer"}}class __ extends g_{get isPageNumber(){return!0}get decoratorType(){return"page_num"}getIndicatorWrapperDOM(t){return t}get matchDOMTag(){return{"div[synonum]":t=>({type:t.getAttribute("type")})}}getEditableAreaDOM(t){return t}toDOM(t){return["div",{synonum:"true",type:t.attrs.type},0]}}class A_ extends Aa{get isPageNumberBlock(){return!0}get textDraggable(){return!1}get matchDOMTag(){return{"div[synonumblock]":null}}toDOM(t){return["div",{synonumblock:"true"},0]}}class M_ extends Ta{get isPageNumberText(){return!0}get copyable(){return!1}get matchDOMTag(){return{"span[synonumtext]":null}}toDOM(t){return["span",{synonumtext:"true"}]}}function w_(t,e,r){let s;if(t.is("RootType"))s="/page_decorate";else if(t.is("PageDecorate"))s="";else throw RangeError(`Invalid parent node: ${t.neme}`);if("page_num"===e)return t.query(s+"/page_num",!0);{let n=t.queryAll(s+"/HeaderFooter").find((({node:t})=>t.type.decoratorType===e&&t.getAttrValue("type")===r));if(!n)throw RangeError(`There is no matched node. name: ${e}, type: ${r}`);return n}}let S_={line:"line",connect_line:"bentConnector3",bentConnector2:"bentConnector2",bentConnector4:"bentConnector4",bentConnector5:"bentConnector5",rect:"rect",rect_round:"roundRect",rect_single_snip:"snip1Rect",rect_snip_same_side:"snip2SameRect",rect_snip_diagonal:"snip2DiagRect",rect_snip_round:"snipRoundRect",rect_single_round:"round1Rect",rect_round_same_side:"round2SameRect",rect_round_diagonal:"round2DiagRect",ellipse:"ellipse",triangle:"triangle",right_triangle:"rtTriangle",parallelogram:"parallelogram",trapezoid:"trapezoid",diamond:"diamond",pentagon:"pentagon",hexagon:"hexagon",heptagon:"heptagon",octagon:"octagon",decagon:"decagon",dodecagon:"dodecagon",pie:"pie",chord:"chord",rect_frame:"frame",half_frame:"halfFrame",l_shape:"corner",diagonal_stripe:"diagStripe",cross:"plus",plaque:"plaque",can:"can",cube:"cube",bevel:"bevel",donut:"donut",block_arc:"blockArc",folded_corner:"foldedCorner",lightning_bolt:"lightningBolt",moon:"moon","4_point_star":"star4",arrow:"rightArrow",arrow_left:"leftArrow",arrow_up:"upArrow",arrow_down:"downArrow",arrow_left_right:"leftRightArrow",arrow_up_down:"upDownArrow",arrow_striped:"stripedRightArrow",arrow_notched:"notchedRightArrow",arrow_pentagon:"homePlate",arrow_chevron:"chevron",bentArrow:"bentArrow",curvedRightArrow:"curvedRightArrow",curvedLeftArrow:"curvedLeftArrow",curvedUpArrow:"curvedUpArrow",curvedDownArrow:"curvedDownArrow",bentUpArrow:"bentUpArrow",leftUpArrow:"leftUpArrow",leftRightUpArrow:"leftRightUpArrow",quadArrow:"quadArrow",uturnArrow:"uturnArrow",customGeometry:"customGeometry",accentBorderCallout1:"accentBorderCallout1",accentBorderCallout2:"accentBorderCallout2",accentBorderCallout3:"accentBorderCallout3",accentCallout1:"accentCallout1",accentCallout2:"accentCallout2",accentCallout3:"accentCallout3",arc:"arc",borderCallout1:"borderCallout1",borderCallout2:"borderCallout2",borderCallout3:"borderCallout3",bracePair:"bracePair",bracketPair:"bracketPair",callout1:"callout1",callout2:"callout2",callout3:"callout3",circularArrow:"circularArrow",cloud:"cloud",cloudCallout:"cloudCallout",curvedConnector2:"curvedConnector2",curvedConnector3:"curvedConnector3",curvedConnector4:"curvedConnector4",curvedConnector5:"curvedConnector5",doubleWave:"doubleWave",downArrowCallout:"downArrowCallout",ellipseRibbon:"ellipseRibbon",ellipseRibbon2:"ellipseRibbon2",flowChartAlternateProcess:"flowChartAlternateProcess",flowChartCollate:"flowChartCollate",flowChartConnector:"flowChartConnector",flowChartDecision:"flowChartDecision",flowChartDelay:"flowChartDelay",flowChartDisplay:"flowChartDisplay",flowChartDocument:"flowChartDocument",flowChartExtract:"flowChartExtract",flowChartInputOutput:"flowChartInputOutput",flowChartInternalStorage:"flowChartInternalStorage",flowChartMagneticDisk:"flowChartMagneticDisk",flowChartMagneticDrum:"flowChartMagneticDrum",flowChartMagneticTape:"flowChartMagneticTape",flowChartManualInput:"flowChartManualInput",flowChartManualOperation:"flowChartManualOperation",flowChartMerge:"flowChartMerge",flowChartMultidocument:"flowChartMultidocument",flowChartOffpageConnector:"flowChartOffpageConnector",flowChartOnlineStorage:"flowChartOnlineStorage",flowChartOr:"flowChartOr",flowChartPredefinedProcess:"flowChartPredefinedProcess",flowChartPreparation:"flowChartPreparation",flowChartProcess:"flowChartProcess",flowChartPunchedCard:"flowChartPunchedCard",flowChartPunchedTape:"flowChartPunchedTape",flowChartSort:"flowChartSort",flowChartSummingJunction:"flowChartSummingJunction",flowChartTerminator:"flowChartTerminator",heart:"heart",horizontalScroll:"horizontalScroll",irregularSeal1:"irregularSeal1",irregularSeal2:"irregularSeal2",leftArrowCallout:"leftArrowCallout",leftBrace:"leftBrace",leftBracket:"leftBracket",leftRightArrowCallout:"leftRightArrowCallout",lineInv:"lineInv",mathDivide:"mathDivide",mathEqual:"mathEqual",mathMinus:"mathMinus",mathMultiply:"mathMultiply",mathNotEqual:"mathNotEqual",mathPlus:"mathPlus",noSmoking:"noSmoking",quadArrowCallout:"quadArrowCallout",ribbon:"ribbon",ribbon2:"ribbon2",rightArrowCallout:"rightArrowCallout",rightBrace:"rightBrace",rightBracket:"rightBracket",smileyFace:"smileyFace",star10:"star10",star12:"star12",star16:"star16",star24:"star24",star32:"star32",star5:"star5",star6:"star6",star7:"star7",star8:"star8",straightConnector1:"straightConnector1",sun:"sun",teardrop:"teardrop",upArrowCallout:"upArrowCallout",verticalScroll:"verticalScroll",wave:"wave",wedgeEllipseCallout:"wedgeEllipseCallout",wedgeRectCallout:"wedgeRectCallout",wedgeRoundRectCallout:"wedgeRoundRectCallout"},C_=["l","t","r","b","w","h"],P_=["stroke","stroke-opacity","stroke-width","stroke-dasharray"],T_=["fill","fill-opacity"];function v_(t,e,r){let s=(r.l+r.r)/2,n=(r.t+r.b)/2,a=Math.round(108e5*Math.atan((e-n)/(t-s))/Math.PI);return t<s?a+=108e5:e<n&&(a+=216e5),216e5!==a?a:0}let I_=Math.PI/108e5,k_={bentArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,5e4*e/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(5e4,(r.w-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,1e5*t/Math.min(r.w,r.h)))}],bentConnector3:[function(t,e,r){r.adj1=1e5*t/r.w}],bentConnector4:[function(t,e,r){r.adj1=1e5*t/r.w},function(t,e,r){r.adj2=1e5*e/r.h}],bentConnector5:[function(t,e,r){r.adj1=1e5*t/r.w},function(t,e,r){r.adj2=1e5*e/r.h},function(t,e,r){r.adj3=1e5*t/r.w}],bentUpArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(5e4,(r.h-e)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,(r.w-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(5e4,1e5*e/Math.min(r.w,r.h)))}],bevel:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))}],blockArc:[function(t,e,r){r.adj1=v_(t,e,r)},function(t,e,r){r.adj2=v_(t,e,r),r.adj3=Math.max(0,Math.min(5e4,5e4-1e5*Math.sqrt(Math.pow(t-(r.l+r.r)/2,2)+Math.pow(e-(r.t+r.b)/2,2))/Math.min(r.w,r.h)))}],can:[function(t,e,r){r.adj=Math.max(0,Math.min(r.maxAdj,1e5*e/Math.min(r.w,r.h)))}],chevron:[function(t,e,r){r.adj=Math.max(0,Math.min(r.maxAdj,(r.r-t)*1e5/Math.min(r.w,r.h)))}],chord:[function(t,e,r){r.adj1=v_(t,e,r)},function(t,e,r){r.adj2=v_(t,e,r)}],corner:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj1=Math.max(0,Math.min(1e5*r.h/s,(r.b-e)*1e5/s))},function(t,e,r){let s=Math.min(r.w,r.h);r.adj2=Math.max(0,Math.min(1e5*r.w/s,1e5*t/s))}],cube:[function(t,e,r){r.adj=Math.max(0,Math.min(1e5,1e5*e/Math.min(r.w,r.h)))}],curvedDownArrow:[function(t,e,r){let s=Math.min(r.w,r.h),n=r.w/2,a=s*r.adj2/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.h*r.h-i*i),l=t-n+a/4-o/r.h*(n-a/4),h=3/4-o/(4*r.h);r.adj1=Math.max(0,Math.min(r.adj2,l/h*1e5/s))},function(t,e,r){let s=Math.min(r.w,r.h),n=r.w/2,a=s*r.adj1/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.h*r.h-i*i),l=t-n-a/4-o/r.h*(n-a/4),h=(-1-o/r.h)/4;r.adj2=Math.max(0,Math.min(r.maxAdj2,l/h*1e5/s))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,(r.h-e)*1e5/Math.min(r.w,r.h)))}],curvedLeftArrow:[function(t,e,r){let s=Math.min(r.w,r.h),n=r.h/2,a=s*r.adj2/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.w*r.w-i*i),l=e-n+a/4-o/r.w*(n-a/4),h=(-1-o/r.w)/4;r.adj1=Math.max(0,Math.min(r.adj2,l/h*1e5/s))},function(t,e,r){let s=Math.min(r.w,r.h),n=r.h/2,a=s*r.adj1/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.w*r.w-i*i),l=e-n-a/4-o/r.w*(n-a/4),h=-3/4-o/(4*r.w);r.adj2=Math.max(0,Math.min(r.maxAdj2,l/h*1e5/s))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*t/Math.min(r.w,r.h)))}],curvedRightArrow:[function(t,e,r){let s=Math.min(r.w,r.h),n=r.h/2,a=s*r.adj2/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.w*r.w-i*i),l=e-n+a/4-o/r.w*(n-a/4),h=(-1-o/r.w)/4;r.adj1=Math.max(0,Math.min(r.adj2,l/h*1e5/s))},function(t,e,r){let s=Math.min(r.w,r.h),n=r.h/2,a=s*r.adj1/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.w*r.w-i*i),l=e-n-a/4-o/r.w*(n-a/4),h=-3/4-o/(4*r.w);r.adj2=Math.max(0,Math.min(r.maxAdj2,l/h*1e5/s))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,(r.w-t)*1e5/Math.min(r.w,r.h)))}],curvedUpArrow:[function(t,e,r){let s=Math.min(r.w,r.h),n=r.w/2,a=s*r.adj2/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.h*r.h-i*i),l=t-n+a/4-o/r.h*(n-a/4),h=3/4-o/(4*r.h);r.adj1=Math.max(0,Math.min(r.adj2,l/h*1e5/s))},function(t,e,r){let s=Math.min(r.w,r.h),n=r.w/2,a=s*r.adj1/1e5,i=s*r.adj3/1e5,o=Math.sqrt(r.h*r.h-i*i),l=t-n-a/4-o/r.h*(n-a/4),h=(-1-o/r.h)/4;r.adj2=Math.max(0,Math.min(r.maxAdj2,l/h*1e5/s))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*e/Math.min(r.w,r.h)))}],diagStripe:[function(t,e,r){r.adj=Math.max(0,Math.min(1e5,1e5*e/r.h))}],donut:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))}],downArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.l+r.r)/2-t)*2e5/r.w))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.b-e)*1e5/Math.min(r.w,r.h)))}],upArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.l+r.r)/2-t)*2e5/r.w))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(e-r.t)*1e5/Math.min(r.w,r.h)))}],foldedCorner:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))}],frame:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj1=Math.max(0,Math.min(5e4,1e5*t/s))}],halfFrame:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.t+e)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,1e5*t/Math.min(r.w,r.h)))}],homePlate:[function(t,e,r){r.adj=Math.max(0,Math.min(r.maxAdj,(r.r-t)*1e5/Math.min(r.w,r.h)))}],leftArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.t+r.b)/2-e)*2e5/r.h))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(t-r.l)*1e5/Math.min(r.w,r.h)))}],leftRightArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.t+r.b)/2-e)*2e5/r.h))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,1e5*t/Math.min(r.w,r.h)))}],leftRightUpArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.w/2-t)*2e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,(r.w/2-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*e/Math.min(r.w,r.h)))}],leftUpArrow:[function(t,e,r){let s=Math.min(r.w,r.h),n=s*r.adj2/1e5;r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.h-n-e)*2e5/s))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,(r.w-t)*5e4/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*e/Math.min(r.w,r.h)))}],moon:[function(t,e,r){r.adj=Math.max(0,Math.min(87500,1e5*t/r.w))}],notchedRightArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.t+r.b)/2-e)*2e5/r.h))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.r-t)*1e5/Math.min(r.w,r.h)))}],parallelogram:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj=Math.max(0,Math.min(1e5*r.w/s,2e5*t/s))}],pie:[function(t,e,r){r.adj1=v_(t,e,r)},function(t,e,r){r.adj2=v_(t,e,r)}],plaque:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj=Math.max(0,Math.min(1e5,1e5*t/s))}],plus:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj=Math.max(0,Math.min(1e5,1e5*t/s))}],quadArrow:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.w/2-t)*2e5/s))},function(t,e,r){let s=Math.min(r.w,r.h);r.adj2=Math.max(0,Math.min(5e4,(r.w/2-t)*2e5/s))},function(t,e,r){let s=Math.min(r.w,r.h);r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*e/s))}],rightArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.t+r.b)/2-e)*2e5/r.h))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.r-t)*1e5/Math.min(r.w,r.h)))}],round1Rect:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))}],round2DiagRect:[function(t,e,r){r.adj1=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))}],round2SameRect:[function(t,e,r){r.adj1=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))}],roundRect:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))}],snip1Rect:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))}],snip2DiagRect:[function(t,e,r){r.adj1=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))}],snip2SameRect:[function(t,e,r){r.adj1=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))}],snipRoundRect:[function(t,e,r){r.adj1=Math.max(0,Math.min(5e4,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,(r.r-t)*1e5/Math.min(r.w,r.h)))}],star4:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,((r.t+r.b)/2-e)*5e4/(r.h/2)))}],stripedRightArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.t+r.b)/2-e)*2e5/r.h))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.r-t)*1e5/Math.min(r.w,r.h)))}],trapezoid:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj=Math.max(0,Math.min(5e4*r.w/s,1e5*t/s))}],triangle:[function(t,e,r){r.adj=Math.max(0,Math.min(1e5,1e5*t/r.w))}],upDownArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,((r.l+r.r)/2-t)*2e5/r.w))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,1e5*e/Math.min(r.w,r.h)))}],uturnArrow:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(25e3,(r.w-t)*5e4/Math.min(r.w,r.h)))},function(t,e,r){let s=r.h*r.adj5/1e5;r.adj3=Math.max(0,Math.min(r.maxAdj3,(s-e)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj5=Math.max(r.minAdj5,Math.min(1e5,1e5*e/Math.min(r.w,r.h)))}],accentBorderCallout1:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],accentBorderCallout2:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],accentBorderCallout3:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],accentCallout1:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],accentCallout2:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],accentCallout3:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],arc:[function(t,e,r){r.adj1=v_(t,e,r)},function(t,e,r){r.adj2=v_(t,e,r)}],borderCallout1:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],borderCallout2:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],borderCallout3:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],bracePair:[function(t,e,r){r.adj=Math.max(0,Math.min(25e3,1e5*e/Math.min(r.w,r.h)))}],bracketPair:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,1e5*e/Math.min(r.w,r.h)))}],callout1:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],callout2:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],callout3:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj4=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj5=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj6=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj7=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h)),r.adj8=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],circularArrow:[function(t,e,r){let s=Math.min(r.w,r.h),n=s*r.adj1/1e5,a=s*r.adj5/1e5,i=n/2,o=r.w/2+i-a-n+i,l=r.h/2+i-a-n+i,h=(t-r.w/2)/o,u=Math.atan((e-r.h/2)/l/h*l/o)/I_-r.adj3;u<0&&(u=u%216e5+216e5),r.adj2=Math.max(0,Math.min(r.maxAng,u))},function(t,e,r){r.adj4=v_(t,e,r)},function(t,e,r){r.adj3=v_(t,e,r);let s=Math.sqrt((r.xGp-r.xBp)**2+(r.yGp-r.yBp)**2)/2,n=(r.xGp+r.xBp)/2,a=(r.yGp+r.yBp)/2,i=Math.sqrt((t-n)**2+(e-a)**2),o=Math.sign((t-n)*(r.xGp-n)+(e-a)*(r.yGp-a));r.adj1=Math.max(0,Math.min(r.maxAdj1,o>0?i/s*25e3:0))},function(t,e,r){let s=r.w/2,n=r.h/2,a=Math.atan2(e-n,t-s),i=Math.sqrt((s*Math.cos(a))**2+(n*Math.sin(a))**2);r.adj5=Math.max(1e-10,Math.min(25e3,(i-Math.sqrt((t-s)**2+(e-n)**2))/i*4e4))}],cloudCallout:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,(t-r.w/2)*1e5/r.w)),r.adj2=Math.max(-2147483647,Math.min(2147483647,(e-r.h/2)*1e5/r.h))}],curvedConnector3:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],curvedConnector4:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h))}],curvedConnector5:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))},function(t,e,r){r.adj2=Math.max(-2147483647,Math.min(2147483647,1e5*e/r.h))},function(t,e,r){r.adj3=Math.max(-2147483647,Math.min(2147483647,1e5*t/r.w))}],doubleWave:[function(t,e,r){r.adj1=Math.max(0,Math.min(12500,1e5*e/r.h))},function(t,e,r){r.adj2=Math.max(-1e4,Math.min(1e4,(t-r.w/2)*1e5/r.w))}],downArrowCallout:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.w/2-t)*2e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.w/2-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,(r.h-e)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,1e5*e/Math.min(r.w,r.h)))}],ellipseRibbon:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,1e5*e/r.h))},function(t,e,r){r.adj2=Math.max(25e3,Math.min(75e3,(r.w/2-t)*2e5/r.w))},function(t,e,r){r.adj3=Math.max(r.minAdj3,Math.min(r.adj1,(r.h-e)*1e5/r.h))}],ellipseRibbon2:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,(r.h-e)*1e5/r.h))},function(t,e,r){r.adj2=Math.max(25e3,Math.min(1e5,(r.w/2-t)*2e5/r.w))},function(t,e,r){r.adj3=Math.max(r.minAdj3,Math.min(r.adj1,1e5*e/r.h))}],horizontalScroll:[function(t,e,r){r.adj=Math.max(0,Math.min(25e3,1e5*t/Math.min(r.w,r.h)))}],leftArrowCallout:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.h/2-e)*2e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.h/2-e)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,(r.w-t)*1e5/r.w))}],leftBrace:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,1e5*e/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(1e5,1e5*e/r.h))}],leftBracket:[function(t,e,r){r.adj=Math.max(0,Math.min(r.maxAdj,1e5*e/Math.min(r.w,r.h)))}],leftRightArrowCallout:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.h/2-e)*2e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.h/2-e)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*t/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,(r.w/2-t)*2e5/r.w))}],mathDivide:[function(t,e,r){r.adj1=Math.max(1e3,Math.min(36745,(r.h/2-e)*2e5/r.h))},function(t,e,r){let s=r.h/2-r.h*r.adj1/2e5,n=r.h*r.adj3/1e5;r.adj2=Math.max(0,Math.min(r.maxAdj2,(s-n-e)*1e5/r.h))},function(t,e,r){r.adj3=Math.max(1e3,Math.min(r.maxAdj3,(r.w/2-t)*1e5/r.h))}],mathEqual:[function(t,e,r){let s=r.h/2-r.h*r.adj2/2e5;r.adj1=Math.max(0,Math.min(36745,(s-e)*1e5/r.h))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.mAdj2,(r.h/2-e)*2e5/r.h))}],mathMinus:[function(t,e,r){r.adj1=Math.max(0,Math.min(1e5,(r.h/2-e)*2e5/r.h))}],mathMultiply:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj1=Math.max(0,Math.min(51965,1e5*e/s))}],mathNotEqual:[function(t,e,r){let s=r.h/2-r.h*r.adj3/2e5;r.adj1=Math.max(0,Math.min(5e4,(s-e)*1e5/r.h))},function(t,e,r){let s=t-r.w/2;if(s>0){let t=Math.atan(2*s/r.h);r.adj2=Math.max(42e5,Math.min(66e5,t/I_+54e5))}else{let e=Math.PI/2-Math.atan(2*(t-2*(t-r.w/2)-r.w/2)/r.h);r.adj2=Math.max(42e5,Math.min(66e5,e/I_))}},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,(r.h/2-e)*2e5/r.h))}],mathPlus:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj1=Math.max(0,Math.min(73490,(r.h/2-e)*2e5/s))}],noSmoking:[function(t,e,r){let s=Math.min(r.w,r.h);r.adj=Math.max(0,Math.min(5e4,1e5*t/s))}],quadArrowCallout:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.w/2-t)*2e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(5e4,(r.w/2-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*e/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,(r.h/2-e)*2e5/r.h))}],ribbon:[function(t,e,r){r.adj1=Math.max(0,Math.min(33333,1e5*e/r.h))},function(t,e,r){r.adj2=Math.max(25e3,Math.min(75e3,(r.w/2-t)*2e5/r.w))}],ribbon2:[function(t,e,r){r.adj1=Math.max(0,Math.min(33333,(r.h-e)*1e5/r.h))},function(t,e,r){r.adj2=Math.max(25e3,Math.min(75e3,(r.w/2-t)*2e5/r.w))}],rightArrowCallout:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.h/2-e)*2e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.h/2-e)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,(r.w-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,1e5*t/Math.min(r.w,r.h)))}],rightBrace:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,1e5*e/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(1e5,1e5*e/r.h))}],rightBracket:[function(t,e,r){r.adj=Math.max(0,Math.min(r.maxAdj,1e5*e/Math.min(r.w,r.h)))}],smileyFace:[function(t,e,r){r.adj=Math.max(-4653,Math.min(4653,(e-16515*r.h/21600)*1e5/r.h))}],star10:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.h/2-e)*5e4/(r.h/2)))}],star12:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.h/2-e)*5e4/(r.h/2)))}],star16:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.h/2-e)*5e4/(r.h/2)))}],star24:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.h/2-e)*5e4/(r.h/2)))}],star32:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.h/2-e)*5e4/(r.h/2)))}],star5:[function(t,e,r){let s=r.h/2*1.10557;r.adj=Math.max(0,Math.min(5e4,(s-e)*5e4/s))}],star6:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.h/2-e)*5e4/(r.h/2)))}],star7:[function(t,e,r){let s=r.h/2*1.0521;r.adj=Math.max(0,Math.min(5e4,(s-e)*5e4/s))}],star8:[function(t,e,r){r.adj=Math.max(0,Math.min(5e4,(r.h/2-e)*5e4/(r.h/2)))}],sun:[function(t,e,r){r.adj=Math.max(12500,Math.min(46875,1e5*t/r.w))}],teardrop:[function(t,e,r){let s=r.w/2*Math.sqrt(2);r.adj=Math.max(0,Math.min(2e5,(t-r.w/2)*1e5/s/Math.cos(27e5*I_)))}],upArrowCallout:[function(t,e,r){r.adj1=Math.max(0,Math.min(r.maxAdj1,(r.w/2-t)*2e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj2=Math.max(0,Math.min(r.maxAdj2,(r.w/2-t)*1e5/Math.min(r.w,r.h)))},function(t,e,r){r.adj3=Math.max(0,Math.min(r.maxAdj3,1e5*e/Math.min(r.w,r.h)))},function(t,e,r){r.adj4=Math.max(0,Math.min(r.maxAdj4,(r.h-e)*1e5/r.h))}],verticalScroll:[function(t,e,r){r.adj=Math.max(0,Math.min(25e3,1e5*e/Math.min(r.w,r.h)))}],wave:[function(t,e,r){r.adj1=Math.max(0,Math.min(2e4,1e5*e/r.h))},function(t,e,r){r.adj2=Math.max(-1e4,Math.min(1e4,(t-r.w/2)*1e5/r.w))}],wedgeEllipseCallout:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,(t-r.w/2)*1e5/r.w)),r.adj2=Math.max(-2147483647,Math.min(2147483647,(e-r.h/2)*1e5/r.h))}],wedgeRectCallout:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,(t-r.w/2)*1e5/r.w)),r.adj2=Math.max(-2147483647,Math.min(2147483647,(e-r.h/2)*1e5/r.h))}],wedgeRoundRectCallout:[function(t,e,r){r.adj1=Math.max(-2147483647,Math.min(2147483647,(t-r.w/2)*1e5/r.w)),r.adj2=Math.max(-2147483647,Math.min(2147483647,(e-r.h/2)*1e5/r.h))}]};var E_=r(8);function N_(){}function L_(t){return Object.hasOwn(E_,t)?E_[t]:void 0}function j_(t){return 1e-10>Math.abs(t)?0:t}function R_(t,e){t=j_(t);let r=Math.atan2(e=j_(e),t);return r>=0?r:r+2*Math.PI}function O_(t,e,r){let s=Math.cos(r),n=Math.sin(r);return 0===j_(e)&&0===j_(n)||0===j_(t)&&0===j_(s)?r:R_(e*s,t*n)}function D_(t,e,r,s,n,a){if(0===t&&0===e)return{x:s,y:n};let i=O_(t,e,r),o=O_(t,e,a);return{x:s-t*Math.cos(i)+t*Math.cos(o),y:n-e*Math.sin(i)+e*Math.sin(o)}}Object.keys(E_).forEach((t=>{E_[t].getAdjustHandles=function(e){let r=this._getAdjustHandles(e),s=k_[t];return r.forEach(((t,e)=>{"handler"in t||(t.handler=s&&e<s.length?s[e]:N_)})),r}}));let F_=new Map([["b",t=>t.b],["h",t=>t.h],["hc",t=>(t.l+t.r)/2],["hd2",t=>t.h/2],["hd3",t=>t.h/3],["hd4",t=>t.h/4],["hd5",t=>t.h/5],["hd6",t=>t.h/6],["hd8",t=>t.h/8],["l",t=>t.l],["ls",t=>Math.max(t.w,t.h)],["r",t=>t.r],["ss",t=>Math.min(t.w,t.h)],["ssd2",t=>Math.min(t.w,t.h)/2],["ssd4",t=>Math.min(t.w,t.h)/4],["ssd6",t=>Math.min(t.w,t.h)/6],["ssd8",t=>Math.min(t.w,t.h)/8],["ssd16",t=>Math.min(t.w,t.h)/16],["ssd32",t=>Math.min(t.w,t.h)/32],["t",t=>t.t],["vc",t=>(t.t+t.b)/2],["w",t=>t.w],["wd2",t=>t.w/2],["wd3",t=>t.w/3],["wd4",t=>t.w/4],["wd5",t=>t.w/5],["wd6",t=>t.w/6],["wd8",t=>t.w/8],["wd10",t=>t.w/10],["wd12",t=>t.w/12],["wd32",t=>t.w/32],["3cd4",t=>162e5],["3cd8",t=>81e5],["5cd8",t=>135e5],["7cd8",t=>189e5],["cd2",t=>108e5],["cd4",t=>54e5],["cd8",t=>27e5]]);function B_(t){if("number"==typeof t)return e=>t;let e=F_.get(t);return e||(e=>e[t]??0)}let V_=t=>0;function H_(t){let e=t.trim().split(/\s+/);if(e.length<2)return V_;let r=[];for(let[t,s]of e.entries()){if(0===t)continue;let e=Number(s);r.push(B_(isFinite(e)?e:s))}switch(e[0]){case"*/":if(3!==r.length)return V_;return t=>r[0](t)*r[1](t)/r[2](t);case"+-":if(3!==r.length)return V_;return t=>r[0](t)+r[1](t)-r[2](t);case"+/":if(3!==r.length)return V_;return t=>(r[0](t)+r[1](t))/r[2](t);case"?:":if(3!==r.length)return V_;return t=>r[0](t)>0?r[1](t):r[2](t);case"abs":if(1!==r.length)return V_;return t=>Math.abs(r[0](t));case"at2":if(2!==r.length)return V_;return t=>108e5*R_(r[0](t),r[1](t))/Math.PI;case"cat2":if(3!==r.length)return V_;return t=>r[0](t)*Math.cos(R_(r[1](t),r[2](t)));case"cos":if(2!==r.length)return V_;return t=>r[0](t)*Math.cos(r[1](t)*Math.PI/108e5);case"max":if(2!==r.length)return V_;return t=>Math.max(r[0](t),r[1](t));case"min":if(2!==r.length)return V_;return t=>Math.min(r[0](t),r[1](t));case"mod":if(3!==r.length)return V_;return t=>Math.sqrt(Math.pow(r[0](t),2)+Math.pow(r[1](t),2)+Math.pow(r[2](t),2));case"pin":if(3!==r.length)return V_;return t=>Math.max(r[0](t),Math.min(r[1](t),r[2](t)));case"sat2":if(3!==r.length)return V_;return t=>r[0](t)*Math.sin(R_(r[1](t),r[2](t)));case"sin":if(2!==r.length)return V_;return t=>r[0](t)*Math.sin(r[1](t)*Math.PI/108e5);case"sqrt":if(1!==r.length)return V_;return t=>Math.sqrt(r[0](t));case"tan":if(2!==r.length)return V_;return t=>r[0](t)*Math.tan(r[1](t)*Math.PI/108e5);case"val":if(1!==r.length)return V_;return t=>r[0](t);default:return V_}}function G_(t,e,r,s){let n=s.w,a=s.h,i=[],o=[];for(let t of e)i.push(B_(t.x)),o.push(B_(t.y));return(e,s)=>{let l={};for(let[t,s]of r.entries()){let r=i[t],h=o[t],u=r(e);n&&(u=e.w*u/n),l["x"+s]=u;let c=h(e);a&&(c=e.h*c/a),l["y"+s]=c}return[{action:t,...l}]}}let z_=new WeakMap;function U_(t){return t.reduce(((t,e)=>{switch(e.action){case"M":t+=` M ${e.x} ${e.y}`;break;case"L":t+=` L ${e.x} ${e.y}`;break;case"C":t+=` C ${e.x1} ${e.y1} ${e.x2} ${e.y2} ${e.x} ${e.y}`;break;case"Q":t+=` Q ${e.x1} ${e.y1} ${e.x} ${e.y}`;break;case"A":t+=` A ${e.rx} ${e.ry} ${e.a} ${e.b} ${e.c} ${e.x} ${e.y}`;break;case"Z":t+=" Z "}return t}),"").trim()}function q_(t){return"Z"!==t.action}function $_(t){return ge(Math.round(t),0,255)}let J_=(t,e)=>$_(t+(255-t)*(e-1)),W_=(t,e)=>$_(t*e);function Z_(t,e){if(t===Fs)return t;let r=e>1?J_:W_;return t.startsWith("#")&&(t=t.slice(1)),[t.slice(0,2),t.slice(2,4),t.slice(4,6)].reduce(((t,s)=>t+r(parseInt(s,16),e).toString(16).padStart(2,"0")),"#")}function Y_(t,e){return e in t&&"number"==typeof t[e]}class X_{constructor(t){this.geometry=this.findGeometry(t),this.adjustValueNames=this.geometry.getAdjustValueNames(),this.defaultAdjustValues=this.geometry.getDefaultAdjustValues(),this.adjustHandles=this.geometry.getAdjustHandles(),this.connections=this.geometry.getConnections()}is(t){return this.getGeometryType()===t}isLine(){let t=this.getGeometryType();return"line"===t||"connect_line"===t||t.startsWith("bentConnector")||t.startsWith("curvedConnector")||t.startsWith("straightConnector")||"lineInv"===t}getPresetType(){return this.geometry.name}findGeometry(t){var e;let r=(e=this.getGeometryType())in S_?S_[e]:null;if("customGeometry"===r){let e;if(!t)return L_("rect");let r=z_.get(t);if(r)return r;try{e={name:"customGeometry",getConnections:function(t){if(!t)return()=>[];let e=[];for(let r of t)e.push(function(t){let e=B_(t.ang),r=B_(t.pos.x),s=B_(t.pos.y);return{ang:e,pos:t=>({x:r(t),y:s(t)})}}(r));return()=>e}(t.connectionList),updateShapeGuides:function(t){if(!t)return t=>{};let e=[];for(let r of t)e.push(H_(r.fmla));return r=>{for(let[s,n]of e.entries())r[t[s].name]=n(r)}}(t.shapeGuideList),getTextRect:function(t){if(!t)return t=>void 0;let e=B_(t.l),r=B_(t.t),s=B_(t.r),n=B_(t.b);return t=>({l:e(t),t:r(t),r:s(t),b:n(t)})}(t.rect),getPaths:function(t){if(!t)return t=>[];let e=[];for(let r of t)e.push(function(t){let e={h:t.h,w:t.w},r=function(t,e){let r=[];for(let s of t){let t;switch(s.action){case"arcTo":{let r=B_(s.arcAttrs.wR),n=B_(s.arcAttrs.hR),a=B_(s.arcAttrs.stAng),i=B_(s.arcAttrs.swAng);t=(t,s)=>{let o=r(t),l=n(t),h=a(t),u=i(t),c=o,p=l,d=h,y=u%216e5,x=0!==u&&0===y;x&&(y=108e5);let g=[];g.push(D_(c,p,d*Math.PI/108e5,s.x,s.y,(d+y)*Math.PI/108e5)),x&&(d-=108e5,g.push(D_(c,p,d*Math.PI/108e5,g[0].x,g[0].y,(d+y)*Math.PI/108e5))),e.w&&(c=c*t.w/e.w),e.h&&(p=p*t.h/e.h);let f=[];for(let r of g)e.w&&(r.x=r.x*t.w/e.w),e.h&&(r.y=r.y*t.h/e.h),f.push({action:"A",rx:c,ry:p,x:r.x,y:r.y,a:0,b:+(Math.abs(y)>108e5),c:y<0?0:1});return f};break}case"cubicBezTo":if(3!==s.points.length)break;t=G_("C",s.points,["1","2",""],e);break;case"lnTo":t=G_("L",[s.point],[""],e);break;case"moveTo":t=G_("M",[s.point],[""],e);break;case"quadBezTo":if(2!==s.points.length)break;t=G_("Q",s.points,["1",""],e);break;case"close":t=(t,e)=>[{action:"Z"}];break;default:continue}t&&r.push(t)}return t=>{let s=[],n={x:0,y:0};for(let a of r)for(let r of a(t,n))"Z"!==r.action&&(n.x=e.w?r.x*e.w/t.w:r.x,n.y=e.h?r.y*e.h/t.h:r.y),s.push(r);return s}}(t.paths,e);return e=>({stroke:t.stroke??!0,fill:t.fill??"norm",path:r(e)})}(r));return t=>{let r=[];for(let s of e)r.push(s(t));return r}}(t.pathList),getAdjustValueNames:function(t){if(!t)return()=>[];let e=[];for(let r of t)e.push(r.name);return()=>e}(t.adjustValueList),getDefaultAdjustValues:function(t){if(!t)return()=>({});let e={},r={l:0,t:0,r:0,b:0,w:0,h:0};for(let s of t)e[s.name]=H_(s.fmla)(r);return()=>e}(t.adjustValueList),getAdjustHandles:function(t){if(!t)return()=>[];let e=[];for(let r of t)e.push(function(t){let e=B_(t.point.x),r=B_(t.point.y);return{pos:t=>({x:e(t),y:r(t)}),handler:t=>({})}}(r));return()=>e}(void 0)}}catch{uo().error("Failed to create custom geometry"),e=E_.rect}return z_.set(t,e),e}let s=L_(r);if(!s)throw Error(`Non-supported geometry type \`${r}\`.`);return s}isAdjustable(){return this.adjustValueNames.length>0}getAdjustValueNames(){return this.adjustValueNames}getDefaultAdjustValues(){return this.defaultAdjustValues}getDefaultRectData(){return{w:120,h:120}}getDefaultAdjustData(){return null}createRectData(t){t||(t=this.getDefaultRectData());let e={l:0,t:0,r:0,b:0,w:0,h:0};return t&&(Y_(t,"w")?(e.w=t.w,!Y_(t,"l")&&Y_(t,"r")?(e.r=t.r,e.l=e.r-e.w):(e.l=t.l||0,e.r=e.l+e.w)):(e.l=t.l||0,e.r=t.r||0,e.w=e.r-e.l),Y_(t,"h")?(e.h=t.h,!Y_(t,"t")&&Y_(t,"b")?(e.b=t.b,e.t=e.b-e.h):(e.t=t.t||0,e.b=e.t+e.h)):(e.t=t.t||0,e.b=t.b||0,e.h=e.b-e.t)),e}createAdjustData(t){return this.extractAdjustData(t??this.getDefaultAdjustData()??W)}createGeometryData(t,e){let r={...this.createRectData(t),...this.createAdjustData(e)};return this.updateGeometryData(r),r}extractRectData(t){return _t(t,C_)}extractAdjustData(t){let e=this.getDefaultAdjustValues(),r=Object.create(null);for(let s of this.getAdjustValueNames()){let n=t[s];r[s]=Number.isFinite(n)?n:e[s]}return r}getTextRect(t){let e=this.geometry.getTextRect(t);return e?(e.w=e.r-e.l,e.h=e.b-e.t,e):{l:t.l,t:t.t,w:t.w,h:t.h,r:t.r,b:t.b}}getDefaultTransform(){let t=this.createRectData();return{left:t.l,top:t.t,width:t.w,height:t.h,deg:0,skewY:0}}getAdjustHandles(){return this.adjustHandles}getAdjustCount(){return this.getAdjustHandles().length}updateGeometryData(t){this.geometry.updateShapeGuides(t)}adjustGeometryData(t,e,r,s){e.handler(r,s,t),this.updateGeometryData(t)}resizeGeometryData(t,e,r){Object.assign(t,this.createRectData({w:e,h:r})),this.updateGeometryData(t)}getConnectionHandles(){return this.connections}getConnectionCount(){return this.getConnectionHandles().length}getPaths(t){return this.geometry.getPaths(t).map((t=>Object.assign(t,{define:this.pathDataToStr(t.path)})))}getPathsFromSize(t,e,r){return this.getPaths(this.createGeometryData({w:t,h:e},r))}pathDataToStr(t){return U_(t)}fillPathColor(t,e){t.color=this.getFillColor(t.fill,e)}fillAllPathsColor(t,e){for(let r of t)this.fillPathColor(r,e)}getFillColor(t,e){switch(t){case"none":return"none";case"darken":return Z_(e,.6);case"darkenLess":return Z_(e,.8);case"lightenLess":return Z_(e,1.2);case"lighten":return Z_(e,1.4);default:return e}}getDefaultStrokeConfig(){return{stroke:"#2e3133","stroke-opacity":1,"stroke-width":1}}getDefaultFillConfig(){return{fill:"#cce6ff","fill-opacity":1}}getDefaultPathConfig(){return{...this.getDefaultStrokeConfig(),...this.getDefaultFillConfig()}}createStrokeConfig(t){if(!1===t)return Object.create(null);let e=this.getDefaultStrokeConfig()||Object.create(null);return t&&bt(e,t,P_),e}createFillConfig(t){if(!1===t)return Object.create(null);let e=this.getDefaultFillConfig()||Object.create(null);return t&&bt(e,t,T_),e}createPathConfig(t,e){return{...this.createStrokeConfig(t),...this.createFillConfig(e)}}extractStrokeConfig(t){return _t(t,P_)}extractFillConfig(t){return _t(t,T_)}}class K_{getArrowType(){throw Error()}is(t){return this.getArrowType()===t}getLength(t,e){throw Error()}getPresetPaths(t,e){throw Error()}getPaths(t,e){return this.getPresetPaths(t,e).map((t=>({stroke:!0,fill:this.getArrowType().startsWith("hollow")?"none":"norm",...t})))}}let Q_=Math.sqrt(2.21);class tA extends K_{getArrowType(){return"triangle"}getTriangleSize(t){return Math.round(1.4*t)}getTriangleSpace(t){return t*Q_}getLength(t,e){return this.getTriangleSpace(e)+this.getTriangleSize(t)+e/2}getPresetPaths(t,e){let r=t/2,s=this.getTriangleSize(t),n=this.getTriangleSpace(e);return[{path:[{action:"M",x:n,y:0},{action:"L",x:n+s,y:-r},{action:"L",x:n+s,y:r},{action:"Z"}]}]}}let eA=Math.sqrt(4.21)/3;class rA extends K_{getArrowType(){return"circle"}getCircleSize(t){return t}getCircleSpace(t){return.5*t}getLength(t,e){return this.getCircleSize(t)+2*this.getCircleSpace(e)}getPresetPaths(t,e){let r=this.getCircleSize(t)/2,s=this.getCircleSpace(e);return[{path:[{action:"M",x:s,y:0},{action:"A",rx:r,ry:r,a:0,b:1,c:0,x:s+t,y:0},{action:"A",rx:r,ry:r,a:0,b:1,c:0,x:s,y:0}]}]}}class sA extends K_{getArrowType(){return"square"}getSquareSize(t){return t}getSquareSpace(t){return.5*t}getLength(t,e){return this.getSquareSize(t)+2*this.getSquareSpace(e)}getPresetPaths(t,e){let r=this.getSquareSize(t)/2,s=this.getSquareSpace(e);return[{path:[{action:"M",x:s,y:-r},{action:"L",x:s+t,y:-r},{action:"L",x:s+t,y:r},{action:"L",x:s,y:r},{action:"Z"}]}]}}let nA=Math.SQRT1_2;class aA extends K_{getArrowType(){return"diamond"}getDiamondSize(t){return t}getDiamondSpace(t){return t*nA}getLength(t,e){return this.getDiamondSize(t)+2*this.getDiamondSpace(e)}getPresetPaths(t,e){let r=this.getDiamondSize(t)/2,s=this.getDiamondSpace(e);return[{path:[{action:"M",x:s,y:0},{action:"L",x:s+r,y:-r},{action:"L",x:s+t,y:0},{action:"L",x:s+r,y:r},{action:"Z"}]}]}}let iA=t=>class extends t{getArrowType(){return"hollow_"+super.getArrowType()}};class oA extends(iA(tA)){}class lA extends(iA(rA)){}class hA extends(iA(sA)){}class uA extends(iA(aA)){}let cA=wt({none:class extends K_{getArrowType(){return"none"}getLength(t,e){return 0}getPresetPaths(t,e){return[]}},notched_triangle:class extends tA{getArrowType(){return"notched_triangle"}getNotchedTriangleSize(t){return Math.round(2.8*t/3)}getNotchedTriangleSpace(t){return t*eA}getLength(t,e){return this.getTriangleSpace(e)+this.getNotchedTriangleSize(t)+this.getNotchedTriangleSpace(e)}getPresetPaths(t,e){let r=super.getPresetPaths(t,e),s=this.getNotchedTriangleSize(t);return r.forEach((t=>{let e=t.path,r=e[0];e.splice(2,0,{action:"L",x:r.x+s,y:0})})),r}},triangle:tA,circle:rA,square:sA,diamond:aA,hollow_triangle:oA,hollow_circle:lA,hollow_square:hA,hollow_diamond:uA},(t=>new t));function pA(t){return q_(t)?t:null}function dA(t,e,r){switch(e.action){case"C":let{x:s,y:n,x1:a,y1:i,x2:o,y2:l}=e;return{x:(1-r)**3*t.x+3*(1-r)**2*r*a+3*(1-r)*r**2*o+r**3*s,y:(1-r)**3*t.y+3*(1-r)**2*r*i+3*(1-r)*r**2*l+r**3*n};case"Q":let{x:h,y:u,x1:c,y1:p}=e;return{x:(1-r)**2*t.x+2*(1-r)*r*c+r**2*h,y:(1-r)**2*t.y+2*(1-r)*r*p+r**2*u};case"L":let{x:d,y:y}=e;return{x:(1-r)*t.x+r*d,y:(1-r)*t.y+r*y}}return null}function yA(t,e,r){switch(t){case"C":case"Q":return Nt(e.start,e.end);case"L":return Nt(r.start,r.end)}return null}class xA extends X_{getGeometryType(){return"line"}getDefaultFillConfig(){return null}getTransformedArrowGeometryPaths(t,e,r,s){if(r=r||"none","none"===(e=e||"none")&&"none"===r||!t.length)return[];let n=t[0],a=1===s?6:4*s,i=[e,r].map(((t,e)=>{if("none"===t)return null;let r=0===e?function(t){if(t.length<2)return null;let e=pA(t[0]);if(!e)return null;let r=t[1],s=dA(e,r,"L"===r.action?1:.1);if(!s||!e)return null;let n=Math.atan2(s.y-e.y,s.x-e.x),a=pA(t[t.length-1]);if(!a)return null;let i=yA(r.action,{start:a,end:e},{start:s,end:e});return i?{radian:n,endPoint:e,lineLengthSquare:i}:null}(n.path):function(t){if(t.length<2)return null;let e=pA(t[t.length-2]);if(!e)return null;let r=t[t.length-1],s=dA(e,r,.9*("L"!==r.action)),n=pA(t[t.length-1]);if(!s||!n)return null;let a=Math.atan2(s.y-n.y,s.x-n.x),i=pA(t[0]);if(!i)return null;let o=yA(r.action,{start:i,end:n},{start:s,end:n});return o?{radian:a,endPoint:n,lineLengthSquare:o}:null}(n.path);return r?this.getTransformedArrowPaths(t,a,s,r.radian,r.endPoint,r.lineLengthSquare):null})).reduce(((t,e)=>(e&&e.forEach((e=>{t.push(Object.assign(e,{define:U_(e.path)}))})),t)),[]);return n.define=U_(n.path),i}getTransformedArrowPaths(t,e,r,s,n,a){let i=t in cA&&cA[t]||null;if(!i)return[];let o=i.getPaths(e,r),l=i.getLength(e,r),h=a<l*l;return this.transformArrowPaths(o,l,n,s,h),h||this.transformLineEndPoint(n,l,s,r),o}transformArrowPaths(t,e,r,s,n){let a;a=_o.createTranslate(r.x,r.y),a=_o.rotate(a,s*qt),n&&(a=_o.translate(a,-(e-1.5),0)),t.forEach((({path:t})=>{for(let e=t.length-1;e>=0;--e){let r=t[e];q_(r)&&(t[e]=_o.apply(r,a))}}))}transformLineEndPoint(t,e,r,s){let n=e-s/2;t.x+=n*Math.cos(r),t.y+=n*Math.sin(r)}getLineArrowPaths(t,e,r,s){let n=this.getPaths(t),a=this.getTransformedArrowGeometryPaths(n,e,r,s);return{line:n,arrow:a}}}class gA extends X_{getGeometryType(){return"rect"}}class fA extends gA{getDefaultTransform(){return null}getDefaultStrokeConfig(){return{stroke:"#000000","stroke-opacity":1,"stroke-width":1}}getDefaultFillConfig(){return{fill:"#ffffff","fill-opacity":1}}}class mA extends X_{getGeometryType(){return"customGeometry"}}function bA(t){return t.reduce(((t,e)=>{let r=new e;return t[r.getGeometryType()]=r,t}),Object.create(null))}let _A=bA([xA,class extends xA{getGeometryType(){return"connect_line"}},class extends xA{getGeometryType(){return"curvedConnector2"}},class extends xA{getGeometryType(){return"curvedConnector3"}},class extends xA{getGeometryType(){return"curvedConnector4"}},class extends xA{getGeometryType(){return"curvedConnector5"}},class extends xA{getGeometryType(){return"bentConnector2"}},class extends xA{getGeometryType(){return"bentConnector4"}},class extends xA{getGeometryType(){return"bentConnector5"}},class extends xA{getGeometryType(){return"straightConnector1"}},class extends xA{getGeometryType(){return"lineInv"}}]),AA={text:new fA,title:new fA,sub_title:new fA,body:new fA},MA=bA([gA,class extends X_{getGeometryType(){return"rect_round"}},class extends X_{getGeometryType(){return"rect_single_snip"}},class extends X_{getGeometryType(){return"rect_snip_same_side"}},class extends X_{getGeometryType(){return"rect_snip_diagonal"}},class extends X_{getGeometryType(){return"rect_snip_round"}},class extends X_{getGeometryType(){return"rect_single_round"}},class extends X_{getGeometryType(){return"rect_round_same_side"}},class extends X_{getGeometryType(){return"rect_round_diagonal"}},class extends X_{getGeometryType(){return"ellipse"}},class extends X_{getGeometryType(){return"triangle"}},class extends X_{getGeometryType(){return"right_triangle"}},class extends X_{getGeometryType(){return"parallelogram"}},class extends X_{getGeometryType(){return"trapezoid"}},class extends X_{getGeometryType(){return"diamond"}},class extends X_{getGeometryType(){return"pentagon"}},class extends X_{getGeometryType(){return"hexagon"}},class extends X_{getGeometryType(){return"heptagon"}},class extends X_{getGeometryType(){return"octagon"}},class extends X_{getGeometryType(){return"decagon"}},class extends X_{getGeometryType(){return"dodecagon"}},class extends X_{getGeometryType(){return"pie"}},class extends X_{getGeometryType(){return"chord"}},class extends X_{getGeometryType(){return"rect_frame"}},class extends X_{getGeometryType(){return"half_frame"}},class extends X_{getGeometryType(){return"l_shape"}},class extends X_{getGeometryType(){return"diagonal_stripe"}},class extends X_{getGeometryType(){return"cross"}},class extends X_{getGeometryType(){return"plaque"}},class extends X_{getGeometryType(){return"can"}},class extends X_{getGeometryType(){return"cube"}},class extends X_{getGeometryType(){return"bevel"}},class extends X_{getGeometryType(){return"donut"}},class extends X_{getGeometryType(){return"block_arc"}},class extends X_{getGeometryType(){return"folded_corner"}},class extends X_{getGeometryType(){return"lightning_bolt"}},class extends X_{getGeometryType(){return"moon"}},class extends X_{getGeometryType(){return"4_point_star"}},class extends X_{getGeometryType(){return"arrow"}},class extends X_{getGeometryType(){return"arrow_left"}},class extends X_{getGeometryType(){return"arrow_up"}},class extends X_{getGeometryType(){return"arrow_down"}},class extends X_{getGeometryType(){return"arrow_left_right"}getDefaultRectData(){return{...super.getDefaultRectData(),w:120,h:80}}},class extends X_{getGeometryType(){return"arrow_up_down"}getDefaultRectData(){return{...super.getDefaultRectData(),w:80,h:120}}},class extends X_{getGeometryType(){return"arrow_striped"}},class extends X_{getGeometryType(){return"arrow_notched"}},class extends X_{getGeometryType(){return"arrow_pentagon"}},class extends X_{getGeometryType(){return"arrow_chevron"}},class extends X_{getGeometryType(){return"bentArrow"}},class extends X_{getGeometryType(){return"curvedRightArrow"}},class extends X_{getGeometryType(){return"curvedLeftArrow"}},class extends X_{getGeometryType(){return"curvedUpArrow"}},class extends X_{getGeometryType(){return"curvedDownArrow"}},class extends X_{getGeometryType(){return"bentUpArrow"}},class extends X_{getGeometryType(){return"leftUpArrow"}},class extends X_{getGeometryType(){return"leftRightUpArrow"}},class extends X_{getGeometryType(){return"quadArrow"}},class extends X_{getGeometryType(){return"uturnArrow"}},class extends X_{getGeometryType(){return"accentBorderCallout1"}},class extends X_{getGeometryType(){return"accentBorderCallout2"}},class extends X_{getGeometryType(){return"accentBorderCallout3"}},class extends X_{getGeometryType(){return"accentCallout1"}},class extends X_{getGeometryType(){return"accentCallout2"}},class extends X_{getGeometryType(){return"accentCallout3"}},class extends X_{getGeometryType(){return"arc"}},class extends X_{getGeometryType(){return"borderCallout1"}},class extends X_{getGeometryType(){return"borderCallout2"}},class extends X_{getGeometryType(){return"borderCallout3"}},class extends X_{getGeometryType(){return"bracePair"}},class extends X_{getGeometryType(){return"bracketPair"}},class extends X_{getGeometryType(){return"callout1"}},class extends X_{getGeometryType(){return"callout2"}},class extends X_{getGeometryType(){return"callout3"}},class extends X_{getGeometryType(){return"circularArrow"}},class extends X_{getGeometryType(){return"cloud"}},class extends X_{getGeometryType(){return"cloudCallout"}},class extends X_{getGeometryType(){return"doubleWave"}},class extends X_{getGeometryType(){return"downArrowCallout"}},class extends X_{getGeometryType(){return"ellipseRibbon"}},class extends X_{getGeometryType(){return"ellipseRibbon2"}},class extends X_{getGeometryType(){return"flowChartAlternateProcess"}},class extends X_{getGeometryType(){return"flowChartCollate"}},class extends X_{getGeometryType(){return"flowChartConnector"}},class extends X_{getGeometryType(){return"flowChartDecision"}},class extends X_{getGeometryType(){return"flowChartDelay"}},class extends X_{getGeometryType(){return"flowChartDisplay"}},class extends X_{getGeometryType(){return"flowChartDocument"}},class extends X_{getGeometryType(){return"flowChartExtract"}},class extends X_{getGeometryType(){return"flowChartInputOutput"}},class extends X_{getGeometryType(){return"flowChartInternalStorage"}},class extends X_{getGeometryType(){return"flowChartMagneticDisk"}},class extends X_{getGeometryType(){return"flowChartMagneticDrum"}},class extends X_{getGeometryType(){return"flowChartMagneticTape"}},class extends X_{getGeometryType(){return"flowChartManualInput"}},class extends X_{getGeometryType(){return"flowChartManualOperation"}},class extends X_{getGeometryType(){return"flowChartMerge"}},class extends X_{getGeometryType(){return"flowChartMultidocument"}},class extends X_{getGeometryType(){return"flowChartOffpageConnector"}},class extends X_{getGeometryType(){return"flowChartOnlineStorage"}},class extends X_{getGeometryType(){return"flowChartOr"}},class extends X_{getGeometryType(){return"flowChartPredefinedProcess"}},class extends X_{getGeometryType(){return"flowChartPreparation"}},class extends X_{getGeometryType(){return"flowChartProcess"}},class extends X_{getGeometryType(){return"flowChartPunchedCard"}},class extends X_{getGeometryType(){return"flowChartPunchedTape"}},class extends X_{getGeometryType(){return"flowChartSort"}},class extends X_{getGeometryType(){return"flowChartSummingJunction"}},class extends X_{getGeometryType(){return"flowChartTerminator"}},class extends X_{getGeometryType(){return"heart"}},class extends X_{getGeometryType(){return"horizontalScroll"}},class extends X_{getGeometryType(){return"irregularSeal1"}},class extends X_{getGeometryType(){return"irregularSeal2"}},class extends X_{getGeometryType(){return"leftArrowCallout"}},class extends X_{getGeometryType(){return"leftBrace"}},class extends X_{getGeometryType(){return"leftBracket"}},class extends X_{getGeometryType(){return"leftRightArrowCallout"}},class extends X_{getGeometryType(){return"mathDivide"}},class extends X_{getGeometryType(){return"mathEqual"}},class extends X_{getGeometryType(){return"mathMinus"}},class extends X_{getGeometryType(){return"mathMultiply"}},class extends X_{getGeometryType(){return"mathNotEqual"}},class extends X_{getGeometryType(){return"mathPlus"}},class extends X_{getGeometryType(){return"noSmoking"}},class extends X_{getGeometryType(){return"quadArrowCallout"}},class extends X_{getGeometryType(){return"ribbon"}},class extends X_{getGeometryType(){return"ribbon2"}},class extends X_{getGeometryType(){return"rightArrowCallout"}},class extends X_{getGeometryType(){return"rightBrace"}},class extends X_{getGeometryType(){return"rightBracket"}},class extends X_{getGeometryType(){return"smileyFace"}},class extends X_{getGeometryType(){return"star10"}},class extends X_{getGeometryType(){return"star12"}},class extends X_{getGeometryType(){return"star16"}},class extends X_{getGeometryType(){return"star24"}},class extends X_{getGeometryType(){return"star32"}},class extends X_{getGeometryType(){return"star5"}},class extends X_{getGeometryType(){return"star6"}},class extends X_{getGeometryType(){return"star7"}},class extends X_{getGeometryType(){return"star8"}},class extends X_{getGeometryType(){return"sun"}},class extends X_{getGeometryType(){return"teardrop"}},class extends X_{getGeometryType(){return"upArrowCallout"}},class extends X_{getGeometryType(){return"verticalScroll"}},class extends X_{getGeometryType(){return"wave"}},class extends X_{getGeometryType(){return"wedgeEllipseCallout"}},class extends X_{getGeometryType(){return"wedgeRectCallout"}},class extends X_{getGeometryType(){return"wedgeRoundRectCallout"}}]),wA={..._A,...AA,...MA};function SA(t){return t in wA&&wA[t]||null}let CA=new WeakMap;function PA(t){let e=CA.get(t);if(e)return e;let r=new mA(t);return CA.set(t,r),r}function TA(t,e,r,s){return t<e?Math.min(t,e-r):t>e?Math.max(t,e+r):e+(s?r:-r)}function vA(t,e,r,s){return{x:TA(t.x,e.x,r,s),y:TA(t.y,e.y,r,s)}}function IA(t,e,r="none"){return"end"===r?t=vA(t,e,1,!1):e=vA(e,t,1,!0),{start:t,end:e}}function kA(t){return(t=yt(t,360))<=45||t>=315?"e":t<135?"s":t<=225?"w":"n"}function EA(t){let{pos:e,connection:r}=t;if(!r)throw Error("Missing connection.");return{pos:e,dir:kA(r.ang),bounds:r.bounds}}function NA(t,e){return{pos:e,dir:kA(Math.atan2(t.y-e.y,t.x-e.x)*qt),bounds:{l:e.x,t:e.y,r:e.x,b:e.y}}}function LA(t,e,r){if(0===r)return t;let s=e.apply(t.pos),n=e.apply({x:t.bounds.l,y:t.bounds.t}),a=e.apply({x:t.bounds.r,y:t.bounds.b}),i=t.dir;for(let t=0;t<r;++t)switch(i){case"n":i="e";break;case"e":i="s";break;case"s":i="w";break;case"w":i="n"}return{pos:s,dir:i,bounds:{l:Math.min(n.x,a.x),t:Math.min(n.y,a.y),r:Math.max(n.x,a.x),b:Math.max(n.y,a.y)}}}function jA(t){let{pos:e,bounds:r}=t;return{...t,bounds:{l:Math.min(r.l,e.x),t:Math.min(r.t,e.y),r:Math.max(r.r,e.x),b:Math.max(r.b,e.y)}}}class RA{constructor(t,e,r,s,n){this.geometry=t,this.data=e,this.strokeConfig=r,this.fillConfig=s,this.rectData=null,this.textRect=null,this.displayRect=null,this.adjustData=null,this.rawPaths=null,this.detailedPaths=null,this.allPaths=null}getGeometry(){return this.geometry}getGeometryType(){return this.getGeometry().getGeometryType()}getPresetName(){return this.getGeometry().getPresetType()}isGeometry(t){return this.getGeometry().is(t)}isGeometryLine(){return this.getGeometry().isLine()}getGeometryData(){return this.data}getArrowHead(){return"none"}getArrowTail(){return"none"}getRectLeft(){return this.getGeometryData().l}getRectTop(){return this.getGeometryData().t}getRectRight(){return this.getGeometryData().r}getRectBottom(){return this.getGeometryData().b}getRectWidth(){return this.getGeometryData().w}getRectHeight(){return this.getGeometryData().h}getRectCenter(){let{l:t,t:e,r:r,b:s}=this.getGeometryData();return{x:(t+r)/2,y:(e+s)/2}}computeRectData(){return this.getGeometry().extractRectData(this.getGeometryData())}getRectData(){return this.rectData||(this.rectData=this.computeRectData())}computeTextRect(){return this.getGeometry().getTextRect(this.getGeometryData())}getTextRect(){return this.textRect||(this.textRect=this.computeTextRect())}computeDisplayRect(){if(this.isGeometryLine())return{...this.getRectData()};let t=this.getGeometryData(),e=Math.min(t.l,t.r),r=Math.max(t.l,t.r),s=Math.min(t.t,t.b),n=Math.max(t.t,t.b);return this.getRawPaths().forEach((t=>{t.path.forEach((t=>{q_(t)&&(e=Math.min(e,t.x),r=Math.max(r,t.x),s=Math.min(s,t.y),n=Math.max(n,t.y))}))})),{l:e,t:s,r:r,b:n,w:r-e,h:n-s}}getDisplayRect(){return this.displayRect||(this.displayRect=this.computeDisplayRect())}computeAdjustData(){return this.getGeometry().extractAdjustData(this.getGeometryData())}getAdjustData(){return this.adjustData||(this.adjustData=this.computeAdjustData())}renderAdjustPoints(){let t=this.getGeometryData();return this.getGeometry().getAdjustHandles().map((e=>e.pos(t)))}getAdjustHandles(){return this.getGeometry().getAdjustHandles()}getConnectionHandles(){return this.getGeometry().getConnectionHandles()}getConnectionData(t){let e=this.getConnectionHandles().at(t);if(!e)return;let r=this.getGeometryData();return{pos:e.pos(r),ang:e.ang(r)/6e4}}computeRawPaths(){return this.getGeometry().getPaths(this.getGeometryData())}getRawPaths(){return this.rawPaths||(this.rawPaths=this.computeRawPaths())}computeDetailedPaths(){let t=this.getGeometry();if(!t.isLine())return{content:this.getRawPaths().slice(),decoration:[]};{let e=t.getLineArrowPaths(this.getGeometryData(),this.getArrowHead(),this.getArrowTail(),this.getStrokeWidth());return{content:e.line,decoration:e.arrow}}}getDetailedPaths(){return this.detailedPaths||(this.detailedPaths=this.computeDetailedPaths())}getContentPaths(){return this.getDetailedPaths().content}getDecorationPaths(){return this.getDetailedPaths().decoration}computeAllPaths(){return[...this.getContentPaths(),...this.getDecorationPaths()]}getAllPaths(){return this.allPaths||(this.allPaths=this.computeAllPaths())}getPaths(t="all"){switch(t){case"raw":return this.getRawPaths();case"content":return this.getContentPaths();case"decoration":return this.getDecorationPaths();default:return this.getAllPaths()}}_drawPathAttrs(t,e=W){let{stroke:r,fill:s}=e;return t.map((t=>{let e={d:t.define};if(!1!==r&&t.stroke&&Object.assign(e,this.getStrokeConfig(),r&&this.getGeometry().extractStrokeConfig(r)),!1!==s&&"none"!==t.fill){let r;if(this.isGeometryLine()){let t=this.getStrokeConfig();t.stroke&&(r={fill:t.stroke,"fill-opacity":t["stroke-opacity"]||1})}else r=this.getFillConfig();Object.assign(e,r,s&&this.getGeometry().extractFillConfig(s)),e.fill&&(e.fill=this.getGeometry().getFillColor(t.fill,e.fill))}return e}))}drawRawPathAttrs(t){return this._drawPathAttrs(this.getRawPaths(),t)}drawContentPathAttrs(t){return this._drawPathAttrs(this.getContentPaths(),t)}drawDecorationPathAttrs(t){return this._drawPathAttrs(this.getDecorationPaths(),t)}drawAllPathAttrs(t){return this._drawPathAttrs(this.getAllPaths(),t)}drawPathAttrs(t){return this._drawPathAttrs(this.getPaths(t?.type),t)}getStrokeConfig(){return this.strokeConfig}getFillConfig(){return this.fillConfig}getStroke(){return this.getStrokeConfig().stroke||"transparent"}getStrokeWidth(){return this.getStrokeConfig()["stroke-width"]||0}copy(t,e,r,s,n){return new this.constructor(t||this.getGeometry(),e||this.getGeometryData(),r||this.getStrokeConfig(),s||this.getFillConfig())}updateGeometryData(t,e){return this.copy(null,this.getGeometry().createGeometryData({...this.getRectData(),...t},{...this.getAdjustData(),...e}),null,null,null)}clearAdjustData(){return this.copy(null,this.getGeometry().createGeometryData(this.getRectData()),null,null,null)}resize(t,e){return this.updateGeometryData({w:t,h:e})}setAdjustPoint(t,e){let r=this.getAdjustHandles().at(t);if(!r)return this;let s={...this.getGeometryData()};return r.handler(e.x,e.y,s),this.getGeometry().updateGeometryData(s),this.copy(null,s,null,null,null)}updateStrokeFillConfig(t,e){let r=this.getGeometry();return this.copy(null,null,null==t?null:r.createStrokeConfig(t?{...this.getStrokeConfig(),...t}:t),null==e?null:r.createFillConfig(e?{...this.getFillConfig(),...e}:e),null)}updatePathConfig(t){return this.updateStrokeFillConfig(t,t)}clearFormat(){let t=this.getGeometry();return this.copy(null,null,t.createStrokeConfig(),t.createFillConfig(),null)}static create(t,e,r,s,n,a,i){let o;return(o="customGeometry"===t?a?PA(a):null:SA(t))?new this(o,o.createGeometryData(e,r),o.createStrokeConfig(s),o.createFillConfig(n),i):null}}function OA(t,e){let{x:r,y:s}=e,{l:n,t:a,r:i,b:o,w:l,h:h}=t;return{l:r+n,t:s+a,r:r+i,b:s+o,w:l,h:h}}class DA extends RA{static{this.defaults=Object.create(null)}constructor(t,e,r,s,n){super(t,e,r,s),this.config=n,this.imageRect=null,this.viewRect=null,this.paddingRect=null,this.clientViewRect=null,this.clientPaddingRect=null}getCustomConfig(){return this.config}extractShapeConfig(){let{w:t,h:e}=this.getRectData();return{...this.getCustomConfig(),schema:void 0,width:t,height:e,customized_points:this.getAdjustData(),...{stroke:"transparent","stroke-opacity":1,"stroke-width":1,...this.getStrokeConfig()},...{fill:"transparent","fill-opacity":1,...this.getFillConfig()}}}getDrawingSchema(){return this.getCustomConfig().schema}getAnchoryType(){return"break"===this.getCustomConfig().alignment?"absolute":"inline"}isInline(){return"inline"===this.getAnchoryType()}getZOrder(){return this.getCustomConfig().order||0}isFlipHorizontal(){return this.getCustomConfig().flip_h||!1}isFlipVertical(){return this.getCustomConfig().flip_v||!1}getRotateDegree(){return this.getCustomConfig().deg||0}getRotateRadian(){return this.getRotateDegree()*Ut}getViewDegree(){let t=this.getRotateDegree();return this.isFlipVertical()&&(t=yt(t+180,360)),t}getArrowHead(){return this.isGeometryLine()&&"arrow"===this.getCustomConfig().start_marker?"triangle":"none"}getArrowTail(){return this.isGeometryLine()&&"arrow"===this.getCustomConfig().end_marker?"triangle":"none"}getImageFileId(){return this.getCustomConfig().file_id||""}getImageCrop(){return this.getCustomConfig().crop||{l:0,t:0,r:0,b:0}}isImageCropped(){let t=this.getCustomConfig().crop;return!!t&&!!(t.l||t.t||t.r||t.b)}computeImageRect(){let t=this.getImageCrop(),e=this.getRectData();if(!t)return{...e};let r=t.l/1e5,s=t.t/1e5,n=t.r/1e5,a=t.b/1e5,i=e.w/(1-r-n),o=e.h/(1-s-a),l=-(i*r),h=-(o*s);return{l:l,t:h,w:i,h:o,r:l+i,b:h+o}}getImageRect(){return this.imageRect||(this.imageRect=this.computeImageRect())}getPosition(){let t=this.getCustomConfig();return{x:t.left||0,y:t.top||0}}getCenterPosition(){let{x:t,y:e}=this.getRectCenter(),r=this.getPosition();return r.x+=t,r.y+=e,r}computeViewRect(){let t=this.getRotateRadian(),e=Math.abs(Math.sin(t)),r=Math.abs(Math.cos(t)),{l:s,t:n,w:a,h:i}=this.getDisplayRect(),o=a*r+i*e,l=a*e+i*r,h=s+a/2-o/2,u=n+i/2-l/2;return{l:h,t:u,w:o,h:l,r:h+o,b:u+l}}getViewRect(){return this.viewRect||(this.viewRect=this.computeViewRect())}getViewPadding(){let t=this.getStrokeWidth(),e=this.getCustomConfig();return{l:t+(e.paddingLeft||0),t:t+(e.paddingTop||0),r:t+(e.paddingRight||0),b:t+(e.paddingBottom||0)}}computePaddingRect(){let t=this.getViewRect(),e=this.getViewPadding(),r=t.l-e.l,s=t.t-e.t,n=t.r+e.r,a=t.b+e.b;return{l:r,t:s,r:n,b:a,w:n-r,h:a-s}}getPaddingRect(){return this.paddingRect||(this.paddingRect=this.computePaddingRect())}computeClientViewRect(){return OA(this.getViewRect(),this.getPosition())}getClientViewRect(){return this.clientViewRect||(this.clientViewRect=this.computeClientViewRect())}computeClientPaddingRect(){return OA(this.getPaddingRect(),this.getPosition())}getClientPaddingRect(){return this.clientPaddingRect||(this.clientPaddingRect=this.computeClientPaddingRect())}computeViewMatrix({location:t=!1,locationRound:e=!1,flipMode:r,originateCenter:s=!1}=W){let n,a=qs.create();if(t){let{x:t,y:r}=this.getPosition();e&&(t=Math.round(t),r=Math.round(r)),a.translate(t,r)}let{x:i,y:o}=this.getRectCenter();a.rotate(this.getRotateDegree(),i,o),r&&("horizontal"===r?n=this.isFlipHorizontal():"vertical"===r&&(n=this.isFlipVertical()));let l=n??this.isFlipHorizontal(),h=n??this.isFlipVertical();if((l||h)&&a.translate(l?2*i:0,h?2*o:0).scale(l?-1:1,h?-1:1),s){let{x:t,y:e}=this.getRectCenter();a.prependTranslate(-t,-e).translate(t,e)}return a}renderTransform(t){return this.computeViewMatrix(t).toString()}copy(t,e,r,s,n){return new this.constructor(t||this.getGeometry(),e||this.getGeometryData(),r||this.getStrokeConfig(),s||this.getFillConfig(),n||this.getCustomConfig())}updateCustomConfig(t){return this.copy(null,null,null,null,{...this.getCustomConfig(),...t})}translateTo(t,e){return this.updateCustomConfig({left:t,top:e})}translate(t,e){let r=this.getPosition();return this.translateTo(r.x+t,r.y+e)}rotateTo(t){return this.updateCustomConfig({deg:yt(t,360)})}rotate(t){return this.rotateTo(this.getRotateDegree()+t)}flipTo(t=this.isFlipHorizontal(),e=this.isFlipVertical()){let r=0;t!==this.isFlipHorizontal()&&++r,e!==this.isFlipVertical()&&++r;let s=this.updateCustomConfig({flip_h:t,flip_v:e});return r%2!=0&&(s=s.rotateTo(-s.getRotateDegree())),s}flip(t,e){let r=this.isFlipHorizontal(),s=this.isFlipVertical();return this.flipTo(t?!r:r,e?!s:s)}clearFormat(){let t="picture"===this.getDrawingSchema()?{"stroke-width":0,fill:"none"}:null,e=this.getGeometry();return this.copy(null,null,e.createStrokeConfig(t),e.createFillConfig(t),null)}resetImage(){return this.updatePathConfig({stroke:"#2E3133","stroke-width":0}).updateCustomConfig({crop:void 0})}static getGraphBaseConfig(t,e){let r=t.createRectData(),s=t.createStrokeConfig(),n=t.createFillConfig();return{prst:t.getPresetType(),left:100,top:100,flip_h:!1,flip_v:!1,deg:0,paddingLeft:2,paddingTop:4,paddingRight:2,paddingBottom:0,width:r.w,height:r.h,customized_points:{},stroke:s.stroke,"stroke-opacity":s["stroke-opacity"],"stroke-width":s["stroke-width"],fill:n.fill,"fill-opacity":n["fill-opacity"]}}static getImageBaseConfig(t,e){return{...this.getGraphBaseConfig(t,e),..."binary"===e.file_type?{width:24,height:24}:null,"stroke-width":0,fill:"none",crop:{r:0,l:0,b:0,t:0}}}static ensureShapeConfig(t){let{width:e,height:r}=t;return e&&e<0&&(t.width=-e,t.flip_h=!t.flip_h),r&&r<0&&(t.height=-r,t.flip_v=!t.flip_v),Array.isArray(t.crop)&&(t.crop=void 0),t}static createFromShape(t){let e,r,s=t.schema;if(!s)return null;e="customGeometry"===t.type?t.custGeomDefinition?PA(t.custGeomDefinition):SA("rect"):SA(t.type)||SA("connector"===s?"line":"rect"),r="picture"===s?this.getImageBaseConfig(e,t):this.getGraphBaseConfig(e,t);let{width:n,height:a}=t=this.ensureShapeConfig({...r,...t}),i=e.isLine();return this.create(e.getGeometryType(),{w:"number"==typeof n&&(i||n)?n:void 0,h:"number"==typeof a&&(i||a)?a:void 0},t.customized_points,t,t,t.custGeomDefinition,{...t,schema:s})}static getDefault(t){let e=this.defaults;if(!e[t]){let r=this.createFromShape({schema:t});if(!r)throw Error(`Failed to create default ${t} geometry info.`);e[t]=r}return e[t]}}class FA extends Pa{static getSelfPropertyName(){return"Drawing"}get attrs(){return{id:sn.create({default:Tt,copyable:!1}),config:sn.create({default:{}})}}getCustomizeColors(t){let e=t.getAttrValue("config");return[e.fill,e.stroke]}getObjectSize(t){let e=t.getState("geometryInfo");if(!e)return{width:0,height:0};let{w:r,h:s}=e.getPaddingRect();return{width:r,height:s}}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"set_geometry",null,(t=>{t.setState("geometryInfo",DA.createFromShape({...t.getAttrValue("config"),schema:t.type.name}))}))}parseAttrsFromDom(t,e,r){let s;super.parseAttrsFromDom(t,e,r);try{let t=e.getAttribute("graph-config");t&&(s=JSON.parse(t))}catch{}if(s&&"object"==typeof s||(s=Object.create(null)),"string"==typeof s.prst&&s.prst&&!s.type){var n;let t=(n=s.prst,At(S_,(t=>{if(t===n)return!0})));t&&(s.type=t)}return Object.assign(t,{id:e.getAttribute("synograph")||Tt(),config:s})}get matchDOMTag(){return{[`span[data-syno-schema="doc:${this.name}"]`]:(t,e)=>this.parseDOM(t,e)}}renderAttrsDom(t,e,r){super.renderAttrsDom(t,e,r);let s=e.getAttrValue("config");return Object.assign(t,{classList:[`${this.classPrefix}drawing`],synograph:"clipboard"===r.target?"":e.getAttrValue("id"),"data-syno-schema":`doc:${this.name}`,"pm-ignore":"picture"===this.name?"self":null,"graph-config":JSON.stringify(s)})}toDOM(t,e){let r,s=e.target;return r=this.is("Leaf")?null:"clipboard"===s?0:["div",null,0],["span",this.renderAttrs(null,t,e),r]}}class BA extends FA{static getSelfPropertyName(){return"Shape"}parseContentSyno(t,e){let r=super.parseContentSyno(t,e);if(!r)return null;try{let t=this.create(null,r),e=[];t.descendants(((t,r)=>{if(t.is("Shape"))return e.push({from:r,to:r+t.nodeSize}),!1}));for(let r=e.length-1;r>=0;--r){let{from:s,to:n}=e[r];t=t.replace(s,n)}return t.content}catch{}return r}renderContentSyno(t,e){return t.content}}class VA extends FA{static getSelfPropertyName(){return"Connector"}}class HA extends FA{static getSelfPropertyName(){return"Picture"}getFileId(t){return t.getAttrValue("config")?.file_id}}let GA=sn.create({default:9,empty_value:0}),zA={anchor:sn.create({default:"ctr",empty_value:"t",normalizer:["t","ctr","b"]}),lIns:GA,tIns:GA,rIns:GA,bIns:GA},UA=t=>{class e extends(Ly(t)){static getSelfPropertyName(){return"TextBox"}get needHeightCalculating(){return!0}get attrs(){return{...super.attrs,...zA}}registerSelfLocalAttrsUpdateMap(){this.registerListContainer()}}return lg(e),e};class qA extends(UA(fa)){static getSelfPropertyName(){return"DocumentTextBox"}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_size","Shape",((t,e)=>{let r=e.getState("geometryInfo")||DA.getDefault("shape");t.setState("width",r.getRectWidth()),t.setState("height",r.getRectHeight());let s={...r.getTextRect()},[n,a,i,o]=["l","t","r","b"].map((e=>t.getAttrValue(`${e}Ins`)));if(r.isFlipHorizontal()!==r.isFlipVertical()){let t=r.getRectWidth()-s.r;s.l=t+n}else s.l+=n;s.t+=a,s.b-=o,s.w-=n+i,s.r=s.l+s.w,s.h-=a+o,t.setState("textRect",s)})),t.register(t.SELF_START,this.name,"set_text_rect_info",null,(t=>{t.setState("text_rect_info",{width:Math.max(t.getState("textRect").w,0),left:0})}))}toDOM(t,e){if("clipboard"===e.target)return null;let r=t.getState("width",0),s=t.getState("height",0),n=t.getState("textRect",W);return["div",this.renderAttrs({inline_style:{width:r+"px",height:s+"px"}},t,e),["div",{classList:[`${this.className}-area`],inline_style:{left:(n.l||0)+"px",top:(n.t||0)+"px",width:Math.max(n.w||0,0)+"px",height:Math.max(n.h||0,0)+"px",overflow:"hidden"}},["div",{classList:[`${this.className}-content`],inline_style:{width:"100%"}},0],["div",{classList:[`${this.className}-indicator`,"syno-o-pm-plugin-indicator-wrapper"],inline_style:{width:"100%",height:"100%"}}]]]}getIndicatorWrapperDOM(t){let e=t.firstElementChild?.lastElementChild;if(!e)throw Error("Indicator wrapper is missing.");return e}}let $A=wm.mergeSpec(sf,{name:"document",version:Cb,nodes:{doc:{type:Bb,content:"settings style_editor invisible edit_area page_decorate"},settings:{type:Hb},style_editor:{type:t_,content:Ub.map((({id:t,level:e})=>"style_paragraph"+(e>=0?`[headingId="${t}",headingLevel=${e}]`:""))).join(" ")},style_paragraph:{type:r_,content:"inline<_>*"},invisible:{type:s_,content:"drawing*"},edit_area:{type:a_,content:"basic_block (block | first_level_block)*"},page:{type:i_,content:"block*"},table:{type:o_},paragraph:{type:Qb},navigation:{type:l_,content:"basic_block block*"},horizontal_rule:{type:h_},page_break:{type:u_},image:{type:p_},chart:{type:c_},shape:{type:BA,content:"text_box"},connector:{type:VA},picture:{type:HA},text_box:{type:qA,content:"basic_block block*"},page_decorate:{type:x_,content:'header[type="cover"] header[type="even"] header[type="normal"] footer[type="cover"] footer[type="even"] footer[type="normal"] page_num'},header:{type:m_,content:"basic_block block*"},footer:{type:b_,content:"basic_block block*"},page_num:{type:__,content:"page_num_block"},page_num_block:{type:A_,content:"page_num_text<_>"},page_num_text:{type:M_}},groups:{basic_block:t=>{let e=t.slice(),r=e.indexOf("paragraph")+1;return e.splice(r,0,"horizontal_rule"),e},block:t=>{let e=t.slice(),r=e.indexOf("paragraph")+1;return e.splice(r,0,"horizontal_rule","navigation"),e},first_level_block:["page_break"],inline:t=>t.concat("shape","connector","picture","image","chart"),drawing:["shape","connector","picture"]},preset:function(t){return t.nodeFrom(["doc",null,null,t.nodeFrom(["style_editor",null,null,...Ub.map((({id:t,level:e})=>["style_paragraph",{...e>=0?{headingId:t,headingLevel:e}:null,lineHeight:1.15}]))])],"fill")},parsers:{heading:t=>new Xb},getInitialSelection:t=>{let e=t.resolve(t.queryChildOffset("edit_area",!0)+1);return gi.findNear(e,1,!0).toMultiSelection()}}),JA=new wm($A);class WA extends Sm{applyMigration(t,e){let r=t.type.schema.nodeType("paragraph"),s=[];return t.descendants(((t,e)=>{t.is("LegacyHeading")&&s.push(e)})),this.performReplacement(t,s,((t,e)=>{let s=t.resolve(e).self;if(!s)return null;let{synohead:n,level:a}=s.attrs,i=Object.assign(Object.create(null),s.attrs,{headingId:n,headingLevel:(parseInt(a,10)||1)-1});return{from:e,to:e+s.nodeSize,slice:vn.from(r.create(i,s.content))}}))}}WA.register("mergeHeadingParagraph");let ZA=t=>class extends t{static getSelfPropertyName(){return"LegacyHeading"}get attrs(){return{...super.attrs,synohead:sn.optional,level:sn.optional}}},YA={bold:"strong",italic:"em",fontsize:"font_size",fontfamily:"font_family",color:"color",bgcolor:"background_color",underline:"underline"};class XA extends Sm{constructor(t,e){super(t,e),this.styles=e&&e.style}_convertCustomStyle(t=W){let e=Object.create(null),{attrs:r,marks:s}=t;if(r&&(e.lineHeight=Rm(r.lineHeight),e.paddingTop=Om(r.paddingTop),e.paddingBottom=Om(r.paddingBottom)),null==e.lineHeight&&(e.lineHeight=1.5),s){let t=e.textMarks=[];rt(s,((e,r)=>{if(!1===e)return;let s=YA[r];if(!s)return;let n={_:s};!0!==e&&(n.value=e),t.push(n)}))}return e}convertCustomStyle(t){return Ub.map((e=>this._convertCustomStyle(t&&t[e.tag])))}applyMigration(t,e){let r,s,n,a=this.convertCustomStyle(this.styles),i=t.queryChild("style_editor");if(i&&!a)return t;let o=t.type.schema;return i?(r=i.node,n=(s=i.offset)+r.nodeSize):(r=o.nodeType("style_editor").createFilled(),s=n=t.queryChildOffset("edit_area",!0)),a&&(r=r.copyWithContent(r.content.map(((t,e,r)=>{let s=a[r];return s?t.copyWithAttrs(s):t})))),t.replace(s,n,vn.from(r))}getMigrationPosMap(t){return t.queryChild("style_editor")?null:Ho.create([t.queryChildOffset("edit_area",!0),0,2+2*(Gb+1)])}toJSON(t){let e=this.styles;return{...super.toJSON(t),...e&&{migration_options:{style:e}}}}}cc.jsonID("inheritCustomStyle",XA);let KA=["edit_area","header","footer","table_cell","navigation","list_item"];class QA extends Nm{shouldStartWithBasicBlock(t){return KA.includes(t.type.name)}}cc.jsonID("documentPrependBasicBlock",QA);let tM=t=>t=Vm(t=Lm(t)),eM={diff:{nodes:{paragraph:{type:tM},table_row:{content:"table_cell*"},table_cell:{type:ob},ordered_list:{type:Wm,content:"list_item+"},bullet_list:{type:Zm,content:"list_item+"},list_item:{type:Ym,content:"basic_block block*"},blockquote:{type:zm,content:"block+"},heading:(t,e)=>Object.assign(Object.create(null),e.paragraph,{type:ZA(tM(e.paragraph.type))}),doc:{content:t=>t&&t.replace(/(?:\s*\(\s*(?:style_editor|invisible)\s*\|\s*(?:style_editor|invisible)\s*\)){2}/,(t=>`${t}?`))}},groups:{block:t=>t.concat("heading","ordered_list","bullet_list","blockquote"),basic_block:t=>t.concat("heading","ordered_list","bullet_list")},marks:{code:Qm}},steps:[{stepType:QA.prototype.jsonID},{stepType:jm.prototype.jsonID},{stepType:Hm.prototype.jsonID},{stepType:Gm.prototype.jsonID},{stepType:Km.prototype.jsonID},{stepType:$m.prototype.jsonID},{stepType:rb.prototype.jsonID},{stepType:sb.prototype.jsonID},{stepType:WA.prototype.jsonID},{stepType:XA.prototype.jsonID}]},rM={diff:{nodes:{...["paragraph","style_paragraph","table","table_row","table_cell","navigation","horizontal_rule","page_break"].reduce(((t,e)=>(t[e]={type:lb},t)),Object.create(null)),paragraph:{type:t=>lb(ub(t))},style_paragraph:{type:t=>lb(ub(t))}},marks:{discussion:pb,insertion:xb,deletion:yb},preset:null},steps:[{stepType:fb.prototype.jsonID}]};class sM extends Sm{determineDrawingNodeTypeName(t){if(t.is("Drawing"))return t.type.name;if(!t.is("LegacyGraph"))return null;switch(t.getAttrValue("config").type){case"image":return"picture";case"line":case"connect_line":return"connector";default:return"shape"}}determineDrawingNodeType(t){let e=this.determineDrawingNodeTypeName(t);return e?t.type.schema.nodeType(e):null}computeDrawingNodeSize(t){if(t.is("Drawing")){let e=t.nodeSize;return t.is("Leaf")||t.descendants(((t,r)=>{t.is("LegacyGraph")&&(e+=this.computeDrawingNodeSize(t)-1)})),e}if(!t.is("LegacyGraph"))return 0;{let e=this.determineDrawingNodeType(t);return e?e.is("Leaf")?1:6:0}}convertDrawingNode(t){if(t.is("Drawing")){if(!t.is("Leaf")){let e=[];t.descendants(((t,r)=>{t.is("LegacyGraph")&&e.push(r)}));for(let r=e.length-1;r>=0;--r){let s=e[r],n=t.nodeAt(s);n&&n.is("LegacyGraph")&&(t=t.replace(s,s+n.nodeSize,vn.from(this.convertDrawingNode(n))))}}return t}if(!t.is("LegacyGraph"))return null;{let e=this.determineDrawingNodeType(t);if(!e)return null;let r=t.getAttrValue("config");return e.createFilled({id:t.getAttrValue("synograph"),config:{paddingLeft:2,paddingTop:4,paddingRight:2,paddingBottom:2,...r,type:"picture"===e.name?"rect":r.type}},null,t.marks)}}doCollectActionsInvisible(t,e,r){t.push({from:r+1,to:r+1+e.getContentSize(),nodes:e.childs().filter((t=>t.is("Drawing")||t.is("LegacyGraph")))})}doCollectActionsOther(t,e,r){e.descendants(((e,r)=>{if(e.is("LegacyGraph"))return t.push({from:r,to:r+e.nodeSize,nodes:[e]}),!1}),{start:r+1})}collectActions(t){let e=[];return t.forEach(((t,r)=>{t.is("Invisible")?this.doCollectActionsInvisible(e,t,r):this.doCollectActionsOther(e,t,r)})),e}applyMigration(t,e){return this.performReplacement(t,this.collectActions(t).map((t=>({...t,nodes:t.nodes.map(this.convertDrawingNode,this).filter((t=>!!t))}))),((t,{from:e,to:r,nodes:s})=>({from:e,to:r,slice:vn.from(s)})))}getMigrationPosMap(t){let e=[];return this.collectActions(t).forEach((({from:t,to:r,nodes:s})=>{Ho.appendRange(e,t,r-t,s.reduce(((t,e)=>t+this.computeDrawingNodeSize(e)),0))})),Ho.create(e)}}sM.register("convertGraphMigration");class nM extends Sm{collectMoveInfo(t){let e=t.queryAllChild("invisible"),r=t.queryChild("edit_area");return 0!==e.length&&r&&(1!==e.length||e[0].index!==r.index-1)?{sources:e,target:r}:null}applyMigration(t,e){let r=this.collectMoveInfo(t);if(!r)return t;let{sources:s,target:n}=r;if(1===s.length){let e=s[0];return t.replaceAll(vn.from(t.content.moveTo(e.index,e.index<n.index?n.index-1:n.index)))}{let e=t.getContent().slice();for(let{index:t}of s)e[t]=null;let r=[];for(let{node:t}of s)r.push(...t.getContent());return e.splice(n.index,0,s[0].node.copyWithContent(r)),t.replaceAll(vn.from(e.filter((t=>!!t))))}}getMigrationPosMap(t){let e=this.collectMoveInfo(t);if(!e)return null;let{sources:r,target:s}=e;if(1===r.length){let t=r[0];return new Go([t.offset,t.node.nodeSize,t.index<s.index?s.offset-t.node.nodeSize:s.offset])}{let t=[];for(let e of r)t.push(e.offset,e.node.nodeSize,0);let e=r.findIndex((({offset:t})=>s.offset<t));return t.splice((e<0?t.length:e)*3,0,s.offset,0,r.reduce(((t,{node:e})=>t+e.getContentSize()),2)),Ho.create(t)}}}nM.register("moveInvisiblePositionMigration");let aM={diff:{nodes:{doc:{content:t=>t&&t.replace(/style_editor|invisible/g,(t=>"style_editor"===t?"(invisible | style_editor)":"(style_editor | invisible)"))},invisible:{content:"(drawing | graph | image)*"},graph:{type:class extends Pa{static getSelfPropertyName(){return"LegacyGraph"}get attrs(){return{synograph:sn.create({default:Tt,copyable:!1}),config:sn.create({default:{}})}}getObjectSize(){return{width:0,height:0}}}}},groups:{inline:t=>t.concat("graph")},preset:t=>{let e=Array.from({length:7},((t,e)=>{let r=e-1;return{id:r>=0?`_heading${r}`:null,level:r}}));return t.nodeFrom(["doc",null,null,["invisible"],["style_editor",null,null,...e.map((({id:t,level:e})=>["style_paragraph",{...e>=0?{headingId:t,headingLevel:e}:null,lineHeight:1.15}]))]],"fill")}},steps:[{stepType:sM.prototype.jsonID},{stepType:nM.prototype.jsonID}]};class iM extends mb{}iM.register("documentAddSettingsMigration");let oM={diff:{nodes:{doc:{content:t=>t&&t.replace(/settings/g,"settings?")}}},steps:[{stepType:iM.prototype.jsonID}]},lM={type:t=>wb(_b(t))},hM={type:t=>Sb(Ab(t))},uM=new Em(JA,[null,null,null,null,null,null,null,eM,rM,aM,oM,{},{diff:{nodes:{paragraph:lM,style_paragraph:lM,edit_area:hM,text_box:hM,header:hM,footer:hM},marks:{font_family:bb,font_size:Mb}}}]),cM=13;function pM(t){Gt(t.prototype,"listConfigAttrs",Object.assign(Object.create(null),Jx,{align:Jx.align.copy({empty_value:"right"})}))}class dM extends fa{get copyable(){return!1}get classPrefix(){return"syno-o-slide-"}toCopyDOM(t,e){return["div",null,this.is("Leaf")?null:0]}}let yM=sn.create({deep:{id:sn.id,slideId:sn.optional,title:sn.optional}}),xM=sn.createOptional({empty_value:Z,normalizer:sn.createArrayNormalizer(yM)});function gM(t,e){return{...t,slideId:t.slideId??null,indexStarted:e,contentLength:0}}function fM(t,e){var r,s;let n;if(0===e.length)return[];let a=e.map((t=>({...t})));r=t[0],0!==(s=a).length&&(s.some((t=>t.slideId===r))||(s[0].slideId=r));let{slideIdToSettingIndexGetter:i,isSectionEmptyChecker:o}=function(t,e){let r=function(t){let e=new Set(t);return({slideId:t})=>!(t&&e.has(t))}(t),s=new Map;return e.forEach(((t,e)=>{let n=t.slideId;if(void 0!==n){if(s.has(n)||r(t)){t.slideId=void 0;return}s.set(n,e)}})),{isSectionEmptyChecker:r,slideIdToSettingIndexGetter:t=>s.get(t)}}(t,a),l=[],h=0;t.forEach(((t,e)=>{let r=i(t);if(void 0===r){if(!n)return;++n.contentLength;return}for(let t=h;t<r;++t)if(o(a[t])){l.push(gM(a[t],e));continue}h=Math.max(h,r),n=gM(a[r],e),l.push(n),++n.contentLength}));for(let e=h+1;e<a.length;++e)l.push(gM(a[e],t.length));return l}function mM(t){return fM(t.queryAll("/slide_container/slide").map((({node:t})=>t.getAttrValue("id"))),t.queryChildNode("settings",!0).getAttrValue("sections")??[])}function bM({offX:t,offY:e,extX:r,extY:s,flipH:n,flipV:a,rot:i}){let o=t,l=e,h=r,u=s;if(n&&(o+=h,h=-h),a&&(l+=u,u=-u),0!==i){let t=i*Math.PI/180,e=Math.sin(t),r=Math.cos(t),s=l+u/2;o=o+h/2-(h/2*r-u/2*e),l=s-(h/2*e+u/2*r)}return{left:o,top:l,width:h,height:u,deg:i,skewY:0}}function _M(t){return qs.from(..._o.fromTransform(t))}function AM(t){return Math.max(Math.abs(t),1)*Math.sign(t)}function MM(t){return{...t,width:AM(t.width),height:AM(t.height)}}function wM(t){return t.queryChildNode("SvgElement")?.getState("geometryInfo")??null}function SM(t){if("geometryInfo"in t)return t;if(!("node"in t))return null;{var e;if(!((e=t.node).is("Box")&&e.type.connectable))return null;let r=wM(t.node);return r?{geometryInfo:r,cxnIndex:t.cxnIndex}:null}}function CM(t){let e=SM(t);if(!e)return null;let{geometryInfo:r,cxnIndex:s}=e,n=r.getConnectionData(s);return n?r.getTransformMatrix().apply(n.pos):null}function PM(t){let e=SM(t);if(!e)return null;let{geometryInfo:r,cxnIndex:s}=e,n=r.getConnectionData(s);if(!n)return null;let{x:a,y:i,ang:o}=r.getTransformMatrix().applyDirected({x:n.pos.x,y:n.pos.y,ang:n.ang});return{pos:{x:a,y:i},connection:{ang:o,bounds:{...r.getTransformedRect()}}}}function TM(t,e,r){let{preset:s,transform:n,adjustValues:a}=function(t,e,r){let s=function(t){let e,{category:r,preset:s,margin:n}=t??{};return{category:r||(s?"line"===s?"line":s.startsWith("bentConnector")?"bent":s.startsWith("curvedConnector")?"curved":"line":"line"),margin:n??40,fixedEnd:"none"}}(r);return"line"===s.category?function(t,e,r,s){let n=r.x-e.x,a=r.y-e.y,i=Math.abs(n),o=Math.abs(a);return{preset:t,transform:{offX:(e.x+r.x)/2-i/2,offY:(e.y+r.y)/2-o/2,extX:i,extY:o,flipH:n<0,flipV:a<0,rot:0},adjustValues:L_(t).getDefaultAdjustValues()}}("line",t.pos,e.pos,0):(({start:t,end:e}=function(t,e,r){let{start:s,end:n}=IA(t.pos,e.pos,r);return{start:{...t,pos:s},end:{...e,pos:n}}}(t,e,s.fixedEnd)),function(t,e,r){let s,{category:n,margin:a}=r;if("line"===n)throw Error(`Invalid category: ${n}`);let i=function(t,e){let r=0;switch(t.dir){case"n":r=1;break;case"w":r=2;break;case"s":r=3}let s=90*r;if(r){let n=(t.pos.x+e.pos.x)/2,a=(t.pos.y+e.pos.y)/2,i=qs.createRotate(s,n,a);t=LA(t,i,r),e=LA(e,i,r)}return{start:t=jA(t),end:e=jA(e),rot:s}}(t,e);({start:t,end:e}=i);let o=i.rot,{pos:l,bounds:h}=t,{pos:u,dir:c,bounds:p}=e,d=u.x-l.x,y=u.y-l.y,x={};if("e"===c)Math.max(l.x,h.r)<p.l&&l.y>=p.t&&l.y<p.b?(s=5,x.adj1=1e5*((Math.max(l.x,h.r)+p.l)/2-l.x)/d,x.adj2=1e5*(p.b+a-l.y)/y,x.adj3=1e5*(p.r+a-l.x)/d):Math.max(u.x,p.r)<h.l&&u.y>=h.t&&u.y<h.b?(s=5,x.adj1=1e5*(h.r+a-l.x)/d,x.adj2=1e5*(h.b+a-l.y)/y,x.adj3=1e5*((Math.max(u.x,p.r)+h.l)/2-l.x)/d):(s=3,x.adj1=1e5*(Math.max(h.r,p.r)+a-l.x)/d);else if("w"===c)if(Math.min(u.x,p.l)>Math.max(l.x,h.r))s=3,x.adj1=5e4;else if(p.l<=h.r&&(p.t>h.b||p.b<h.t)){let t=p.t>h.b?(h.b+p.t)/2:(h.t+p.b)/2;s=5,x.adj1=1e5*(h.r+a-l.x)/d,x.adj2=1e5*(t-l.y)/y,x.adj3=1e5*(p.l-a-l.x)/d}else{let t=u.y>=l.y?Math.max(h.b,p.b)+a:Math.min(h.t,p.t)-a;s=5,x.adj1=1e5*(h.r+a-l.x)/d,x.adj2=1e5*(t-l.y)/y,x.adj3=1e5*(p.l-a-l.x)/d}else if("n"===c)Math.max(l.x,h.r)<u.x&&Math.min(u.y,p.t)>l.y?s=2:Math.max(l.x,h.r)<p.l&&l.y>=p.t?(s=4,x.adj1=1e5*((Math.max(l.x,h.r)+p.l)/2-l.x)/d,x.adj2=1e5*(p.t-a-l.y)/y):u.x<=h.r&&p.t>h.b?(s=4,x.adj1=1e5*(h.r+a-l.x)/d,x.adj2=1e5*((h.b+p.t)/2-l.y)/y):(s=4,x.adj1=1e5*(Math.max(h.r,p.r)+a-l.x)/d,x.adj2=1e5*(Math.min(h.t,p.t)-a-l.y)/y);else if("s"===c)Math.max(l.x,h.r)<u.x&&Math.max(u.y,p.b)<l.y?s=2:Math.max(l.x,h.r)<p.l&&l.y<=p.b?(s=4,x.adj1=1e5*((Math.max(l.x,h.r)+p.l)/2-l.x)/d,x.adj2=1e5*(p.b+a-l.y)/y):u.x<=h.r&&p.b<h.t?(s=4,x.adj1=1e5*(h.r+a-l.x)/d,x.adj2=1e5*((h.t+p.b)/2-l.y)/y):(s=4,x.adj1=1e5*(Math.max(h.r,p.r)+a-l.x)/d,x.adj2=1e5*(Math.max(h.b,p.b)+a-l.y)/y);else throw Error("Invalid direction.");let g=`${n}Connector${s}`,f=L_(g).getDefaultAdjustValues();for(let[t,e]of Object.entries(x))"number"!=typeof e||isFinite(e)||(x[t]=f[t]);let m=Math.abs(d),b=Math.abs(y),_=(l.x+u.x)/2-m/2,A=(l.y+u.y)/2-b/2;return{preset:g,transform:{offX:_,offY:A,extX:m,extY:b,flipH:l.x>u.x,flipV:l.y>u.y,rot:yt(-o,360)},adjustValues:{...f,...x}}}(t.connection?EA(t):NA(e.pos,t.pos),e.connection?EA(e):NA(t.pos,e.pos),s))}(t,e,r);return{preset:"bentConnector3"===s?"connect_line":s,transform:bM(n),adjustValues:a}}class vM extends RA{constructor(t,e,r,s,n){super(t,e,r,s),this.transform=n.transform,this.transformedRect=null}getCustomConfig(){return{transform:this.transform}}getTransform(){return this.transform}getTransformMatrix(){return _M(this.transform)}computeTransformedRect(){let{left:t,top:e,right:r,bottom:s}=Mo.fromTransform(this.transform);return{l:t,t:e,w:r-t,h:s-e,r:r,b:s}}getTransformedRect(){return this.transformedRect??=this.computeTransformedRect()}copy(t,e,r,s,n){return new this.constructor(t||this.getGeometry(),e||this.getGeometryData(),r||this.getStrokeConfig(),s||this.getFillConfig(),n||this.getCustomConfig())}updateCustomConfig(t){return this.copy(null,null,null,null,{...this.getCustomConfig(),...t})}updateTransform(t){return this.resize(Math.abs(t.width),Math.abs(t.height)).updateCustomConfig({transform:t})}}function IM(t){let e=[];return!function t(e,r,s){if(r.is("ObjectGroup"))r.forEach(((r,n)=>{e.push({node:r,offset:s+n}),r.is("ObjectGroup")&&t(e,r,s+n+1)}));else if(r.is("AbstractSlide")){let{node:n,offset:a}=r.query("ContentContainer",!0),i=s+a+1;n.forEach(((r,s)=>{e.push({node:r,offset:i+s}),r.is("ObjectGroup")&&t(e,r,i+s+1)}))}}(e,t,0),e}function kM(t,e){let r=e?.[t.cxnId];if(!r)return t;let s=wM(t.node);return s?(r.transform&&(s=s.updateTransform(r.transform)),r.adjustValues&&(s=s.updateGeometryData(void 0,r.adjustValues)),{geometryInfo:s,cxnIndex:t.cxnIndex}):t}function EM(t,e,r){let{self:s,pos:n}=t,a=r?.targetConnection??"all",i=IM(s),o=function(t,e){let r=new Map,s=e+1;for(let{node:e,offset:n}of t)r.set(e.getAttrValue("id")??"",{node:e,pos:s+n});return r}(i,n),l=function(t,e){let r=new Set,s=new Set(e),n=-1;for(let{node:e,offset:a}of t){let t=e.getAttrValue("id")??"";a<n?r.add(t):s.has(a)&&(r.add(t),e.is("ObjectGroup")&&(n=a+e.nodeSize))}return r}(i,e),h=[],u=n+1;for(let{node:t,offset:e}of i){if(!t.is("LineBox"))continue;let r=NM(t,o,!0),s=NM(t,o,!1);if(!r&&!s||"only_single"===a&&r&&s||"only_both"===a&&(!r||!s))continue;let n=l.has(t.getAttrValue("id")??""),i=r&&n!==l.has(r.cxnId),c=s&&n!==l.has(s.cxnId);if(i||c){let a;i&&c?a="none":i?a=n?"start":"end":c&&(a=n?"end":"start"),h.push({node:t,pos:u+e,startCxn:r,endCxn:s,fixedEnd:a})}}return h}function NM(t,e,r){let s=t.queryNode("Line",!0),n=s.getAttrValue(r?"cxn_start_id":"cxn_end_id");if(!n)return null;let a=e.get(n);return a&&a.node.type.connectable?{node:a.node,pos:a.pos,cxnId:n,cxnIndex:s.getAttrValue(r?"cxn_start_index":"cxn_end_index")??0}:null}function LM(t,e,r){let s=[];for(let n of EM(t,e,r)){let t=jM(n,r);if(!t)continue;let{node:e,pos:a}=n;s.push({pos:a,transform:Ao.split(e.getState("parent_transform"),t,e.getState("parent_transform_matrix"))})}return s}function jM({node:t,startCxn:e,endCxn:r,fixedEnd:s},n){let a,i=t.getState("transform");if(!i)return null;let o=e&&CM(kM(e,n?.overrideFloatings)),l=r&&CM(kM(r,n?.overrideFloatings));if(o&&l){let e,r;"line"!==(wM(t)?.getPresetName()??"line")?({start:e,end:r}=IA(o,l,s)):(e=o,r=l);let n=_M(i).inverse(),h=n.apply(e),u=n.apply(r);a=Ao.merge(i,{left:h.x,top:h.y,width:u.x-h.x,height:u.y-h.y,deg:0,skewY:0},t.getState("transform_matrix"))}else if(o){let t=Ao.getTopLeftPos(i);a=Ao.translate(i,o.x-t.x,o.y-t.y)}else{if(!l)return null;let t=Ao.getBottomRightPos(i);a=Ao.translate(i,l.x-t.x,l.y-t.y)}return a}function RM(t,e,r){let s=[];for(let n of EM(t,e,r)){let t=function(t,e){let{node:r,startCxn:s,endCxn:n,fixedEnd:a}=t;if(s&&n){let t=PM(kM(s,e?.overrideFloatings)),i=PM(kM(n,e?.overrideFloatings));return t&&i?TM(t,i,{preset:wM(r)?.getPresetName(),fixedEnd:a}):null}{let s=jM(t,e);if(!s)return null;let n=wM(r);return n?{preset:n.getGeometryType(),transform:s,adjustValues:{...n.getAdjustData()}}:null}}(n,r);t&&s.push({pos:n.pos,adaptation:t})}return s}class OM extends rx{static getSelfPropertyName(){return"PresentationSettings"}get attrs(){return{...super.attrs,sections:xM}}}class DM extends dM{static getSelfPropertyName(){return"ContentContainer"}get isContentContainer(){return!0}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_page_size",null,((t,e)=>{t.state.width=e.getPageWidth(),t.state.height=e.getPageHeight()}));let e=t=>t.getContentContainerNode();t.register(t.INHERITED_START,this.name,"find_inherit_content_container",null,((t,r)=>{if(!Bn.shouldInherited(t))return Bn.STATE_NONE;let s=r.getInheritSlide();return s?Bn.markInheritNodesPath(s.map(e)):Bn.STATE_NONE}))}showOverflowContent(t){this.getContentWrapperDOM(t.dom).style.overflow="visible"}hideOverflowContent(t){this.getContentWrapperDOM(t.dom).style.overflow="hidden"}getContentWrapperDOM(t){return t.firstElementChild}getCursorWrapperDOM(t){return t.children[1]}toRenderDOM(t,e){let r=t.getState("width")||0,s=t.getState("height")||0;return["div",this.renderAttrs({class:`${this.classPrefix}content-container`,inline_style:{position:"absolute",width:r+"px",height:s+"px"}},t,e),["div",{class:`${this.classPrefix}content-container-content`,inline_style:{position:"absolute",width:r+"px",height:s+"px"}},0],["div"]]}}class FM extends DM{static getSelfPropertyName(){return"MasterContentContainer"}}class BM extends DM{static getSelfPropertyName(){return"LayoutContentContainer"}}class VM extends DM{static getSelfPropertyName(){return"SlideContentContainer"}}class HM extends ny{getTableSize(t){return{width:t.getState("width",0),height:t.dom?t.dom_node.getContentHeight():0}}}class GM extends ay{}class zM extends iy{}class UM extends kn{constructor(){super(),this.set(WM,Object.create(null))}setPageWidth(t){this.set(qM,t)}getPageWidth(){return this.get(qM)}setPageHeight(t){this.set($M,t)}getPageHeight(){return this.get($M)}setPageSize(t,e){this.setPageWidth(t),this.setPageHeight(e)}getPageSize(){return{width:this.getPageWidth(),height:this.getPageHeight()}}resetMasterMap(){this.set(JM,Object.create(null))}setMasterMapItem(t,e){this.get(JM)[t]=e}getMasterMapItem(t){return this.get(JM)[t]}trimLayoutMap(){let t=this.get(WM),e=this.get(JM);for(let r in t)r in e||delete t[r]}resetLayoutMap(t){this.get(WM)[t]=Object.create(null)}setLayoutMapItem(t,e,r){this.get(WM)[t][e]=r}getLayoutMapItem(t,e){return this.get(WM)[t][e]}setMasterId(t){this.set(ZM,t)}getMasterId(){return this.get(ZM)}setMasterNode(t){this.set(YM,t)}getMasterNode(){return this.get(YM)}setMasterInfo(t,e){this.setMasterId(t),this.setMasterNode(e)}setLayoutId(t){this.set(XM,t)}getLayoutId(){return this.get(XM)}setLayoutNode(t){this.set(KM,t)}getLayoutNode(){return this.get(KM)}setLayoutInfo(t,e){this.setLayoutId(t),this.setLayoutNode(e)}setSlideId(t){this.set(QM,t)}getSlideId(){return this.get(QM)}setSlideNode(t){this.set(tw,t)}getSlideNode(){return this.get(tw)}setSlideInfo(t,e){this.setSlideId(t),this.setSlideNode(e)}setSlideIndex(t){this.set(ew,t)}getSlideIndex(){return this.get(ew)}setFloatingNode(t){this.set(rw,t)}getFloatingNode(){return this.get(rw)}setInheritSlideOnly(t){this.set(sw,t)}getInheritSlideOnly(){return this.get(sw)}setInheritSlide(t){this.set(nw,t)}getInheritSlide(){return this.get(nw)}setInheritHolder(t){this.set(aw,t)}getInheritHolder(){return this.get(aw)}setInheritHolderShape(t){this.set(iw,t)}getInheritHolderShape(){return this.get(iw)}setInheritHolderTextBlock(t){this.set(ow,t)}getInheritHolderTextBlock(){return this.get(ow)}setInheritedSlide(t){this.set(lw,t)}getInheritedSlide(){return this.get(lw)}setInheritedHolder(t){this.set(hw,t)}getInheritedHolder(){return this.get(hw)}setInheritedHolderShape(t){this.set(uw,t)}getInheritedHolderShape(){return this.get(uw)}setInheritedHolderTextBlock(t){this.set(cw,t)}getInheritedHolderTextBlock(){return this.get(cw)}setInheritedHolderParagraphArr(t){this.set(pw,t)}getInheritedHolderParagraphItem(t){let e=this.get(pw);return e&&(e[t]||e[e.length-1])}setNoteWidth(t){return this.set(dw,t)}getNoteWidth(){return this.get(dw)}}let qM=UM.registerIndex(),$M=UM.registerIndex(),JM=UM.registerIndex(),WM=UM.registerIndex(),ZM=UM.registerIndex(),YM=UM.registerIndex(),XM=UM.registerIndex(),KM=UM.registerIndex(),QM=UM.registerIndex(),tw=UM.registerIndex(),ew=UM.registerIndex(),rw=UM.registerIndex(),sw=UM.registerIndex(),nw=UM.registerIndex(),aw=UM.registerIndex(),iw=UM.registerIndex(),ow=UM.registerIndex(),lw=UM.registerIndex(),hw=UM.registerIndex(),uw=UM.registerIndex(),cw=UM.registerIndex(),pw=UM.registerIndex(),dw=UM.registerIndex();function yw(t,e){return!e||!t.attrs.type_id||e===t.attrs.type_id}function xw(t,e,r){return(!e||t.type[e])&&yw(t,r)}function gw(t,e,r){return(!e||e===t.type.holderType)&&yw(t,r)}class fw extends pa{createGlobalState(){return new UM}getMasterNodes(){return this.queryChildNode("master_container",!0).childs()}getMasterOffsets(){let t=[];return this.forEachMaster((function(e,r){t.push(r)}),this),t}getMasterDatas(){let t=[];return this.forEachMaster((function(e,r){t.push({node:e,offset:r})}),this),t}getMasterNode(t){let e=this.getMasterData(t);return e&&e.node}getMasterOffset(t){let e=this.getMasterData(t);return e?e.offset:NaN}getMasterData(t){return this.forEachMaster((function(e,r){if(!t||e.attrs.id===t)return{node:e,offset:r}}),this,!0)}forEachMaster(t,e,r){let{node:s,offset:n}=this.queryChild("master_container",!0),a=n+1;return s.forEach((function(r,s,n){return t.call(e,r,a+s,n)}),this,r)}getLayoutContainerNode(t){let e=this.getLayoutContainerData(t);return e&&e.node}getLayoutContainerOffset(t){let e=this.getLayoutContainerData(t);return e?e.offset:NaN}getLayoutContainerData(t){let e=this.getMasterData(t);if(!e)return null;{let t=e.node.getLayoutContainerData();return t.offset+=e.offset+1,t}}getLayoutNodes(t){if(t){let e=this.getMasterNode(t);return e&&e.getLayoutNodes()}{let t=[];return this.getMasterNodes().forEach((function(e){t.push(...e.getLayoutNodes())})),t}}getLayoutOffsets(t){let e=[];return this.forEachLayout(t,(function(t,r){e.push(r)}),this),e}getLayoutDatas(t){let e=[];return this.forEachLayout(t,(function(t,r){e.push({node:t,offset:r})}),this),e}getLayoutNode(t,e){let r=this.getLayoutData(t,e);return r&&r.node}getLayoutOffset(t,e){let r=this.getLayoutData(t,e);return r?r.offset:NaN}getLayoutData(t,e){return this.forEachLayout(t,(function(t,r){if(!e||e===t.attrs.id)return{node:t,offset:r}}),this,!0)}forEachLayout(t,e,r,s){let n;return this.forEachMaster((function(a,i,o){if(!t||a.attrs.id===t){let l=i+1;return(n=a.forEachLayout((function(t,s,n){return e.call(r,t,l+s,o,n)}),this,s))||!!t}}),this,s||t),n}getSlideCount(){return this.queryChildNode("slide_container",!0).childCount}getSlideNodes(t,e){if(!t&&!e)return this.queryChildNode("slide_container",!0).childs();{let r=[];return this.forEachSlide(t,e,(function(t){r.push(t)}),this),r}}getSlideOffsets(t,e){let r=[];return this.forEachSlide(t,e,(function(t,e){r.push(e)}),this),r}getSlideDatas(t,e){let r=[];return this.forEachSlide(t,e,(function(t,e){r.push({node:t,offset:e})}),this),r}getSlideNodeById(t){return t?this.queryChildNode("slide_container",!0).forEach((e=>t===e.attrs.id?e:null),null,!0):null}getSlideNode(t){return this.queryChildNode("slide_container",!0).maybeChild(t)}getSlideOffset(t){let{node:e,offset:r}=this.queryChild("slide_container",!0);return t<e.childCount?r+1+e.offsetAt(t):NaN}getSlideData(t){let{node:e,offset:r}=this.queryChild("slide_container",!0);return t<e.childCount?{node:e.child(t),offset:r+1+e.offsetAt(t)}:null}forEachSlide(t,e,r,s,n){let{node:a,offset:i}=this.queryChild("slide_container",!0),o=i+1;return a.forEach((function(n,a,i){if((!t||n.state.master_id===t)&&(!e||n.state.layout_id===e))return r.call(s,n,o+a,i)}),this,n)}createMasterNodeMap(){let t=Object.create(null);return this.forEachMaster((function(e){t[e.attrs.id]=e}),this),t}createLayoutNodeMap(){let t=Object.create(null);return this.forEachMaster((function(e){t[e.attrs.id]=e.createLayoutNodeMap()}),this),t}}class mw extends ha{getBackgroundIdx(){return 0}getBackgroundNode(){return this.child(this.getBackgroundIdx())}getBackgroundOffset(){return this.offsetAt(this.getBackgroundIdx())}getBackgroundData(){return{node:this.getBackgroundNode(),offset:this.getBackgroundOffset()}}getContentContainerIdx(){return 1}getContentContainerNode(){return this.child(this.getContentContainerIdx())}getContentContainerOffset(){return this.offsetAt(this.getContentContainerIdx())}getContentContainerData(){return{node:this.getContentContainerNode(),offset:this.getContentContainerOffset()}}getInsertFloatingOffset(){let t=this.getContentContainerData();return t.offset+t.node.nodeSize-1}getFloatingByFunc(t,e){let r=this.getContentContainerNode().childs();return e?r.find(t):r.filter(t)}getFloatingByTypeName(t,e){return this.getFloatingByFunc((function(e){return e.type.name===t}),e)}getFloatingByTypeCheckKey(t,e){return this.getFloatingByFunc((function(e){return e.type[t]}),e)}getHolderByTypeCheckKey(t,e,r){return this.getFloatingByFunc((function(r){return xw(r,t,e)}),r)}getHolderByType(t,e,r){return this.getFloatingByFunc((function(r){return gw(r,t,e)}),r)}getHolder(t,e){return this.getHolderByTypeCheckKey("isHolder",t,e)}getTitleHolder(t,e){return this.getHolderByTypeCheckKey("isTitleHolder",t,e)}getSubTitleHolder(t,e){return this.getHolderByTypeCheckKey("isSubTitleHolder",t,e)}getBodyHolder(t,e){return this.getHolderByTypeCheckKey("isBodyHolder",t,e)}getPageNumHolder(t,e){return this.getHolderByTypeCheckKey("isPageNumHolder",t,e)}getDateTimeHolder(t,e){return this.getHolderByTypeCheckKey("isDateTimeHolder",t,e)}forEachTopFloating(t,e,r){let s=this.getContentContainerData(),n=s.offset+1;return s.node.forEach((function(r,s,a){return t.call(e,r,n+s,a)}),this,r)}forEachFloating(t,e,r){return this.forEachTopFloating((function(s,n){let a=t.call(e,s,n);return r&&null!=a?a:s.type.isObjectGroup?s.forEachFloating((function(r,s){return t.call(e,r,n+1+s)}),this,r):a}),this,r)}forEachBox(t,e,r){return this.forEachFloating((function(r,s){if(!r.type.isObjectGroup)return t.call(e,r,s)}),this,r)}forEachHolder2(t,e,r){return this.forEachTopFloating((function(r,s){if(r.type.isHolder)return t.call(e,r,s)}),this,r)}forEachHolder(t,e,r,s,n){return this.forEachTopFloating((function(n,a){if(n.type.isHolder&&xw(n,t,e))return r.call(s,n,a)}),this,n)}forEachHolderByType(t,e,r,s,n){return this.forEachTopFloating((function(n,a){if(n.type.isHolder&&gw(n,t,e))return r.call(s,n,a)}),this,n)}}class bw extends mw{getLayoutContainerIdx(){return 2}getLayoutContainerNode(){return this.child(this.getLayoutContainerIdx())}getLayoutContainerOffset(){return this.offsetAt(this.getLayoutContainerIdx())}getLayoutContainerData(){return{node:this.getLayoutContainerNode(),offset:this.getLayoutContainerOffset()}}getInsertLayoutOffset(){let t=this.getLayoutContainerData();return t.offset+t.node.nodeSize-1}getLayoutNodes(){return this.getLayoutContainerNode().childs()}getLayoutOffsets(){let t=[];return this.forEachLayout((function(e,r){t.push(r)}),this),t}getLayoutDatas(){let t=[];return this.forEachLayout((function(e,r){t.push({node:e,offset:r})}),this),t}getLayoutNode(t){let e=this.getLayoutData(t);return e&&e.node}getLayoutOffset(t){let e=this.getLayoutData(t);return e?e.offset:NaN}getLayoutData(t){return this.forEachLayout((function(e,r){if(!t||e.attrs.id===t)return{node:e,offset:r}}),this,!0)}forEachLayout(t,e,r){let s=this.getLayoutContainerData(),n=s.offset+1;return s.node.forEach((function(r,s,a){return t.call(e,r,n+s,a)}),this,r)}createLayoutNodeMap(){let t=Object.create(null);return this.forEachLayout((function(e){t[e.attrs.id]=e}),this),t}}class _w extends mw{}class Aw extends mw{getNoteIdx(){return 2}getNoteNode(){return this.child(this.getNoteIdx())}getNoteOffset(){return this.offsetAt(this.getNoteIdx())}getNoteData(){return{node:this.getNoteNode(),offset:this.getNoteOffset()}}}class Mw extends ha{}class ww extends Mw{_forEachFloating(t,e,r,s){return this.forEach((function(n,a){a+=t;let i=e.call(r,n,a);return s&&null!=i?i:n.type.isObjectGroup?n._forEachFloating(a+1,e,r,s):i}),this,s)}forEachFloating(t,e,r){return this._forEachFloating(0,t,e,r)}forEachBox(t,e,r){return this.forEachFloating((function(r,s){if(!r.type.isObjectGroup)return t.call(e,r,s)}),this,r)}}class Sw extends Mw{getSvgElementNode(){return this.type.hasSvgElement?this.firstChild:null}getSvgElementOffset(){return this.type.hasSvgElement?0:NaN}getSvgElementData(){return this.type.hasSvgElement?{node:this.firstChild,offset:0}:null}getShapeNode(){return this.type.hasShape?this.firstChild:null}getShapeOffset(){return this.type.hasShape?0:NaN}getShapeData(){return this.type.hasShape?{node:this.getShapeNode(),offset:this.getShapeOffset()}:null}getTextBlockNode(){return this.type.hasTextBlock?this.type.hasSvgElement?this.firstChild.firstChild:this.firstChild:null}getTextBlockOffset(){return this.type.hasTextBlock?+!!this.type.hasSvgElement:NaN}getTextBlockData(){return this.type.hasTextBlock?this.type.hasSvgElement?{node:this.firstChild.firstChild,offset:1}:{node:this.firstChild,offset:0}:null}getFirstParagraphNode(){let t=this.getTextBlockNode();return t&&t.getFirstParagraphNode()}getFirstParagraphOffset(){let t=this.getTextBlockData();return t?t.offset+1+t.node.getFirstParagraphOffset():NaN}}class Cw extends ha{getTextBlockNode(){return this.child(0)}getTextBlockOffset(){return 0}getTextBlockData(){return{node:this.getTextBlockNode(),offset:this.getTextBlockOffset()}}getFirstParagraphNode(){return this.getTextBlockNode().getFirstParagraphNode()}getFirstParagraphOffset(){return this.getTextBlockOffset()+1+this.getTextBlockNode().getFirstParagraphOffset()}}class Pw extends ha{getFirstParagraphNode(){let t=this.getFirstParagraphData();return t&&t.node}getFirstParagraphOffset(){let t=this.getFirstParagraphData();return t?t.offset:NaN}getFirstParagraphData(){let t=this.firstChild,e=0;for(;t&&!t.type.isParagraph;)t=t.firstChild,++e;return t&&{node:t,offset:e}}}class Tw extends Pw{getHolderParagraphNodes(){return this.childs()}}class vw extends dM{}function Iw(t){return ht(t,"isDefaultTextWrapper",!0),st(t,"shouldShowDefaultText",(function(t){if(1!==t.childCount)return!1;let e=t.firstChild;return 0===e.childCount&&e.type.isTextblock})),st(t,"getDefaultTextWrapperAttrs",(function(t){return Object.create(null)})),st(t,"toDefaultTextWrapperDOM",(function(t,e){let r=this.getDefaultTextWrapperAttrs(t);return r.class=[this.classPrefix+"default-text-wrapper","ProseMirror-non-printable",r.class],["div",r]})),t}let{mixin:kw}=l;function Ew(t){return kw(t,"getHighlightSize",(function(t){throw Error("Override this.")})),kw(t,"_getHighlightSpacing",(function(t){let e=("stroke-width"in t.state.path_config?parseFloat(t.state.path_config["stroke-width"])/2:0)+1.5;return{left:e,top:e,right:e,bottom:e}})),kw(t,"getHighlightSpacing",(function(t){let e=this._getHighlightSpacing(t);return e.left+=0,e.top+=0,e.right+=0,e.bottom+=0,e})),kw(t,"getHighlightSvgDOM",(function(t){return this.getSvgDOM(t)})),kw(t,"getHighlightGroupDOM",(function(t){throw Error("Override this.")})),kw(t,"ensureHighlightGroupDOM",(function(t){return this.getHighlightGroupDOM(t)})),kw(t,"getHighlightDOM",(function(t){let e=this.getHighlightGroupDOM(t);return e&&e.firstChild})),kw(t,"clearHighlightInfo",(function(t,e){if(!e)return;let r=t.dom;e.onMouseOver&&r.removeEventListener("mouseover",e.onMouseOver),e.onMouseOut&&(e.onMouseOut(),r.removeEventListener("mouseout",e.onMouseOut));let s=this.getHighlightGroupDOM(r);s&&(s.removeAttribute("data-highlight-rank"),e.class_name&&s.classList.remove(e.class_name))})),kw(t,"setHighlightInfo",(function(t,e){let r=t.dom,s=this.getHighlightGroupDOM(r);s&&(e.onMouseOver&&r.addEventListener("mouseover",e.onMouseOver),e.onMouseOut&&r.addEventListener("mouseout",e.onMouseOut),s.setAttribute("data-highlight-rank",e.rank.toString()),e.class_name&&s.classList.add(e.class_name))})),kw(t,"updateHighlightDOM",(function(t,e){let r=this.getHighlightGroupDOM(t.dom);if(r){for(let t=r.firstChild;t;t=t.nextSibling)t.setAttribute("stroke",e.color),t.setAttribute("opacity",isNaN(e.opacity)?"0.5":e.opacity.toString());this.clearHighlightInfo(t,r.syno_highlight_array&&r.syno_highlight_array[0]),this.setHighlightInfo(t,e)}})),kw(t,"removeHighlightDOM",(function(t){let e=this.getHighlightGroupDOM(t.dom);if(e)for(;e.firstChild;)e.removeChild(e.firstChild);this.clearHighlightInfo(t,e.syno_highlight_array&&e.syno_highlight_array[0])})),kw(t,"updateHighlightArray",(function(t,e){let r=this.getHighlightGroupDOM(t.dom);if(!r)return;let s=r.syno_highlight_array||(r.syno_highlight_array=[]),n=s.indexOf(e);if(n<0){for(n=0;n<s.length&&!(s[n].rank<=e.rank);++n);s.splice(n,0,e)}else if(n>0){let t=e.rank;for(;n>0&&t===s[n-1].rank;--n)s[n]=s[n-1];s[n]=e}})),kw(t,"updateHighlightSize",(function(t,e=this.getHighlightSize(t)){let r=this.getHighlightGroupDOM(t.dom);if(!r)return;let s=this.getHighlightSpacing(t);for(let t=r.firstChild;t;t=t.nextSibling)t.setAttribute("x",-s.left),t.setAttribute("y",-s.top),t.setAttribute("width",e.width+s.left+s.right),t.setAttribute("height",e.height+s.top+s.bottom)})),kw(t,"showHighlight",(function(t,e){let r=this.ensureHighlightGroupDOM(t.dom);if(this.getHighlightDOM(t.dom)){let s=r.syno_highlight_array[0];if(s===e)return;s.rank<=e.rank&&this.updateHighlightDOM(t,e)}else{let s=this.getHighlightSize(t);r.appendChild(Ps(lo.createHighlightRect(s.width,s.height))),this.updateHighlightDOM(t,e),this.updateHighlightSize(t)}this.updateHighlightArray(t,e)})),kw(t,"removeHighlight",(function(t,e){if(!this.getHighlightDOM(t.dom))return;let r=this.getHighlightGroupDOM(t.dom),s=r.syno_highlight_array;if(!s)return;let n=s.indexOf(e);0===n?1===s.length?(this.removeHighlightDOM(t),delete r.syno_highlight_array):(this.updateHighlightDOM(t,s[1]),s.shift()):n>0&&s.splice(n,1)})),t}function Nw(t){kw(t,"_getHighlightSpacing",(function(t){return{left:2,top:2,right:2,bottom:2}})),kw(t,"getHighlightSvgWrapperDOM",(function(t){throw Error("Override this.")})),kw(t,"getHighlightSvgDOM",(function(t){return this.getHighlightSvgWrapperDOM(t).firstChild})),kw(t,"getHighlightGroupDOM",(function(t){let e=this.getHighlightSvgDOM(t);return e&&e.firstChild})),kw(t,"ensureHighlightGroupDOM",(function(t){let e=this.getHighlightGroupDOM(t);return e||(e=Ps(lo.createGroup()),this.getHighlightSvgWrapperDOM(t).appendChild(Ps(lo.createSvg(1,1,e)))),e})),kw(t,"removeHighlightDOM",(function(t){let e=this.getHighlightGroupDOM(t.dom),r=e&&e.syno_highlight_array&&e.syno_highlight_array[0],s=this.getHighlightSvgWrapperDOM(t.dom);for(;s.firstChild;)s.removeChild(s.firstChild);this.clearHighlightInfo(t,r)})),Ew(t);let e=t.prototype.updateHighlightSize;return kw(t,"updateHighlightSize",(function(t,r=this.getHighlightSize(t)){let s=this.getHighlightSvgDOM(t.dom);return s&&(s.setAttribute("width",r.width),s.setAttribute("height",r.height)),e.call(this,t,r)}),!0),t}function Lw(t){return kw(t,"showHighlight",(function(t,e){t.forEach((function(t){t.type.showHighlight&&t.type.showHighlight(t,e)}))})),kw(t,"removeHighlight",(function(t,e){t.forEach((function(t){t.type.removeHighlight&&t.type.removeHighlight(t,e)}))})),t}function jw(t){let e=t.getStateMap(),r=t=>t.getTextBlockNode();e.register(e.INHERITED_START,t.name,"find_inherit_holder_text_block",null,((t,e)=>{let s=e.getInheritHolderShape().map(r);return e.setInheritHolderTextBlock(s),Bn.markInheritNodesPath(s)})),e.register(e.INHERITED_END,t.name,"clear_inherit_holder_text_block",null,((t,e)=>{e.setInheritHolderTextBlock()})),e.register(e.UPDATE_START,t.name,"set_list_configs",null,(e=>{let r,s;if(e.getStateRank()<Bn.STATE_PASSING)return;let n=e.state.list_map,a=n&&n._;if(a){(a=Object.assign([],a)).forEach(((t,r)=>{let s=e.maybeChild(r)||e.firstChild;if(!s||!s.type.isListBlock)return;let n=s.getAttrValue("listId")?s.listMarksRawJSON:s.textMarksRawJSON;if(!n.length)return;let i=yn.mergeSetJSON(t.marks,n);a[r]=Object.assign(Object.create(null),t,{marks:i,marks_instance:e.type.schema.marksFromJSON(i)})}));let n="ol"===a.list_type,i=t.getInheritedListConfigs(e,n?"ul":"ol"),o=Object.assign([],a);o.forEach(((t,e)=>{let r=i[e];o[e]=Object.assign(Object.create(null),t,{format:r.format,text:r.text})})),"ol"===a.list_type?(r=a,s=o):(r=o,s=a)}e.state.ol_configs=r,e.state.ul_configs=s}))}function Rw(t){let e=t.getStateMap();e.register(e.UPDATE_START,t.name,"find_inherited_holder_text_block",null,((e,r)=>{let s=r.getInheritedHolderShape();s&&(s=s.getTextBlockNode(),r.setInheritedHolderTextBlock(s),r.setInheritedHolderParagraphArr(s.getHolderParagraphNodes()));let n=e.state,a=s?s.state:t.getDefaultAttrValues();return n.inherited_vertical_align===a.vertical_align&&n.inherited_padding===a.padding&&n.inherited_placeholderText===a.placeholderText&&n.inherited_ol_configs===a.ol_configs&&n.inherited_ul_configs===a.ul_configs?Bn.STATE_NONE:(n.inherited_vertical_align=a.vertical_align,n.inherited_padding=a.padding,n.inherited_placeholderText=a.placeholderText,n.inherited_ol_configs=a.ol_configs,n.inherited_ul_configs=a.ul_configs,n.inherit=!0,Bn.STATE_UPDATE)})),e.register(e.UPDATE_END,t.name,"clear_inherited_holder_text_block",null,((t,e)=>{e.setInheritedHolderTextBlock(),e.setInheritedHolderParagraphArr(),t.state.inherit=!1})),e.reorder(e.UPDATE_START,t.name,"set_list_info"),e.reorder(e.UPDATE_START,t.name,"set_list_configs")}function Ow(t){let e=t.prototype.attrs.listMap;ut(t,{listMap:{empty_value:Object.freeze({_:null}),normalizer:t=>{let r=e.normalizer.call(null,t);return!r||"_"in r||(r={...r,_:null}),r}}})}function Dw(t){return st(t,"setStateAlign",(function(t){let e=t.state,r=t.attrs.vertical_align,s="vertical_align"in t.attrs;return(!e.inherit||s)&&e.cached_attrs.vertical_align===r?Bn.STATE_NONE:(e.vertical_align=s?r:e.inherited_vertical_align,Bn.STATE_REDRAW)})),st(t,"setStatePadding",(function(t){let e=t.state,r=t.attrs.padding,s="padding"in t.attrs;return(!e.inherit||s)&&e.cached_attrs.padding===r?Bn.STATE_NONE:(e.padding=s?r:e.inherited_padding,Bn.STATE_REDRAW)})),st(t,"setStatePlaceholderText",(function(t){let e=t.state,r=t.attrs.placeholderText,s="placeholderText"in t.attrs;return(!e.inherit||s)&&e.cached_attrs.placeholderText===r?Bn.STATE_NONE:(e.placeholderText=s?r:e.inherited_placeholderText,Bn.STATE_REDRAW)})),t}class Fw extends(Ly(vw)){get isAbstractTextBlock(){return!0}get Node(){return Pw}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"set_text_block_transform_matrix",null,this.setStateTextBlockTransformMatrix.bind(this)),t.register(t.SELF_START,this.name,"set_editor_matrix",null,this.setStateEditorMatrix.bind(this)),this.registerListContainer()}setStateEditorMatrix(t,e){let r=t.state;r.editor_matrix=e.getFloatingNode().state.transform_matrix,r.reverse_matrix=_o.reverse(r.editor_matrix)}setStateTextBlockTransformMatrix(t,e){let r=t.state,s=e.getFloatingNode().state.transform;if((s.width?Math.sign(s.width):1)!=(s.height?Math.sign(s.height):1)){let t=(r.parent_text_rect.left+(r.parent_text_rect.left+r.parent_text_rect.width))/2;r.text_block_transform_matrix=_o.createFlip(-1,1,t,0)}else r.text_block_transform_matrix=_o.createDefault()}}lg(Fw),pM(Fw);class Bw extends Fw{get isSimpleTextBlock(){return!0}get attrs(){let t=sn.create({default:9});return Object.assign(Object.create(null),super.attrs,{vertical_align:sn.create({optional:!0,empty_value:-1}),padding:sn.create({optional:!0,deep:{left:t,top:t,right:t,bottom:t}})})}getIndicatorWrapperDOM(t){return t.firstChild.lastChild}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_parent_text_rect","isAbstractShape",function(t,e){t.state.parent_text_rect=e.state.text_rect}.bind(this)),t.register(t.SELF_START,this.name,"set_align",null,this.setStateAlign.bind(this)),t.register(t.SELF_START,this.name,"set_padding",null,this.setStatePadding.bind(this)),t.register(t.SELF_START,this.name,"set_text_rect",null,this.setStateTextRect.bind(this)),t.register(t.SELF_START,this.name,"set_text_rect_info",null,function(t){t.state.text_rect_info={width:t.state.text_rect.width,left:0}}.bind(this)),t.reorder(t.SELF_START,this.name,"set_editor_matrix")}setStateAlign(t){this.storeAttrToState(t,"vertical_align")}setStatePadding(t){this.storeAttrToState(t,"padding")}setStateTextRect(t){let e=t.state,r=e.parent_text_rect,s=e.padding;e.text_rect={left:r.left+s.left,top:r.top+s.top,width:Math.max(r.width-s.left-s.right,0),height:Math.max(r.height-s.top-s.bottom,0)}}setStateEditorMatrix(t,e){let r=t.state,s=e.getFloatingNode().state,n=_o.multiply2(s.transform_matrix,r.text_block_transform_matrix);r.editor_matrix=_o.translate(n,r.text_rect.left,r.text_rect.top),r.reverse_matrix=_o.reverse(r.editor_matrix)}toFlexItemArray(t,e){return[["div",{synoedit:"true",inline_style:{width:t.width+"px"}},0]]}getFlexContainerDOM(t){return t.firstChild.firstChild}getEditableAreaDOM(t){return this.getFlexContainerDOM(t).firstChild}toFlexDOM(t,e){let r=t.state,s=r.vertical_align;return s=s<0?"flex-start":s>0?"flex-end":"center",["div",{inline_style:{position:"absolute",width:r.text_rect.width+"px",height:r.text_rect.height+"px",display:"flex","align-items":s,"align-content":s}}]}toRenderDOM(t,e){let r=t.state.parent_text_rect,s=t.state.text_rect,n=this.toFlexDOM(t,e);return n.push(...this.toFlexItemArray(s,t)),["div",this.renderAttrs({class:`${this.classPrefix}text-block`,inline_style:{position:"absolute",left:r.left+"px",top:r.top+"px",width:r.width+"px",height:r.height+"px",transform:_o.toMatrixStr(t.state.text_block_transform_matrix),"transform-origin":"0 0"}},t,e),["div",{inline_style:{position:"absolute",left:s.left+"px",top:s.top+"px",width:s.width+"px",height:s.height+"px"}},n,lo.createIndicatorWrapper()]]}}class Vw extends Bw{get isHidableTextBlock(){return!0}checkPointerEvents(t){if(t.nodeSize>4)return!1;let e=t.firstChild;return!(e&&e.is("ListBlock")&&e.type.isValidListBlock(e))}disablePointerEvents(t){let e=this.getEditableAreaDOM(t.dom);e&&(e.style["pointer-events"]="none")}maybeDisablePointerEvents(t){if(this.checkPointerEvents(t))return this.disablePointerEvents(t)}enablePointerEvents(t){let e=this.getEditableAreaDOM(t.dom);e&&(e.style["pointer-events"]="auto")}maybeEnablePointerEvents(t){if(!this.checkPointerEvents(t))return this.enablePointerEvents(t)}setPointerEvents(t){return this.checkPointerEvents(t)?this.disablePointerEvents(t):this.enablePointerEvents(t)}}class Hw extends Vw{get isTextBlock(){return!0}}class Gw extends Vw{get isShapeTextBlock(){return!0}}class zw extends Fw{get isTableBlock(){return!0}getIndicatorWrapperDOM(t){return t.lastChild}getHighlightSize(t){let e=t.firstChild;return e.type.getTableSize(e)}getHighlightSvgWrapperDOM(t){return t.firstChild}displayHighlight(t){let e=this.getHighlightSvgWrapperDOM(t.dom);e&&(e.style.display=null)}hideHighlight(t){let e=this.getHighlightSvgWrapperDOM(t.dom);e&&(e.style.display="none")}getEditableAreaDOM(t){return t.childNodes[1]}getTableDOM(t){return this.getEditableAreaDOM(t).firstChild}toRenderDOM(t,e){return["div",this.renderAttrs({class:`${this.classPrefix}text-block`,inline_style:{position:"absolute",width:"100%",height:"100%"}},t,e),["div"],["div",{class:this.className+"-content",inline_style:{"pointer-events":"auto",position:"absolute"}},0],lo.createIndicatorWrapper()]}}Nw(zw);class Uw extends Bw{get isHolderTextBlock(){return!0}get attrs(){return{...super.attrs,placeholderText:sn.optional}}get Node(){return Tw}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_holder_type","isHolderShape",function(t,e){t.state.holder_type=e.state.holder_type}.bind(this)),t.register(t.SELF_START,this.name,"set_placeholder_text",null,this.setStatePlaceholderText.bind(this))}setStatePlaceholderText(t){this.storeAttrToState(t,"placeholderText")}computeJsonConversionAttrs(t,e){let r=super.computeJsonConversionAttrs(t,e);return"clipboard"===e.target&&e.useComputedStyle?{...r,vertical_align:t.getState("vertical_align"),padding:t.getState("padding"),placeholderText:t.getState("placeholderText")}:r}}class qw extends Uw{get isMasterHolderTextBlock(){return!0}registerSelfLocalAttrsUpdateMap(){jw(this)}}Ow(qw);class $w extends Uw{get isLayoutHolderTextBlock(){return!0}registerSelfLocalAttrsUpdateMap(){jw(this),Rw(this)}}Ow($w),Dw($w);class Jw extends Uw{get isSlideHolderTextBlock(){return!0}registerSelfLocalAttrsUpdateMap(){Rw(this)}getDefaultTextWrapperAttrs(t){return{inline_style:{"pointer-events":"auto",width:t.state.text_rect.width+"px"}}}getDefaultTextWrapperDOM(t){return this.getFlexContainerDOM(t).nextSibling.firstChild}toRenderDOM(t,e){let r=this.toFlexDOM(t,e);r.push(this.toDefaultTextWrapperDOM(t,e));let s=super.toRenderDOM(t,e);return s[2].splice(3,0,r),s}}Iw(Jw),Dw(Jw);class Ww extends Sg{get isPresentationParagraph(){return!0}getInheritedLevel(t,e){return t.getAttrValue("listLevel")}registerSelfLocalAttrsUpdateMap(t){t.register(t.FROM_PARENT,this.name,"set_holder_type",null,((t,e)=>{t.state.holder_type=e.state.holder_type})),t.register(t.UPDATE_START,this.name,"find_inherited_paragraph",null,((t,e)=>{let r=e.getInheritedHolderParagraphItem(this.getInheritedLevel(t,e)),s=t.state,n=r?r.state:W;return s.inherited_text_marks_json===n.text_marks_json&&s.inherited_text_marks===n.text_marks&&s.inherited_css_attrs===n.css_attrs&&s.inherited_indent_attrs===n.indent_attrs&&s.inherited_tab_attrs===n.tab_attrs?Bn.STATE_NONE:(s.inherited_text_marks_json=n.text_marks_json,s.inherited_text_marks=n.text_marks,s.inherited_css_attrs=n.css_attrs,s.inherited_indent_attrs=n.indent_attrs,s.inherited_tab_attrs=n.tab_attrs,s.inherit=!0,Bn.STATE_UPDATE)})),t.register(t.UPDATE_END,this.name,"clear_inherited_paragraph",null,(t=>{t.state.inherit=!1}))}}pM(Ww);class Zw extends(Xy(Ww)){get isHolderParagraph(){return!0}get textDraggable(){return!1}get forceSelection(){return!0}get attrs(){return{...super.attrs,placeholderText:sn.createOptional()}}}class Yw extends Ta{get isPageNumText(){return!0}getFieldText(t){let e=t.state.slide_num;return null==e?"#":e.toString()}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_slide_num",null,function(t,e){let r=e.getSlideNode()?e.getSlideIndex()+1:void 0;return t.state.slide_num===r?Bn.STATE_NONE:(t.state.slide_num=r,Bn.STATE_REDRAW)}.bind(this))}toDOM(t){return["span",this.getFieldText(t)]}}class Xw extends Ta{get attrs(){return{fieldType:sn.create({default:"datetime"})}}get isDateTimeText(){return!0}toDOM(t){return["span",""]}}class Kw{static getNodeFromDepth(t,e){return isNaN(e)?null:t.node(e)}static getPosFromDepth(t,e){return isNaN(e)?NaN:t.before(e)}static getDataFromDepth(t,e){return isNaN(e)?null:new un(t,e)}static getAncestorTypeDepth(t,e,r=1,s=0,n=t.depth+1){let a,i,o;if(s<0||n<0)return NaN;let l=Math.min(s,n),h=Math.max(s,n);h===t.depth+1&&!t.self&&h--,r>0?(a=l,i=h+1,o=1):(a=h,i=l-1,o=-1);let u,c=!1;for(u=a;u!==i;u+=o){let r=t.node(u);if(r&&r.type[e]){c=!0;break}}return c?u:NaN}static getAncestorTypeNode(t,e,r,s,n){return this.getNodeFromDepth(t,this.getAncestorTypeDepth(t,e,r,s,n))}static getAncestorTypePos(t,e,r,s,n){return this.getPosFromDepth(t,this.getAncestorTypeDepth(t,e,r,s,n))}static getAncestorTypeData(t,e,r,s,n){return this.getDataFromDepth(t,this.getAncestorTypeDepth(t,e,r,s,n))}static getAbstractSlideContainerDepth(t,e=t.depth+1){return this.getAncestorTypeDepth(t,"isAbstractSlideContainer",-1,0,e)}static getAbstractSlideContainerNode(t,e){return this.getNodeFromDepth(t,this.getAbstractSlideContainerDepth(t,e))}static getAbstractSlideContainerPos(t,e){return this.getPosFromDepth(t,this.getAbstractSlideContainerDepth(t,e))}static getAbstractSlideContainerData(t,e){return this.getDataFromDepth(t,this.getAbstractSlideContainerDepth(t,e))}static getMasterContainerDepth(t){return this.getAncestorTypeDepth(t,"isMasterContainer")}static getMasterContainerNode(t){return this.getNodeFromDepth(t,this.getMasterContainerDepth(t))}static getMasterContainerPos(t){return this.getPosFromDepth(t,this.getMasterContainerDepth(t))}static getMasterContainerData(t){return this.getDataFromDepth(t,this.getMasterContainerDepth(t))}static getLayoutContainerDepth(t){return this.getAncestorTypeDepth(t,"isLayoutContainer")}static getLayoutContainerNode(t){return this.getNodeFromDepth(t,this.getLayoutContainerDepth(t))}static getLayoutContainerPos(t){return this.getPosFromDepth(t,this.getLayoutContainerDepth(t))}static getLayoutContainerData(t){return this.getDataFromDepth(t,this.getLayoutContainerDepth(t))}static getSlideContainerDepth(t){return this.getAncestorTypeDepth(t,"isSlideContainer")}static getSlideContainerNode(t){return this.getNodeFromDepth(t,this.getSlideContainerDepth(t))}static getSlideContainerPos(t){return this.getPosFromDepth(t,this.getSlideContainerDepth(t))}static getSlideContainerData(t){return this.getDataFromDepth(t,this.getSlideContainerDepth(t))}static getAbstractSlideDepth(t){let e=this.getAbstractSlideContainerDepth(t,t.depth);return!isNaN(e)&&t.node(e+1)?e+1:NaN}static getAbstractSlideNode(t){return this.getNodeFromDepth(t,this.getAbstractSlideDepth(t))}static getAbstractSlidePos(t){return this.getPosFromDepth(t,this.getAbstractSlideDepth(t))}static getAbstractSlideData(t){return this.getDataFromDepth(t,this.getAbstractSlideDepth(t))}static getMasterDepth(t){return this.getAncestorTypeDepth(t,"isMaster")}static getMasterNode(t){return this.getNodeFromDepth(t,this.getMasterDepth(t))}static getMasterPos(t){return this.getPosFromDepth(t,this.getMasterDepth(t))}static getMasterData(t){return this.getDataFromDepth(t,this.getMasterDepth(t))}static getLayoutDepth(t){return this.getAncestorTypeDepth(t,"isLayout")}static getLayoutNode(t){return this.getNodeFromDepth(t,this.getLayoutDepth(t))}static getLayoutPos(t){return this.getPosFromDepth(t,this.getLayoutDepth(t))}static getLayoutData(t){return this.getDataFromDepth(t,this.getLayoutDepth(t))}static getSlideDepth(t){return this.getAncestorTypeDepth(t,"isSlide")}static getSlideNode(t){return this.getNodeFromDepth(t,this.getSlideDepth(t))}static getSlidePos(t){return this.getPosFromDepth(t,this.getSlideDepth(t))}static getSlideData(t){return this.getDataFromDepth(t,this.getSlideDepth(t))}static _getBackgroundNode(t){return t&&t.node}static _getBackgroundPos(t){return t?t.pos:NaN}static _getBackgroundData(t){if(!t)return null;let e,r=t.$pos,s=t.depth,n=t.node.getBackgroundIdx();return s<=r.depth&&n===r.index(s)?new un(r,s+1):new un(r.shrink(s-1).extendIndex([n]),s+1)}static getBackgroundNode(t){return this._getBackgroundNode(this.getBackgroundData(t))}static getBackgroundPos(t){return this._getBackgroundPos(this.getBackgroundData(t))}static getBackgroundData(t){return this._getBackgroundData(this.getAbstractSlideData(t))}static getMasterBackgroundNode(t){return this._getBackgroundNode(this.getMasterBackgroundData(t))}static getMasterBackgroundPos(t){return this._getBackgroundPos(this.getMasterBackgroundData(t))}static getMasterBackgroundData(t){return this._getBackgroundData(this.getMasterData(t))}static getContentContainerNode(t){let e=this.getAbstractSlideNode(t);return e?e.getContentContainerNode():null}static getContentContainerPos(t){let e=this.getContentContainerData(t);return e?e.pos:NaN}static getContentContainerEndPos(t){let e=this.getContentContainerData(t);return e?e.end_pos:NaN}static getContentContainerData(t){let e=this.getAbstractSlideData(t);if(!e)return null;t=e.$pos;let r,s=e.depth,n=e.node.getContentContainerIdx();return(r=s<=t.depth&&n===t.index(s)?new un(t,s+1):new un(t.shrink(s-1).extendIndex([n]),s+1)).end_pos=r.pos+r.node.nodeSize-1,r}static getNoteDepth(t){return this.getAncestorTypeDepth(t,"isNote",-1)}static getNoteNode(t){return this.getNodeFromDepth(t,this.getNoteDepth(t))}static getNotePos(t){return this.getPosFromDepth(t,this.getNoteDepth(t))}static getNoteData(t){return this.getDataFromDepth(t,this.getNoteDepth(t))}static getFloatingObjectDepth(t){return this.getAncestorTypeDepth(t,"isFloatingObject",-1)}static getFloatingObjectNode(t){return this.getNodeFromDepth(t,this.getFloatingObjectDepth(t))}static getFloatingObjectPos(t){return this.getPosFromDepth(t,this.getFloatingObjectDepth(t))}static getFloatingObjectData(t){return this.getDataFromDepth(t,this.getFloatingObjectDepth(t))}static getHolderDepth(t){return this.getAncestorTypeDepth(t,"isHolder",-1)}static getHolderNode(t){return this.getNodeFromDepth(t,this.getHolderDepth(t))}static getHolderPos(t){return this.getPosFromDepth(t,this.getHolderDepth(t))}static getHolderData(t){return this.getDataFromDepth(t,this.getHolderDepth(t))}static getMasterHolderDepth(t){return this.getAncestorTypeDepth(t,"isMasterHolder",-1)}static getMasterHolderNode(t){return this.getNodeFromDepth(t,this.getMasterHolderDepth(t))}static getMasterHolderPos(t){return this.getPosFromDepth(t,this.getMasterHolderDepth(t))}static getMasterHolderData(t){return this.getDataFromDepth(t,this.getMasterHolderDepth(t))}static getLayoutHolderDepth(t){return this.getAncestorTypeDepth(t,"isLayoutHolder",-1)}static getLayoutHolderNode(t){return this.getNodeFromDepth(t,this.getLayoutHolderDepth(t))}static getLayoutHolderPos(t){return this.getPosFromDepth(t,this.getLayoutHolderDepth(t))}static getLayoutHolderData(t){return this.getDataFromDepth(t,this.getLayoutHolderDepth(t))}static getControlObjectNode(t){let e=this.getBoxNode(t);return e?e.child(0):this.getObjectGroupNode(t,t.depth+1)}static getControlObjectPos(t){let e=this.getBoxPos(t);return isNaN(e)?this.getObjectGroupPos(t,t.depth+1):e+1}static getControlObjectData(t){let e=this.getBoxData(t);return e?new un(null,NaN,e.pos+1,e.node.child(0)):this.getObjectGroupData(t,t.depth+1)}static getAbstractTextBlockDepth(t){return this.getAncestorTypeDepth(t,"isAbstractTextBlock",-1)}static getAbstractTextBlockNode(t){return this.getNodeFromDepth(t,this.getAbstractTextBlockDepth(t))}static getAbstractTextBlockPos(t){return this.getPosFromDepth(t,this.getAbstractTextBlockDepth(t))}static getAbstractTextBlockData(t){return this.getDataFromDepth(t,this.getAbstractTextBlockDepth(t))}static getTextWrapperDepth(t){let e=this.getAbstractTextBlockDepth(t);return isNaN(e)&&(e=this.getNoteDepth(t)),e}static getTextWrapperNode(t){return this.getNodeFromDepth(t,this.getTextWrapperDepth(t))}static getTextWrapperPos(t){return this.getPosFromDepth(t,this.getTextWrapperDepth(t))}static getTextWrapperData(t){return this.getDataFromDepth(t,this.getTextWrapperDepth(t))}static getBoxDepth(t){return this.getAncestorTypeDepth(t,"isBox",-1)}static getBoxNode(t){return this.getNodeFromDepth(t,this.getBoxDepth(t))}static getBoxPos(t){return this.getPosFromDepth(t,this.getBoxDepth(t))}static getBoxData(t){return this.getDataFromDepth(t,this.getBoxDepth(t))}static getWithTextBoxDepth(t){return this.getAncestorTypeDepth(t,"isWithTextBox",-1)}static getWithTextBoxNode(t){return this.getNodeFromDepth(t,this.getWithTextBoxDepth(t))}static getWithTextBoxPos(t){return this.getPosFromDepth(t,this.getWithTextBoxDepth(t))}static getWithTextBoxData(t){return this.getDataFromDepth(t,this.getWithTextBoxDepth(t))}static getTopObjectGroupDepth(t,e=!1){return this.getAncestorTypeDepth(t,"isObjectGroup",1,0,e?t.depth+1:t.depth)}static getTopObjectGroupNode(t,e){return this.getNodeFromDepth(t,this.getTopObjectGroupDepth(t,e))}static getTopObjectGroupPos(t,e){return this.getPosFromDepth(t,this.getTopObjectGroupDepth(t,e))}static getTopObjectGroupData(t,e){return this.getDataFromDepth(t,this.getTopObjectGroupDepth(t,e))}static getObjectGroupDepth(t,e=t.depth){return this.getAncestorTypeDepth(t,"isObjectGroup",-1,0,e)}static getObjectGroupNode(t,e){return this.getNodeFromDepth(t,this.getObjectGroupDepth(t,e))}static getObjectGroupPos(t,e){return this.getPosFromDepth(t,this.getObjectGroupDepth(t,e))}static getObjectGroupData(t,e){return this.getDataFromDepth(t,this.getObjectGroupDepth(t,e))}static getTableCellDepth(t){return this.getAncestorTypeDepth(t,"isTableCell")}static getTableCellNode(t){return this.getNodeFromDepth(t,this.getTableCellDepth(t))}static getTableCellPos(t){return this.getPosFromDepth(t,this.getTableCellDepth(t))}static getTableCellData(t){return this.getDataFromDepth(t,this.getTableCellDepth(t))}}function Qw(t){let e=t.getStateMap();e.register(e.UPDATE_START,t.name,"set_master_layout_id",null,function(t,e){t.state.master_id=e.getMasterId(),t.state.layout_id=e.getLayoutId()}.bind(t))}class tS extends dM{get isAbstractSlideContainer(){return!0}toRenderDOM(t,e){return["div",this.renderAttrs({class:`${this.classPrefix}base-slide-container`},t,e),0]}}class eS extends(If(dM)){get isAbstractSlide(){return!0}get selectable(){return!0}get canSelectionLeave(){return!1}get Node(){return mw}toRenderDOM(t,e){return["div",this.renderAttrs({class:`${this.classPrefix}base-slide`},t,e),0]}toCopyDOM(t){let e=super.toCopyDOM(t);return e.pop(),e}}function rS(t){let e=t=>t.getBackgroundNode(),r=t.getStateMap();r.register(r.INHERITED_START,t.name,"find_inherit_background",null,function(t,r){return Bn.shouldInherited(t)?Bn.markInheritNodesPath(r.getInheritSlide().map(e)):Bn.STATE_NONE}.bind(t))}function sS(t){let e=t.getStateMap();e.register(e.UPDATE_START,t.name,"find_inherited_background",null,function(t,e){let r=e.getInheritedSlide()[0].getBackgroundNode(),s=t.state,n=r.state;return s.inherited_color===n.color&&s.inherited_opacity===n.opacity&&s.inherited_file_id===n.file_id?Bn.STATE_NONE:(s.inherited_color=n.color,s.inherited_opacity=n.opacity,s.inherited_file_id=n.file_id,s.inherit=!0,Bn.STATE_UPDATE)}.bind(t)),e.register(e.UPDATE_END,t.name,"clear_inherited_background",null,function(t){t.state.inherit=!1}.bind(t))}Lw(eS);class nS extends dM{get isBackground(){return!0}get attrs(){return{color:new sn({optional:!0}),opacity:new sn({optional:!0}),file_id:new sn({optional:!0})}}getFileId(t){return t.attrs.file_id}toRenderDOM(t,e){let r=t.state,s={width:r.width+"px",height:r.height+"px",position:"absolute",opacity:r.opacity+""};return r.file_id?(s["background-size"]="100% 100%",s["background-repeat"]="no-repeat"):r.color&&(s["background-color"]="#"+r.color),["div",this.renderAttrs({class:`${this.classPrefix}background`,inline_style:s},t,e)]}getHighlightSize(t){return{width:t.state.width,height:t.state.height}}getHighlightSvgWrapperDOM(t){return t}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_page_size",null,function(t,e){t.state.width=e.getPageWidth(),t.state.height=e.getPageHeight()}.bind(this)),t.register(t.SELF_START,this.name,"merge_background",null,function(t){let e=t.state,r=t.attrs;return(!e.inherit||r.file_id||r.color)&&e.cached_attrs===r?Bn.STATE_NONE:(r.file_id?(e.color=null,e.opacity="opacity"in r?r.opacity:1,e.file_id=r.file_id):r.color?(e.color=r.color,e.opacity="opacity"in r?r.opacity:1,e.file_id=null):(e.color=e.inherited_color,e.opacity=e.inherited_opacity,e.file_id=e.inherited_file_id),Bn.STATE_REDRAW)}.bind(this));let e=function(t,e){return Math.round((255&t)*e+255*(1-e))};t.register(t.SELF_START,this.name,"calculate_contrast_color",null,(t=>{let r=t.state,s=parseInt(r.color,16);if(isNaN(s)||s<0)s="000000";else{let t=parseFloat(r.opacity);s=.299*e(s>>16,t)+.587*e(s>>8,t)+.114*e(s,t)>186?"000000":"ffffff"}r.contrast_color=s}))}getCustomizeColors(t){let e=[];return t.attrs.color&&e.push(t.attrs.color),e}}Nw(nS);class aS extends dM{get isFloatingObject(){return!0}get selectable(){return!0}get canSelectionLeave(){return!1}get copyable(){return!0}get groupable(){return!0}get connectable(){return!1}get Node(){return Mw}get attrs(){return{id:new sn({default:Tt,copyable:-1}),transform:new sn({deep:Ao.getAttrs()})}}computeJsonConversionAttrs(t,e){let r=super.computeJsonConversionAttrs(t,e);return"clipboard"!==e.target||(r=jt(r),e.use_abs_transform&&(r.transform=this.getAbsTransform(t))),r}getAbsTransform(t){return t.state.transform}getAbsMatrix(t){return t.state.transform_matrix}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_floating_node",null,function(t,e){e.setFloatingNode(t)}.bind(this)),t.register(t.UPDATE_END,this.name,"clear_global_floating_node",null,function(t,e){e.setFloatingNode()}.bind(this)),t.register(t.FROM_PARENT,this.name,"record_parent_transform_and_matrix","isObjectGroup",this.setLocalParentTransform.bind(this)),t.register(t.FROM_PARENT,this.name,"reset_parent_transform_and_matrix","isContentContainer",this.setLocalParentTransform.bind(this)),t.register(t.SELF_START,this.name,"merge_transform",null,this.setLocalTransform.bind(this)),t.register(t.SELF_END,this.name,"clear_record_parent_transform_and_matrix",null,function(t){t.state.inherit=!1}.bind(this))}setLocalParentTransform(t,e){let r=t.state,s=e.state;return r.parent_transform===s.transform?Bn.STATE_NONE:(r.parent_transform=s.transform,r.parent_transform_matrix=s.transform_matrix,r.inherit=!0,Bn.STATE_UPDATE)}setLocalTransform(t){let e=t.state;return e.inherit||e.cached_attrs.transform!==t.attrs.transform?(e.transform=Ao.merge(e.parent_transform,t.attrs.transform,e.parent_transform_matrix),e.transform_matrix=_o.fromTransform(e.transform),Bn.STATE_REDRAW):Bn.STATE_NONE}renderAttrsDom(t,e,r){super.renderAttrsDom(t,e,r);let s=t.inline_style||(t.inline_style=Object.create(null));return Object.assign(t,{class:[`${this.classPrefix}floating`,t.class],"data-id":e.attrs.id,inline_style:Object.assign(s,{position:"absolute"})})}toRenderDOM(t,e){return["div",this.renderAttrs(null,t,e),0]}}Lw(aS);let{mixin:iS,mixinGetterValue:oS,mixinTypeAttr:lS}=l;function hS(t){return oS(t,"supportNodeLink",!0),lS(t,"synolink",new sn({optional:!0})),iS(t,"hasNodeLink",(function(t){return!!t.attrs.synolink})),t}class uS extends(If(aS)){get isBox(){return!0}get hasSvgElement(){return!0}get connectable(){return!0}get Node(){return Sw}toRenderDOM(t,e){let r=t.state.transform,s=t.state.transform_matrix,n=["div",this.renderAttrs({inline_style:{position:"absolute",width:r.width+"px",height:r.height+"px","transform-origin":"0px 0px",transform:Ao.matrixToStr(s)}},t,e),0];return"viewer"===e.target&&this.supportNodeLink&&this.hasNodeLink(t)&&(n[0]="a",n[1]={...n[1],inline_style:{...n[1].inline_style,display:"block"}}),n}}class cS extends uS{get isWithTextBox(){return!0}get hasTextBlock(){return!0}}class pS extends cS{get isSimpleTextBox(){return!0}get hasShape(){return!0}isContentEmpty(t){return t.nodeSize<=8}}hS(pS);class dS extends uS{get isLineBox(){return!0}get connectable(){return!1}}hS(dS);class yS extends uS{get isImageBox(){return!0}}hS(yS);class xS extends uS{get isChartBox(){return!0}}hS(xS);let{mixin:gS,mixinGetterValue:fS,mixinTypeAttr:mS,mixinTypeAttrValue:bS}=l;function _S(t,e,r){let s=e.getTitleHolder(t.attrs.type_id);return!s.length&&r&&(s=r.getTitleHolder(t.attrs.type_id)),s}function AS(t,e,r){let s=e.getSubTitleHolder(t.attrs.type_id);return(!s.length&&r&&(s=r.getSubTitleHolder(t.attrs.type_id)),s.length)?s:MS.apply(this,arguments)}function MS(t,e,r){let s=e.getBodyHolder(t.attrs.type_id);return!s.length&&r&&(s=r.getBodyHolder(t.attrs.type_id)),s}function wS(t,e,r){let s=e.getPageNumHolder(t.attrs.type_id);return!s.length&&r&&(s=r.getPageNumHolder(t.attrs.type_id)),s}function SS(t,e,r){let s=e.getDateTimeHolder(t.attrs.type_id);return!s.length&&r&&(s=r.getDateTimeHolder(t.attrs.type_id)),s}function CS(t){return fS(t,"isTitleHolder",!0),fS(t,"holderType","title"),gS(t,"getInheritHolders",_S),bS(t,"transform","deep",Ao.getAttrs({left:35,top:45,width:890,height:60})),t}function PS(t){return fS(t,"isSubTitleHolder",!0),fS(t,"holderType","sub_title"),gS(t,"getInheritHolders",AS),bS(t,"transform","deep",Ao.getAttrs({left:35,top:130,width:890,height:60})),t}function TS(t){return fS(t,"isBodyHolder",!0),fS(t,"holderType","body"),gS(t,"getInheritHolders",MS),bS(t,"transform","deep",Ao.getAttrs({left:35,top:130,width:890,height:350})),t}function vS(t){return fS(t,"isPageNumHolder",!0),fS(t,"holderType","page_num"),gS(t,"getInheritHolders",wS),bS(t,"transform","deep",Ao.getAttrs({left:898,top:490,width:50,height:40})),t}function IS(t){return fS(t,"isDateTimeHolder",!0),fS(t,"holderType","date_time"),gS(t,"getInheritHolders",SS),bS(t,"transform","deep",Ao.getAttrs({left:35,top:490,width:100,height:40})),t}function kS(t){return mS(t,"type_id",new sn),bS(t,"transform","optional",!0),gS(t,"setLocalTransform",(function(t){let e=t.state,r=t.attrs.transform;return(!e.inherit||r)&&e.cached_attrs.transform===r?Bn.STATE_NONE:(r?(e.transform=r,e.transform_matrix=_o.fromTransform(e.transform)):(e.transform=e.inherited_transform,e.transform_matrix=e.inherited_matrix),Bn.STATE_REDRAW)})),t}function ES(t){let e=t.getStateMap();e.register(e.INHERITED_START,t.name,"find_inherit_holder",null,function(e,r){let s=[],n=r.getInheritSlide();for(let r=0;r<n.length;++r)s.push(...t.getInheritHolders(e,n[r]));return r.setInheritHolder(s),Bn.maybeInherited(e,s)}.bind(t)),e.register(e.INHERITED_END,t.name,"clear_inherit_holder",null,function(t,e){e.setInheritHolder()}.bind(t))}function NS(t){let e=t.getStateMap();e.register(e.UPDATE_START,t.name,"find_inherited_holder",null,function(e,r){let s=r.getInheritedSlide(),n=t.getInheritHolders(e,s[0],s[1])[0];r.setInheritedHolder(n);let a=e.state,i=n?n.state:t.getDefaultAttrValues();return a.inherited_transform===i.transform?Bn.STATE_NONE:(a.inherited_transform=i.transform,a.inherited_matrix=i.transform_matrix||_o.fromTransform(i.transform),a.inherit=!0,Bn.STATE_UPDATE)}.bind(t)),e.register(e.UPDATE_END,t.name,"clear_inherited_holder",null,function(t,e){e.setInheritedHolder(),t.state.inherit=!1}.bind(t))}class LS extends pS{get isHolder(){return!0}get groupable(){return!1}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.unregister(t.FROM_PARENT,this.name,"record_parent_transform_and_matrix"),t.unregister(t.FROM_PARENT,this.name,"reset_parent_transform_and_matrix"),t.unregister(t.SELF_END,this.name,"clear_inherit_parent_transform_and_matrix"),t.register(t.SELF_START,this.name,"set_holder_type",null,function(t){t.state.holder_type=t.type.holderType}.bind(this))}}class jS extends LS{get isMasterHolder(){return!0}get isMasterModeHolder(){return!0}registerSelfLocalAttrsUpdateMap(){ES(this)}setLocalTransform(t){let e=t.state;return e.transform===t.attrs.transform?Bn.STATE_NONE:(e.transform=t.attrs.transform,e.transform_matrix=_o.fromTransform(e.transform),Bn.STATE_REDRAW)}}class RS extends jS{get isTitleMasterHolder(){return!0}get layoutHolderTypeCheckKey(){return"isTitleLayoutHolder"}}CS(RS);class OS extends jS{get isSubTitleMasterHolder(){return!0}get layoutHolderTypeCheckKey(){return"isSubTitleLayoutHolder"}}PS(OS);class DS extends jS{get isBodyMasterHolder(){return!0}get layoutHolderTypeCheckKey(){return"isBodyLayoutHolder"}}TS(DS);class FS extends jS{get isPageNumMasterHolder(){return!0}get layoutHolderTypeCheckKey(){return"isPageNumLayoutHolder"}}vS(FS);class BS extends jS{get isDateTimeMasterHolder(){return!0}get layoutHolderTypeCheckKey(){return"isDateTimeLayoutHolder"}}IS(BS);class VS extends LS{get isLayoutHolder(){return!0}get isMasterModeHolder(){return!0}registerSelfLocalAttrsUpdateMap(){ES(this),NS(this)}}kS(VS);class HS extends VS{get isTitleLayoutHolder(){return!0}}CS(HS);class GS extends VS{get isSubTitleLayoutHolder(){return!0}}PS(GS);class zS extends VS{get isBodyLayoutHolder(){return!0}}TS(zS);class US extends VS{get isPageNumLayoutHolder(){return!0}}vS(US);class qS extends VS{get isDateTimeLayoutHolder(){return!0}}IS(qS);class $S extends LS{get isSlideHolder(){return!0}registerSelfLocalAttrsUpdateMap(){NS(this)}}kS($S);class JS extends $S{get isTitleSlideHolder(){return!0}}CS(JS);class WS extends $S{get isSubTitleSlideHolder(){return!0}}PS(WS);class ZS extends $S{get isBodySlideHolder(){return!0}}TS(ZS);class YS extends $S{get isPageNumSlideHolder(){return!0}}vS(YS);class XS extends $S{get isDateTimeSlideHolder(){return!0}}IS(XS);let KS=["stroke","stroke-opacity","stroke-width","stroke-dasharray"],QS=["fill","fill-opacity"];function tC(t){let e=t=>t.getShapeNode(),r=t.getStateMap();r.register(r.INHERITED_START,t.name,"find_inherit_holder_shape",null,function(t,r){let s=r.getInheritHolder().map(e);return r.setInheritHolderShape(s),Bn.maybeInherited(t,s)}.bind(t)),r.register(r.INHERITED_END,t.name,"clear_inherit_holder_shape",null,function(t,e){e.setInheritHolderShape()}.bind(t))}function eC(t){let e=t.getStateMap();e.register(e.UPDATE_START,t.name,"find_inherited_holder_shape",null,function(e,r){let s=r.getInheritedHolder();s&&(s=s.getShapeNode(),r.setInheritedHolderShape(s));let n=e.state,a=s?s.state:t.getDefaultAttrValues();return n.inherited_stroke===a.stroke&&n.inherited_stroke_config===a.stroke_config&&n.inherited_fill===a.fill&&n.inherited_fill_config===a.fill_config?Bn.STATE_NONE:(n.inherited_stroke=a.stroke,n.inherited_stroke_config=a.stroke_config,n.inherited_fill=a.fill,n.inherited_fill_config=a.fill_config,n.inherit=!0,Bn.STATE_UPDATE)}.bind(t)),e.register(e.UPDATE_END,t.name,"clear_inherited_holder_shape",null,function(t,e){e.setInheritedHolderShape(),t.state.inherit=!1}.bind(t))}function rC(t){return st(t,"setStatePathConfig",(function(t){let e=t.attrs,r=t.state;return r.inherit||r.cached_attrs!==e?(this.storeInheritedAttrToState(t,"stroke"),this.storeInheritedAttrToState(t,"fill"),r.stroke_config=jt(e.stroke_config,jt(r.inherited_stroke_config)),r.fill_config=jt(e.fill_config,jt(r.inherited_fill_config)),r.path_config=r.geometry.createPathConfig(r.stroke&&r.stroke_config,r.fill&&r.fill_config),Bn.STATE_REDRAW):Bn.STATE_NONE})),t}class sC extends vw{get isSvgElement(){return!0}get lineConnectable(){return!0}get attrs(){let t=KS.reduce((function(t,e){return t[e]=sn.optional,t}),Object.create(null));return{stroke:new sn({optional:!0,empty_value:!1}),stroke_config:new sn({optional:!0,deep:t})}}get strokeConfigList(){return KS}get fillConfigList(){return QS}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_size","isFloatingObject",function(t,e){let r=e.state.transform;t.state.width=Math.abs(r.width),t.state.height=Math.abs(r.height),t.state.floating_transform=r}.bind(this)),t.register(t.SELF_START,this.name,"set_geometry",null,function(t){t.state.geometry=this.getGeometry(t)}.bind(this)),t.register(t.SELF_START,this.name,"set_path_config",null,this.setStatePathConfig.bind(this)),t.register(t.SELF_START,this.name,"set_shape_data",null,this.setStateShapeData.bind(this))}setStatePathConfig(t){this.storeAttrToState(t,"stroke"),t.state.path_config=t.state.geometry.createStrokeConfig(t.state.stroke&&t.attrs.stroke_config)}setStateShapeData(t){let e=t.state;e.geometryInfo=vM.create(e.geometry.getGeometryType(),{w:e.width,h:e.height},t.attrs.cust_points,void 0,void 0,t.attrs.custGeomDefinition,{transform:e.floating_transform}),e.shape_data=e.geometryInfo.getGeometryData(),e.paths=e.geometryInfo.getPaths("raw")}getGeometry(t){return MA.rect}getSvgDOM(t){return t.firstChild}getBorderGroupDOM(t){return this.getSvgDOM(t).firstChild}getBodyGroupDOM(t){return this.getSvgDOM(t).childNodes[1]}getTriggerGroupDOM(t){return this.getSvgDOM(t).childNodes[2]}toBorderGroup(t){return lo.createGroup()}toBodyGroup(t){return lo.createGroup()}toTriggerGroup(t){let e=t.localAttrs;return lo.createTriggerGroup(e.path_config,e.paths)}toSvg(t){let e=t.state;return lo.createSvg(e.width,e.height,this.toBorderGroup(t),this.toBodyGroup(t),this.toTriggerGroup(t))}renderAttrsDom(t,e,r){return super.renderAttrsDom(t,e,r),Object.assign(t.inline_style||(t.inline_style=Object.create(null)),{position:"absolute",width:e.state.width+"px",height:e.state.height+"px"}),t}toRenderDOM(t,e){return["div",this.renderAttrs(null,t,e),this.toSvg(t)]}getHighlightSize(t){let e=t.localAttrs;return{width:e.width,height:e.height}}getHighlightGroupDOM(t){return this.getBorderGroupDOM(t)}getCustomizeColors(t){let e=[],r=t.state.path_config;return r&&(r.fill&&e.push(r.fill),r.stroke&&e.push(r.stroke)),e}}Ew(sC);class nC extends sC{get isAbstractShape(){return!0}get Node(){return Cw}get attrs(){let t=new sn({optional:!0}),e=QS.reduce((function(e,r){return e[r]=t,e}),Object.create(null));return jt({fill:new sn({optional:!0,empty_value:!1}),fill_config:new sn({optional:!0,deep:e})},jt(super.attrs))}getFileId(t){if(t.attrs.fill_config&&t.attrs.fill_config.fill&&"#"!==t.attrs.fill_config.fill[0])return t.attrs.fill_config.fill}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"fill_paths_color",null,function(t){let e=t.state;e.path_config.fill&&e.geometry.fillAllPathsColor(e.paths,e.path_config.fill)}.bind(this)),t.register(t.SELF_START,this.name,"calc_text_rect",null,function(t){let e=t.state.shape_data;t.state.text_rect={left:e.l,top:e.t,width:e.w,height:e.h}}.bind(this))}setStatePathConfig(t){this.storeAttrToState(t,"stroke"),this.storeAttrToState(t,"fill");let e=t.attrs,r=t.state;r.path_config=r.geometry.createPathConfig(r.stroke&&e.stroke_config,r.fill&&e.fill_config)}getShapeGroupDOM(t){return this.getBodyGroupDOM(t).childNodes[1]}getStrokeGroupDOM(t){return this.getBodyGroupDOM(t).childNodes[2]}getTextBlockWrapperDOM(t){return t.childNodes[1]}getTextBlockDOM(t){return this.getTextBlockWrapperDOM(t).firstChild}getEditableAreaDOM(t){return Fw.prototype.getEditableAreaDOM(this.getTextBlockDOM(t))}getPatternGroupDOM(t){return this.getBodyGroupDOM(t).firstChild}getPatternDOM(t){return this.getPatternGroupDOM(t).firstChild}getImageDOM(t){return this.getPatternDOM(t).firstChild}toBodyGroup(t){let e,r=t.localAttrs,s=r.path_config,n=r.paths;s.fill&&"#"!==s.fill[0]&&(e=Tt());let a=lo.createPatternGroup(e,s.fill,r.parent.state.transform),i=lo.createShapeGroup(s,n,{},e),o=lo.createShapeStrokeGroup(s,n);return lo.createGroup(a,i,o)}toRenderDOM(t,e){return["div",this.renderAttrs(null,t,e),this.toSvg(t),["div",{inline_style:{position:"absolute",width:t.state.width+"px",height:t.state.height+"px"}},0]]}}class aC extends nC{get isHolderShape(){return!0}getGeometry(t){return AA.text}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_holder_type","isHolder",function(t,e){t.state.holder_type=e.state.holder_type}.bind(this))}computeJsonConversionAttrs(t,e){let r=super.computeJsonConversionAttrs(t,e);return"clipboard"===e.target&&e.useComputedStyle?{...r,stroke:t.getState("stroke"),stroke_config:t.getState("stroke_config"),fill:t.getState("fill"),fill_config:t.getState("fill_config")}:r}}class iC extends aC{get isMasterHolderShape(){return!0}registerSelfLocalAttrsUpdateMap(){tC(this)}setStatePathConfig(t){this.storeAttrToState(t,"stroke"),this.storeAttrToState(t,"stroke_config"),this.storeAttrToState(t,"fill"),this.storeAttrToState(t,"fill_config");let e=t.state;e.path_config=e.geometry.createPathConfig(e.stroke&&e.stroke_config,e.fill&&e.fill_config)}}class oC extends aC{get isLayoutHolderShape(){return!0}registerSelfLocalAttrsUpdateMap(){tC(this),eC(this)}}rC(oC);class lC extends aC{get isSlideHolderShape(){return!0}get defaultStrokeClassName(){return"syno-o-slide-empty-place-holder-stroke"}checkDefaultStroke(t){return t.nodeSize<=6&&!t.state.stroke&&!t.state.fill}drawDefaultStroke(t){let e=this.getShapeGroupDOM(t.dom);if(e){e.classList.add(this.defaultStrokeClassName);for(let r=e.firstChild;r;r=r.nextSibling)r.style.stroke=t.state.default_stroke,r.style["stroke-opacity"]=t.state.default_stroke_opacity,r.style["stroke-width"]="1"}}maybeDrawDefaultStroke(t){this.checkDefaultStroke(t)&&this.drawDefaultStroke(t)}eraseDefaultStroke(t){let e=this.getShapeGroupDOM(t.dom);if(e){e.classList.remove(this.defaultStrokeClassName);for(let t=e.firstChild;t;t=t.nextSibling)t.style.stroke="",t.style["stroke-opacity"]="",t.style["stroke-width"]=""}}maybeEraseDefaultStroke(t){this.checkDefaultStroke(t)||this.eraseDefaultStroke(t)}setDefaultStroke(t){this.checkDefaultStroke(t)?this.drawDefaultStroke(t):this.eraseDefaultStroke(t)}registerSelfLocalAttrsUpdateMap(){eC(this);let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_default_stroke_color",null,function(t,e){let r=t.state,s="#"+e.getSlideNode().child(0).state.contrast_color;return r.default_stroke===s?Bn.STATE_NONE:(r.default_stroke=s,r.default_stroke_opacity="#ffffff"===s?.4:.25,this.checkDefaultStroke(t)?Bn.STATE_REDRAW:Bn.STATE_NONE)}.bind(this))}}rC(lC);class hC extends sC{get isAbstractImage(){return!0}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"record_parent_transform_and_matrix","isFloatingObject",function(t,e){let r=t.state,s=e.state;return r.parent_transform===s.transform?Bn.STATE_NONE:(r.parent_transform=s.transform,r.parent_transform_matrix=s.transform_matrix,r.inherit=!0,Bn.STATE_UPDATE)}.bind(this)),t.register(t.SELF_END,this.name,"clear_record_parent_transform_and_matrix",null,function(t){t.state.inherit=!1}.bind(this))}}class uC extends(jy(Ly(dM))){get isNote(){return!0}get printable(){return!1}getScrollerInfo(t){return{dom:this.getContentDOM(t),threshold:0,margin:0}}get coordsFixed(){return!0}getIndicatorWrapperDOM(t){return this.getCursorWrapperDOM(t)}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"set_text_rect_info",null,function(t,e){t.state.text_rect_info={width:e.getNoteWidth()||1e5,left:0}}.bind(this)),this.registerListContainer()}getContentDOM(t){return t.firstChild}getEditableAreaDOM(t){return this.getContentDOM(t).firstChild}getCursorWrapperDOM(t){return this.getContentDOM(t).childNodes[2]}getDefaultTextWrapperDOM(t){return this.getContentDOM(t).childNodes[1]}getDefaultTextWrapperAttrs(t){return{inline_style:{position:"absolute",left:0,top:0}}}toRenderDOM(t,e){return["div",this.renderAttrs(null,t,e),["div",{class:this.className+"-content"},["div",{class:this.className+"-edit-area",inline_style:{width:"100%",height:"100%"},synoedit:"true"},0],this.toDefaultTextWrapperDOM(t,e),lo.createIndicatorWrapper()]]}}lg(uC),Iw(uC);let cC='{"type":"doc","attrs":{"schema":13,"type":"presentation","cx":960,"cy":540},"content":[{"type":"settings"},{"type":"master_container","content":[{"type":"master","attrs":{"id":"minimalist_white"},"content":[{"type":"master_background","attrs":{"color":"ffffff","opacity":1}},{"type":"master_content_container","content":[{"type":"title_master_holder","attrs":{"id":"Ejot9V15WR","transform":{"skewY":0,"deg":0,"height":82,"width":890,"top":45,"left":35}},"content":[{"type":"title_master_holder_shape","content":[{"type":"title_master_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":40},{"_":"strong"},{"_":"color","value":"#292929"},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"}]}}]}]}]},{"type":"body_master_holder","attrs":{"id":"QSLptKRfOu","transform":{"skewY":0,"deg":0,"height":343.55905511811,"width":890,"top":139.84251968504,"left":35}},"content":[{"type":"body_master_holder_shape","content":[{"type":"body_master_holder_text_block","attrs":{"listMap":{"_":{"indent":0,"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":18},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingTop":6.6666666666667,"paddingBottom":6.6666666666667,"listId":"_","listMarks":[{"_":"font_size","value":18},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":1,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":2,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":3,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":4,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":5,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":6,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":7,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}},{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"lineHeight":1.15,"paddingBottom":6.6666666666667,"listId":"_","listLevel":8,"listMarks":[{"_":"font_size","value":14},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]}}]}]}]},{"type":"page_number_master_holder","attrs":{"id":"TrMcAej6Nl","transform":{"skewY":0,"deg":0,"height":37.2,"width":50,"top":490,"left":898}},"content":[{"type":"title_master_holder_shape","content":[{"type":"title_master_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":12},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"textAlign":"right"}}]}]}]}]},{"type":"layout_container","content":[{"type":"layout","attrs":{"id":"title_slide"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"Pl1H9qQ9i4","transform":{"skewY":0,"deg":0,"height":104.4,"width":846.61417322835,"top":182.13070866142,"left":56.692913385827},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"vertical_align":0},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":54}],"textAlign":"center"}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"KT6zyW1bkm","transform":{"skewY":0,"deg":0,"height":56.4,"width":846.61417322835,"top":340.15748031496,"left":56.692913385827},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24},{"_":"strong"}],"textAlign":"center","lineHeight":1,"paddingTop":0,"paddingBottom":0}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"uTdry7SeUq","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"section_header"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"qWpTxEb9Ay","transform":{"skewY":0,"deg":0,"height":104.4,"width":846.61417322835,"top":217.8,"left":56.692913385827},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"vertical_align":0},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":54}]}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"5VMp8C13gx","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"title_body"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"S6nqTKA6Qr","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"body_layout_holder","attrs":{"id":"oSxpUWrDNd","type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"R49dtbNK42","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"title_body_2"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"shape_box","attrs":{"id":"PVtMDVQwDF","transform":{"skewY":0,"deg":0,"height":157.3830364612,"width":960,"top":0,"left":0}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#e6ebf0","fill-opacity":1},"shape_type":"rect","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph"}]}]}]},{"type":"title_layout_holder","attrs":{"id":"hbekeCdyWF","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"body_layout_holder","attrs":{"id":"d5Zy3Cja4t","transform":{"skewY":0,"deg":0,"height":333.37773152966,"width":890,"top":181.26182957727,"left":35},"type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"rgonFuTa4U","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"title_list"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"BFEGyXVCOt","transform":{"skewY":0,"deg":0,"height":104.4,"width":890,"top":121.35379812695,"left":35},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_title_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":54}],"placeholderText":"#edit_text_style_title_short"}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"3SF5QP4cwS","transform":{"skewY":0,"deg":0,"height":75.493333333333,"width":890,"top":225.72999396407,"left":35},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"vertical_align":0},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24},{"_":"strong"}]}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"eE6lJbLbJX","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"title_two_col"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"xBQuRNSItV","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"body_layout_holder","attrs":{"id":"04sDhRk1QJ","transform":{"skewY":0,"deg":0,"height":343.55905511811,"width":420,"top":139.84251968504,"left":35},"type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"E5bJqd1btE","transform":{"skewY":0,"deg":0,"height":343.55905511811,"width":420,"top":139.84251968504,"left":505},"type_id":"1"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"0whpS9pVXb","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"title_only"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"o7BxYamR2Y","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"XFDt2SkL9v","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"comparison"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"jMWmpNmocY","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"tWlRxPwOlQ","transform":{"skewY":0,"deg":0,"height":56.4,"width":420,"top":144.75004301622,"left":35},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_subtitle_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24},{"_":"strong"}],"lineHeight":1,"paddingTop":0,"paddingBottom":0,"placeholderText":"#edit_text_style_subtitle_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"3n7wGUSEkC","transform":{"skewY":0,"deg":0,"height":300,"width":420,"top":201.46097814776,"left":35},"type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"bnChwLxh8t","transform":{"skewY":0,"deg":0,"height":56.4,"width":420,"top":144.75004301622,"left":505},"type_id":"1"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_subtitle_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24},{"_":"strong"}],"lineHeight":1,"paddingTop":0,"paddingBottom":0,"placeholderText":"#edit_text_style_subtitle_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"jER1O59TNm","transform":{"skewY":0,"deg":0,"height":300,"width":420,"top":201.46097814776,"left":505},"type_id":"1"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"GrfaCxLEiw","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"section_title_desc"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"shape_box","attrs":{"id":"8desJwMVMD","transform":{"skewY":0,"deg":0,"height":540,"width":362.66666666667,"top":0,"left":597.16535433071}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#e6ebf0","fill-opacity":1},"shape_type":"rect","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph"}]}]}]},{"type":"title_layout_holder","attrs":{"id":"JF7kmsnQ9L","transform":{"skewY":0,"deg":0,"height":82,"width":526.91467221644,"top":45,"left":35},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"SCJkJ4Bo2D","transform":{"skewY":0,"deg":0,"height":56.4,"width":526.91467221644,"top":171.99764025334,"left":35},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24},{"_":"strong"}],"lineHeight":1,"paddingTop":0,"paddingBottom":0}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"dgdWieaIz4","transform":{"skewY":0,"deg":0,"height":277.22665670954,"width":526.91467221644,"top":228.39764025334,"left":35},"type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"aC1crR3weX","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"section_title_desc_2"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"shape_box","attrs":{"id":"jQRYVJOwDu","transform":{"skewY":0,"deg":270,"height":1.511811023622,"width":421.560815555,"top":478.14910025707,"left":287.20083246618}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":0.10196078431373},"shape_type":"rect","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"color","value":"#7b8187"},{"_":"background_color","value":"#f7f7f7"}]}}]}]}]},{"type":"title_layout_holder","attrs":{"id":"zPLdtFkMwU","transform":{"skewY":0,"deg":0,"height":445,"width":216.82101977107,"top":45,"left":35},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"wmGK4Gdffd","transform":{"skewY":0,"deg":0,"height":75.493333333333,"width":568.15567081498,"top":45.048608923885,"left":329.84432918502},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"vertical_align":0},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24},{"_":"strong"}]}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"sN9eRb882M","transform":{"skewY":0,"deg":0,"height":369.4094488189,"width":568.15567081498,"top":120.5905511811,"left":329.84432918502},"type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"bCmXW2LP38","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"section_desc"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"shape_box","attrs":{"id":"iBVkHernC8","transform":{"skewY":0,"deg":0,"height":1.511811023622,"width":226.77165354331,"top":388.15748031496,"left":366.61417322835}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":0.10196078431373},"shape_type":"rect","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"color","value":"#7b8187"},{"_":"background_color","value":"#f7f7f7"}]}}]}]}]},{"type":"title_layout_holder","attrs":{"id":"Tf600jG78e","transform":{"skewY":0,"deg":0,"height":104.4,"width":846.61417322835,"top":113.01757519644,"left":56.692913385827},"type_id":"1"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_title_numbering"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":54}],"textAlign":"center","placeholderText":"#edit_text_style_title_numbering"}}]}]}]},{"type":"title_layout_holder","attrs":{"id":"tEMkkrSWd4","transform":{"skewY":0,"deg":0,"height":82,"width":846.61417322835,"top":304.77165354331,"left":56.692913385827},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"color","value":"#727272"}],"textAlign":"center"}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"gR4WJr6XlT","transform":{"skewY":0,"deg":0,"height":64.453333333333,"width":846.61417322835,"top":391.05511811024,"left":56.692913385827},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"strong","value":false}],"textAlign":"center"}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"mqIIouhmMv","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"title_three_col"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"title_layout_holder","attrs":{"id":"zh4KD9DbWJ","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"GgmdNKTHIG","transform":{"skewY":0,"deg":0,"height":50,"width":251.94404591105,"top":157.67718174146,"left":35.828066471887},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_subtitle_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":20},{"_":"strong"}],"lineHeight":1,"paddingTop":0,"paddingBottom":0,"placeholderText":"#edit_text_style_subtitle_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"DB8VVsI50b","transform":{"skewY":0,"deg":0,"height":300,"width":251.94404591105,"top":209.52757544225,"left":35},"type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"PwfrmrGQHH","transform":{"skewY":0,"deg":0,"height":50,"width":251.94404591105,"top":157.67718174146,"left":353.92171891726},"type_id":"1"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_subtitle_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":20},{"_":"strong"}],"lineHeight":1,"paddingTop":0,"paddingBottom":0,"placeholderText":"#edit_text_style_subtitle_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"gr1CVKHTHt","transform":{"skewY":0,"deg":0,"height":300,"width":251.94404591105,"top":209.52757544225,"left":354.02797704448},"type_id":"1"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"N9ZR7cKN3m","transform":{"skewY":0,"deg":0,"height":50,"width":251.94404591105,"top":157.67718174146,"left":673.05595408895},"type_id":"2"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_subtitle_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":20},{"_":"strong"}],"lineHeight":1,"paddingTop":0,"paddingBottom":0,"placeholderText":"#edit_text_style_subtitle_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"XRlSWFvR9F","transform":{"skewY":0,"deg":0,"height":300,"width":251.94404591105,"top":209.52757544225,"left":673.05595408895},"type_id":"2"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"listId":"_"}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"AZSUsGey82","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"three_col"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"shape_box","attrs":{"id":"50tYekwN1H","transform":{"skewY":0,"deg":0,"height":60.472440944882,"width":60.472440944882,"top":113.38582677165,"left":139.84251968504}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":1},"shape_type":"ellipse","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"textAlign":"center"},"content":[{"type":"text","marks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"text":"1"}]}]}]}]},{"type":"shape_box","attrs":{"id":"jGCUWvFyi5","transform":{"skewY":0,"deg":0,"height":60.472440944882,"width":60.472440944882,"top":113.38582677165,"left":449.76377952756}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":1},"shape_type":"ellipse","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"textAlign":"center"},"content":[{"type":"text","marks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"text":"2"}]}]}]}]},{"type":"shape_box","attrs":{"id":"HlAFjjwIgN","transform":{"skewY":0,"deg":0,"height":60.472440944882,"width":60.472440944882,"top":113.38582677165,"left":759.68503937008}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":1},"shape_type":"ellipse","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"textAlign":"center"},"content":[{"type":"text","marks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"text":"3"}]}]}]}]},{"type":"shape_box","attrs":{"id":"Z2yAZZIFjJ","transform":{"skewY":0,"deg":0,"height":124.31259979569,"width":1.2338062924121,"top":209.87304890739,"left":324.18715643271}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":0.10196078431373},"shape_type":"rect","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph"}]}]}]},{"type":"shape_box","attrs":{"id":"i6UGHDE1CT","transform":{"skewY":0,"deg":0,"height":124.31259979569,"width":1.2338062924122,"top":210.38031359013,"left":634.57903727487}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":0.10196078431373},"shape_type":"rect","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph"}]}]}]},{"type":"title_layout_holder","attrs":{"id":"SvzlesyYys","transform":{"skewY":0,"deg":0,"height":56.4,"width":264.56692913386,"top":199.87401574803,"left":37.795275590551},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_title_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24}],"textAlign":"center","placeholderText":"#edit_text_style_title_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"anfziAI3qq","transform":{"skewY":0,"deg":0,"height":145.51181102362,"width":264.56692913386,"top":259.90551181102,"left":37.795275590551},"type_id":"0"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_"}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":8}}]}]}]},{"type":"title_layout_holder","attrs":{"id":"XT4ccgMkil","transform":{"skewY":0,"deg":0,"height":56.4,"width":264.56692913386,"top":199.87401574803,"left":347.71653543307},"type_id":"1"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_title_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24}],"textAlign":"center","placeholderText":"#edit_text_style_title_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"lUbx16L1RP","transform":{"skewY":0,"deg":0,"height":145.51181102362,"width":264.56692913386,"top":259.90551181102,"left":347.71653543307},"type_id":"1"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_"}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":8}}]}]}]},{"type":"title_layout_holder","attrs":{"id":"rtWd5pEQag","transform":{"skewY":0,"deg":0,"height":56.4,"width":264.56692913386,"top":199.87401574803,"left":657.63779527559},"type_id":"2"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","attrs":{"placeholderText":"#click_add_title_short"},"content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24}],"textAlign":"center","placeholderText":"#edit_text_style_title_short"}}]}]}]},{"type":"body_layout_holder","attrs":{"id":"hiKLu2e75C","transform":{"skewY":0,"deg":0,"height":145.51181102362,"width":264.56692913386,"top":259.90551181102,"left":657.63779527559},"type_id":"2"},"content":[{"type":"body_layout_holder_shape","content":[{"type":"body_layout_holder_text_block","attrs":{"listMap":{"_":{"type":"ol"}}},"content":[{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_"}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":1}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":2}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":3}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":4}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":5}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":6}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":7}},{"type":"holder_paragraph","attrs":{"textAlign":"center","listId":"_","listLevel":8}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"Z2EBXD8o83","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"three_row"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"shape_box","attrs":{"id":"cjpyJ2NAqU","transform":{"skewY":0,"deg":0,"height":60.472440944882,"width":60.472440944882,"top":82.093462610233,"left":90.708661417323}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":1},"shape_type":"ellipse","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"textAlign":"center"},"content":[{"type":"text","marks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"text":"1"}]}]}]}]},{"type":"shape_box","attrs":{"id":"fdobkskdlc","transform":{"skewY":0,"deg":0,"height":60.472440944882,"width":60.472440944882,"top":235.47928938189,"left":90.708661417323}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":1},"shape_type":"ellipse","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"textAlign":"center"},"content":[{"type":"text","marks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"text":"2"}]}]}]}]},{"type":"shape_box","attrs":{"id":"PyPKWbajjv","transform":{"skewY":0,"deg":0,"height":60.472440944882,"width":60.472440944882,"top":388.86511615354,"left":90.708661417323}},"content":[{"type":"shape","attrs":{"stroke":false,"stroke_config":{},"fill":true,"fill_config":{"fill":"#000000","fill-opacity":1},"shape_type":"ellipse","cust_points":{}},"content":[{"type":"shape_text_block","attrs":{"vertical_align":0},"content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"textAlign":"center"},"content":[{"type":"text","marks":[{"_":"font_size","value":18},{"_":"strong"},{"_":"color","value":"#ffffff"}],"text":"3"}]}]}]}]},{"type":"title_layout_holder","attrs":{"id":"IgPVgOfSQG","transform":{"skewY":0,"deg":0,"height":56.4,"width":699.2125984252,"top":53.916559723094,"left":170.07874015748},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24}]}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"CaCrAa8lj2","transform":{"skewY":0,"deg":0,"height":60.133333333333,"width":699.2125984252,"top":110.60947310892,"left":170.07874015748},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"lineHeight":1}}]}]}]},{"type":"title_layout_holder","attrs":{"id":"XIZD6C0OLR","transform":{"skewY":0,"deg":0,"height":56.4,"width":699.2125984252,"top":207.30238649475,"left":170.07874015748},"type_id":"1"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24}]}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"1u58WE6xFT","transform":{"skewY":0,"deg":0,"height":60.133333333333,"width":699.2125984252,"top":263.99529988058,"left":170.07874015748},"type_id":"1"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"lineHeight":1}}]}]}]},{"type":"title_layout_holder","attrs":{"id":"1LkxOFIUng","transform":{"skewY":0,"deg":0,"height":56.4,"width":699.2125984252,"top":360.6882132664,"left":170.07874015748},"type_id":"2"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24}]}}]}]}]},{"type":"sub_title_layout_holder","attrs":{"id":"Iaq9m3Jqkx","transform":{"skewY":0,"deg":0,"height":60.133333333333,"width":699.2125984252,"top":417.38112665223,"left":170.07874015748},"type_id":"2"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"lineHeight":1}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"o9Qe4O8kZs","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"caption"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"text_box","attrs":{"id":"LwqflEO410","transform":{"skewY":0,"deg":0,"height":188.97637795276,"width":846.61417322835,"top":56.692913385827,"left":56.692913385827}},"content":[{"type":"text_shape","content":[{"type":"text_block","content":[{"type":"paragraph","attrs":{"textMarks":[{"_":"font_size","value":170},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}]},"content":[{"type":"text","marks":[{"_":"font_size","value":170},{"_":"font_family","value":"Arial","eastAsia":"Arial","complexScript":"Arial"},{"_":"color","value":"#727272"}],"text":"“"}]}]}]}]},{"type":"title_layout_holder","attrs":{"id":"dkJfglLWA7","transform":{"skewY":0,"deg":0,"height":56.4,"width":846.61417322835,"top":188.97637795276,"left":56.692913385827},"type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph","attrs":{"textMarks":[{"_":"font_size","value":24}]}}]}]}]},{"type":"page_number_layout_holder","attrs":{"id":"jacjfNcUWa","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]},{"type":"layout","attrs":{"id":"blank"},"content":[{"type":"layout_background"},{"type":"layout_content_container","content":[{"type":"page_number_layout_holder","attrs":{"id":"UaDQRhWJoB","type_id":"0"},"content":[{"type":"title_layout_holder_shape","content":[{"type":"title_layout_holder_text_block","content":[{"type":"holder_paragraph"}]}]}]}]}]}]}]}]},{"type":"slide_container","attrs":{"page_num_enabled":false},"content":[{"type":"slide","attrs":{"master_id":"minimalist_white","layout_id":"title_slide","id":"e9f4HnXr2S","is_visible":true},"content":[{"type":"slide_background"},{"type":"slide_content_container","content":[{"type":"title_slide_holder","attrs":{"id":"daoekeA4Iw","type_id":"0"},"content":[{"type":"title_slide_holder_shape","content":[{"type":"title_slide_holder_text_block","content":[{"type":"paragraph"}]}]}]},{"type":"sub_title_slide_holder","attrs":{"id":"NHlyj3mkxI","type_id":"0"},"content":[{"type":"sub_title_slide_holder_shape","content":[{"type":"sub_title_slide_holder_text_block","content":[{"type":"paragraph"}]}]}]}]},{"type":"note","content":[{"type":"paragraph"}]}]}]}]}\n',pC="string"==typeof cC?cC:JSON.stringify(cC),dC=wm.mergeSpec(sf,{name:"presentation",version:cM,nodes:{doc:{type:class extends ex{get isPresentation(){return!0}get classPrefix(){return"syno-o-slide-"}get Node(){return fw}get attrs(){return{schema:new sn({default:cM}),type:new sn({default:"presentation"}),cx:new sn({default:960}),cy:new sn({default:540})}}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_root_node",null,function(t,e){e.setRootNode(t)}.bind(this)),t.register(t.SELF_START,this.name,"set_global_page_size",null,function(t,e){e.setPageSize(t.attrs.cx,t.attrs.cy)}.bind(this))}},content:"settings master_container slide_container"},settings:{type:OM},master_container:{type:class extends tS{get isMasterContainer(){return!0}get printable(){return!1}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_master_map",null,function(t,e){e.resetMasterMap(),t.forEach((function(t){e.setMasterMapItem(t.attrs.id,t)}),this)}.bind(this)),t.register(t.UPDATE_END,this.name,"trim_global_layout_map",null,function(t,e){e.trimLayoutMap()}.bind(this)),t.register(t.INHERITED_START,this.name,"find_inherit_slide_container",null,function(t,e){return Bn.shouldInherited(t)?Bn.markInheritNodesPath([e.getRootNode().queryChildNode("slide_container",!0)]):Bn.STATE_NONE}.bind(this))}},content:"master+"},layout_container:{type:class extends tS{get isLayoutContainer(){return!0}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_layout_map",null,function(t,e){let r=e.getMasterId();e.resetLayoutMap(r),t.forEach((function(t){e.setLayoutMapItem(r,t.attrs.id,t)}),this)}.bind(this)),t.register(t.INHERITED_START,this.name,"find_inherit_slide_container",null,function(t,e){return Bn.shouldInherited(t)?Bn.markInheritNodesPath(e.getInheritSlideOnly()):Bn.STATE_NONE}.bind(this))}},content:"layout+"},slide_container:{type:class extends tS{get isSlideContainer(){return!0}get selectable(){return!0}get attrs(){return{page_num_enabled:new sn({optional:!0,empty_value:!0}),date_time_enabled:new sn({optional:!0,empty_value:!1}),page_num_skip_title:new sn({optional:!0,empty_value:!1}),transition:new sn({optional:!0,deep:{type:sn.optional,duration:sn.optional,options:sn.optional}})}}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"init_global_slide_index",null,function(t,e){e.setSlideIndex(-1)}.bind(this)),t.register(t.BEFORE_CHILD,this.name,"increase_global_slide_index","isAbstractSlide",function(t,e,r){r.setSlideIndex(r.getSlideIndex()+1)}.bind(this)),t.register(t.UPDATE_END,this.name,"clear_global_slide_index",null,function(t,e){e.setSlideIndex()}.bind(this));let e=function(t,r=0,s=t.childCount){if(!(t.getStateRank()>=Bn.STATE_SCAN)){if(t.type.isPageNumText)return t.setMinStateRank(Bn.STATE_SCAN),!0;else if(r<s){let n;for(;r<s;++r)e(t.child(r))&&(n=!0);if(n)return t.setMinStateRank(Bn.STATE_PASSING),!0}}};t.register(t.UPDATE_START,this.name,"find_changed_page_num_text",null,function(t){let r,s,n=t.state;if(n.content===t.content)return Bn.STATE_NONE;let a=n.content,i=t.content;if(n.content=i,t.getStateRank()>=Bn.STATE_SCAN||a.childCount===i.childCount)return Bn.STATE_NONE;for(r=0,s=Math.max(a.childCount,i.childCount);r<s&&a.maybeChild(r)===i.maybeChild(r);++r);return e(t,r)?Bn.STATE_PASSING:Bn.STATE_NONE}.bind(this))}},content:"slide*"},master:{type:class extends eS{get isMaster(){return!0}get Node(){return bw}get attrs(){return jt({id:new sn({default:Tt})},jt(super.attrs))}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_master_info",null,function(t,e){e.setMasterInfo(t.attrs.id,t)}.bind(this)),Qw(this),t.register(t.UPDATE_END,this.name,"clear_global_master_info",null,function(t,e){e.setMasterInfo()}.bind(this)),t.register(t.INHERITED_START,this.name,"find_inherit_slide",null,function(t,e){let r=e.getRootNode(),s=e.getMasterMapItem.bind(e),n=t.getLayoutNodes().slice(),a=n.length;r.forEachSlide(null,null,(function(e){e.type.ensureMasterNode(r,e.attrs.master_id,s)===t&&n.push(e)}));let i=n.slice(a);return e.setInheritSlideOnly(i),e.setInheritSlide(n),Bn.maybeInherited(t,i)}.bind(this)),t.register(t.INHERITED_END,this.name,"clear_inherit_slide",null,function(t,e){e.setInheritSlideOnly(),e.setInheritSlide()}.bind(this))}},content:"master_background master_content_container layout_container"},layout:{type:class extends eS{get isLayout(){return!0}get Node(){return _w}get attrs(){return jt({id:new sn({default:Tt}),layout_name:new sn({optional:!0})},jt(super.attrs))}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_layout_info",null,function(t,e){e.setLayoutInfo(t.attrs.id,t)}.bind(this)),Qw(this),t.register(t.UPDATE_END,this.name,"clear_global_layout_info",null,function(t,e){e.setLayoutInfo()}.bind(this)),t.register(t.INHERITED_START,this.name,"find_inherit_slide",null,function(t,e){let r=e.getMasterId(),s=e.getRootNode(),n=e.getLayoutMapItem.bind(e,r),a=e.getInheritSlideOnly().filter((function(e){return e.type.ensureLayoutNode(s,r,e.attrs.layout_id,n)===t}),this);return e.setInheritSlide(a),Bn.maybeInherited(t,a)}.bind(this)),t.register(t.INHERITED_END,this.name,"clear_inherit_slide",null,function(t,e){e.setInheritSlide()}.bind(this)),t.register(t.UPDATE_START,this.name,"find_inherited_slide",null,function(t,e){e.setInheritedSlide([e.getMasterNode()])}.bind(this)),t.register(t.UPDATE_END,this.name,"clear_inherited_slide",null,function(t,e){e.setInheritedSlide()}.bind(this))}},content:"layout_background layout_content_container"},slide:{type:class extends eS{get isSlide(){return!0}get Node(){return Aw}get copyable(){return!0}get attrs(){return Object.assign(Object.create(null),super.attrs,{master_id:sn.empty,layout_id:sn.empty,id:sn.id,is_visible:new sn({default:!0}),transition:new sn({optional:!0,deep:{type:sn.optional,duration:sn.optional,options:sn.optional}}),animations:new sn({optional:!0,copyable:-1,array:new sn({deep:{id:sn.id,nodeId:sn.optional,type:sn.optional,start:sn.optional,duration:sn.optional,options:sn.optional}})})})}_ensureNode(t,e,r){let s=r(t);return s||e&&r(e)}ensureMasterNode(t,e,r){return r||(r=function(e){return t.getMasterNode(e)}),this._ensureNode(e,null,r)||t.getMasterNode()}ensureLayoutNode(t,e,r,s){if(!s){let r=t.getMasterNode(e);s=function(t){return r&&r.getLayoutNode(t)}}return this._ensureNode(r,"blank",s)||t.getLayoutNode()}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.UPDATE_START,this.name,"set_global_slide_info",null,function(t,e){let r=e.getMasterMapItem.bind(e),s=this.ensureMasterNode(e.getRootNode(),t.attrs.master_id,r),n=s.attrs.id,a=e.getLayoutMapItem.bind(e,n),i=this.ensureLayoutNode(e.getRootNode(),n,t.attrs.layout_id,a),o=i.attrs.id;e.setMasterInfo(n,s),e.setLayoutInfo(o,i),e.setSlideInfo(t.attrs.id,t)}.bind(this)),Qw(this),t.register(t.UPDATE_END,this.name,"clear_global_slide_info",null,function(t,e){e.setMasterInfo(),e.setLayoutInfo(),e.setSlideInfo()}.bind(this)),t.register(t.UPDATE_START,this.name,"find_inherited_slide",null,function(t,e){e.setInheritedSlide([e.getLayoutNode(),e.getMasterNode()])}.bind(this)),t.register(t.UPDATE_END,this.name,"clear_inherited_slide",null,function(t,e){e.setInheritedSlide()}.bind(this))}},content:"slide_background slide_content_container note"},master_background:{type:class extends nS{get isMasterBackground(){return!0}get attrs(){return{color:new sn({default:"ffffff"}),opacity:new sn({default:1}),file_id:new sn({optional:!0})}}registerSelfLocalAttrsUpdateMap(){rS(this)}}},layout_background:{type:class extends nS{get isLayoutBackground(){return!0}registerSelfLocalAttrsUpdateMap(){rS(this),sS(this)}}},slide_background:{type:class extends nS{get isSlideBackground(){return!0}get attrs(){let t=jt(super.attrs);return t.ref=new sn({optional:!0}),t}registerSelfLocalAttrsUpdateMap(){sS(this);let t=this.getStateMap();t.register(t.INHERITED_START,this.name,"find_inherit_holder",null,function(t,e){return Bn.shouldInherited(t)?Bn.markInheritNodesPath(e.getSlideNode().getHolder()):Bn.STATE_NONE}.bind(this))}toRenderDOM(t,e){let r=super.toRenderDOM(t,e);return r[1].ref=t.attrs.ref,r}}},note:{type:uC,content:"basic_block+"},master_content_container:{type:FM,content:"(content_object | master_content_object)*"},layout_content_container:{type:BM,content:"(content_object | layout_content_object)*"},slide_content_container:{type:VM,content:"(content_object | slide_content_object)*"},title_master_holder:{type:RS,content:"title_master_holder_shape"},sub_title_master_holder:{type:OS,content:"title_master_holder_shape"},body_master_holder:{type:DS,content:"body_master_holder_shape"},page_number_master_holder:{type:FS,content:"title_master_holder_shape"},date_time_master_holder:{type:BS,content:"title_master_holder_shape"},title_master_holder_shape:{type:iC,content:"title_master_holder_text_block"},body_master_holder_shape:{type:iC,content:"body_master_holder_text_block"},title_master_holder_text_block:{type:qw,content:"holder_paragraph"},body_master_holder_text_block:{type:qw,content:Array.from({length:sx},((t,e)=>`holder_paragraph[listId="_",listLevel=${e}]`)).join(" ")},title_layout_holder:{type:HS,content:"title_layout_holder_shape"},sub_title_layout_holder:{type:GS,content:"title_layout_holder_shape"},body_layout_holder:{type:zS,content:"body_layout_holder_shape"},page_number_layout_holder:{type:US,content:"title_layout_holder_shape"},date_time_layout_holder:{type:qS,content:"title_layout_holder_shape"},title_layout_holder_shape:{type:oC,content:"title_layout_holder_text_block"},body_layout_holder_shape:{type:oC,content:"body_layout_holder_text_block"},title_layout_holder_text_block:{type:$w,content:"holder_paragraph"},body_layout_holder_text_block:{type:$w,content:Array.from({length:sx},((t,e)=>`holder_paragraph[listId="_",listLevel=${e}]`)).join(" ")},text_box:{type:class extends pS{get isTextBox(){return!0}get attrs(){let t=jt(super.attrs);return t.transform=t.transform.copy({deep:Ao.getAttrs({width:600,height:70})}),t}},content:"text_shape"},table_box:{type:class extends cS{get isTableBox(){return!0}get hasSvgElement(){return!1}get groupable(){return!1}get connectable(){return!1}getAbsTransform(t){let e=t.firstChild.firstChild,r=e.type.getTableSize(e);return Ao.addScale(Ao.copy(super.getAbsTransform(t)),r.width||null,r.height||null)}getTable(t){return t.child(0).child(0)}getTableBlockWrapperDOM(t){return t}getTableBlockDOM(t){return t.firstChild}getTableDOM(t){return zw.prototype.getTableDOM(this.getTableBlockDOM(t))}},content:"table_block"},shape_box:{type:class extends pS{get isShapeBox(){return!0}},content:"shape"},line_box:{type:dS,content:"line"},image_box:{type:yS,content:"image"},chart_box:{type:xS,content:"chart"},video_box:{type:class extends uS{get isVideoBox(){return!0}get groupable(){return!1}getDefaultTransform(){return{width:480,height:270}}},content:"video"},text_shape:{type:class extends nC{get isTextShape(){return!0}getGeometry(t){return AA.text}},content:"text_block"},shape:{type:class extends nC{get isShape(){return!0}get attrs(){let t=super.attrs,e={action:sn.empty,point:new sn({optional:!0,deep:{x:sn.optional,y:sn.optional}}),points:new sn({optional:!0,array:new sn({deep:{x:sn.empty,y:sn.empty}})}),arcAttrs:new sn({optional:!0,deep:{wR:sn.optional,hR:sn.optional,stAng:sn.optional,swAng:sn.optional}})};return jt({stroke:t.stroke.copy({empty_value:!0}),fill:t.fill.copy({empty_value:!0}),shape_type:new sn({default:"rect",empty_value:"rect"}),cust_points:new sn({default:{}}),custGeomDefinition:new sn({optional:!0,deep:{pathList:new sn({optional:!0,array:new sn({deep:{stroke:sn.optional,fill:sn.optional,h:sn.optional,w:sn.optional,paths:new sn({optional:!0,array:new sn({deep:e})})}})}),connectionList:new sn({optional:!0,array:new sn({deep:{ang:sn.empty,pos:new sn({deep:{x:sn.optional,y:sn.optional}})}})}),shapeGuideList:new sn({optional:!0,array:new sn({deep:{name:sn.empty,fmla:sn.empty}})}),rect:new sn({optional:!0,deep:{l:sn.optional,t:sn.optional,r:sn.optional,b:sn.optional}}),adjustValueList:new sn({optional:!0,array:new sn({deep:{name:sn.empty,fmla:sn.empty}})}),adjustHandleList:new sn({optional:!0,array:new sn({deep:{xyAdjustAttrs:new sn({optional:!0,deep:{gdRefX:sn.optional,gdRefY:sn.optional,maxX:sn.optional,minX:sn.optional,maxY:sn.optional,minY:sn.optional}}),polarAdjustAttrs:new sn({optional:!0,deep:{gdRefAng:sn.optional,gdRefR:sn.optional,maxAng:sn.optional,minAng:sn.optional,maxR:sn.optional,minR:sn.optional}}),point:new sn({deep:{x:sn.optional,y:sn.optional}})}})})}})},jt(t))}getGeometry(t){return"customGeometry"==t.attrs.shape_type?PA(t.attrs.custGeomDefinition):MA[t.attrs.shape_type]??MA[this.attrs.shape_type.empty_value]}},content:"shape_text_block"},line:{type:class extends sC{get isLine(){return!0}get lineConnectable(){return!1}get attrs(){let t=new sn({optional:!0,copyable:-1}),e=new sn({optional:!0,empty_value:"none"}),r=super.attrs;return Object.assign(Object.create(null),r,{stroke:r.stroke.copy({empty_value:!0}),cxn_start_id:t,cxn_start_index:t,cxn_end_id:t,cxn_end_index:t,arrow_start:e,arrow_end:e,line_type:new sn({default:"line",empty_value:"line"}),cust_points:new sn({default:{}})})}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"fill_arrow_paths_color",null,function(t){let e=t.state;e.path_config.stroke&&e.geometry.fillAllPathsColor(e.arrow_paths,e.path_config.stroke)}.bind(this))}setStateShapeData(t){super.setStateShapeData(t);let e=t.state,r=parseFloat(e.path_config["stroke-width"])||1,{line:s,arrow:n}=e.geometry.getLineArrowPaths(e.shape_data,t.attrs.arrow_start,t.attrs.arrow_end,r);e.line_paths=s,e.arrow_paths=n}getGeometry(t){return _A[t.attrs.line_type]||_A[this.attrs.line_type.empty_value]}toBodyGroup(t){let e=t.state,r=lo.createLineGroup(e.path_config,e.line_paths),s=lo.createArrowGroup(e.path_config,e.arrow_paths);return lo.createGroup(r,s)}toTriggerGroup(t){let e=t.state,r=lo.createTriggerGroup(e.path_config,e.line_paths),s=lo.createTriggerGroup(e.path_config,e.arrow_paths);return lo.createGroup(r,s)}}},image:{type:class extends hC{get isImage(){return!0}get attrs(){return jt({file_id:new sn({default:""}),alt:new sn({optional:!0}),ref:new sn({optional:!0}),opacity:new sn({optional:!0,empty_value:1}),shape_type:new sn({optional:!0}),img_transform:new sn({deep:Ao.getImageAttrs()}),cust_points:new sn({default:{}})},jt(super.attrs))}getGeometry(t){let e=t.attrs.shape_type;return e&&MA[e]||MA.rect}getFileId(t){return t.attrs.file_id}registerSelfLocalAttrsUpdateMap(){let t=this.getStateMap();t.register(t.SELF_START,this.name,"merge_img_transform",null,function(t){let e=t.state;return e.inherit||e.cached_attrs.img_transform!==t.attrs.img_transform?(e.self_transform=Ao.fromImageTransform(e.parent_transform,t.attrs.img_transform),e.self_transform_matrix=_o.fromTransform(e.self_transform),e.transform=Ao.merge(e.parent_transform,e.self_transform,e.parent_transform_matrix,e.self_transform_matrix),e.transform_matrix=_o.fromTransform(e.transform),Bn.STATE_REDRAW):Bn.STATE_NONE}.bind(this))}getClippedImageGroupDOM(t){return this.getBodyGroupDOM(t).firstChild}getStrokeGroupDOM(t){return this.getBodyGroupDOM(t).childNodes[1]}getClipPathDOM(t){return this.getClippedImageGroupDOM(t).firstChild}getImageGroupDOM(t){return this.getClippedImageGroupDOM(t).childNodes[1]}getImageDOM(t){return this.getImageGroupDOM(t).firstChild}getCropImageGroupWrapperDOM(t){return this.getClippedImageGroupDOM(t)}getCropTriggerGroupWrapperDOM(t){return this.getSvgDOM(t)}isCropped(t){return!Ng(t.attrs.img_transform,Ao.createImageDefault())}toBodyGroup(t,e){let r=t.state;return["g",this.toClippedImageGroupDOM(t,e),lo.createStrokeGroup(r.path_config,r.paths)]}toClippedImageGroupDOM(t,e){let r="crop_"+Tt();return["g",this.toClipPathDOM(t,r,e),this.toImageGroupDOM(t,r,e)]}toClipPathDOM(t,e,r){let s=["clipPath",{id:e}],n=t.state.paths;for(let t=0,e=n.length;t<e;++t)s.push(["path",{d:n[t].define}]);return s}toImageGroupDOM(t,e,r){let s=t.state,n=s.self_transform,a=_o.multiply(_o.reverse(s.parent_transform_matrix),s.transform_matrix);return["g",{"clip-path":`url(#${e})`},["image",{preserveAspectRatio:"none",x:"0",y:"0",width:Math.abs(n.width)+"",height:Math.abs(n.height)+"",transform:_o.toMatrixStr(a)}]]}toRenderDOM(t,e){let r=super.toRenderDOM(t,e);return r[1].ref=t.attrs.ref,r[1].inline_style.opacity=`${null!=t.attrs.opacity?t.attrs.opacity:1}`,r}}},chart:{type:class extends hC{get isChart(){return!0}get attrs(){return Object.assign(Object.create(null),super.attrs,{data:new sn({default:ad.createDefaultData(),normalizer:ad.ensureData.bind(ad)}),config:sn.optional})}getImageGroupDOM(t){return this.getBodyGroupDOM(t).firstChild}getStrokeGroupDOM(t){return this.getBodyGroupDOM(t).childNodes[1]}getImageDOM(t){return this.getImageGroupDOM(t).firstChild}toBodyGroup(t){let e=t.attrs,r=t.localAttrs,s=r.path_config,n=lo.createChartGroup(e.file_id,r.parent_transform),a=lo.createStrokeGroup(s,r.paths);return lo.createGroup(n,a)}}},video:{type:class extends hC{get isVideo(){return!0}get attrs(){return jt({permanent_link:new sn({optional:!0}),autoplay:new sn({optional:!0,empty_value:!0}),muted:new sn({optional:!0,empty_value:!1}),format:new sn({optional:!0}),youtube_url:new sn({optional:!0})},jt(super.attrs))}toSvg(t){let e=t.state;return lo.createSvg(e.width,e.height,this.toBorderGroup(t),this.toBodyGroup(t),this.toTriggerGroup(t),this.toActionButtonGroup(t))}toBodyGroup(t,e){let r=t.state;return["g",this.toClippedImageGroupDOM(t,e),lo.createStrokeGroup(r.path_config,r.paths)]}toClippedImageGroupDOM(t,e){return["g",this.toBackgroundGroupDOM(t,e),this.toImageGroupDOM(t,e)]}toBackgroundGroupDOM(t,e){return lo.createShapeGroup({fill:"#000000"},t.state.paths)}toImageGroupDOM(t,e){let r=t.state.parent_transform;return["g",["image",{preserveAspectRatio:"none",x:"0",y:"0",width:Math.abs(r.width)+"",height:Math.abs(r.height)+""}]]}toActionButtonGroup(t,e){return["g",{},["image",{preserveAspectRatio:"none"}]]}getPosterImage(t){return this.getBodyGroupDOM(t).firstChild.childNodes[1].firstChild}getActionButtonGroupDOM(t){return this.getSvgDOM(t).childNodes[3]}getPlayButtonImage(t){return this.getActionButtonGroupDOM(t).firstChild}}},text_block:{type:Hw,content:"basic_block+"},table_block:{type:zw,content:"table"},shape_text_block:{type:Gw,content:"basic_block+"},object_group:{type:class extends aS{get isObjectGroup(){return!0}get Node(){return ww}overrideJsonConversionContentOptions(t,e){return e.use_abs_transform&&(e=jt(e),delete e.use_abs_transform),e}},content:"groupable_object{2,}"},title_slide_holder:{type:JS,content:"title_slide_holder_shape"},sub_title_slide_holder:{type:WS,content:"sub_title_slide_holder_shape"},body_slide_holder:{type:ZS,content:"body_slide_holder_shape"},page_number_slide_holder:{type:YS,content:"page_number_slide_holder_shape"},date_time_slide_holder:{type:XS,content:"date_time_slide_holder_shape"},title_slide_holder_shape:{type:lC,content:"title_slide_holder_text_block"},sub_title_slide_holder_shape:{type:lC,content:"sub_title_slide_holder_text_block"},body_slide_holder_shape:{type:lC,content:"body_slide_holder_text_block"},page_number_slide_holder_shape:{type:lC,content:"page_number_slide_holder_text_block"},date_time_slide_holder_shape:{type:lC,content:"date_time_slide_holder_text_block"},title_slide_holder_text_block:{type:Jw,content:"basic_block+"},sub_title_slide_holder_text_block:{type:Jw,content:"basic_block+"},body_slide_holder_text_block:{type:Jw,content:"basic_block+"},page_number_slide_holder_text_block:{type:Jw,content:"basic_block+"},date_time_slide_holder_text_block:{type:Jw,content:"basic_block+"},paragraph:{type:Ww,content:"inline<_>*"},holder_paragraph:{type:Zw,content:"inline<_>*"},page_number:{type:Yw},date_time:{type:Xw},table:{type:HM},table_row:{type:GM},table_cell:{type:zM}},groups:{block:t=>{let e=t.indexOf("table");return t.slice(0,e).concat(t.slice(e+1))},inline:t=>t.concat("page_number","date_time"),groupable_object:["text_box","shape_box","line_box","image_box","chart_box","object_group"],content_object:["text_box","shape_box","line_box","image_box","chart_box","table_box","video_box","object_group"],master_content_object:["title_master_holder","sub_title_master_holder","body_master_holder","page_number_master_holder","date_time_master_holder"],layout_content_object:["title_layout_holder","sub_title_layout_holder","body_layout_holder","page_number_layout_holder","date_time_layout_holder"],slide_content_object:["title_slide_holder","sub_title_slide_holder","body_slide_holder","page_number_slide_holder","date_time_slide_holder"]},preset:function(t){let e=JSON.parse(pC);return t.testVersion(e)?e:{...e,attrs:{...e.attrs,schema:t.getVersion()}}},getInitialSelection:t=>{let{node:e,offset:r}=t.queryChild("slide_container",!0);return 0!==e.childCount?mi.create(t,r+1).toMultiSelection():mi.create(t,r).toMultiSelection()}}),yC=new wm(dC);class xC extends Uc{checkFloatingResolvedPos(t,e,r){let s=this.checkResolvedPos(t,e,r);return s&&s.self.type.isFloatingObject?s:null}checkFloatingNode(t,e,r){let s=this.checkFloatingResolvedPos(t,e,r);return s&&s.self}checkFloatingPathData(t,e,r){let s=this.checkPathData(t,e,r);return s&&s.node&&s.node.type.isFloatingObject?s:null}}class gC extends xC{checkGroupResolvedPos(t,e,r){let s=this.checkFloatingResolvedPos(t,e,r);return s&&s.self.type.isObjectGroup?s:null}checkGroupNode(t,e,r){let s=this.checkGroupResolvedPos(t,e,r);return s&&s.self}checkGroupPathData(t,e,r){let s=this.checkFloatingPathData(t,e,r);return s&&s.node&&s.node.type.isObjectGroup?s:null}}class fC extends xC{checkGroupableResolvedPos(t,e,r){let s=this.checkFloatingResolvedPos(t,e,r);return s&&s.self.type.groupable?s:null}checkGroupableNode(t,e,r){let s=this.checkGroupableResolvedPos(t,e,r);return s&&s.self}checkGroupablePathData(t,e,r){let s=this.checkFloatingPathData(t,e,r);return s&&s.node&&s.node.type.groupable?s:null}}class mC extends xC{constructor(t,e,r,s){super(t,e),this.trans=r||null,this.scale=s}}function bC(t){return t&&t.trans_map||new ol}function _C(){return{trans_map:new ol}}function AC(t){let e=t&&t.trans_map;return e&&e.size?e:null}function MC(t,e,r){if(!e||!e.size)return t;let s=r&&r.apply_fn,n=r&&r.apply_scope;return e.forEach(s?function(e,r){t=s.call(n,t,r,e)}:function(e,r){t=wC(t,r,e)}),t}function wC(t,e,r=null){let s=t.nodeAt(e),n=s.copy(s.content,{transform:r});return t.replace(e,e+n.nodeSize,new vn(n))}function SC(t,e,r,s){let n=new Map;return n.set(e,r),function(t,e,r,s,n){let a=t.nodeAt(e);if(!a.type.isObjectGroup)return;let i=Ao.getScale(a.attrs.transform,r);if(Lt(i,1))return;s.set(e,new dl(Et(i)));let o=a.state;!function t(e,r,s,n,a,i,o,l,h){if(!s.type.isObjectGroup)return;let u=s.state,c=new pl(a,i,o,u.transform,u.transform_matrix,l,h),p=n+1;s.forEach((function(s,n){let l=p+n,h=s.state,u=c.applyWithInfo(s.attrs.transform,{final_trans:h.transform,final_matrix:h.transform_matrix});e.set(l,c),r.set(l,u.trans),t(e,r,s,l,a,i,o,u.new_final_trans,u.new_final_matrix)}))}(s,n,a,e,i,o.transform,o.transform_matrix,o.transform,o.transform_matrix)}(t,e,r,bC(s),n),MC(t,n,s)}function CC(t,e,r){let s=PC(t,e);if(!s.length)return t;let n=bC(r),a=new Map;for(let t=s.length-1;t>=0;--t){let e=s[t];TC(n,a,e.node,e.pos)}return MC(t,a,r)}function PC(t,e){let r=e.map(t.resolve,t),s=new Map,n=[];for(let t=r.length-1;t>=0;--t){let e=r[t];for(let t=e.depth;t>=0;--t){let r=e.node(t);if(!r.type.isObjectGroup)break;let a=e.before(t);if(s.has(a))break;s.set(a,r),n.push({pos:a,node:r})}}return n.length&&n.sort(((t,e)=>t.pos-e.pos)),n}function TC(t,e,r,s){var n,a,i,o,l,h,u,c,p,d,y,x,g,f;let m,b,_,A,M,w,S,C,P,T=r.attrs.transform,v={left:0,top:0,right:Math.abs(T.width),bottom:Math.abs(T.height)},I=(n=e,a=r,i=s,m=_o.reverse(a.localAttrs.transform_matrix),b=[],_=i+1,A=a.localAttrs,a.forEach((function(t,e){let r=t.localAttrs,s=n.get(_+e);if(s){let t=Ao.merge(A.transform,s,A.transform_matrix);b.push(Mo.fromTransform(t,_o.multiply(m,_o.fromTransform(t))))}else b.push(Mo.fromTransform(r.transform,_o.multiply(m,r.transform_matrix)))})),Mo.fromBoundingArray(b)),k=(o=I,l=v,{left:(M=function(t){return gt(o[t],l[t])*vC[t]})("left"),top:M("top"),right:M("right"),bottom:M("bottom")});if(!(h=k).left&&!h.top&&!h.right&&!h.bottom)return;let E=(u=k,c=I,p=v,w=function(t){return 0===u[t]?p[t]:c[t]},S=Object.create(null),C=Object.create(null),S.x=w("left"),S.y=w("top"),C.x=w("right")-S.x-p.right,C.y=w("bottom")-S.y-p.bottom,{move:S,size:C}),N=new ul(E.move,E.size);t.set(s,N),e.set(s,N.apply(T)),N.isMove()&&(d=t,y=e,x=r,g=s,f=new cl(kt(E.move)),P=g+1,x.forEach((function(t,e){let r=P+e,s=y.get(r)||t.attrs.transform;d.set(r,f),y.set(r,f.apply(s))})))}let vC={left:-1,top:-1,right:1,bottom:1};function IC(t,e){let r=t.shrink("AbstractSlide"),s=LM(r,[t.pos-r.pos-1]),n=[t.pos,...s.map((({pos:t})=>t))],a=t.root;return CC(a=function(t,e){for(let{pos:r,transform:s}of e){let e=t.nodeAt(r);if(!e)throw new fl(`The given position does not point to a node. pos: ${r}`);t=t.replace(r,r+e.nodeSize,vn.from(e.copyWithAttrs({transform:s})))}return t}(a,s),n,e)}class kC extends mC{constructor(t,e,r,s){super(t,e,r,s)}doApply(t){if(!this.checkFloatingResolvedPos(t,this.from,this.to))return"No valid node in given `from`.";let e=_C();return t=IC((t=SC(t,this.from,this.trans,e)).resolve(this.from),e),this.trans_map=AC(e),t}customMap(){return this.trans_map&&new el({transform:this.trans_map})}invert(t){let e=this.checkFloatingNode(t,this.from,this.to);if(!e)return null;let r=e.attrs.transform;if(r){let t=this.trans_map&&this.trans_map.get(this.from);if(t){let e=t.applyResult(new il(r));return new this.constructor(this.from,this.to,e.trans,e.scale)}}return new this.constructor(this.from,this.to,r)}map(t){let e={transform:new il(this.trans,this.scale)},r=this.mapRange(t,{map_custom:e});if(r.deleted)return null;let s=e.transform;return s&&new this.constructor(r.from,r.to,s.trans,s.scale)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to,trans:this.trans,scale:this.scale}}static fromJSON(t,e){return new kC(e.from,e.to,e.trans,e.scale)}}cc.jsonID("transformFloating",kC),cc.jsonID("fixGroup",class extends pc{}),cc.jsonID("groupFloating",class extends cc{static fromJSON(t,e){return new EC(e.from_arr,e.to_arr,t.nodeType("object_group").create({transform:e.trans}))}});class EC extends fC{constructor(t,e,r){super(),this.from_arr=t,this.to_arr=e,this.node=r}checkGroup(t,e,r){let s=Object.create(null),n=[],a=e.length;for(let i=0;i<a;++i){let a=e[i],o=r[i];if(s[a])return null;s[a]=!0;let l=this.checkGroupablePathData(t,a,o);if(!l)return null;isNaN(Kw.getTopObjectGroupDepth(l.$pos))&&n.push(l)}return n.length>=2?n.sort(((t,e)=>t.pos-e.pos)):[]}doApply(t){let{from_arr:e,to_arr:r}=this;if(e.length!==r.length)return`Array of \`from\` and \`to\` has different length. (${e}, ${r})`;let s=this.checkGroup(t,e,r);if(!s)return"No groupable node at given position.";if(this.checkPosMap(t)||this._genPosMap(t,s),!s.length)return t;let n=this.node.deepCopy({target:"replace"}),a=n.attrs.transform,i=_o.fromTransform(a),o=[];for(let t=0;t<s.length;++t){let e=s[t].node,r=e.state;o.push(e.copy(e.content,{transform:Ao.split(a,r.transform,i,r.transform_matrix)}))}let l=s[s.length-1];n=n.copy(Tn.from(o),{transform:Ao.split(l.node.state.parent_transform,a,l.node.parent_transform_matrix,i)});let h=l.pos;for(let e=s.length-1;e>=0;--e){let r=s[e],n=r.pos,a=r.node.nodeSize;t=t.replace(n,n+a,vn.empty),n<h&&(h-=a)}t=t.replace(h,h,vn.from(n));let u=new ol,c=new Map,p=new yl(void 0,void 0,a,i),d=h+1;return n.forEach((function(t,e){u.set(d+e,p)})),TC(u,c,t.nodeAt(h),h),this.trans_map=u,t=MC(t,c)}checkPosMap(t){return this.cache_doc===t&&this.pos_map}_genPosMap(t,e){return(this.cache_doc=t,e&&e.length)?this.pos_map=new zo(e,e[e.length-1].pos):this.pos_map=zo.empty}genPosMap(t){return t?this.checkPosMap(t)?this.pos_map:this._genPosMap(t,this.checkGroup(t,this.from_arr,this.to_arr)):this.pos_map||zo.empty}posMap(t){return this.genPosMap(t)}customMap(){return this.trans_map&&new el({transform:this.trans_map})}invert(t){if(this.from_arr.length!==this.to_arr.length)return null;let e=this.checkGroup(t,this.from_arr,this.to_arr);if(!e||!e.length)return null;let r=e[e.length-1],s=r.pos+r.node.nodeSize,n=0;for(let t=0;t<e.length;++t)n+=e[t].node.nodeSize;return new NC(s-n,s+2)}map(t){let e=this.from_arr.length,r=[],s=[];for(let n=0;n<e;++n){let e=this.mapNodeResult(t,this.from_arr[n],this.to_arr[n]);e.deleted||(r.push(e.from),s.push(e.to))}return r.length<2?null:new this.constructor(r,s,this.node)}toJSON(t){return{stepType:this.jsonID,from_arr:this.from_arr,to_arr:this.to_arr,node:this.node}}static fromJSON(t,e){return new EC(e.from_arr,e.to_arr,t.nodeFromJSON(e.node))}}cc.jsonID("groupFloatingV2",EC);class NC extends gC{constructor(t,e){super(t,e)}apply(t){let e=this.checkGroupPathData(t,this.from,this.to);if(!e)return _l.fail("No group node at given position.");let r=e.node,s=r.localAttrs,n=e.$pos.node(e.depth-1).localAttrs,a=new yl(s.transform,s.transform_matrix,n.transform,n.transform_matrix),i=new ol,o=[],l=e.pos;return r.forEach((function(t,e){i.set(l+e,a);let r=t.localAttrs,s=Ao.split(n.transform,r.transform,n.transform_matrix,r.transform_matrix),h=t.copy(t.content,{transform:s});o.push(h)})),this.trans_map=i,_l.fromReplace(t,this.from,this.to,new vn(Tn.from(o),0,0))}posMap(t){return new Ho([this.from,1,0,this.to-1,1,0])}customMap(){return this.trans_map&&new el({transform:this.trans_map})}invert(t){let e=this.checkGroupNode(t,this.from,this.to);if(!e)return null;let r=[],s=[],n=this.from;e.forEach((function(t,e){let a=n+e;r.push(a),s.push(a+t.nodeSize)}));let a=e.state.transform;return new EC(r,s,e.copy(null,a&&{transform:a}).deepCopy({target:"replace"}))}map(t){let e=this.mapNodeResult(t,this.from,this.to);return e.deleted?null:new this.constructor(e.from,e.to)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to}}static fromJSON(t,e){return new NC(e.from,e.to)}}cc.jsonID("ungroupFloating",NC);class LC extends cc{constructor(t,e,r){super(),this.pos=t,this.trans=e||null,this.node=r}doPrepare(){return{step:new this.constructor(this.pos,this.trans,this.node.deepCopy({target:"replace"})),replacements:[{pos:this.pos,insertionSlice:this.node}]}}doApply(t){let e=t.resolve(this.pos).parent,r=this.trans;if(e.type.isObjectGroup){let t=e.state;r=Ao.split(t.transform,r,t.transform_matrix)}let s=this.node.copy(this.node.content,{transform:r}).deepCopy({target:"replace"});t=t.replace(this.pos,this.pos,new vn(s));let n=_C();return t=IC(t.resolve(this.pos),n),this.trans_map=AC(n),t}posMap(){return new Ho([this.pos,0,this.node.nodeSize])}invert(t){return new RC(this.pos,this.pos+this.node.nodeSize)}map(t){return new this.constructor(t.map(this.pos,1),this.trans,this.node)}toJSON(t){return{stepType:this.jsonID,pos:this.pos,trans:this.trans,node:this.node.toJSON(t)}}static fromJSON(t,e){return new LC(e.pos,e.trans,t.nodeFromJSON(e.node))}}cc.jsonID("insertFloating",LC);class jC extends xC{constructor(t,e,r,s,n){super(t,e),this.trans=r,this.node=s,this.index=n,this.del_index=+!n;let a=s.maybeChild(n);a&&(this.before_size=this.node.content.offsetAt(this.index)+1,this.after_size=this.node.nodeSize-this.before_size-a.nodeSize)}doApply(t){if(2!==this.node.childCount)return`Child count of node is not 2. (${this.node.childCount})`;let e=this.index;if(0!==e&&1!==e)return`Invalid index. (${e})`;let r=this.checkFloatingResolvedPos(t,this.from,this.to);if(!r)return"No valid node in given `from`.";let s=r.self,n=r.parent.state,a=_o.fromTransform(this.trans),i=new yl(n.transform,n.transform_matrix,this.trans,a);(new ol).set(this.from+this.before_size,i);let o=this.node.deepCopy({target:"replace"}),l=o.child(e).copy(s.content),h=Ao.split(n.transform,this.trans,n.transform_matrix,a),u=o.copy(o.content.replaceChild(e,l),{transform:h});t=t.replace(this.from,this.to,new vn(u));let c=_C();return t=IC(t.resolve(this.from),c),this.trans_map=AC(c),t}posMap(){return new Ho([this.from,0,this.before_size,this.to,0,this.after_size])}customMap(){return this.trans_map&&new el({transform:this.trans_map})}invert(t){let e=this.checkFloatingNode(t,this.from,this.to);if(!e)return null;let r=this.from+1+(this.del_index?e.nodeSize:0);return new RC(r,r+this.node.child(this.del_index).nodeSize)}map(t){let e=this.mapNodeResult(t,this.from,this.to);return e.deleted?null:new this.constructor(e.from,e.to,this.trans,this.node,this.index)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to,trans:this.trans,node:this.node.toJSON(t),index:this.index}}static fromJSON(t,e){return new jC(e.from,e.to,e.trans,t.nodeFromJSON(e.node),e.index)}}cc.jsonID("liftDownFloating",jC);class RC extends xC{constructor(t,e){super(t,e)}get slice(){return vn.empty}doApply(t){let e,r=this.checkFloatingResolvedPos(t,this.from,this.to);if(!r)return"No valid node in given `from`.";let s=OC(t,this.from);this.checkPosMap(t)||this._genPosMap(t,s);let n=_C();if(s){let{lift_node:r,del_node:a,del_pos:i,del_data:o}=s,l=r.state,h=a.state,u=o.$pos.node(o.depth-1),c=u.state;u.type.isObjectGroup&&(e=o.pos),n.trans_map.set(i,new yl(h.transform,h.transform_matrix,c.transform,c.transform_matrix));let p=Ao.split(c.transform,l.transform,c.transform_matrix,l.transform_matrix),d=r.copy(r.content,{transform:p});t=t.replace(i,i+a.nodeSize,new vn(d))}else r.parent.type.isObjectGroup&&(e=this.from),t=t.replace(this.from,this.to,vn.empty);return null!=e&&(t=CC(t,[e],n)),this.trans_map=AC(n),t}checkPosMap(t){return this.cache_doc===t&&this.pos_map}_genPosMap(t,e){if(this.cache_doc=t,!e)return this.pos_map=new Ho([this.from,this.to-this.from,0]);let r=e.del_pos+e.del_node.nodeSize,s=e.lift_pos+e.lift_node.nodeSize;return this.pos_map=new Ho([e.del_pos,e.lift_pos-e.del_pos,0,s,r-s,0])}genPosMap(t){return t?this.checkPosMap(t)?this.pos_map:this._genPosMap(t,OC(t,this.from)):this.pos_map||new Ho([this.from,this.to-this.from,0])}posMap(t){return this.genPosMap(t)}customMap(){return this.trans_map&&new el({transform:this.trans_map})}invert(t){let e=this.checkFloatingNode(t,this.from,this.to);if(!e)return null;let r=OC(t,this.from);if(r){let t=r.lift_node.copy(Tn.empty),e=r.del_node.copy(r.del_node.content.replaceChild(r.lift_index,t)).deepCopy({target:"replace"});return new jC(r.del_pos,r.del_pos+r.lift_node.nodeSize,Ao.copy(r.del_node.localAttrs.transform),e,r.lift_index)}{let t=e.copy(e.content).deepCopy({target:"replace"});return new LC(this.from,Ao.copy(e.localAttrs.transform),t)}}map(t){let e=this.mapNodeResult(t,this.from,this.to);return e.deleted?null:new this.constructor(e.from,e.to)}toJSON(t){return{stepType:this.jsonID,from:this.from,to:this.to}}static fromJSON(t,e){return new RC(e.from,e.to)}}function OC(t,e){let r,s,n,a=Kw.getObjectGroupData(t.resolve(e));if(!a)return null;let i=a.node;if(2!==i.childCount)return null;let o=a.pos;return i.forEach((function(t,a,i){let l=o+1+a;if(l!==e)return r=l,s=t,n=i,!0}),null,!0),{del_data:a,del_pos:o,del_node:i,lift_pos:r,lift_node:s,lift_index:n}}function DC(t,e,r){return ht(t,"customMapName","slide_animation_index"),ht(t,"nodeTypeName","slide"),ht(t,"namePath",["animations"]),r&&ht(t,"invertStepCls",r),cc.jsonID(e,t),t}cc.jsonID("deleteFloating",RC);class FC extends Yc{}class BC extends Xc{}class VC extends Kc{}class HC extends Qc{}class GC extends tp{}function zC(t,e){let r=t.nodeAt(e);if(!r||!r.type.isFloatingObject)throw RangeError("No floating object at given position");return r}function UC(t,e){let r=t.nodeAt(e);if(!r||!r.type.isAbstractSlide)throw RangeError("No slide at given position");return r}DC(FC,"insertSlideAnimation",BC),DC(BC,"removeSlideAnimation",FC),DC(VC,"reorderSlideAnimation"),DC(HC,"modifySlideAnimation"),DC(GC,"setSlideAnimation"),gc.prototype.deleteFloating=function(t){t=t.sort(((t,e)=>t-e));let e=this.length;for(let r=t.length-1;r>=0;--r)this._deleteFloating(this.mapNode(t[r],1,e));return this},gc.prototype._deleteFloating=function(t){let e=zC(this.doc,t);return this.step(new RC(t,t+e.nodeSize))},gc.prototype.insertFloating=function(t,e,r,s){return this.step(new LC(t,r||e.attrs.transform,e),s)},gc.prototype.transformFloating=function(t,e){let r=zC(this.doc,t);return this.step(new kC(t,t+r.nodeSize,e))},gc.prototype.groupFloating=function(t){let e=t.length,r=[];for(let s=0;s<e;++s){let e=t[s];r.push(e+function(t,e){let r=zC(t,e);if(!r||!r.type.groupable)throw RangeError("No groupable node at given position");return r}(this.doc,e).nodeSize)}return this.step(new EC(t,r,this.doc.type.schema.nodeType("object_group").create()))},gc.prototype.ungroupFloating=function(t){return this.step(new NC(t,t+function(t,e){let r=zC(t,e);if(!r||!r.type.isObjectGroup)throw RangeError("No object group at given position");return r}(this.doc,t).nodeSize))},gc.prototype.insertSlideAnimation=function(t,e,r,s){return this.step(new FC(t,t+UC(this.doc,t).nodeSize,e,r,s))},gc.prototype.removeSlideAnimation=function(t,e,r){return this.step(new BC(t,t+UC(this.doc,t).nodeSize,e,r))},gc.prototype.reorderSlideAnimation=function(t,e,r,s){return this.step(new VC(t,t+UC(this.doc,t).nodeSize,e,r,s))},gc.prototype.modifySlideAnimation=function(t,e,r,s){return this.step(new HC(t,t+UC(this.doc,t).nodeSize,e,r,s))},gc.prototype.setSlideAnimation=function(t,e,r){return this.step(new GC(t,t+UC(this.doc,t).nodeSize,e,r))};let qC=t=>{class e extends t.prototype.Node{getHolderParagraphNodes(){let t=[];return this.descendants((function(e){if(e.type.isHolderParagraph)return t.push(e),!1})),t}}return class extends t{get Node(){return e}}},$C=t=>class extends t{registerSelfLocalAttrsUpdateMap(t){this.registerList()}registerList(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_list_level",null,((t,e)=>{let r=e.state.legacy_list_level,s=null==r?0:r+1;return t.state.legacy_list_level===s?Bn.STATE_NONE:(t.state.legacy_list_level=s,Bn.STATE_UPDATE)}))}},JC=t=>class extends t{registerSelfLocalAttrsUpdateMap(t){this.registerListContent()}registerListContent(){let t=this.getStateMap();t.register(t.FROM_PARENT,this.name,"set_list_level",null,((t,e)=>{let r=e.state.legacy_list_level||0;return t.state.legacy_list_level===r?Bn.STATE_NONE:(t.state.legacy_list_level=r,Bn.STATE_UPDATE)}))}},WC=t=>(t=Lm(t),t=Vm(t),t=JC(t),class extends t{getInheritedLevel(t,e){return t.state.legacy_list_level}}),ZC=$C(Wm),YC=$C(Zm),XC=JC(Ym);class KC extends Hm{collectActions(t){let e=super.collectActions(t);return e.forEach((({node:t,attrs:e})=>{t.type.isHolderParagraph&&1.5===e.lineHeight&&(e.lineHeight=null)})),e}}cc.jsonID("presentationRefineTextblock",KC);class QC extends Xm{_createList(t,e,r,s){return/order_[1-9]/.test(t.type.name)&&(r="_"),super._createList(t,e,r,s)}}class tP extends Km{createListParser(){return new QC}}cc.jsonID("presentationFlattenList",tP);class eP extends Nm{shouldStartWithBasicBlock(t){let e=t.type;return!!(e.isTextBlock||e.isNote||e.isTableCell)}}cc.jsonID("presentationPrependBasicBlock",eP);let rP={diff:{nodes:{paragraph:{type:WC},holder_paragraph:{type:WC},table_row:{content:"table_cell*"},table_cell:{type:ob},ordered_list:{type:ZC,content:"list_item+"},bullet_list:{type:YC,content:"list_item+"},list_item:{type:XC,content:"basic_block+"},title_master_holder_text_block:{type:qC},body_master_holder_text_block:{type:qC,content:"(holder_paragraph | order_1) holder_paragraph{0,8}"},title_layout_holder_text_block:{type:qC},body_layout_holder_text_block:{type:qC,content:"(holder_paragraph | order_1) holder_paragraph{0,8}"},title_slide_holder_text_block:{type:qC},sub_title_slide_holder_text_block:{type:qC},body_slide_holder_text_block:{type:qC},page_number_slide_holder_text_block:{type:qC},item:{type:XC,content:"holder_paragraph"},order_1:{type:ZC,content:"item item_1"},item_1:{type:XC,content:"order_2"},order_2:{type:ZC,content:"item item_2"},item_2:{type:XC,content:"order_3"},order_3:{type:ZC,content:"item item_3"},item_3:{type:XC,content:"order_4"},order_4:{type:ZC,content:"item item_4"},item_4:{type:XC,content:"order_5"},order_5:{type:ZC,content:"item item_5"},item_5:{type:XC,content:"order_6"},order_6:{type:ZC,content:"item item_6"},item_6:{type:XC,content:"order_7"},order_7:{type:ZC,content:"item item_7"},item_7:{type:XC,content:"order_8"},order_8:{type:ZC,content:"item item_8"},item_8:{type:XC,content:"order_9"},order_9:{type:ZC,content:"item"}},groups:{block:t=>t.concat("ordered_list","bullet_list"),basic_block:t=>t.concat("ordered_list","bullet_list")},marks:{empty:Qm,code:Qm,deletion:Qm,insertion:Qm}},steps:[{stepType:eP.prototype.jsonID},{stepType:jm.prototype.jsonID},{stepType:KC.prototype.jsonID},{stepType:Gm.prototype.jsonID},{stepType:tP.prototype.jsonID},{stepType:$m.prototype.jsonID},{stepType:rb.prototype.jsonID},{stepType:sb.prototype.jsonID}]},sP={diff:{nodes:{...["master","layout","slide","title_master_holder","sub_title_master_holder","body_master_holder","page_number_master_holder","title_slide_holder","sub_title_slide_holder","body_slide_holder","page_number_slide_holder","object_group","text_box","table_box","shape_box","line_box","image_box","chart_box","video_box","paragraph","holder_paragraph","table","table_row","table_cell"].reduce(((t,e)=>(t[e]={type:lb},t)),Object.create(null)),paragraph:{type:t=>lb(ub(t))},holder_paragraph:{type:t=>lb(ub(t))}},marks:{discussion:pb},preset:null},steps:[{stepType:fb.prototype.jsonID}]};class nP extends mb{}nP.register("presentationAddSettingsMigration");let aP={diff:{nodes:{doc:{content:t=>t&&t.replace(/settings/g,"settings?")}},preset:(t,e)=>{let r=t.getPresetData(e,"json");return{...r,content:r.content?.slice(1)}}},steps:[{stepType:nP.prototype.jsonID}]},iP={type:t=>wb(_b(t))},oP={type:t=>Sb(Ab(t))},lP=new Em(yC,[null,null,null,null,null,null,null,rP,sP,{},{},aP,{diff:{nodes:{paragraph:iP,holder_paragraph:iP,title_master_holder_text_block:oP,body_master_holder_text_block:oP,title_layout_holder_text_block:oP,body_layout_holder_text_block:oP,text_block:oP,table_block:oP,shape_text_block:oP,title_slide_holder_text_block:oP,sub_title_slide_holder_text_block:oP,body_slide_holder_text_block:oP,page_number_slide_holder_text_block:oP,date_time_slide_holder_text_block:oP,note:oP},marks:{font_family:bb,font_size:Mb}}}]),hP={SynoUnicode:h}})(),module.exports=s})();