diff --git a/dist/css/chunk-f72c6b9a.css b/dist/css/chunk-5c17f390.css similarity index 99% rename from dist/css/chunk-f72c6b9a.css rename to dist/css/chunk-5c17f390.css index 2b263320..ca540eaa 100644 --- a/dist/css/chunk-f72c6b9a.css +++ b/dist/css/chunk-5c17f390.css @@ -12,7 +12,7 @@ * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com - */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.sidebarContainer[data-v-e9a8c6d4]{position:fixed;right:-300px;top:110px;bottom:0;width:300px;background-color:#fff;border-left:1px solid #e8e8e8;display:flex;flex-direction:column;transition:all .3s}.sidebarContainer.isDark[data-v-e9a8c6d4]{background-color:#262a2e;border-left-color:hsla(0,0%,100%,.1)}.sidebarContainer.isDark .sidebarHeader[data-v-e9a8c6d4]{border-bottom-color:hsla(0,0%,100%,.1);color:#fff}.sidebarContainer.isDark .closeBtn[data-v-e9a8c6d4]{color:#fff}.sidebarContainer.show[data-v-e9a8c6d4]{right:0}.sidebarContainer .closeBtn[data-v-e9a8c6d4]{position:absolute;right:20px;top:12px;font-size:20px;cursor:pointer}.sidebarContainer .sidebarHeader[data-v-e9a8c6d4]{width:100%;height:44px;border-bottom:1px solid #e8e8e8;display:flex;justify-content:center;align-items:center;flex-grow:0;flex-shrink:0}.sidebarContainer .sidebarContent[data-v-e9a8c6d4]{width:100%;height:100%;overflow:auto}.customNode[data-v-7964bb7f]{width:100%;color:rgba(0,0,0,.85);font-weight:700}.customNode .nodeEdit[data-v-7964bb7f]{outline:none;white-space:normal;padding-right:20px}.outlineTree.isDark[data-v-7964bb7f]{background-color:#262a2e}.outlineTree.isDark .customNode[data-v-7964bb7f]{color:#fff}.outlineTree.isDark.el-tree--highlight-current[data-v-7964bb7f] .el-tree-node.is-current>.el-tree-node__content{background-color:hsla(0,0%,100%,.05)!important}.outlineTree.isDark .el-upload-list__item[data-v-7964bb7f]:hover,.outlineTree.isDark[data-v-7964bb7f] .el-tree-node__content:hover{background-color:hsla(0,0%,100%,.02)!important}.outlineTree.isDark[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon{color:#fff}.outlineTree.isDark[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#fff}.outlineTree[data-v-7964bb7f] .el-tree-node>.el-tree-node__children{overflow:inherit}.outlineTree[data-v-7964bb7f] .el-tree-node__content{height:auto;margin:5px 0}.outlineTree[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon{color:#262a2e}.outlineTree[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon.is-leaf{color:transparent;position:relative}.outlineTree[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#262a2e;position:absolute;content:"";width:5px;height:5px;border-radius:50%;left:10px;top:50%;transform:translateY(-50%)}.changeBtn[data-v-8cff0f40]{position:absolute;right:50px;top:12px;cursor:pointer}.changeBtn.isDark[data-v-8cff0f40]{color:#fff}.colorContainer.isDark .moreColor[data-v-530a160f]{color:hsla(0,0%,100%,.6)}.colorList[data-v-530a160f]{width:240px;display:flex;flex-wrap:wrap}.colorList .colorItem[data-v-530a160f]{display:flex;justify-content:center;align-items:center;width:15px;height:15px;margin-right:5px;margin-bottom:5px;cursor:pointer}.moreColor[data-v-530a160f]{display:flex;align-items:center}.moreColor span[data-v-530a160f]{margin-right:5px}.styleBox[data-v-11840430]{width:100%;height:100%;display:flex;flex-direction:column}.styleBox.isDark .sidebarContent .title[data-v-11840430]{color:#fff}.styleBox.isDark .sidebarContent .row .rowItem .name[data-v-11840430]{color:hsla(0,0%,100%,.6)}.styleBox.isDark .sidebarContent .row .styleBtn[data-v-11840430]{background-color:#363b3f;color:hsla(0,0%,100%,.6);border-color:hsla(0,0%,100%,.1)}.styleBox .tab[data-v-11840430]{flex-grow:0;flex-shrink:0;padding:0 20px}.tipBox[data-v-11840430]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#666}.tipBox .tipIcon[data-v-11840430]{font-size:100px}.sidebarContent[data-v-11840430]{padding:20px;padding-top:10px}.sidebarContent .title[data-v-11840430]{font-size:16px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(26,26,26,.9);margin-bottom:10px;margin-top:20px}.sidebarContent .title.noTop[data-v-11840430]{margin-top:0}.sidebarContent .row[data-v-11840430]{display:flex;justify-content:space-between;margin-bottom:10px}.sidebarContent .row .btnGroup[data-v-11840430]{width:100%;display:flex;justify-content:space-between}.sidebarContent .row .rowItem[data-v-11840430]{display:flex;align-items:center}.sidebarContent .row .rowItem .name[data-v-11840430]{font-size:12px;margin-right:10px}.sidebarContent .row .rowItem .block[data-v-11840430]{display:inline-block;width:30px;height:30px;border:1px solid #dcdfe6;border-radius:4px;cursor:pointer}.sidebarContent .row .rowItem .block.disabled[data-v-11840430]{background-color:#f5f7fa!important;border-color:#e4e7ed!important;color:#c0c4cc!important;cursor:not-allowed!important}.sidebarContent .row .styleBtn[data-v-11840430]{position:relative;width:50px;height:30px;background:#fff;border:1px solid #eee;display:flex;justify-content:center;align-items:center;font-weight:700;cursor:pointer;border-radius:4px}.sidebarContent .row .styleBtn.actived[data-v-11840430]{background-color:#eee}.sidebarContent .row .styleBtn.disabled[data-v-11840430]{background-color:#f5f7fa!important;border-color:#e4e7ed!important;color:#c0c4cc!important;cursor:not-allowed!important}.sidebarContent .row .styleBtn.i[data-v-11840430]{font-style:italic}.sidebarContent .row .styleBtn .colorShow[data-v-11840430]{position:absolute;left:0;right:0;bottom:0;height:2px}.borderLine[data-v-11840430]{display:inline-block;width:100%;background-color:#000}.borderLine.isDark[data-v-11840430]{background-color:#fff}.sidebarContent[data-v-4cb2fe84]{padding:20px;padding-top:10px}.sidebarContent.isDark .title[data-v-4cb2fe84]{color:#fff}.sidebarContent.isDark .row .rowItem .name[data-v-4cb2fe84]{color:hsla(0,0%,100%,.6)}.sidebarContent .title[data-v-4cb2fe84]{font-size:16px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(26,26,26,.9);margin-bottom:10px;margin-top:20px}.sidebarContent .title.noTop[data-v-4cb2fe84]{margin-top:0}.sidebarContent .row[data-v-4cb2fe84]{display:flex;justify-content:space-between;margin-bottom:10px}.sidebarContent .row.column[data-v-4cb2fe84]{flex-direction:column}.sidebarContent .row .tab[data-v-4cb2fe84]{width:100%}.sidebarContent .row .imgUpload[data-v-4cb2fe84]{margin-bottom:5px}.sidebarContent .row .btnGroup[data-v-4cb2fe84]{width:100%;display:flex;justify-content:space-between}.sidebarContent .row .rowItem[data-v-4cb2fe84]{display:flex;align-items:center;margin-bottom:5px}.sidebarContent .row .rowItem .name[data-v-4cb2fe84]{font-size:12px;margin-right:10px;white-space:nowrap}.sidebarContent .row .rowItem .block[data-v-4cb2fe84]{display:inline-block;width:30px;height:30px;border:1px solid #dcdfe6;border-radius:4px;cursor:pointer}.sidebarContent .row .styleBtn[data-v-4cb2fe84]{position:relative;width:50px;height:30px;background:#fff;border:1px solid #eee;display:flex;justify-content:center;align-items:center;font-weight:700;cursor:pointer;border-radius:4px}.sidebarContent .row .styleBtn.actived[data-v-4cb2fe84]{background-color:#eee}.sidebarContent .row .styleBtn .colorShow[data-v-4cb2fe84]{position:absolute;left:0;right:0;bottom:0;height:2px}.borderLine[data-v-4cb2fe84]{display:inline-block;width:100%;background-color:#000}.borderLine.isDark[data-v-4cb2fe84]{background-color:#fff}.el-select-dropdown__item.selected .borderLine{background-color:#409eff}.lineStyleOption.isDark svg path{stroke:#fff}.lineStyleOption.isSelected svg path{stroke:#409eff}.lineStyleOption svg{margin-top:4px}.lineStyleOption svg path{stroke:#000}.themeList[data-v-80f2e6de]{padding:20px;padding-top:0}.themeList.isDark .name[data-v-80f2e6de]{color:#fff}.themeList .themeItem[data-v-80f2e6de]{width:100%;cursor:pointer;border-bottom:1px solid #e9e9e9;margin-bottom:20px;padding-bottom:20px;transition:all .2s;border:1px solid transparent}.themeList .themeItem[data-v-80f2e6de]:last-of-type{border:none}.themeList .themeItem[data-v-80f2e6de]:hover{box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.themeList .themeItem.active[data-v-80f2e6de]{border:1px solid #67c23a}.themeList .themeItem .imgBox[data-v-80f2e6de],.themeList .themeItem .imgBox img[data-v-80f2e6de]{width:100%}.themeList .themeItem .name[data-v-80f2e6de]{text-align:center;font-size:14px}.layoutList[data-v-a218ac20]{padding:20px}.layoutList.isDark .name[data-v-a218ac20]{color:#fff}.layoutList .layoutItem[data-v-a218ac20]{width:100%;cursor:pointer;border-bottom:1px solid #e9e9e9;margin-bottom:20px;padding-bottom:20px;transition:all .2s;border:1px solid transparent}.layoutList .layoutItem[data-v-a218ac20]:last-of-type{border:none}.layoutList .layoutItem[data-v-a218ac20]:hover{box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.layoutList .layoutItem.active[data-v-a218ac20]{border:1px solid #67c23a}.layoutList .layoutItem .imgBox[data-v-a218ac20],.layoutList .layoutItem .imgBox img[data-v-a218ac20]{width:100%}.layoutList .layoutItem .name[data-v-a218ac20]{text-align:center;font-size:14px}.countContainer[data-v-0770e0d2]{padding:0 12px;position:fixed;left:20px;bottom:20px;background:hsla(0,0%,100%,.8);border-radius:2px;opacity:.8;height:22px;line-height:22px;font-size:12px;display:flex}.countContainer.isDark[data-v-0770e0d2]{background:#262a2e}.countContainer.isDark .item[data-v-0770e0d2]{color:hsla(0,0%,100%,.6)}.countContainer .item[data-v-0770e0d2]{color:#555;margin-right:15px}.countContainer .item[data-v-0770e0d2]:last-of-type{margin-right:0}.countContainer .item .name[data-v-0770e0d2]{margin-right:5px}@media screen and (max-width:740px){.countContainer[data-v-0770e0d2]{display:none}}.scaleContainer[data-v-07c47fcc]{display:flex;align-items:center}.scaleContainer.isDark .btn[data-v-07c47fcc],.scaleContainer.isDark .scaleInfo[data-v-07c47fcc],.scaleContainer.isDark .scaleInfo input[data-v-07c47fcc]{color:hsla(0,0%,100%,.6)}.scaleContainer .btn[data-v-07c47fcc]{cursor:pointer}.scaleContainer .scaleInfo[data-v-07c47fcc]{margin:0 20px;display:flex;align-items:center}.scaleContainer .scaleInfo input[data-v-07c47fcc]{width:35px;text-align:center;background-color:transparent;border:none;outline:none}.fullscreenContainer[data-v-1bcbabda]{display:flex;align-items:center}.fullscreenContainer.isDark .btn[data-v-1bcbabda]{color:hsla(0,0%,100%,.6)}.fullscreenContainer .item[data-v-1bcbabda]{margin-right:12px}.fullscreenContainer .item[data-v-1bcbabda]:last-of-type{margin-right:0}.fullscreenContainer .btn[data-v-1bcbabda]{cursor:pointer}.mouseActionContainer[data-v-a1887b1e]{display:flex;align-items:center}.mouseActionContainer.isDark .btn[data-v-a1887b1e]{color:hsla(0,0%,100%,.6)}.mouseActionContainer .item[data-v-a1887b1e]{margin-right:12px}.mouseActionContainer .item[data-v-a1887b1e]:last-of-type{margin-right:0}.mouseActionContainer .btn[data-v-a1887b1e]{cursor:pointer;font-size:18px}.navigatorContainer[data-v-d46ad7d0]{padding:0 12px;position:fixed;right:20px;bottom:20px;background:hsla(0,0%,100%,.8);border-radius:5px;opacity:.8;height:44px;font-size:12px;display:flex;align-items:center}.navigatorContainer.isDark[data-v-d46ad7d0]{background:#262a2e}.navigatorContainer.isDark .item .btn[data-v-d46ad7d0],.navigatorContainer.isDark .item a[data-v-d46ad7d0]{color:hsla(0,0%,100%,.6)}.navigatorContainer .item[data-v-d46ad7d0]{margin-right:20px}.navigatorContainer .item[data-v-d46ad7d0]:last-of-type{margin-right:0}.navigatorContainer .item a[data-v-d46ad7d0]{color:#303133;text-decoration:none}.navigatorContainer .item .btn[data-v-d46ad7d0]{cursor:pointer;font-size:18px}@media screen and (max-width:590px){.navigatorContainer[data-v-d46ad7d0]{left:20px;overflow-x:auto;overflow-y:hidden;height:60px}}.box[data-v-cff0b1d2]{padding:0 20px}.box.isDark .title[data-v-cff0b1d2]{color:#fff}.box.isDark .list .item .icon[data-v-cff0b1d2],.box.isDark .list .item .name[data-v-cff0b1d2]{color:hsla(0,0%,100%,.6)}.box.isDark .list .item .value[data-v-cff0b1d2]{color:hsla(0,0%,100%,.3)}.box .title[data-v-cff0b1d2]{font-size:16px;font-weight:500;color:#333;margin:26px 0 20px}.box .list[data-v-cff0b1d2]{font-size:14px}.box .list .item[data-v-cff0b1d2]{display:flex;align-items:center;margin-bottom:15px}.box .list .item .icon[data-v-cff0b1d2]{font-size:16px;margin-right:16px}.box .list .item .name[data-v-cff0b1d2]{color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.box .list .item .value[data-v-cff0b1d2]{color:#909090;margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listBox[data-v-dbfd708e]{width:250px;background:#fff;box-shadow:0 4px 12px 0 hsla(0,0%,69%,.5);border-radius:4px;padding-top:16px;padding-bottom:16px}.listBox.isDark[data-v-dbfd708e]{background:#363b3f}.contextmenuContainer[data-v-dbfd708e]{position:fixed;font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#1a1a1a}.contextmenuContainer.isDark[data-v-dbfd708e]{color:#fff}.contextmenuContainer.isDark .item[data-v-dbfd708e]:hover{background:hsla(0,0%,100%,.05)}.contextmenuContainer .item[data-v-dbfd708e]{position:relative;height:28px;line-height:28px;padding:0 16px;cursor:pointer;display:flex;justify-content:space-between}.contextmenuContainer .item.danger[data-v-dbfd708e]{color:#f56c6c}.contextmenuContainer .item[data-v-dbfd708e]:hover{background:#f5f5f5}.contextmenuContainer .item:hover .subItems[data-v-dbfd708e]{visibility:visible}.contextmenuContainer .item.disabled[data-v-dbfd708e]{color:grey;cursor:not-allowed;pointer-events:none}.contextmenuContainer .item.disabled[data-v-dbfd708e]:hover{background:#fff}.contextmenuContainer .item .desc[data-v-dbfd708e],.contextmenuContainer .item .name[data-v-dbfd708e]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contextmenuContainer .item .desc[data-v-dbfd708e]{color:#999}.contextmenuContainer .item .subItems[data-v-dbfd708e]{position:absolute;left:100%;top:0;visibility:hidden}.richTextToolbar[data-v-50a360a9]{position:fixed;z-index:2000;height:55px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:8px;box-shadow:0 2px 16px 0 rgba(0,0,0,.06);display:flex;align-items:center;transform:translateX(-50%)}.richTextToolbar.isDark[data-v-50a360a9]{background:#363b3f}.richTextToolbar.isDark .btn[data-v-50a360a9]{color:#fff}.richTextToolbar.isDark .btn[data-v-50a360a9]:hover{background:hsla(0,0%,100%,.05)}.richTextToolbar .btn[data-v-50a360a9]{width:55px;height:55px;display:flex;justify-content:center;align-items:center;cursor:pointer}.richTextToolbar .btn[data-v-50a360a9]:hover{background-color:#eefbed}.richTextToolbar .btn.active[data-v-50a360a9]{color:#12bb37}.richTextToolbar .btn .icon[data-v-50a360a9]{font-size:20px}.richTextToolbar .btn .icon.fontColor[data-v-50a360a9]{font-size:26px}.fontOptionsList[data-v-50a360a9]{width:150px}.fontOptionsList.isDark .fontOptionItem[data-v-50a360a9]{color:#fff}.fontOptionsList.isDark .fontOptionItem[data-v-50a360a9]:hover{background-color:hsla(0,0%,100%,.05)}.fontOptionsList .fontOptionItem[data-v-50a360a9]{height:30px;width:100%;display:flex;align-items:center;cursor:pointer}.fontOptionsList .fontOptionItem[data-v-50a360a9]:hover{background-color:#f7f7f7}.fontOptionsList .fontOptionItem.active[data-v-50a360a9]{color:#12bb37} + */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.sidebarContainer[data-v-e9a8c6d4]{position:fixed;right:-300px;top:110px;bottom:0;width:300px;background-color:#fff;border-left:1px solid #e8e8e8;display:flex;flex-direction:column;transition:all .3s}.sidebarContainer.isDark[data-v-e9a8c6d4]{background-color:#262a2e;border-left-color:hsla(0,0%,100%,.1)}.sidebarContainer.isDark .sidebarHeader[data-v-e9a8c6d4]{border-bottom-color:hsla(0,0%,100%,.1);color:#fff}.sidebarContainer.isDark .closeBtn[data-v-e9a8c6d4]{color:#fff}.sidebarContainer.show[data-v-e9a8c6d4]{right:0}.sidebarContainer .closeBtn[data-v-e9a8c6d4]{position:absolute;right:20px;top:12px;font-size:20px;cursor:pointer}.sidebarContainer .sidebarHeader[data-v-e9a8c6d4]{width:100%;height:44px;border-bottom:1px solid #e8e8e8;display:flex;justify-content:center;align-items:center;flex-grow:0;flex-shrink:0}.sidebarContainer .sidebarContent[data-v-e9a8c6d4]{width:100%;height:100%;overflow:auto}.customNode[data-v-7964bb7f]{width:100%;color:rgba(0,0,0,.85);font-weight:700}.customNode .nodeEdit[data-v-7964bb7f]{outline:none;white-space:normal;padding-right:20px}.outlineTree.isDark[data-v-7964bb7f]{background-color:#262a2e}.outlineTree.isDark .customNode[data-v-7964bb7f]{color:#fff}.outlineTree.isDark.el-tree--highlight-current[data-v-7964bb7f] .el-tree-node.is-current>.el-tree-node__content{background-color:hsla(0,0%,100%,.05)!important}.outlineTree.isDark .el-upload-list__item[data-v-7964bb7f]:hover,.outlineTree.isDark[data-v-7964bb7f] .el-tree-node__content:hover{background-color:hsla(0,0%,100%,.02)!important}.outlineTree.isDark[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon{color:#fff}.outlineTree.isDark[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#fff}.outlineTree[data-v-7964bb7f] .el-tree-node>.el-tree-node__children{overflow:inherit}.outlineTree[data-v-7964bb7f] .el-tree-node__content{height:auto;margin:5px 0}.outlineTree[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon{color:#262a2e}.outlineTree[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon.is-leaf{color:transparent;position:relative}.outlineTree[data-v-7964bb7f] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#262a2e;position:absolute;content:"";width:5px;height:5px;border-radius:50%;left:10px;top:50%;transform:translateY(-50%)}.changeBtn[data-v-8cff0f40]{position:absolute;right:50px;top:12px;cursor:pointer}.changeBtn.isDark[data-v-8cff0f40]{color:#fff}.colorContainer.isDark .moreColor[data-v-530a160f]{color:hsla(0,0%,100%,.6)}.colorList[data-v-530a160f]{width:240px;display:flex;flex-wrap:wrap}.colorList .colorItem[data-v-530a160f]{display:flex;justify-content:center;align-items:center;width:15px;height:15px;margin-right:5px;margin-bottom:5px;cursor:pointer}.moreColor[data-v-530a160f]{display:flex;align-items:center}.moreColor span[data-v-530a160f]{margin-right:5px}.styleBox[data-v-11840430]{width:100%;height:100%;display:flex;flex-direction:column}.styleBox.isDark .sidebarContent .title[data-v-11840430]{color:#fff}.styleBox.isDark .sidebarContent .row .rowItem .name[data-v-11840430]{color:hsla(0,0%,100%,.6)}.styleBox.isDark .sidebarContent .row .styleBtn[data-v-11840430]{background-color:#363b3f;color:hsla(0,0%,100%,.6);border-color:hsla(0,0%,100%,.1)}.styleBox .tab[data-v-11840430]{flex-grow:0;flex-shrink:0;padding:0 20px}.tipBox[data-v-11840430]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#666}.tipBox .tipIcon[data-v-11840430]{font-size:100px}.sidebarContent[data-v-11840430]{padding:20px;padding-top:10px}.sidebarContent .title[data-v-11840430]{font-size:16px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(26,26,26,.9);margin-bottom:10px;margin-top:20px}.sidebarContent .title.noTop[data-v-11840430]{margin-top:0}.sidebarContent .row[data-v-11840430]{display:flex;justify-content:space-between;margin-bottom:10px}.sidebarContent .row .btnGroup[data-v-11840430]{width:100%;display:flex;justify-content:space-between}.sidebarContent .row .rowItem[data-v-11840430]{display:flex;align-items:center}.sidebarContent .row .rowItem .name[data-v-11840430]{font-size:12px;margin-right:10px}.sidebarContent .row .rowItem .block[data-v-11840430]{display:inline-block;width:30px;height:30px;border:1px solid #dcdfe6;border-radius:4px;cursor:pointer}.sidebarContent .row .rowItem .block.disabled[data-v-11840430]{background-color:#f5f7fa!important;border-color:#e4e7ed!important;color:#c0c4cc!important;cursor:not-allowed!important}.sidebarContent .row .styleBtn[data-v-11840430]{position:relative;width:50px;height:30px;background:#fff;border:1px solid #eee;display:flex;justify-content:center;align-items:center;font-weight:700;cursor:pointer;border-radius:4px}.sidebarContent .row .styleBtn.actived[data-v-11840430]{background-color:#eee}.sidebarContent .row .styleBtn.disabled[data-v-11840430]{background-color:#f5f7fa!important;border-color:#e4e7ed!important;color:#c0c4cc!important;cursor:not-allowed!important}.sidebarContent .row .styleBtn.i[data-v-11840430]{font-style:italic}.sidebarContent .row .styleBtn .colorShow[data-v-11840430]{position:absolute;left:0;right:0;bottom:0;height:2px}.borderLine[data-v-11840430]{display:inline-block;width:100%;background-color:#000}.borderLine.isDark[data-v-11840430]{background-color:#fff}.sidebarContent[data-v-4cb2fe84]{padding:20px;padding-top:10px}.sidebarContent.isDark .title[data-v-4cb2fe84]{color:#fff}.sidebarContent.isDark .row .rowItem .name[data-v-4cb2fe84]{color:hsla(0,0%,100%,.6)}.sidebarContent .title[data-v-4cb2fe84]{font-size:16px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:rgba(26,26,26,.9);margin-bottom:10px;margin-top:20px}.sidebarContent .title.noTop[data-v-4cb2fe84]{margin-top:0}.sidebarContent .row[data-v-4cb2fe84]{display:flex;justify-content:space-between;margin-bottom:10px}.sidebarContent .row.column[data-v-4cb2fe84]{flex-direction:column}.sidebarContent .row .tab[data-v-4cb2fe84]{width:100%}.sidebarContent .row .imgUpload[data-v-4cb2fe84]{margin-bottom:5px}.sidebarContent .row .btnGroup[data-v-4cb2fe84]{width:100%;display:flex;justify-content:space-between}.sidebarContent .row .rowItem[data-v-4cb2fe84]{display:flex;align-items:center;margin-bottom:5px}.sidebarContent .row .rowItem .name[data-v-4cb2fe84]{font-size:12px;margin-right:10px;white-space:nowrap}.sidebarContent .row .rowItem .block[data-v-4cb2fe84]{display:inline-block;width:30px;height:30px;border:1px solid #dcdfe6;border-radius:4px;cursor:pointer}.sidebarContent .row .styleBtn[data-v-4cb2fe84]{position:relative;width:50px;height:30px;background:#fff;border:1px solid #eee;display:flex;justify-content:center;align-items:center;font-weight:700;cursor:pointer;border-radius:4px}.sidebarContent .row .styleBtn.actived[data-v-4cb2fe84]{background-color:#eee}.sidebarContent .row .styleBtn .colorShow[data-v-4cb2fe84]{position:absolute;left:0;right:0;bottom:0;height:2px}.borderLine[data-v-4cb2fe84]{display:inline-block;width:100%;background-color:#000}.borderLine.isDark[data-v-4cb2fe84]{background-color:#fff}.el-select-dropdown__item.selected .borderLine{background-color:#409eff}.lineStyleOption.isDark svg path{stroke:#fff}.lineStyleOption.isSelected svg path{stroke:#409eff}.lineStyleOption svg{margin-top:4px}.lineStyleOption svg path{stroke:#000}.themeList[data-v-f7b06038]{padding:20px;padding-top:0}.themeList.isDark .name[data-v-f7b06038]{color:#fff}.themeList .themeItem[data-v-f7b06038]{width:100%;cursor:pointer;border-bottom:1px solid #e9e9e9;margin-bottom:20px;padding-bottom:20px;transition:all .2s;border:1px solid transparent}.themeList .themeItem[data-v-f7b06038]:last-of-type{border:none}.themeList .themeItem[data-v-f7b06038]:hover{box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.themeList .themeItem.active[data-v-f7b06038]{border:1px solid #67c23a}.themeList .themeItem .imgBox[data-v-f7b06038],.themeList .themeItem .imgBox img[data-v-f7b06038]{width:100%}.themeList .themeItem .name[data-v-f7b06038]{text-align:center;font-size:14px}.layoutList[data-v-a218ac20]{padding:20px}.layoutList.isDark .name[data-v-a218ac20]{color:#fff}.layoutList .layoutItem[data-v-a218ac20]{width:100%;cursor:pointer;border-bottom:1px solid #e9e9e9;margin-bottom:20px;padding-bottom:20px;transition:all .2s;border:1px solid transparent}.layoutList .layoutItem[data-v-a218ac20]:last-of-type{border:none}.layoutList .layoutItem[data-v-a218ac20]:hover{box-shadow:0 1px 2px -2px rgba(0,0,0,.16),0 3px 6px 0 rgba(0,0,0,.12),0 5px 12px 4px rgba(0,0,0,.09)}.layoutList .layoutItem.active[data-v-a218ac20]{border:1px solid #67c23a}.layoutList .layoutItem .imgBox[data-v-a218ac20],.layoutList .layoutItem .imgBox img[data-v-a218ac20]{width:100%}.layoutList .layoutItem .name[data-v-a218ac20]{text-align:center;font-size:14px}.countContainer[data-v-0770e0d2]{padding:0 12px;position:fixed;left:20px;bottom:20px;background:hsla(0,0%,100%,.8);border-radius:2px;opacity:.8;height:22px;line-height:22px;font-size:12px;display:flex}.countContainer.isDark[data-v-0770e0d2]{background:#262a2e}.countContainer.isDark .item[data-v-0770e0d2]{color:hsla(0,0%,100%,.6)}.countContainer .item[data-v-0770e0d2]{color:#555;margin-right:15px}.countContainer .item[data-v-0770e0d2]:last-of-type{margin-right:0}.countContainer .item .name[data-v-0770e0d2]{margin-right:5px}@media screen and (max-width:740px){.countContainer[data-v-0770e0d2]{display:none}}.scaleContainer[data-v-07c47fcc]{display:flex;align-items:center}.scaleContainer.isDark .btn[data-v-07c47fcc],.scaleContainer.isDark .scaleInfo[data-v-07c47fcc],.scaleContainer.isDark .scaleInfo input[data-v-07c47fcc]{color:hsla(0,0%,100%,.6)}.scaleContainer .btn[data-v-07c47fcc]{cursor:pointer}.scaleContainer .scaleInfo[data-v-07c47fcc]{margin:0 20px;display:flex;align-items:center}.scaleContainer .scaleInfo input[data-v-07c47fcc]{width:35px;text-align:center;background-color:transparent;border:none;outline:none}.fullscreenContainer[data-v-1bcbabda]{display:flex;align-items:center}.fullscreenContainer.isDark .btn[data-v-1bcbabda]{color:hsla(0,0%,100%,.6)}.fullscreenContainer .item[data-v-1bcbabda]{margin-right:12px}.fullscreenContainer .item[data-v-1bcbabda]:last-of-type{margin-right:0}.fullscreenContainer .btn[data-v-1bcbabda]{cursor:pointer}.mouseActionContainer[data-v-a1887b1e]{display:flex;align-items:center}.mouseActionContainer.isDark .btn[data-v-a1887b1e]{color:hsla(0,0%,100%,.6)}.mouseActionContainer .item[data-v-a1887b1e]{margin-right:12px}.mouseActionContainer .item[data-v-a1887b1e]:last-of-type{margin-right:0}.mouseActionContainer .btn[data-v-a1887b1e]{cursor:pointer;font-size:18px}.navigatorContainer[data-v-d46ad7d0]{padding:0 12px;position:fixed;right:20px;bottom:20px;background:hsla(0,0%,100%,.8);border-radius:5px;opacity:.8;height:44px;font-size:12px;display:flex;align-items:center}.navigatorContainer.isDark[data-v-d46ad7d0]{background:#262a2e}.navigatorContainer.isDark .item .btn[data-v-d46ad7d0],.navigatorContainer.isDark .item a[data-v-d46ad7d0]{color:hsla(0,0%,100%,.6)}.navigatorContainer .item[data-v-d46ad7d0]{margin-right:20px}.navigatorContainer .item[data-v-d46ad7d0]:last-of-type{margin-right:0}.navigatorContainer .item a[data-v-d46ad7d0]{color:#303133;text-decoration:none}.navigatorContainer .item .btn[data-v-d46ad7d0]{cursor:pointer;font-size:18px}@media screen and (max-width:590px){.navigatorContainer[data-v-d46ad7d0]{left:20px;overflow-x:auto;overflow-y:hidden;height:60px}}.box[data-v-cff0b1d2]{padding:0 20px}.box.isDark .title[data-v-cff0b1d2]{color:#fff}.box.isDark .list .item .icon[data-v-cff0b1d2],.box.isDark .list .item .name[data-v-cff0b1d2]{color:hsla(0,0%,100%,.6)}.box.isDark .list .item .value[data-v-cff0b1d2]{color:hsla(0,0%,100%,.3)}.box .title[data-v-cff0b1d2]{font-size:16px;font-weight:500;color:#333;margin:26px 0 20px}.box .list[data-v-cff0b1d2]{font-size:14px}.box .list .item[data-v-cff0b1d2]{display:flex;align-items:center;margin-bottom:15px}.box .list .item .icon[data-v-cff0b1d2]{font-size:16px;margin-right:16px}.box .list .item .name[data-v-cff0b1d2]{color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.box .list .item .value[data-v-cff0b1d2]{color:#909090;margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listBox[data-v-6a6157d7]{width:250px;background:#fff;box-shadow:0 4px 12px 0 hsla(0,0%,69%,.5);border-radius:4px;padding-top:16px;padding-bottom:16px}.listBox.isDark[data-v-6a6157d7]{background:#363b3f}.contextmenuContainer[data-v-6a6157d7]{position:fixed;font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#1a1a1a}.contextmenuContainer.isDark[data-v-6a6157d7]{color:#fff}.contextmenuContainer.isDark .item[data-v-6a6157d7]:hover{background:hsla(0,0%,100%,.05)}.contextmenuContainer .item[data-v-6a6157d7]{position:relative;height:28px;line-height:28px;padding:0 16px;cursor:pointer;display:flex;justify-content:space-between}.contextmenuContainer .item.danger[data-v-6a6157d7]{color:#f56c6c}.contextmenuContainer .item[data-v-6a6157d7]:hover{background:#f5f5f5}.contextmenuContainer .item:hover .subItems[data-v-6a6157d7]{visibility:visible}.contextmenuContainer .item.disabled[data-v-6a6157d7]{color:grey;cursor:not-allowed;pointer-events:none}.contextmenuContainer .item.disabled[data-v-6a6157d7]:hover{background:#fff}.contextmenuContainer .item .desc[data-v-6a6157d7],.contextmenuContainer .item .name[data-v-6a6157d7]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contextmenuContainer .item .desc[data-v-6a6157d7]{color:#999}.contextmenuContainer .item .subItems[data-v-6a6157d7]{position:absolute;left:100%;top:0;visibility:hidden}.richTextToolbar[data-v-50a360a9]{position:fixed;z-index:2000;height:55px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:8px;box-shadow:0 2px 16px 0 rgba(0,0,0,.06);display:flex;align-items:center;transform:translateX(-50%)}.richTextToolbar.isDark[data-v-50a360a9]{background:#363b3f}.richTextToolbar.isDark .btn[data-v-50a360a9]{color:#fff}.richTextToolbar.isDark .btn[data-v-50a360a9]:hover{background:hsla(0,0%,100%,.05)}.richTextToolbar .btn[data-v-50a360a9]{width:55px;height:55px;display:flex;justify-content:center;align-items:center;cursor:pointer}.richTextToolbar .btn[data-v-50a360a9]:hover{background-color:#eefbed}.richTextToolbar .btn.active[data-v-50a360a9]{color:#12bb37}.richTextToolbar .btn .icon[data-v-50a360a9]{font-size:20px}.richTextToolbar .btn .icon.fontColor[data-v-50a360a9]{font-size:26px}.fontOptionsList[data-v-50a360a9]{width:150px}.fontOptionsList.isDark .fontOptionItem[data-v-50a360a9]{color:#fff}.fontOptionsList.isDark .fontOptionItem[data-v-50a360a9]:hover{background-color:hsla(0,0%,100%,.05)}.fontOptionsList .fontOptionItem[data-v-50a360a9]{height:30px;width:100%;display:flex;align-items:center;cursor:pointer}.fontOptionsList .fontOptionItem[data-v-50a360a9]:hover{background-color:#f7f7f7}.fontOptionsList .fontOptionItem.active[data-v-50a360a9]{color:#12bb37} /*! * @toast-ui/editor diff --git a/dist/js/app.js b/dist/js/app.js index c82dbca8..c5e9c369 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -1 +1 @@ -(function(e){function t(t){for(var i,o,l=t[0],c=t[1],d=t[2],s=0,u=[];s>>0,this.mti=1;this.mti>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},a.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_genrand(5489),n=0;n>>1^t[1&e];for(;n>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};const r=(e,t,n,i,o,a=0,l=0)=>{let c=!1;if(n&&(c=n(e,t,o,a,l)),!c&&e.children&&e.children.length>0){let t=a+1;e.children.forEach((o,a)=>{r(o,e,n,i,!1,t,a)})}i&&i(e,t,o,a,l)},l=(e,t)=>{let n=[e],i=!1;"stop"===t(e,null)&&(i=!0);while(n.length){if(i)break;let e=n.shift();e.children&&e.children.length&&e.children.forEach(o=>{i||(n.push(o),"stop"===t(o,e)&&(i=!0))})}},c=(e,t,n,i)=>{let o=[],a=e/t,r=n/i;return o=a>r?[a*i,i]:[n,n/a],o},d=(e,t,n,i)=>{let o=e/t,a=[];if(n&&i)if(e<=n&&t<=i)a=[e,t];else{let e=n/i;a=o>e?[o*i,i]:[n,n/o]}else n?a=e<=n?[e,t]:[n,n/o]:i&&(a=t<=i?[e,t]:[o*i,i]);return a},s=e=>{e=e.replace(/
/gim,"\n");let t=document.createElement("div");return t.innerHTML=e,e=t.textContent,e},u=e=>{try{return JSON.parse(JSON.stringify(e))}catch(t){return null}},h=(e,t,n=!1)=>(e.data=u(t.data),n&&(e.data.isActive=!1,e.data.generalization&&(e.data.generalization.isActive=!1)),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,i)=>{e.children[i]=h({},t,n)}),e),p=(e,t,n=!1,i=!0)=>(e.data=u(t.nodeData?t.nodeData.data:t.data),i?delete e.data.uid:e.data.uid||(e.data.uid=I()),n&&(e.data.isActive=!1),e.children=[],t.children&&t.children.length>0?t.children.forEach((t,o)=>{e.children[o]=p({},t,n,i)}):t.nodeData&&t.nodeData.children&&t.nodeData.children.length>0&&t.nodeData.children.forEach((t,o)=>{e.children[o]=p({},t,n,i)}),e),m=e=>new Promise((t,n)=>{const i=new Image;i.setAttribute("crossOrigin","anonymous"),i.onload=()=>{try{let e=document.createElement("canvas");e.width=i.width,e.height=i.height;let n=e.getContext("2d");n.drawImage(i,0,0,i.width,i.height),t(e.toDataURL())}catch(e){n(e)}},i.onerror=e=>{n(e)},i.src=e}),f=e=>{if(!/^data:/.test(e))return e;let[t,n]=e.split(","),i=/^data:[^/]+\/([^;]+);/.exec(t),o=i[1];return{type:o,base64:n}},g=(e,t)=>{let n=document.createElement("a");n.href=e,n.download=t,n.click()},v=(e,t=300,n)=>{let i=null;return(...o)=>{i||(i=setTimeout(()=>{e.call(n,...o),i=null},t))}},T=(e,t=(()=>{}))=>{let n=0,i=e.length;if(i<=0)return t();let o=()=>{n>=i?t():(e[n](),setTimeout(()=>{n++,o()},0))};o()},k=e=>e*(Math.PI/180),x=e=>e.replace(/([a-z])([A-Z])/g,(...e)=>e[1]+"-"+e[2].toLowerCase());let b=null;const y=(e,{italic:t,bold:n,fontSize:i,fontFamily:o})=>{const a=A({italic:t,bold:n,fontSize:i,fontFamily:o});if(!b){const e=document.createElement("canvas");b=e.getContext("2d")}b.save(),b.font=a;const{width:r,actualBoundingBoxAscent:l,actualBoundingBoxDescent:c}=b.measureText(e);b.restore();const d=l+c;return{width:r,height:d}},A=({italic:e,bold:t,fontSize:n,fontFamily:i})=>`${e?"italic ":""} ${t?"bold ":""} ${n}px ${i} `,w=function(e,t){let n=!1,i=null,o=()=>{n=!1,t?e.call(t):e()};if("undefined"!==typeof MutationObserver){let e=1,t=new MutationObserver(o),n=document.createTextNode(e);t.observe(n,{characterData:!0}),i=function(){e=(e+1)%2,n.data=e}}else i=setTimeout;return function(){n||(n=!0,i(o,0))}},E=(e,t)=>{let n=e.elRect,{scaleX:i,scaleY:o,translateX:a,translateY:r}=e.draw.transform(),{left:l,top:c,width:d,height:s}=t,u=(l+d)*i+a,h=(c+s)*o+r;l=l*i+a,c=c*o+r;let p=0,m=0;return l<0&&(p=-l),u>n.width&&(p=-(u-n.width)),c<0&&(m=-c),h>n.height&&(m=-(h-n.height)),{isOuter:0!==p||0!==m,offsetLeft:p,offsetTop:m}};let C=null;const O=e=>(C||(C=document.createElement("div")),C.innerHTML=e,C.textContent),N=e=>new Promise((t,n)=>{let i=new FileReader;i.onload=e=>{t(e.target.result)},i.onerror=e=>{n(e)},i.readAsDataURL(e)});const L=e=>new Promise(t=>{let n=new Image;n.src=e,n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t({width:0,height:0})}}),I=()=>Object(i["a"])(),S=e=>new Promise((t,n)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=async e=>{let n=e.target.result,i=await L(n);t({url:n,size:i})},i.onerror=e=>{n(e)}}),R=e=>([[" "," "]].forEach(t=>{e=e.replaceAll(t[0],t[1])}),e),M=e=>Object.prototype.toString.call(e).slice(8,-1),_=e=>null===e||void 0===e||""===e,z=e=>e.replaceAll(/(<[^\s]+)\s+style=["'][^'"]+["']\s*(>)/g,"$1$2");let D=null;const F=(e,t,n)=>{D||(D=document.createElement("div")),D.innerHTML=e;let i=e=>{let o=e.childNodes;o.forEach(e=>{1===e.nodeType&&(e.tagName.toLowerCase()===t?e.style.cssText=n:i(e))})};return i(D),D.innerHTML};let P=null;const B=e=>{P||(P=document.createElement("div")),P.innerHTML=e;for(let t=P.childNodes,n=t.length;n--;)if(1==t[n].nodeType)return!0;return!1};let U=null;const H=(e,t,n)=>{U||(U=document.createElement("div")),U.innerHTML=e;let i=e=>{let o=e.childNodes;o.forEach(o=>{1===o.nodeType?i(o):3===o.nodeType&&e.replaceChild(document.createTextNode(o.nodeValue.replaceAll(t,n)),o)})};return i(U),U.innerHTML};let j=null;const G=(e,t)=>{j||(j=document.createElement("div")),j.innerHTML=e;const n=j.querySelector(t);return n&&n.parentNode.removeChild(n),j.innerHTML},Y=e=>(e=String(e).replaceAll(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(e)||/rgba\(255,255,255,[^)]+\)/.test(e)),$=e=>(e=String(e).replaceAll(/\s+/g,""),["","transparent"].includes(e)||/rgba\(\d+,\d+,\d+,0\)/.test(e)),W=e=>{let{lineColor:t,root:n,second:i,node:o}=e,a=[t,n.fillColor,n.color,i.fillColor,i.color,o.fillColor,o.color,n.borderColor,i.borderColor,o.borderColor];for(let r=0;r{const t=e=>{const n=e.childNodes;n.forEach(e=>{1===e.nodeType&&(e.classList.contains("ql-formula")?e.parentNode.removeChild(e):t(e))})};t(e)};let K=null;const Q=e=>{K||(K=document.createElement("div")),K.innerHTML=e;const t=K.childNodes;let n="";for(let i=0;i{J||(J=document.createElement("div")),J.innerHTML=e;const t=J.childNodes;let n=[],i="";for(let o=0;o`

${pe(e)}

`).join("")},X=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),q=(e,t)=>{const n={};return Object.keys(t).forEach(i=>{const o=e[i],a=t[i];if(M(o)===M(a)){if("Object"===M(o)){if(JSON.stringify(o)!==JSON.stringify(a))return void(n[i]=a)}else if(o!==a)return void(n[i]=a)}else n[i]=a}),n},ee=e=>!/^_/.test(e)&&!o["h"].includes(e),te=e=>e.reduce((e,t)=>{const n=e.find(e=>e.type===t.type);return n?t.list.forEach(e=>{const t=n.list.find(t=>t.name===e.name);t?t.icon=e.icon:n.list.push(e)}):e.push({...t}),e},[]),ne=e=>{let t=[];return e.forEach(n=>{e.find(e=>e.uid!==n.uid&&e.isAncestor(n))||t.push(n)}),t},ie=e=>{const t={},n={};e.forEach(e=>{const i=e.parent;if(i){const o=i.uid;n[o]=i;const a=e.getIndexInBrothers(),r={node:e,index:a};t[o]?t[o].find(e=>e.index===r.index)||t[o].push(r):t[o]=[r]}});const i=[];return Object.keys(t).forEach(e=>{if(t[e].length>1){const o=t[e].map(e=>e.index).sort((e,t)=>e-t);i.push({node:n[e],range:[o[0],o[o.length-1]]})}else i.push({node:t[e][0].node})}),i},oe=(e,t,n,i,o,a,r,l)=>t>o&&a>e&&i>r&&l>n,ae=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),n.collapse(),t.removeAllRanges(),t.addRange(n)},re=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)},le=(e,t={})=>{const n=e=>{e.forEach(e=>{e.data={...e.data,...t},e.children&&e.children.length>0&&n(e.children)})};return n(e),e},ce=(e,t=!1)=>{const n=e=>{e.forEach(e=>{e.data||(e.data={}),(t||_(e.data.uid))&&(e.data.uid=I()),e.children&&e.children.length>0&&n(e.children)})};return n(e),e},de=e=>e?Array.isArray(e)?e:[e]:[],se=e=>e.parent?e.parent.nodeData.children.findIndex(t=>t.data.uid===e.uid):0,ue=(e,t)=>t.findIndex(t=>t.uid===e.uid),he=e=>{let t=0;for(let o=0;o([["&","&"],["<","<"],[">",">"]].forEach(t=>{e=e.replace(new RegExp(t[0],"g"),t[1])}),e),me=(e,t)=>{const n=M(e);if(n!==M(t))return!1;if("Object"===n){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let o=0;o{navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(e))},ge=async()=>{let e=null,t=null;if(navigator.clipboard){e=await navigator.clipboard.readText();const n=await navigator.clipboard.read();if(n&&n.length>0)for(const e of n)for(const n of e.types)if(/^image\//.test(n)){t=await e.getType(n);break}}return{text:e,img:t}},ve=e=>{if(!e||!e.parent)return;const t=se(e);-1!==t&&e.parent.nodeData.children.splice(t,1)},Te=e=>(o["i"].forEach(t=>{e=e.replaceAll(new RegExp(`<${t}([^>]*)>`,"g"),`<${t} $1 />`)}),e),ke=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;nt.uid===e[n].uid))return!1;return!0},xe=()=>{const e=navigator.userAgent.match(/\s+Chrome\/(.*)\s+/);return e&&e[1]?Number.parseFloat(e[1]):""},be=e=>({simpleMindMap:!0,data:e}),ye=e=>{let t=null;if("string"===typeof e)try{const n=JSON.parse(e);"object"===typeof n&&n.simpleMindMap&&(t=n.data)}catch(i){}else"object"===typeof e&&e.simpleMindMap&&(t=e.data);const n=!!t;return{isSmm:n,data:n?t:String(e)}},Ae=(e,t)=>{e.preventDefault();const n=window.getSelection();if(!n.rangeCount)return;n.deleteFromDocument(),t=t||e.clipboardData.getData("text"),t=O(t),t=t.replaceAll(/\n/g,"");const i=document.createTextNode(t);n.getRangeAt(0).insertNode(i),n.collapseToEnd()},we=e=>{const t={},n=(e,i)=>{const o=e.data.uid;i&&i.children.push(o),t[o]={isRoot:!i,data:{...e.data},children:[]},e.children&&e.children.length>0&&e.children.forEach(e=>{n(e,t[o])})};return n(e,null),t},Ee=(e,t)=>{const n=Object.keys(e);let i="";return n.forEach(n=>{const o=e[n].children,a=-1!==o.findIndex(e=>e===t);a&&(i=n)}),i},Ce=e=>{const t=Object.keys(e);if(t.length<=0)return null;const n=t.find(t=>e[t].isRoot);if(!n||!e[n])return null;const i={data:u(e[n].data),children:[]},o={};return o[n]=i,t.forEach(t=>{const n=Ee(e,t),i=e[t],a=o[t]||{data:u(i.data),children:[]};if(o[t]||(o[t]=a),n){const i=e[n].children.findIndex(e=>e===t);o[n]||(o[n]={data:u(e[n].data),children:[]}),o[n].children[i]=a}}),i},Oe=(e,t)=>{const n=e.x+e.width/2,i=e.y+e.height/2,o=t.x+t.width/2,a=t.y+t.height/2;return no&&io&&i>a?"right-bottom":na?"left-bottom":no&&i===a?"right":n===o&&ia?"bottom":"overlap"}},2634:function(e,t,n){"use strict";n("177f")},"365c":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"c",(function(){return v}));var i=n("5848"),o=n("1e42"),a=n("2b0e");const r="SIMPLE_MIND_MAP_DATA",l="SIMPLE_MIND_MAP_LANG",c="SIMPLE_MIND_MAP_LOCAL_CONFIG";let d=null;const s=(e,t)=>(e.data=Object(o["hb"])(t.data),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,n)=>{e.children[n]=s({},t)}),e),u=()=>{if(window.takeOverApp)return d=window.takeOverAppMethods.getMindMapData(),d;let e=localStorage.getItem(r);if(null===e)return Object(o["hb"])(i["a"]);try{return JSON.parse(e)}catch(t){return Object(o["hb"])(i["a"])}},h=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t.root=s({},e),window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);a["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},p=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t={...t,...e},window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);a["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},m=e=>{window.takeOverApp?window.takeOverAppMethods.saveLanguage(e):localStorage.setItem(l,e)},f=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLanguage()||"zh";let e=localStorage.getItem(l);return e||(m("zh"),"zh")},g=e=>{if(window.takeOverApp)return window.takeOverAppMethods.saveLocalConfig(e);localStorage.setItem(c,JSON.stringify(e))},v=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLocalConfig();let e=localStorage.getItem(c);return e?JSON.parse(e):null}},4013:function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return h}));const i=[{name:"默认",value:"default",dark:!1},{name:"暗色2",value:"dark2",dark:!0},{name:"天清绿",value:"skyGreen",dark:!1},{name:"脑图经典2",value:"classic2",dark:!1},{name:"脑图经典3",value:"classic3",dark:!1},{name:"经典绿",value:"classicGreen",dark:!1},{name:"经典蓝",value:"classicBlue",dark:!1},{name:"天空蓝",value:"blueSky",dark:!1},{name:"脑残粉",value:"brainImpairedPink",dark:!1},{name:"暗色",value:"dark",dark:!0},{name:"泥土黄",value:"earthYellow",dark:!1},{name:"清新绿",value:"freshGreen",dark:!1},{name:"清新红",value:"freshRed",dark:!1},{name:"浪漫紫",value:"romanticPurple",dark:!1},{name:"粉红葡萄",value:"pinkGrape",dark:!1},{name:"薄荷",value:"mint",dark:!1},{name:"金色vip",value:"gold",dark:!1},{name:"活力橙",value:"vitalityOrange",dark:!1},{name:"绿叶",value:"greenLeaf",dark:!1},{name:"脑图经典",value:"classic",dark:!0},{name:"脑图经典4",value:"classic4",dark:!1},{name:"小黄人",value:"minions",dark:!1},{name:"简约黑",value:"simpleBlack",dark:!1},{name:"课程绿",value:"courseGreen",dark:!1},{name:"咖啡",value:"coffee",dark:!1},{name:"红色精神",value:"redSpirit",dark:!1},{name:"黑色幽默",value:"blackHumour",dark:!0},{name:"深夜办公室",value:"lateNightOffice",dark:!0},{name:"黑金",value:"blackGold",dark:!0},{name:"牛油果",value:"avocado",dark:!1},{name:"秋天",value:"autumn",dark:!1},{name:"橙汁",value:"orangeJuice",dark:!0}],o={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",SET_DATA:"setData",TRANSFORM_TO_NORMAL_NODE:"transformAllNodesToNormalNode",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",VERTICAL_TIMELINE:"verticalTimeline"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},PASTE_TYPE:{CLIP_BOARD:"clipBoard",CANVAS:"canvas"},SCROLL_BAR_DIR:{VERTICAL:"vertical",HORIZONTAL:"horizontal"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"}},a={[o.INIT_ROOT_NODE_POSITION.LEFT]:0,[o.INIT_ROOT_NODE_POSITION.TOP]:0,[o.INIT_ROOT_NODE_POSITION.RIGHT]:1,[o.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[o.INIT_ROOT_NODE_POSITION.CENTER]:.5},r=[{name:"逻辑结构图",value:o.LAYOUT.LOGICAL_STRUCTURE},{name:"思维导图",value:o.LAYOUT.MIND_MAP},{name:"组织结构图",value:o.LAYOUT.ORGANIZATION_STRUCTURE},{name:"目录组织图",value:o.LAYOUT.CATALOG_ORGANIZATION},{name:"时间轴",value:o.LAYOUT.TIMELINE},{name:"时间轴2",value:o.LAYOUT.TIMELINE2},{name:"竖向时间轴",value:o.LAYOUT.VERTICAL_TIMELINE},{name:"鱼骨图",value:o.LAYOUT.FISHBONE}],l=[o.LAYOUT.LOGICAL_STRUCTURE,o.LAYOUT.MIND_MAP,o.LAYOUT.CATALOG_ORGANIZATION,o.LAYOUT.ORGANIZATION_STRUCTURE,o.LAYOUT.TIMELINE,o.LAYOUT.TIMELINE2,o.LAYOUT.VERTICAL_TIMELINE,o.LAYOUT.FISHBONE],c=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText"],d={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null},s={READ_CLIPBOARD_ERROR:"read_clipboard_error",PARSE_PASTE_DATA_ERROR:"parse_paste_data_error",CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR:"custom_handle_clipboard_text_error",LOAD_CLIPBOARD_IMAGE_ERROR:"load_clipboard_image_error",BEFORE_TEXT_EDIT_ERROR:"before_text_edit_error",EXPORT_ERROR:"export_error",EXPORT_LOAD_IMAGE_ERROR:"export_load_image_error",DATA_CHANGE_DETAIL_EVENT_ERROR:"data_change_detail_event_error"},u="\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n",h=["img","br","hr","input","link","meta","area"]},"41cb":function(e,t,n){"use strict";n("14d9");var i=n("2b0e"),o=n("8c4f"),a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"docContainer"},[t("Header"),t("div",{staticClass:"content"},[t("Sidebar"),t("div",{ref:"doc",staticClass:"doc",attrs:{id:"doc"},on:{scroll:e.onScroll}},[t("router-view")],1),t("CatalogBar",{attrs:{scrollTop:e.scrollTop},on:{scroll:e.doScroll}})],1)],1)},r=[],l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"headerContainer"},[t("div",{staticClass:"left"},[t("div",{staticClass:"title",on:{click:e.toIndex}},[t("img",{attrs:{src:n("440d"),alt:""}}),e._v(" SimpleMindMap ")])]),t("div",{staticClass:"center"},[t("div",{staticClass:"btn",on:{click:e.toIndex}},[e._v(e._s(e.index))]),t("div",{staticClass:"btn",on:{click:e.toDemo}},[e._v(e._s(e.demoName))]),t("div",{staticClass:"btn",class:{active:"help"===e.docType},on:{click:e.toHelp}},[e._v(" "+e._s(e.helpDoc)+" ")]),t("div",{staticClass:"btn",class:{active:"doc"===e.docType},on:{click:e.toDev}},[e._v(" "+e._s(e.devDoc)+" ")]),"doc"===e.docType?t("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:e.handleCommand}},[t("span",{staticClass:"translateBtn"},[e._v(" "+e._s(e.currentLangName)),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.otherLangList,(function(n){return t("el-dropdown-item",{key:n.path,attrs:{command:n.path}},[e._v(e._s(n.name))])})),1)],1):e._e(),e._m(0)],1),t("div",{staticClass:"right"})])},c=[function(){var e=this,t=e._self._c;return t("a",{attrs:{href:"https://github.com/wanglin2/mind-map",target:"_blank"}},[t("span",{staticClass:"iconfont icongithub"})])}],d=[{lang:"zh",children:[{path:"associativeLine",title:"AssociativeLine 插件"},{path:"batchExecution",title:"BatchExecution实例"},{path:"changelog",title:"Changelog"},{path:"command",title:"Command实例"},{path:"constructor",title:"构造函数"},{path:"course1",title:"基本使用"},{path:"course2",title:"操作节点内容"},{path:"course3",title:"插入/删除节点、前进回退"},{path:"course4",title:"设置节点样式"},{path:"course5",title:"设置基础样式"},{path:"course6",title:"显示水印"},{path:"course7",title:"开启节点自由拖拽"},{path:"course8",title:"开启节点富文本编辑"},{path:"course9",title:"修改鼠标滚轮的行为"},{path:"course10",title:"主题"},{path:"course11",title:"结构"},{path:"course12",title:"如何渲染一个大纲"},{path:"course13",title:"快捷键"},{path:"course14",title:"如何渲染一个小地图"},{path:"course15",title:"如何渲染一个右键菜单"},{path:"course16",title:"如何渲染富文本的悬浮工具栏"},{path:"course17",title:"导入和导出"},{path:"course18",title:"如何持久化数据"},{path:"course19",title:"插入和扩展节点图标"},{path:"course20",title:"如何自定义节点内容"},{path:"course21",title:"如何复制、剪切、粘贴"},{path:"course22",title:"如何实现搜索、替换"},{path:"course23",title:"如何渲染滚动条"},{path:"course24",title:"如何开发一个插件"},{path:"course25",title:"关于概要"},{path:"doExport",title:"Export 插件"},{path:"drag",title:"Drag插件"},{path:"introduction",title:"简介"},{path:"keyCommand",title:"KeyCommand实例"},{path:"keyboardNavigation",title:"KeyboardNavigation插件"},{path:"markdown",title:"Markdown解析"},{path:"miniMap",title:"MiniMap插件"},{path:"node",title:"Node实例"},{path:"render",title:"Render实例"},{path:"textEdit",title:"TextEdit实例"},{path:"richText",title:"RichText插件"},{path:"select",title:"Select 插件 "},{path:"start",title:"开始"},{path:"translate",title:"贡献"},{path:"utils",title:"内置工具方法"},{path:"view",title:"View实例"},{path:"watermark",title:"Watermark插件"},{path:"xmind",title:"XMind解析"},{path:"deploy",title:"部署"},{path:"client",title:"客户端"},{path:"touchEvent",title:"TouchEvent插件"},{path:"nodeImgAdjust",title:"NodeImgAdjust插件"},{path:"search",title:"Search插件"},{path:"painter",title:"Painter插件"},{path:"painter",title:"Painter插件"},{path:"scrollbar",title:"Scrollbar插件"},{path:"formula",title:"Formula插件"},{path:"cooperate",title:"Cooperate插件"},{path:"handDrawnLikeStyle",title:"HandDrawnLikeStyle收费插件"},{path:"help1",title:"概要/关联线"},{path:"help2",title:"客户端"},{path:"help3",title:"打开预览在线文件"},{path:"help4",title:"复制粘贴"},{path:"help5",title:"导出"}]},{lang:"en",children:[{path:"associativeLine",title:"AssociativeLine plugin"},{path:"batchExecution",title:"batchExecution instance"},{path:"changelog",title:"Changelog"},{path:"command",title:"command instance"},{path:"constructor",title:"Constructor"},{path:"doExport",title:"Export plugin"},{path:"drag",title:"Drag plugin"},{path:"introduction",title:"Introduction"},{path:"keyCommand",title:"KeyCommand instance"},{path:"keyboardNavigation",title:"KeyboardNavigation plugin"},{path:"markdown",title:"Markdown parse"},{path:"miniMap",title:"MiniMap plugin"},{path:"node",title:"Node instance"},{path:"render",title:"Render instance"},{path:"textEdit",title:"TextEdit instance"},{path:"richText",title:"RichText plugin"},{path:"select",title:"Select plugin"},{path:"start",title:"Start"},{path:"translate",title:"Contribute"},{path:"utils",title:"Utility Methods"},{path:"view",title:"View instance"},{path:"watermark",title:"Watermark plugin"},{path:"xmind",title:"XMind parse"},{path:"deploy",title:"Deploy"},{path:"touchEvent",title:"TouchEvent plugin"},{path:"nodeImgAdjust",title:"NodeImgAdjust plugin"},{path:"search",title:"Search plugin"},{path:"painter",title:"Painter plugin"},{path:"scrollbar",title:"Scrollbar plugin"},{path:"formula",title:"Formula plugin"},{path:"cooperate",title:"Cooperate plugin"},{path:"handDrawnLikeStyle",title:"HandDrawnLikeStyle chargeable plugin"},{path:"client",title:"Client"}]}];let s=[{name:"中文",path:"zh"},{name:"English",path:"en"}],u=["introduction","start","deploy","client","translate","changelog"],h=new Array(25).fill(0).map((e,t)=>"course"+(t+1)),p=["constructor","node","render","textEdit","view","keyCommand","command","batchExecution","richText","select","drag","keyboardNavigation","doExport","miniMap","watermark","associativeLine","touchEvent","nodeImgAdjust","search","painter","scrollbar","formula","cooperate","handDrawnLikeStyle","xmind","markdown","utils"],m=new Array(5).fill(0).map((e,t)=>"help"+(t+1));const f=(e,t)=>{let n=d.find(t=>t.lang===e),i=n.children;return t.filter(e=>i.find(t=>t.path===e)).map(e=>({path:e,name:i.find(t=>t.path===e).title}))};var g={zh:[{groupName:"开始",type:"doc",list:f("zh",u)},{groupName:"教程",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("zh",p)},{groupName:"使用帮助",type:"help",list:f("zh",m)}],en:[{groupName:"Start",type:"doc",list:f("en",u)},{groupName:"Course",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("en",p)}]};const v={pageCatalog:{zh:"本页目录",en:"Page catalog"},demo:{zh:"在线示例",en:"Online Demo"},help:{zh:"帮助文档",en:"Help doc"},dev:{zh:"开发文档",en:"Dev doc"},index:{zh:"首页",en:"Home"}},T=(e,t)=>v[e]?v[e][t]||v[e].zh:"";var k=T,x={data(){return{docType:"",lang:"",currentLangName:"",otherLangList:[]}},computed:{demoName(){return k("demo",this.lang)},helpDoc(){return k("help",this.lang)},devDoc(){return k("dev",this.lang)},index(){return k("index",this.lang)}},watch:{$route(){this.init()}},created(){this.init()},methods:{init(){let e=/^\/([^\/]+)\//.exec(this.$route.path);e&&e[1]&&(this.docType=e[1]);let t=/^\/doc\/([^\/]+)\//.exec(this.$route.path);if(t&&t[1]){this.lang=t[1];let e=s.find(e=>e.path===this.lang);this.currentLangName=e.name,this.otherLangList=s.filter(e=>e.path!==this.lang)}},toIndex(){this.$router.push("/index")},toDemo(){this.$router.push("/")},handleCommand(e){let t=this.$route.path.replace(/^\/doc\/([^\/]+)\//,(...t)=>`/doc/${e}/`);this.$router.push(t)},toHelp(){this.lang="zh",this.$router.replace("/help/zh/")},toDev(){this.$router.replace("/doc/zh/")}}},b=x,y=(n("c360"),n("2877")),A=Object(y["a"])(b,l,c,!1,null,"1c36e28e",null),w=A.exports,E=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sideBarContainer"},[t("div",{staticClass:"catalogGroupList"},e._l(e.groupList,(function(n,i){return t("div",{key:i,staticClass:"catalogGroup"},[t("div",{staticClass:"catalogGroupName"},[e._v(e._s(n.groupName))]),t("div",{staticClass:"catalogList"},e._l(n.list,(function(n){return t("div",{key:i+n.path,staticClass:"catalogItem",class:{active:n.path===e.currentPath},on:{click:function(t){return e.jump(n)}}},[e._v(" "+e._s(n.name)+" ")])})),0)])})),0)])},C=[],O={data(){return{groupList:[],lang:"",currentPath:"",type:""}},created(){this.initCatalog()},watch:{$route(){this.initCatalog()}},methods:{jump(e){e.path!==this.currentPath&&this.$router.push(`/${this.type}/${this.lang}/${e.path}`)},initCatalog(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.type=e[1],this.lang=e[2],this.groupList=g[this.lang].filter(e=>e.type===this.type));let t=/^\/(doc|help)\/[^\/]+\/([^\/]+)(\/|$)/.exec(this.$route.path);t&&t[2]&&(this.currentPath=t[2])}}},N=O,L=(n("c639"),Object(y["a"])(N,E,C,!1,null,"73f8f4b5",null)),I=L.exports,S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"catalogBarContainer"},[t("div",{staticClass:"catalogBarTitle"},[e._v(e._s(e.pageCatalogTitle))]),t("div",{staticClass:"catalogList"},[e._l(e.list,(function(n,i){return t("div",{key:n.title+i,staticClass:"catalogItem",class:{active:n.title===e.activeCatalog},on:{click:function(t){return e.scrollTo(n,i)}}},[e._v(" "+e._s(n.title)+" ")])})),-1!==e.activeCatalogIndex?t("div",{staticClass:"activeBar",style:{top:4+28*e.activeCatalogIndex+"px"}}):e._e()],2)])},R=[],M={props:{scrollTop:{type:Number}},data(){return{lang:"",list:[],activeCatalog:"",activeCatalogIndex:-1,appointCatalog:!0}},computed:{pageCatalogTitle(){return k("pageCatalog",this.lang)}},watch:{$route(e,t){this.initLang(),this.initCatalogList(e.path,t.path)},scrollTop(){this.onScroll()},lang(e,t){t&&this.initCatalogList()}},mounted(){this.initLang(),this.initCatalogList(),this.scrollToCatalog()},methods:{initLang(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.lang=e[2])},initCatalogList(e,t){let n=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(e),i=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(t);if(!e&&!t||n[2]!==i[2]){this.$emit("scroll",0),this.resetActive();let e=document.getElementById("doc"),t=document.querySelectorAll("#doc h2");this.list=Array.from(t).map(t=>({title:t.textContent,top:t.offsetTop-e.offsetTop}))}},scrollToCatalog(){let e=/^\/(doc|help)\/[^\/]+\/[^\/]+\/([^\/]+)($|\/)/.exec(this.$route.path);if(e&&e[2]){let t=decodeURIComponent(e[2]),n=this.list.find(e=>e.title===t),i=this.list.findIndex(e=>e.title===t);n&&(this.activeCatalog=n.title,this.activeCatalogIndex=i,this.$emit("scroll",n.top))}},scrollTo(e,t){this.appointCatalog=!0,this.routeToNewCatalog(e.title),this.$nextTick(()=>{this.activeCatalog=e.title,this.activeCatalogIndex=t,this.scrollToCatalog()})},routeToNewCatalog(e){let t=this.$route.path,n="";n=e?/^\/(doc|help)\/[^\/]+\/[^\/]+($|\/)$/.test(t)?t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/)$/,"$1/"+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+\/)([^\/]+)($|\/)/,(...t)=>t[1]+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/|.*)$/,"$1"),t!==n&&this.$router.push(n)},onScroll(){if(this.appointCatalog)return void(this.appointCatalog=!1);let e=!1;for(let t=0;t=n.top&&(!i||this.scrollTop{try{this.$refs.doc.scrollTop=e}catch(t){console.log(t)}})},onScroll(){this.scrollTop=this.$refs.doc.scrollTop}}}),P=F,B=(n("2634"),Object(y["a"])(P,a,r,!1,null,null,null)),U=B.exports;const H=()=>{let e=d[0].children;for(let t=1;t{n.find(t=>t.path===e.path)||n.push({...e,lang:"zh"})})}};H();const j=(e,t)=>[...d.map(n=>({path:`/${e}/${n.lang}/`,redirect:`/${e}/${n.lang}/${t}/`})),...d.map(t=>({path:`/${e}/${t.lang}/`,component:U,children:t.children.map(e=>({path:e.path+"/:h?",component:()=>n("b834")(`./${e.lang||t.lang}/${e.path}/index.vue`)}))}))];i["default"].use(o["a"]);const G=[{path:"/index",name:"Index",component:()=>n.e("chunk-7babbe51").then(n.bind(null,"9684"))},{path:"/",name:"Edit",component:()=>n.e("chunk-f72c6b9a").then(n.bind(null,"5fca"))},...j("doc","introduction"),...j("help","help1")],Y=new o["a"]({routes:G});t["a"]=Y},"440d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABhVJREFUeF7tW2uME1UU/s4suwjyMBpw1e0UAkYCiWIkasJLScwaoySIrtiZRQJ0CiIRDfEVEuGHkUg0ogHZWdiV3c6ugUA0avCBkaiQSCAmGl8RIp1FBDWCBMGw3TmmsNNOZ2e6nWm3LbT917n33HvOd87cc+537xDK/Edlbj8qAFQi4BJBYHw0OuI8nZsHwnQwpgMcdFH9MBifsmDsr7li6IeHH5z/RyYTL4lXIKCp9QS8CmCSN3/RMRDW6aHw625yJQ+AqKkfAaj3Znh6bwLejUnKHKcxShoAsb1pNQR6sY/iRMcZ/JOjQQbfCKIb7G0EY25MWrKz7/NcoB1A2WDn5lvZML4CMDQ1Db0PZlWXlQ8yTR3oVGeTgWcATLX0O2XE4zOPPvb4t1bZko0AUVMbAbSZymYKYzcwAh3q58S4KzkGY1FMVlpKGoBgW/NYFngSCE8BmJVUloVpurx4r5egEzuapoHpy9QY/IouR54tWQBETW0FsMDJyDjxqGOhyF9eAKjd1jKqpjueTIMM3tklReaWHACBt5vGUTXtBjDGzcAqotpfQ+ETXgAItjddxwIds8js0CXloZICYGxH87U9zMf7M8xtFc9iMXwvuQYQvRQLhVeVFACi1vw1wLenGWLwGhaEagK/YHl/f9PlSF1/QFnbRU3lNGNZkGLy4o6SASCoqSsZWGdViJnru+TIJxdL33/3A3STpT1R5q4g5oOxxsjvTmBcjChjBkDb0sYl7OFBZ+472vD0uZIAYEzrhlqjptpmBE3RpfBBU8HeEjhRCeb8M+LxW+w1QGLQotUBde2b7hUEYVfKMlZ1KRKxW+paDXqBxOA1emNktZNI0QAQo03Pgehli1LzdUlpd1KybuvGm6l60HprUZOd/fwzg57skpSP3foXDYCgpnYyMM9UTBB6xh55dOkRN0Xrtr02pOr8iDkQeCIzT2DCNY4eZT7BhO9g8KHBGLbrkCyfzgRW0QCwl6m6pBRFl6JMmvBIBQDbRqUSAaX2CgQ6t0yhnp5FLGBCdituei+B6UcwH7BvP81eoqYeAHBb7//TuqSMzDRPQRfBvORe0xqHHHyxyjv7j8Xg3bqk3OOaAQqZBoNRdSETtvjxursMN+hSZLvZHoyqc5iQoqeY1+py5Hkn+bw4w0shFNSaNzJ4aT4BYEJLV0hZZAn/QwDGmf8JkGOSotnnLEopbE9P4EGTdHnhD14AEaMtE0Hx700ZJuzpCil3J/47ePQXo1q482jD4r+tcxRtM5Sv/Gzbiu4FYy0JWMWMO6yGuno/uukRIuGdZF/mwmyHBwgA5wBinCKC7tTIzKNBVJt6TZxp7UyR2csOeyNECgqAh/eqYJRYqQKQD1IUQP+cYIEB+A/AWZdAuDrteR5occqGExwgABLb051Ox1xkYGqsUdnXJwXaFsH8HIxkwQnaAehvn+7kPTsdbabB3vSY4OpSp7yEfedOdtf/uWzZmf7ToP+jsYQOWXGC9kIoIehhrUp2tbI3fQuhJh2ggCXFLdDlyNasCyEfh6NZc4IDUQoTsxSTI0k6OtCuziYByfQEYL0uKStKohROKBHQmjUCh/x4vq8MbdelcIP1+ZjW1quMmu6TqWf0hS6FZ7rNVxROUIyq94NoPsAP+wOCtjNxogTe6OhZTf0GwOTetjO6pAzPNE9iOyx0D2/0ckVmsDFsR4UT7Md7FU7QX3jnLpWveiNXTSoRkCuCfuVFTY0CkJK7PYOvdzvwTPQpKCfo1ygvcmKHuhyMN1LFEB5wu/xUlDToxRg/fYNtzbO4ij+z1AKrdSm8xj5WwTlBP8b4kRnX9tbo7qqqtCsv5t0Ac7yicIJ+jPErE9DUNwl4Ik2+l4MsGifo1xi/cqKmngKQfihy4YoMXUnAytQaUSBO0K8hfuX6nBG4DHTZXpJK2HvhQiNoNxiD3YAsGCfo15O5yo3asGHYkJHV60BY4jRWPjjBkr0oaTW4rn3zeIF4MpOxnEAzUmtAGVyVtQJRtpelTRDK/rr8hcWxnD+YMCOhrD+ZsZXE5fnRlAlCWX82l2uNkUm+aIzQQBrlZewKAF7Quhz7/g9P4cNulJCaPwAAAABJRU5ErkJggg=="},"441d":function(e,t,n){"use strict";n("81cc")},"56d7":function(e,t,n){"use strict";n.r(t);var i=n("2b0e"),o=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},a=[],r={name:"App",components:{}},l=r,c=(n("441d"),n("2877")),d=Object(c["a"])(l,o,a,!1,null,null,null),s=d.exports,u=n("41cb"),h=n("c0d6"),p=n("5c96"),m=n.n(p),f=(n("0fae"),n("9c65"),n("0808"),n("6944")),g=n.n(f),v=n("9225"),T=n("365c");i["default"].config.productionTip=!1;const k=new i["default"];i["default"].prototype.$bus=k,i["default"].use(m.a),i["default"].use(g.a);const x=()=>{v["a"].locale=Object(T["b"])(),new i["default"]({render:e=>e(s),router:u["a"],store:h["a"],i18n:v["a"]}).$mount("#app")};window.takeOverApp?(window.initApp=x,window.$bus=k):x()},5848:function(e,t,n){"use strict";const i=()=>({image:"/enJFNMHnedQTYTESGfDkctCp2.jpeg",imageTitle:"图片名称",imageSize:{width:1e3,height:563},icon:["priority_1"],tag:["标签1","标签2"],hyperlink:"http://lxqnsys.com/",hyperlinkTitle:"理想青年实验室",note:"理想青年实验室\n一个有意思的角落"}),o=(i(),i(),{root:{data:{text:"根节点"},children:[{data:{text:"二级节点",generalization:{text:"概要"}},children:[{data:{text:"分支主题"},children:[]},{data:{text:"分支主题"},children:[]}]}]}});t["a"]={...o,theme:{template:"classic4",config:{}},layout:"logicalStructure",config:{}}},"6d72":function(e,t,n){"use strict";n("a7a6")},"81cc":function(e,t,n){},9225:function(e,t,n){"use strict";var i=n("2b0e"),o=n("a925"),a={baseStyle:{title:"BaseStyle",background:"Background",color:"Color",image:"Image",imageRepeat:"Image repeat",imagePosition:"Image position",imageSize:"Image size",line:"Line",width:"Width",style:"Style",lineRadius:"Radius",lineOfOutline:"Line of outline",showArrow:"Is show arrow",nodePadding:"Node padding",nodeMargin:"Node margin",horizontal:"Horizontal",vertical:"Vertical",maximumWidth:"Max width",maximumHeight:"Max height",icon:"Icon",size:"Size",level2Node:"Level2 node",belowLevel2Node:"Below level2 node",nodeBorderType:"Node border style",nodeUseLineStyle:"Use only has bottom border style",otherConfig:"Other config",enableFreeDrag:"Enable node free drag",watermark:"Watermark",showWatermark:"Is show watermark",onlyExport:"Only export",watermarkDefaultText:"Watermark text",watermarkText:"Watermark text",watermarkTextColor:"Text color",watermarkLineSpacing:"Line spacing",watermarkTextSpacing:"Text spacing",watermarkAngle:"Angle",watermarkTextOpacity:"Text opacity",watermarkTextFontSize:"Font size",isEnableNodeRichText:"Enable node rich text editing",mousewheelAction:"Mouse wheel behavior",zoomView:"Zoom view",moveViewUpDown:"Move view up and down",associativeLine:"Associative line",associativeLineWidth:"Width",associativeLineColor:"Color",associativeLineActiveWidth:"Active width",associativeLineActiveColor:"Active color",mousewheelZoomActionReverse:"Mouse Wheel Zoom",mousewheelZoomActionReverse1:"Zoom out forward and zoom in back",mousewheelZoomActionReverse2:"Zoom in forward and zoom out back",createNewNodeBehavior:"Behavior of creating new node",default:"Active new node and editing",notActive:"Not active new node",activeOnly:"Only active new node but not editing",rootStyle:"Root Node",associativeLineText:"Associative line text",fontFamily:"Font family",fontSize:"Font size",isShowScrollbar:"Is show scrollbar",isUseHandDrawnLikeStyle:"Is use hand drawn like style",rootLineStartPos:"Root line start pos",center:"Center",right:"Right"},color:{moreColor:"More color"},contextmenu:{insertSiblingNode:"Insert sibling node",insertChildNode:"Insert child node",insertParentNode:"Insert parent node",insertSummary:"Insert summary",moveUpNode:"Move up node",moveDownNode:"Move down node",deleteNode:"Delete node",deleteCurrentNode:"Only del cur node",copyNode:"Copy node",cutNode:"Cut node",pasteNode:"Paste node",backCenter:"Back root node",expandAll:"Expand all",unExpandAll:"Un expand all",expandTo:"Expand to",arrangeLayout:"Arrange layout",level1:"Level1",level2:"Level2",level3:"Level3",level4:"Level4",level5:"Level5",level6:"Level6",zenMode:"Zen mode",fitCanvas:"Fit canvas",removeImage:"Remove image",removeHyperlink:"Remove hyperlink",removeNote:"Remove note"},count:{words:"Words",nodes:"Nodes"},dialog:{cancel:"Cancel",confirm:"Confirm"},export:{title:"Export",filename:"Filename",include:"Is include config like theme and structure",dedicatedFile:"Dedicated file",jsonFile:"json file",imageFile:"Image file",svgFile:"svg file",pdfFile:"pdf file",markdownFile:"markdown file",tips:"tips: .smm and .json file can be import",isTransparent:"Background is transparent",pngTips:"tips: Exporting pictures in rich text mode is time-consuming. It is recommended to export to svg format",svgTips:"tips: Exporting pictures in rich text mode is time-consuming",transformingDomToImages:"Converting nodes: ",notifyTitle:"Info",notifyMessage:"If the download is not triggered, check whether it is blocked by the browser",paddingX:"Padding x",paddingY:"Padding y",useMultiPageExport:"Export multi page",defaultFileName:"Mind map"},fullscreen:{fullscreenShow:"Full screen show",fullscreenEdit:"Full screen edit"},import:{title:"Import",selectFile:"Select file",supportFile:"Support .smm、.json、.xmind、.xlsx、.md file",enableFileTip:"Please select .smm、.json、.xmind、.xlsx、.md file",maxFileNum:"At most one file can be selected",notSelectTip:"Please select the file to import",fileContentError:"The file content is incorrect",importSuccess:"Import success",fileParsingFailed:"File parsing failed"},navigatorToolbar:{openMiniMap:"Open mini map",closeMiniMap:"Close mini map",readonly:"Change to eadonly",edit:"Change to edit",backToRoot:"Back to root node"},nodeHyperlink:{title:"Link",link:"Href",name:"Name"},nodeIcon:{title:"Icon"},nodeImage:{title:"Image",imgTitle:"Title"},nodeNote:{title:"Note"},nodeTag:{title:"Tag",addTip:"Press Enter to add"},outline:{title:"Outline",nodeDefaultText:"Branch node"},scale:{zoomIn:"Zoom in",zoomOut:"Zoom out"},shortcutKey:{title:"Shortcut key"},strusture:{title:"Strusture"},style:{title:"Node style",normal:"Normal",active:"Active",text:"Text",fontFamily:"Font family",fontSize:"Font size",lineHeight:"Line height",color:"color",addFontWeight:"add font weight",italic:"Italic",textDecoration:"Text decoration",underline:"Underline",none:"None",lineThrough:"Line through",overline:"Overline",border:"Border",style:"Style",width:"Width",borderRadius:"Border radius",background:"Background",shape:"Shape",line:"Line",nodePadding:"Node padding",horizontal:"Horizontal",vertical:"Vertical",gradientStyle:"Gradient",startColor:"Start",endColor:"End",arrowDir:"Arrow dir",arrowDirStart:"Start",arrowDirEnd:"End"},theme:{title:"Theme",classics:"Classics",dark:"Darkness",simple:"Simple",coverTip:"You have currently customized the basic style, do you want to overwrite it?",tip:"Tip",cover:"Cover",reserve:"Reserve"},toolbar:{undo:"Undo",redo:"Redo",insertSiblingNode:"Sibling node",insertChildNode:"Child node",deleteNode:"Delete node",image:"Image",icon:"Icon",link:"Link",note:"Note",tag:"Tag",summary:"Summary",displayOutline:"Display outline",baseStyle:"Base style",theme:"Theme",strusture:"Strusture",newFile:"New file",openFile:"Open file",saveAs:"Save as",import:"Import",export:"Export",shortcutKey:"Shortcut key",associativeLine:"Associative line",painter:"Painter",formula:"Formula",more:"More",selectFileTip:"Please select a file",notSupportTip:"Your browser does not support this feature, or the current page is not using the HTTPS protocol",tip:"Tip",editingLocalFileTipFront:"Currently editing your local【",editingLocalFileTipEnd:"】file",fileContentError:"File content error",fileOpenFailed:"File open failed",defaultFileName:"Mind map",creatingTip:"Creating file"},edit:{newFeatureNoticeTitle:"New feature reminder",newFeatureNoticeMessage:"This update supports node rich text editing, But there are some defects, The most important impact is that the time to export the image is proportional to the number of nodes, Therefore, if you are more dependent on export requirements, you can use【Base style】-【Other config】-【Enable node rich text editing】Set to turn off rich text editing mode.",root:"Root node",splitByWrap:"Is automatically split nodes based on line breaks?",tip:"Tip",yes:"Yes",no:"No"},mouseAction:{tip1:"Current: Left click to drag the canvas, right click to box select nodes",tip2:"Current: Left click to box select nodes, right click to drag the canvas"},search:{searchPlaceholder:"Please enter the search content",replacePlaceholder:"Please enter replacement content",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},nodeIconSidebar:{title:"Icon/Sticker",icon:"Icon",sticker:"Sticker"},formulaSidebar:{title:"Formula",placeholder:"Please enter LaTeX syntax",confirm:"Confirm",common:"Common formulas",tip:"Inserting formulas is not supported in non rich text mode"},richTextToolbar:{bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strike",fontFamily:"Font family",fontSize:"Font size",color:"Color",backgroundColor:"Background color",removeFormat:"Clear Style"},other:{loading:"Loading, please wait..."}},r={baseStyle:{title:"基础样式",background:"背景",color:"颜色",image:"图片",imageRepeat:"图片重复",imagePosition:"图片位置",imageSize:"图片大小",line:"连线",width:"粗细",style:"风格",lineRadius:"圆角大小",lineOfOutline:"概要的连线",showArrow:"是否显示箭头",nodePadding:"节点内边距",nodeMargin:"节点外边距",horizontal:"水平",vertical:"垂直",maximumWidth:"显示的最大宽度",maximumHeight:"显示的最大高度",icon:"图标",size:"大小",level2Node:"二级节点",belowLevel2Node:"三级及以下节点",nodeBorderType:"节点边框风格",nodeUseLineStyle:"是否使用只有底边框的风格",otherConfig:"其他配置",enableFreeDrag:"是否开启节点自由拖拽",watermark:"水印",showWatermark:"是否显示水印",watermarkDefaultText:"水印文字",onlyExport:"是否仅在导出时显示",watermarkText:"水印文字",watermarkTextColor:"文字颜色",watermarkLineSpacing:"水印行间距",watermarkTextSpacing:"水印文字间距",watermarkAngle:"旋转角度",watermarkTextOpacity:"文字透明度",watermarkTextFontSize:"文字字号",isEnableNodeRichText:"是否开启节点富文本编辑",mousewheelAction:"鼠标滚轮行为",zoomView:"缩放视图",moveViewUpDown:"上下移动视图",associativeLine:"关联线",associativeLineWidth:"粗细",associativeLineColor:"颜色",associativeLineActiveWidth:"激活粗细",associativeLineActiveColor:"激活颜色",mousewheelZoomActionReverse:"鼠标滚轮缩放",mousewheelZoomActionReverse1:"向前缩小向后放大",mousewheelZoomActionReverse2:"向前放大向后缩小",createNewNodeBehavior:"创建新节点的行为",default:"激活新节点及进入编辑",notActive:"不激活新节点",activeOnly:"只激活新节点,不进入编辑",rootStyle:"根节点",associativeLineText:"关联线文字",fontFamily:"字体",fontSize:"字号",isShowScrollbar:"是否显示滚动条",isUseHandDrawnLikeStyle:"是否开启手绘风格",rootLineStartPos:"根节点连线起始位置",center:"中心",right:"右侧"},color:{moreColor:"更多颜色"},contextmenu:{insertSiblingNode:"插入同级节点",insertChildNode:"插入子级节点",insertParentNode:"插入父节点",insertSummary:"插入概要",moveUpNode:"上移节点",moveDownNode:"下移节点",deleteNode:"删除节点",deleteCurrentNode:"仅删除当前节点",copyNode:"复制节点",cutNode:"剪切节点",pasteNode:"粘贴节点",backCenter:"回到根节点",expandAll:"展开所有",unExpandAll:"收起所有",expandTo:"展开到",arrangeLayout:"一键整理布局",level1:"一级主题",level2:"二级主题",level3:"三级主题",level4:"四级主题",level5:"五级主题",level6:"六级主题",zenMode:"禅模式",fitCanvas:"适应画布",removeImage:"移除图片",removeHyperlink:"移除超链接",removeNote:"移除备注"},count:{words:"字数",nodes:"节点"},dialog:{cancel:"取 消",confirm:"确 定"},export:{title:"导出",filename:"导出文件名称",include:"是否包含主题、结构等配置数据",dedicatedFile:"专有文件",jsonFile:"json文件",imageFile:"图片文件",svgFile:"svg文件",pdfFile:"pdf文件",markdownFile:"markdown文件",tips:"tips:.smm和.json文件可用于导入",isTransparent:"背景是否透明",pngTips:"tips:富文本模式导出图片非常耗时,建议导出为svg格式",svgTips:"tips:富文本模式导出图片非常耗时",transformingDomToImages:"正在转换节点:",notifyTitle:"消息",notifyMessage:"如果没有触发下载,请检查是否被浏览器拦截了",paddingX:"水平内边距",paddingY:"垂直内边距",useMultiPageExport:"是否多页导出",defaultFileName:"思维导图"},fullscreen:{fullscreenShow:"全屏查看",fullscreenEdit:"全屏编辑"},import:{title:"导入",selectFile:"选取文件",supportFile:"支持.smm、.json、.xmind、.xlsx、.md文件",enableFileTip:"请选择.smm、.json、.xmind、.xlsx、.md文件",maxFileNum:"最多只能选择一个文件",notSelectTip:"请选择要导入的文件",fileContentError:"文件内容有误",importSuccess:"导入成功",fileParsingFailed:"文件解析失败"},navigatorToolbar:{openMiniMap:"开启小地图",closeMiniMap:"关闭小地图",readonly:"切换为只读模式",edit:"切换为编辑模式",backToRoot:"回到根节点"},nodeHyperlink:{title:"超链接",link:"链接",name:"名称"},nodeIcon:{title:"图标"},nodeImage:{title:"图片",imgTitle:"图片标题"},nodeNote:{title:"备注"},nodeTag:{title:"标签",addTip:"请按回车键添加"},outline:{title:"大纲",nodeDefaultText:"分支节点"},scale:{zoomIn:"放大",zoomOut:"缩小"},shortcutKey:{title:"快捷键"},strusture:{title:"结构"},style:{title:"节点样式",normal:"常态",active:"选中状态",text:"文字",fontFamily:"字体",fontSize:"字号",lineHeight:"行高",color:"颜色",addFontWeight:"加粗",italic:"斜体",textDecoration:"划线",none:"无",underline:"下划线",lineThrough:"中划线",overline:"上划线",border:"边框",style:"样式",width:"宽度",borderRadius:"圆角",background:"背景",shape:"形状",line:"线条",nodePadding:"节点内边距",horizontal:"水平",vertical:"垂直",gradientStyle:"渐变",startColor:"起始",endColor:"结束",arrowDir:"箭头位置",arrowDirStart:"头部",arrowDirEnd:"尾部"},theme:{title:"主题",classics:"经典",dark:"深色",simple:"朴素",coverTip:"你当前自定义过基础样式,是否覆盖?",tip:"提示",cover:"覆盖",reserve:"保留"},toolbar:{undo:"回退",redo:"前进",insertSiblingNode:"同级节点",insertChildNode:"子节点",deleteNode:"删除节点",image:"图片",icon:"图标",link:"超链接",note:"备注",tag:"标签",summary:"概要",displayOutline:"显示大纲",baseStyle:"基础样式",theme:"主题",strusture:"结构",newFile:"新建",openFile:"打开",saveAs:"另存为",import:"导入",export:"导出",shortcutKey:"快捷键",associativeLine:"关联线",painter:"格式刷",formula:"公式",more:"更多",selectFileTip:"请选择文件",notSupportTip:"你的浏览器不支持该功能,或者当前页面非https协议",tip:"提示",editingLocalFileTipFront:"当前正在编辑你本机的【",editingLocalFileTipEnd:"】文件",fileContentError:"文件内容有误",fileOpenFailed:"文件打开失败",defaultFileName:"思维导图",creatingTip:"正在创建文件"},edit:{newFeatureNoticeTitle:"新特性提醒",newFeatureNoticeMessage:"本次更新支持了节点富文本编辑,但是存在一定缺陷,最主要的影响是导出为图片的时间和节点数量成正比,所以对导出需求比较依赖的话可以通过【基础样式】-【其他配置】-【是否开启节点富文本编辑】设置关掉富文本编辑模式。",root:"根节点",splitByWrap:"是否按换行自动分割节点?",tip:"提示",yes:"是",no:"否"},mouseAction:{tip1:"当前:左键拖动画布,右键框选节点",tip2:"当前:左键框选节点,右键拖动画布"},search:{searchPlaceholder:"请输入查找内容",replacePlaceholder:"请输入替换内容",replace:"替换",replaceAll:"全部替换",cancel:"取消"},nodeIconSidebar:{title:"图标/贴纸",icon:"图标",sticker:"贴纸"},formulaSidebar:{title:"公式",placeholder:"请输入 LaTeX 语法",confirm:"完成",common:"常用公式",tip:"非富文本模式下不支持插入公式"},richTextToolbar:{bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",fontFamily:"字体",fontSize:"字号",color:"字体颜色",backgroundColor:"背景颜色",removeFormat:"清除样式"},other:{loading:"正在加载,请稍后..."}},l={zh:r,en:a};i["default"].use(o["a"]);const c=new o["a"]({messages:l});t["a"]=c},"9b79":function(e,t,n){},"9c65":function(e,t,n){},a7a6:function(e,t,n){},b1db:function(e,t,n){},b834:function(e,t,n){var i={"./en/associativeLine/index.vue":["708b","chunk-2d0d5cb9"],"./en/batchExecution/index.vue":["ed72","chunk-2d2308b0"],"./en/changelog/index.vue":["a6d3","chunk-2d208ffa"],"./en/client/index.vue":["0247","chunk-2d0a34fb"],"./en/command/index.vue":["9381","chunk-2d0e5089"],"./en/constructor/index.vue":["6a50","chunk-2d0d9fbc"],"./en/cooperate/index.vue":["f2be","chunk-2d22c6c5"],"./en/deploy/index.vue":["b1a3","chunk-2d20f137"],"./en/doExport/index.vue":["c6ec","chunk-2d217907"],"./en/drag/index.vue":["ff2d","chunk-2d238428"],"./en/formula/index.vue":["dec3","chunk-2d229d67"],"./en/handDrawnLikeStyle/index.vue":["d763","chunk-9d289278"],"./en/introduction/index.vue":["7f29","chunk-02258ed0"],"./en/keyCommand/index.vue":["2f7a","chunk-2d0be174"],"./en/keyboardNavigation/index.vue":["328f","chunk-2d0b92c3"],"./en/markdown/index.vue":["8102","chunk-2d0dd3b1"],"./en/miniMap/index.vue":["b98e","chunk-2d210a7a"],"./en/node/index.vue":["c133","chunk-2d216004"],"./en/nodeImgAdjust/index.vue":["48a3","chunk-2d0c226c"],"./en/painter/index.vue":["76a5","chunk-2d0d7809"],"./en/render/index.vue":["8e32","chunk-2d0e9742"],"./en/richText/index.vue":["4947","chunk-2d0c20be"],"./en/scrollbar/index.vue":["a950","chunk-2d209589"],"./en/search/index.vue":["bf42","chunk-2d21b2b8"],"./en/select/index.vue":["ddd1","chunk-2d2299c3"],"./en/start/index.vue":["b407","chunk-2d20f68f"],"./en/textEdit/index.vue":["9d03","chunk-2d0f0784"],"./en/touchEvent/index.vue":["a1cd","chunk-2d207d47"],"./en/translate/index.vue":["479a","chunk-2d0c1a01"],"./en/utils/index.vue":["144f","chunk-2d0ab10b"],"./en/view/index.vue":["16c7","chunk-2d0abe0f"],"./en/watermark/index.vue":["27ad","chunk-2d0b361e"],"./en/xmind/index.vue":["f127","chunk-2d22bd06"],"./zh/associativeLine/index.vue":["20fa","chunk-2d0b1c6f"],"./zh/batchExecution/index.vue":["e9ee","chunk-2d226d0a"],"./zh/changelog/index.vue":["9ac1","chunk-2d0f026c"],"./zh/client/index.vue":["92da","chunk-2d0e524c"],"./zh/command/index.vue":["6df4","chunk-2d0db0f2"],"./zh/constructor/index.vue":["6cfb","chunk-2d0dad5f"],"./zh/cooperate/index.vue":["a1ae","chunk-2d207d0a"],"./zh/course1/index.vue":["8e98","chunk-2d0e9802"],"./zh/course10/index.vue":["3f2a","chunk-2d0c5538"],"./zh/course11/index.vue":["33b0","chunk-2d0b9b64"],"./zh/course12/index.vue":["eb27","chunk-2d230098"],"./zh/course13/index.vue":["c1ec","chunk-2d216642"],"./zh/course14/index.vue":["e487","chunk-2d2254a4"],"./zh/course15/index.vue":["fb9a","chunk-2d2375fa"],"./zh/course16/index.vue":["18dc","chunk-2d0ac5dc"],"./zh/course17/index.vue":["4323","chunk-2d0c09f6"],"./zh/course18/index.vue":["91b3","chunk-2d0e4e1f"],"./zh/course19/index.vue":["ae22","chunk-77915045"],"./zh/course2/index.vue":["c187","chunk-2d2160a3"],"./zh/course20/index.vue":["158d","chunk-2d0ab546"],"./zh/course21/index.vue":["e410","chunk-2d2253c4"],"./zh/course22/index.vue":["d013","chunk-2d21d064"],"./zh/course23/index.vue":["a0a8","chunk-2d20791c"],"./zh/course24/index.vue":["2ad8","chunk-2d0bd3f9"],"./zh/course25/index.vue":["e6dd","chunk-2d2261a7"],"./zh/course3/index.vue":["0fcd","chunk-2d0afe0d"],"./zh/course4/index.vue":["32a6","chunk-2d0b978a"],"./zh/course5/index.vue":["3c76","chunk-2d0c4a65"],"./zh/course6/index.vue":["8e25","chunk-2d0e9726"],"./zh/course7/index.vue":["c13f","chunk-2d216037"],"./zh/course8/index.vue":["cc99","chunk-2d221c76"],"./zh/course9/index.vue":["b69b","chunk-2d20ff53"],"./zh/deploy/index.vue":["71bb","chunk-2d0d6590"],"./zh/doExport/index.vue":["1256","chunk-2d0aa978"],"./zh/drag/index.vue":["4604","chunk-2d0c14fc"],"./zh/formula/index.vue":["d53e","chunk-2d21e399"],"./zh/handDrawnLikeStyle/index.vue":["d2d5","chunk-1c3bec15"],"./zh/help1/index.vue":["05ec","chunk-2d0a4659"],"./zh/help2/index.vue":["83fa","chunk-2d0de1ec"],"./zh/help3/index.vue":["3de7","chunk-2d0c53b9"],"./zh/help4/index.vue":["f08f","chunk-2d22ba2e"],"./zh/help5/index.vue":["2c65","chunk-2d0bd5e6"],"./zh/introduction/index.vue":["4710","chunk-792bedf8"],"./zh/keyCommand/index.vue":["a43c","chunk-2d2082b9"],"./zh/keyboardNavigation/index.vue":["2c18","chunk-2d0bd54e"],"./zh/markdown/index.vue":["08d0","chunk-2d0a514a"],"./zh/miniMap/index.vue":["0168","chunk-2d0a3179"],"./zh/node/index.vue":["433b","chunk-2d0c0a44"],"./zh/nodeImgAdjust/index.vue":["1f8f","chunk-2d0b6d39"],"./zh/painter/index.vue":["5b22","chunk-2d0d2ec3"],"./zh/render/index.vue":["6c31","chunk-2d0da701"],"./zh/richText/index.vue":["35c4","chunk-2d0ba309"],"./zh/scrollbar/index.vue":["3def","chunk-2d0c53e8"],"./zh/search/index.vue":["0503","chunk-2d0a3fbe"],"./zh/select/index.vue":["321a","chunk-2d0b91e5"],"./zh/start/index.vue":["7e57","chunk-2d0e2326"],"./zh/textEdit/index.vue":["c576","chunk-2d216f87"],"./zh/touchEvent/index.vue":["e021","chunk-2d2244e0"],"./zh/translate/index.vue":["1136","chunk-2d0aa579"],"./zh/utils/index.vue":["4738","chunk-2d0c191e"],"./zh/view/index.vue":["82ca","chunk-2d0dddce"],"./zh/watermark/index.vue":["848a","chunk-2d0de01b"],"./zh/xmind/index.vue":["8427","chunk-2d0ddf37"]};function o(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(i)},o.id="b834",e.exports=o},c0d6:function(e,t,n){"use strict";var i=n("2b0e"),o=n("2f62"),a=n("5848"),r=n("365c");i["default"].use(o["a"]);const l=new o["a"].Store({state:{mindMapData:null,isHandleLocalFile:!1,localConfig:{isZenMode:!1,openNodeRichText:!0,useLeftKeySelectionRightKeyDrag:!1,isShowScrollbar:!1,isUseHandDrawnLikeStyle:!1},activeSidebar:"",isDark:!1,isOutlineEdit:!1,isReadonly:!1},mutations:{setMindMapData(e,t){e.mindMapData=t},setIsHandleLocalFile(e,t){e.isHandleLocalFile=t},setLocalConfig(e,t){e.localConfig={...e.localConfig,...t},Object(r["g"])(e.localConfig)},setActiveSidebar(e,t){e.activeSidebar=t},setIsDark(e,t){e.isDark=t},setIsOutlineEdit(e,t){e.isOutlineEdit=t},setIsReadonly(e,t){e.isReadonly=t}},actions:{getUserMindMapData(e){try{let{data:t}={data:{data:{mindMapData:a["a"]}}};e.commit("setMindMapData",t.data)}catch(t){console.log(t)}}}});t["a"]=l},c360:function(e,t,n){"use strict";n("b1db")},c639:function(e,t,n){"use strict";n("9b79")}}); \ No newline at end of file +(function(e){function t(t){for(var i,o,l=t[0],c=t[1],d=t[2],s=0,u=[];s>>0,this.mti=1;this.mti>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},a.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_genrand(5489),n=0;n>>1^t[1&e];for(;n>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};const r=(e,t,n,i,o,a=0,l=0)=>{let c=!1;if(n&&(c=n(e,t,o,a,l)),!c&&e.children&&e.children.length>0){let t=a+1;e.children.forEach((o,a)=>{r(o,e,n,i,!1,t,a)})}i&&i(e,t,o,a,l)},l=(e,t)=>{let n=[e],i=!1;"stop"===t(e,null)&&(i=!0);while(n.length){if(i)break;let e=n.shift();e.children&&e.children.length&&e.children.forEach(o=>{i||(n.push(o),"stop"===t(o,e)&&(i=!0))})}},c=(e,t,n,i)=>{let o=[],a=e/t,r=n/i;return o=a>r?[a*i,i]:[n,n/a],o},d=(e,t,n,i)=>{let o=e/t,a=[];if(n&&i)if(e<=n&&t<=i)a=[e,t];else{let e=n/i;a=o>e?[o*i,i]:[n,n/o]}else n?a=e<=n?[e,t]:[n,n/o]:i&&(a=t<=i?[e,t]:[o*i,i]);return a},s=e=>{e=e.replace(/
/gim,"\n");let t=document.createElement("div");return t.innerHTML=e,e=t.textContent,e},u=e=>{try{return JSON.parse(JSON.stringify(e))}catch(t){return null}},h=(e,t,n=!1)=>(e.data=u(t.data),n&&(e.data.isActive=!1,e.data.generalization&&(e.data.generalization.isActive=!1)),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,i)=>{e.children[i]=h({},t,n)}),e),p=(e,t,n=!1,i=!0)=>(e.data=u(t.nodeData?t.nodeData.data:t.data),i?delete e.data.uid:e.data.uid||(e.data.uid=I()),n&&(e.data.isActive=!1),e.children=[],t.children&&t.children.length>0?t.children.forEach((t,o)=>{e.children[o]=p({},t,n,i)}):t.nodeData&&t.nodeData.children&&t.nodeData.children.length>0&&t.nodeData.children.forEach((t,o)=>{e.children[o]=p({},t,n,i)}),e),m=e=>new Promise((t,n)=>{const i=new Image;i.setAttribute("crossOrigin","anonymous"),i.onload=()=>{try{let e=document.createElement("canvas");e.width=i.width,e.height=i.height;let n=e.getContext("2d");n.drawImage(i,0,0,i.width,i.height),t(e.toDataURL())}catch(e){n(e)}},i.onerror=e=>{n(e)},i.src=e}),f=e=>{if(!/^data:/.test(e))return e;let[t,n]=e.split(","),i=/^data:[^/]+\/([^;]+);/.exec(t),o=i[1];return{type:o,base64:n}},g=(e,t)=>{let n=document.createElement("a");n.href=e,n.download=t,n.click()},v=(e,t=300,n)=>{let i=null;return(...o)=>{i||(i=setTimeout(()=>{e.call(n,...o),i=null},t))}},T=(e,t=(()=>{}))=>{let n=0,i=e.length;if(i<=0)return t();let o=()=>{n>=i?t():(e[n](),setTimeout(()=>{n++,o()},0))};o()},k=e=>e*(Math.PI/180),x=e=>e.replace(/([a-z])([A-Z])/g,(...e)=>e[1]+"-"+e[2].toLowerCase());let b=null;const y=(e,{italic:t,bold:n,fontSize:i,fontFamily:o})=>{const a=A({italic:t,bold:n,fontSize:i,fontFamily:o});if(!b){const e=document.createElement("canvas");b=e.getContext("2d")}b.save(),b.font=a;const{width:r,actualBoundingBoxAscent:l,actualBoundingBoxDescent:c}=b.measureText(e);b.restore();const d=l+c;return{width:r,height:d}},A=({italic:e,bold:t,fontSize:n,fontFamily:i})=>`${e?"italic ":""} ${t?"bold ":""} ${n}px ${i} `,w=function(e,t){let n=!1,i=null,o=()=>{n=!1,t?e.call(t):e()};if("undefined"!==typeof MutationObserver){let e=1,t=new MutationObserver(o),n=document.createTextNode(e);t.observe(n,{characterData:!0}),i=function(){e=(e+1)%2,n.data=e}}else i=setTimeout;return function(){n||(n=!0,i(o,0))}},C=(e,t)=>{let n=e.elRect,{scaleX:i,scaleY:o,translateX:a,translateY:r}=e.draw.transform(),{left:l,top:c,width:d,height:s}=t,u=(l+d)*i+a,h=(c+s)*o+r;l=l*i+a,c=c*o+r;let p=0,m=0;return l<0&&(p=-l),u>n.width&&(p=-(u-n.width)),c<0&&(m=-c),h>n.height&&(m=-(h-n.height)),{isOuter:0!==p||0!==m,offsetLeft:p,offsetTop:m}};let E=null;const N=e=>(E||(E=document.createElement("div")),E.innerHTML=e,E.textContent),O=e=>new Promise((t,n)=>{let i=new FileReader;i.onload=e=>{t(e.target.result)},i.onerror=e=>{n(e)},i.readAsDataURL(e)});const L=e=>new Promise(t=>{let n=new Image;n.src=e,n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t({width:0,height:0})}}),I=()=>Object(i["a"])(),S=e=>new Promise((t,n)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=async e=>{let n=e.target.result,i=await L(n);t({url:n,size:i})},i.onerror=e=>{n(e)}}),R=e=>([[" "," "]].forEach(t=>{e=e.replaceAll(t[0],t[1])}),e),M=e=>Object.prototype.toString.call(e).slice(8,-1),_=e=>null===e||void 0===e||""===e,z=e=>e.replaceAll(/(<[^\s]+)\s+style=["'][^'"]+["']\s*(>)/g,"$1$2");let D=null;const F=(e,t,n)=>{D||(D=document.createElement("div")),D.innerHTML=e;let i=e=>{let o=e.childNodes;o.forEach(e=>{1===e.nodeType&&(e.tagName.toLowerCase()===t?e.style.cssText=n:i(e))})};return i(D),D.innerHTML};let P=null;const B=e=>{P||(P=document.createElement("div")),P.innerHTML=e;for(let t=P.childNodes,n=t.length;n--;)if(1==t[n].nodeType)return!0;return!1};let U=null;const H=(e,t,n)=>{U||(U=document.createElement("div")),U.innerHTML=e;let i=e=>{let o=e.childNodes;o.forEach(o=>{1===o.nodeType?i(o):3===o.nodeType&&e.replaceChild(document.createTextNode(o.nodeValue.replaceAll(t,n)),o)})};return i(U),U.innerHTML};let j=null;const G=(e,t)=>{j||(j=document.createElement("div")),j.innerHTML=e;const n=j.querySelector(t);return n&&n.parentNode.removeChild(n),j.innerHTML},Y=e=>(e=String(e).replaceAll(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(e)||/rgba\(255,255,255,[^)]+\)/.test(e)),$=e=>(e=String(e).replaceAll(/\s+/g,""),["","transparent"].includes(e)||/rgba\(\d+,\d+,\d+,0\)/.test(e)),W=e=>{let{lineColor:t,root:n,second:i,node:o}=e,a=[t,n.fillColor,n.color,i.fillColor,i.color,o.fillColor,o.color,n.borderColor,i.borderColor,o.borderColor];for(let r=0;r{const t=e=>{const n=e.childNodes;n.forEach(e=>{1===e.nodeType&&(e.classList.contains("ql-formula")?e.parentNode.removeChild(e):t(e))})};t(e)};let K=null;const Q=e=>{K||(K=document.createElement("div")),K.innerHTML=e;const t=K.childNodes;let n="";for(let i=0;i{J||(J=document.createElement("div")),J.innerHTML=e;const t=J.childNodes;let n=[],i="";for(let o=0;o`

${fe(e)}

`).join("")};let V=null;const X=e=>{V||(V=document.createElement("div")),V.innerHTML=e;const t=V.querySelectorAll(".ql-formula");Array.from(t).forEach(e=>{const t=document.createTextNode("$smmformula$");e.parentNode.replaceChild(t,e)});const n=V.childNodes;let i=[];for(let o=0;o`

${fe(e)}

`).join(""),t.length>0){e=e.replace(/\$smmformula\$/g,''),V.innerHTML=e;const n=V.querySelectorAll(".smmformula");Array.from(n).forEach((e,n)=>{e.parentNode.replaceChild(t[n],e)}),e=V.innerHTML}return e},ee=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),te=(e,t)=>{const n={};return Object.keys(t).forEach(i=>{const o=e[i],a=t[i];if(M(o)===M(a)){if("Object"===M(o)){if(JSON.stringify(o)!==JSON.stringify(a))return void(n[i]=a)}else if(o!==a)return void(n[i]=a)}else n[i]=a}),n},ne=e=>!/^_/.test(e)&&!o["h"].includes(e),ie=e=>e.reduce((e,t)=>{const n=e.find(e=>e.type===t.type);return n?t.list.forEach(e=>{const t=n.list.find(t=>t.name===e.name);t?t.icon=e.icon:n.list.push(e)}):e.push({...t}),e},[]),oe=e=>{let t=[];return e.forEach(n=>{e.find(e=>e.uid!==n.uid&&e.isAncestor(n))||t.push(n)}),t},ae=e=>{const t={},n={};e.forEach(e=>{const i=e.parent;if(i){const o=i.uid;n[o]=i;const a=e.getIndexInBrothers(),r={node:e,index:a};t[o]?t[o].find(e=>e.index===r.index)||t[o].push(r):t[o]=[r]}});const i=[];return Object.keys(t).forEach(e=>{if(t[e].length>1){const o=t[e].map(e=>e.index).sort((e,t)=>e-t);i.push({node:n[e],range:[o[0],o[o.length-1]]})}else i.push({node:t[e][0].node})}),i},re=(e,t,n,i,o,a,r,l)=>t>o&&a>e&&i>r&&l>n,le=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),n.collapse(),t.removeAllRanges(),t.addRange(n)},ce=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)},de=(e,t={})=>{const n=e=>{e.forEach(e=>{e.data={...e.data,...t},e.children&&e.children.length>0&&n(e.children)})};return n(e),e},se=(e,t=!1)=>{const n=e=>{e.forEach(e=>{e.data||(e.data={}),(t||_(e.data.uid))&&(e.data.uid=I()),e.children&&e.children.length>0&&n(e.children)})};return n(e),e},ue=e=>e?Array.isArray(e)?e:[e]:[],he=e=>e.parent?e.parent.nodeData.children.findIndex(t=>t.data.uid===e.uid):0,pe=(e,t)=>t.findIndex(t=>t.uid===e.uid),me=e=>{let t=0;for(let o=0;o([["&","&"],["<","<"],[">",">"]].forEach(t=>{e=e.replace(new RegExp(t[0],"g"),t[1])}),e),ge=(e,t)=>{const n=M(e);if(n!==M(t))return!1;if("Object"===n){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let o=0;o{navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(e))},Te=async()=>{let e=null,t=null;if(navigator.clipboard){e=await navigator.clipboard.readText();const n=await navigator.clipboard.read();if(n&&n.length>0)for(const e of n)for(const n of e.types)if(/^image\//.test(n)){t=await e.getType(n);break}}return{text:e,img:t}},ke=e=>{if(!e||!e.parent)return;const t=he(e);-1!==t&&e.parent.nodeData.children.splice(t,1)},xe=e=>(o["i"].forEach(t=>{e=e.replaceAll(new RegExp(`<${t}([^>]*)>`,"g"),`<${t} $1 />`)}),e),be=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;nt.uid===e[n].uid))return!1;return!0},ye=()=>{const e=navigator.userAgent.match(/\s+Chrome\/(.*)\s+/);return e&&e[1]?Number.parseFloat(e[1]):""},Ae=e=>({simpleMindMap:!0,data:e}),we=e=>{let t=null;if("string"===typeof e)try{const n=JSON.parse(e);"object"===typeof n&&n.simpleMindMap&&(t=n.data)}catch(i){}else"object"===typeof e&&e.simpleMindMap&&(t=e.data);const n=!!t;return{isSmm:n,data:n?t:String(e)}},Ce=(e,t)=>{e.preventDefault();const n=window.getSelection();if(!n.rangeCount)return;n.deleteFromDocument(),t=t||e.clipboardData.getData("text"),t=N(t),t=t.replaceAll(/\n/g,"");const i=document.createTextNode(t);n.getRangeAt(0).insertNode(i),n.collapseToEnd()},Ee=e=>{const t={},n=(e,i)=>{const o=e.data.uid;i&&i.children.push(o),t[o]={isRoot:!i,data:{...e.data},children:[]},e.children&&e.children.length>0&&e.children.forEach(e=>{n(e,t[o])})};return n(e,null),t},Ne=(e,t)=>{const n=Object.keys(e);let i="";return n.forEach(n=>{const o=e[n].children,a=-1!==o.findIndex(e=>e===t);a&&(i=n)}),i},Oe=e=>{const t=Object.keys(e);if(t.length<=0)return null;const n=t.find(t=>e[t].isRoot);if(!n||!e[n])return null;const i={data:u(e[n].data),children:[]},o={};return o[n]=i,t.forEach(t=>{const n=Ne(e,t),i=e[t],a=o[t]||{data:u(i.data),children:[]};if(o[t]||(o[t]=a),n){const i=e[n].children.findIndex(e=>e===t);o[n]||(o[n]={data:u(e[n].data),children:[]}),o[n].children[i]=a}}),i},Le=(e,t)=>{const n=e.x+e.width/2,i=e.y+e.height/2,o=t.x+t.width/2,a=t.y+t.height/2;return no&&io&&i>a?"right-bottom":na?"left-bottom":no&&i===a?"right":n===o&&ia?"bottom":"overlap"}},2634:function(e,t,n){"use strict";n("177f")},"365c":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"c",(function(){return v}));var i=n("5848"),o=n("1e42"),a=n("2b0e");const r="SIMPLE_MIND_MAP_DATA",l="SIMPLE_MIND_MAP_LANG",c="SIMPLE_MIND_MAP_LOCAL_CONFIG";let d=null;const s=(e,t)=>(e.data=Object(o["ib"])(t.data),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,n)=>{e.children[n]=s({},t)}),e),u=()=>{if(window.takeOverApp)return d=window.takeOverAppMethods.getMindMapData(),d;let e=localStorage.getItem(r);if(null===e)return Object(o["ib"])(i["a"]);try{return JSON.parse(e)}catch(t){return Object(o["ib"])(i["a"])}},h=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t.root=s({},e),window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);a["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},p=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t={...t,...e},window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);a["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},m=e=>{window.takeOverApp?window.takeOverAppMethods.saveLanguage(e):localStorage.setItem(l,e)},f=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLanguage()||"zh";let e=localStorage.getItem(l);return e||(m("zh"),"zh")},g=e=>{if(window.takeOverApp)return window.takeOverAppMethods.saveLocalConfig(e);localStorage.setItem(c,JSON.stringify(e))},v=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLocalConfig();let e=localStorage.getItem(c);return e?JSON.parse(e):null}},4013:function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"i",(function(){return h}));const i=[{name:"默认",value:"default",dark:!1},{name:"暗色2",value:"dark2",dark:!0},{name:"天清绿",value:"skyGreen",dark:!1},{name:"脑图经典2",value:"classic2",dark:!1},{name:"脑图经典3",value:"classic3",dark:!1},{name:"经典绿",value:"classicGreen",dark:!1},{name:"经典蓝",value:"classicBlue",dark:!1},{name:"天空蓝",value:"blueSky",dark:!1},{name:"脑残粉",value:"brainImpairedPink",dark:!1},{name:"暗色",value:"dark",dark:!0},{name:"泥土黄",value:"earthYellow",dark:!1},{name:"清新绿",value:"freshGreen",dark:!1},{name:"清新红",value:"freshRed",dark:!1},{name:"浪漫紫",value:"romanticPurple",dark:!1},{name:"粉红葡萄",value:"pinkGrape",dark:!1},{name:"薄荷",value:"mint",dark:!1},{name:"金色vip",value:"gold",dark:!1},{name:"活力橙",value:"vitalityOrange",dark:!1},{name:"绿叶",value:"greenLeaf",dark:!1},{name:"脑图经典",value:"classic",dark:!0},{name:"脑图经典4",value:"classic4",dark:!1},{name:"小黄人",value:"minions",dark:!1},{name:"简约黑",value:"simpleBlack",dark:!1},{name:"课程绿",value:"courseGreen",dark:!1},{name:"咖啡",value:"coffee",dark:!1},{name:"红色精神",value:"redSpirit",dark:!1},{name:"黑色幽默",value:"blackHumour",dark:!0},{name:"深夜办公室",value:"lateNightOffice",dark:!0},{name:"黑金",value:"blackGold",dark:!0},{name:"牛油果",value:"avocado",dark:!1},{name:"秋天",value:"autumn",dark:!1},{name:"橙汁",value:"orangeJuice",dark:!0}],o={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",SET_DATA:"setData",TRANSFORM_TO_NORMAL_NODE:"transformAllNodesToNormalNode",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",VERTICAL_TIMELINE:"verticalTimeline"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},PASTE_TYPE:{CLIP_BOARD:"clipBoard",CANVAS:"canvas"},SCROLL_BAR_DIR:{VERTICAL:"vertical",HORIZONTAL:"horizontal"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"}},a={[o.INIT_ROOT_NODE_POSITION.LEFT]:0,[o.INIT_ROOT_NODE_POSITION.TOP]:0,[o.INIT_ROOT_NODE_POSITION.RIGHT]:1,[o.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[o.INIT_ROOT_NODE_POSITION.CENTER]:.5},r=[{name:"逻辑结构图",value:o.LAYOUT.LOGICAL_STRUCTURE},{name:"思维导图",value:o.LAYOUT.MIND_MAP},{name:"组织结构图",value:o.LAYOUT.ORGANIZATION_STRUCTURE},{name:"目录组织图",value:o.LAYOUT.CATALOG_ORGANIZATION},{name:"时间轴",value:o.LAYOUT.TIMELINE},{name:"时间轴2",value:o.LAYOUT.TIMELINE2},{name:"竖向时间轴",value:o.LAYOUT.VERTICAL_TIMELINE},{name:"鱼骨图",value:o.LAYOUT.FISHBONE}],l=[o.LAYOUT.LOGICAL_STRUCTURE,o.LAYOUT.MIND_MAP,o.LAYOUT.CATALOG_ORGANIZATION,o.LAYOUT.ORGANIZATION_STRUCTURE,o.LAYOUT.TIMELINE,o.LAYOUT.TIMELINE2,o.LAYOUT.VERTICAL_TIMELINE,o.LAYOUT.FISHBONE],c=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText"],d={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null},s={READ_CLIPBOARD_ERROR:"read_clipboard_error",PARSE_PASTE_DATA_ERROR:"parse_paste_data_error",CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR:"custom_handle_clipboard_text_error",LOAD_CLIPBOARD_IMAGE_ERROR:"load_clipboard_image_error",BEFORE_TEXT_EDIT_ERROR:"before_text_edit_error",EXPORT_ERROR:"export_error",EXPORT_LOAD_IMAGE_ERROR:"export_load_image_error",DATA_CHANGE_DETAIL_EVENT_ERROR:"data_change_detail_event_error"},u="\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n",h=["img","br","hr","input","link","meta","area"]},"41cb":function(e,t,n){"use strict";n("14d9");var i=n("2b0e"),o=n("8c4f"),a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"docContainer"},[t("Header"),t("div",{staticClass:"content"},[t("Sidebar"),t("div",{ref:"doc",staticClass:"doc",attrs:{id:"doc"},on:{scroll:e.onScroll}},[t("router-view")],1),t("CatalogBar",{attrs:{scrollTop:e.scrollTop},on:{scroll:e.doScroll}})],1)],1)},r=[],l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"headerContainer"},[t("div",{staticClass:"left"},[t("div",{staticClass:"title",on:{click:e.toIndex}},[t("img",{attrs:{src:n("440d"),alt:""}}),e._v(" SimpleMindMap ")])]),t("div",{staticClass:"center"},[t("div",{staticClass:"btn",on:{click:e.toIndex}},[e._v(e._s(e.index))]),t("div",{staticClass:"btn",on:{click:e.toDemo}},[e._v(e._s(e.demoName))]),t("div",{staticClass:"btn",class:{active:"help"===e.docType},on:{click:e.toHelp}},[e._v(" "+e._s(e.helpDoc)+" ")]),t("div",{staticClass:"btn",class:{active:"doc"===e.docType},on:{click:e.toDev}},[e._v(" "+e._s(e.devDoc)+" ")]),"doc"===e.docType?t("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:e.handleCommand}},[t("span",{staticClass:"translateBtn"},[e._v(" "+e._s(e.currentLangName)),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.otherLangList,(function(n){return t("el-dropdown-item",{key:n.path,attrs:{command:n.path}},[e._v(e._s(n.name))])})),1)],1):e._e(),e._m(0)],1),t("div",{staticClass:"right"})])},c=[function(){var e=this,t=e._self._c;return t("a",{attrs:{href:"https://github.com/wanglin2/mind-map",target:"_blank"}},[t("span",{staticClass:"iconfont icongithub"})])}],d=[{lang:"zh",children:[{path:"associativeLine",title:"AssociativeLine 插件"},{path:"batchExecution",title:"BatchExecution实例"},{path:"changelog",title:"Changelog"},{path:"command",title:"Command实例"},{path:"constructor",title:"构造函数"},{path:"course1",title:"基本使用"},{path:"course2",title:"操作节点内容"},{path:"course3",title:"插入/删除节点、前进回退"},{path:"course4",title:"设置节点样式"},{path:"course5",title:"设置基础样式"},{path:"course6",title:"显示水印"},{path:"course7",title:"开启节点自由拖拽"},{path:"course8",title:"开启节点富文本编辑"},{path:"course9",title:"修改鼠标滚轮的行为"},{path:"course10",title:"主题"},{path:"course11",title:"结构"},{path:"course12",title:"如何渲染一个大纲"},{path:"course13",title:"快捷键"},{path:"course14",title:"如何渲染一个小地图"},{path:"course15",title:"如何渲染一个右键菜单"},{path:"course16",title:"如何渲染富文本的悬浮工具栏"},{path:"course17",title:"导入和导出"},{path:"course18",title:"如何持久化数据"},{path:"course19",title:"插入和扩展节点图标"},{path:"course20",title:"如何自定义节点内容"},{path:"course21",title:"如何复制、剪切、粘贴"},{path:"course22",title:"如何实现搜索、替换"},{path:"course23",title:"如何渲染滚动条"},{path:"course24",title:"如何开发一个插件"},{path:"course25",title:"关于概要"},{path:"doExport",title:"Export 插件"},{path:"drag",title:"Drag插件"},{path:"introduction",title:"简介"},{path:"keyCommand",title:"KeyCommand实例"},{path:"keyboardNavigation",title:"KeyboardNavigation插件"},{path:"markdown",title:"Markdown解析"},{path:"miniMap",title:"MiniMap插件"},{path:"node",title:"Node实例"},{path:"render",title:"Render实例"},{path:"textEdit",title:"TextEdit实例"},{path:"richText",title:"RichText插件"},{path:"select",title:"Select 插件 "},{path:"start",title:"开始"},{path:"translate",title:"贡献"},{path:"utils",title:"内置工具方法"},{path:"view",title:"View实例"},{path:"watermark",title:"Watermark插件"},{path:"xmind",title:"XMind解析"},{path:"deploy",title:"部署"},{path:"client",title:"客户端"},{path:"touchEvent",title:"TouchEvent插件"},{path:"nodeImgAdjust",title:"NodeImgAdjust插件"},{path:"search",title:"Search插件"},{path:"painter",title:"Painter插件"},{path:"painter",title:"Painter插件"},{path:"scrollbar",title:"Scrollbar插件"},{path:"formula",title:"Formula插件"},{path:"cooperate",title:"Cooperate插件"},{path:"handDrawnLikeStyle",title:"HandDrawnLikeStyle收费插件"},{path:"help1",title:"概要/关联线"},{path:"help2",title:"客户端"},{path:"help3",title:"打开预览在线文件"},{path:"help4",title:"复制粘贴"},{path:"help5",title:"导出"}]},{lang:"en",children:[{path:"associativeLine",title:"AssociativeLine plugin"},{path:"batchExecution",title:"batchExecution instance"},{path:"changelog",title:"Changelog"},{path:"command",title:"command instance"},{path:"constructor",title:"Constructor"},{path:"doExport",title:"Export plugin"},{path:"drag",title:"Drag plugin"},{path:"introduction",title:"Introduction"},{path:"keyCommand",title:"KeyCommand instance"},{path:"keyboardNavigation",title:"KeyboardNavigation plugin"},{path:"markdown",title:"Markdown parse"},{path:"miniMap",title:"MiniMap plugin"},{path:"node",title:"Node instance"},{path:"render",title:"Render instance"},{path:"textEdit",title:"TextEdit instance"},{path:"richText",title:"RichText plugin"},{path:"select",title:"Select plugin"},{path:"start",title:"Start"},{path:"translate",title:"Contribute"},{path:"utils",title:"Utility Methods"},{path:"view",title:"View instance"},{path:"watermark",title:"Watermark plugin"},{path:"xmind",title:"XMind parse"},{path:"deploy",title:"Deploy"},{path:"touchEvent",title:"TouchEvent plugin"},{path:"nodeImgAdjust",title:"NodeImgAdjust plugin"},{path:"search",title:"Search plugin"},{path:"painter",title:"Painter plugin"},{path:"scrollbar",title:"Scrollbar plugin"},{path:"formula",title:"Formula plugin"},{path:"cooperate",title:"Cooperate plugin"},{path:"handDrawnLikeStyle",title:"HandDrawnLikeStyle chargeable plugin"},{path:"client",title:"Client"}]}];let s=[{name:"中文",path:"zh"},{name:"English",path:"en"}],u=["introduction","start","deploy","client","translate","changelog"],h=new Array(25).fill(0).map((e,t)=>"course"+(t+1)),p=["constructor","node","render","textEdit","view","keyCommand","command","batchExecution","richText","select","drag","keyboardNavigation","doExport","miniMap","watermark","associativeLine","touchEvent","nodeImgAdjust","search","painter","scrollbar","formula","cooperate","handDrawnLikeStyle","xmind","markdown","utils"],m=new Array(5).fill(0).map((e,t)=>"help"+(t+1));const f=(e,t)=>{let n=d.find(t=>t.lang===e),i=n.children;return t.filter(e=>i.find(t=>t.path===e)).map(e=>({path:e,name:i.find(t=>t.path===e).title}))};var g={zh:[{groupName:"开始",type:"doc",list:f("zh",u)},{groupName:"教程",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("zh",p)},{groupName:"使用帮助",type:"help",list:f("zh",m)}],en:[{groupName:"Start",type:"doc",list:f("en",u)},{groupName:"Course",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("en",p)}]};const v={pageCatalog:{zh:"本页目录",en:"Page catalog"},demo:{zh:"在线示例",en:"Online Demo"},help:{zh:"帮助文档",en:"Help doc"},dev:{zh:"开发文档",en:"Dev doc"},index:{zh:"首页",en:"Home"}},T=(e,t)=>v[e]?v[e][t]||v[e].zh:"";var k=T,x={data(){return{docType:"",lang:"",currentLangName:"",otherLangList:[]}},computed:{demoName(){return k("demo",this.lang)},helpDoc(){return k("help",this.lang)},devDoc(){return k("dev",this.lang)},index(){return k("index",this.lang)}},watch:{$route(){this.init()}},created(){this.init()},methods:{init(){let e=/^\/([^\/]+)\//.exec(this.$route.path);e&&e[1]&&(this.docType=e[1]);let t=/^\/doc\/([^\/]+)\//.exec(this.$route.path);if(t&&t[1]){this.lang=t[1];let e=s.find(e=>e.path===this.lang);this.currentLangName=e.name,this.otherLangList=s.filter(e=>e.path!==this.lang)}},toIndex(){this.$router.push("/index")},toDemo(){this.$router.push("/")},handleCommand(e){let t=this.$route.path.replace(/^\/doc\/([^\/]+)\//,(...t)=>`/doc/${e}/`);this.$router.push(t)},toHelp(){this.lang="zh",this.$router.replace("/help/zh/")},toDev(){this.$router.replace("/doc/zh/")}}},b=x,y=(n("c360"),n("2877")),A=Object(y["a"])(b,l,c,!1,null,"1c36e28e",null),w=A.exports,C=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sideBarContainer"},[t("div",{staticClass:"catalogGroupList"},e._l(e.groupList,(function(n,i){return t("div",{key:i,staticClass:"catalogGroup"},[t("div",{staticClass:"catalogGroupName"},[e._v(e._s(n.groupName))]),t("div",{staticClass:"catalogList"},e._l(n.list,(function(n){return t("div",{key:i+n.path,staticClass:"catalogItem",class:{active:n.path===e.currentPath},on:{click:function(t){return e.jump(n)}}},[e._v(" "+e._s(n.name)+" ")])})),0)])})),0)])},E=[],N={data(){return{groupList:[],lang:"",currentPath:"",type:""}},created(){this.initCatalog()},watch:{$route(){this.initCatalog()}},methods:{jump(e){e.path!==this.currentPath&&this.$router.push(`/${this.type}/${this.lang}/${e.path}`)},initCatalog(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.type=e[1],this.lang=e[2],this.groupList=g[this.lang].filter(e=>e.type===this.type));let t=/^\/(doc|help)\/[^\/]+\/([^\/]+)(\/|$)/.exec(this.$route.path);t&&t[2]&&(this.currentPath=t[2])}}},O=N,L=(n("c639"),Object(y["a"])(O,C,E,!1,null,"73f8f4b5",null)),I=L.exports,S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"catalogBarContainer"},[t("div",{staticClass:"catalogBarTitle"},[e._v(e._s(e.pageCatalogTitle))]),t("div",{staticClass:"catalogList"},[e._l(e.list,(function(n,i){return t("div",{key:n.title+i,staticClass:"catalogItem",class:{active:n.title===e.activeCatalog},on:{click:function(t){return e.scrollTo(n,i)}}},[e._v(" "+e._s(n.title)+" ")])})),-1!==e.activeCatalogIndex?t("div",{staticClass:"activeBar",style:{top:4+28*e.activeCatalogIndex+"px"}}):e._e()],2)])},R=[],M={props:{scrollTop:{type:Number}},data(){return{lang:"",list:[],activeCatalog:"",activeCatalogIndex:-1,appointCatalog:!0}},computed:{pageCatalogTitle(){return k("pageCatalog",this.lang)}},watch:{$route(e,t){this.initLang(),this.initCatalogList(e.path,t.path)},scrollTop(){this.onScroll()},lang(e,t){t&&this.initCatalogList()}},mounted(){this.initLang(),this.initCatalogList(),this.scrollToCatalog()},methods:{initLang(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.lang=e[2])},initCatalogList(e,t){let n=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(e),i=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(t);if(!e&&!t||n[2]!==i[2]){this.$emit("scroll",0),this.resetActive();let e=document.getElementById("doc"),t=document.querySelectorAll("#doc h2");this.list=Array.from(t).map(t=>({title:t.textContent,top:t.offsetTop-e.offsetTop}))}},scrollToCatalog(){let e=/^\/(doc|help)\/[^\/]+\/[^\/]+\/([^\/]+)($|\/)/.exec(this.$route.path);if(e&&e[2]){let t=decodeURIComponent(e[2]),n=this.list.find(e=>e.title===t),i=this.list.findIndex(e=>e.title===t);n&&(this.activeCatalog=n.title,this.activeCatalogIndex=i,this.$emit("scroll",n.top))}},scrollTo(e,t){this.appointCatalog=!0,this.routeToNewCatalog(e.title),this.$nextTick(()=>{this.activeCatalog=e.title,this.activeCatalogIndex=t,this.scrollToCatalog()})},routeToNewCatalog(e){let t=this.$route.path,n="";n=e?/^\/(doc|help)\/[^\/]+\/[^\/]+($|\/)$/.test(t)?t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/)$/,"$1/"+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+\/)([^\/]+)($|\/)/,(...t)=>t[1]+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/|.*)$/,"$1"),t!==n&&this.$router.push(n)},onScroll(){if(this.appointCatalog)return void(this.appointCatalog=!1);let e=!1;for(let t=0;t=n.top&&(!i||this.scrollTop{try{this.$refs.doc.scrollTop=e}catch(t){console.log(t)}})},onScroll(){this.scrollTop=this.$refs.doc.scrollTop}}}),P=F,B=(n("2634"),Object(y["a"])(P,a,r,!1,null,null,null)),U=B.exports;const H=()=>{let e=d[0].children;for(let t=1;t{n.find(t=>t.path===e.path)||n.push({...e,lang:"zh"})})}};H();const j=(e,t)=>[...d.map(n=>({path:`/${e}/${n.lang}/`,redirect:`/${e}/${n.lang}/${t}/`})),...d.map(t=>({path:`/${e}/${t.lang}/`,component:U,children:t.children.map(e=>({path:e.path+"/:h?",component:()=>n("b834")(`./${e.lang||t.lang}/${e.path}/index.vue`)}))}))];i["default"].use(o["a"]);const G=[{path:"/index",name:"Index",component:()=>n.e("chunk-7babbe51").then(n.bind(null,"9684"))},{path:"/",name:"Edit",component:()=>n.e("chunk-5c17f390").then(n.bind(null,"5fca"))},...j("doc","introduction"),...j("help","help1")],Y=new o["a"]({routes:G});t["a"]=Y},"440d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABhVJREFUeF7tW2uME1UU/s4suwjyMBpw1e0UAkYCiWIkasJLScwaoySIrtiZRQJ0CiIRDfEVEuGHkUg0ogHZWdiV3c6ugUA0avCBkaiQSCAmGl8RIp1FBDWCBMGw3TmmsNNOZ2e6nWm3LbT917n33HvOd87cc+537xDK/Edlbj8qAFQi4BJBYHw0OuI8nZsHwnQwpgMcdFH9MBifsmDsr7li6IeHH5z/RyYTL4lXIKCp9QS8CmCSN3/RMRDW6aHw625yJQ+AqKkfAaj3Znh6bwLejUnKHKcxShoAsb1pNQR6sY/iRMcZ/JOjQQbfCKIb7G0EY25MWrKz7/NcoB1A2WDn5lvZML4CMDQ1Db0PZlWXlQ8yTR3oVGeTgWcATLX0O2XE4zOPPvb4t1bZko0AUVMbAbSZymYKYzcwAh3q58S4KzkGY1FMVlpKGoBgW/NYFngSCE8BmJVUloVpurx4r5egEzuapoHpy9QY/IouR54tWQBETW0FsMDJyDjxqGOhyF9eAKjd1jKqpjueTIMM3tklReaWHACBt5vGUTXtBjDGzcAqotpfQ+ETXgAItjddxwIds8js0CXloZICYGxH87U9zMf7M8xtFc9iMXwvuQYQvRQLhVeVFACi1vw1wLenGWLwGhaEagK/YHl/f9PlSF1/QFnbRU3lNGNZkGLy4o6SASCoqSsZWGdViJnru+TIJxdL33/3A3STpT1R5q4g5oOxxsjvTmBcjChjBkDb0sYl7OFBZ+472vD0uZIAYEzrhlqjptpmBE3RpfBBU8HeEjhRCeb8M+LxW+w1QGLQotUBde2b7hUEYVfKMlZ1KRKxW+paDXqBxOA1emNktZNI0QAQo03Pgehli1LzdUlpd1KybuvGm6l60HprUZOd/fwzg57skpSP3foXDYCgpnYyMM9UTBB6xh55dOkRN0Xrtr02pOr8iDkQeCIzT2DCNY4eZT7BhO9g8KHBGLbrkCyfzgRW0QCwl6m6pBRFl6JMmvBIBQDbRqUSAaX2CgQ6t0yhnp5FLGBCdituei+B6UcwH7BvP81eoqYeAHBb7//TuqSMzDRPQRfBvORe0xqHHHyxyjv7j8Xg3bqk3OOaAQqZBoNRdSETtvjxursMN+hSZLvZHoyqc5iQoqeY1+py5Hkn+bw4w0shFNSaNzJ4aT4BYEJLV0hZZAn/QwDGmf8JkGOSotnnLEopbE9P4EGTdHnhD14AEaMtE0Hx700ZJuzpCil3J/47ePQXo1q482jD4r+tcxRtM5Sv/Gzbiu4FYy0JWMWMO6yGuno/uukRIuGdZF/mwmyHBwgA5wBinCKC7tTIzKNBVJt6TZxp7UyR2csOeyNECgqAh/eqYJRYqQKQD1IUQP+cYIEB+A/AWZdAuDrteR5occqGExwgABLb051Ox1xkYGqsUdnXJwXaFsH8HIxkwQnaAehvn+7kPTsdbabB3vSY4OpSp7yEfedOdtf/uWzZmf7ToP+jsYQOWXGC9kIoIehhrUp2tbI3fQuhJh2ggCXFLdDlyNasCyEfh6NZc4IDUQoTsxSTI0k6OtCuziYByfQEYL0uKStKohROKBHQmjUCh/x4vq8MbdelcIP1+ZjW1quMmu6TqWf0hS6FZ7rNVxROUIyq94NoPsAP+wOCtjNxogTe6OhZTf0GwOTetjO6pAzPNE9iOyx0D2/0ckVmsDFsR4UT7Md7FU7QX3jnLpWveiNXTSoRkCuCfuVFTY0CkJK7PYOvdzvwTPQpKCfo1ygvcmKHuhyMN1LFEB5wu/xUlDToxRg/fYNtzbO4ij+z1AKrdSm8xj5WwTlBP8b4kRnX9tbo7qqqtCsv5t0Ac7yicIJ+jPErE9DUNwl4Ik2+l4MsGifo1xi/cqKmngKQfihy4YoMXUnAytQaUSBO0K8hfuX6nBG4DHTZXpJK2HvhQiNoNxiD3YAsGCfo15O5yo3asGHYkJHV60BY4jRWPjjBkr0oaTW4rn3zeIF4MpOxnEAzUmtAGVyVtQJRtpelTRDK/rr8hcWxnD+YMCOhrD+ZsZXE5fnRlAlCWX82l2uNkUm+aIzQQBrlZewKAF7Quhz7/g9P4cNulJCaPwAAAABJRU5ErkJggg=="},"441d":function(e,t,n){"use strict";n("81cc")},"56d7":function(e,t,n){"use strict";n.r(t);var i=n("2b0e"),o=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},a=[],r={name:"App",components:{}},l=r,c=(n("441d"),n("2877")),d=Object(c["a"])(l,o,a,!1,null,null,null),s=d.exports,u=n("41cb"),h=n("c0d6"),p=n("5c96"),m=n.n(p),f=(n("0fae"),n("9c65"),n("0808"),n("6944")),g=n.n(f),v=n("9225"),T=n("365c");i["default"].config.productionTip=!1;const k=new i["default"];i["default"].prototype.$bus=k,i["default"].use(m.a),i["default"].use(g.a);const x=()=>{v["a"].locale=Object(T["b"])(),new i["default"]({render:e=>e(s),router:u["a"],store:h["a"],i18n:v["a"]}).$mount("#app")};window.takeOverApp?(window.initApp=x,window.$bus=k):x()},5848:function(e,t,n){"use strict";const i=()=>({image:"/enJFNMHnedQTYTESGfDkctCp2.jpeg",imageTitle:"图片名称",imageSize:{width:1e3,height:563},icon:["priority_1"],tag:["标签1","标签2"],hyperlink:"http://lxqnsys.com/",hyperlinkTitle:"理想青年实验室",note:"理想青年实验室\n一个有意思的角落"}),o=(i(),i(),{root:{data:{text:"根节点"},children:[{data:{text:"二级节点",generalization:{text:"概要"}},children:[{data:{text:"分支主题"},children:[]},{data:{text:"分支主题"},children:[]}]}]}});t["a"]={...o,theme:{template:"classic4",config:{}},layout:"logicalStructure",config:{}}},"6d72":function(e,t,n){"use strict";n("a7a6")},"81cc":function(e,t,n){},9225:function(e,t,n){"use strict";var i=n("2b0e"),o=n("a925"),a={baseStyle:{title:"BaseStyle",background:"Background",color:"Color",image:"Image",imageRepeat:"Image repeat",imagePosition:"Image position",imageSize:"Image size",line:"Line",width:"Width",style:"Style",lineRadius:"Radius",lineOfOutline:"Line of outline",showArrow:"Is show arrow",nodePadding:"Node padding",nodeMargin:"Node margin",horizontal:"Horizontal",vertical:"Vertical",maximumWidth:"Max width",maximumHeight:"Max height",icon:"Icon",size:"Size",level2Node:"Level2 node",belowLevel2Node:"Below level2 node",nodeBorderType:"Node border style",nodeUseLineStyle:"Use only has bottom border style",otherConfig:"Other config",enableFreeDrag:"Enable node free drag",watermark:"Watermark",showWatermark:"Is show watermark",onlyExport:"Only export",watermarkDefaultText:"Watermark text",watermarkText:"Watermark text",watermarkTextColor:"Text color",watermarkLineSpacing:"Line spacing",watermarkTextSpacing:"Text spacing",watermarkAngle:"Angle",watermarkTextOpacity:"Text opacity",watermarkTextFontSize:"Font size",isEnableNodeRichText:"Enable node rich text editing",mousewheelAction:"Mouse wheel behavior",zoomView:"Zoom view",moveViewUpDown:"Move view up and down",associativeLine:"Associative line",associativeLineWidth:"Width",associativeLineColor:"Color",associativeLineActiveWidth:"Active width",associativeLineActiveColor:"Active color",mousewheelZoomActionReverse:"Mouse Wheel Zoom",mousewheelZoomActionReverse1:"Zoom out forward and zoom in back",mousewheelZoomActionReverse2:"Zoom in forward and zoom out back",createNewNodeBehavior:"Behavior of creating new node",default:"Active new node and editing",notActive:"Not active new node",activeOnly:"Only active new node but not editing",rootStyle:"Root Node",associativeLineText:"Associative line text",fontFamily:"Font family",fontSize:"Font size",isShowScrollbar:"Is show scrollbar",isUseHandDrawnLikeStyle:"Is use hand drawn like style",rootLineStartPos:"Root line start pos",center:"Center",right:"Right"},color:{moreColor:"More color"},contextmenu:{insertSiblingNode:"Insert sibling node",insertChildNode:"Insert child node",insertParentNode:"Insert parent node",insertSummary:"Insert summary",moveUpNode:"Move up node",moveDownNode:"Move down node",deleteNode:"Delete node",deleteCurrentNode:"Only del cur node",copyNode:"Copy node",cutNode:"Cut node",pasteNode:"Paste node",backCenter:"Back root node",expandAll:"Expand all",unExpandAll:"Un expand all",expandTo:"Expand to",arrangeLayout:"Arrange layout",level1:"Level1",level2:"Level2",level3:"Level3",level4:"Level4",level5:"Level5",level6:"Level6",zenMode:"Zen mode",fitCanvas:"Fit canvas",removeImage:"Remove image",removeHyperlink:"Remove hyperlink",removeNote:"Remove note",removeCustomStyles:"Remove custom styles",removeAllNodeCustomStyles:"Remove all node custom styles"},count:{words:"Words",nodes:"Nodes"},dialog:{cancel:"Cancel",confirm:"Confirm"},export:{title:"Export",filename:"Filename",include:"Is include config like theme and structure",dedicatedFile:"Dedicated file",jsonFile:"json file",imageFile:"Image file",svgFile:"svg file",pdfFile:"pdf file",markdownFile:"markdown file",tips:"tips: .smm and .json file can be import",isTransparent:"Background is transparent",pngTips:"tips: Exporting pictures in rich text mode is time-consuming. It is recommended to export to svg format",svgTips:"tips: Exporting pictures in rich text mode is time-consuming",transformingDomToImages:"Converting nodes: ",notifyTitle:"Info",notifyMessage:"If the download is not triggered, check whether it is blocked by the browser",paddingX:"Padding x",paddingY:"Padding y",useMultiPageExport:"Export multi page",defaultFileName:"Mind map"},fullscreen:{fullscreenShow:"Full screen show",fullscreenEdit:"Full screen edit"},import:{title:"Import",selectFile:"Select file",supportFile:"Support .smm、.json、.xmind、.xlsx、.md file",enableFileTip:"Please select .smm、.json、.xmind、.xlsx、.md file",maxFileNum:"At most one file can be selected",notSelectTip:"Please select the file to import",fileContentError:"The file content is incorrect",importSuccess:"Import success",fileParsingFailed:"File parsing failed"},navigatorToolbar:{openMiniMap:"Open mini map",closeMiniMap:"Close mini map",readonly:"Change to eadonly",edit:"Change to edit",backToRoot:"Back to root node"},nodeHyperlink:{title:"Link",link:"Href",name:"Name"},nodeIcon:{title:"Icon"},nodeImage:{title:"Image",imgTitle:"Title"},nodeNote:{title:"Note"},nodeTag:{title:"Tag",addTip:"Press Enter to add"},outline:{title:"Outline",nodeDefaultText:"Branch node"},scale:{zoomIn:"Zoom in",zoomOut:"Zoom out"},shortcutKey:{title:"Shortcut key"},strusture:{title:"Strusture"},style:{title:"Node style",normal:"Normal",active:"Active",text:"Text",fontFamily:"Font family",fontSize:"Font size",lineHeight:"Line height",color:"color",addFontWeight:"add font weight",italic:"Italic",textDecoration:"Text decoration",underline:"Underline",none:"None",lineThrough:"Line through",overline:"Overline",border:"Border",style:"Style",width:"Width",borderRadius:"Border radius",background:"Background",shape:"Shape",line:"Line",nodePadding:"Node padding",horizontal:"Horizontal",vertical:"Vertical",gradientStyle:"Gradient",startColor:"Start",endColor:"End",arrowDir:"Arrow dir",arrowDirStart:"Start",arrowDirEnd:"End"},theme:{title:"Theme",classics:"Classics",dark:"Darkness",simple:"Simple",coverTip:"You have currently customized the basic style, do you want to overwrite it?",tip:"Tip",cover:"Cover",reserve:"Reserve"},toolbar:{undo:"Undo",redo:"Redo",insertSiblingNode:"Sibling node",insertChildNode:"Child node",deleteNode:"Delete node",image:"Image",icon:"Icon",link:"Link",note:"Note",tag:"Tag",summary:"Summary",displayOutline:"Display outline",baseStyle:"Base style",theme:"Theme",strusture:"Strusture",newFile:"New file",openFile:"Open file",saveAs:"Save as",import:"Import",export:"Export",shortcutKey:"Shortcut key",associativeLine:"Associative line",painter:"Painter",formula:"Formula",more:"More",selectFileTip:"Please select a file",notSupportTip:"Your browser does not support this feature, or the current page is not using the HTTPS protocol",tip:"Tip",editingLocalFileTipFront:"Currently editing your local【",editingLocalFileTipEnd:"】file",fileContentError:"File content error",fileOpenFailed:"File open failed",defaultFileName:"Mind map",creatingTip:"Creating file"},edit:{newFeatureNoticeTitle:"New feature reminder",newFeatureNoticeMessage:"This update supports node rich text editing, But there are some defects, The most important impact is that the time to export the image is proportional to the number of nodes, Therefore, if you are more dependent on export requirements, you can use【Base style】-【Other config】-【Enable node rich text editing】Set to turn off rich text editing mode.",root:"Root node",splitByWrap:"Is automatically split nodes based on line breaks?",tip:"Tip",yes:"Yes",no:"No"},mouseAction:{tip1:"Current: Left click to drag the canvas, right click to box select nodes",tip2:"Current: Left click to box select nodes, right click to drag the canvas"},search:{searchPlaceholder:"Please enter the search content",replacePlaceholder:"Please enter replacement content",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},nodeIconSidebar:{title:"Icon/Sticker",icon:"Icon",sticker:"Sticker"},formulaSidebar:{title:"Formula",placeholder:"Please enter LaTeX syntax",confirm:"Confirm",common:"Common formulas",tip:"Inserting formulas is not supported in non rich text mode"},richTextToolbar:{bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strike",fontFamily:"Font family",fontSize:"Font size",color:"Color",backgroundColor:"Background color",removeFormat:"Clear Style"},other:{loading:"Loading, please wait..."}},r={baseStyle:{title:"基础样式",background:"背景",color:"颜色",image:"图片",imageRepeat:"图片重复",imagePosition:"图片位置",imageSize:"图片大小",line:"连线",width:"粗细",style:"风格",lineRadius:"圆角大小",lineOfOutline:"概要的连线",showArrow:"是否显示箭头",nodePadding:"节点内边距",nodeMargin:"节点外边距",horizontal:"水平",vertical:"垂直",maximumWidth:"显示的最大宽度",maximumHeight:"显示的最大高度",icon:"图标",size:"大小",level2Node:"二级节点",belowLevel2Node:"三级及以下节点",nodeBorderType:"节点边框风格",nodeUseLineStyle:"是否使用只有底边框的风格",otherConfig:"其他配置",enableFreeDrag:"是否开启节点自由拖拽",watermark:"水印",showWatermark:"是否显示水印",watermarkDefaultText:"水印文字",onlyExport:"是否仅在导出时显示",watermarkText:"水印文字",watermarkTextColor:"文字颜色",watermarkLineSpacing:"水印行间距",watermarkTextSpacing:"水印文字间距",watermarkAngle:"旋转角度",watermarkTextOpacity:"文字透明度",watermarkTextFontSize:"文字字号",isEnableNodeRichText:"是否开启节点富文本编辑",mousewheelAction:"鼠标滚轮行为",zoomView:"缩放视图",moveViewUpDown:"上下移动视图",associativeLine:"关联线",associativeLineWidth:"粗细",associativeLineColor:"颜色",associativeLineActiveWidth:"激活粗细",associativeLineActiveColor:"激活颜色",mousewheelZoomActionReverse:"鼠标滚轮缩放",mousewheelZoomActionReverse1:"向前缩小向后放大",mousewheelZoomActionReverse2:"向前放大向后缩小",createNewNodeBehavior:"创建新节点的行为",default:"激活新节点及进入编辑",notActive:"不激活新节点",activeOnly:"只激活新节点,不进入编辑",rootStyle:"根节点",associativeLineText:"关联线文字",fontFamily:"字体",fontSize:"字号",isShowScrollbar:"是否显示滚动条",isUseHandDrawnLikeStyle:"是否开启手绘风格",rootLineStartPos:"根节点连线起始位置",center:"中心",right:"右侧"},color:{moreColor:"更多颜色"},contextmenu:{insertSiblingNode:"插入同级节点",insertChildNode:"插入子级节点",insertParentNode:"插入父节点",insertSummary:"插入概要",moveUpNode:"上移节点",moveDownNode:"下移节点",deleteNode:"删除节点",deleteCurrentNode:"仅删除当前节点",copyNode:"复制节点",cutNode:"剪切节点",pasteNode:"粘贴节点",backCenter:"回到根节点",expandAll:"展开所有",unExpandAll:"收起所有",expandTo:"展开到",arrangeLayout:"一键整理布局",level1:"一级主题",level2:"二级主题",level3:"三级主题",level4:"四级主题",level5:"五级主题",level6:"六级主题",zenMode:"禅模式",fitCanvas:"适应画布",removeImage:"移除图片",removeHyperlink:"移除超链接",removeNote:"移除备注",removeCustomStyles:"一键去除自定义样式",removeAllNodeCustomStyles:"一键去除所有节点自定义样式"},count:{words:"字数",nodes:"节点"},dialog:{cancel:"取 消",confirm:"确 定"},export:{title:"导出",filename:"导出文件名称",include:"是否包含主题、结构等配置数据",dedicatedFile:"专有文件",jsonFile:"json文件",imageFile:"图片文件",svgFile:"svg文件",pdfFile:"pdf文件",markdownFile:"markdown文件",tips:"tips:.smm和.json文件可用于导入",isTransparent:"背景是否透明",pngTips:"tips:富文本模式导出图片非常耗时,建议导出为svg格式",svgTips:"tips:富文本模式导出图片非常耗时",transformingDomToImages:"正在转换节点:",notifyTitle:"消息",notifyMessage:"如果没有触发下载,请检查是否被浏览器拦截了",paddingX:"水平内边距",paddingY:"垂直内边距",useMultiPageExport:"是否多页导出",defaultFileName:"思维导图"},fullscreen:{fullscreenShow:"全屏查看",fullscreenEdit:"全屏编辑"},import:{title:"导入",selectFile:"选取文件",supportFile:"支持.smm、.json、.xmind、.xlsx、.md文件",enableFileTip:"请选择.smm、.json、.xmind、.xlsx、.md文件",maxFileNum:"最多只能选择一个文件",notSelectTip:"请选择要导入的文件",fileContentError:"文件内容有误",importSuccess:"导入成功",fileParsingFailed:"文件解析失败"},navigatorToolbar:{openMiniMap:"开启小地图",closeMiniMap:"关闭小地图",readonly:"切换为只读模式",edit:"切换为编辑模式",backToRoot:"回到根节点"},nodeHyperlink:{title:"超链接",link:"链接",name:"名称"},nodeIcon:{title:"图标"},nodeImage:{title:"图片",imgTitle:"图片标题"},nodeNote:{title:"备注"},nodeTag:{title:"标签",addTip:"请按回车键添加"},outline:{title:"大纲",nodeDefaultText:"分支节点"},scale:{zoomIn:"放大",zoomOut:"缩小"},shortcutKey:{title:"快捷键"},strusture:{title:"结构"},style:{title:"节点样式",normal:"常态",active:"选中状态",text:"文字",fontFamily:"字体",fontSize:"字号",lineHeight:"行高",color:"颜色",addFontWeight:"加粗",italic:"斜体",textDecoration:"划线",none:"无",underline:"下划线",lineThrough:"中划线",overline:"上划线",border:"边框",style:"样式",width:"宽度",borderRadius:"圆角",background:"背景",shape:"形状",line:"线条",nodePadding:"节点内边距",horizontal:"水平",vertical:"垂直",gradientStyle:"渐变",startColor:"起始",endColor:"结束",arrowDir:"箭头位置",arrowDirStart:"头部",arrowDirEnd:"尾部"},theme:{title:"主题",classics:"经典",dark:"深色",simple:"朴素",coverTip:"你当前自定义过基础样式,是否覆盖?",tip:"提示",cover:"覆盖",reserve:"保留"},toolbar:{undo:"回退",redo:"前进",insertSiblingNode:"同级节点",insertChildNode:"子节点",deleteNode:"删除节点",image:"图片",icon:"图标",link:"超链接",note:"备注",tag:"标签",summary:"概要",displayOutline:"显示大纲",baseStyle:"基础样式",theme:"主题",strusture:"结构",newFile:"新建",openFile:"打开",saveAs:"另存为",import:"导入",export:"导出",shortcutKey:"快捷键",associativeLine:"关联线",painter:"格式刷",formula:"公式",more:"更多",selectFileTip:"请选择文件",notSupportTip:"你的浏览器不支持该功能,或者当前页面非https协议",tip:"提示",editingLocalFileTipFront:"当前正在编辑你本机的【",editingLocalFileTipEnd:"】文件",fileContentError:"文件内容有误",fileOpenFailed:"文件打开失败",defaultFileName:"思维导图",creatingTip:"正在创建文件"},edit:{newFeatureNoticeTitle:"新特性提醒",newFeatureNoticeMessage:"本次更新支持了节点富文本编辑,但是存在一定缺陷,最主要的影响是导出为图片的时间和节点数量成正比,所以对导出需求比较依赖的话可以通过【基础样式】-【其他配置】-【是否开启节点富文本编辑】设置关掉富文本编辑模式。",root:"根节点",splitByWrap:"是否按换行自动分割节点?",tip:"提示",yes:"是",no:"否"},mouseAction:{tip1:"当前:左键拖动画布,右键框选节点",tip2:"当前:左键框选节点,右键拖动画布"},search:{searchPlaceholder:"请输入查找内容",replacePlaceholder:"请输入替换内容",replace:"替换",replaceAll:"全部替换",cancel:"取消"},nodeIconSidebar:{title:"图标/贴纸",icon:"图标",sticker:"贴纸"},formulaSidebar:{title:"公式",placeholder:"请输入 LaTeX 语法",confirm:"完成",common:"常用公式",tip:"非富文本模式下不支持插入公式"},richTextToolbar:{bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",fontFamily:"字体",fontSize:"字号",color:"字体颜色",backgroundColor:"背景颜色",removeFormat:"清除样式"},other:{loading:"正在加载,请稍后..."}},l={zh:r,en:a};i["default"].use(o["a"]);const c=new o["a"]({messages:l});t["a"]=c},"9b79":function(e,t,n){},"9c65":function(e,t,n){},a7a6:function(e,t,n){},b1db:function(e,t,n){},b834:function(e,t,n){var i={"./en/associativeLine/index.vue":["708b","chunk-2d0d5cb9"],"./en/batchExecution/index.vue":["ed72","chunk-2d2308b0"],"./en/changelog/index.vue":["a6d3","chunk-2d208ffa"],"./en/client/index.vue":["0247","chunk-2d0a34fb"],"./en/command/index.vue":["9381","chunk-2d0e5089"],"./en/constructor/index.vue":["6a50","chunk-2d0d9fbc"],"./en/cooperate/index.vue":["f2be","chunk-2d22c6c5"],"./en/deploy/index.vue":["b1a3","chunk-2d20f137"],"./en/doExport/index.vue":["c6ec","chunk-2d217907"],"./en/drag/index.vue":["ff2d","chunk-2d238428"],"./en/formula/index.vue":["dec3","chunk-2d229d67"],"./en/handDrawnLikeStyle/index.vue":["d763","chunk-9d289278"],"./en/introduction/index.vue":["7f29","chunk-02258ed0"],"./en/keyCommand/index.vue":["2f7a","chunk-2d0be174"],"./en/keyboardNavigation/index.vue":["328f","chunk-2d0b92c3"],"./en/markdown/index.vue":["8102","chunk-2d0dd3b1"],"./en/miniMap/index.vue":["b98e","chunk-2d210a7a"],"./en/node/index.vue":["c133","chunk-2d216004"],"./en/nodeImgAdjust/index.vue":["48a3","chunk-2d0c226c"],"./en/painter/index.vue":["76a5","chunk-2d0d7809"],"./en/render/index.vue":["8e32","chunk-2d0e9742"],"./en/richText/index.vue":["4947","chunk-2d0c20be"],"./en/scrollbar/index.vue":["a950","chunk-2d209589"],"./en/search/index.vue":["bf42","chunk-2d21b2b8"],"./en/select/index.vue":["ddd1","chunk-2d2299c3"],"./en/start/index.vue":["b407","chunk-2d20f68f"],"./en/textEdit/index.vue":["9d03","chunk-2d0f0784"],"./en/touchEvent/index.vue":["a1cd","chunk-2d207d47"],"./en/translate/index.vue":["479a","chunk-2d0c1a01"],"./en/utils/index.vue":["144f","chunk-2d0ab10b"],"./en/view/index.vue":["16c7","chunk-2d0abe0f"],"./en/watermark/index.vue":["27ad","chunk-2d0b361e"],"./en/xmind/index.vue":["f127","chunk-2d22bd06"],"./zh/associativeLine/index.vue":["20fa","chunk-2d0b1c6f"],"./zh/batchExecution/index.vue":["e9ee","chunk-2d226d0a"],"./zh/changelog/index.vue":["9ac1","chunk-2d0f026c"],"./zh/client/index.vue":["92da","chunk-2d0e524c"],"./zh/command/index.vue":["6df4","chunk-2d0db0f2"],"./zh/constructor/index.vue":["6cfb","chunk-2d0dad5f"],"./zh/cooperate/index.vue":["a1ae","chunk-2d207d0a"],"./zh/course1/index.vue":["8e98","chunk-2d0e9802"],"./zh/course10/index.vue":["3f2a","chunk-2d0c5538"],"./zh/course11/index.vue":["33b0","chunk-2d0b9b64"],"./zh/course12/index.vue":["eb27","chunk-2d230098"],"./zh/course13/index.vue":["c1ec","chunk-2d216642"],"./zh/course14/index.vue":["e487","chunk-2d2254a4"],"./zh/course15/index.vue":["fb9a","chunk-2d2375fa"],"./zh/course16/index.vue":["18dc","chunk-2d0ac5dc"],"./zh/course17/index.vue":["4323","chunk-2d0c09f6"],"./zh/course18/index.vue":["91b3","chunk-2d0e4e1f"],"./zh/course19/index.vue":["ae22","chunk-77915045"],"./zh/course2/index.vue":["c187","chunk-2d2160a3"],"./zh/course20/index.vue":["158d","chunk-2d0ab546"],"./zh/course21/index.vue":["e410","chunk-2d2253c4"],"./zh/course22/index.vue":["d013","chunk-2d21d064"],"./zh/course23/index.vue":["a0a8","chunk-2d20791c"],"./zh/course24/index.vue":["2ad8","chunk-2d0bd3f9"],"./zh/course25/index.vue":["e6dd","chunk-2d2261a7"],"./zh/course3/index.vue":["0fcd","chunk-2d0afe0d"],"./zh/course4/index.vue":["32a6","chunk-2d0b978a"],"./zh/course5/index.vue":["3c76","chunk-2d0c4a65"],"./zh/course6/index.vue":["8e25","chunk-2d0e9726"],"./zh/course7/index.vue":["c13f","chunk-2d216037"],"./zh/course8/index.vue":["cc99","chunk-2d221c76"],"./zh/course9/index.vue":["b69b","chunk-2d20ff53"],"./zh/deploy/index.vue":["71bb","chunk-2d0d6590"],"./zh/doExport/index.vue":["1256","chunk-2d0aa978"],"./zh/drag/index.vue":["4604","chunk-2d0c14fc"],"./zh/formula/index.vue":["d53e","chunk-2d21e399"],"./zh/handDrawnLikeStyle/index.vue":["d2d5","chunk-1c3bec15"],"./zh/help1/index.vue":["05ec","chunk-2d0a4659"],"./zh/help2/index.vue":["83fa","chunk-2d0de1ec"],"./zh/help3/index.vue":["3de7","chunk-2d0c53b9"],"./zh/help4/index.vue":["f08f","chunk-2d22ba2e"],"./zh/help5/index.vue":["2c65","chunk-2d0bd5e6"],"./zh/introduction/index.vue":["4710","chunk-792bedf8"],"./zh/keyCommand/index.vue":["a43c","chunk-2d2082b9"],"./zh/keyboardNavigation/index.vue":["2c18","chunk-2d0bd54e"],"./zh/markdown/index.vue":["08d0","chunk-2d0a514a"],"./zh/miniMap/index.vue":["0168","chunk-2d0a3179"],"./zh/node/index.vue":["433b","chunk-2d0c0a44"],"./zh/nodeImgAdjust/index.vue":["1f8f","chunk-2d0b6d39"],"./zh/painter/index.vue":["5b22","chunk-2d0d2ec3"],"./zh/render/index.vue":["6c31","chunk-2d0da701"],"./zh/richText/index.vue":["35c4","chunk-2d0ba309"],"./zh/scrollbar/index.vue":["3def","chunk-2d0c53e8"],"./zh/search/index.vue":["0503","chunk-2d0a3fbe"],"./zh/select/index.vue":["321a","chunk-2d0b91e5"],"./zh/start/index.vue":["7e57","chunk-2d0e2326"],"./zh/textEdit/index.vue":["c576","chunk-2d216f87"],"./zh/touchEvent/index.vue":["e021","chunk-2d2244e0"],"./zh/translate/index.vue":["1136","chunk-2d0aa579"],"./zh/utils/index.vue":["4738","chunk-2d0c191e"],"./zh/view/index.vue":["82ca","chunk-2d0dddce"],"./zh/watermark/index.vue":["848a","chunk-2d0de01b"],"./zh/xmind/index.vue":["8427","chunk-2d0ddf37"]};function o(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],o=t[0];return n.e(t[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(i)},o.id="b834",e.exports=o},c0d6:function(e,t,n){"use strict";var i=n("2b0e"),o=n("2f62"),a=n("5848"),r=n("365c");i["default"].use(o["a"]);const l=new o["a"].Store({state:{mindMapData:null,isHandleLocalFile:!1,localConfig:{isZenMode:!1,openNodeRichText:!0,useLeftKeySelectionRightKeyDrag:!1,isShowScrollbar:!1,isUseHandDrawnLikeStyle:!1},activeSidebar:"",isDark:!1,isOutlineEdit:!1,isReadonly:!1},mutations:{setMindMapData(e,t){e.mindMapData=t},setIsHandleLocalFile(e,t){e.isHandleLocalFile=t},setLocalConfig(e,t){e.localConfig={...e.localConfig,...t},Object(r["g"])(e.localConfig)},setActiveSidebar(e,t){e.activeSidebar=t},setIsDark(e,t){e.isDark=t},setIsOutlineEdit(e,t){e.isOutlineEdit=t},setIsReadonly(e,t){e.isReadonly=t}},actions:{getUserMindMapData(e){try{let{data:t}={data:{data:{mindMapData:a["a"]}}};e.commit("setMindMapData",t.data)}catch(t){console.log(t)}}}});t["a"]=l},c360:function(e,t,n){"use strict";n("b1db")},c639:function(e,t,n){"use strict";n("9b79")}}); \ No newline at end of file diff --git a/dist/js/chunk-2d0d9fbc.js b/dist/js/chunk-2d0d9fbc.js index f83f4867..a05f8a2f 100644 --- a/dist/js/chunk-2d0d9fbc.js +++ b/dist/js/chunk-2d0d9fbc.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d9fbc"],{"6a50":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this;e._self._c;return e._m(0)},o=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Constructor")]),t("h2",[e._v("Basic use")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-tag"},[e._v("<"),t("span",{staticClass:"hljs-name"},[e._v("div")]),e._v(" "),t("span",{staticClass:"hljs-attr"},[e._v("id")]),e._v("="),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v(">")]),t("span",{staticClass:"hljs-tag"},[e._v("")]),e._v("\n")])]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v('"simple-mind-map"')]),e._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("el")]),e._v(": "),t("span",{staticClass:"hljs-built_in"},[e._v("document")]),e._v(".getElementById("),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v("),\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"data"')]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"text"')]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v('"Root Node"')]),e._v("\n },\n "),t("span",{staticClass:"hljs-string"},[e._v('"children"')]),e._v(": []\n }\n});\n")])]),t("h2",[e._v("Instantiation options")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")]),t("th",[e._v("Required")])])]),t("tbody",[t("tr",[t("td",[e._v("el")]),t("td",[e._v("Element")]),t("td"),t("td",[e._v("Container element, must be a DOM element")]),t("td",[e._v("Yes")])]),t("tr",[t("td",[e._v("data")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Mind map data, Please refer to the introduction of 【Data structure】 below")]),t("td")]),t("tr",[t("td",[e._v("layout")]),t("td",[e._v("String")]),t("td",[e._v("logicalStructure")]),t("td",[e._v("Layout type, options: logicalStructure (logical structure diagram), mindMap (mind map), catalogOrganization (catalog organization diagram), organizationStructure (organization structure diagram)、timeline(v0.5.4+, timeline)、timeline2(v0.5.4+, up down alternating timeline)、fishbone(v0.5.4+, fishbone diagram)")]),t("td")]),t("tr",[t("td",[e._v("fishboneDeg(v0.5.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("45")]),t("td",[e._v("Set the diagonal angle of the fishbone structure diagram")]),t("td")]),t("tr",[t("td",[e._v("theme")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Theme, options: default, classic, minions, pinkGrape, mint, gold, vitalityOrange, greenLeaf, dark2, skyGreen, classic2, classic3, classic4(v0.2.0+), classicGreen, classicBlue, blueSky, brainImpairedPink, dark, earthYellow, freshGreen, freshRed, romanticPurple, simpleBlack(v0.5.4+), courseGreen(v0.5.4+), coffee(v0.5.4+), redSpirit(v0.5.4+), blackHumour(v0.5.4+), lateNightOffice(v0.5.4+), blackGold(v0.5.4+)、、avocado(v.5.10-fix.2+)、autumn(v.5.10-fix.2+)、orangeJuice(v.5.10-fix.2+)")]),t("td")]),t("tr",[t("td",[e._v("themeConfig")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Theme configuration, will be merged with the selected theme, available fields refer to: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("default.js")])]),t("td")]),t("tr",[t("td",[e._v("scaleRatio")]),t("td",[e._v("Number")]),t("td",[e._v("0.1")]),t("td",[e._v("The incremental scaling ratio")]),t("td")]),t("tr",[t("td",[e._v("maxTag")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The maximum number of tags displayed in the node, any additional tags will be discarded")]),t("td")]),t("tr",[t("td",[e._v("exportPadding")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The padding for exporting images")]),t("td")]),t("tr",[t("td",[e._v("imgTextMargin")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The spacing between the image and text in the node")]),t("td")]),t("tr",[t("td",[e._v("textContentMargin")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The spacing between various text information in the node, such as the spacing between the icon and text")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateStep")]),t("td",[e._v("Number")]),t("td",[e._v("3")]),t("td",[e._v("The canvas offset when mouse moves to the edge during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateLimit")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The distance from the edge when the canvas begins to offset during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("customNoteContentShow(v0.1.6+)")]),t("td",[e._v("Object")]),t("td",[e._v("null")]),t("td",[e._v("Custom node note content display, object type, structure: {show: (noteContent, left, top, node) => {// your display node note logic. node is a new parameter added in v0.8.1+ version, representing node instances }, hide: () => {// your hide node note logic }}")]),t("td")]),t("tr",[t("td",[e._v("readonly(v0.1.7+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether it is read-only mode")]),t("td")]),t("tr",[t("td",[e._v("enableFreeDrag(v0.2.4+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Enable node free(Free drag means that nodes can be dragged to any position on the canvas. Please note that it is not a function of dragging nodes to become siblings of other nodes. The connection of free drag may have certain problems, so it is best not to use this feature) drag")]),t("td")]),t("tr",[t("td",[e._v("watermarkConfig(v0.2.4+)")]),t("td",[e._v("Object")]),t("td"),t("td",[e._v("Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration")]),t("td")]),t("tr",[t("td",[e._v("textAutoWrapWidth(v0.3.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("500")]),t("td",[e._v("Each line of text in the node will wrap automatically when it reaches the width")]),t("td")]),t("tr",[t("td",[e._v("customHandleMousewheel(v0.4.3+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object")]),t("td")]),t("tr",[t("td",[e._v("mousewheelAction(v0.4.3+)")]),t("td",[e._v("String")]),t("td",[e._v("zoom(v0.9.1+ default is move)")]),t("td",[e._v("The behavior of the mouse wheel, "),t("code",[e._v("zoom")]),e._v("(Zoom in and out)、"),t("code",[e._v("move")]),e._v("(Move up and down). If "),t("code",[e._v("customHandleMousewheel")]),e._v(" passes a custom function, this property will not take effect")]),t("td")]),t("tr",[t("td",[e._v("mousewheelMoveStep(v0.4.3+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("When the "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("move")]),e._v(", you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is "),t("code",[e._v("px")])]),t("td")]),t("tr",[t("td",[e._v("mousewheelZoomActionReverse(v0.6.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false(v0.9.1+ default is true)")]),t("td",[e._v("When "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("zoom")]),e._v(", Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("二级节点")]),t("td",[e._v("Text of the default inserted secondary node")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("分支主题")]),t("td",[e._v("Text for nodes below the second level inserted by default")]),t("td")]),t("tr",[t("td",[e._v("expandBtnStyle(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),t("td",[e._v("Expand the color of the stow button, (The fontSize and strokeColor fields were added in version 0.7.0+to set the text style for displaying the number of nodes when folded)")]),t("td")]),t("tr",[t("td",[e._v("expandBtnIcon(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ open: '', close: '' }")]),t("td",[e._v("Customize the icon of the expand/collapse button, and you can transfer the svg string of the icon")]),t("td")]),t("tr",[t("td",[e._v("expandBtnNumHandler(v0.7.0+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Used to customize the content of displaying the number of nodes when folding, receiving a parameter that represents the instance of the folding node, and returning a number or string that represents the final displayed content. For example, when the number is greater than 99, 99 can be displayed+")]),t("td")]),t("tr",[t("td",[e._v("isShowExpandNum(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Display the number of folded nodes when they are folded up")]),t("td")]),t("tr",[t("td",[e._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Only respond to shortcut key events when the mouse is inside the canvas")]),t("td")]),t("tr",[t("td",[e._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable node animation transition")]),t("td")]),t("tr",[t("td",[e._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Number")]),t("td",[e._v("300")]),t("td",[e._v("If node animation transition is enabled, the transition time can be set using this attribute, in milliseconds")]),t("td")]),t("tr",[t("td",[e._v("initRootNodePosition(v0.5.3+)")]),t("td",[e._v("Array")]),t("td",[e._v("null")]),t("td",[e._v("The position of the initial root node can be passed as an array, default is "),t("code",[e._v("['center', 'center']")]),e._v(", Represents the root node at the center of the canvas, In addition to "),t("code",[e._v("center")]),e._v(", keywords can also be set to "),t("code",[e._v("left")]),e._v(", "),t("code",[e._v("top")]),e._v(", "),t("code",[e._v("right")]),e._v(", and "),t("code",[e._v("bottom")]),e._v(", In addition to passing keywords, each item in the array can also pass a number representing a specific pixel, Can pass a percentage string, such as "),t("code",[e._v("['40%', '60%']")]),e._v(", Represents a horizontal position at "),t("code",[e._v("40%")]),e._v(" of the canvas width, and a vertical position at "),t("code",[e._v("60%")]),e._v(" of the canvas height")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingX(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Horizontal padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingY(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Vertical padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("nodeTextEditZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td"),t("td",[e._v("z-index of node text edit box elements")])]),t("tr",[t("td",[e._v("nodeNoteTooltipZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td",[e._v("z-index of floating layer elements in node comments")]),t("td")]),t("tr",[t("td",[e._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to end the editing status of node text when clicking on an area outside the canvas")]),t("td")]),t("tr",[t("td",[e._v("maxHistoryCount(v0.5.6+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000(v0.9.2+ changed 500)")]),t("td"),t("td",[e._v("Maximum number of history records")])]),t("tr",[t("td",[e._v("alwaysShowExpandBtn(v0.5.8+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to always display the expand and collapse buttons of nodes, which are only displayed when the mouse is moved up and activated by default")]),t("td")]),t("tr",[t("td",[e._v("iconList(v0.5.8+)")]),t("td",[e._v("Array")]),t("td",[e._v("[]")]),t("td",[e._v('The icons that can be inserted into the extension node, and each item in the array is an object. Please refer to the "Icon Configuration" table below for the detailed structure of the object')]),t("td")]),t("tr",[t("td",[e._v("maxNodeCacheCount(v0.5.10+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td",[e._v("The maximum number of cached nodes. To optimize performance, an internal node cache pool is maintained to reuse nodes. This attribute allows you to specify the maximum number of caches in the pool")]),t("td")]),t("tr",[t("td",[e._v("defaultAssociativeLineText(v0.5.11+)")]),t("td",[e._v("String")]),t("td",[e._v("关联")]),t("td",[e._v("Association Line Default Text")]),t("td")]),t("tr",[t("td",[e._v("fitPadding(v0.6.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("50")]),t("td",[e._v("The padding of mind mapping when adapting to canvas size, Unit: px")]),t("td")]),t("tr",[t("td",[e._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable the function of holding down the Ctrl key to select multiple nodes")]),t("td")]),t("tr",[t("td",[e._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Setting to left click to select multiple nodes and right click to drag the canvas.")]),t("td")]),t("tr",[t("td",[e._v("beforeTextEdit(v0.6.0+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("The callback method before the node is about to enter editing. If the method returns a value other than true, the editing will be canceled. The function can return a value or a promise, and the callback parameter is the node instance")]),t("td")]),t("tr",[t("td",[e._v("isUseCustomNodeContent(v0.6.3+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to customize node content")]),t("td")]),t("tr",[t("td",[e._v("customCreateNodeContent(v0.6.3+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("If "),t("code",[e._v("isUseCustomNodeContent")]),e._v(" is set to "),t("code",[e._v("true")]),e._v(", then this option needs to be used to pass in a method that receives the node instance "),t("code",[e._v("node")]),e._v(" as a parameter (if you want to obtain data for that node, you can use "),t("code",[e._v("node.nodeData.data")]),e._v("). You need to return the custom node content element, which is the DOM node. If a node does not require customization, you can return "),t("code",[e._v("null")])]),t("td")]),t("tr",[t("td",[e._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the mouse zoom centered around the current position of the mouse, otherwise centered around the canvas")]),t("td")]),t("tr",[t("td",[e._v("customInnerElsAppendTo(v0.6.12+)")]),t("td",[e._v("null/HTMLElement")]),t("td",[e._v("null")]),t("td",[e._v("Specify the location where some internal elements (node text editing element, node note display element, associated line text editing element, node image adjustment button element) are added, and default to document.body")]),t("td")]),t("tr",[t("td",[e._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("When dragging an element, the maximum height of the block indicating the new position of the element")]),t("td")]),t("tr",[t("td",[e._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+ remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is it allowed to create a hidden input box that will be focused when the node is activated for pasting data and automatically entering the text editing state")]),t("td")]),t("tr",[t("td",[e._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Does it automatically enter text editing mode when pressing the Chinese, English, or numeric buttons when there is an activation node?")]),t("td")]),t("tr",[t("td",[e._v("richTextEditFakeInPlace(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Set the rich text node edit box to match the size of the node, creating a pseudo in place editing effect. It should be noted that only when there is only text within the node and the shape is rectangular, can the effect be better")]),t("td")]),t("tr",[t("td",[e._v("customHandleClipboardText(v0.6.14+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("Customize the processing of clipboard text. When pressing ctrl+v to paste, it will read the text and images from the user's clipboard. By default, it will only determine whether the text is regular text and node data in simple mind map format. If you want to process data from other mind maps, such as process, zhixi, etc., you can pass a function that takes the text from the current clipboard as a parameter and returns the processed data, which can be of two types: 1.If a pure text is returned, a child node will be directly created with that text; 2.Returns a node object in the following format: { simpleMindMap: true, data: { data: { text: '' }, children: [] } }, The representative is data in simple bind map format, and the node data is in the same format as the simple bind map node data. If your processing logic has asynchronous logic, you can also return a promise")]),t("td")]),t("tr",[t("td",[e._v("errorHandler(v0.6.15+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Custom error handling functions currently only throw some asynchronous logic errors. Can pass a function that takes two parameters, the first being the wrong type and the second being the wrong object")]),t("td")]),t("tr",[t("td",[e._v("disableMouseWheelZoom(v0.6.15+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit mouse wheel scaling, you can still use the API for scaling")]),t("td")]),t("tr",[t("td",[e._v("resetCss(v0.6.16+)")]),t("td",[e._v("String")]),t("td",[e._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),t("td",[e._v("When exporting images and SVGs, the default style overlay for rich text node content, which is embedded in HTML nodes in SVGs, will occur. If not overlaid, the node content will be offset")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickReset(v0.6.17+)(v0.8.0+this attribute has been deleted)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true(v0.7.0+changed to false)")]),t("td",[e._v("Turn on the mouse and double-click to reset the position and zoom of the mind map")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickBackToRootNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to return to the root node when double clicking with the mouse, that is, to center the display of the root node")]),t("td")]),t("tr",[t("td",[e._v("minExportImgCanvasScale(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The scaling factor of canvas when exporting images and PDFs, which is set to the maximum value of window.devicePixelRatio to improve image clarity")]),t("td")]),t("tr",[t("td",[e._v("hoverRectColor(v0.7.0+)")]),t("td",[e._v("String")]),t("td",[e._v("rgb(94, 200, 248)")]),t("td",[e._v("The node mouse hover and the rectangular border color displayed when activated will add a transparency of 0.6 when hovering")]),t("td")]),t("tr",[t("td",[e._v("hoverRectPadding(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The distance between the node mouse hover and the displayed rectangular border when activated and the node content")]),t("td")]),t("tr",[t("td",[e._v("selectTextOnEnterEditText(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the text selected by default when double-clicking a node to enter node text editing? By default, it will only be selected when creating a new node")]),t("td")]),t("tr",[t("td",[e._v("deleteNodeActive(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Enable the function of automatically activating adjacent nodes or parent nodes after deleting nodes")]),t("td")]),t("tr",[t("td",[e._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable automatic canvas movement when the mouse moves to the edge of the canvas while dragging nodes")]),t("td")]),t("tr",[t("td",[e._v("fit(v0.7.1-fix.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is the first rendering scaled to fit the canvas size")]),t("td")]),t("tr",[t("td",[e._v("dragMultiNodeRectConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ width: 40, height: 20, fill: '' }")]),t("td",[e._v("The style configuration of the schematic rectangle that moves with the mouse when dragging multiple nodes, passing an object, and the field meanings are the width, height, and fill color of the rectangle")]),t("td")]),t("tr",[t("td",[e._v("dragPlaceholderRectFill(v0.7.2+)")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The filling color of the schematic rectangle for the new position when dragging nodes. If not transmitted, the default color for the connected line is used")]),t("td")]),t("tr",[t("td",[e._v("dragOpacityConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),t("td",[e._v("The transparency configuration during node dragging, passing an object, and the field meanings are: the transparency of the cloned node or rectangle that follows the mouse movement, and the transparency of the dragged node")]),t("td")]),t("tr",[t("td",[e._v("tagsColorMap(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("The color of a custom node label can be transferred to an object, where key is the label content to be assigned a color, and value is the color of the label content. If not transferred internally, a corresponding color will be generated based on the label content")]),t("td")]),t("tr",[t("td",[e._v("cooperateStyle(v0.7.3+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ avatarSize: 22, fontSize: 12 }")]),t("td",[e._v("The configuration of personnel avatar style during node collaboration editing, with field meanings as follows: avatar size, and if it is a text avatar, the size of the text")]),t("td")]),t("tr",[t("td",[e._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the associated line always displayed above the node? If set to false, it will be at the top level when creating and activating the associated line, and in other cases, it will be below the node")]),t("td")]),t("tr",[t("td",[e._v("defaultGeneralizationText(v0.8.0+)")]),t("td",[e._v("String")]),t("td",[e._v("概要")]),t("td",[e._v("Insert default text for summary")]),t("td")]),t("tr",[t("td",[e._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),t("td",[e._v("Function / null")]),t("td",[e._v("null")]),t("td",[e._v("When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks")]),t("td")]),t("tr",[t("td",[e._v("addHistoryTime(v0.8.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms")]),t("td")]),t("tr",[t("td",[e._v("isDisableDrag(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is disable dragging the canvas")]),t("td")]),t("tr",[t("td",[e._v("disableTouchZoom(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin")]),t("td")]),t("tr",[t("td",[e._v("highlightNodeBoxStyle(v0.9.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),t("td",[e._v("Highlight box style when the mouse moves into the summary to highlight the node it belongs to")]),t("td")]),t("tr",[t("td",[e._v("createNewNodeBehavior(v0.9.1+)")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode)")]),t("td")]),t("tr",[t("td",[e._v("defaultNodeImage(v0.9.1-fix.2+)")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Image address, the default image displayed when node image loading fails")]),t("td")]),t("tr",[t("td",[e._v("handleNodePasteImg(v0.9.2+)")]),t("td",[e._v("null or Function")]),t("td",[e._v("null")]),t("td",[e._v("The processing method for pasting images from the clipboard on a node is to convert them into data:URL data and insert them into the node by default. You can use this method to upload image data to the server and save the URL of the image. An asynchronous method can be passed to receive image data of Blob type, and the specified structure needs to be returned: { url, size: {width, height} }")]),t("td")]),t("tr",[t("td",[e._v("isLimitMindMapInCanvas(v0.9.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to limit the mind map within the canvas. For example, when dragging to the right, the leftmost part of the mind map graphic will not be able to continue dragging to the right when it reaches the center of the canvas, and the same applies to other things")]),t("td")]),t("tr",[t("td",[e._v("isLimitMindMapInCanvasWhenHasScrollbar(v0.9.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("When registering the Scrollbar plugin, will the mind map be limited to the canvas and the isLimitMindMapInCanvas configuration no longer work")]),t("td")]),t("tr",[t("td",[e._v("associativeLineInitPointsPosition(v0.9.5+)")]),t("td",[e._v("null / { from, to }")]),t("td",[e._v("{ from: '', to: '' }")]),t("td",[e._v("By default, the position of the two endpoints of a newly created association line is calculated based on the relative position of the center points of the two nodes. If you want to fix the position, you can configure it through this option. If neither from nor to is transmitted, they will be automatically calculated. If only one is transmitted, the other will be automatically calculated. from and to optional values")]),t("td")]),t("tr",[t("td",[e._v(":left、top、bottom、right")]),t("td"),t("td"),t("td"),t("td")]),t("tr",[t("td",[e._v("enableAdjustAssociativeLinePoints(v0.9.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is it allowed to adjust the position of the two endpoints of the associated line")]),t("td")])])]),t("h3",[e._v("Data structure")]),t("p",[e._v("The basic data structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The text of the node can be rich text, which is in HTML format. In this case, richText should be set to true")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("richText")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Is the text of the node in rich text mode")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("expand")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Whether the node is expanded")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("uid")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// The unique ID of the node, which may not be passed, will be generated internally")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("icon")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v('// The format of the icon can be found in the "插入和扩展节点图标" section of the tutorial')]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("image")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// URL of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The title of the image can be blank")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageSize")]),e._v(": { "),t("span",{staticClass:"hljs-comment"},[e._v("// The size of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("width")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The width of the image, mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("height")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The height of the image is mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("custom")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(" "),t("span",{staticClass:"hljs-comment"},[e._v("// If set to true, the display size of the image is not controlled by the theme, and is based on imageSize.width and imageSize.height")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlink")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Hyperlink address")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlinkTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Title of hyperlink")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("note")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Content of remarks")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("tag")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v("// Tag list")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("generalization")]),e._v(": {"),t("span",{staticClass:"hljs-comment"},[e._v("// The summary of the node, if there is no summary, the generalization can be set to null")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),t("span",{staticClass:"hljs-comment"},[e._v("// Summary Text")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineTargets")]),e._v(": ["),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v("],"),t("span",{staticClass:"hljs-comment"},[e._v("// If there are associated lines, then it is the uid list of the target node")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineText")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// Association Line Text")]),e._v("\n "),t("span",{staticClass:"hljs-comment"},[e._v("// ...For other style fields, please refer to the topic")]),e._v("\n },\n children ["),t("span",{staticClass:"hljs-comment"},[e._v("// Child nodes, with consistent structure and root nodes")]),e._v("\n {\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {},\n "),t("span",{staticClass:"hljs-attr"},[e._v("children")]),e._v(": []\n }\n ]\n}\n")])]),t("p",[e._v("If you want to add custom fields, you can add them to the same level as 'data' and 'children'. If you want to add them to the 'data' object, please use the "),t("code",[e._v("_")]),e._v(" Name your custom field at the beginning, and it will be used internally to determine whether it is a custom field.")]),t("h3",[e._v("Watermark config")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("text")]),t("td",[e._v("String")]),t("td",[e._v("''")]),t("td",[e._v("Watermark text. If it is an empty string, the watermark will not be displayed")])]),t("tr",[t("td",[e._v("lineSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermark lines")])]),t("tr",[t("td",[e._v("textSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermarks in the same row")])]),t("tr",[t("td",[e._v("angle")]),t("td",[e._v("Number")]),t("td",[e._v("30")]),t("td",[e._v("Tilt angle of watermark, range: [0, 90]")])]),t("tr",[t("td",[e._v("textStyle")]),t("td",[e._v("Object")]),t("td",[e._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),t("td",[e._v("Watermark text style")])]),t("tr",[t("td",[e._v("onlyExport(v0.9.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is only add watermarks during export")])])])]),t("h3",[e._v("Icon Configuration")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("name")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The name of the icon group")])]),t("tr",[t("td",[e._v("type")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Values for icon grouping")])]),t("tr",[t("td",[e._v("list")]),t("td",[e._v("Array")]),t("td"),t("td",[e._v("A list of icons under grouping, with each item in the array being an object, "),t("code",[e._v("{ name: '', icon: '' }")]),e._v(","),t("code",[e._v("name")]),e._v("represents the name of the icon, "),t("code",[e._v("icon")]),e._v("represents the icon, Can be an "),t("code",[e._v("svg")]),e._v(" icon, such as "),t("code",[e._v("")]),e._v(", also can be a image "),t("code",[e._v("url")]),e._v(", or "),t("code",[e._v("base64")]),e._v(" icon, such as "),t("code",[e._v("data:image/png;base64,...")])])])])]),t("h2",[e._v("Static methods")]),t("h3",[e._v("defineTheme(name, config)")]),t("blockquote",[t("p",[e._v("v0.2.23+")])]),t("p",[e._v("Define new theme.")]),t("p",[t("code",[e._v("name")]),e._v(":New theme name")]),t("p",[t("code",[e._v("config")]),e._v(":New theme config")]),t("p",[t("code",[e._v("Simple-mind-map ")]),e._v(" Built-in many themes. In addition, you can register new theme. It is recommended to register before instantiation, so that you can directly use the newly registered theme during instantiation. Use example:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 注册新主题")]),e._v("\nMindMap.defineTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(", {})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 1.实例化时使用新注册的主题")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("theme")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v("\n})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 2.动态切换新主题")]),e._v("\nmindMap.setTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(")\n")])]),t("p",[e._v("For all configurations of theme, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("Default Topic")]),e._v(". The "),t("code",[e._v("defineTheme")]),e._v("method will merge the configuration you passed in with the default configuration. Most of the themes do not need custom many parts. For a typical customized theme configuration, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[e._v("blueSky")]),e._v(".")]),t("h3",[e._v("usePlugin(plugin, opt = {})")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("ul",[t("li",[t("code",[e._v("opt")]),e._v(":v0.4.0+,Plugin options. If a plugin supports custom options, it can be passed in through this parameter.")])]),t("p",[e._v("If you need to use some non-core functions, such as mini map, watermark, etc, you can register plugin through this method. Can be called in chain.")]),t("p",[e._v("Note: The plugin needs to be registered before instantiating "),t("code",[e._v("MindMap")]),e._v(".")]),t("h3",[e._v("hasPlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Get whether a plugin is registered, The index of the plugin in the registered plugin list is returned, If it is "),t("code",[e._v("-1")]),e._v(", it means that the plugin is not registered.")]),t("h2",[e._v("Static props")]),t("h3",[e._v("pluginList")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[e._v("List of all currently registered plugins.")]),t("h2",[e._v("Instance props")]),t("h3",[e._v("el")]),t("p",[e._v("Container element.")]),t("h3",[e._v("opt")]),t("p",[e._v("Config options object.")]),t("h3",[e._v("svg")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the SVG() method")])]),t("p",[e._v("Canvas SVG element.")]),t("h3",[e._v("draw")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of SVG node")])]),t("p",[e._v("Container element, used to carry content such as nodes and connections.")]),t("h3",[e._v("lineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node wiring elements.")]),t("h3",[e._v("nodeDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node elements.")]),t("h3",[e._v("associativeLineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Available when the associated line plugin is registered")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for associative line content.")]),t("h3",[e._v("otherDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for other content.")]),t("h3",[e._v("elRect")]),t("p",[e._v("The size and position information of the container element 'el'. The return result of calling the 'getBoundingClientRect()' method.")]),t("h3",[e._v("width")]),t("p",[e._v("The width of the container element 'el'.")]),t("h3",[e._v("height")]),t("p",[e._v("The height of the container element 'el'.")]),t("h3",[e._v("themeConfig")]),t("p",[e._v("Current Theme Configuration.")]),t("h2",[e._v("Instance methods")]),t("h3",[e._v("clearDraw()")]),t("blockquote",[t("p",[e._v("v0.8.0+")])]),t("p",[e._v("Clear "),t("code",[e._v("lineDraw")]),e._v("、"),t("code",[e._v("associativeLineDraw")]),e._v("、"),t("code",[e._v("nodeDraw")]),e._v("、"),t("code",[e._v("otherDraw")]),e._v(" containers.")]),t("h3",[e._v("destroy()")]),t("blockquote",[t("p",[e._v("v0.6.0+")])]),t("p",[e._v("Destroy mind maps. It will remove registered plugins, remove listening events, and delete all nodes on the canvas.")]),t("h3",[e._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[t("code",[e._v("paddingX")]),e._v(": Padding x")]),t("p",[t("code",[e._v("paddingY")]),e._v(": Padding y")]),t("p",[t("code",[e._v("ignoreWatermark")]),e._v(":v0.8.0+, Do not draw watermarks. If you do not need to draw watermarks, you can pass 'true' because drawing watermarks is very slow")]),t("p",[e._v("Get the "),t("code",[e._v("svg")]),e._v(" data and return an object. The detailed structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n svg, "),t("span",{staticClass:"hljs-comment"},[e._v("// Element, the overall svg element of the mind map graphics, including: svg (canvas container), g (actual mind map group)")]),e._v("\n svgHTML, "),t("span",{staticClass:"hljs-comment"},[e._v("// String, svg string, i.e. html string, can be directly rendered to the small map container you prepared")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("rect")]),e._v(": "),t("span",{staticClass:"hljs-comment"},[e._v("// Object, position, size, etc. of mind map graphics before zoom")]),e._v("\n origWidth, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas width")]),e._v("\n origHeight, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas height")]),e._v("\n scaleX, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, horizontal zoom value of mind map graphics")]),e._v("\n scaleY, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, vertical zoom value of mind map graphics")]),e._v("\n}\n")])]),t("h3",[e._v("render(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Triggers a full rendering, which will reuse nodes for better performance. If only the node positions have changed, this method can be called to "),t("code",[e._v("reRender")]),e._v(".")]),t("h3",[e._v("reRender(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Performs a full re-render, clearing the canvas and creating new nodes. This has poor performance and should be used sparingly.")]),t("h3",[e._v("resize()")]),t("p",[e._v("After the container size has changed, this method should be called to adjust.")]),t("h3",[e._v("setMode(mode)")]),t("blockquote",[t("p",[e._v("v0.1.7+")])]),t("p",[e._v("Switches between readonly and edit mode.")]),t("p",[t("code",[e._v("mode")]),e._v(":readonly、edit")]),t("h3",[e._v("on(event, fn)")]),t("p",[e._v("Listen to an event. Event list:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Event Name")]),t("th",[e._v("Description")]),t("th",[e._v("Callback Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("data_change")]),t("td",[e._v("Tree rendering data change, listen to this method to get the latest data")]),t("td",[e._v("data (current tree rendering data)")])]),t("tr",[t("td",[e._v("view_data_change(v0.1.1+)")]),t("td",[e._v("View change data, such as when dragging or zooming")]),t("td",[e._v("data (current view state data)")])]),t("tr",[t("td",[e._v("back_forward")]),t("td",[e._v("Forward or backward")]),t("td",[e._v("activeHistoryIndex (current index in the history data array), length (current length of the history data array)")])]),t("tr",[t("td",[e._v("draw_click")]),t("td",[e._v("Canvas click event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("svg_mousedown")]),t("td",[e._v("svg canvas mouse down event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("mousedown")]),t("td",[e._v("el element mouse down event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousemove")]),t("td",[e._v("el element mouse move event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("drag")]),t("td",[e._v("If it is a drag event while holding down the left button")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mouseup")]),t("td",[e._v("el element mouse up event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousewheel")]),t("td",[e._v("Mouse scroll event")]),t("td",[e._v("e (event object), dir (up or down scroll. v0.9.2+ changed to dirs, array type, which supports saving multiple directions simultaneously), this (Event event class instance) 、isTouchPad(v0.6.1+, Is it an event triggered by the touchpad)")])]),t("tr",[t("td",[e._v("contextmenu")]),t("td",[e._v("svg canvas right mouse button menu event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("node_click")]),t("td",[e._v("Node click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mousedown")]),t("td",[e._v("Node mouse down event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("Node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_dblclick")]),t("td",[e._v("Node double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_contextmenu")]),t("td",[e._v("Node right-click menu event")]),t("td",[e._v("e (event object), this (node instance)")])]),t("tr",[t("td",[e._v("node_mouseenter(v0.4.1+)")]),t("td",[e._v("Node mouseenter event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseleave(v0.4.1+)")]),t("td",[e._v("Node mouseleave event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("before_node_active")]),t("td",[e._v("Event before node activation")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("node_active")]),t("td",[e._v("Node activation event")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("expand_btn_click")]),t("td",[e._v("Node expand or collapse event")]),t("td",[e._v("this (node instance)")])]),t("tr",[t("td",[e._v("before_show_text_edit")]),t("td",[e._v("Event before node text edit box opens")]),t("td")]),t("tr",[t("td",[e._v("hide_text_edit")]),t("td",[e._v("Node text edit box close event")]),t("td",[e._v("textEditNode (text edit box DOM node), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("scale")]),t("td",[e._v("Zoom event")]),t("td",[e._v("scale (zoom ratio)")])]),t("tr",[t("td",[e._v("node_img_dblclick(v0.2.15+)")]),t("td",[e._v("Node image double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_img_mouseenter(v0.6.5+)")]),t("td",[e._v("Node image mouseenter event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mouseleave(v0.6.5+)")]),t("td",[e._v("Node image mouseleave event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mousemove(v0.6.5+)")]),t("td",[e._v("Node image mousemove event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_tree_render_end(v0.2.16+)")]),t("td",[e._v("Node tree render end event")]),t("td")]),t("tr",[t("td",[e._v("rich_text_selection_change(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. Triggered when the text selection area changes when the node is edited")]),t("td",[e._v("hasRange(Whether there is a selection)、rectInfo(Size and location information of the selected area)、formatInfo(Text formatting information of the selected area)")])]),t("tr",[t("td",[e._v("transforming-dom-to-images(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. When there is a "),t("code",[e._v("DOM")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", the "),t("code",[e._v("DOM")]),e._v(" node will be converted to an image when exporting to an image. This event will be triggered during the conversion process. You can use this event to prompt the user about the node to which you are currently converting")]),t("td",[e._v("index(Index of the node currently converted to)、len(Total number of nodes to be converted)")])]),t("tr",[t("td",[e._v("node_dragging(v0.4.5+)")]),t("td",[e._v("Triggered when a node is dragged")]),t("td",[e._v("node(The currently dragged node)")])]),t("tr",[t("td",[e._v("node_dragend(v0.4.5+)")]),t("td",[e._v("Triggered when the node is dragged and ends")]),t("td",[e._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,The node uid to which the node is moved this time, for example, if it is moved to node A, then the overlayNodeUid is the uid of node A. If it is moved to the front of node B, then the nextNodeUid is the uid of node B. You can obtain the node instance through the mindMap. extender.findNodeByUid(uid) method)")])]),t("tr",[t("td",[e._v("associative_line_click(v0.4.5+)")]),t("td",[e._v("Triggered when an associated line is clicked")]),t("td",[e._v("path(Connector node)、clickPath(Invisible click line node)、node(Start node)、toNode(Target node)")])]),t("tr",[t("td",[e._v("svg_mouseenter(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves into the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("svg_mouseleave(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves out of the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("node_icon_click(v0.6.10+)")]),t("td",[e._v("Triggered when clicking on an icon within a node")]),t("td",[e._v("this(node instance)、item(Click on the icon name)、e(event object)")])]),t("tr",[t("td",[e._v("view_theme_change(v0.6.12+)")]),t("td",[e._v("Triggered after calling the setTheme method to set the theme")]),t("td",[e._v("theme(theme name)")])]),t("tr",[t("td",[e._v("set_data(v0.7.3+)")]),t("td",[e._v("Triggered when the setData method is called to dynamically set mind map data")]),t("td",[e._v("data(New Mind Map Data)")])]),t("tr",[t("td",[e._v("resize(v0.8.0+)")]),t("td",[e._v("Triggered after the container size changes, actually when the 'resize' method of the mind map instance is called")]),t("td")]),t("tr",[t("td",[e._v("beforeDestroy(v0.9.0+)")]),t("td",[e._v("Triggered before destroying the mind map, i.e. triggered by calling the destroy method")]),t("td")]),t("tr",[t("td",[e._v("body_mousedown(v0.9.2+)")]),t("td",[e._v("Mousedown event of document.body")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("body_click")]),t("td",[e._v("Click event of document.body")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("data_change_detail(v0.9.3+)")]),t("td",[e._v("The detailed changes in rendering tree data will return an array, with each item representing an update point and each item being an object, There is a 'type' attribute that represents the type of detail, Including 'create' (create node), 'update' (update node), 'delete' (delete node), There is a 'data' attribute that represents the current updated node data. If it is of the 'update' type, there will also be an 'oldData' attribute that saves the data of the node before the update")]),t("td",[e._v("arr(Detail data)")])]),t("tr",[t("td",[e._v("layout_change(v0.9.4+)")]),t("td",[e._v("Triggered when modifying the structure, i.e. when the mindMap.setLayout() method is called")]),t("td",[e._v("layout(New layout)")])])])]),t("h3",[e._v("emit(event, ...args)")]),t("p",[e._v("Trigger an event, which can be one of the events listed above or a custom event.")]),t("h3",[e._v("off(event, fn)")]),t("p",[e._v("Unbind an event.")]),t("h3",[e._v("setTheme(theme, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Switches the theme. Available themes can be found in the options table above.")]),t("h3",[e._v("getTheme()")]),t("p",[e._v("Gets the current theme.")]),t("h3",[e._v("setThemeConfig(config, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the theme configuration. "),t("code",[e._v("config")]),e._v(" is the same as the "),t("code",[e._v("themeConfig")]),e._v(" option in the options table above.")]),t("h3",[e._v("getCustomThemeConfig()")]),t("p",[e._v("Gets the custom theme configuration.")]),t("h3",[e._v("getThemeConfig(prop)")]),t("p",[e._v("Gets the value of a specific theme configuration property.")]),t("h3",[e._v("getConfig("),t("em",[e._v("prop")]),e._v(")")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("prop")]),e._v(":Get the value of the specified configuration, and return the entire configuration if not passed")]),t("p",[e._v("Get config, That is, "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap (opt)")])]),t("h3",[e._v("updateConfig("),t("em",[e._v("opt")]),e._v(" = {})")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("opt")]),e._v(":Configuration to update")]),t("p",[e._v("Update config,That is update "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap(opt)")]),e._v(",You can only update some data, such as:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("mindMap.updateConfig({\n "),t("span",{staticClass:"hljs-attr"},[e._v("enableFreeDrag")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),t("span",{staticClass:"hljs-comment"},[e._v("// 开启节点自由拖拽")]),e._v("\n})\n")])]),t("p",[e._v("This method only updates the configuration and has no other side effects, such as triggering canvas re-rendering")]),t("h3",[e._v("getLayout()")]),t("p",[e._v("Gets the current layout structure.")]),t("h3",[e._v("setLayout(layout, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the layout structure. Available values can be found in the "),t("code",[e._v("layout")]),e._v(" field in the options table above.")]),t("h3",[e._v("execCommand(name, ...args)")]),t("p",[e._v("Executes a command, which will add a record to the history stack for undo or redo. All commands are as follows:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Command name")]),t("th",[e._v("Description")]),t("th",[e._v("Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("SELECT_ALL")]),t("td",[e._v("Select all")]),t("td")]),t("tr",[t("td",[e._v("BACK")]),t("td",[e._v("Go back a specified number of steps")]),t("td",[e._v("step (the number of steps to go back, default is 1)")])]),t("tr",[t("td",[e._v("FORWARD")]),t("td",[e._v("Go forward a specified number of steps")]),t("td",[e._v("step (the number of steps to go forward, default is 1)")])]),t("tr",[t("td",[e._v("INSERT_NODE")]),t("td",[e._v("Insert a sibling node, the active node or appoint node will be the operation node. If there are multiple active nodes, only the first one will be effective(v0.7.2+Supports simultaneous insertion of sibling nodes into multiple active nodes)")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(") 、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("INSERT_CHILD_NODE")]),t("td",[e._v("Insert a child node, the active node or appoint node will be the operation node")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(")、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("UP_NODE")]),t("td",[e._v("Move node up, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the first node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("DOWN_NODE")]),t("td",[e._v("Move node down, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the last node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("REMOVE_NODE")]),t("td",[e._v("Remove node, the active node or appoint node will be the operation node")]),t("td",[e._v("appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)")])]),t("tr",[t("td",[e._v("PASTE_NODE")]),t("td",[e._v("Paste node to a node, the active node will be the operation node")]),t("td",[e._v("data (the node data to paste, usually obtained through the renderer.copyNode() and renderer.cutNode() methods)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLE")]),t("td",[e._v("Modify node single style")]),t("td",[e._v("node (the node to set the style of), prop (style property), value (style property value), isActive (v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLEs(v0.6.12+)")]),t("td",[e._v("Modify multiple styles of nodes")]),t("td",[e._v("node(the node to set the style of)、style(Style object,key is style prop,value is style value)、isActive(v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_ACTIVE")]),t("td",[e._v("Set whether the node is active")]),t("td",[e._v("node (the node to set), active (boolean, whether to activate)")])]),t("tr",[t("td",[e._v("CLEAR_ACTIVE_NODE")]),t("td",[e._v("Clear the active state of the currently active node(s), the active node will be the operation node")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_EXPAND")]),t("td",[e._v("Set whether the node is expanded")]),t("td",[e._v("node (the node to set), expand (boolean, whether to expand)")])]),t("tr",[t("td",[e._v("EXPAND_ALL")]),t("td",[e._v("Expand all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_ALL")]),t("td",[e._v("Collapse all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_TO_LEVEL (v0.2.8+)")]),t("td",[e._v("Expand to a specified level")]),t("td",[e._v("level (the level to expand to, 1, 2, 3...)")])]),t("tr",[t("td",[e._v("SET_NODE_DATA")]),t("td",[e._v("Update node data, that is, update the data in the data object of the node data object. Note that this command will not trigger view updates")]),t("td",[e._v("node (the node to set), data (object, the data to update, e.g. "),t("code",[e._v("{expand: true}")]),e._v(")")])]),t("tr",[t("td",[e._v("SET_NODE_TEXT")]),t("td",[e._v("Set node text")]),t("td",[e._v("node (the node to set), text (the new text for the node), richText(v0.4.0+, If you want to set a rich text character, you need to set it to "),t("code",[e._v("true")]),e._v(")、resetRichText(v0.6.10+Do you want to reset rich text? The default is false. If true is passed, the style of the rich text node will be reset)")])]),t("tr",[t("td",[e._v("SET_NODE_IMAGE")]),t("td",[e._v("Set Node Image")]),t("td",[e._v("node (node to set), imgData (object, image information, structured as: "),t("code",[e._v("{url, title, width, height}")]),e._v(", the width and height of the image must be passed)")])]),t("tr",[t("td",[e._v("SET_NODE_ICON")]),t("td",[e._v("Set Node Icon")]),t("td",[e._v("node (node to set), icons (array, predefined image names array, available icons can be obtained in the nodeIconList list in the "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[e._v("icons.js")]),e._v(" file, icon name is type_name, such as ['priority_1'])")])]),t("tr",[t("td",[e._v("SET_NODE_HYPERLINK")]),t("td",[e._v("Set Node Hyperlink")]),t("td",[e._v("node (node to set), link (hyperlink address), title (hyperlink name, optional)")])]),t("tr",[t("td",[e._v("SET_NODE_NOTE")]),t("td",[e._v("Set Node Note")]),t("td",[e._v("node (node to set), note (note text)")])]),t("tr",[t("td",[e._v("SET_NODE_TAG")]),t("td",[e._v("Set Node Tag")]),t("td",[e._v("node (node to set), tag (string array, built-in color information can be obtained in "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[e._v("constant.js")]),e._v(")")])]),t("tr",[t("td",[e._v("INSERT_AFTER (v0.1.5+)")]),t("td",[e._v("Move Node to After Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("INSERT_BEFORE (v0.1.5+)")]),t("td",[e._v("Move Node to Before Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("MOVE_NODE_TO (v0.1.5+)")]),t("td",[e._v("Move a node as a child of another node")]),t("td",[e._v("node (the node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), toNode (the target node)")])]),t("tr",[t("td",[e._v("ADD_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Add a node summary")]),t("td",[e._v("data (the data for the summary, in object format, all numerical fields of the node are supported, default is "),t("code",[e._v("{text: 'summary'}")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Remove a node summary")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_CUSTOM_POSITION (v0.2.0+)")]),t("td",[e._v("Set a custom position for a node")]),t("td",[e._v("node (the node to set), left (custom x coordinate, default is undefined), top (custom y coordinate, default is undefined)")])]),t("tr",[t("td",[e._v("RESET_LAYOUT (v0.2.0+)")]),t("td",[e._v("Arrange layout with one click")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_SHAPE (v0.2.4+)")]),t("td",[e._v("Set the shape of a node")]),t("td",[e._v("node (the node to set), shape (the shape, all shapes: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[e._v("Shape.js")]),e._v(")")])]),t("tr",[t("td",[e._v("GO_TARGET_NODE(v0.6.7+)")]),t("td",[e._v("Navigate to a node, and if the node is collapsed, it will automatically expand to that node")]),t("td",[e._v("node(Node instance or node uid to locate)、callback(v0.6.9+, Callback function after positioning completion)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple sibling nodes into the specified node at the same time, with the operating node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), nodeList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple child nodes into the specified node simultaneously, with the operation node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), childList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_FORMULA(v0.7.2+)")]),t("td",[e._v("Insert mathematical formulas into nodes, operate on the currently active node or specified node")]),t("td",[e._v("formula(Mathematical formula to insert, LaTeX syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node)")])]),t("tr",[t("td",[e._v("INSERT_PARENT_NODE(v0.8.0+)")]),t("td",[e._v("Insert a parent node into the specified node, with the operation node being the currently active node or the specified node")]),t("td",[e._v("openEdit(Activate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodes(Optional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array)、 appointData(Optional, specify the data for the newly created node, such as {text: 'xxx', ...}, Detailed structure can be referenced "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),t("td",[e._v("Delete only the current node, operate on the currently active node or specified node")]),t("td",[e._v("appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array)")])]),t("tr",[t("td",[e._v("MOVE_UP_ONE_LEVEL(v0.9.6+)")]),t("td",[e._v("Move the specified node up one level")]),t("td",[e._v("node(Optional, specify the node to move up the hierarchy, if not passed, it will be the first node in the current active node)")])])])]),t("h3",[e._v("setData(data)")]),t("p",[e._v("Dynamic setting of mind map data, pure node data")]),t("p",[t("code",[e._v("data")]),e._v(": mind map structure data")]),t("h3",[e._v("setFullData("),t("em",[e._v("data")]),e._v(")")]),t("blockquote",[t("p",[e._v("v0.2.7+")])]),t("p",[e._v("Dynamic setting of mind map data, including node data, layout, theme, view")]),t("p",[t("code",[e._v("data")]),e._v(": complete data, structure can refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[e._v("exportFullData")])]),t("h3",[e._v("getData(withConfig)")]),t("blockquote",[t("p",[e._v("v0.2.9+")])]),t("p",[e._v("Gets mind map data")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", that is, the obtained data only includes the node tree, if "),t("code",[e._v("true")]),e._v(" is passed, it will also include theme, layout, view, etc. data")]),t("h3",[e._v("export(type, isDownload, fileName)")]),t("blockquote",[t("p",[e._v("You need to register the "),t("code",[e._v("Export")]),e._v(" plugin first")])]),t("p",[e._v("Export")]),t("p",[t("code",[e._v("type")]),e._v(": the type to be exported, optional values: png, svg, json, pdf (v0.2.1+), smm (essentially also json)")]),t("p",[t("code",[e._v("isDownload")]),e._v(": whether to directly trigger download, Boolean value, default is "),t("code",[e._v("false")])]),t("p",[t("code",[e._v("fileName")]),e._v(": (v0.1.6+) the name of the exported file, default is "),t("code",[e._v("思维导图")]),e._v(" (mind map).")]),t("p",[e._v("If it is exported as "),t("code",[e._v("png")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("transparent")]),e._v(": v0.5.7+, "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", Specify whether the background of the exported image is transparent")]),t("p",[e._v("If it is exported as "),t("code",[e._v("svg")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("plusCssText")]),e._v(": Additional "),t("code",[e._v("CSS")]),e._v(" style. If there is a "),t("code",[e._v("dom")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", you can pass in some styles specific to the node through this parameter")]),t("p",[e._v("If it is exported as "),t("code",[e._v("json")]),e._v(" or "),t("code",[e._v("smm")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("true")]),e._v(", Specify whether the exported data includes configuration data, otherwise only pure node tree data will be exported")]),t("h3",[e._v("toPos(x, y)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Convert the coordinates of the browser's visible window to coordinates relative to the canvas.")]),t("h3",[e._v("addPlugin(plugin, opt)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Register plugin, Use "),t("code",[e._v("MindMap.usePlugin")]),e._v(" to register plugin only before instantiation, The registered plugin will not take effect after instantiation, So if you want to register the plugin after instantiation, you can use the "),t("code",[e._v("addPlugin")]),e._v(" method of the instance.")]),t("h3",[e._v("removePlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Remove registered plugin, Plugins registered through the "),t("code",[e._v("usePlugin")]),e._v(" or "),t("code",[e._v("addPlugin")]),e._v(" methods can be removed.")])])}],d={},i=d,s=n("2877"),r=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=r.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d9fbc"],{"6a50":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this;e._self._c;return e._m(0)},o=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Constructor")]),t("h2",[e._v("Basic use")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-tag"},[e._v("<"),t("span",{staticClass:"hljs-name"},[e._v("div")]),e._v(" "),t("span",{staticClass:"hljs-attr"},[e._v("id")]),e._v("="),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v(">")]),t("span",{staticClass:"hljs-tag"},[e._v("")]),e._v("\n")])]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v('"simple-mind-map"')]),e._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("el")]),e._v(": "),t("span",{staticClass:"hljs-built_in"},[e._v("document")]),e._v(".getElementById("),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v("),\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"data"')]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"text"')]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v('"Root Node"')]),e._v("\n },\n "),t("span",{staticClass:"hljs-string"},[e._v('"children"')]),e._v(": []\n }\n});\n")])]),t("h2",[e._v("Instantiation options")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")]),t("th",[e._v("Required")])])]),t("tbody",[t("tr",[t("td",[e._v("el")]),t("td",[e._v("Element")]),t("td"),t("td",[e._v("Container element, must be a DOM element")]),t("td",[e._v("Yes")])]),t("tr",[t("td",[e._v("data")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Mind map data, Please refer to the introduction of 【Data structure】 below")]),t("td")]),t("tr",[t("td",[e._v("layout")]),t("td",[e._v("String")]),t("td",[e._v("logicalStructure")]),t("td",[e._v("Layout type, options: logicalStructure (logical structure diagram), mindMap (mind map), catalogOrganization (catalog organization diagram), organizationStructure (organization structure diagram)、timeline(v0.5.4+, timeline)、timeline2(v0.5.4+, up down alternating timeline)、fishbone(v0.5.4+, fishbone diagram)")]),t("td")]),t("tr",[t("td",[e._v("fishboneDeg(v0.5.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("45")]),t("td",[e._v("Set the diagonal angle of the fishbone structure diagram")]),t("td")]),t("tr",[t("td",[e._v("theme")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Theme, options: default, classic, minions, pinkGrape, mint, gold, vitalityOrange, greenLeaf, dark2, skyGreen, classic2, classic3, classic4(v0.2.0+), classicGreen, classicBlue, blueSky, brainImpairedPink, dark, earthYellow, freshGreen, freshRed, romanticPurple, simpleBlack(v0.5.4+), courseGreen(v0.5.4+), coffee(v0.5.4+), redSpirit(v0.5.4+), blackHumour(v0.5.4+), lateNightOffice(v0.5.4+), blackGold(v0.5.4+)、、avocado(v.5.10-fix.2+)、autumn(v.5.10-fix.2+)、orangeJuice(v.5.10-fix.2+)")]),t("td")]),t("tr",[t("td",[e._v("themeConfig")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Theme configuration, will be merged with the selected theme, available fields refer to: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("default.js")])]),t("td")]),t("tr",[t("td",[e._v("scaleRatio")]),t("td",[e._v("Number")]),t("td",[e._v("0.1")]),t("td",[e._v("The incremental scaling ratio")]),t("td")]),t("tr",[t("td",[e._v("maxTag")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The maximum number of tags displayed in the node, any additional tags will be discarded")]),t("td")]),t("tr",[t("td",[e._v("exportPadding")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The padding for exporting images")]),t("td")]),t("tr",[t("td",[e._v("imgTextMargin")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The spacing between the image and text in the node")]),t("td")]),t("tr",[t("td",[e._v("textContentMargin")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The spacing between various text information in the node, such as the spacing between the icon and text")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateStep")]),t("td",[e._v("Number")]),t("td",[e._v("3")]),t("td",[e._v("The canvas offset when mouse moves to the edge during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateLimit")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The distance from the edge when the canvas begins to offset during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("customNoteContentShow(v0.1.6+)")]),t("td",[e._v("Object")]),t("td",[e._v("null")]),t("td",[e._v("Custom node note content display, object type, structure: {show: (noteContent, left, top, node) => {// your display node note logic. node is a new parameter added in v0.8.1+ version, representing node instances }, hide: () => {// your hide node note logic }}")]),t("td")]),t("tr",[t("td",[e._v("readonly(v0.1.7+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether it is read-only mode")]),t("td")]),t("tr",[t("td",[e._v("enableFreeDrag(v0.2.4+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Enable node free(Free drag means that nodes can be dragged to any position on the canvas. Please note that it is not a function of dragging nodes to become siblings of other nodes. The connection of free drag may have certain problems, so it is best not to use this feature) drag")]),t("td")]),t("tr",[t("td",[e._v("watermarkConfig(v0.2.4+)")]),t("td",[e._v("Object")]),t("td"),t("td",[e._v("Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration")]),t("td")]),t("tr",[t("td",[e._v("textAutoWrapWidth(v0.3.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("500")]),t("td",[e._v("Each line of text in the node will wrap automatically when it reaches the width")]),t("td")]),t("tr",[t("td",[e._v("customHandleMousewheel(v0.4.3+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object")]),t("td")]),t("tr",[t("td",[e._v("mousewheelAction(v0.4.3+)")]),t("td",[e._v("String")]),t("td",[e._v("zoom(v0.9.1+ default is move)")]),t("td",[e._v("The behavior of the mouse wheel, "),t("code",[e._v("zoom")]),e._v("(Zoom in and out)、"),t("code",[e._v("move")]),e._v("(Move up and down). If "),t("code",[e._v("customHandleMousewheel")]),e._v(" passes a custom function, this property will not take effect")]),t("td")]),t("tr",[t("td",[e._v("mousewheelMoveStep(v0.4.3+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("When the "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("move")]),e._v(", you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is "),t("code",[e._v("px")])]),t("td")]),t("tr",[t("td",[e._v("mousewheelZoomActionReverse(v0.6.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false(v0.9.1+ default is true)")]),t("td",[e._v("When "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("zoom")]),e._v(", Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("二级节点")]),t("td",[e._v("Text of the default inserted secondary node")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("分支主题")]),t("td",[e._v("Text for nodes below the second level inserted by default")]),t("td")]),t("tr",[t("td",[e._v("expandBtnStyle(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),t("td",[e._v("Expand the color of the stow button, (The fontSize and strokeColor fields were added in version 0.7.0+to set the text style for displaying the number of nodes when folded)")]),t("td")]),t("tr",[t("td",[e._v("expandBtnIcon(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ open: '', close: '' }")]),t("td",[e._v("Customize the icon of the expand/collapse button, and you can transfer the svg string of the icon")]),t("td")]),t("tr",[t("td",[e._v("expandBtnNumHandler(v0.7.0+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Used to customize the content of displaying the number of nodes when folding, receiving a parameter that represents the instance of the folding node, and returning a number or string that represents the final displayed content. For example, when the number is greater than 99, 99 can be displayed+")]),t("td")]),t("tr",[t("td",[e._v("isShowExpandNum(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Display the number of folded nodes when they are folded up")]),t("td")]),t("tr",[t("td",[e._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Only respond to shortcut key events when the mouse is inside the canvas")]),t("td")]),t("tr",[t("td",[e._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable node animation transition")]),t("td")]),t("tr",[t("td",[e._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Number")]),t("td",[e._v("300")]),t("td",[e._v("If node animation transition is enabled, the transition time can be set using this attribute, in milliseconds")]),t("td")]),t("tr",[t("td",[e._v("initRootNodePosition(v0.5.3+)")]),t("td",[e._v("Array")]),t("td",[e._v("null")]),t("td",[e._v("The position of the initial root node can be passed as an array, default is "),t("code",[e._v("['center', 'center']")]),e._v(", Represents the root node at the center of the canvas, In addition to "),t("code",[e._v("center")]),e._v(", keywords can also be set to "),t("code",[e._v("left")]),e._v(", "),t("code",[e._v("top")]),e._v(", "),t("code",[e._v("right")]),e._v(", and "),t("code",[e._v("bottom")]),e._v(", In addition to passing keywords, each item in the array can also pass a number representing a specific pixel, Can pass a percentage string, such as "),t("code",[e._v("['40%', '60%']")]),e._v(", Represents a horizontal position at "),t("code",[e._v("40%")]),e._v(" of the canvas width, and a vertical position at "),t("code",[e._v("60%")]),e._v(" of the canvas height")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingX(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Horizontal padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingY(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Vertical padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("nodeTextEditZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td"),t("td",[e._v("z-index of node text edit box elements")])]),t("tr",[t("td",[e._v("nodeNoteTooltipZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td",[e._v("z-index of floating layer elements in node comments")]),t("td")]),t("tr",[t("td",[e._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to end the editing status of node text when clicking on an area outside the canvas")]),t("td")]),t("tr",[t("td",[e._v("maxHistoryCount(v0.5.6+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000(v0.9.2+ changed 500)")]),t("td"),t("td",[e._v("Maximum number of history records")])]),t("tr",[t("td",[e._v("alwaysShowExpandBtn(v0.5.8+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to always display the expand and collapse buttons of nodes, which are only displayed when the mouse is moved up and activated by default")]),t("td")]),t("tr",[t("td",[e._v("iconList(v0.5.8+)")]),t("td",[e._v("Array")]),t("td",[e._v("[]")]),t("td",[e._v('The icons that can be inserted into the extension node, and each item in the array is an object. Please refer to the "Icon Configuration" table below for the detailed structure of the object')]),t("td")]),t("tr",[t("td",[e._v("maxNodeCacheCount(v0.5.10+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td",[e._v("The maximum number of cached nodes. To optimize performance, an internal node cache pool is maintained to reuse nodes. This attribute allows you to specify the maximum number of caches in the pool")]),t("td")]),t("tr",[t("td",[e._v("defaultAssociativeLineText(v0.5.11+)")]),t("td",[e._v("String")]),t("td",[e._v("关联")]),t("td",[e._v("Association Line Default Text")]),t("td")]),t("tr",[t("td",[e._v("fitPadding(v0.6.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("50")]),t("td",[e._v("The padding of mind mapping when adapting to canvas size, Unit: px")]),t("td")]),t("tr",[t("td",[e._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable the function of holding down the Ctrl key to select multiple nodes")]),t("td")]),t("tr",[t("td",[e._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Setting to left click to select multiple nodes and right click to drag the canvas.")]),t("td")]),t("tr",[t("td",[e._v("beforeTextEdit(v0.6.0+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("The callback method before the node is about to enter editing. If the method returns a value other than true, the editing will be canceled. The function can return a value or a promise, and the callback parameter is the node instance")]),t("td")]),t("tr",[t("td",[e._v("isUseCustomNodeContent(v0.6.3+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to customize node content")]),t("td")]),t("tr",[t("td",[e._v("customCreateNodeContent(v0.6.3+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("If "),t("code",[e._v("isUseCustomNodeContent")]),e._v(" is set to "),t("code",[e._v("true")]),e._v(", then this option needs to be used to pass in a method that receives the node instance "),t("code",[e._v("node")]),e._v(" as a parameter (if you want to obtain data for that node, you can use "),t("code",[e._v("node.nodeData.data")]),e._v("). You need to return the custom node content element, which is the DOM node. If a node does not require customization, you can return "),t("code",[e._v("null")])]),t("td")]),t("tr",[t("td",[e._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the mouse zoom centered around the current position of the mouse, otherwise centered around the canvas")]),t("td")]),t("tr",[t("td",[e._v("customInnerElsAppendTo(v0.6.12+)")]),t("td",[e._v("null/HTMLElement")]),t("td",[e._v("null")]),t("td",[e._v("Specify the location where some internal elements (node text editing element, node note display element, associated line text editing element, node image adjustment button element) are added, and default to document.body")]),t("td")]),t("tr",[t("td",[e._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("When dragging an element, the maximum height of the block indicating the new position of the element")]),t("td")]),t("tr",[t("td",[e._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+ remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is it allowed to create a hidden input box that will be focused when the node is activated for pasting data and automatically entering the text editing state")]),t("td")]),t("tr",[t("td",[e._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Does it automatically enter text editing mode when pressing the Chinese, English, or numeric buttons when there is an activation node?")]),t("td")]),t("tr",[t("td",[e._v("richTextEditFakeInPlace(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Set the rich text node edit box to match the size of the node, creating a pseudo in place editing effect. It should be noted that only when there is only text within the node and the shape is rectangular, can the effect be better")]),t("td")]),t("tr",[t("td",[e._v("customHandleClipboardText(v0.6.14+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("Customize the processing of clipboard text. When pressing ctrl+v to paste, it will read the text and images from the user's clipboard. By default, it will only determine whether the text is regular text and node data in simple mind map format. If you want to process data from other mind maps, such as process, zhixi, etc., you can pass a function that takes the text from the current clipboard as a parameter and returns the processed data, which can be of two types: 1.If a pure text is returned, a child node will be directly created with that text; 2.Returns a node object in the following format: { simpleMindMap: true, data: { data: { text: '' }, children: [] } }, The representative is data in simple bind map format, and the node data is in the same format as the simple bind map node data. If your processing logic has asynchronous logic, you can also return a promise")]),t("td")]),t("tr",[t("td",[e._v("errorHandler(v0.6.15+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Custom error handling functions currently only throw some asynchronous logic errors. Can pass a function that takes two parameters, the first being the wrong type and the second being the wrong object")]),t("td")]),t("tr",[t("td",[e._v("disableMouseWheelZoom(v0.6.15+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit mouse wheel scaling, you can still use the API for scaling")]),t("td")]),t("tr",[t("td",[e._v("resetCss(v0.6.16+)")]),t("td",[e._v("String")]),t("td",[e._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),t("td",[e._v("When exporting images and SVGs, the default style overlay for rich text node content, which is embedded in HTML nodes in SVGs, will occur. If not overlaid, the node content will be offset")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickReset(v0.6.17+)(v0.8.0+this attribute has been deleted)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true(v0.7.0+changed to false)")]),t("td",[e._v("Turn on the mouse and double-click to reset the position and zoom of the mind map")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickBackToRootNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to return to the root node when double clicking with the mouse, that is, to center the display of the root node")]),t("td")]),t("tr",[t("td",[e._v("minExportImgCanvasScale(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The scaling factor of canvas when exporting images and PDFs, which is set to the maximum value of window.devicePixelRatio to improve image clarity")]),t("td")]),t("tr",[t("td",[e._v("hoverRectColor(v0.7.0+)")]),t("td",[e._v("String")]),t("td",[e._v("rgb(94, 200, 248)")]),t("td",[e._v("The node mouse hover and the rectangular border color displayed when activated will add a transparency of 0.6 when hovering")]),t("td")]),t("tr",[t("td",[e._v("hoverRectPadding(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The distance between the node mouse hover and the displayed rectangular border when activated and the node content")]),t("td")]),t("tr",[t("td",[e._v("selectTextOnEnterEditText(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the text selected by default when double-clicking a node to enter node text editing? By default, it will only be selected when creating a new node")]),t("td")]),t("tr",[t("td",[e._v("deleteNodeActive(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Enable the function of automatically activating adjacent nodes or parent nodes after deleting nodes")]),t("td")]),t("tr",[t("td",[e._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable automatic canvas movement when the mouse moves to the edge of the canvas while dragging nodes")]),t("td")]),t("tr",[t("td",[e._v("fit(v0.7.1-fix.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is the first rendering scaled to fit the canvas size")]),t("td")]),t("tr",[t("td",[e._v("dragMultiNodeRectConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ width: 40, height: 20, fill: '' }")]),t("td",[e._v("The style configuration of the schematic rectangle that moves with the mouse when dragging multiple nodes, passing an object, and the field meanings are the width, height, and fill color of the rectangle")]),t("td")]),t("tr",[t("td",[e._v("dragPlaceholderRectFill(v0.7.2+)")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The filling color of the schematic rectangle for the new position when dragging nodes. If not transmitted, the default color for the connected line is used")]),t("td")]),t("tr",[t("td",[e._v("dragOpacityConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),t("td",[e._v("The transparency configuration during node dragging, passing an object, and the field meanings are: the transparency of the cloned node or rectangle that follows the mouse movement, and the transparency of the dragged node")]),t("td")]),t("tr",[t("td",[e._v("tagsColorMap(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("The color of a custom node label can be transferred to an object, where key is the label content to be assigned a color, and value is the color of the label content. If not transferred internally, a corresponding color will be generated based on the label content")]),t("td")]),t("tr",[t("td",[e._v("cooperateStyle(v0.7.3+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ avatarSize: 22, fontSize: 12 }")]),t("td",[e._v("The configuration of personnel avatar style during node collaboration editing, with field meanings as follows: avatar size, and if it is a text avatar, the size of the text")]),t("td")]),t("tr",[t("td",[e._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the associated line always displayed above the node? If set to false, it will be at the top level when creating and activating the associated line, and in other cases, it will be below the node")]),t("td")]),t("tr",[t("td",[e._v("defaultGeneralizationText(v0.8.0+)")]),t("td",[e._v("String")]),t("td",[e._v("概要")]),t("td",[e._v("Insert default text for summary")]),t("td")]),t("tr",[t("td",[e._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),t("td",[e._v("Function / null")]),t("td",[e._v("null")]),t("td",[e._v("When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks")]),t("td")]),t("tr",[t("td",[e._v("addHistoryTime(v0.8.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms")]),t("td")]),t("tr",[t("td",[e._v("isDisableDrag(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is disable dragging the canvas")]),t("td")]),t("tr",[t("td",[e._v("disableTouchZoom(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin")]),t("td")]),t("tr",[t("td",[e._v("highlightNodeBoxStyle(v0.9.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),t("td",[e._v("Highlight box style when the mouse moves into the summary to highlight the node it belongs to")]),t("td")]),t("tr",[t("td",[e._v("createNewNodeBehavior(v0.9.1+)")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode)")]),t("td")]),t("tr",[t("td",[e._v("defaultNodeImage(v0.9.1-fix.2+)")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Image address, the default image displayed when node image loading fails")]),t("td")]),t("tr",[t("td",[e._v("handleNodePasteImg(v0.9.2+)")]),t("td",[e._v("null or Function")]),t("td",[e._v("null")]),t("td",[e._v("The processing method for pasting images from the clipboard on a node is to convert them into data:URL data and insert them into the node by default. You can use this method to upload image data to the server and save the URL of the image. An asynchronous method can be passed to receive image data of Blob type, and the specified structure needs to be returned: { url, size: {width, height} }")]),t("td")]),t("tr",[t("td",[e._v("isLimitMindMapInCanvas(v0.9.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to limit the mind map within the canvas. For example, when dragging to the right, the leftmost part of the mind map graphic will not be able to continue dragging to the right when it reaches the center of the canvas, and the same applies to other things")]),t("td")]),t("tr",[t("td",[e._v("isLimitMindMapInCanvasWhenHasScrollbar(v0.9.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("When registering the Scrollbar plugin, will the mind map be limited to the canvas and the isLimitMindMapInCanvas configuration no longer work")]),t("td")]),t("tr",[t("td",[e._v("associativeLineInitPointsPosition(v0.9.5+)")]),t("td",[e._v("null / { from, to }")]),t("td",[e._v("{ from: '', to: '' }")]),t("td",[e._v("By default, the position of the two endpoints of a newly created association line is calculated based on the relative position of the center points of the two nodes. If you want to fix the position, you can configure it through this option. If neither from nor to is transmitted, they will be automatically calculated. If only one is transmitted, the other will be automatically calculated. from and to optional values")]),t("td")]),t("tr",[t("td",[e._v(":left、top、bottom、right")]),t("td"),t("td"),t("td"),t("td")]),t("tr",[t("td",[e._v("enableAdjustAssociativeLinePoints(v0.9.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is it allowed to adjust the position of the two endpoints of the associated line")]),t("td")])])]),t("h3",[e._v("Data structure")]),t("p",[e._v("The basic data structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The text of the node can be rich text, which is in HTML format. In this case, richText should be set to true")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("richText")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Is the text of the node in rich text mode")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("expand")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Whether the node is expanded")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("uid")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// The unique ID of the node, which may not be passed, will be generated internally")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("icon")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v('// The format of the icon can be found in the "插入和扩展节点图标" section of the tutorial')]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("image")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// URL of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The title of the image can be blank")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageSize")]),e._v(": { "),t("span",{staticClass:"hljs-comment"},[e._v("// The size of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("width")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The width of the image, mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("height")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The height of the image is mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("custom")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(" "),t("span",{staticClass:"hljs-comment"},[e._v("// If set to true, the display size of the image is not controlled by the theme, and is based on imageSize.width and imageSize.height")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlink")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Hyperlink address")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlinkTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Title of hyperlink")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("note")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Content of remarks")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("tag")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v("// Tag list")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("generalization")]),e._v(": {"),t("span",{staticClass:"hljs-comment"},[e._v("// The summary of the node, if there is no summary, the generalization can be set to null")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),t("span",{staticClass:"hljs-comment"},[e._v("// Summary Text")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineTargets")]),e._v(": ["),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v("],"),t("span",{staticClass:"hljs-comment"},[e._v("// If there are associated lines, then it is the uid list of the target node")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineText")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// Association Line Text")]),e._v("\n "),t("span",{staticClass:"hljs-comment"},[e._v("// ...For other style fields, please refer to the topic")]),e._v("\n },\n children ["),t("span",{staticClass:"hljs-comment"},[e._v("// Child nodes, with consistent structure and root nodes")]),e._v("\n {\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {},\n "),t("span",{staticClass:"hljs-attr"},[e._v("children")]),e._v(": []\n }\n ]\n}\n")])]),t("p",[e._v("If you want to add custom fields, you can add them to the same level as 'data' and 'children'. If you want to add them to the 'data' object, please use the "),t("code",[e._v("_")]),e._v(" Name your custom field at the beginning, and it will be used internally to determine whether it is a custom field.")]),t("h3",[e._v("Watermark config")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("text")]),t("td",[e._v("String")]),t("td",[e._v("''")]),t("td",[e._v("Watermark text. If it is an empty string, the watermark will not be displayed")])]),t("tr",[t("td",[e._v("lineSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermark lines")])]),t("tr",[t("td",[e._v("textSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermarks in the same row")])]),t("tr",[t("td",[e._v("angle")]),t("td",[e._v("Number")]),t("td",[e._v("30")]),t("td",[e._v("Tilt angle of watermark, range: [0, 90]")])]),t("tr",[t("td",[e._v("textStyle")]),t("td",[e._v("Object")]),t("td",[e._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),t("td",[e._v("Watermark text style")])]),t("tr",[t("td",[e._v("onlyExport(v0.9.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is only add watermarks during export")])])])]),t("h3",[e._v("Icon Configuration")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("name")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The name of the icon group")])]),t("tr",[t("td",[e._v("type")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Values for icon grouping")])]),t("tr",[t("td",[e._v("list")]),t("td",[e._v("Array")]),t("td"),t("td",[e._v("A list of icons under grouping, with each item in the array being an object, "),t("code",[e._v("{ name: '', icon: '' }")]),e._v(","),t("code",[e._v("name")]),e._v("represents the name of the icon, "),t("code",[e._v("icon")]),e._v("represents the icon, Can be an "),t("code",[e._v("svg")]),e._v(" icon, such as "),t("code",[e._v("")]),e._v(", also can be a image "),t("code",[e._v("url")]),e._v(", or "),t("code",[e._v("base64")]),e._v(" icon, such as "),t("code",[e._v("data:image/png;base64,...")])])])])]),t("h2",[e._v("Static methods")]),t("h3",[e._v("defineTheme(name, config)")]),t("blockquote",[t("p",[e._v("v0.2.23+")])]),t("p",[e._v("Define new theme.")]),t("p",[t("code",[e._v("name")]),e._v(":New theme name")]),t("p",[t("code",[e._v("config")]),e._v(":New theme config")]),t("p",[t("code",[e._v("Simple-mind-map ")]),e._v(" Built-in many themes. In addition, you can register new theme. It is recommended to register before instantiation, so that you can directly use the newly registered theme during instantiation. Use example:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 注册新主题")]),e._v("\nMindMap.defineTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(", {})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 1.实例化时使用新注册的主题")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("theme")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v("\n})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 2.动态切换新主题")]),e._v("\nmindMap.setTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(")\n")])]),t("p",[e._v("For all configurations of theme, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("Default Topic")]),e._v(". The "),t("code",[e._v("defineTheme")]),e._v("method will merge the configuration you passed in with the default configuration. Most of the themes do not need custom many parts. For a typical customized theme configuration, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[e._v("blueSky")]),e._v(".")]),t("h3",[e._v("usePlugin(plugin, opt = {})")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("ul",[t("li",[t("code",[e._v("opt")]),e._v(":v0.4.0+,Plugin options. If a plugin supports custom options, it can be passed in through this parameter.")])]),t("p",[e._v("If you need to use some non-core functions, such as mini map, watermark, etc, you can register plugin through this method. Can be called in chain.")]),t("p",[e._v("Note: The plugin needs to be registered before instantiating "),t("code",[e._v("MindMap")]),e._v(".")]),t("h3",[e._v("hasPlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Get whether a plugin is registered, The index of the plugin in the registered plugin list is returned, If it is "),t("code",[e._v("-1")]),e._v(", it means that the plugin is not registered.")]),t("h2",[e._v("Static props")]),t("h3",[e._v("pluginList")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[e._v("List of all currently registered plugins.")]),t("h2",[e._v("Instance props")]),t("h3",[e._v("el")]),t("p",[e._v("Container element.")]),t("h3",[e._v("opt")]),t("p",[e._v("Config options object.")]),t("h3",[e._v("svg")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the SVG() method")])]),t("p",[e._v("Canvas SVG element.")]),t("h3",[e._v("draw")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of SVG node")])]),t("p",[e._v("Container element, used to carry content such as nodes and connections.")]),t("h3",[e._v("lineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node wiring elements.")]),t("h3",[e._v("nodeDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node elements.")]),t("h3",[e._v("associativeLineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Available when the associated line plugin is registered")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for associative line content.")]),t("h3",[e._v("otherDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for other content.")]),t("h3",[e._v("elRect")]),t("p",[e._v("The size and position information of the container element 'el'. The return result of calling the 'getBoundingClientRect()' method.")]),t("h3",[e._v("width")]),t("p",[e._v("The width of the container element 'el'.")]),t("h3",[e._v("height")]),t("p",[e._v("The height of the container element 'el'.")]),t("h3",[e._v("themeConfig")]),t("p",[e._v("Current Theme Configuration.")]),t("h2",[e._v("Instance methods")]),t("h3",[e._v("clearDraw()")]),t("blockquote",[t("p",[e._v("v0.8.0+")])]),t("p",[e._v("Clear "),t("code",[e._v("lineDraw")]),e._v("、"),t("code",[e._v("associativeLineDraw")]),e._v("、"),t("code",[e._v("nodeDraw")]),e._v("、"),t("code",[e._v("otherDraw")]),e._v(" containers.")]),t("h3",[e._v("destroy()")]),t("blockquote",[t("p",[e._v("v0.6.0+")])]),t("p",[e._v("Destroy mind maps. It will remove registered plugins, remove listening events, and delete all nodes on the canvas.")]),t("h3",[e._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[t("code",[e._v("paddingX")]),e._v(": Padding x")]),t("p",[t("code",[e._v("paddingY")]),e._v(": Padding y")]),t("p",[t("code",[e._v("ignoreWatermark")]),e._v(":v0.8.0+, Do not draw watermarks. If you do not need to draw watermarks, you can pass 'true' because drawing watermarks is very slow")]),t("p",[e._v("Get the "),t("code",[e._v("svg")]),e._v(" data and return an object. The detailed structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n svg, "),t("span",{staticClass:"hljs-comment"},[e._v("// Element, the overall svg element of the mind map graphics, including: svg (canvas container), g (actual mind map group)")]),e._v("\n svgHTML, "),t("span",{staticClass:"hljs-comment"},[e._v("// String, svg string, i.e. html string, can be directly rendered to the small map container you prepared")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("rect")]),e._v(": "),t("span",{staticClass:"hljs-comment"},[e._v("// Object, position, size, etc. of mind map graphics before zoom")]),e._v("\n origWidth, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas width")]),e._v("\n origHeight, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas height")]),e._v("\n scaleX, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, horizontal zoom value of mind map graphics")]),e._v("\n scaleY, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, vertical zoom value of mind map graphics")]),e._v("\n}\n")])]),t("h3",[e._v("render(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Triggers a full rendering, which will reuse nodes for better performance. If only the node positions have changed, this method can be called to "),t("code",[e._v("reRender")]),e._v(".")]),t("h3",[e._v("reRender(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Performs a full re-render, clearing the canvas and creating new nodes. This has poor performance and should be used sparingly.")]),t("h3",[e._v("resize()")]),t("p",[e._v("After the container size has changed, this method should be called to adjust.")]),t("h3",[e._v("setMode(mode)")]),t("blockquote",[t("p",[e._v("v0.1.7+")])]),t("p",[e._v("Switches between readonly and edit mode.")]),t("p",[t("code",[e._v("mode")]),e._v(":readonly、edit")]),t("h3",[e._v("on(event, fn)")]),t("p",[e._v("Listen to an event. Event list:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Event Name")]),t("th",[e._v("Description")]),t("th",[e._v("Callback Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("data_change")]),t("td",[e._v("Tree rendering data change, listen to this method to get the latest data")]),t("td",[e._v("data (current tree rendering data)")])]),t("tr",[t("td",[e._v("view_data_change(v0.1.1+)")]),t("td",[e._v("View change data, such as when dragging or zooming")]),t("td",[e._v("data (current view state data)")])]),t("tr",[t("td",[e._v("back_forward")]),t("td",[e._v("Forward or backward")]),t("td",[e._v("activeHistoryIndex (current index in the history data array), length (current length of the history data array)")])]),t("tr",[t("td",[e._v("draw_click")]),t("td",[e._v("Canvas click event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("svg_mousedown")]),t("td",[e._v("svg canvas mouse down event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("mousedown")]),t("td",[e._v("el element mouse down event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousemove")]),t("td",[e._v("el element mouse move event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("drag")]),t("td",[e._v("If it is a drag event while holding down the left button")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mouseup")]),t("td",[e._v("el element mouse up event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousewheel")]),t("td",[e._v("Mouse scroll event")]),t("td",[e._v("e (event object), dir (up or down scroll. v0.9.2+ changed to dirs, array type, which supports saving multiple directions simultaneously), this (Event event class instance) 、isTouchPad(v0.6.1+, Is it an event triggered by the touchpad)")])]),t("tr",[t("td",[e._v("contextmenu")]),t("td",[e._v("svg canvas right mouse button menu event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("node_click")]),t("td",[e._v("Node click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mousedown")]),t("td",[e._v("Node mouse down event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("Node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_dblclick")]),t("td",[e._v("Node double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_contextmenu")]),t("td",[e._v("Node right-click menu event")]),t("td",[e._v("e (event object), this (node instance)")])]),t("tr",[t("td",[e._v("node_mouseenter(v0.4.1+)")]),t("td",[e._v("Node mouseenter event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseleave(v0.4.1+)")]),t("td",[e._v("Node mouseleave event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("before_node_active")]),t("td",[e._v("Event before node activation")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("node_active")]),t("td",[e._v("Node activation event")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("expand_btn_click")]),t("td",[e._v("Node expand or collapse event")]),t("td",[e._v("this (node instance)")])]),t("tr",[t("td",[e._v("before_show_text_edit")]),t("td",[e._v("Event before node text edit box opens")]),t("td")]),t("tr",[t("td",[e._v("hide_text_edit")]),t("td",[e._v("Node text edit box close event")]),t("td",[e._v("textEditNode (text edit box DOM node), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("scale")]),t("td",[e._v("Zoom event")]),t("td",[e._v("scale (zoom ratio)")])]),t("tr",[t("td",[e._v("node_img_dblclick(v0.2.15+)")]),t("td",[e._v("Node image double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_img_mouseenter(v0.6.5+)")]),t("td",[e._v("Node image mouseenter event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mouseleave(v0.6.5+)")]),t("td",[e._v("Node image mouseleave event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mousemove(v0.6.5+)")]),t("td",[e._v("Node image mousemove event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_tree_render_end(v0.2.16+)")]),t("td",[e._v("Node tree render end event")]),t("td")]),t("tr",[t("td",[e._v("rich_text_selection_change(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. Triggered when the text selection area changes when the node is edited")]),t("td",[e._v("hasRange(Whether there is a selection)、rectInfo(Size and location information of the selected area)、formatInfo(Text formatting information of the selected area)")])]),t("tr",[t("td",[e._v("transforming-dom-to-images(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. When there is a "),t("code",[e._v("DOM")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", the "),t("code",[e._v("DOM")]),e._v(" node will be converted to an image when exporting to an image. This event will be triggered during the conversion process. You can use this event to prompt the user about the node to which you are currently converting")]),t("td",[e._v("index(Index of the node currently converted to)、len(Total number of nodes to be converted)")])]),t("tr",[t("td",[e._v("node_dragging(v0.4.5+)")]),t("td",[e._v("Triggered when a node is dragged")]),t("td",[e._v("node(The currently dragged node)")])]),t("tr",[t("td",[e._v("node_dragend(v0.4.5+)")]),t("td",[e._v("Triggered when the node is dragged and ends")]),t("td",[e._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,The node uid to which the node is moved this time, for example, if it is moved to node A, then the overlayNodeUid is the uid of node A. If it is moved to the front of node B, then the nextNodeUid is the uid of node B. You can obtain the node instance through the mindMap. extender.findNodeByUid(uid) method)")])]),t("tr",[t("td",[e._v("associative_line_click(v0.4.5+)")]),t("td",[e._v("Triggered when an associated line is clicked")]),t("td",[e._v("path(Connector node)、clickPath(Invisible click line node)、node(Start node)、toNode(Target node)")])]),t("tr",[t("td",[e._v("svg_mouseenter(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves into the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("svg_mouseleave(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves out of the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("node_icon_click(v0.6.10+)")]),t("td",[e._v("Triggered when clicking on an icon within a node")]),t("td",[e._v("this(node instance)、item(Click on the icon name)、e(event object)")])]),t("tr",[t("td",[e._v("view_theme_change(v0.6.12+)")]),t("td",[e._v("Triggered after calling the setTheme method to set the theme")]),t("td",[e._v("theme(theme name)")])]),t("tr",[t("td",[e._v("set_data(v0.7.3+)")]),t("td",[e._v("Triggered when the setData method is called to dynamically set mind map data")]),t("td",[e._v("data(New Mind Map Data)")])]),t("tr",[t("td",[e._v("resize(v0.8.0+)")]),t("td",[e._v("Triggered after the container size changes, actually when the 'resize' method of the mind map instance is called")]),t("td")]),t("tr",[t("td",[e._v("beforeDestroy(v0.9.0+)")]),t("td",[e._v("Triggered before destroying the mind map, i.e. triggered by calling the destroy method")]),t("td")]),t("tr",[t("td",[e._v("body_mousedown(v0.9.2+)")]),t("td",[e._v("Mousedown event of document.body")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("body_click")]),t("td",[e._v("Click event of document.body")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("data_change_detail(v0.9.3+)")]),t("td",[e._v("The detailed changes in rendering tree data will return an array, with each item representing an update point and each item being an object, There is a 'type' attribute that represents the type of detail, Including 'create' (create node), 'update' (update node), 'delete' (delete node), There is a 'data' attribute that represents the current updated node data. If it is of the 'update' type, there will also be an 'oldData' attribute that saves the data of the node before the update")]),t("td",[e._v("arr(Detail data)")])]),t("tr",[t("td",[e._v("layout_change(v0.9.4+)")]),t("td",[e._v("Triggered when modifying the structure, i.e. when the mindMap.setLayout() method is called")]),t("td",[e._v("layout(New layout)")])])])]),t("h3",[e._v("emit(event, ...args)")]),t("p",[e._v("Trigger an event, which can be one of the events listed above or a custom event.")]),t("h3",[e._v("off(event, fn)")]),t("p",[e._v("Unbind an event.")]),t("h3",[e._v("setTheme(theme, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Switches the theme. Available themes can be found in the options table above.")]),t("h3",[e._v("getTheme()")]),t("p",[e._v("Gets the current theme.")]),t("h3",[e._v("setThemeConfig(config, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the theme configuration. "),t("code",[e._v("config")]),e._v(" is the same as the "),t("code",[e._v("themeConfig")]),e._v(" option in the options table above.")]),t("h3",[e._v("getCustomThemeConfig()")]),t("p",[e._v("Gets the custom theme configuration.")]),t("h3",[e._v("getThemeConfig(prop)")]),t("p",[e._v("Gets the value of a specific theme configuration property.")]),t("h3",[e._v("getConfig("),t("em",[e._v("prop")]),e._v(")")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("prop")]),e._v(":Get the value of the specified configuration, and return the entire configuration if not passed")]),t("p",[e._v("Get config, That is, "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap (opt)")])]),t("h3",[e._v("updateConfig("),t("em",[e._v("opt")]),e._v(" = {})")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("opt")]),e._v(":Configuration to update")]),t("p",[e._v("Update config,That is update "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap(opt)")]),e._v(",You can only update some data, such as:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("mindMap.updateConfig({\n "),t("span",{staticClass:"hljs-attr"},[e._v("enableFreeDrag")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),t("span",{staticClass:"hljs-comment"},[e._v("// 开启节点自由拖拽")]),e._v("\n})\n")])]),t("p",[e._v("This method only updates the configuration and has no other side effects, such as triggering canvas re-rendering")]),t("h3",[e._v("getLayout()")]),t("p",[e._v("Gets the current layout structure.")]),t("h3",[e._v("setLayout(layout, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the layout structure. Available values can be found in the "),t("code",[e._v("layout")]),e._v(" field in the options table above.")]),t("h3",[e._v("execCommand(name, ...args)")]),t("p",[e._v("Executes a command, which will add a record to the history stack for undo or redo. All commands are as follows:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Command name")]),t("th",[e._v("Description")]),t("th",[e._v("Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("SELECT_ALL")]),t("td",[e._v("Select all")]),t("td")]),t("tr",[t("td",[e._v("BACK")]),t("td",[e._v("Go back a specified number of steps")]),t("td",[e._v("step (the number of steps to go back, default is 1)")])]),t("tr",[t("td",[e._v("FORWARD")]),t("td",[e._v("Go forward a specified number of steps")]),t("td",[e._v("step (the number of steps to go forward, default is 1)")])]),t("tr",[t("td",[e._v("INSERT_NODE")]),t("td",[e._v("Insert a sibling node, the active node or appoint node will be the operation node. If there are multiple active nodes, only the first one will be effective(v0.7.2+Supports simultaneous insertion of sibling nodes into multiple active nodes)")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(") 、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("INSERT_CHILD_NODE")]),t("td",[e._v("Insert a child node, the active node or appoint node will be the operation node")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(")、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("UP_NODE")]),t("td",[e._v("Move node up, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the first node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("DOWN_NODE")]),t("td",[e._v("Move node down, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the last node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("REMOVE_NODE")]),t("td",[e._v("Remove node, the active node or appoint node will be the operation node")]),t("td",[e._v("appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)")])]),t("tr",[t("td",[e._v("PASTE_NODE")]),t("td",[e._v("Paste node to a node, the active node will be the operation node")]),t("td",[e._v("data (the node data to paste, usually obtained through the renderer.copyNode() and renderer.cutNode() methods)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLE")]),t("td",[e._v("Modify node single style")]),t("td",[e._v("node (the node to set the style of), prop (style property), value (style property value), isActive (v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLEs(v0.6.12+)")]),t("td",[e._v("Modify multiple styles of nodes")]),t("td",[e._v("node(the node to set the style of)、style(Style object,key is style prop,value is style value)、isActive(v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_ACTIVE")]),t("td",[e._v("Set whether the node is active")]),t("td",[e._v("node (the node to set), active (boolean, whether to activate)")])]),t("tr",[t("td",[e._v("CLEAR_ACTIVE_NODE")]),t("td",[e._v("Clear the active state of the currently active node(s), the active node will be the operation node")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_EXPAND")]),t("td",[e._v("Set whether the node is expanded")]),t("td",[e._v("node (the node to set), expand (boolean, whether to expand)")])]),t("tr",[t("td",[e._v("EXPAND_ALL")]),t("td",[e._v("Expand all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_ALL")]),t("td",[e._v("Collapse all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_TO_LEVEL (v0.2.8+)")]),t("td",[e._v("Expand to a specified level")]),t("td",[e._v("level (the level to expand to, 1, 2, 3...)")])]),t("tr",[t("td",[e._v("SET_NODE_DATA")]),t("td",[e._v("Update node data, that is, update the data in the data object of the node data object. Note that this command will not trigger view updates")]),t("td",[e._v("node (the node to set), data (object, the data to update, e.g. "),t("code",[e._v("{expand: true}")]),e._v(")")])]),t("tr",[t("td",[e._v("SET_NODE_TEXT")]),t("td",[e._v("Set node text")]),t("td",[e._v("node (the node to set), text (the new text for the node), richText(v0.4.0+, If you want to set a rich text character, you need to set it to "),t("code",[e._v("true")]),e._v(")、resetRichText(v0.6.10+Do you want to reset rich text? The default is false. If true is passed, the style of the rich text node will be reset)")])]),t("tr",[t("td",[e._v("SET_NODE_IMAGE")]),t("td",[e._v("Set Node Image")]),t("td",[e._v("node (node to set), imgData (object, image information, structured as: "),t("code",[e._v("{url, title, width, height}")]),e._v(", the width and height of the image must be passed)")])]),t("tr",[t("td",[e._v("SET_NODE_ICON")]),t("td",[e._v("Set Node Icon")]),t("td",[e._v("node (node to set), icons (array, predefined image names array, available icons can be obtained in the nodeIconList list in the "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[e._v("icons.js")]),e._v(" file, icon name is type_name, such as ['priority_1'])")])]),t("tr",[t("td",[e._v("SET_NODE_HYPERLINK")]),t("td",[e._v("Set Node Hyperlink")]),t("td",[e._v("node (node to set), link (hyperlink address), title (hyperlink name, optional)")])]),t("tr",[t("td",[e._v("SET_NODE_NOTE")]),t("td",[e._v("Set Node Note")]),t("td",[e._v("node (node to set), note (note text)")])]),t("tr",[t("td",[e._v("SET_NODE_TAG")]),t("td",[e._v("Set Node Tag")]),t("td",[e._v("node (node to set), tag (string array, built-in color information can be obtained in "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[e._v("constant.js")]),e._v(")")])]),t("tr",[t("td",[e._v("INSERT_AFTER (v0.1.5+)")]),t("td",[e._v("Move Node to After Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("INSERT_BEFORE (v0.1.5+)")]),t("td",[e._v("Move Node to Before Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("MOVE_NODE_TO (v0.1.5+)")]),t("td",[e._v("Move a node as a child of another node")]),t("td",[e._v("node (the node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), toNode (the target node)")])]),t("tr",[t("td",[e._v("ADD_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Add a node summary")]),t("td",[e._v("data (the data for the summary, in object format, all numerical fields of the node are supported, default is "),t("code",[e._v("{text: 'summary'}")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Remove a node summary")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_CUSTOM_POSITION (v0.2.0+)")]),t("td",[e._v("Set a custom position for a node")]),t("td",[e._v("node (the node to set), left (custom x coordinate, default is undefined), top (custom y coordinate, default is undefined)")])]),t("tr",[t("td",[e._v("RESET_LAYOUT (v0.2.0+)")]),t("td",[e._v("Arrange layout with one click")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_SHAPE (v0.2.4+)")]),t("td",[e._v("Set the shape of a node")]),t("td",[e._v("node (the node to set), shape (the shape, all shapes: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[e._v("Shape.js")]),e._v(")")])]),t("tr",[t("td",[e._v("GO_TARGET_NODE(v0.6.7+)")]),t("td",[e._v("Navigate to a node, and if the node is collapsed, it will automatically expand to that node")]),t("td",[e._v("node(Node instance or node uid to locate)、callback(v0.6.9+, Callback function after positioning completion)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple sibling nodes into the specified node at the same time, with the operating node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), nodeList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple child nodes into the specified node simultaneously, with the operation node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), childList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_FORMULA(v0.7.2+)")]),t("td",[e._v("Insert mathematical formulas into nodes, operate on the currently active node or specified node")]),t("td",[e._v("formula(Mathematical formula to insert, LaTeX syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node)")])]),t("tr",[t("td",[e._v("INSERT_PARENT_NODE(v0.8.0+)")]),t("td",[e._v("Insert a parent node into the specified node, with the operation node being the currently active node or the specified node")]),t("td",[e._v("openEdit(Activate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodes(Optional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array)、 appointData(Optional, specify the data for the newly created node, such as {text: 'xxx', ...}, Detailed structure can be referenced "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),t("td",[e._v("Delete only the current node, operate on the currently active node or specified node")]),t("td",[e._v("appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array)")])]),t("tr",[t("td",[e._v("MOVE_UP_ONE_LEVEL(v0.9.6+)")]),t("td",[e._v("Move the specified node up one level")]),t("td",[e._v("node(Optional, specify the node to move up the hierarchy, if not passed, it will be the first node in the current active node)")])]),t("tr",[t("td",[e._v("REMOVE_CUSTOM_STYLES(v0.9.7+)")]),t("td",[e._v("One click removal of custom styles for a node")]),t("td",[e._v("node(Optional, specify the node to clear the custom style, otherwise it will be the first one in the current active node)")])]),t("tr",[t("td",[e._v("REMOVE_ALL_NODE_CUSTOM_STYLES(v0.9.7+)")]),t("td",[e._v("One click removal of multiple nodes or custom styles for all nodes")]),t("td",[e._v("appointNodes(Optional, node instance array, specifying multiple nodes to remove custom styles from. If not passed, the custom styles of all nodes on the current canvas will be removed)")])])])]),t("h3",[e._v("setData(data)")]),t("p",[e._v("Dynamic setting of mind map data, pure node data")]),t("p",[t("code",[e._v("data")]),e._v(": mind map structure data")]),t("h3",[e._v("setFullData("),t("em",[e._v("data")]),e._v(")")]),t("blockquote",[t("p",[e._v("v0.2.7+")])]),t("p",[e._v("Dynamic setting of mind map data, including node data, layout, theme, view")]),t("p",[t("code",[e._v("data")]),e._v(": complete data, structure can refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[e._v("exportFullData")])]),t("h3",[e._v("getData(withConfig)")]),t("blockquote",[t("p",[e._v("v0.2.9+")])]),t("p",[e._v("Gets mind map data")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", that is, the obtained data only includes the node tree, if "),t("code",[e._v("true")]),e._v(" is passed, it will also include theme, layout, view, etc. data")]),t("h3",[e._v("export(type, isDownload, fileName)")]),t("blockquote",[t("p",[e._v("You need to register the "),t("code",[e._v("Export")]),e._v(" plugin first")])]),t("p",[e._v("Export")]),t("p",[t("code",[e._v("type")]),e._v(": the type to be exported, optional values: png, svg, json, pdf (v0.2.1+), smm (essentially also json)")]),t("p",[t("code",[e._v("isDownload")]),e._v(": whether to directly trigger download, Boolean value, default is "),t("code",[e._v("false")])]),t("p",[t("code",[e._v("fileName")]),e._v(": (v0.1.6+) the name of the exported file, default is "),t("code",[e._v("思维导图")]),e._v(" (mind map).")]),t("p",[e._v("If it is exported as "),t("code",[e._v("png")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("transparent")]),e._v(": v0.5.7+, "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", Specify whether the background of the exported image is transparent")]),t("p",[e._v("If it is exported as "),t("code",[e._v("svg")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("plusCssText")]),e._v(": Additional "),t("code",[e._v("CSS")]),e._v(" style. If there is a "),t("code",[e._v("dom")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", you can pass in some styles specific to the node through this parameter")]),t("p",[e._v("If it is exported as "),t("code",[e._v("json")]),e._v(" or "),t("code",[e._v("smm")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("true")]),e._v(", Specify whether the exported data includes configuration data, otherwise only pure node tree data will be exported")]),t("h3",[e._v("toPos(x, y)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Convert the coordinates of the browser's visible window to coordinates relative to the canvas.")]),t("h3",[e._v("addPlugin(plugin, opt)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Register plugin, Use "),t("code",[e._v("MindMap.usePlugin")]),e._v(" to register plugin only before instantiation, The registered plugin will not take effect after instantiation, So if you want to register the plugin after instantiation, you can use the "),t("code",[e._v("addPlugin")]),e._v(" method of the instance.")]),t("h3",[e._v("removePlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Remove registered plugin, Plugins registered through the "),t("code",[e._v("usePlugin")]),e._v(" or "),t("code",[e._v("addPlugin")]),e._v(" methods can be removed.")])])}],d={},i=d,s=n("2877"),r=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=r.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-2d0dad5f.js b/dist/js/chunk-2d0dad5f.js index 26205f41..b5a84e7b 100644 --- a/dist/js/chunk-2d0dad5f.js +++ b/dist/js/chunk-2d0dad5f.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dad5f"],{"6cfb":function(t,v,_){"use strict";_.r(v);var e=function(){var t=this;t._self._c;return t._m(0)},d=[function(){var t=this,v=t._self._c;return v("div",[v("h1",[t._v("构造函数")]),v("h2",[t._v("基本使用")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-tag"},[t._v("<"),v("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(" "),v("span",{staticClass:"hljs-attr"},[t._v("id")]),t._v("="),v("span",{staticClass:"hljs-string"},[t._v('"mindMapContainer"')]),t._v(">")]),v("span",{staticClass:"hljs-tag"},[t._v("")]),t._v("\n")])]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v('"simple-mind-map"')]),t._v(";\n\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("el")]),t._v(": "),v("span",{staticClass:"hljs-built_in"},[t._v("document")]),t._v(".getElementById("),v("span",{staticClass:"hljs-string"},[t._v("'mindMapContainer'")]),t._v("),\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"data"')]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"text"')]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v('"根节点"')]),t._v("\n },\n "),v("span",{staticClass:"hljs-string"},[t._v('"children"')]),t._v(": []\n }\n});\n")])]),v("h2",[t._v("实例化选项")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("el")]),v("td",[t._v("Element")]),v("td"),v("td",[t._v("容器元素,必传,必须为DOM元素")])]),v("tr",[v("td",[t._v("data")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("思维导图数据,可参考下方【数据结构】介绍")])]),v("tr",[v("td",[t._v("layout")]),v("td",[t._v("String")]),v("td",[t._v("logicalStructure")]),v("td",[t._v("布局类型,可选列表:logicalStructure(逻辑结构图)、mindMap(思维导图)、catalogOrganization(目录组织图)、organizationStructure(组织结构图)、timeline(v0.5.4+,时间轴)、timeline2(v0.5.4+,上下交替型时间轴)、fishbone(v0.5.4+,鱼骨图)")])]),v("tr",[v("td",[t._v("fishboneDeg(v0.5.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("45")]),v("td",[t._v("设置鱼骨结构图的斜线角度")])]),v("tr",[v("td",[t._v("theme")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("主题,可选列表:default(默认)、classic(脑图经典)、minions(小黄人)、pinkGrape(粉红葡萄)、mint(薄荷)、gold(金色vip)、vitalityOrange(活力橙)、greenLeaf(绿叶)、dark2(暗色2)、skyGreen(天清绿)、classic2(脑图经典2)、classic3(脑图经典3)、classic4(脑图经典4,v0.2.0+)、classicGreen(经典绿)、classicBlue(经典蓝)、blueSky(天空蓝)、brainImpairedPink(脑残粉)、dark(暗色)、earthYellow(泥土黄)、freshGreen(清新绿)、freshRed(清新红)、romanticPurple(浪漫紫)、simpleBlack(v0.5.4+简约黑)、courseGreen(v0.5.4+课程绿)、coffee(v0.5.4+咖啡)、redSpirit(v0.5.4+红色精神)、blackHumour(v0.5.4+黑色幽默)、lateNightOffice(v0.5.4+深夜办公室)、blackGold(v0.5.4+黑金)、avocado(v.5.10-fix.2+牛油果)、autumn(v.5.10-fix.2+秋天)、orangeJuice(v.5.10-fix.2+橙汁)")])]),v("tr",[v("td",[t._v("themeConfig")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("主题配置,会和所选择的主题进行合并,可用字段可参考:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("default.js")])])]),v("tr",[v("td",[t._v("scaleRatio")]),v("td",[t._v("Number")]),v("td",[t._v("0.1")]),v("td",[t._v("放大缩小的增量比例")])]),v("tr",[v("td",[t._v("maxTag")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里最多显示的标签数量,多余的会被丢弃")])]),v("tr",[v("td",[t._v("exportPadding")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("导出图片时的内边距")])]),v("tr",[v("td",[t._v("imgTextMargin")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里图片和文字的间距")])]),v("tr",[v("td",[t._v("textContentMargin")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点里各种文字信息的间距,如图标和文字的间距")])]),v("tr",[v("td",[t._v("selectTranslateStep")]),v("td",[t._v("Number")]),v("td",[t._v("3")]),v("td",[t._v("多选节点时鼠标移动到边缘时的画布移动偏移量")])]),v("tr",[v("td",[t._v("selectTranslateLimit")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("多选节点时鼠标移动距边缘多少距离时开始偏移")])]),v("tr",[v("td",[t._v("customNoteContentShow(v0.1.6+)")]),v("td",[t._v("Object")]),v("td",[t._v("null")]),v("td",[t._v("自定义节点备注内容显示,Object类型,结构为:{show: (noteContent, left, top, node) => {// 你的显示节点备注逻辑。node为v0.8.1+版本新增的回参,代表节点实例 }, hide: () => {// 你的隐藏节点备注逻辑 }}")])]),v("tr",[v("td",[t._v("readonly(v0.1.7+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否是只读模式")])]),v("tr",[v("td",[t._v("enableFreeDrag(v0.2.4+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否开启节点自由拖拽(自由拖拽即可以把节点拖拽到画布的任意位置,注意不是拖拽节点成为其他节点的子节点兄弟节点的功能,自由拖拽的连线会存在一定问题,所以该特性最好不要使用)")])]),v("tr",[v("td",[t._v("watermarkConfig(v0.2.4+)")]),v("td",[t._v("Object")]),v("td"),v("td",[t._v("水印配置,详细配置请参考下方表格【水印配置】")])]),v("tr",[v("td",[t._v("textAutoWrapWidth(v0.3.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("500")]),v("td",[t._v("节点内每行文本达到该宽度后自动换行")])]),v("tr",[v("td",[t._v("customHandleMousewheel(v0.4.3+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象")])]),v("tr",[v("td",[t._v("mousewheelAction(v0.4.3+)")]),v("td",[t._v("String")]),v("td",[t._v("zoom(v0.9.1+默认改为move)")]),v("td",[t._v("鼠标滚轮的行为,"),v("code",[t._v("zoom")]),t._v("(放大缩小)、"),v("code",[t._v("move")]),t._v("(上下移动)。如果"),v("code",[t._v("customHandleMousewheel")]),t._v("传了自定义函数,这个属性不生效")])]),v("tr",[v("td",[t._v("mousewheelMoveStep(v0.4.3+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("当"),v("code",[t._v("mousewheelAction")]),t._v("设为"),v("code",[t._v("move")]),t._v("时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位"),v("code",[t._v("px")])])]),v("tr",[v("td",[t._v("mousewheelZoomActionReverse(v0.6.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false(v0.9.1+默认改为true)")]),v("td",[t._v("当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来")])]),v("tr",[v("td",[t._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("二级节点")]),v("td",[t._v("默认插入的二级节点的文字")])]),v("tr",[v("td",[t._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("分支主题")]),v("td",[t._v("默认插入的二级以下节点的文字")])]),v("tr",[v("td",[t._v("expandBtnStyle(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),v("td",[t._v("展开收起按钮的颜色,(fontSize及strokeColor字段为0.7.0+版本新增的,用于设置收起时显示节点数量的文字样式)")])]),v("tr",[v("td",[t._v("expandBtnIcon(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ open: '', close: '' }")]),v("td",[t._v("自定义展开收起按钮的图标,可以传图标的svg字符串")])]),v("tr",[v("td",[t._v("expandBtnNumHandler(v0.7.0+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("用于自定义收起时显示节点数量的内容,接收一个参数,代表收起的节点实例,需要返回一个数字或字符串,代表最终显示的内容,比如你可以当数量大于99时,显示99+")])]),v("tr",[v("td",[t._v("isShowExpandNum(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("节点收起时是否显示收起的数量")])]),v("tr",[v("td",[t._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否只有当鼠标在画布内才响应快捷键事件")])]),v("tr",[v("td",[t._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启节点动画过渡")])]),v("tr",[v("td",[t._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Number")]),v("td",[t._v("300")]),v("td",[t._v("如果开启节点动画过渡,可以通过该属性设置过渡的时间,单位ms")])]),v("tr",[v("td",[t._v("initRootNodePosition(v0.5.3+)")]),v("td",[t._v("Array")]),v("td",[t._v("null")]),v("td",[t._v("初始根节点的位置,可传一个数组,默认为"),v("code",[t._v("['center', 'center']")]),t._v(",代表根节点处于画布中心位置,除了"),v("code",[t._v("center")]),t._v(",关键词还可以设置"),v("code",[t._v("left")]),t._v("、"),v("code",[t._v("top")]),t._v("、"),v("code",[t._v("right")]),t._v("、"),v("code",[t._v("bottom")]),t._v(",除了可以传关键词,数组的每项还可以传递一个数字,代表具体的像素,可以传递一个百分比字符串,比如"),v("code",[t._v("['40%', '60%']")]),t._v(",代表水平位置在画布宽度的"),v("code",[t._v("40%")]),t._v("的位置,垂直位置在画布高度的"),v("code",[t._v("60%")]),t._v("的位置")])]),v("tr",[v("td",[t._v("exportPaddingX(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形水平内边距")])]),v("tr",[v("td",[t._v("exportPaddingY(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形垂直内边距")])]),v("tr",[v("td",[t._v("nodeTextEditZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点文本编辑框元素的z-index")])]),v("tr",[v("td",[t._v("nodeNoteTooltipZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点备注浮层元素的z-index")])]),v("tr",[v("td",[t._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在点击了画布外的区域时结束节点文本的编辑状态")])]),v("tr",[v("td",[t._v("maxHistoryCount(v0.5.6+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000(v0.9.2+改为500)")]),v("td",[t._v("最大历史记录数")])]),v("tr",[v("td",[t._v("alwaysShowExpandBtn(v0.5.8+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否一直显示节点的展开收起按钮,默认为鼠标移上去和激活时才显示")])]),v("tr",[v("td",[t._v("iconList(v0.5.8+)")]),v("td",[t._v("Array")]),v("td",[t._v("[]")]),v("td",[t._v("扩展节点可插入的图标,数组的每一项为一个对象,对象详细结构请参考下方【图标配置】表格")])]),v("tr",[v("td",[t._v("maxNodeCacheCount(v0.5.10+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("节点最大缓存数量。为了优化性能,内部会维护一个节点缓存池,用来复用节点,通过该属性可以指定池的最大缓存数量")])]),v("tr",[v("td",[t._v("defaultAssociativeLineText(v0.5.11+)")]),v("td",[t._v("String")]),v("td",[t._v("关联")]),v("td",[t._v("关联线默认文字")])]),v("tr",[v("td",[t._v("fitPadding(v0.6.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("50")]),v("td",[t._v("思维导图适应画布大小时的内边距,单位:px")])]),v("tr",[v("td",[t._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启按住ctrl键多选节点的功能")])]),v("tr",[v("td",[t._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置为左键多选节点,右键拖动画布")])]),v("tr",[v("td",[t._v("beforeTextEdit(v0.6.0+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("节点即将进入编辑前的回调方法,如果该方法返回true以外的值,那么将取消编辑,函数可以返回一个值,或一个Promise,回调参数为节点实例")])]),v("tr",[v("td",[t._v("isUseCustomNodeContent(v0.6.3+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否自定义节点内容")])]),v("tr",[v("td",[t._v("customCreateNodeContent(v0.6.3+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("如果"),v("code",[t._v("isUseCustomNodeContent")]),t._v("设为"),v("code",[t._v("true")]),t._v(",那么需要使用该选项传入一个方法,接收节点实例"),v("code",[t._v("node")]),t._v("为参数(如果要获取该节点的数据,可以通过"),v("code",[t._v("node.nodeData.data")]),t._v("),需要返回自定义节点内容元素,也就是DOM节点,如果某个节点不需要自定义,那么返回"),v("code",[t._v("null")]),t._v("即可")])]),v("tr",[v("td",[t._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("鼠标缩放是否以鼠标当前位置为中心点,否则以画布中心点")])]),v("tr",[v("td",[t._v("customInnerElsAppendTo(v0.6.12+)")]),v("td",[t._v("null/HTMLElement")]),v("td",[t._v("null")]),v("td",[t._v("指定内部一些元素(节点文本编辑元素、节点备注显示元素、关联线文本编辑元素、节点图片调整按钮元素)添加到的位置,默认添加到document.body下")])]),v("tr",[v("td",[t._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("拖拽元素时,指示元素新位置的块的最大高度")])]),v("tr",[v("td",[t._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+版本已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否允许创建一个隐藏的输入框,该输入框会在节点激活时聚焦,用于粘贴数据和自动进入文本编辑状态")])]),v("tr",[v("td",[t._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在存在一个激活节点时,当按下中文、英文、数字按键时自动进入文本编辑模式")])]),v("tr",[v("td",[t._v("richTextEditFakeInPlace(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置富文本节点编辑框和节点大小一致,形成伪原地编辑的效果,需要注意的是,只有当节点内只有文本、且形状是矩形才会有比较好的效果")])]),v("tr",[v("td",[t._v("customHandleClipboardText(v0.6.14+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义对剪贴板文本的处理。当按ctrl+v粘贴时会读取用户剪贴板中的文本和图片,默认只会判断文本是否是普通文本和simple-mind-map格式的节点数据,如果你想处理其他思维导图的数据,比如processon、zhixi等,那么可以传递一个函数,接受当前剪贴板中的文本为参数,返回处理后的数据,可以返回两种类型:1.返回一个纯文本,那么会直接以该文本创建一个子节点;2.返回一个节点对象,格式如下:{ simpleMindMap: true, data: { data: { text: '' }, children: [] } },代表是simple-mind-map格式的数据,节点数据同simple-mind-map节点数据格式,如果你的处理逻辑存在异步逻辑,也可以返回一个promise")])]),v("tr",[v("td",[t._v("errorHandler(v0.6.15+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("自定义错误处理函数,目前只会抛出一些异步逻辑出错的情况。可以传递一个函数,会接收两个参数,第一个为错误的类型,第二个为错误对象")])]),v("tr",[v("td",[t._v("disableMouseWheelZoom(v0.6.15+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止鼠标滚轮缩放,你仍旧可以使用api进行缩放")])]),v("tr",[v("td",[t._v("resetCss(v0.6.16+)")]),v("td",[t._v("String")]),v("td",[t._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),v("td",[t._v("设置导出图片和svg时,针对富文本节点内容,也就是嵌入到svg中的html节点的默认样式覆盖,如果不覆盖,节点内容会发生偏移")])]),v("tr",[v("td",[t._v("enableDblclickReset(v0.6.17+)(v0.8.0+已删除该属性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true(v0.7.0+改为false)")]),v("td",[t._v("开启鼠标双击复位思维导图位置及缩放")])]),v("tr",[v("td",[t._v("enableDblclickBackToRootNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否在鼠标双击时回到根节点,也就是让根节点居中显示")])]),v("tr",[v("td",[t._v("minExportImgCanvasScale(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("导出图片和pdf时canvas的缩放倍数,该配置会和window.devicePixelRatio值取最大值,用于提升图片清晰度")])]),v("tr",[v("td",[t._v("hoverRectColor(v0.7.0+)")]),v("td",[t._v("String")]),v("td",[t._v("rgb(94, 200, 248)")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框颜色,hover时会添加0.6的透明度")])]),v("tr",[v("td",[t._v("hoverRectPadding(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框距节点内容的距离")])]),v("tr",[v("td",[t._v("selectTextOnEnterEditText(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("双击节点进入节点文本编辑时是否默认选中文本,默认只在创建新节点时会选中")])]),v("tr",[v("td",[t._v("deleteNodeActive(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启删除节点后自动激活节点相邻节点或父节点的功能")])]),v("tr",[v("td",[t._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("拖拽节点时鼠标移动到画布边缘是否开启画布自动移动")])]),v("tr",[v("td",[t._v("fit(v0.7.1-fix.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("首次渲染时是否缩放至适应画布大小")])]),v("tr",[v("td",[t._v("dragMultiNodeRectConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ width: 40, height: 20, fill: '' }")]),v("td",[t._v("拖拽多个节点时随鼠标移动的示意矩形的样式配置,传递一个对象,字段含义分别为矩形的宽、高、填充色")])]),v("tr",[v("td",[t._v("dragPlaceholderRectFill(v0.7.2+)")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("节点拖拽时新位置的示意矩形的填充颜色,如果不传默认使用连线的颜色")])]),v("tr",[v("td",[t._v("dragOpacityConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),v("td",[t._v("节点拖拽时的透明度配置,传递一个对象,字段含义分别为:跟随鼠标移动的克隆节点或矩形的透明度、被拖拽节点的透明度")])]),v("tr",[v("td",[t._v("tagsColorMap(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("自定义节点标签的颜色,可传一个对象,key为要指定颜色的标签内容,value为该标签内容的颜色,如果不传内部会根据标签内容生成对应的颜色")])]),v("tr",[v("td",[t._v("cooperateStyle(v0.7.3+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ avatarSize: 22, fontSize: 12 }")]),v("td",[t._v("节点协作编辑时的人员头像样式配置,字段含义分别为:头像大小、如果是文字头像,那么文字的大小")])]),v("tr",[v("td",[t._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("关联线是否始终显示在节点上层,如果设为false,那么创建关联线和激活关联线时处于最顶层,其他情况下处于节点下方")])]),v("tr",[v("td",[t._v("defaultGeneralizationText(v0.8.0+)")]),v("td",[t._v("String")]),v("td",[t._v("概要")]),v("td",[t._v("插入概要的默认文本")])]),v("tr",[v("td",[t._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),v("td",[t._v("Function / null")]),v("td",[t._v("null")]),v("td",[t._v("粘贴文本的方式创建新节点时,控制是否按换行自动分割节点,即如果存在换行,那么会根据换行创建多个节点,否则只会创建一个节点,可以传递一个函数,返回promise,resolve代表根据换行分割,reject代表忽略换行")])]),v("tr",[v("td",[t._v("addHistoryTime(v0.8.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态,单位:ms")])]),v("tr",[v("td",[t._v("isDisableDrag(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否禁止拖动画布")])]),v("tr",[v("td",[t._v("disableTouchZoom(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止双指缩放,你仍旧可以使用api进行缩放,对TouchEvent插件生效")])]),v("tr",[v("td",[t._v("highlightNodeBoxStyle(v0.9.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),v("td",[t._v("鼠标移入概要高亮所属节点时的高亮框样式")])]),v("tr",[v("td",[t._v("createNewNodeBehavior(v0.9.1+)")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式)")])]),v("tr",[v("td",[t._v("defaultNodeImage(v0.9.1-fix.2+)")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图片地址,当节点图片加载失败时显示的默认图片")])]),v("tr",[v("td",[t._v("handleNodePasteImg(v0.9.2+)")]),v("td",[t._v("null 或 Function")]),v("td",[t._v("null")]),v("td",[t._v("在节点上粘贴剪贴板中的图片的处理方法,默认是转换为data:url数据插入到节点中,你可以通过该方法来将图片数据上传到服务器,实现保存图片的url。可以传递一个异步方法,接收Blob类型的图片数据,需要返回指定结构:{ url, size: {width, height} }")])]),v("tr",[v("td",[t._v("isLimitMindMapInCanvas(v0.9.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否将思维导图限制在画布内。比如向右拖动时,思维导图图形的最左侧到达画布中心时将无法继续向右拖动,其他同理")])]),v("tr",[v("td",[t._v("isLimitMindMapInCanvasWhenHasScrollbar(v0.9.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("当注册了滚动条插件(Scrollbar)时,是否将思维导图限制在画布内,isLimitMindMapInCanvas配置不再起作用")])]),v("tr",[v("td",[t._v("associativeLineInitPointsPosition(v0.9.5+)")]),v("td",[t._v("null / { from, to }")]),v("td",[t._v("{ from: '', to: '' }")]),v("td",[t._v("默认情况下,新创建的关联线两个端点的位置是根据两个节点中心点的相对位置来计算的,如果你想固定位置,可以通过这个选项来配置。from和to都不传,则都自动计算,如果只传一个,另一个则会自动计算。from和to可选值:left、top、bottom、right")])]),v("tr",[v("td",[t._v("enableAdjustAssociativeLinePoints(v0.9.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否允许调整关联线两个端点的位置")])])])]),v("h3",[t._v("数据结构")]),v("p",[t._v("基本的数据结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本,可以是富文本,也就是html格式的,此时richText要设为true")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("richText")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本是否是富文本模式")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("expand")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点是否展开")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("uid")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 节点唯一的id,可不传,内部会生成")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("icon")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 图标,格式可参考教程里的【插入和扩展节点图标】章节")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("image")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的url")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的标题,可为空")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageSize")]),t._v(": { "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的尺寸")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("width")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的宽度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("height")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的高度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("custom")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(" "),v("span",{staticClass:"hljs-comment"},[t._v("// 如果设为true,图片的显示大小不受主题控制,以imageSize.width和imageSize.height为准")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlink")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接地址")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlinkTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接的标题")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("note")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 备注的内容")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("tag")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 标签列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("generalization")]),t._v(": {"),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的概要,如果没有概要generalization设为null即可")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),v("span",{staticClass:"hljs-comment"},[t._v("// 概要的文本")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineTargets")]),t._v(": ["),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v("],"),v("span",{staticClass:"hljs-comment"},[t._v("// 如果存在关联线,那么为目标节点的uid列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineText")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 关联线文本")]),t._v("\n "),v("span",{staticClass:"hljs-comment"},[t._v("// ...其他样式字段,可以参考主题")]),t._v("\n },\n children ["),v("span",{staticClass:"hljs-comment"},[t._v("// 子节点,结构和根节点一致")]),t._v("\n {\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {},\n "),v("span",{staticClass:"hljs-attr"},[t._v("children")]),t._v(": []\n }\n ]\n}\n")])]),v("p",[t._v("如果你要添加自定义的字段,可以添加到"),v("code",[t._v("data")]),t._v("、"),v("code",[t._v("children")]),t._v("同级,如果你要添加到"),v("code",[t._v("data")]),t._v("对象里,那么请使用"),v("code",[t._v("_")]),t._v("开头来命名你的自定义字段,内部会通过这个来判断是否是自定义字段。")]),v("h3",[t._v("水印配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("text")]),v("td",[t._v("String")]),v("td",[t._v("''")]),v("td",[t._v("水印文字,如果为空字符串则不显示水印")])]),v("tr",[v("td",[t._v("lineSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("水印每行之间的间距")])]),v("tr",[v("td",[t._v("textSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("同一行水印之间的间距")])]),v("tr",[v("td",[t._v("angle")]),v("td",[t._v("Number")]),v("td",[t._v("30")]),v("td",[t._v("水印的倾斜角度,范围:[0, 90]")])]),v("tr",[v("td",[t._v("textStyle")]),v("td",[t._v("Object")]),v("td",[t._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),v("td",[t._v("水印文字样式")])]),v("tr",[v("td",[t._v("onlyExport(v0.9.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否仅在导出时添加水印")])])])]),v("h3",[t._v("图标配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("name")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的名称")])]),v("tr",[v("td",[t._v("type")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的值")])]),v("tr",[v("td",[t._v("list")]),v("td",[t._v("Array")]),v("td"),v("td",[t._v("分组下的图标列表,数组的每一项为一个对象,"),v("code",[t._v("{ name: '', icon: '' }")]),t._v(","),v("code",[t._v("name")]),t._v("代表图标的名称,"),v("code",[t._v("icon")]),t._v("代表图标,可以是"),v("code",[t._v("svg")]),t._v("图标,比如"),v("code",[t._v("")]),t._v(",也可以是图片"),v("code",[t._v("url")]),t._v(",或者是"),v("code",[t._v("base64")]),t._v("图标,比如"),v("code",[t._v("data:image/png;base64,...")])])])])]),v("h2",[t._v("静态方法")]),v("h3",[t._v("defineTheme(name, config)")]),v("blockquote",[v("p",[t._v("v0.2.23+")])]),v("p",[t._v("定义新主题。")]),v("p",[v("code",[t._v("name")]),t._v(":新主题名称")]),v("p",[v("code",[t._v("config")]),t._v(":主题数据")]),v("p",[v("code",[t._v("simple-mind-map")]),t._v("内置了众多主题,另外你也可以注册新主题,建议在实例化之前进行注册,这样在实例化时可以直接使用新注册的主题,使用示例:")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 注册新主题")]),t._v("\nMindMap.defineTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(", {})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 1.实例化时使用新注册的主题")]),t._v("\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("theme")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v("\n})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 2.动态切换新主题")]),t._v("\nmindMap.setTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(")\n")])]),v("p",[t._v("主题的所有配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("默认主题")]),t._v("。"),v("code",[t._v("defineTheme")]),t._v("方法会把你传入的配置和默认配置做合并。大部分主题其实需要自定义的部分不是很多,一个典型的自定义主题配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[t._v("blueSky")]),t._v("。")]),v("h3",[t._v("usePlugin(plugin, opt = {})")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("ul",[v("li",[v("code",[t._v("opt")]),t._v(":v0.4.0+,插件参数。如果某个插件支持自定义选项的话可以通过这个参数传入。")])]),v("p",[t._v("注册插件,如果需要使用非核心的一些功能,比如小地图、水印等,可以通过该方法进行注册。可链式调用。")]),v("p",[t._v("注意:插件需要在实例化"),v("code",[t._v("MindMap")]),t._v("前注册。")]),v("h3",[t._v("hasPlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("获取是否注册了某个插件,返回的是插件在注册插件列表里的索引,为"),v("code",[t._v("-1")]),t._v("则代表插件没有注册。")]),v("h2",[t._v("静态属性")]),v("h3",[t._v("pluginList")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[t._v("当前注册的所有插件列表。")]),v("h2",[t._v("实例属性")]),v("h3",[t._v("el")]),v("p",[t._v("容器元素。")]),v("h3",[t._v("opt")]),v("p",[t._v("配置选项对象。")]),v("h3",[t._v("svg")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用SVG()方法返回的节点实例")])]),v("p",[t._v("画布svg元素。")]),v("h3",[t._v("draw")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("svg节点的子节点")])]),v("p",[t._v("容器元素,用于承载节点、连线等内容。")]),v("h3",[t._v("lineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点连线元素的容器。")]),v("h3",[t._v("nodeDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点元素的容器。")]),v("h3",[t._v("associativeLineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("在注册了关联线插件的情况下可用")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("关联线内容的容器。")]),v("h3",[t._v("otherDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("其他内容的容器。")]),v("h3",[t._v("elRect")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的尺寸、位置信息。调用"),v("code",[t._v("getBoundingClientRect()")]),t._v("方法的返回结果。")]),v("h3",[t._v("width")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的宽度。")]),v("h3",[t._v("height")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的高度。")]),v("h3",[t._v("themeConfig")]),v("p",[t._v("当前主题配置。")]),v("h2",[t._v("实例方法")]),v("h3",[t._v("clearDraw()")]),v("blockquote",[v("p",[t._v("v0.8.0+")])]),v("p",[t._v("清空"),v("code",[t._v("lineDraw")]),t._v("、"),v("code",[t._v("associativeLineDraw")]),t._v("、"),v("code",[t._v("nodeDraw")]),t._v("、"),v("code",[t._v("otherDraw")]),t._v("容器。")]),v("h3",[t._v("destroy()")]),v("blockquote",[v("p",[t._v("v0.6.0+")])]),v("p",[t._v("销毁思维导图。会移除注册的插件、移除监听的事件、删除画布的所有节点。")]),v("h3",[t._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[v("code",[t._v("paddingX")]),t._v(":水平内边距")]),v("p",[v("code",[t._v("paddingY")]),t._v(":垂直内边距")]),v("p",[v("code",[t._v("ignoreWatermark")]),t._v(":v0.8.0+,不要绘制水印,如果不需要绘制水印的场景可以传"),v("code",[t._v("true")]),t._v(",因为绘制水印非常慢")]),v("p",[t._v("获取"),v("code",[t._v("svg")]),t._v("数据,返回一个对象,详细结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n svg, "),v("span",{staticClass:"hljs-comment"},[t._v("// Element,思维导图图形的整体svg元素,包括:svg(画布容器)、g(实际的思维导图组)")]),t._v("\n svgHTML, "),v("span",{staticClass:"hljs-comment"},[t._v("// String,svg字符串,即html字符串,可以直接渲染到你准备的小地图容器内")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("rect")]),t._v(": "),v("span",{staticClass:"hljs-comment"},[t._v("// Object,思维导图图形未缩放时的位置尺寸等信息")]),t._v("\n origWidth, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布宽度")]),t._v("\n origHeight, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布高度")]),t._v("\n scaleX, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的水平缩放值")]),t._v("\n scaleY, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的垂直缩放值")]),t._v("\n}\n")])]),v("h3",[t._v("render(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("触发整体渲染,会进行节点复用,性能较"),v("code",[t._v("reRender")]),t._v("会更好一点,如果只是节点位置变化了可以调用该方法进行渲染")]),v("h3",[t._v("reRender(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("整体重新渲染,会清空画布,节点也会重新创建,性能不好,慎重使用")]),v("h3",[t._v("resize()")]),v("p",[t._v("容器尺寸变化后,需要调用该方法进行适应")]),v("h3",[t._v("setMode(mode)")]),v("blockquote",[v("p",[t._v("v0.1.7+")])]),v("p",[t._v("切换模式为只读或编辑。")]),v("p",[v("code",[t._v("mode")]),t._v(":readonly、edit")]),v("h3",[t._v("on(event, fn)")]),v("p",[t._v("监听事件,事件列表:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("事件名称")]),v("th",[t._v("描述")]),v("th",[t._v("回调参数")])])]),v("tbody",[v("tr",[v("td",[t._v("data_change")]),v("td",[t._v("渲染树数据变化,可以监听该方法获取最新数据")]),v("td",[t._v("data(当前渲染树数据)")])]),v("tr",[v("td",[t._v("view_data_change(v0.1.1+)")]),v("td",[t._v("视图变化数据,比如拖动或缩放时会触发")]),v("td",[t._v("data(当前视图状态数据)")])]),v("tr",[v("td",[t._v("back_forward")]),v("td",[t._v("前进或回退")]),v("td",[t._v("activeHistoryIndex(当前在历史数据数组里的索引)、length(当前历史数据数组的长度)")])]),v("tr",[v("td",[t._v("draw_click")]),v("td",[v("em",[t._v("画布的单击事件")])]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mousedown")]),v("td",[t._v("svg画布的鼠标按下事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("mousedown")]),v("td",[t._v("el元素的鼠标按下事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousemove")]),v("td",[t._v("el元素的鼠标移动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("drag")]),v("td",[t._v("如果是按住左键拖动的话会触发拖动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mouseup")]),v("td",[t._v("el元素的鼠标松开事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousewheel")]),v("td",[t._v("鼠标滚动事件")]),v("td",[t._v("e(事件对象)、dir(向上up还是向下down滚动。v0.9.2+已改为dirs,数组类型,即支持同时保存多个方向)、this(Event事件类实例)、isTouchPad(v0.6.1+,是否是触控板触发的事件)")])]),v("tr",[v("td",[t._v("contextmenu")]),v("td",[t._v("svg画布的鼠标右键菜单事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_click")]),v("td",[t._v("节点的单击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mousedown")]),v("td",[t._v("节点的鼠标按下事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseup")]),v("td",[t._v("节点的鼠标松开事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_dblclick")]),v("td",[t._v("节点的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_contextmenu")]),v("td",[t._v("节点的右键菜单事件")]),v("td",[t._v("e(事件对象)、this(节点实例)")])]),v("tr",[v("td",[t._v("node_mouseenter(v0.4.1+)")]),v("td",[t._v("节点的鼠标移入事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseleave(v0.4.1+)")]),v("td",[t._v("节点的鼠标移出事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("before_node_active")]),v("td",[t._v("节点激活前事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("node_active")]),v("td",[t._v("节点激活事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("expand_btn_click")]),v("td",[t._v("节点展开或收缩事件")]),v("td",[t._v("this(节点实例)")])]),v("tr",[v("td",[t._v("before_show_text_edit")]),v("td",[t._v("节点文本编辑框即将打开事件")]),v("td")]),v("tr",[v("td",[t._v("hide_text_edit")]),v("td",[t._v("节点文本编辑框关闭事件")]),v("td",[t._v("textEditNode(文本编辑框DOM节点)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("scale")]),v("td",[t._v("放大缩小事件")]),v("td",[t._v("scale(缩放比例)")])]),v("tr",[v("td",[t._v("node_img_dblclick(v0.2.15+)")]),v("td",[t._v("节点内图片的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseenter(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移入事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseleave(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移出事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mousemove(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移动事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_tree_render_end(v0.2.16+)")]),v("td",[t._v("节点树渲染完毕事件")]),v("td")]),v("tr",[v("td",[t._v("rich_text_selection_change(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当节点编辑时,文本选区发生改变时触发")]),v("td",[t._v("hasRange(是否存在选区)、rectInfo(选区的尺寸和位置信息)、formatInfo(选区的文本格式化信息)")])]),v("tr",[v("td",[t._v("transforming-dom-to-images(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("DOM")]),t._v("节点时,导出为图片时会将"),v("code",[t._v("DOM")]),t._v("节点转换为图片,转换过程中会触发该事件,可用通过该事件给用户提示,告知目前转换到的节点")]),v("td",[t._v("index(当前转换到的节点索引)、len(一共需要转换的节点数量)")])]),v("tr",[v("td",[t._v("node_dragging(v0.4.5+)")]),v("td",[t._v("当某个节点被拖拽时触发")]),v("td",[t._v("node(当前被拖拽的节点)")])]),v("tr",[v("td",[t._v("node_dragend(v0.4.5+)")]),v("td",[t._v("节点被拖拽结束时触发")]),v("td",[t._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,本次节点移动到的节点uid,比如本次移动到了节点A上,那么overlapNodeUid就是节点A的uid,如果移动到了B节点的前面,那么nextNodeUid就是节点B的uid,你可以通过mindMap.renderer.findNodeByUid(uid)方法来获取节点实例)")])]),v("tr",[v("td",[t._v("associative_line_click(v0.4.5+)")]),v("td",[t._v("点击某条关联线时触发")]),v("td",[t._v("path(连接线节点)、clickPath(不可见的点击线节点)、node(起始节点)、toNode(目标节点)")])]),v("tr",[v("td",[t._v("svg_mouseenter(v0.5.1+)")]),v("td",[t._v("鼠标移入svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mouseleave(v0.5.1+)")]),v("td",[t._v("鼠标移出svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_icon_click(v0.6.10+)")]),v("td",[t._v("点击节点内的图标时触发")]),v("td",[t._v("this(节点实例)、item(点击的图标名称)、e(事件对象)")])]),v("tr",[v("td",[t._v("view_theme_change(v0.6.12+)")]),v("td",[t._v("调用了setTheme方法设置主题后触发")]),v("td",[t._v("theme(设置的新主题名称)")])]),v("tr",[v("td",[t._v("set_data(v0.7.3+)")]),v("td",[t._v("调用了setData方法动态设置思维导图数据时触发")]),v("td",[t._v("data(新的思维导图数据)")])]),v("tr",[v("td",[t._v("resize(v0.8.0+)")]),v("td",[t._v("容器尺寸改变后触发,实际上是当思维导图实例的"),v("code",[t._v("resize")]),t._v("方法被调用后触发")]),v("td")]),v("tr",[v("td",[t._v("beforeDestroy(v0.9.0+)")]),v("td",[t._v("思维导图销毁前触发,即调用了destroy方法触发")]),v("td")]),v("tr",[v("td",[t._v("body_mousedown(v0.9.2+)")]),v("td",[t._v("document.body的鼠标按下事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("body_click")]),v("td",[t._v("document.body的点击事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("data_change_detail(v0.9.3+)")]),v("td",[t._v("渲染树数据变化的明细,会返回一个数组,每一项代表一个更新点,每一项都是一个对象,存在一个"),v("code",[t._v("type")]),t._v("属性,代表明细的类型,包含"),v("code",[t._v("create")]),t._v("(创建节点)、"),v("code",[t._v("update")]),t._v("(更新节点)、"),v("code",[t._v("delete")]),t._v("(删除节点),存在一个"),v("code",[t._v("data")]),t._v("属性,代表当前更新的节点数据,如果是"),v("code",[t._v("update")]),t._v("类型,还会存在一个"),v("code",[t._v("oldData")]),t._v("属性,保存了更新前该节点的数据")]),v("td",[t._v("arr(明细数据)")])]),v("tr",[v("td",[t._v("layout_change(v0.9.4+)")]),v("td",[t._v("修改结构时触发,即调用了mindMap.setLayout()方法时触发")]),v("td",[t._v("layout(新的结构)")])])])]),v("h3",[t._v("emit(event, ...args)")]),v("p",[t._v("触发事件,可以是上面表格里的事件,也可以是自定义事件")]),v("h3",[t._v("off(event, fn)")]),v("p",[t._v("解绑事件")]),v("h3",[t._v("setTheme(theme, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("切换主题,可选主题见上面的选项表格")]),v("h3",[t._v("getTheme()")]),v("p",[t._v("获取当前主题")]),v("h3",[t._v("setThemeConfig(config, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置主题配置,"),v("code",[t._v("config")]),t._v("同上面选项表格里的选项"),v("code",[t._v("themeConfig")])]),v("h3",[t._v("getCustomThemeConfig()")]),v("p",[t._v("获取自定义主题配置")]),v("h3",[t._v("getThemeConfig(prop)")]),v("p",[t._v("获取某个主题配置属性值")]),v("h3",[t._v("getConfig("),v("em",[t._v("prop")]),t._v(")")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("prop")]),t._v(":获取指定配置的值,不传则返回整个配置")]),v("p",[t._v("获取配置,即"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")])]),v("h3",[t._v("updateConfig("),v("em",[t._v("opt")]),t._v(" = {})")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("opt")]),t._v(":要更新的配置")]),v("p",[t._v("更新配置,即更新"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")]),t._v(",可以只更新部分数据,比如:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("mindMap.updateConfig({\n "),v("span",{staticClass:"hljs-attr"},[t._v("enableFreeDrag")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),v("span",{staticClass:"hljs-comment"},[t._v("// 开启节点自由拖拽")]),t._v("\n})\n")])]),v("p",[t._v("该方法只做更新配置的事情,没有其他副作用,比如触发画布重新渲染之类的")]),v("h3",[t._v("getLayout()")]),v("p",[t._v("获取当前的布局结构")]),v("h3",[t._v("setLayout(layout, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置布局结构,可选值见上面选项表格的"),v("code",[t._v("layout")]),t._v("字段")]),v("h3",[t._v("execCommand(name, ...args)")]),v("p",[t._v("执行命令,每执行一个命令就会在历史堆栈里添加一条记录用于回退或前进。所有命令如下:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("命令名称")]),v("th",[t._v("描述")]),v("th",[t._v("参数")])])]),v("tbody",[v("tr",[v("td",[t._v("SELECT_ALL")]),v("td",[t._v("全选")]),v("td")]),v("tr",[v("td",[t._v("BACK")]),v("td",[t._v("回退指定的步数")]),v("td",[t._v("step(要回退的步数,默认为1)")])]),v("tr",[v("td",[t._v("FORWARD")]),v("td",[t._v("前进指定的步数")]),v("td",[t._v("step(要前进的步数,默认为1)")])]),v("tr",[v("td",[t._v("INSERT_NODE")]),v("td",[t._v("插入同级节点,操作节点为当前激活的节点或指定节点,如果有多个激活节点,只会对第一个有效(v0.7.2+支持对多个激活节点同时插入兄弟节点)")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定要插入兄弟节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_CHILD_NODE")]),v("td",[t._v("插入子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("UP_NODE")]),v("td",[t._v("上移节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的第一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("DOWN_NODE")]),v("td",[t._v("操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的最后一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("REMOVE_NODE")]),v("td",[t._v("删除节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)")])]),v("tr",[v("td",[t._v("PASTE_NODE")]),v("td",[t._v("粘贴节点到节点,操作节点为当前激活的节点")]),v("td",[t._v("data(要粘贴的节点数据,一般通过"),v("code",[t._v("renderer.copyNode()")]),t._v("方法和"),v("code",[t._v("renderer.cutNode()")]),t._v("方法获取)")])]),v("tr",[v("td",[t._v("CUT_NODE")]),v("td",[t._v("剪切节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点使用无效")]),v("td",[t._v("callback(回调函数,剪切的节点数据会通过调用该函数并通过参数返回)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLE")]),v("td",[t._v("修改节点单个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式属性)、value(样式属性值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLEs(v0.6.12+)")]),v("td",[t._v("修改节点多个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式对象,key为样式属性,value为样式值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_ACTIVE")]),v("td",[t._v("设置节点是否激活")]),v("td",[t._v("node(要设置的节点)、active(布尔值,是否激活)")])]),v("tr",[v("td",[t._v("CLEAR_ACTIVE_NODE")]),v("td",[t._v("清除当前已激活节点的激活状态,操作节点为当前激活的节点")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_EXPAND")]),v("td",[t._v("设置节点是否展开")]),v("td",[t._v("node(要设置的节点)、expand(布尔值,是否展开)")])]),v("tr",[v("td",[t._v("EXPAND_ALL")]),v("td",[t._v("展开所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_ALL")]),v("td",[t._v("收起所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_TO_LEVEL(v0.2.8+)")]),v("td",[t._v("展开到指定层级")]),v("td",[t._v("level(要展开到的层级,1、2、3...)")])]),v("tr",[v("td",[t._v("SET_NODE_DATA")]),v("td",[t._v("更新节点数据,即更新节点数据对象里"),v("code",[t._v("data")]),t._v("对象的数据,注意这个命令不会触发视图的更新")]),v("td",[t._v("node(要设置的节点)、data(对象,要更新的数据,如"),v("code",[t._v("{expand: true}")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_TEXT")]),v("td",[t._v("设置节点文本")]),v("td",[t._v("node(要设置的节点)、text(要设置的文本字符串,换行可以使用"),v("code",[t._v("\\n")]),t._v(")、richText(v0.4.0+,如果要设置的是富文本字符,需要设为"),v("code",[t._v("true")]),t._v(")、resetRichText(v0.6.10+是否要复位富文本,默认为false,如果传true那么会重置富文本节点的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_IMAGE")]),v("td",[t._v("设置节点图片")]),v("td",[t._v("node(要设置的节点)、imgData(对象,图片信息,结构为:"),v("code",[t._v("{url, title, width, height}")]),t._v(",图片的宽高必须要传)")])]),v("tr",[v("td",[t._v("SET_NODE_ICON")]),v("td",[t._v("设置节点图标")]),v("td",[t._v("node(要设置的节点)、icons(数组,预定义的图片名称组成的数组,可用图标可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[t._v("icons.js")]),t._v("文件里的"),v("code",[t._v("nodeIconList")]),t._v("列表里获取到,图标名称为"),v("code",[t._v("type_name")]),t._v(",如"),v("code",[t._v("['priority_1']")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_HYPERLINK")]),v("td",[t._v("设置节点超链接")]),v("td",[t._v("node(要设置的节点)、link(超链接地址)、title(超链接名称,可选)")])]),v("tr",[v("td",[t._v("SET_NODE_NOTE")]),v("td",[t._v("设置节点备注")]),v("td",[t._v("node(要设置的节点)、note(备注文字)")])]),v("tr",[v("td",[t._v("SET_NODE_TAG")]),v("td",[t._v("设置节点标签")]),v("td",[t._v("node(要设置的节点)、tag(字符串数组,内置颜色信息可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[t._v("constant.js")]),t._v("里获取到)")])]),v("tr",[v("td",[t._v("INSERT_AFTER(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的后面")]),v("td",[t._v("node(要移动的节点,(v0.7.2+支持传递节点数组实现同时移动多个节点))、 exist(目标节点)")])]),v("tr",[v("td",[t._v("INSERT_BEFORE(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的前面,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 exist(目标节点)")])]),v("tr",[v("td",[t._v("MOVE_NODE_TO(v0.1.5+)")]),v("td",[t._v("移动节点作为另一个节点的子节点,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 toNode(目标节点)")])]),v("tr",[v("td",[t._v("ADD_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("添加节点概要")]),v("td",[t._v("data(概要的数据,对象格式,节点的数字段都支持,默认为{text: '概要'})")])]),v("tr",[v("td",[t._v("REMOVE_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("删除节点概要")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_CUSTOM_POSITION(v0.2.0+)")]),v("td",[t._v("设置节点自定义位置")]),v("td",[t._v("node(要设置的节点)、 left(自定义的x坐标,默认为undefined)、 top(自定义的y坐标,默认为undefined)")])]),v("tr",[v("td",[t._v("RESET_LAYOUT(v0.2.0+)")]),v("td",[t._v("一键整理布局")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_SHAPE(v0.2.4+)")]),v("td",[t._v("设置节点形状")]),v("td",[t._v("node(要设置的节点)、shape(形状,全部形状:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[t._v("Shape.js")]),t._v(")")])]),v("tr",[v("td",[t._v("GO_TARGET_NODE(v0.6.7+)")]),v("td",[t._v("定位到某个节点,如果该节点被收起,那么会自动展开到该节点")]),v("td",[t._v("node(要定位到的节点实例或节点uid)、callback(v0.6.9+,定位完成后的回调函数)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个同级节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), nodeList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), childList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_FORMULA(v0.7.2+)")]),v("td",[t._v("给节点插入数学公式,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("formula(要插入的数学公式,LaTeX 语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点)")])]),v("tr",[v("td",[t._v("INSERT_PARENT_NODE(v0.8.0+)")]),v("td",[t._v("给指定的节点插入父节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(可选,指定要插入父节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")")])]),v("tr",[v("td",[t._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),v("td",[t._v("仅删除当前节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组)")])]),v("tr",[v("td",[t._v("MOVE_UP_ONE_LEVEL(v0.9.6+)")]),v("td",[t._v("将指定节点上移一个层级")]),v("td",[t._v("node(可选,指定要上移层级的节点,不传则为当前激活节点中的第一个)")])])])]),v("h3",[t._v("setData(data)")]),v("p",[t._v("动态设置思维导图数据,纯节点数据")]),v("p",[v("code",[t._v("data")]),t._v(":思维导图结构数据")]),v("h3",[t._v("setFullData("),v("em",[t._v("data")]),t._v(")")]),v("blockquote",[v("p",[t._v("v0.2.7+")])]),v("p",[t._v("动态设置思维导图数据,包括节点数据、布局、主题、视图")]),v("p",[v("code",[t._v("data")]),t._v(":完整数据,结构可参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[t._v("exportFullData")])]),v("h3",[t._v("getData(withConfig)")]),v("blockquote",[v("p",[t._v("v0.2.9+")])]),v("p",[t._v("获取思维导图数据")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",即获取的数据只包括节点树,如果传"),v("code",[t._v("true")]),t._v("则会包含主题、布局、视图等数据")]),v("h3",[t._v("export(type, isDownload, fileName)")]),v("blockquote",[v("p",[t._v("需要先注册"),v("code",[t._v("Export")]),t._v("插件")])]),v("p",[t._v("导出")]),v("p",[v("code",[t._v("type")]),t._v(":要导出的类型,可选值:png、svg、json、pdf(v0.2.1+)、smm(本质也是json)")]),v("p",[v("code",[t._v("isDownload")]),t._v(":是否需要直接触发下载,布尔值,默认为"),v("code",[t._v("false")])]),v("p",[v("code",[t._v("fileName")]),t._v(":(v0.1.6+)导出文件的名称,默认为"),v("code",[t._v("思维导图")])]),v("p",[t._v("如果是导出为"),v("code",[t._v("png")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("transparent")]),t._v(":v0.5.7+, "),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",指定导出图片的背景是否是透明的")]),v("p",[t._v("如果是导出为"),v("code",[t._v("svg")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("plusCssText")]),t._v(":附加的"),v("code",[t._v("css")]),t._v("样式,如果"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("dom")]),t._v("节点,想要设置一些针对节点的样式可以通过这个参数传入")]),v("p",[t._v("如果是导出为"),v("code",[t._v("json")]),t._v("或"),v("code",[t._v("smm")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("true")]),t._v(",指定导出的数据中是否包含配置数据,否则只导出纯节点树数据")]),v("h3",[t._v("toPos(x, y)")]),v("blockquote",[v("p",[t._v("v0.1.5+")])]),v("p",[t._v("将浏览器可视窗口的坐标转换成相对于画布的坐标")]),v("h3",[t._v("addPlugin(plugin, opt)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("注册插件,使用"),v("code",[t._v("MindMap.usePlugin")]),t._v("注册插件只能在实例化之前,实例化后注册的插件是不会生效的,所以如果想在实例化后注册插件可以使用实例的"),v("code",[t._v("addPlugin")]),t._v("方法。")]),v("h3",[t._v("removePlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("移除注册的插件,无论是通过"),v("code",[t._v("usePlugin")]),t._v("还是"),v("code",[t._v("addPlugin")]),t._v("方法注册的插件都可以移除。")])])}],a={},s=a,n=_("2877"),o=Object(n["a"])(s,e,d,!1,null,null,null);v["default"]=o.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dad5f"],{"6cfb":function(t,v,_){"use strict";_.r(v);var e=function(){var t=this;t._self._c;return t._m(0)},d=[function(){var t=this,v=t._self._c;return v("div",[v("h1",[t._v("构造函数")]),v("h2",[t._v("基本使用")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-tag"},[t._v("<"),v("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(" "),v("span",{staticClass:"hljs-attr"},[t._v("id")]),t._v("="),v("span",{staticClass:"hljs-string"},[t._v('"mindMapContainer"')]),t._v(">")]),v("span",{staticClass:"hljs-tag"},[t._v("")]),t._v("\n")])]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v('"simple-mind-map"')]),t._v(";\n\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("el")]),t._v(": "),v("span",{staticClass:"hljs-built_in"},[t._v("document")]),t._v(".getElementById("),v("span",{staticClass:"hljs-string"},[t._v("'mindMapContainer'")]),t._v("),\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"data"')]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"text"')]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v('"根节点"')]),t._v("\n },\n "),v("span",{staticClass:"hljs-string"},[t._v('"children"')]),t._v(": []\n }\n});\n")])]),v("h2",[t._v("实例化选项")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("el")]),v("td",[t._v("Element")]),v("td"),v("td",[t._v("容器元素,必传,必须为DOM元素")])]),v("tr",[v("td",[t._v("data")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("思维导图数据,可参考下方【数据结构】介绍")])]),v("tr",[v("td",[t._v("layout")]),v("td",[t._v("String")]),v("td",[t._v("logicalStructure")]),v("td",[t._v("布局类型,可选列表:logicalStructure(逻辑结构图)、mindMap(思维导图)、catalogOrganization(目录组织图)、organizationStructure(组织结构图)、timeline(v0.5.4+,时间轴)、timeline2(v0.5.4+,上下交替型时间轴)、fishbone(v0.5.4+,鱼骨图)")])]),v("tr",[v("td",[t._v("fishboneDeg(v0.5.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("45")]),v("td",[t._v("设置鱼骨结构图的斜线角度")])]),v("tr",[v("td",[t._v("theme")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("主题,可选列表:default(默认)、classic(脑图经典)、minions(小黄人)、pinkGrape(粉红葡萄)、mint(薄荷)、gold(金色vip)、vitalityOrange(活力橙)、greenLeaf(绿叶)、dark2(暗色2)、skyGreen(天清绿)、classic2(脑图经典2)、classic3(脑图经典3)、classic4(脑图经典4,v0.2.0+)、classicGreen(经典绿)、classicBlue(经典蓝)、blueSky(天空蓝)、brainImpairedPink(脑残粉)、dark(暗色)、earthYellow(泥土黄)、freshGreen(清新绿)、freshRed(清新红)、romanticPurple(浪漫紫)、simpleBlack(v0.5.4+简约黑)、courseGreen(v0.5.4+课程绿)、coffee(v0.5.4+咖啡)、redSpirit(v0.5.4+红色精神)、blackHumour(v0.5.4+黑色幽默)、lateNightOffice(v0.5.4+深夜办公室)、blackGold(v0.5.4+黑金)、avocado(v.5.10-fix.2+牛油果)、autumn(v.5.10-fix.2+秋天)、orangeJuice(v.5.10-fix.2+橙汁)")])]),v("tr",[v("td",[t._v("themeConfig")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("主题配置,会和所选择的主题进行合并,可用字段可参考:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("default.js")])])]),v("tr",[v("td",[t._v("scaleRatio")]),v("td",[t._v("Number")]),v("td",[t._v("0.1")]),v("td",[t._v("放大缩小的增量比例")])]),v("tr",[v("td",[t._v("maxTag")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里最多显示的标签数量,多余的会被丢弃")])]),v("tr",[v("td",[t._v("exportPadding")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("导出图片时的内边距")])]),v("tr",[v("td",[t._v("imgTextMargin")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里图片和文字的间距")])]),v("tr",[v("td",[t._v("textContentMargin")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点里各种文字信息的间距,如图标和文字的间距")])]),v("tr",[v("td",[t._v("selectTranslateStep")]),v("td",[t._v("Number")]),v("td",[t._v("3")]),v("td",[t._v("多选节点时鼠标移动到边缘时的画布移动偏移量")])]),v("tr",[v("td",[t._v("selectTranslateLimit")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("多选节点时鼠标移动距边缘多少距离时开始偏移")])]),v("tr",[v("td",[t._v("customNoteContentShow(v0.1.6+)")]),v("td",[t._v("Object")]),v("td",[t._v("null")]),v("td",[t._v("自定义节点备注内容显示,Object类型,结构为:{show: (noteContent, left, top, node) => {// 你的显示节点备注逻辑。node为v0.8.1+版本新增的回参,代表节点实例 }, hide: () => {// 你的隐藏节点备注逻辑 }}")])]),v("tr",[v("td",[t._v("readonly(v0.1.7+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否是只读模式")])]),v("tr",[v("td",[t._v("enableFreeDrag(v0.2.4+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否开启节点自由拖拽(自由拖拽即可以把节点拖拽到画布的任意位置,注意不是拖拽节点成为其他节点的子节点兄弟节点的功能,自由拖拽的连线会存在一定问题,所以该特性最好不要使用)")])]),v("tr",[v("td",[t._v("watermarkConfig(v0.2.4+)")]),v("td",[t._v("Object")]),v("td"),v("td",[t._v("水印配置,详细配置请参考下方表格【水印配置】")])]),v("tr",[v("td",[t._v("textAutoWrapWidth(v0.3.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("500")]),v("td",[t._v("节点内每行文本达到该宽度后自动换行")])]),v("tr",[v("td",[t._v("customHandleMousewheel(v0.4.3+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象")])]),v("tr",[v("td",[t._v("mousewheelAction(v0.4.3+)")]),v("td",[t._v("String")]),v("td",[t._v("zoom(v0.9.1+默认改为move)")]),v("td",[t._v("鼠标滚轮的行为,"),v("code",[t._v("zoom")]),t._v("(放大缩小)、"),v("code",[t._v("move")]),t._v("(上下移动)。如果"),v("code",[t._v("customHandleMousewheel")]),t._v("传了自定义函数,这个属性不生效")])]),v("tr",[v("td",[t._v("mousewheelMoveStep(v0.4.3+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("当"),v("code",[t._v("mousewheelAction")]),t._v("设为"),v("code",[t._v("move")]),t._v("时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位"),v("code",[t._v("px")])])]),v("tr",[v("td",[t._v("mousewheelZoomActionReverse(v0.6.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false(v0.9.1+默认改为true)")]),v("td",[t._v("当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来")])]),v("tr",[v("td",[t._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("二级节点")]),v("td",[t._v("默认插入的二级节点的文字")])]),v("tr",[v("td",[t._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("分支主题")]),v("td",[t._v("默认插入的二级以下节点的文字")])]),v("tr",[v("td",[t._v("expandBtnStyle(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),v("td",[t._v("展开收起按钮的颜色,(fontSize及strokeColor字段为0.7.0+版本新增的,用于设置收起时显示节点数量的文字样式)")])]),v("tr",[v("td",[t._v("expandBtnIcon(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ open: '', close: '' }")]),v("td",[t._v("自定义展开收起按钮的图标,可以传图标的svg字符串")])]),v("tr",[v("td",[t._v("expandBtnNumHandler(v0.7.0+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("用于自定义收起时显示节点数量的内容,接收一个参数,代表收起的节点实例,需要返回一个数字或字符串,代表最终显示的内容,比如你可以当数量大于99时,显示99+")])]),v("tr",[v("td",[t._v("isShowExpandNum(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("节点收起时是否显示收起的数量")])]),v("tr",[v("td",[t._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否只有当鼠标在画布内才响应快捷键事件")])]),v("tr",[v("td",[t._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启节点动画过渡")])]),v("tr",[v("td",[t._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Number")]),v("td",[t._v("300")]),v("td",[t._v("如果开启节点动画过渡,可以通过该属性设置过渡的时间,单位ms")])]),v("tr",[v("td",[t._v("initRootNodePosition(v0.5.3+)")]),v("td",[t._v("Array")]),v("td",[t._v("null")]),v("td",[t._v("初始根节点的位置,可传一个数组,默认为"),v("code",[t._v("['center', 'center']")]),t._v(",代表根节点处于画布中心位置,除了"),v("code",[t._v("center")]),t._v(",关键词还可以设置"),v("code",[t._v("left")]),t._v("、"),v("code",[t._v("top")]),t._v("、"),v("code",[t._v("right")]),t._v("、"),v("code",[t._v("bottom")]),t._v(",除了可以传关键词,数组的每项还可以传递一个数字,代表具体的像素,可以传递一个百分比字符串,比如"),v("code",[t._v("['40%', '60%']")]),t._v(",代表水平位置在画布宽度的"),v("code",[t._v("40%")]),t._v("的位置,垂直位置在画布高度的"),v("code",[t._v("60%")]),t._v("的位置")])]),v("tr",[v("td",[t._v("exportPaddingX(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形水平内边距")])]),v("tr",[v("td",[t._v("exportPaddingY(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形垂直内边距")])]),v("tr",[v("td",[t._v("nodeTextEditZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点文本编辑框元素的z-index")])]),v("tr",[v("td",[t._v("nodeNoteTooltipZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点备注浮层元素的z-index")])]),v("tr",[v("td",[t._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在点击了画布外的区域时结束节点文本的编辑状态")])]),v("tr",[v("td",[t._v("maxHistoryCount(v0.5.6+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000(v0.9.2+改为500)")]),v("td",[t._v("最大历史记录数")])]),v("tr",[v("td",[t._v("alwaysShowExpandBtn(v0.5.8+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否一直显示节点的展开收起按钮,默认为鼠标移上去和激活时才显示")])]),v("tr",[v("td",[t._v("iconList(v0.5.8+)")]),v("td",[t._v("Array")]),v("td",[t._v("[]")]),v("td",[t._v("扩展节点可插入的图标,数组的每一项为一个对象,对象详细结构请参考下方【图标配置】表格")])]),v("tr",[v("td",[t._v("maxNodeCacheCount(v0.5.10+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("节点最大缓存数量。为了优化性能,内部会维护一个节点缓存池,用来复用节点,通过该属性可以指定池的最大缓存数量")])]),v("tr",[v("td",[t._v("defaultAssociativeLineText(v0.5.11+)")]),v("td",[t._v("String")]),v("td",[t._v("关联")]),v("td",[t._v("关联线默认文字")])]),v("tr",[v("td",[t._v("fitPadding(v0.6.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("50")]),v("td",[t._v("思维导图适应画布大小时的内边距,单位:px")])]),v("tr",[v("td",[t._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启按住ctrl键多选节点的功能")])]),v("tr",[v("td",[t._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置为左键多选节点,右键拖动画布")])]),v("tr",[v("td",[t._v("beforeTextEdit(v0.6.0+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("节点即将进入编辑前的回调方法,如果该方法返回true以外的值,那么将取消编辑,函数可以返回一个值,或一个Promise,回调参数为节点实例")])]),v("tr",[v("td",[t._v("isUseCustomNodeContent(v0.6.3+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否自定义节点内容")])]),v("tr",[v("td",[t._v("customCreateNodeContent(v0.6.3+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("如果"),v("code",[t._v("isUseCustomNodeContent")]),t._v("设为"),v("code",[t._v("true")]),t._v(",那么需要使用该选项传入一个方法,接收节点实例"),v("code",[t._v("node")]),t._v("为参数(如果要获取该节点的数据,可以通过"),v("code",[t._v("node.nodeData.data")]),t._v("),需要返回自定义节点内容元素,也就是DOM节点,如果某个节点不需要自定义,那么返回"),v("code",[t._v("null")]),t._v("即可")])]),v("tr",[v("td",[t._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("鼠标缩放是否以鼠标当前位置为中心点,否则以画布中心点")])]),v("tr",[v("td",[t._v("customInnerElsAppendTo(v0.6.12+)")]),v("td",[t._v("null/HTMLElement")]),v("td",[t._v("null")]),v("td",[t._v("指定内部一些元素(节点文本编辑元素、节点备注显示元素、关联线文本编辑元素、节点图片调整按钮元素)添加到的位置,默认添加到document.body下")])]),v("tr",[v("td",[t._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("拖拽元素时,指示元素新位置的块的最大高度")])]),v("tr",[v("td",[t._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+版本已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否允许创建一个隐藏的输入框,该输入框会在节点激活时聚焦,用于粘贴数据和自动进入文本编辑状态")])]),v("tr",[v("td",[t._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在存在一个激活节点时,当按下中文、英文、数字按键时自动进入文本编辑模式")])]),v("tr",[v("td",[t._v("richTextEditFakeInPlace(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置富文本节点编辑框和节点大小一致,形成伪原地编辑的效果,需要注意的是,只有当节点内只有文本、且形状是矩形才会有比较好的效果")])]),v("tr",[v("td",[t._v("customHandleClipboardText(v0.6.14+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义对剪贴板文本的处理。当按ctrl+v粘贴时会读取用户剪贴板中的文本和图片,默认只会判断文本是否是普通文本和simple-mind-map格式的节点数据,如果你想处理其他思维导图的数据,比如processon、zhixi等,那么可以传递一个函数,接受当前剪贴板中的文本为参数,返回处理后的数据,可以返回两种类型:1.返回一个纯文本,那么会直接以该文本创建一个子节点;2.返回一个节点对象,格式如下:{ simpleMindMap: true, data: { data: { text: '' }, children: [] } },代表是simple-mind-map格式的数据,节点数据同simple-mind-map节点数据格式,如果你的处理逻辑存在异步逻辑,也可以返回一个promise")])]),v("tr",[v("td",[t._v("errorHandler(v0.6.15+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("自定义错误处理函数,目前只会抛出一些异步逻辑出错的情况。可以传递一个函数,会接收两个参数,第一个为错误的类型,第二个为错误对象")])]),v("tr",[v("td",[t._v("disableMouseWheelZoom(v0.6.15+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止鼠标滚轮缩放,你仍旧可以使用api进行缩放")])]),v("tr",[v("td",[t._v("resetCss(v0.6.16+)")]),v("td",[t._v("String")]),v("td",[t._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),v("td",[t._v("设置导出图片和svg时,针对富文本节点内容,也就是嵌入到svg中的html节点的默认样式覆盖,如果不覆盖,节点内容会发生偏移")])]),v("tr",[v("td",[t._v("enableDblclickReset(v0.6.17+)(v0.8.0+已删除该属性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true(v0.7.0+改为false)")]),v("td",[t._v("开启鼠标双击复位思维导图位置及缩放")])]),v("tr",[v("td",[t._v("enableDblclickBackToRootNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否在鼠标双击时回到根节点,也就是让根节点居中显示")])]),v("tr",[v("td",[t._v("minExportImgCanvasScale(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("导出图片和pdf时canvas的缩放倍数,该配置会和window.devicePixelRatio值取最大值,用于提升图片清晰度")])]),v("tr",[v("td",[t._v("hoverRectColor(v0.7.0+)")]),v("td",[t._v("String")]),v("td",[t._v("rgb(94, 200, 248)")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框颜色,hover时会添加0.6的透明度")])]),v("tr",[v("td",[t._v("hoverRectPadding(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框距节点内容的距离")])]),v("tr",[v("td",[t._v("selectTextOnEnterEditText(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("双击节点进入节点文本编辑时是否默认选中文本,默认只在创建新节点时会选中")])]),v("tr",[v("td",[t._v("deleteNodeActive(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启删除节点后自动激活节点相邻节点或父节点的功能")])]),v("tr",[v("td",[t._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("拖拽节点时鼠标移动到画布边缘是否开启画布自动移动")])]),v("tr",[v("td",[t._v("fit(v0.7.1-fix.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("首次渲染时是否缩放至适应画布大小")])]),v("tr",[v("td",[t._v("dragMultiNodeRectConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ width: 40, height: 20, fill: '' }")]),v("td",[t._v("拖拽多个节点时随鼠标移动的示意矩形的样式配置,传递一个对象,字段含义分别为矩形的宽、高、填充色")])]),v("tr",[v("td",[t._v("dragPlaceholderRectFill(v0.7.2+)")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("节点拖拽时新位置的示意矩形的填充颜色,如果不传默认使用连线的颜色")])]),v("tr",[v("td",[t._v("dragOpacityConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),v("td",[t._v("节点拖拽时的透明度配置,传递一个对象,字段含义分别为:跟随鼠标移动的克隆节点或矩形的透明度、被拖拽节点的透明度")])]),v("tr",[v("td",[t._v("tagsColorMap(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("自定义节点标签的颜色,可传一个对象,key为要指定颜色的标签内容,value为该标签内容的颜色,如果不传内部会根据标签内容生成对应的颜色")])]),v("tr",[v("td",[t._v("cooperateStyle(v0.7.3+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ avatarSize: 22, fontSize: 12 }")]),v("td",[t._v("节点协作编辑时的人员头像样式配置,字段含义分别为:头像大小、如果是文字头像,那么文字的大小")])]),v("tr",[v("td",[t._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("关联线是否始终显示在节点上层,如果设为false,那么创建关联线和激活关联线时处于最顶层,其他情况下处于节点下方")])]),v("tr",[v("td",[t._v("defaultGeneralizationText(v0.8.0+)")]),v("td",[t._v("String")]),v("td",[t._v("概要")]),v("td",[t._v("插入概要的默认文本")])]),v("tr",[v("td",[t._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),v("td",[t._v("Function / null")]),v("td",[t._v("null")]),v("td",[t._v("粘贴文本的方式创建新节点时,控制是否按换行自动分割节点,即如果存在换行,那么会根据换行创建多个节点,否则只会创建一个节点,可以传递一个函数,返回promise,resolve代表根据换行分割,reject代表忽略换行")])]),v("tr",[v("td",[t._v("addHistoryTime(v0.8.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态,单位:ms")])]),v("tr",[v("td",[t._v("isDisableDrag(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否禁止拖动画布")])]),v("tr",[v("td",[t._v("disableTouchZoom(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止双指缩放,你仍旧可以使用api进行缩放,对TouchEvent插件生效")])]),v("tr",[v("td",[t._v("highlightNodeBoxStyle(v0.9.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),v("td",[t._v("鼠标移入概要高亮所属节点时的高亮框样式")])]),v("tr",[v("td",[t._v("createNewNodeBehavior(v0.9.1+)")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式)")])]),v("tr",[v("td",[t._v("defaultNodeImage(v0.9.1-fix.2+)")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图片地址,当节点图片加载失败时显示的默认图片")])]),v("tr",[v("td",[t._v("handleNodePasteImg(v0.9.2+)")]),v("td",[t._v("null 或 Function")]),v("td",[t._v("null")]),v("td",[t._v("在节点上粘贴剪贴板中的图片的处理方法,默认是转换为data:url数据插入到节点中,你可以通过该方法来将图片数据上传到服务器,实现保存图片的url。可以传递一个异步方法,接收Blob类型的图片数据,需要返回指定结构:{ url, size: {width, height} }")])]),v("tr",[v("td",[t._v("isLimitMindMapInCanvas(v0.9.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否将思维导图限制在画布内。比如向右拖动时,思维导图图形的最左侧到达画布中心时将无法继续向右拖动,其他同理")])]),v("tr",[v("td",[t._v("isLimitMindMapInCanvasWhenHasScrollbar(v0.9.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("当注册了滚动条插件(Scrollbar)时,是否将思维导图限制在画布内,isLimitMindMapInCanvas配置不再起作用")])]),v("tr",[v("td",[t._v("associativeLineInitPointsPosition(v0.9.5+)")]),v("td",[t._v("null / { from, to }")]),v("td",[t._v("{ from: '', to: '' }")]),v("td",[t._v("默认情况下,新创建的关联线两个端点的位置是根据两个节点中心点的相对位置来计算的,如果你想固定位置,可以通过这个选项来配置。from和to都不传,则都自动计算,如果只传一个,另一个则会自动计算。from和to可选值:left、top、bottom、right")])]),v("tr",[v("td",[t._v("enableAdjustAssociativeLinePoints(v0.9.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否允许调整关联线两个端点的位置")])])])]),v("h3",[t._v("数据结构")]),v("p",[t._v("基本的数据结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本,可以是富文本,也就是html格式的,此时richText要设为true")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("richText")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本是否是富文本模式")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("expand")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点是否展开")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("uid")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 节点唯一的id,可不传,内部会生成")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("icon")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 图标,格式可参考教程里的【插入和扩展节点图标】章节")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("image")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的url")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的标题,可为空")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageSize")]),t._v(": { "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的尺寸")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("width")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的宽度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("height")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的高度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("custom")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(" "),v("span",{staticClass:"hljs-comment"},[t._v("// 如果设为true,图片的显示大小不受主题控制,以imageSize.width和imageSize.height为准")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlink")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接地址")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlinkTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接的标题")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("note")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 备注的内容")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("tag")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 标签列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("generalization")]),t._v(": {"),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的概要,如果没有概要generalization设为null即可")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),v("span",{staticClass:"hljs-comment"},[t._v("// 概要的文本")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineTargets")]),t._v(": ["),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v("],"),v("span",{staticClass:"hljs-comment"},[t._v("// 如果存在关联线,那么为目标节点的uid列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineText")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 关联线文本")]),t._v("\n "),v("span",{staticClass:"hljs-comment"},[t._v("// ...其他样式字段,可以参考主题")]),t._v("\n },\n children ["),v("span",{staticClass:"hljs-comment"},[t._v("// 子节点,结构和根节点一致")]),t._v("\n {\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {},\n "),v("span",{staticClass:"hljs-attr"},[t._v("children")]),t._v(": []\n }\n ]\n}\n")])]),v("p",[t._v("如果你要添加自定义的字段,可以添加到"),v("code",[t._v("data")]),t._v("、"),v("code",[t._v("children")]),t._v("同级,如果你要添加到"),v("code",[t._v("data")]),t._v("对象里,那么请使用"),v("code",[t._v("_")]),t._v("开头来命名你的自定义字段,内部会通过这个来判断是否是自定义字段。")]),v("h3",[t._v("水印配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("text")]),v("td",[t._v("String")]),v("td",[t._v("''")]),v("td",[t._v("水印文字,如果为空字符串则不显示水印")])]),v("tr",[v("td",[t._v("lineSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("水印每行之间的间距")])]),v("tr",[v("td",[t._v("textSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("同一行水印之间的间距")])]),v("tr",[v("td",[t._v("angle")]),v("td",[t._v("Number")]),v("td",[t._v("30")]),v("td",[t._v("水印的倾斜角度,范围:[0, 90]")])]),v("tr",[v("td",[t._v("textStyle")]),v("td",[t._v("Object")]),v("td",[t._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),v("td",[t._v("水印文字样式")])]),v("tr",[v("td",[t._v("onlyExport(v0.9.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否仅在导出时添加水印")])])])]),v("h3",[t._v("图标配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("name")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的名称")])]),v("tr",[v("td",[t._v("type")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的值")])]),v("tr",[v("td",[t._v("list")]),v("td",[t._v("Array")]),v("td"),v("td",[t._v("分组下的图标列表,数组的每一项为一个对象,"),v("code",[t._v("{ name: '', icon: '' }")]),t._v(","),v("code",[t._v("name")]),t._v("代表图标的名称,"),v("code",[t._v("icon")]),t._v("代表图标,可以是"),v("code",[t._v("svg")]),t._v("图标,比如"),v("code",[t._v("")]),t._v(",也可以是图片"),v("code",[t._v("url")]),t._v(",或者是"),v("code",[t._v("base64")]),t._v("图标,比如"),v("code",[t._v("data:image/png;base64,...")])])])])]),v("h2",[t._v("静态方法")]),v("h3",[t._v("defineTheme(name, config)")]),v("blockquote",[v("p",[t._v("v0.2.23+")])]),v("p",[t._v("定义新主题。")]),v("p",[v("code",[t._v("name")]),t._v(":新主题名称")]),v("p",[v("code",[t._v("config")]),t._v(":主题数据")]),v("p",[v("code",[t._v("simple-mind-map")]),t._v("内置了众多主题,另外你也可以注册新主题,建议在实例化之前进行注册,这样在实例化时可以直接使用新注册的主题,使用示例:")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 注册新主题")]),t._v("\nMindMap.defineTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(", {})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 1.实例化时使用新注册的主题")]),t._v("\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("theme")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v("\n})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 2.动态切换新主题")]),t._v("\nmindMap.setTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(")\n")])]),v("p",[t._v("主题的所有配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("默认主题")]),t._v("。"),v("code",[t._v("defineTheme")]),t._v("方法会把你传入的配置和默认配置做合并。大部分主题其实需要自定义的部分不是很多,一个典型的自定义主题配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[t._v("blueSky")]),t._v("。")]),v("h3",[t._v("usePlugin(plugin, opt = {})")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("ul",[v("li",[v("code",[t._v("opt")]),t._v(":v0.4.0+,插件参数。如果某个插件支持自定义选项的话可以通过这个参数传入。")])]),v("p",[t._v("注册插件,如果需要使用非核心的一些功能,比如小地图、水印等,可以通过该方法进行注册。可链式调用。")]),v("p",[t._v("注意:插件需要在实例化"),v("code",[t._v("MindMap")]),t._v("前注册。")]),v("h3",[t._v("hasPlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("获取是否注册了某个插件,返回的是插件在注册插件列表里的索引,为"),v("code",[t._v("-1")]),t._v("则代表插件没有注册。")]),v("h2",[t._v("静态属性")]),v("h3",[t._v("pluginList")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[t._v("当前注册的所有插件列表。")]),v("h2",[t._v("实例属性")]),v("h3",[t._v("el")]),v("p",[t._v("容器元素。")]),v("h3",[t._v("opt")]),v("p",[t._v("配置选项对象。")]),v("h3",[t._v("svg")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用SVG()方法返回的节点实例")])]),v("p",[t._v("画布svg元素。")]),v("h3",[t._v("draw")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("svg节点的子节点")])]),v("p",[t._v("容器元素,用于承载节点、连线等内容。")]),v("h3",[t._v("lineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点连线元素的容器。")]),v("h3",[t._v("nodeDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点元素的容器。")]),v("h3",[t._v("associativeLineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("在注册了关联线插件的情况下可用")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("关联线内容的容器。")]),v("h3",[t._v("otherDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("其他内容的容器。")]),v("h3",[t._v("elRect")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的尺寸、位置信息。调用"),v("code",[t._v("getBoundingClientRect()")]),t._v("方法的返回结果。")]),v("h3",[t._v("width")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的宽度。")]),v("h3",[t._v("height")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的高度。")]),v("h3",[t._v("themeConfig")]),v("p",[t._v("当前主题配置。")]),v("h2",[t._v("实例方法")]),v("h3",[t._v("clearDraw()")]),v("blockquote",[v("p",[t._v("v0.8.0+")])]),v("p",[t._v("清空"),v("code",[t._v("lineDraw")]),t._v("、"),v("code",[t._v("associativeLineDraw")]),t._v("、"),v("code",[t._v("nodeDraw")]),t._v("、"),v("code",[t._v("otherDraw")]),t._v("容器。")]),v("h3",[t._v("destroy()")]),v("blockquote",[v("p",[t._v("v0.6.0+")])]),v("p",[t._v("销毁思维导图。会移除注册的插件、移除监听的事件、删除画布的所有节点。")]),v("h3",[t._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[v("code",[t._v("paddingX")]),t._v(":水平内边距")]),v("p",[v("code",[t._v("paddingY")]),t._v(":垂直内边距")]),v("p",[v("code",[t._v("ignoreWatermark")]),t._v(":v0.8.0+,不要绘制水印,如果不需要绘制水印的场景可以传"),v("code",[t._v("true")]),t._v(",因为绘制水印非常慢")]),v("p",[t._v("获取"),v("code",[t._v("svg")]),t._v("数据,返回一个对象,详细结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n svg, "),v("span",{staticClass:"hljs-comment"},[t._v("// Element,思维导图图形的整体svg元素,包括:svg(画布容器)、g(实际的思维导图组)")]),t._v("\n svgHTML, "),v("span",{staticClass:"hljs-comment"},[t._v("// String,svg字符串,即html字符串,可以直接渲染到你准备的小地图容器内")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("rect")]),t._v(": "),v("span",{staticClass:"hljs-comment"},[t._v("// Object,思维导图图形未缩放时的位置尺寸等信息")]),t._v("\n origWidth, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布宽度")]),t._v("\n origHeight, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布高度")]),t._v("\n scaleX, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的水平缩放值")]),t._v("\n scaleY, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的垂直缩放值")]),t._v("\n}\n")])]),v("h3",[t._v("render(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("触发整体渲染,会进行节点复用,性能较"),v("code",[t._v("reRender")]),t._v("会更好一点,如果只是节点位置变化了可以调用该方法进行渲染")]),v("h3",[t._v("reRender(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("整体重新渲染,会清空画布,节点也会重新创建,性能不好,慎重使用")]),v("h3",[t._v("resize()")]),v("p",[t._v("容器尺寸变化后,需要调用该方法进行适应")]),v("h3",[t._v("setMode(mode)")]),v("blockquote",[v("p",[t._v("v0.1.7+")])]),v("p",[t._v("切换模式为只读或编辑。")]),v("p",[v("code",[t._v("mode")]),t._v(":readonly、edit")]),v("h3",[t._v("on(event, fn)")]),v("p",[t._v("监听事件,事件列表:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("事件名称")]),v("th",[t._v("描述")]),v("th",[t._v("回调参数")])])]),v("tbody",[v("tr",[v("td",[t._v("data_change")]),v("td",[t._v("渲染树数据变化,可以监听该方法获取最新数据")]),v("td",[t._v("data(当前渲染树数据)")])]),v("tr",[v("td",[t._v("view_data_change(v0.1.1+)")]),v("td",[t._v("视图变化数据,比如拖动或缩放时会触发")]),v("td",[t._v("data(当前视图状态数据)")])]),v("tr",[v("td",[t._v("back_forward")]),v("td",[t._v("前进或回退")]),v("td",[t._v("activeHistoryIndex(当前在历史数据数组里的索引)、length(当前历史数据数组的长度)")])]),v("tr",[v("td",[t._v("draw_click")]),v("td",[v("em",[t._v("画布的单击事件")])]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mousedown")]),v("td",[t._v("svg画布的鼠标按下事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("mousedown")]),v("td",[t._v("el元素的鼠标按下事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousemove")]),v("td",[t._v("el元素的鼠标移动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("drag")]),v("td",[t._v("如果是按住左键拖动的话会触发拖动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mouseup")]),v("td",[t._v("el元素的鼠标松开事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousewheel")]),v("td",[t._v("鼠标滚动事件")]),v("td",[t._v("e(事件对象)、dir(向上up还是向下down滚动。v0.9.2+已改为dirs,数组类型,即支持同时保存多个方向)、this(Event事件类实例)、isTouchPad(v0.6.1+,是否是触控板触发的事件)")])]),v("tr",[v("td",[t._v("contextmenu")]),v("td",[t._v("svg画布的鼠标右键菜单事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_click")]),v("td",[t._v("节点的单击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mousedown")]),v("td",[t._v("节点的鼠标按下事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseup")]),v("td",[t._v("节点的鼠标松开事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_dblclick")]),v("td",[t._v("节点的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_contextmenu")]),v("td",[t._v("节点的右键菜单事件")]),v("td",[t._v("e(事件对象)、this(节点实例)")])]),v("tr",[v("td",[t._v("node_mouseenter(v0.4.1+)")]),v("td",[t._v("节点的鼠标移入事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseleave(v0.4.1+)")]),v("td",[t._v("节点的鼠标移出事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("before_node_active")]),v("td",[t._v("节点激活前事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("node_active")]),v("td",[t._v("节点激活事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("expand_btn_click")]),v("td",[t._v("节点展开或收缩事件")]),v("td",[t._v("this(节点实例)")])]),v("tr",[v("td",[t._v("before_show_text_edit")]),v("td",[t._v("节点文本编辑框即将打开事件")]),v("td")]),v("tr",[v("td",[t._v("hide_text_edit")]),v("td",[t._v("节点文本编辑框关闭事件")]),v("td",[t._v("textEditNode(文本编辑框DOM节点)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("scale")]),v("td",[t._v("放大缩小事件")]),v("td",[t._v("scale(缩放比例)")])]),v("tr",[v("td",[t._v("node_img_dblclick(v0.2.15+)")]),v("td",[t._v("节点内图片的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseenter(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移入事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseleave(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移出事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mousemove(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移动事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_tree_render_end(v0.2.16+)")]),v("td",[t._v("节点树渲染完毕事件")]),v("td")]),v("tr",[v("td",[t._v("rich_text_selection_change(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当节点编辑时,文本选区发生改变时触发")]),v("td",[t._v("hasRange(是否存在选区)、rectInfo(选区的尺寸和位置信息)、formatInfo(选区的文本格式化信息)")])]),v("tr",[v("td",[t._v("transforming-dom-to-images(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("DOM")]),t._v("节点时,导出为图片时会将"),v("code",[t._v("DOM")]),t._v("节点转换为图片,转换过程中会触发该事件,可用通过该事件给用户提示,告知目前转换到的节点")]),v("td",[t._v("index(当前转换到的节点索引)、len(一共需要转换的节点数量)")])]),v("tr",[v("td",[t._v("node_dragging(v0.4.5+)")]),v("td",[t._v("当某个节点被拖拽时触发")]),v("td",[t._v("node(当前被拖拽的节点)")])]),v("tr",[v("td",[t._v("node_dragend(v0.4.5+)")]),v("td",[t._v("节点被拖拽结束时触发")]),v("td",[t._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,本次节点移动到的节点uid,比如本次移动到了节点A上,那么overlapNodeUid就是节点A的uid,如果移动到了B节点的前面,那么nextNodeUid就是节点B的uid,你可以通过mindMap.renderer.findNodeByUid(uid)方法来获取节点实例)")])]),v("tr",[v("td",[t._v("associative_line_click(v0.4.5+)")]),v("td",[t._v("点击某条关联线时触发")]),v("td",[t._v("path(连接线节点)、clickPath(不可见的点击线节点)、node(起始节点)、toNode(目标节点)")])]),v("tr",[v("td",[t._v("svg_mouseenter(v0.5.1+)")]),v("td",[t._v("鼠标移入svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mouseleave(v0.5.1+)")]),v("td",[t._v("鼠标移出svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_icon_click(v0.6.10+)")]),v("td",[t._v("点击节点内的图标时触发")]),v("td",[t._v("this(节点实例)、item(点击的图标名称)、e(事件对象)")])]),v("tr",[v("td",[t._v("view_theme_change(v0.6.12+)")]),v("td",[t._v("调用了setTheme方法设置主题后触发")]),v("td",[t._v("theme(设置的新主题名称)")])]),v("tr",[v("td",[t._v("set_data(v0.7.3+)")]),v("td",[t._v("调用了setData方法动态设置思维导图数据时触发")]),v("td",[t._v("data(新的思维导图数据)")])]),v("tr",[v("td",[t._v("resize(v0.8.0+)")]),v("td",[t._v("容器尺寸改变后触发,实际上是当思维导图实例的"),v("code",[t._v("resize")]),t._v("方法被调用后触发")]),v("td")]),v("tr",[v("td",[t._v("beforeDestroy(v0.9.0+)")]),v("td",[t._v("思维导图销毁前触发,即调用了destroy方法触发")]),v("td")]),v("tr",[v("td",[t._v("body_mousedown(v0.9.2+)")]),v("td",[t._v("document.body的鼠标按下事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("body_click")]),v("td",[t._v("document.body的点击事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("data_change_detail(v0.9.3+)")]),v("td",[t._v("渲染树数据变化的明细,会返回一个数组,每一项代表一个更新点,每一项都是一个对象,存在一个"),v("code",[t._v("type")]),t._v("属性,代表明细的类型,包含"),v("code",[t._v("create")]),t._v("(创建节点)、"),v("code",[t._v("update")]),t._v("(更新节点)、"),v("code",[t._v("delete")]),t._v("(删除节点),存在一个"),v("code",[t._v("data")]),t._v("属性,代表当前更新的节点数据,如果是"),v("code",[t._v("update")]),t._v("类型,还会存在一个"),v("code",[t._v("oldData")]),t._v("属性,保存了更新前该节点的数据")]),v("td",[t._v("arr(明细数据)")])]),v("tr",[v("td",[t._v("layout_change(v0.9.4+)")]),v("td",[t._v("修改结构时触发,即调用了mindMap.setLayout()方法时触发")]),v("td",[t._v("layout(新的结构)")])])])]),v("h3",[t._v("emit(event, ...args)")]),v("p",[t._v("触发事件,可以是上面表格里的事件,也可以是自定义事件")]),v("h3",[t._v("off(event, fn)")]),v("p",[t._v("解绑事件")]),v("h3",[t._v("setTheme(theme, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("切换主题,可选主题见上面的选项表格")]),v("h3",[t._v("getTheme()")]),v("p",[t._v("获取当前主题")]),v("h3",[t._v("setThemeConfig(config, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置主题配置,"),v("code",[t._v("config")]),t._v("同上面选项表格里的选项"),v("code",[t._v("themeConfig")])]),v("h3",[t._v("getCustomThemeConfig()")]),v("p",[t._v("获取自定义主题配置")]),v("h3",[t._v("getThemeConfig(prop)")]),v("p",[t._v("获取某个主题配置属性值")]),v("h3",[t._v("getConfig("),v("em",[t._v("prop")]),t._v(")")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("prop")]),t._v(":获取指定配置的值,不传则返回整个配置")]),v("p",[t._v("获取配置,即"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")])]),v("h3",[t._v("updateConfig("),v("em",[t._v("opt")]),t._v(" = {})")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("opt")]),t._v(":要更新的配置")]),v("p",[t._v("更新配置,即更新"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")]),t._v(",可以只更新部分数据,比如:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("mindMap.updateConfig({\n "),v("span",{staticClass:"hljs-attr"},[t._v("enableFreeDrag")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),v("span",{staticClass:"hljs-comment"},[t._v("// 开启节点自由拖拽")]),t._v("\n})\n")])]),v("p",[t._v("该方法只做更新配置的事情,没有其他副作用,比如触发画布重新渲染之类的")]),v("h3",[t._v("getLayout()")]),v("p",[t._v("获取当前的布局结构")]),v("h3",[t._v("setLayout(layout, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置布局结构,可选值见上面选项表格的"),v("code",[t._v("layout")]),t._v("字段")]),v("h3",[t._v("execCommand(name, ...args)")]),v("p",[t._v("执行命令,每执行一个命令就会在历史堆栈里添加一条记录用于回退或前进。所有命令如下:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("命令名称")]),v("th",[t._v("描述")]),v("th",[t._v("参数")])])]),v("tbody",[v("tr",[v("td",[t._v("SELECT_ALL")]),v("td",[t._v("全选")]),v("td")]),v("tr",[v("td",[t._v("BACK")]),v("td",[t._v("回退指定的步数")]),v("td",[t._v("step(要回退的步数,默认为1)")])]),v("tr",[v("td",[t._v("FORWARD")]),v("td",[t._v("前进指定的步数")]),v("td",[t._v("step(要前进的步数,默认为1)")])]),v("tr",[v("td",[t._v("INSERT_NODE")]),v("td",[t._v("插入同级节点,操作节点为当前激活的节点或指定节点,如果有多个激活节点,只会对第一个有效(v0.7.2+支持对多个激活节点同时插入兄弟节点)")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定要插入兄弟节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_CHILD_NODE")]),v("td",[t._v("插入子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("UP_NODE")]),v("td",[t._v("上移节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的第一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("DOWN_NODE")]),v("td",[t._v("操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的最后一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("REMOVE_NODE")]),v("td",[t._v("删除节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)")])]),v("tr",[v("td",[t._v("PASTE_NODE")]),v("td",[t._v("粘贴节点到节点,操作节点为当前激活的节点")]),v("td",[t._v("data(要粘贴的节点数据,一般通过"),v("code",[t._v("renderer.copyNode()")]),t._v("方法和"),v("code",[t._v("renderer.cutNode()")]),t._v("方法获取)")])]),v("tr",[v("td",[t._v("CUT_NODE")]),v("td",[t._v("剪切节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点使用无效")]),v("td",[t._v("callback(回调函数,剪切的节点数据会通过调用该函数并通过参数返回)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLE")]),v("td",[t._v("修改节点单个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式属性)、value(样式属性值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLEs(v0.6.12+)")]),v("td",[t._v("修改节点多个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式对象,key为样式属性,value为样式值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_ACTIVE")]),v("td",[t._v("设置节点是否激活")]),v("td",[t._v("node(要设置的节点)、active(布尔值,是否激活)")])]),v("tr",[v("td",[t._v("CLEAR_ACTIVE_NODE")]),v("td",[t._v("清除当前已激活节点的激活状态,操作节点为当前激活的节点")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_EXPAND")]),v("td",[t._v("设置节点是否展开")]),v("td",[t._v("node(要设置的节点)、expand(布尔值,是否展开)")])]),v("tr",[v("td",[t._v("EXPAND_ALL")]),v("td",[t._v("展开所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_ALL")]),v("td",[t._v("收起所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_TO_LEVEL(v0.2.8+)")]),v("td",[t._v("展开到指定层级")]),v("td",[t._v("level(要展开到的层级,1、2、3...)")])]),v("tr",[v("td",[t._v("SET_NODE_DATA")]),v("td",[t._v("更新节点数据,即更新节点数据对象里"),v("code",[t._v("data")]),t._v("对象的数据,注意这个命令不会触发视图的更新")]),v("td",[t._v("node(要设置的节点)、data(对象,要更新的数据,如"),v("code",[t._v("{expand: true}")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_TEXT")]),v("td",[t._v("设置节点文本")]),v("td",[t._v("node(要设置的节点)、text(要设置的文本字符串,换行可以使用"),v("code",[t._v("\\n")]),t._v(")、richText(v0.4.0+,如果要设置的是富文本字符,需要设为"),v("code",[t._v("true")]),t._v(")、resetRichText(v0.6.10+是否要复位富文本,默认为false,如果传true那么会重置富文本节点的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_IMAGE")]),v("td",[t._v("设置节点图片")]),v("td",[t._v("node(要设置的节点)、imgData(对象,图片信息,结构为:"),v("code",[t._v("{url, title, width, height}")]),t._v(",图片的宽高必须要传)")])]),v("tr",[v("td",[t._v("SET_NODE_ICON")]),v("td",[t._v("设置节点图标")]),v("td",[t._v("node(要设置的节点)、icons(数组,预定义的图片名称组成的数组,可用图标可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[t._v("icons.js")]),t._v("文件里的"),v("code",[t._v("nodeIconList")]),t._v("列表里获取到,图标名称为"),v("code",[t._v("type_name")]),t._v(",如"),v("code",[t._v("['priority_1']")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_HYPERLINK")]),v("td",[t._v("设置节点超链接")]),v("td",[t._v("node(要设置的节点)、link(超链接地址)、title(超链接名称,可选)")])]),v("tr",[v("td",[t._v("SET_NODE_NOTE")]),v("td",[t._v("设置节点备注")]),v("td",[t._v("node(要设置的节点)、note(备注文字)")])]),v("tr",[v("td",[t._v("SET_NODE_TAG")]),v("td",[t._v("设置节点标签")]),v("td",[t._v("node(要设置的节点)、tag(字符串数组,内置颜色信息可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[t._v("constant.js")]),t._v("里获取到)")])]),v("tr",[v("td",[t._v("INSERT_AFTER(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的后面")]),v("td",[t._v("node(要移动的节点,(v0.7.2+支持传递节点数组实现同时移动多个节点))、 exist(目标节点)")])]),v("tr",[v("td",[t._v("INSERT_BEFORE(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的前面,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 exist(目标节点)")])]),v("tr",[v("td",[t._v("MOVE_NODE_TO(v0.1.5+)")]),v("td",[t._v("移动节点作为另一个节点的子节点,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 toNode(目标节点)")])]),v("tr",[v("td",[t._v("ADD_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("添加节点概要")]),v("td",[t._v("data(概要的数据,对象格式,节点的数字段都支持,默认为{text: '概要'})")])]),v("tr",[v("td",[t._v("REMOVE_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("删除节点概要")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_CUSTOM_POSITION(v0.2.0+)")]),v("td",[t._v("设置节点自定义位置")]),v("td",[t._v("node(要设置的节点)、 left(自定义的x坐标,默认为undefined)、 top(自定义的y坐标,默认为undefined)")])]),v("tr",[v("td",[t._v("RESET_LAYOUT(v0.2.0+)")]),v("td",[t._v("一键整理布局")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_SHAPE(v0.2.4+)")]),v("td",[t._v("设置节点形状")]),v("td",[t._v("node(要设置的节点)、shape(形状,全部形状:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[t._v("Shape.js")]),t._v(")")])]),v("tr",[v("td",[t._v("GO_TARGET_NODE(v0.6.7+)")]),v("td",[t._v("定位到某个节点,如果该节点被收起,那么会自动展开到该节点")]),v("td",[t._v("node(要定位到的节点实例或节点uid)、callback(v0.6.9+,定位完成后的回调函数)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个同级节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), nodeList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), childList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_FORMULA(v0.7.2+)")]),v("td",[t._v("给节点插入数学公式,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("formula(要插入的数学公式,LaTeX 语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点)")])]),v("tr",[v("td",[t._v("INSERT_PARENT_NODE(v0.8.0+)")]),v("td",[t._v("给指定的节点插入父节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(可选,指定要插入父节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")")])]),v("tr",[v("td",[t._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),v("td",[t._v("仅删除当前节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组)")])]),v("tr",[v("td",[t._v("MOVE_UP_ONE_LEVEL(v0.9.6+)")]),v("td",[t._v("将指定节点上移一个层级")]),v("td",[t._v("node(可选,指定要上移层级的节点,不传则为当前激活节点中的第一个)")])]),v("tr",[v("td",[t._v("REMOVE_CUSTOM_STYLES(v0.9.7+)")]),v("td",[t._v("一键去除某个节点的自定义样式")]),v("td",[t._v("node(可选,指定要清除自定义样式的节点,不传则为当前激活节点中的第一个)")])]),v("tr",[v("td",[t._v("REMOVE_ALL_NODE_CUSTOM_STYLES(v0.9.7+)")]),v("td",[t._v("一键去除多个节点或所有节点的自定义样式")]),v("td",[t._v("appointNodes(可选,节点实例数组,指定要去除自定义样式的多个节点,如果不传则会去除当前画布所有节点的自定义样式)")])])])]),v("h3",[t._v("setData(data)")]),v("p",[t._v("动态设置思维导图数据,纯节点数据")]),v("p",[v("code",[t._v("data")]),t._v(":思维导图结构数据")]),v("h3",[t._v("setFullData("),v("em",[t._v("data")]),t._v(")")]),v("blockquote",[v("p",[t._v("v0.2.7+")])]),v("p",[t._v("动态设置思维导图数据,包括节点数据、布局、主题、视图")]),v("p",[v("code",[t._v("data")]),t._v(":完整数据,结构可参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[t._v("exportFullData")])]),v("h3",[t._v("getData(withConfig)")]),v("blockquote",[v("p",[t._v("v0.2.9+")])]),v("p",[t._v("获取思维导图数据")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",即获取的数据只包括节点树,如果传"),v("code",[t._v("true")]),t._v("则会包含主题、布局、视图等数据")]),v("h3",[t._v("export(type, isDownload, fileName)")]),v("blockquote",[v("p",[t._v("需要先注册"),v("code",[t._v("Export")]),t._v("插件")])]),v("p",[t._v("导出")]),v("p",[v("code",[t._v("type")]),t._v(":要导出的类型,可选值:png、svg、json、pdf(v0.2.1+)、smm(本质也是json)")]),v("p",[v("code",[t._v("isDownload")]),t._v(":是否需要直接触发下载,布尔值,默认为"),v("code",[t._v("false")])]),v("p",[v("code",[t._v("fileName")]),t._v(":(v0.1.6+)导出文件的名称,默认为"),v("code",[t._v("思维导图")])]),v("p",[t._v("如果是导出为"),v("code",[t._v("png")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("transparent")]),t._v(":v0.5.7+, "),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",指定导出图片的背景是否是透明的")]),v("p",[t._v("如果是导出为"),v("code",[t._v("svg")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("plusCssText")]),t._v(":附加的"),v("code",[t._v("css")]),t._v("样式,如果"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("dom")]),t._v("节点,想要设置一些针对节点的样式可以通过这个参数传入")]),v("p",[t._v("如果是导出为"),v("code",[t._v("json")]),t._v("或"),v("code",[t._v("smm")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("true")]),t._v(",指定导出的数据中是否包含配置数据,否则只导出纯节点树数据")]),v("h3",[t._v("toPos(x, y)")]),v("blockquote",[v("p",[t._v("v0.1.5+")])]),v("p",[t._v("将浏览器可视窗口的坐标转换成相对于画布的坐标")]),v("h3",[t._v("addPlugin(plugin, opt)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("注册插件,使用"),v("code",[t._v("MindMap.usePlugin")]),t._v("注册插件只能在实例化之前,实例化后注册的插件是不会生效的,所以如果想在实例化后注册插件可以使用实例的"),v("code",[t._v("addPlugin")]),t._v("方法。")]),v("h3",[t._v("removePlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("移除注册的插件,无论是通过"),v("code",[t._v("usePlugin")]),t._v("还是"),v("code",[t._v("addPlugin")]),t._v("方法注册的插件都可以移除。")])])}],a={},s=a,n=_("2877"),o=Object(n["a"])(s,e,d,!1,null,null,null);v["default"]=o.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-2d0f026c.js b/dist/js/chunk-2d0f026c.js index e402de0d..5aba5f4d 100644 --- a/dist/js/chunk-2d0f026c.js +++ b/dist/js/chunk-2d0f026c.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f026c"],{"9ac1":function(_,v,p){"use strict";p.r(v);var e=function(){var _=this;_._self._c;return _._m(0)},o=[function(){var _=this,v=_._self._c;return v("div",[v("h1",[_._v("Changelog")]),v("h2",[_._v("0.9.6")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复切换主题时,被收起的节点样式没有改变的问题;")]),v("p",[_._v("2.修复切换主题后进行文本换行时,新换行的文本样式会丢失的问题;")]),v("p",[_._v("3.修复切换主题时,换行的文本样式没有改变的问题;")]),v("p",[_._v("4.修复添加了数学公式的节点,切换主题时文本样式没有改变的问题;")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.主题新增字段,用于设置节点连线箭头的显示位置,头部或者尾部;")]),v("p",[_._v("2.主题新增字段,用于设置曲线连接时,根节点连线的起始位置;")]),v("p",[_._v("3.Mac 双指触摸事件移动画布增加一点灵敏度;")]),v("p",[_._v("4.新增 MOVE_UP_ONE_LEVEL 命令,用于将节点上移一个层级;")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.大纲支持按 Shift+Tab 键将节点上移一个层级;")]),v("p",[_._v("2.支持设置节点箭头显示的位置;")]),v("p",[_._v("3.支持设置根节点连线的起始位置;")]),v("p",[_._v("4.新增两个主题;")]),v("p",[_._v("5.修复大纲中文本换行不生效,显示br标签的问题;")])]),v("h2",[_._v("0.9.5")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复展开收起节点时区间概要会丢失的问题。")]),v("p",[_._v("2.修复新创建的关联线位置始终在节点的右侧没有根据相对位置变化的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.增加设置关联线创建时两个端点初始位置的配置。")]),v("p",[_._v("2.增加禁止调整关联线端点位置的配置。")]),v("p",[_._v("3.新增手绘风格插件。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.优化界面在移动端的适配。")]),v("p",[_._v("2.支持开启手绘风格。")])]),v("h2",[_._v("0.9.4")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复一些情况下,节点显示时的文本区域宽度和编辑时的宽度不一致导致的文本换行不一致的问题。")]),v("p",[_._v("2.修复存在渐变色背景的节点富文本编辑时编辑框没有应用渐变的问题。")]),v("p",[_._v("3.修复被主题定义了加粗的节点切换主题后文本样式丢失的问题。")]),v("p",[_._v("4.修复 mac 上 useLeftKeySelectionRightKeyDrag 选项设为 true 时无法按住 ctrl 键多选节点的问题。")]),v("p",[_._v("5.修复节点富文本编辑时清除样式后文字样式丢失并且切换主题也不会恢复的问题。")]),v("p",[_._v("6.修复删除含有子节点的节点时,data_change_detail 事件报错的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.主题配置增加 lineRadius 属性设置直线连接时的圆角大小。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.大纲里去掉公式的显示。")]),v("p",[_._v("2.基础样式中一些仅支持部分结构的配置根据当前结构进行显示和隐藏。")]),v("p",[_._v("3.新增连线圆角的配置。")]),v("p",[_._v("4.导入文件时自动隐藏侧边栏。")])]),v("h2",[_._v("0.9.3")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复 Safari 浏览器上节点存在图标时文字位置错位的问题。")]),v("p",[_._v("2.修复 Chrome 内核版本比较低的浏览器中公式无法渲染的问题。")]),v("p",[_._v("3.修复在微前端框架子应用中使用时,new MouseEvent 代码执行报错的问题。")]),v("p",[_._v("4.修复导出图片时节点连线的箭头、关联线的箭头、渐变背景丢失的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.导出 pdf 从 jspdf 库改为 pdf-lib 库。")]),v("p",[_._v("2.设置节点文本命令(SET_NODE_TEXT)的第二个参数如果没有传递,会使用之前的值。")]),v("p",[_._v("3.优化节点存在超链接、备注时在 Firefox 浏览器中导出图片的宽高不正确的问题。")]),v("p",[_._v("4.节点文本编辑中,如果粘贴的是 smm 格式的粘贴数据,那么会取出第一个节点的纯文本进行粘贴。")]),v("p",[_._v("5.增加对节点非富文本编辑时的粘贴的拦截操作。")]),v("p",[_._v("6.新增节点数据更新的明细事件(data_change_detail),可以获取新创建、更新、被删除的节点数据。")]),v("p",[_._v("7.主题配置支持设置节点渐变背景色。")])]),v("p",[_._v("Demo:")]),v("p",[_._v("1.支持设置节点渐变色的背景。")]),v("h2",[_._v("0.9.2")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复节点文本含有连续的数字或字母时没有换行的问题。")]),v("p",[_._v("2.修复导入含有和当前画布已有节点 uid 相同的文件时会重复绘制节点的问题。")]),v("p",[_._v("3.修复当节点数量超出了缓存池的最大数量时,前进回退会导致节点重复渲染的问题。")]),v("p",[_._v("4.修复鼠标或触控板水平滚动时画布移动方向相反的问题。")]),v("p",[_._v("5.修复节点被销毁时鼠标移入标志没有复位的问题。")]),v("p",[_._v("6.修复滚动条插件在 initRootNodePosition 配置不为默认的[center,center]时位置计算错误的问题。")]),v("p",[_._v("7.修复拖拽画布时鼠标在节点上面松开时拖拽无法停止的问题。")]),v("p",[_._v("8.修复当画布容器距浏览器窗口左上角不为 0 时,view.fit 方法计算出来的位置有误差的问题。")]),v("p",[_._v("9.修复当节点数量比较多时,导出的图片中水印没有完全覆盖整个图片的问题。")]),v("p",[_._v("10.修复插入公式报错的问题。")]),v("p",[_._v("11.修复节点文本编辑状态中鼠标选择文本时移出编辑框,文字选中状态会丢失的问题。")]),v("p",[_._v("12.修复节点富文本编辑时,文本选中范围为 null 时没有触发 rich_text_selection_change 事件的问题。")]),v("p",[_._v("13.修复 node_dragging 事件回参里没有 node 实例的问题。")]),v("p",[_._v("14.修复节点数量过多,画布尺寸过大无法导出 png 的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.修改 mousewheel 事件,dir 标志修改为 dirs,支持存储多个方向,优化触控板的双指移动操作。")]),v("p",[_._v("2.TextEdit 类增加 isShowTextEdit 方法判断当前是否处在节点编辑状态。")]),v("p",[_._v("3.Render 类的 paste 方法改为支持粘贴剪贴板的数据。")]),v("p",[_._v("4.新增将思维导图图形限制在画布内的配置选项。")]),v("p",[_._v("5.注册了滚动条插件的情况下,支持配置是否将思维导图限制在画布内。")]),v("p",[_._v("6.收起所有节点操作会将思维导图根节点移至画布中心。")]),v("p",[_._v("7.支持仅在导出时显示水印的配置选项。")]),v("p",[_._v("8.在节点粘贴剪贴板中的图片时,支持自定义处理函数,可以将图片上传到你的服务器。")]),v("p",[_._v("9.重构 pdf 的导出逻辑,导出的 pdf 尺寸不再是固定的 a4,而是思维导图的尺寸,同时删除分页导出的配置。")]),v("p",[_._v("10.节点连线支持显示箭头,作为主题的一个字段。")]),v("p",[_._v("11.最大历史记录数量默认调整为 500。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.支持配置仅在导出时显示水印。")]),v("p",[_._v("2.基础样式配置连线支持显示箭头。")])]),v("h2",[_._v("0.9.1-fix.2")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复当节点文本为空时部分浏览器会显示默认文本的问题。")]),v("p",[_._v("2.修复当节点文本内容为空时再次输入文本时文本样式丢失的问题。")]),v("p",[_._v("3.修复节点图片加载失败时导出图片也会失败的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.支持配置节点图片加载失败时显示的默认图片。")])]),v("h2",[_._v("0.9.1-fix.1")]),v("p",[_._v("修复:")]),v("p",[_._v("1.修复自定义节点方法返回 null 时报错的问题。")]),v("p",[_._v("2.修复导出 pdf 文件体积很大的问题。")]),v("h2",[_._v("0.9.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复自定义节点内容时导出图片、svg、pdf 报错的问题。")]),v("p",[_._v("2.优化节点激活事件的派发,激活节点未改变时不派发事件,短时间派发多次事件时跳过中间事件。")]),v("p",[_._v("3.修复节点处于编辑状态时,通过鼠标滚动移动画布后编辑框和节点脱离的问题。")]),v("p",[_._v("4.修复在节点编辑状态中通过鼠标滚轮缩放画布再退出节点编辑后快捷键失效的问题。")]),v("p",[_._v("5.修复点击节点也会触发 node_dragend 事件的问题。")]),v("p",[_._v("6.修复不在格式刷时点击画布和节点也会触发 painter_end 事件的问题。")]),v("p",[_._v("7.修复在节点文本编辑中和关联线文本编辑中时销毁思维导图文本编辑框未被销毁的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.按住 Ctrl 键时禁用节点双击事件。")]),v("p",[_._v("2.支持配置创建新节点时的行为:聚焦且进入编辑、不聚焦、只聚焦。")]),v("p",[_._v("3.只读模式下搜索时给当前匹配到的节点增加高亮效果。")]),v("p",[_._v("4.鼠标滚轮行为默认改为上下移动画布;默认改为向前滚动放大画布,向后缩小。")]),v("p",[_._v("5.在鼠标滚轮行为为上下移动画布时,支持按住 Ctrl 键进行放大缩小画布。")])]),v("p",[_._v("Demo:支持配置创建新节点时的行为。")]),v("h2",[_._v("0.9.0")]),v("p",[_._v("新增:")]),v("p",[_._v("1.支持对同一个节点的部分子节点添加概要。")]),v("p",[_._v("2.鼠标移入概要会高亮其所属节点。")]),v("p",[_._v("3.导入和导出 xmind 文件支持处理概要。")]),v("h2",[_._v("0.8.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复历史记录数据中概要节点的激活状态未被删除的问题,会导致点击概要节点时触发 data_change 事件。")]),v("p",[_._v("2.修复在 safari 浏览器中运行时,页面空白且控制台抛出异常的问题。")]),v("p",[_._v("3.修复缩放画布时图标浮层和备注浮层和节点脱离的问题。")]),v("p",[_._v("4.修复只读模式下可以全选节点的问题。")]),v("p",[_._v("5.修复富文本模式下节点内容存在 时导出为图片出错的问题。")]),v("p",[_._v("6.修复先给自身添加概要,再给下级添加概要会出现概要重叠的问题;修复同时给存在上下级关系的节点添加概要时概要重叠的问题。")]),v("p",[_._v("7.修复节点数量很多的情况下导出 pdf 报错的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.新增禁止拖动画布的配置选项。")]),v("p",[_._v("2.新增禁止双指缩放画布的配置选项。")]),v("p",[_._v("3.导出 png 的方法新增压缩参数;优化大数据量节点导出 pdf 时体积过大的问题。")]),v("p",[_._v("4.将节点实例的 isParent 方法改名为 isAncestor,同时新增 isParent 方法。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复只读模式下仍旧可以搜索替换和编辑大纲的问题。")]),v("p",[_._v("2.修复节点内容为 html 标签时大纲无法显示和编辑的问题。")]),v("p",[_._v("3.修复同时选中多个节点添加图标时,所有节点图标都会统一为第一个节点的图标的问题。")]),v("p",[_._v("4.导出操作增加 loading。")])]),v("h2",[_._v("0.8.0-fix.1")]),v("p",[_._v("修复:修复直接粘贴的方式创建新节点时如果粘贴的内容带有<>等 html 标签符号时新创建的节点内容为空的问题。")]),v("h2",[_._v("0.8.0")]),v("p",[_._v("破坏性更新:大幅优化部分代码,小幅提升性能,主要是"),v("code",[_._v("render")]),_._v("类,删除无用逻辑、调整不合理的实现、提取重复代码;修改函数名称、函数功能等。")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复导出图片和 svg 时关联线的箭头消失的问题。")]),v("p",[_._v("2.修复调整容器大小后回到根节点的操作异常的问题。")]),v("p",[_._v("3.修复插入概要、上移、下移、一键整理布局的快捷键操作没有触发 data_change 事件的问题。")]),v("p",[_._v("4.修复存在水印时导出图片、svg、pdf 时每个节点都会显示边框的问题。")]),v("p",[_._v("5.修复容器尺寸改变后没有水印没有重新绘制的问题。")]),v("p",[_._v("6.修复存在水印时小地图渲染非常慢的问题。")]),v("p",[_._v("7.修复协同插件当创建新节点时新节点未显示创建人头像的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.优化画布 DOM 结构,将节点、连线、关联线分层渲染。")]),v("p",[_._v("2.优化水印插件。")]),v("p",[_._v("3.setTheme、setThemeConfig、setLayout 函数增加不触发重新渲染的参数。")]),v("p",[_._v("4.新增插入父节点的命令。")]),v("p",[_._v("5.新增仅删除当前节点的命令。")]),v("p",[_._v("6.插入概要时自动展开子节点。")]),v("p",[_._v("7.鼠标右键单击画布时清除当前激活节点。")]),v("p",[_._v("8.被收起的激活节点同步从激活节点列表里删除。")]),v("p",[_._v("9.粘贴带换行的文本支持控制是否按换行分割节点。")]),v("p",[_._v("10.小地图插件支持返回图片类型的小地图。")]),v("p",[_._v("11.指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修改回到根节点的方法及文案。")]),v("p",[_._v("2.修复覆盖方式切换主题时第一次切换不生效的问题。")]),v("p",[_._v("3.右键菜单新增插入父节点和仅删除当前节点的功能。")]),v("p",[_._v("4.顶部工具栏支持根据窗口宽度自动收起到更多中。")]),v("p",[_._v("5.支持手动输入缩放倍数。")]),v("p",[_._v("6.完善界面英文翻译。")]),v("p",[_._v("7.小地图改为通过图片渲染。")])]),v("h2",[_._v("0.7.3-fix.2")]),v("p",[_._v("修复协同编辑的一些问题:")]),v("p",[_._v("1.插入同级节点时新节点位置不正确;")]),v("p",[_._v("2.在同级节点中移动位置没有触发更新;")]),v("p",[_._v("3.移动节点作为兄弟节点插入时位置不正确;")]),v("h2",[_._v("0.7.3-fix.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复一些情况下多选节点时的框选区域没有消失的问题。")]),v("p",[_._v("2.修复多选节点时在节点上松开鼠标时框选区域不会消失的问题。")]),v("p",[_._v("3.修复多次粘贴节点时由于节点 uid 重复造成的渲染异常问题。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.超链接输入框增加协议选择功能。")])]),v("h2",[_._v("0.7.3")]),v("p",[_._v("新增:1.新增协同编辑插件。")]),v("p",[_._v("Demo:1.修复公式侧边栏组件导致的侧边栏自动关闭问题。")]),v("h2",[_._v("0.7.2")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复多选节点时选区未包含节点边界时节点不会被选中的问题。")]),v("p",[_._v("2.修复节点文本不为字符串时报错的问题。")]),v("p",[_._v("3.修复非富文本模式下文本中存在<>&字符时再次编辑时部分文本会消失的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.支持插入数学公式。")]),v("p",[_._v("2.支持同时拖拽移动多个节点。")]),v("p",[_._v("3.支持同时复制、剪切多个节点。")]),v("p",[_._v("4.节点标签颜色改为根据标签内容生成,即同样的标签内容会生成相同的颜色。")]),v("p",[_._v("5.优化子节点的插入:1.同时对多个节点插入子节点时,不进入编辑状态;2.新插入的子节点自动进入激活状态。")]),v("p",[_._v("6.优化兄弟节点的插入:1.支持同时对多个节点插入兄弟节点;2.对根节点调用插入兄弟节点的命令时不再创建子节点。")]),v("p",[_._v("7.新增同时插入多个同级节点、多个子节点的命令。")]),v("p",[_._v("8.将节点唯一标识由 id 全部改为 uid,主要影响关联线,之前版本的关联线可能无法正常显示。")]),v("p",[_._v("9.优化图标合并逻辑,支持扩展库内部分类下的图标。")]),v("p",[_._v("10.关联线:1.双击关联线进入关联线文本编辑模式;2.关联线文本为默认文本的话不保存;3.存在激活节点时点击关联线可直接激活关联线。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复复制知犀思维导图多个节点时无法粘贴的问题。")]),v("p",[_._v("2.新增公式编辑的侧边栏。")])]),v("h2",[_._v("0.7.1-fix.2")]),v("p",[_._v("修复:1.修复插件注册方法链式调用报错的问题。")]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.新增思维导图初次加载时适应画布大小的配置选项。")]),v("p",[_._v("2.新增自动生成 dts 声明文件的命令。")])]),v("h2",[_._v("0.7.1-fix.1")]),v("p",[_._v("修复:修复拖拽节点时没有排除被拖拽节点的下级节点的问题。")]),v("h2",[_._v("0.7.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复关联线端点改变后未保存的问题。")]),v("p",[_._v("2.修复画布左上角距浏览器窗口不为 0 时多选节点鼠标移动到边缘时画布滚动异常的问题。")]),v("p",[_._v("3.修复导入存在为标题为空的节点的 xmind 文件报错的问题。")]),v("p",[_._v("4.修复导出的 xmind 文件在最新版 xmind 软件上打开时提示已损坏的问题。")]),v("p",[_._v("5.修复导出带有贴纸的数据为 xmind 格式时贴纸无法显示的问题。")]),v("p",[_._v("6.修复没有注册 select 插件时节点右键事件报错的问题。")]),v("p",[_._v("7.修复注册插件的方法没有去重的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.重构节点拖拽逻辑:优化一些情况下的拖拽难问题、适配各种结构、拖拽时鼠标移动到画布边缘时画布自动移动。")]),v("p",[_._v("2.重构滚动条插件,优化使用体验。")]),v("p",[_._v("3.不完美的解决逻辑结构图、思维导图、目录组织图、组织结构图概要和节点的冲突问题(概要后面应该会重写或删除)。")]),v("p",[_._v("4.删除节点后激活相邻节点。")]),v("p",[_._v("5.节点数据 data 中以_开头的字段被认为是自定义字段。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.页面增加显示当前核心库版本号。")])]),v("h2",[_._v("0.7.0")]),v("p",[_._v("破坏性更新:删除了主题文件中节点激活样式的部分,不再支持设置节点的激活样式,激活效果改为统一的节点外边框样式,同时支持鼠标 hover 效果。")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复节点边框尺寸比较大的情况下的的渲染异常问题。")]),v("p",[_._v("2.修复切换主题时存在关联线的节点样式不会更新的问题。")]),v("p",[_._v("3.修复全选没有触发 node_active 事件的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.收起节点时,显示折叠的节点数量。")]),v("p",[_._v("2.支持关联线端点的位置跟随鼠标拖拽变化。")]),v("p",[_._v("3.新增滚动条插件。")]),v("p",[_._v("4.支持在 url 中通过 fileURL 查询参数打开指定的在线文件。")]),v("p",[_._v("5.鱼骨图支持设置节点 margin。")]),v("p",[_._v("6.默认关闭双击复位画布。")]),v("p",[_._v("7.修改导出图片方法的参数,导出 pdf 时如果思维导图尺寸小于 a4 纸那么不旋转方向。")]),v("p",[_._v("8.提升导出的图片和 pdf 在高清屏的清晰度。")]),v("p",[_._v("9.插件新增销毁前生命周期函数,解决销毁思维导图时插件的一些副作用没有清除的问题。")]),v("p",[_._v("10.优化基础样式的设置,修改不影响大小的主题属性时不触发全量渲染。")]),v("p",[_._v("11.右键多选节点结束时禁止触发节点右键菜单事件,避免触发右键菜单显示。")]),v("p",[_._v("12.优化 Select 插件,如果多选节点没有变化,那么不触发激活激活事件。")]),v("p",[_._v("13.node_active 事件抛出的激活节点列表不再直接引用内部激活列表。")]),v("p",[_._v("14.优化鼠标按下节点事件逻辑,在右键拖拽画布模式下支持右键按住根节点拖拽画布。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.不直接引用内部激活节点列表,优化性能。")]),v("p",[_._v("2.支持配置是否显示滚动条。")]),v("p",[_._v("3.删除侧边栏节点样式配置部分的激活节点配置。")])]),v("h2",[_._v("0.6.17")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复导入百度脑图导出的 xmind 文件报错的问题。")]),v("p",[_._v("2.修复 mindMap.export 方法代码错误。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.新增 index.d.ts。")]),v("p",[_._v("2.支持配置是否开启双击复位思维导图。")]),v("p",[_._v("3.拦截富文本编辑时的粘贴操作,去掉格式,只允许粘贴纯文本。")])]),v("h2",[_._v("0.6.16")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.优化富文本测量元素的逻辑,删除样式的重复设置和节点的重复添加。")]),v("p",[_._v("2.优化导出图片逻辑,遍历节点转换图片的 url 时,如果已经是 data:URL 形式不重复处理。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.去除导出 svg 方法的第二个参数,改为通过实例化配置。")]),v("p",[_._v("2.导出图片不再使用外部库。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复单独编辑大纲时能给根节点添加兄弟节点的 bug。")])]),v("h2",[_._v("0.6.15-fix.2")]),v("p",[_._v("修复:修复在 Firefox 浏览器中富文本节点无法显示的问题。")]),v("h2",[_._v("0.6.15-fix.1")]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.导出 pdf 支持根据图片大小分页导出。")]),v("p",[_._v("2.导出 pdf 支持根据长宽比自动调整方向。")]),v("p",[_._v("3.优化展开收起按钮的占位元素:1.没有子节点的节点不渲染该元素;2.根据是否存在子节点动态更新该元素。")]),v("p",[_._v("4.新增禁止鼠标滚轮缩放的配置。")]),v("p",[_._v("5.支持传递错误处理函数。")])]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复节点文本为空时显示异常问题。")]),v("p",[_._v("2.导出 svg 的图形的 paddingX 和 paddingY 改为单侧 padding。")]),v("p",[_._v("3.修复画布距浏览器窗口左上角不为 0 时鼠标缩放时不以鼠标为中心的问题。")]),v("p",[_._v("4.修复节点边框会重合的问题。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.右下角支持跳转相关链接。")]),v("p",[_._v("2.调整小地图位置,解决被侧边按钮遮挡的问题。")]),v("p",[_._v("3.修复打开本地文件右上角的提示无法关闭的问题。")]),v("p",[_._v("4.单独编辑大纲不再和画布联动,优化大数据量下的编辑体验。")]),v("p",[_._v("5.侧边栏涉及图形的选项增加可视化效果。")])]),v("h2",[_._v("0.6.14")]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.去除创建隐藏输入框,通过 navigator.clipboard 实现复制粘贴;支持跨浏览器粘贴思维导图节点数据;支持自定义处理剪贴板中的文本数据。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复开启输入自动进入文本编辑模式和其他输入框冲突的问题。")]),v("p",[_._v("2.修复无法在节点图片弹窗里删除节点图片的问题。")]),v("p",[_._v("3.修复在节点样式侧边栏里无法去除节点的文本修饰线样式的问题。")]),v("p",[_._v("4.颜色选择器支持选择透明颜色。")]),v("p",[_._v("5.修复基础样式侧边栏打开状态下,导入思维导图数据后侧边栏数据未更新的问题。")]),v("p",[_._v("6.修复大纲修改一个节点的文本后再点击其他节点时不聚焦的问题。")]),v("p",[_._v("7.修复退出禅模式后左下角的节点和字数统计未更新的问题。")]),v("p",[_._v("8.支持从右键菜单删除节点的超链接、备注。")]),v("p",[_._v("9.支持粘贴知犀思维导图的节点数据。")])]),v("h2",[_._v("0.6.13")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复只读模式下鼠标中键按住节点无法拖动画布的问题。")]),v("p",[_._v("2.修复快速拖动节点几次后会概率性报错的问题。")]),v("p",[_._v("3.修复在移动端激活节点、展开收起时等操作时会拉起输入法的问题。")]),v("p",[_._v("4.修复主题配置中背景图片为 none 时会发起一个异常请求的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.移动端手势缩放优化: 按线性关系进行缩放、双指位移可以调整画布位置。")]),v("p",[_._v("2.去掉异步渲染节点的逻辑,提升创建新节点的速度。")]),v("p",[_._v("3.导出图片由 html2canvas 库改为使用 dom-to-image-more 库,解决导出富文本节点文字样式丢失的问题。")]),v("p",[_._v("4.非富文本输入框进入编辑状态时取消默认全选。")]),v("p",[_._v("5.存在一个激活节点时,支持按下中文、数字、英文按键时自动进入文本编辑模式。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.保存视图数据时增加防抖操作,优化性能。")]),v("p",[_._v("2.一些耗时的操作添加 loading 效果。")]),v("p",[_._v("3.完善右键菜单和富文本工具条的暗黑模式。")])]),v("h2",[_._v("0.6.12")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复当思维导图全部移出可视区域后小地图中的指示器也会移出小地图区域的问题。")]),v("p",[_._v("2.修复移动端双指缩放过于灵敏的问题。")]),v("p",[_._v("3.修复只读模式下按住节点无法拖动画布的问题。")]),v("p",[_._v("4.修复当思维导图距浏览器窗口左上角不为 0 时,小地图渲染不正确的问题。")]),v("p",[_._v("5.修复移动节点时新位置的提示块过大的问题。")]),v("p",[_._v("6.修复搜索不能替换为空字符的问题。")]),v("p",[_._v("7.修复富文本模式下,搜索替换后换行会丢失的问题。")]),v("p",[_._v("8.修复大纲里点击文字编辑时输入框焦点丢失的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.节点移动结束事件(node_dragend)增加回调参数,可以获取到移动到节点的 uid。")]),v("p",[_._v("2.支持通过配置指定内部一些元素添加到的位置。")]),v("p",[_._v("3.支持格式刷功能。")]),v("p",[_._v("4.曲线风格下,根节点的连接线样式支持和其他节点保持一致。")]),v("p",[_._v("5.搜索支持连续替换。")]),v("p",[_._v("6.节点图片新增删除按钮。")]),v("p",[_._v("7.支持按住鼠标中键拖动画布。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.提供应用接管模式,方便对接自己的存储服务;支持运行时设置静态资源路径。")]),v("p",[_._v("2.重构大纲:1.不再使用节点自带的文本样式;2.支持全屏编辑大纲;3.大纲支持拖拽移动节点;4.大纲支持删除节点。")]),v("p",[_._v("3.修复导入数据场景下界面暗黑模式没有更新的问题。")])]),v("h2",[_._v("0.6.11-fix.1")]),v("p",[_._v("修复:1.修复节点文字为白色时编辑的时候看不见的问题。")]),v("h2",[_._v("0.6.11")]),v("p",[_._v("新增:1.优化小地图,去除小地图内的节点内容,优化性能。")]),v("p",[_._v("Demo:1.新增主题、主题列表新增 tab 区分。 2.节点图片上传支持输入网络图片地址。 3.节点图片上传支持输入网络图片。")]),v("h2",[_._v("0.6.10")]),v("p",[_._v("修复:1.修复搜索定位到某个节点后删除该节点,再次搜索时搜索结果未更新的问题。 2.修复调整图片大小的按钮在节点操作后没有更新的问题。 3.修复内部数据深拷贝位置不正确的问题。 4.修复富文本节点换行不生效的问题。 5.修复切换主题等场景时节点换行会丢失的问题。")]),v("p",[_._v("新增:1.搜索支持搜索空白字符和替换为空白字符。")]),v("p",[_._v("Demo:1.支持通过图标按钮调出搜索。 2.支持通过图标按钮切换暗黑模式。 3.优化搜索:鼠标不在搜索区域内不聚焦,解决鼠标不在搜索区域内无法删除输入的文字的问题。 4.调整添加节点图标的界面 UI,新增系列节点图标。 5.新增贴纸列表。 6.修复在搜索框回车后输入框焦点丢失的问题。 7.支持点击节点内的图标显示一个图标快捷替换和删除悬浮面板。")]),v("h2",[_._v("0.6.9-fix.1")]),v("p",[_._v("修复:1.修复搜索进行一次单个替换后再全部替换不正确的问题。")]),v("p",[_._v("新增:1.不会再直接修改传入的 data 对象,内部会深拷贝一份。")]),v("h2",[_._v("0.6.9")]),v("p",[_._v("修复:1.修复给概要节点设置样式概要节点会消失的问题。2.修复自定义节点内容时,二次创建根实例时节点内容不渲染的问题。3.修复节点处于编辑中时添加新节点时新节点的焦点丢失问题。 2.修复连续按 tab 键无法连续创建子节点的问题。")]),v("p",[_._v("新增:1.导出 svg 时替换 svg 中存在的"),v("code",[_._v(" ")]),_._v("字符,避免导出的 svg 报错。 2.支持搜索和替换。")]),v("p",[_._v("Demo:1.切换主题时支持选择是否覆盖设置过的基础样式。")]),v("h2",[_._v("0.6.8")]),v("p",[_._v("修复:1.修改插入概要的快捷键为 Ctrl+G,避免和保存快捷键冲突。 2.修复节点正在编辑时切换富文本编辑配置输入框出现异常的问题。")]),v("p",[_._v("新增:1.修改复制、剪切、粘贴逻辑,支持粘贴剪切板中的数据。")]),v("p",[_._v("Demo:1.修复基础样式-设置节点外边距未保存的问题。 2.支持根据主题自动切换为暗黑模式。")]),v("h2",[_._v("0.6.7")]),v("p",[_._v("修复:1.修复节点收起再展开后展开收起按钮占位元素丢失的问题。 2.修复只读模式下可以缩放图片的问题。")]),v("p",[_._v("新增:1.支持根据节点实例或节点 uid 定位到某个节点。 2.修改节点 uid 的创建方式,导出数据添加节点的 uid。")]),v("p",[_._v("移除:1.移除节点过渡效果。")]),v("p",[_._v("Demo:1.添加网站首页。 2.修复大纲里创建新节点时节点样式丢失的问题。 3.修复大纲里编辑节点后按回车或 Tab 键后编辑文本丢失的问题。 4.优化大纲的节点定位,被收起的节点会自动展开。 5.侧边栏按钮支持收起。 6.优化小屏适配。")]),v("h2",[_._v("0.6.6")]),v("p",[_._v("新增:1.支持导出为 Xmind 新版文件。2.导入 Xmind 新版文件支持导入节点中的图片。 3.新增竖向时间轴结构。")]),v("p",[_._v("修复:1.TouchEvent 插件不再派发 click 事件,解决移动端点击超链接会打开两个窗口的问题。 2.修复拖拽移动一个节点成为另一个节点的子节点时该节点的父节点指向未更新的问题。 3.修复二级节点拖拽成三级节点时节点边框样式未更新的问题。 4.修复向右生长的结构外其他结构鼠标移入展开收起按钮位置时不会触发按钮显示的问题。")]),v("p",[_._v("优化:1.优化触控板缩放画布时幅度过大的问题。2.刚创建的节点默认全选方便删除默认文本。")]),v("h2",[_._v("0.6.5-fix.1")]),v("p",[_._v("修复:1.修复在缩放情况下调整图片大小不正确的问题。")]),v("h2",[_._v("0.6.5")]),v("p",[_._v("修复:1.修复 xmind 文件导入报错的问题。 2.修复极少数情况下当节点文本的宽度为小数时显示发生换行的问题。")]),v("p",[_._v("新增:1.打包后的库支持获取内置常量、主题等数据。 2.支持配置鼠标滚轮方向对应的缩放行为。 3.节点图片支持拖拽调整大小。")]),v("h2",[_._v("0.6.4-fix.1")]),v("p",[_._v("新增:1.鼠标滚轮缩放时默认以鼠标当前位置为中心进行缩放,可以通过配置关闭该特性。")]),v("p",[_._v("修复:1.修复改变了画布大小后缩放中心点默认值不随之更新的问题。")]),v("h2",[_._v("0.6.4")]),v("p",[_._v("新增:1.默认以画布中心点进行缩放。 2.优化移动端双指缩放,以双指中心位置为中心点进行缩放。")]),v("h2",[_._v("0.6.3")]),v("p",[_._v("修复:1.修复概要节点会响应插入节点快捷键的问题。")]),v("p",[_._v("新增:1.支持自定义节点内容。")]),v("h2",[_._v("0.6.2")]),v("p",[_._v("修复:1.修复富文本模式下,新建节点不随主题变化而变化的问题。")]),v("h2",[_._v("0.6.1")]),v("p",[_._v("修复:1.修复将鼠标滚动改为移动画布行为后,使用触控板操作时移动灵敏度过高的问题。")]),v("h2",[_._v("0.6.0-fix.1")]),v("p",[_._v("修复:1.修复没有设置过背景样式的情况下销毁思维导图报错的问题。")]),v("h2",[_._v("0.6.0")]),v("p",[_._v("破坏性更新:调整了 simple-mind-map 源码的目录结构,主要影响:1.插件的引入路径需要修改。2.constant 文件路径需要修改。")]),v("p",[_._v("新增:1.支持一键缩放至适应画布功能。 2.按住 Ctrl 键多选功能可通过配置按需开启。 3.支持设置为左键多选节点,右键拖动画布。 4.支持控制节点是否允许编辑。 5.新增销毁思维导图的方法。 6.新增触摸事件支持插件。")]),v("p",[_._v("修复:1.修复按住 ctrl 键多选节点时不会触发节点的 click 事件的问题。 2.修复清空一个节点后再输入文字时节点样式丢失的问题。")]),v("h2",[_._v("0.5.11")]),v("p",[_._v("新增:支持关联性文本编辑。")]),v("p",[_._v("优化:优化主题配置更新,改变不涉及节点大小的配置不触发节点重新计算。")]),v("h2",[_._v("0.5.10")]),v("p",[_._v("新增:使用 LRU 缓存算法优化节点复用逻辑。")]),v("h2",[_._v("0.5.10-fix.1")]),v("p",[_._v("修复:修复导入出错的问题。")]),v("h2",[_._v("0.5.10-fix.2")]),v("p",[_._v("修复:修复富文本模式下,切换主题、导入数据后没有触发数据改变的问题。")]),v("p",[_._v("新增:新增三种主题。")]),v("h2",[_._v("0.5.9")]),v("p",[_._v("修改:统一导出方法的格式,使用"),v("code",[_._v("FileReader")]),_._v("代替"),v("code",[_._v("URL.createObjectURL")]),_._v("转换"),v("code",[_._v("blob")]),_._v("数据。")]),v("h2",[_._v("0.5.8")]),v("p",[_._v("优化:1.节点位置没有变化不触发位置设置。 2.展开收起状态没有变化不触发按钮更新。")]),v("p",[_._v("新增:1.默认改为鼠标移上节点才显示展开收起按钮。 2.支持扩展节点可插入的图标列表。")]),v("h2",[_._v("0.5.7")]),v("p",[_._v("破坏性更新:富文本模式下导出 png 改为使用 html2canvas 转换整个 svg,大幅提高导出速度,不过 html2canvas 存在一个 bug,foreignObject 元素中的 dom 节点内联的文字颜色无法识别,所以导出节点的文字颜色是固定的,不过相对于之前的导出基本不可用状态,目前至少能快速顺利的导出。")]),v("p",[_._v("优化:优化富文本节点编辑体验。")]),v("p",[_._v("新增:富文本模式下,导入数据、初始化数据、切换主题场景节点样式支持跟随主题变化。")]),v("h2",[_._v("0.5.6")]),v("p",[_._v("修复:1.修复短时间快速多次渲染时节点位置错乱的问题。 2.修复节点正在编辑中时拖动画布导致编辑框和节点分离的问题。")]),v("p",[_._v("新增:1.添加最大历史记录数限制。")]),v("h2",[_._v("0.5.5")]),v("p",[_._v("新增:1.支持配置导出为 png、svg、pdf 时的内边距。 2.支持配置节点文本编辑框、节点备注浮层元素的 z-index。 3.支持点击画布外的区域结束节点编辑状态。")]),v("h2",[_._v("0.5.5-fix.1")]),v("p",[_._v("修复:1.修复节点在画布外编辑时编辑框也在画布外的问题。 2.修改结构后复位变换,防止存在缩放时切换结构后第一次拖动时会发生位置突变的问题。")]),v("p",[_._v("优化:1.节点多选时只要节点和选区存在交叉即认为被选中。")]),v("h2",[_._v("0.5.5-fix.2")]),v("p",[_._v("修复:1.修复小地图报错。")]),v("h2",[_._v("0.5.4")]),v("p",[_._v("新增:1.添加新主题。 2.新增时间轴和鱼骨结构。")]),v("p",[_._v("修复:1.修复节点右键和画布右键的冲突问题。 2.修复组织结构图、目录组织图等节点拖拽时存在线段未隐藏的 bug。")]),v("p",[_._v("优化:1.优化组织结构图布局。2.优化目录组织图布局。")]),v("h2",[_._v("0.5.4-fix.1")]),v("p",[_._v("优化:1.优化鱼骨图布局。")]),v("h2",[_._v("0.5.3")]),v("p",[_._v("修复:1.修复富文本模式下,如果选择了多个节点时设置文本样式,会将所有多选节点的文本改成最后一个多选节点的文本的问题。")]),v("p",[_._v("新增:1.支持设置初始中心节点的位置。")]),v("h3",[_._v("0.5.3-fix.1")]),v("p",[_._v("修复:1.修复设置初始中心节点的位置不生效的问题。")]),v("h3",[_._v("0.5.3-fix.2")]),v("p",[_._v("修复:1.修复导出为图片时,节点中的图片显示不出来的问题。")]),v("h2",[_._v("0.5.2")]),v("p",[_._v("修复:1.导出的"),v("code",[_._v("json")]),_._v("数据中去除"),v("code",[_._v("uid")]),_._v(";2.重新渲染时清空节点缓存池。")]),v("h2",[_._v("0.5.1")]),v("p",[_._v("优化:1.只有当鼠标在画布内才响应快捷键事件。")]),v("p",[_._v("修复:1.修复快速操作时节点位置不正确的问题。")]),v("h2",[_._v("0.5.0")]),v("p",[_._v("这个版本主要是代码层面的改动和优化,核心是为了提升渲染性能,减少卡顿问题。")]),v("p",[_._v("新增:1.支持自定义展开收起节点图标和颜色;")]),v("p",[_._v("优化:1.优化渲染逻辑,设置主题、前进回退等操作不再全量渲染;")]),v("pre",[v("code",[_._v(" 2.优化节点拖拽逻辑,修复无法拖动到两个节点之间的问题;\n\n 3.收起全部节点操作增加回到中心点的逻辑;\n\n 4.修复短时间多次触发渲染造成节点乱飞和错乱的问题;\n\n 5.优化节点编辑的体验;\n")])]),v("p",[_._v("修复:1.修复 setData 方法不触发历史记录的问题;")]),v("p",[_._v("修改:从 0.5.0 版本开始,考虑性能问题,节点激活状态只能修改形状相关的样式:")]),v("pre",{staticClass:"hljs"},[v("code",[_._v(";["),v("span",{staticClass:"hljs-string"},[_._v("'fillColor'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderColor'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderWidth'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderDasharray'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderRadius'")]),_._v("]\n")])]),v("h2",[_._v("0.4.7")]),v("p",[_._v("优化:1.富文本编辑时初始聚焦时不再默认全选;2.富文本编辑时使用节点填充色作为背景色,避免节点颜色为白色时看不见。 3.节点激活状态切换不再触发历史记录。 4.短时间多次触发历史记录,只会添加最后一次的数据。 5.优化历史记录添加,当有回退时,再次添加新记录时删除当前指针后面的历史数据。")]),v("p",[_._v("新增:1.支持导入和导出 Markdown 格式文件。 2.支持配置插入节点时的初始文字。 3.扩展插入节点和删除节点的命令,支持指定节点。")]),v("h2",[_._v("0.4.6")]),v("p",[_._v("新增:1.关联线支持调整控制点。")]),v("p",[_._v("优化:1.添加历史数据时过滤和上一次相比没有改变的数据。")]),v("p",[_._v("修复:1.修复节点编辑时方向键和方向键导航功能的冲突问题。 2.修复拖拽移动节点时节点 id 的丢失问题,这会导致关联线丢失。")]),v("h2",[_._v("0.4.5")]),v("p",[_._v("新增:1.支持关联线。 2.按住根节点也可以拖动画布。3.按住 ctrl 键可以调整多选节点。")]),v("h2",[_._v("0.4.4")]),v("p",[_._v("新增:支持响应鼠标的横向滚动。")]),v("h2",[_._v("0.4.3")]),v("p",[_._v("修复:前进回退后没有触发"),v("code",[_._v("data_change")]),_._v("事件的问题。")]),v("p",[_._v("新增:支持自定义鼠标滚轮事件;鼠标滚轮调整为支持缩放视图和上下移动视图。")]),v("h2",[_._v("0.4.2")]),v("p",[_._v("新增:"),v("code",[_._v("Node")]),_._v("类的"),v("code",[_._v("setText")]),_._v("方法增加第二个参数,以支持设置富文本内容。")]),v("h2",[_._v("0.4.1")]),v("p",[_._v("新增:1.新增抛出节点鼠标移入和移除事件;2.节点富文本支持设置背景颜色;3.节点富文本支持清除样式。")]),v("p",[_._v("修复:1.Mac 系统触控板缩放相反的问题;2.设备 window.devicePixelRatio 不为 1 时,当存在富文本节点时导出的图片中富文本节点尺寸会变大的问题。")]),v("h2",[_._v("0.4.0")]),v("p",[_._v("新增:节点支持富文本编辑。")]),v("h2",[_._v("0.3.4")]),v("p",[_._v("新增:节点文本增加自动换行功能。")]),v("p",[_._v("修复:1.修复批量删除的节点中如果存在根节点会出现删除异常的问题。2.修复底边风格的情况下,节点高度过高会和其他节点重叠的问题。")]),v("h2",[_._v("0.3.3")]),v("p",[_._v("修复:根节点文字无法换行的问题。")]),v("h2",[_._v("0.3.2")]),v("p",[_._v("修复:1.修复二级节点拖拽到其他节点或其他节点拖拽到二级节点时节点样式没有更新的问题;2.修复当思维导图实际内容大于屏幕宽高时,导出的时候超出的部分没有绘制水印的问题。")]),v("h2",[_._v("0.3.1")]),v("p",[_._v("修复:1.删除背景图片不生效的问题;2.节点拖拽到根节点时连接线跑到根节点上方的问题。")]),v("p",[_._v("新增:背景图片展示增加位置和大小设置。导出的图片也同步支持该设置。")]),v("h2",[_._v("0.3.0")]),v("p",[_._v("升级为插件化架构,将一些非核心功能抽离出来作为插件,按需注册,减小整体体积。")]),v("h2",[_._v("0.2.24")]),v("p",[_._v("新增:节点自由拖拽改为可配置,默认为"),v("code",[_._v("false")]),_._v("不开启;支持添加水印。")]),v("h2",[_._v("0.2.23")]),v("p",[_._v("新增:支持注册新主题。")]),v("h2",[_._v("0.2.22")]),v("p",[_._v("优化:取消内置"),v("code",[_._v("simple-mind-map")]),_._v("包的主题和结构图片,改为由使用者自行维护,原有图片可在"),v("code",[_._v("web/assets/img/")]),_._v("目录找到。")]),v("h2",[_._v("0.2.21")]),v("p",[_._v("新增:支持节点横线风格。")]),v("h2",[_._v("0.2.20")]),v("p",[_._v("修复:画布距窗口左上角不为 0 时节点拖拽出现偏移的问题。")]),v("h2",[_._v("0.2.19")]),v("p",[_._v("修复:没有激活节点时随便按什么键都会触发自动聚焦的问题。")]),v("h2",[_._v("0.2.18")]),v("p",[_._v("优化:键盘导航寻找焦点的算法,支持简单算法、区域算法、阴影算法。")]),v("h2",[_._v("0.2.17")]),v("p",[_._v("新增:键盘导航,即通过方向键来切换激活的节点;支持在大纲直接编辑节点文本内容。")]),v("h2",[_._v("0.2.16")]),v("p",[_._v("优化:小地图、拖拽性能。")]),v("h2",[_._v("0.2.15")]),v("p",[_._v("优化:本地文件编辑。")]),v("p",[_._v("新增:支持双击节点内图片进行大图预览。")]),v("h2",[_._v("0.2.14")]),v("p",[_._v("优化:插入子节点时自动展开。")]),v("p",[_._v("修复:小地图关闭时报错的问题。")]),v("h2",[_._v("0.2.13")]),v("p",[_._v("修复:子节点收起状态复制时丢失的问题。")]),v("h2",[_._v("0.2.11")]),v("p",[_._v("修复:修复子节点收起状态复制时丢失的问题。")]),v("p",[_._v("新增:支持小地图。")]),v("h2",[_._v("0.2.10")]),v("p",[_._v("优化:手动创建节点时立即聚焦。")]),v("p",[_._v("修复:连线样式深度更新问题。")]),v("p",[_._v("新增:逻辑结构图、思维导图新增直线连接风格、直连风格。")]),v("h2",[_._v("0.2.9")]),v("p",[_._v("新增:支持新建、打开、保存到电脑本地文件。")]),v("h2",[_._v("0.2.8")]),v("p",[_._v("修复:xmind8 版本文件导入失败的问题。")]),v("p",[_._v("新增:支持展开到指定层级。")]),v("h2",[_._v("0.2.7")]),v("p",[_._v("修复:根节点添加多个节点爆栈的问题。")]),v("p",[_._v("新增:支持导入.xmind 文件。")]),v("h2",[_._v("0.2.6")]),v("p",[_._v("新增:导出 svg 增加 title 标签。")]),v("h2",[_._v("0.2.5")]),v("p",[_._v("修复:节点展开收起的 bug。")]),v("p",[_._v("新增:节点支持自定义线条样式。")]),v("h2",[_._v("0.2.4")]),v("p",[_._v("新增:节点支持多种形状。")]),v("h2",[_._v("0.2.3")]),v("p",[_._v("修复:编辑节点文本时快捷键冲突的问题;右键菜单快捷键提示错误;右键菜单快捷键提示。")]),v("h2",[_._v("0.2.2")]),v("p",[_._v("修复:输入字符串'/'和快捷键'/'冲突问题。")]),v("h2",[_._v("0.2.1")]),v("p",[_._v("新增:支持导出为 pdf。")]),v("h2",[_._v("0.2.0")]),v("p",[_._v("新增:经典 4 主题;支持添加概要;支持自由拖拽;上移节点、下移节点、复制节点、剪切节点、粘贴节点、一键整理布快捷键;库打包;Ctrl+左键多选。")]),v("h2",[_._v("0.1.18")]),v("p",[_._v("修复:节点图标不能删除的问题;工具按钮置灰仍然可以点击的问题。")]),v("h2",[_._v("0.1.17")]),v("p",[_._v("新增:增加只读模式。")]),v("h2",[_._v("0.1.16")]),v("p",[_._v("新增:节点备注支持 markdown 及富文本。")]),v("p",[_._v("修复:不能选中文字的问题;节点标注在节点激活后无法隐藏问题;超链接、备注、标签等文字编辑时返回键和回车键与思维导图快捷键冲突的问题。")]),v("h2",[_._v("0.1.15")]),v("p",[_._v("新增:状态数据支持保存激活状态、视图状态(拖动位置、缩放值);支持节点拖拽。")]),v("h2",[_._v("0.1.14")]),v("p",[_._v("修复:存在激活节点时设置主题存在的问题。")]),v("h2",[_._v("0.1.13")]),v("p",[_._v("新增:快捷键功能;新增导出为 json。")]),v("p",[_._v("优化:一些细节。")]),v("h2",[_._v("0.1.12")]),v("p",[_._v("新增:本地存储;右键菜单功能等。")]),v("h2",[_._v("0.1.0")]),v("p",[_._v("完成基本功能。")])])}],t={},h=t,i=p("2877"),c=Object(i["a"])(h,e,o,!1,null,null,null);v["default"]=c.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f026c"],{"9ac1":function(_,v,p){"use strict";p.r(v);var o=function(){var _=this;_._self._c;return _._m(0)},e=[function(){var _=this,v=_._self._c;return v("div",[v("h1",[_._v("Changelog")]),v("h2",[_._v("0.9.7")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复二级以下节点拖拽到根节点变成二级节点时样式没有更新的问题;修复上移一个层级命令移动节点时样式没有更新的问题;")]),v("p",[_._v("2.修复激活概要节点,然后给其设置文本样式时概要节点会失去焦点的问题;")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.新增两个去除节点自定义样式的命令;")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.新增去除节点自定义样式的右键菜单按钮。")])]),v("h2",[_._v("0.9.6")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复切换主题时,被收起的节点样式没有改变的问题;")]),v("p",[_._v("2.修复切换主题后进行文本换行时,新换行的文本样式会丢失的问题;")]),v("p",[_._v("3.修复切换主题时,换行的文本样式没有改变的问题;")]),v("p",[_._v("4.修复添加了数学公式的节点,切换主题时文本样式没有改变的问题;")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.主题新增字段,用于设置节点连线箭头的显示位置,头部或者尾部;")]),v("p",[_._v("2.主题新增字段,用于设置曲线连接时,根节点连线的起始位置;")]),v("p",[_._v("3.Mac 双指触摸事件移动画布增加一点灵敏度;")]),v("p",[_._v("4.新增 MOVE_UP_ONE_LEVEL 命令,用于将节点上移一个层级;")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.大纲支持按 Shift+Tab 键将节点上移一个层级;")]),v("p",[_._v("2.支持设置节点箭头显示的位置;")]),v("p",[_._v("3.支持设置根节点连线的起始位置;")]),v("p",[_._v("4.新增两个主题;")]),v("p",[_._v("5.修复大纲中文本换行不生效,显示br标签的问题;")])]),v("h2",[_._v("0.9.5")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复展开收起节点时区间概要会丢失的问题。")]),v("p",[_._v("2.修复新创建的关联线位置始终在节点的右侧没有根据相对位置变化的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.增加设置关联线创建时两个端点初始位置的配置。")]),v("p",[_._v("2.增加禁止调整关联线端点位置的配置。")]),v("p",[_._v("3.新增手绘风格插件。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.优化界面在移动端的适配。")]),v("p",[_._v("2.支持开启手绘风格。")])]),v("h2",[_._v("0.9.4")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复一些情况下,节点显示时的文本区域宽度和编辑时的宽度不一致导致的文本换行不一致的问题。")]),v("p",[_._v("2.修复存在渐变色背景的节点富文本编辑时编辑框没有应用渐变的问题。")]),v("p",[_._v("3.修复被主题定义了加粗的节点切换主题后文本样式丢失的问题。")]),v("p",[_._v("4.修复 mac 上 useLeftKeySelectionRightKeyDrag 选项设为 true 时无法按住 ctrl 键多选节点的问题。")]),v("p",[_._v("5.修复节点富文本编辑时清除样式后文字样式丢失并且切换主题也不会恢复的问题。")]),v("p",[_._v("6.修复删除含有子节点的节点时,data_change_detail 事件报错的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.主题配置增加 lineRadius 属性设置直线连接时的圆角大小。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.大纲里去掉公式的显示。")]),v("p",[_._v("2.基础样式中一些仅支持部分结构的配置根据当前结构进行显示和隐藏。")]),v("p",[_._v("3.新增连线圆角的配置。")]),v("p",[_._v("4.导入文件时自动隐藏侧边栏。")])]),v("h2",[_._v("0.9.3")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复 Safari 浏览器上节点存在图标时文字位置错位的问题。")]),v("p",[_._v("2.修复 Chrome 内核版本比较低的浏览器中公式无法渲染的问题。")]),v("p",[_._v("3.修复在微前端框架子应用中使用时,new MouseEvent 代码执行报错的问题。")]),v("p",[_._v("4.修复导出图片时节点连线的箭头、关联线的箭头、渐变背景丢失的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.导出 pdf 从 jspdf 库改为 pdf-lib 库。")]),v("p",[_._v("2.设置节点文本命令(SET_NODE_TEXT)的第二个参数如果没有传递,会使用之前的值。")]),v("p",[_._v("3.优化节点存在超链接、备注时在 Firefox 浏览器中导出图片的宽高不正确的问题。")]),v("p",[_._v("4.节点文本编辑中,如果粘贴的是 smm 格式的粘贴数据,那么会取出第一个节点的纯文本进行粘贴。")]),v("p",[_._v("5.增加对节点非富文本编辑时的粘贴的拦截操作。")]),v("p",[_._v("6.新增节点数据更新的明细事件(data_change_detail),可以获取新创建、更新、被删除的节点数据。")]),v("p",[_._v("7.主题配置支持设置节点渐变背景色。")])]),v("p",[_._v("Demo:")]),v("p",[_._v("1.支持设置节点渐变色的背景。")]),v("h2",[_._v("0.9.2")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复节点文本含有连续的数字或字母时没有换行的问题。")]),v("p",[_._v("2.修复导入含有和当前画布已有节点 uid 相同的文件时会重复绘制节点的问题。")]),v("p",[_._v("3.修复当节点数量超出了缓存池的最大数量时,前进回退会导致节点重复渲染的问题。")]),v("p",[_._v("4.修复鼠标或触控板水平滚动时画布移动方向相反的问题。")]),v("p",[_._v("5.修复节点被销毁时鼠标移入标志没有复位的问题。")]),v("p",[_._v("6.修复滚动条插件在 initRootNodePosition 配置不为默认的[center,center]时位置计算错误的问题。")]),v("p",[_._v("7.修复拖拽画布时鼠标在节点上面松开时拖拽无法停止的问题。")]),v("p",[_._v("8.修复当画布容器距浏览器窗口左上角不为 0 时,view.fit 方法计算出来的位置有误差的问题。")]),v("p",[_._v("9.修复当节点数量比较多时,导出的图片中水印没有完全覆盖整个图片的问题。")]),v("p",[_._v("10.修复插入公式报错的问题。")]),v("p",[_._v("11.修复节点文本编辑状态中鼠标选择文本时移出编辑框,文字选中状态会丢失的问题。")]),v("p",[_._v("12.修复节点富文本编辑时,文本选中范围为 null 时没有触发 rich_text_selection_change 事件的问题。")]),v("p",[_._v("13.修复 node_dragging 事件回参里没有 node 实例的问题。")]),v("p",[_._v("14.修复节点数量过多,画布尺寸过大无法导出 png 的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.修改 mousewheel 事件,dir 标志修改为 dirs,支持存储多个方向,优化触控板的双指移动操作。")]),v("p",[_._v("2.TextEdit 类增加 isShowTextEdit 方法判断当前是否处在节点编辑状态。")]),v("p",[_._v("3.Render 类的 paste 方法改为支持粘贴剪贴板的数据。")]),v("p",[_._v("4.新增将思维导图图形限制在画布内的配置选项。")]),v("p",[_._v("5.注册了滚动条插件的情况下,支持配置是否将思维导图限制在画布内。")]),v("p",[_._v("6.收起所有节点操作会将思维导图根节点移至画布中心。")]),v("p",[_._v("7.支持仅在导出时显示水印的配置选项。")]),v("p",[_._v("8.在节点粘贴剪贴板中的图片时,支持自定义处理函数,可以将图片上传到你的服务器。")]),v("p",[_._v("9.重构 pdf 的导出逻辑,导出的 pdf 尺寸不再是固定的 a4,而是思维导图的尺寸,同时删除分页导出的配置。")]),v("p",[_._v("10.节点连线支持显示箭头,作为主题的一个字段。")]),v("p",[_._v("11.最大历史记录数量默认调整为 500。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.支持配置仅在导出时显示水印。")]),v("p",[_._v("2.基础样式配置连线支持显示箭头。")])]),v("h2",[_._v("0.9.1-fix.2")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复当节点文本为空时部分浏览器会显示默认文本的问题。")]),v("p",[_._v("2.修复当节点文本内容为空时再次输入文本时文本样式丢失的问题。")]),v("p",[_._v("3.修复节点图片加载失败时导出图片也会失败的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.支持配置节点图片加载失败时显示的默认图片。")])]),v("h2",[_._v("0.9.1-fix.1")]),v("p",[_._v("修复:")]),v("p",[_._v("1.修复自定义节点方法返回 null 时报错的问题。")]),v("p",[_._v("2.修复导出 pdf 文件体积很大的问题。")]),v("h2",[_._v("0.9.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复自定义节点内容时导出图片、svg、pdf 报错的问题。")]),v("p",[_._v("2.优化节点激活事件的派发,激活节点未改变时不派发事件,短时间派发多次事件时跳过中间事件。")]),v("p",[_._v("3.修复节点处于编辑状态时,通过鼠标滚动移动画布后编辑框和节点脱离的问题。")]),v("p",[_._v("4.修复在节点编辑状态中通过鼠标滚轮缩放画布再退出节点编辑后快捷键失效的问题。")]),v("p",[_._v("5.修复点击节点也会触发 node_dragend 事件的问题。")]),v("p",[_._v("6.修复不在格式刷时点击画布和节点也会触发 painter_end 事件的问题。")]),v("p",[_._v("7.修复在节点文本编辑中和关联线文本编辑中时销毁思维导图文本编辑框未被销毁的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.按住 Ctrl 键时禁用节点双击事件。")]),v("p",[_._v("2.支持配置创建新节点时的行为:聚焦且进入编辑、不聚焦、只聚焦。")]),v("p",[_._v("3.只读模式下搜索时给当前匹配到的节点增加高亮效果。")]),v("p",[_._v("4.鼠标滚轮行为默认改为上下移动画布;默认改为向前滚动放大画布,向后缩小。")]),v("p",[_._v("5.在鼠标滚轮行为为上下移动画布时,支持按住 Ctrl 键进行放大缩小画布。")])]),v("p",[_._v("Demo:支持配置创建新节点时的行为。")]),v("h2",[_._v("0.9.0")]),v("p",[_._v("新增:")]),v("p",[_._v("1.支持对同一个节点的部分子节点添加概要。")]),v("p",[_._v("2.鼠标移入概要会高亮其所属节点。")]),v("p",[_._v("3.导入和导出 xmind 文件支持处理概要。")]),v("h2",[_._v("0.8.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复历史记录数据中概要节点的激活状态未被删除的问题,会导致点击概要节点时触发 data_change 事件。")]),v("p",[_._v("2.修复在 safari 浏览器中运行时,页面空白且控制台抛出异常的问题。")]),v("p",[_._v("3.修复缩放画布时图标浮层和备注浮层和节点脱离的问题。")]),v("p",[_._v("4.修复只读模式下可以全选节点的问题。")]),v("p",[_._v("5.修复富文本模式下节点内容存在 时导出为图片出错的问题。")]),v("p",[_._v("6.修复先给自身添加概要,再给下级添加概要会出现概要重叠的问题;修复同时给存在上下级关系的节点添加概要时概要重叠的问题。")]),v("p",[_._v("7.修复节点数量很多的情况下导出 pdf 报错的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.新增禁止拖动画布的配置选项。")]),v("p",[_._v("2.新增禁止双指缩放画布的配置选项。")]),v("p",[_._v("3.导出 png 的方法新增压缩参数;优化大数据量节点导出 pdf 时体积过大的问题。")]),v("p",[_._v("4.将节点实例的 isParent 方法改名为 isAncestor,同时新增 isParent 方法。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复只读模式下仍旧可以搜索替换和编辑大纲的问题。")]),v("p",[_._v("2.修复节点内容为 html 标签时大纲无法显示和编辑的问题。")]),v("p",[_._v("3.修复同时选中多个节点添加图标时,所有节点图标都会统一为第一个节点的图标的问题。")]),v("p",[_._v("4.导出操作增加 loading。")])]),v("h2",[_._v("0.8.0-fix.1")]),v("p",[_._v("修复:修复直接粘贴的方式创建新节点时如果粘贴的内容带有<>等 html 标签符号时新创建的节点内容为空的问题。")]),v("h2",[_._v("0.8.0")]),v("p",[_._v("破坏性更新:大幅优化部分代码,小幅提升性能,主要是"),v("code",[_._v("render")]),_._v("类,删除无用逻辑、调整不合理的实现、提取重复代码;修改函数名称、函数功能等。")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复导出图片和 svg 时关联线的箭头消失的问题。")]),v("p",[_._v("2.修复调整容器大小后回到根节点的操作异常的问题。")]),v("p",[_._v("3.修复插入概要、上移、下移、一键整理布局的快捷键操作没有触发 data_change 事件的问题。")]),v("p",[_._v("4.修复存在水印时导出图片、svg、pdf 时每个节点都会显示边框的问题。")]),v("p",[_._v("5.修复容器尺寸改变后没有水印没有重新绘制的问题。")]),v("p",[_._v("6.修复存在水印时小地图渲染非常慢的问题。")]),v("p",[_._v("7.修复协同插件当创建新节点时新节点未显示创建人头像的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.优化画布 DOM 结构,将节点、连线、关联线分层渲染。")]),v("p",[_._v("2.优化水印插件。")]),v("p",[_._v("3.setTheme、setThemeConfig、setLayout 函数增加不触发重新渲染的参数。")]),v("p",[_._v("4.新增插入父节点的命令。")]),v("p",[_._v("5.新增仅删除当前节点的命令。")]),v("p",[_._v("6.插入概要时自动展开子节点。")]),v("p",[_._v("7.鼠标右键单击画布时清除当前激活节点。")]),v("p",[_._v("8.被收起的激活节点同步从激活节点列表里删除。")]),v("p",[_._v("9.粘贴带换行的文本支持控制是否按换行分割节点。")]),v("p",[_._v("10.小地图插件支持返回图片类型的小地图。")]),v("p",[_._v("11.指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修改回到根节点的方法及文案。")]),v("p",[_._v("2.修复覆盖方式切换主题时第一次切换不生效的问题。")]),v("p",[_._v("3.右键菜单新增插入父节点和仅删除当前节点的功能。")]),v("p",[_._v("4.顶部工具栏支持根据窗口宽度自动收起到更多中。")]),v("p",[_._v("5.支持手动输入缩放倍数。")]),v("p",[_._v("6.完善界面英文翻译。")]),v("p",[_._v("7.小地图改为通过图片渲染。")])]),v("h2",[_._v("0.7.3-fix.2")]),v("p",[_._v("修复协同编辑的一些问题:")]),v("p",[_._v("1.插入同级节点时新节点位置不正确;")]),v("p",[_._v("2.在同级节点中移动位置没有触发更新;")]),v("p",[_._v("3.移动节点作为兄弟节点插入时位置不正确;")]),v("h2",[_._v("0.7.3-fix.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复一些情况下多选节点时的框选区域没有消失的问题。")]),v("p",[_._v("2.修复多选节点时在节点上松开鼠标时框选区域不会消失的问题。")]),v("p",[_._v("3.修复多次粘贴节点时由于节点 uid 重复造成的渲染异常问题。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.超链接输入框增加协议选择功能。")])]),v("h2",[_._v("0.7.3")]),v("p",[_._v("新增:1.新增协同编辑插件。")]),v("p",[_._v("Demo:1.修复公式侧边栏组件导致的侧边栏自动关闭问题。")]),v("h2",[_._v("0.7.2")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复多选节点时选区未包含节点边界时节点不会被选中的问题。")]),v("p",[_._v("2.修复节点文本不为字符串时报错的问题。")]),v("p",[_._v("3.修复非富文本模式下文本中存在<>&字符时再次编辑时部分文本会消失的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.支持插入数学公式。")]),v("p",[_._v("2.支持同时拖拽移动多个节点。")]),v("p",[_._v("3.支持同时复制、剪切多个节点。")]),v("p",[_._v("4.节点标签颜色改为根据标签内容生成,即同样的标签内容会生成相同的颜色。")]),v("p",[_._v("5.优化子节点的插入:1.同时对多个节点插入子节点时,不进入编辑状态;2.新插入的子节点自动进入激活状态。")]),v("p",[_._v("6.优化兄弟节点的插入:1.支持同时对多个节点插入兄弟节点;2.对根节点调用插入兄弟节点的命令时不再创建子节点。")]),v("p",[_._v("7.新增同时插入多个同级节点、多个子节点的命令。")]),v("p",[_._v("8.将节点唯一标识由 id 全部改为 uid,主要影响关联线,之前版本的关联线可能无法正常显示。")]),v("p",[_._v("9.优化图标合并逻辑,支持扩展库内部分类下的图标。")]),v("p",[_._v("10.关联线:1.双击关联线进入关联线文本编辑模式;2.关联线文本为默认文本的话不保存;3.存在激活节点时点击关联线可直接激活关联线。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复复制知犀思维导图多个节点时无法粘贴的问题。")]),v("p",[_._v("2.新增公式编辑的侧边栏。")])]),v("h2",[_._v("0.7.1-fix.2")]),v("p",[_._v("修复:1.修复插件注册方法链式调用报错的问题。")]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.新增思维导图初次加载时适应画布大小的配置选项。")]),v("p",[_._v("2.新增自动生成 dts 声明文件的命令。")])]),v("h2",[_._v("0.7.1-fix.1")]),v("p",[_._v("修复:修复拖拽节点时没有排除被拖拽节点的下级节点的问题。")]),v("h2",[_._v("0.7.1")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复关联线端点改变后未保存的问题。")]),v("p",[_._v("2.修复画布左上角距浏览器窗口不为 0 时多选节点鼠标移动到边缘时画布滚动异常的问题。")]),v("p",[_._v("3.修复导入存在为标题为空的节点的 xmind 文件报错的问题。")]),v("p",[_._v("4.修复导出的 xmind 文件在最新版 xmind 软件上打开时提示已损坏的问题。")]),v("p",[_._v("5.修复导出带有贴纸的数据为 xmind 格式时贴纸无法显示的问题。")]),v("p",[_._v("6.修复没有注册 select 插件时节点右键事件报错的问题。")]),v("p",[_._v("7.修复注册插件的方法没有去重的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.重构节点拖拽逻辑:优化一些情况下的拖拽难问题、适配各种结构、拖拽时鼠标移动到画布边缘时画布自动移动。")]),v("p",[_._v("2.重构滚动条插件,优化使用体验。")]),v("p",[_._v("3.不完美的解决逻辑结构图、思维导图、目录组织图、组织结构图概要和节点的冲突问题(概要后面应该会重写或删除)。")]),v("p",[_._v("4.删除节点后激活相邻节点。")]),v("p",[_._v("5.节点数据 data 中以_开头的字段被认为是自定义字段。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.页面增加显示当前核心库版本号。")])]),v("h2",[_._v("0.7.0")]),v("p",[_._v("破坏性更新:删除了主题文件中节点激活样式的部分,不再支持设置节点的激活样式,激活效果改为统一的节点外边框样式,同时支持鼠标 hover 效果。")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复节点边框尺寸比较大的情况下的的渲染异常问题。")]),v("p",[_._v("2.修复切换主题时存在关联线的节点样式不会更新的问题。")]),v("p",[_._v("3.修复全选没有触发 node_active 事件的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.收起节点时,显示折叠的节点数量。")]),v("p",[_._v("2.支持关联线端点的位置跟随鼠标拖拽变化。")]),v("p",[_._v("3.新增滚动条插件。")]),v("p",[_._v("4.支持在 url 中通过 fileURL 查询参数打开指定的在线文件。")]),v("p",[_._v("5.鱼骨图支持设置节点 margin。")]),v("p",[_._v("6.默认关闭双击复位画布。")]),v("p",[_._v("7.修改导出图片方法的参数,导出 pdf 时如果思维导图尺寸小于 a4 纸那么不旋转方向。")]),v("p",[_._v("8.提升导出的图片和 pdf 在高清屏的清晰度。")]),v("p",[_._v("9.插件新增销毁前生命周期函数,解决销毁思维导图时插件的一些副作用没有清除的问题。")]),v("p",[_._v("10.优化基础样式的设置,修改不影响大小的主题属性时不触发全量渲染。")]),v("p",[_._v("11.右键多选节点结束时禁止触发节点右键菜单事件,避免触发右键菜单显示。")]),v("p",[_._v("12.优化 Select 插件,如果多选节点没有变化,那么不触发激活激活事件。")]),v("p",[_._v("13.node_active 事件抛出的激活节点列表不再直接引用内部激活列表。")]),v("p",[_._v("14.优化鼠标按下节点事件逻辑,在右键拖拽画布模式下支持右键按住根节点拖拽画布。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.不直接引用内部激活节点列表,优化性能。")]),v("p",[_._v("2.支持配置是否显示滚动条。")]),v("p",[_._v("3.删除侧边栏节点样式配置部分的激活节点配置。")])]),v("h2",[_._v("0.6.17")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复导入百度脑图导出的 xmind 文件报错的问题。")]),v("p",[_._v("2.修复 mindMap.export 方法代码错误。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.新增 index.d.ts。")]),v("p",[_._v("2.支持配置是否开启双击复位思维导图。")]),v("p",[_._v("3.拦截富文本编辑时的粘贴操作,去掉格式,只允许粘贴纯文本。")])]),v("h2",[_._v("0.6.16")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.优化富文本测量元素的逻辑,删除样式的重复设置和节点的重复添加。")]),v("p",[_._v("2.优化导出图片逻辑,遍历节点转换图片的 url 时,如果已经是 data:URL 形式不重复处理。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.去除导出 svg 方法的第二个参数,改为通过实例化配置。")]),v("p",[_._v("2.导出图片不再使用外部库。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复单独编辑大纲时能给根节点添加兄弟节点的 bug。")])]),v("h2",[_._v("0.6.15-fix.2")]),v("p",[_._v("修复:修复在 Firefox 浏览器中富文本节点无法显示的问题。")]),v("h2",[_._v("0.6.15-fix.1")]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.导出 pdf 支持根据图片大小分页导出。")]),v("p",[_._v("2.导出 pdf 支持根据长宽比自动调整方向。")]),v("p",[_._v("3.优化展开收起按钮的占位元素:1.没有子节点的节点不渲染该元素;2.根据是否存在子节点动态更新该元素。")]),v("p",[_._v("4.新增禁止鼠标滚轮缩放的配置。")]),v("p",[_._v("5.支持传递错误处理函数。")])]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复节点文本为空时显示异常问题。")]),v("p",[_._v("2.导出 svg 的图形的 paddingX 和 paddingY 改为单侧 padding。")]),v("p",[_._v("3.修复画布距浏览器窗口左上角不为 0 时鼠标缩放时不以鼠标为中心的问题。")]),v("p",[_._v("4.修复节点边框会重合的问题。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.右下角支持跳转相关链接。")]),v("p",[_._v("2.调整小地图位置,解决被侧边按钮遮挡的问题。")]),v("p",[_._v("3.修复打开本地文件右上角的提示无法关闭的问题。")]),v("p",[_._v("4.单独编辑大纲不再和画布联动,优化大数据量下的编辑体验。")]),v("p",[_._v("5.侧边栏涉及图形的选项增加可视化效果。")])]),v("h2",[_._v("0.6.14")]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.去除创建隐藏输入框,通过 navigator.clipboard 实现复制粘贴;支持跨浏览器粘贴思维导图节点数据;支持自定义处理剪贴板中的文本数据。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.修复开启输入自动进入文本编辑模式和其他输入框冲突的问题。")]),v("p",[_._v("2.修复无法在节点图片弹窗里删除节点图片的问题。")]),v("p",[_._v("3.修复在节点样式侧边栏里无法去除节点的文本修饰线样式的问题。")]),v("p",[_._v("4.颜色选择器支持选择透明颜色。")]),v("p",[_._v("5.修复基础样式侧边栏打开状态下,导入思维导图数据后侧边栏数据未更新的问题。")]),v("p",[_._v("6.修复大纲修改一个节点的文本后再点击其他节点时不聚焦的问题。")]),v("p",[_._v("7.修复退出禅模式后左下角的节点和字数统计未更新的问题。")]),v("p",[_._v("8.支持从右键菜单删除节点的超链接、备注。")]),v("p",[_._v("9.支持粘贴知犀思维导图的节点数据。")])]),v("h2",[_._v("0.6.13")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复只读模式下鼠标中键按住节点无法拖动画布的问题。")]),v("p",[_._v("2.修复快速拖动节点几次后会概率性报错的问题。")]),v("p",[_._v("3.修复在移动端激活节点、展开收起时等操作时会拉起输入法的问题。")]),v("p",[_._v("4.修复主题配置中背景图片为 none 时会发起一个异常请求的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.移动端手势缩放优化: 按线性关系进行缩放、双指位移可以调整画布位置。")]),v("p",[_._v("2.去掉异步渲染节点的逻辑,提升创建新节点的速度。")]),v("p",[_._v("3.导出图片由 html2canvas 库改为使用 dom-to-image-more 库,解决导出富文本节点文字样式丢失的问题。")]),v("p",[_._v("4.非富文本输入框进入编辑状态时取消默认全选。")]),v("p",[_._v("5.存在一个激活节点时,支持按下中文、数字、英文按键时自动进入文本编辑模式。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.保存视图数据时增加防抖操作,优化性能。")]),v("p",[_._v("2.一些耗时的操作添加 loading 效果。")]),v("p",[_._v("3.完善右键菜单和富文本工具条的暗黑模式。")])]),v("h2",[_._v("0.6.12")]),v("p",[_._v("修复:")]),v("blockquote",[v("p",[_._v("1.修复当思维导图全部移出可视区域后小地图中的指示器也会移出小地图区域的问题。")]),v("p",[_._v("2.修复移动端双指缩放过于灵敏的问题。")]),v("p",[_._v("3.修复只读模式下按住节点无法拖动画布的问题。")]),v("p",[_._v("4.修复当思维导图距浏览器窗口左上角不为 0 时,小地图渲染不正确的问题。")]),v("p",[_._v("5.修复移动节点时新位置的提示块过大的问题。")]),v("p",[_._v("6.修复搜索不能替换为空字符的问题。")]),v("p",[_._v("7.修复富文本模式下,搜索替换后换行会丢失的问题。")]),v("p",[_._v("8.修复大纲里点击文字编辑时输入框焦点丢失的问题。")])]),v("p",[_._v("新增:")]),v("blockquote",[v("p",[_._v("1.节点移动结束事件(node_dragend)增加回调参数,可以获取到移动到节点的 uid。")]),v("p",[_._v("2.支持通过配置指定内部一些元素添加到的位置。")]),v("p",[_._v("3.支持格式刷功能。")]),v("p",[_._v("4.曲线风格下,根节点的连接线样式支持和其他节点保持一致。")]),v("p",[_._v("5.搜索支持连续替换。")]),v("p",[_._v("6.节点图片新增删除按钮。")]),v("p",[_._v("7.支持按住鼠标中键拖动画布。")])]),v("p",[_._v("Demo:")]),v("blockquote",[v("p",[_._v("1.提供应用接管模式,方便对接自己的存储服务;支持运行时设置静态资源路径。")]),v("p",[_._v("2.重构大纲:1.不再使用节点自带的文本样式;2.支持全屏编辑大纲;3.大纲支持拖拽移动节点;4.大纲支持删除节点。")]),v("p",[_._v("3.修复导入数据场景下界面暗黑模式没有更新的问题。")])]),v("h2",[_._v("0.6.11-fix.1")]),v("p",[_._v("修复:1.修复节点文字为白色时编辑的时候看不见的问题。")]),v("h2",[_._v("0.6.11")]),v("p",[_._v("新增:1.优化小地图,去除小地图内的节点内容,优化性能。")]),v("p",[_._v("Demo:1.新增主题、主题列表新增 tab 区分。 2.节点图片上传支持输入网络图片地址。 3.节点图片上传支持输入网络图片。")]),v("h2",[_._v("0.6.10")]),v("p",[_._v("修复:1.修复搜索定位到某个节点后删除该节点,再次搜索时搜索结果未更新的问题。 2.修复调整图片大小的按钮在节点操作后没有更新的问题。 3.修复内部数据深拷贝位置不正确的问题。 4.修复富文本节点换行不生效的问题。 5.修复切换主题等场景时节点换行会丢失的问题。")]),v("p",[_._v("新增:1.搜索支持搜索空白字符和替换为空白字符。")]),v("p",[_._v("Demo:1.支持通过图标按钮调出搜索。 2.支持通过图标按钮切换暗黑模式。 3.优化搜索:鼠标不在搜索区域内不聚焦,解决鼠标不在搜索区域内无法删除输入的文字的问题。 4.调整添加节点图标的界面 UI,新增系列节点图标。 5.新增贴纸列表。 6.修复在搜索框回车后输入框焦点丢失的问题。 7.支持点击节点内的图标显示一个图标快捷替换和删除悬浮面板。")]),v("h2",[_._v("0.6.9-fix.1")]),v("p",[_._v("修复:1.修复搜索进行一次单个替换后再全部替换不正确的问题。")]),v("p",[_._v("新增:1.不会再直接修改传入的 data 对象,内部会深拷贝一份。")]),v("h2",[_._v("0.6.9")]),v("p",[_._v("修复:1.修复给概要节点设置样式概要节点会消失的问题。2.修复自定义节点内容时,二次创建根实例时节点内容不渲染的问题。3.修复节点处于编辑中时添加新节点时新节点的焦点丢失问题。 2.修复连续按 tab 键无法连续创建子节点的问题。")]),v("p",[_._v("新增:1.导出 svg 时替换 svg 中存在的"),v("code",[_._v(" ")]),_._v("字符,避免导出的 svg 报错。 2.支持搜索和替换。")]),v("p",[_._v("Demo:1.切换主题时支持选择是否覆盖设置过的基础样式。")]),v("h2",[_._v("0.6.8")]),v("p",[_._v("修复:1.修改插入概要的快捷键为 Ctrl+G,避免和保存快捷键冲突。 2.修复节点正在编辑时切换富文本编辑配置输入框出现异常的问题。")]),v("p",[_._v("新增:1.修改复制、剪切、粘贴逻辑,支持粘贴剪切板中的数据。")]),v("p",[_._v("Demo:1.修复基础样式-设置节点外边距未保存的问题。 2.支持根据主题自动切换为暗黑模式。")]),v("h2",[_._v("0.6.7")]),v("p",[_._v("修复:1.修复节点收起再展开后展开收起按钮占位元素丢失的问题。 2.修复只读模式下可以缩放图片的问题。")]),v("p",[_._v("新增:1.支持根据节点实例或节点 uid 定位到某个节点。 2.修改节点 uid 的创建方式,导出数据添加节点的 uid。")]),v("p",[_._v("移除:1.移除节点过渡效果。")]),v("p",[_._v("Demo:1.添加网站首页。 2.修复大纲里创建新节点时节点样式丢失的问题。 3.修复大纲里编辑节点后按回车或 Tab 键后编辑文本丢失的问题。 4.优化大纲的节点定位,被收起的节点会自动展开。 5.侧边栏按钮支持收起。 6.优化小屏适配。")]),v("h2",[_._v("0.6.6")]),v("p",[_._v("新增:1.支持导出为 Xmind 新版文件。2.导入 Xmind 新版文件支持导入节点中的图片。 3.新增竖向时间轴结构。")]),v("p",[_._v("修复:1.TouchEvent 插件不再派发 click 事件,解决移动端点击超链接会打开两个窗口的问题。 2.修复拖拽移动一个节点成为另一个节点的子节点时该节点的父节点指向未更新的问题。 3.修复二级节点拖拽成三级节点时节点边框样式未更新的问题。 4.修复向右生长的结构外其他结构鼠标移入展开收起按钮位置时不会触发按钮显示的问题。")]),v("p",[_._v("优化:1.优化触控板缩放画布时幅度过大的问题。2.刚创建的节点默认全选方便删除默认文本。")]),v("h2",[_._v("0.6.5-fix.1")]),v("p",[_._v("修复:1.修复在缩放情况下调整图片大小不正确的问题。")]),v("h2",[_._v("0.6.5")]),v("p",[_._v("修复:1.修复 xmind 文件导入报错的问题。 2.修复极少数情况下当节点文本的宽度为小数时显示发生换行的问题。")]),v("p",[_._v("新增:1.打包后的库支持获取内置常量、主题等数据。 2.支持配置鼠标滚轮方向对应的缩放行为。 3.节点图片支持拖拽调整大小。")]),v("h2",[_._v("0.6.4-fix.1")]),v("p",[_._v("新增:1.鼠标滚轮缩放时默认以鼠标当前位置为中心进行缩放,可以通过配置关闭该特性。")]),v("p",[_._v("修复:1.修复改变了画布大小后缩放中心点默认值不随之更新的问题。")]),v("h2",[_._v("0.6.4")]),v("p",[_._v("新增:1.默认以画布中心点进行缩放。 2.优化移动端双指缩放,以双指中心位置为中心点进行缩放。")]),v("h2",[_._v("0.6.3")]),v("p",[_._v("修复:1.修复概要节点会响应插入节点快捷键的问题。")]),v("p",[_._v("新增:1.支持自定义节点内容。")]),v("h2",[_._v("0.6.2")]),v("p",[_._v("修复:1.修复富文本模式下,新建节点不随主题变化而变化的问题。")]),v("h2",[_._v("0.6.1")]),v("p",[_._v("修复:1.修复将鼠标滚动改为移动画布行为后,使用触控板操作时移动灵敏度过高的问题。")]),v("h2",[_._v("0.6.0-fix.1")]),v("p",[_._v("修复:1.修复没有设置过背景样式的情况下销毁思维导图报错的问题。")]),v("h2",[_._v("0.6.0")]),v("p",[_._v("破坏性更新:调整了 simple-mind-map 源码的目录结构,主要影响:1.插件的引入路径需要修改。2.constant 文件路径需要修改。")]),v("p",[_._v("新增:1.支持一键缩放至适应画布功能。 2.按住 Ctrl 键多选功能可通过配置按需开启。 3.支持设置为左键多选节点,右键拖动画布。 4.支持控制节点是否允许编辑。 5.新增销毁思维导图的方法。 6.新增触摸事件支持插件。")]),v("p",[_._v("修复:1.修复按住 ctrl 键多选节点时不会触发节点的 click 事件的问题。 2.修复清空一个节点后再输入文字时节点样式丢失的问题。")]),v("h2",[_._v("0.5.11")]),v("p",[_._v("新增:支持关联性文本编辑。")]),v("p",[_._v("优化:优化主题配置更新,改变不涉及节点大小的配置不触发节点重新计算。")]),v("h2",[_._v("0.5.10")]),v("p",[_._v("新增:使用 LRU 缓存算法优化节点复用逻辑。")]),v("h2",[_._v("0.5.10-fix.1")]),v("p",[_._v("修复:修复导入出错的问题。")]),v("h2",[_._v("0.5.10-fix.2")]),v("p",[_._v("修复:修复富文本模式下,切换主题、导入数据后没有触发数据改变的问题。")]),v("p",[_._v("新增:新增三种主题。")]),v("h2",[_._v("0.5.9")]),v("p",[_._v("修改:统一导出方法的格式,使用"),v("code",[_._v("FileReader")]),_._v("代替"),v("code",[_._v("URL.createObjectURL")]),_._v("转换"),v("code",[_._v("blob")]),_._v("数据。")]),v("h2",[_._v("0.5.8")]),v("p",[_._v("优化:1.节点位置没有变化不触发位置设置。 2.展开收起状态没有变化不触发按钮更新。")]),v("p",[_._v("新增:1.默认改为鼠标移上节点才显示展开收起按钮。 2.支持扩展节点可插入的图标列表。")]),v("h2",[_._v("0.5.7")]),v("p",[_._v("破坏性更新:富文本模式下导出 png 改为使用 html2canvas 转换整个 svg,大幅提高导出速度,不过 html2canvas 存在一个 bug,foreignObject 元素中的 dom 节点内联的文字颜色无法识别,所以导出节点的文字颜色是固定的,不过相对于之前的导出基本不可用状态,目前至少能快速顺利的导出。")]),v("p",[_._v("优化:优化富文本节点编辑体验。")]),v("p",[_._v("新增:富文本模式下,导入数据、初始化数据、切换主题场景节点样式支持跟随主题变化。")]),v("h2",[_._v("0.5.6")]),v("p",[_._v("修复:1.修复短时间快速多次渲染时节点位置错乱的问题。 2.修复节点正在编辑中时拖动画布导致编辑框和节点分离的问题。")]),v("p",[_._v("新增:1.添加最大历史记录数限制。")]),v("h2",[_._v("0.5.5")]),v("p",[_._v("新增:1.支持配置导出为 png、svg、pdf 时的内边距。 2.支持配置节点文本编辑框、节点备注浮层元素的 z-index。 3.支持点击画布外的区域结束节点编辑状态。")]),v("h2",[_._v("0.5.5-fix.1")]),v("p",[_._v("修复:1.修复节点在画布外编辑时编辑框也在画布外的问题。 2.修改结构后复位变换,防止存在缩放时切换结构后第一次拖动时会发生位置突变的问题。")]),v("p",[_._v("优化:1.节点多选时只要节点和选区存在交叉即认为被选中。")]),v("h2",[_._v("0.5.5-fix.2")]),v("p",[_._v("修复:1.修复小地图报错。")]),v("h2",[_._v("0.5.4")]),v("p",[_._v("新增:1.添加新主题。 2.新增时间轴和鱼骨结构。")]),v("p",[_._v("修复:1.修复节点右键和画布右键的冲突问题。 2.修复组织结构图、目录组织图等节点拖拽时存在线段未隐藏的 bug。")]),v("p",[_._v("优化:1.优化组织结构图布局。2.优化目录组织图布局。")]),v("h2",[_._v("0.5.4-fix.1")]),v("p",[_._v("优化:1.优化鱼骨图布局。")]),v("h2",[_._v("0.5.3")]),v("p",[_._v("修复:1.修复富文本模式下,如果选择了多个节点时设置文本样式,会将所有多选节点的文本改成最后一个多选节点的文本的问题。")]),v("p",[_._v("新增:1.支持设置初始中心节点的位置。")]),v("h3",[_._v("0.5.3-fix.1")]),v("p",[_._v("修复:1.修复设置初始中心节点的位置不生效的问题。")]),v("h3",[_._v("0.5.3-fix.2")]),v("p",[_._v("修复:1.修复导出为图片时,节点中的图片显示不出来的问题。")]),v("h2",[_._v("0.5.2")]),v("p",[_._v("修复:1.导出的"),v("code",[_._v("json")]),_._v("数据中去除"),v("code",[_._v("uid")]),_._v(";2.重新渲染时清空节点缓存池。")]),v("h2",[_._v("0.5.1")]),v("p",[_._v("优化:1.只有当鼠标在画布内才响应快捷键事件。")]),v("p",[_._v("修复:1.修复快速操作时节点位置不正确的问题。")]),v("h2",[_._v("0.5.0")]),v("p",[_._v("这个版本主要是代码层面的改动和优化,核心是为了提升渲染性能,减少卡顿问题。")]),v("p",[_._v("新增:1.支持自定义展开收起节点图标和颜色;")]),v("p",[_._v("优化:1.优化渲染逻辑,设置主题、前进回退等操作不再全量渲染;")]),v("pre",[v("code",[_._v(" 2.优化节点拖拽逻辑,修复无法拖动到两个节点之间的问题;\n\n 3.收起全部节点操作增加回到中心点的逻辑;\n\n 4.修复短时间多次触发渲染造成节点乱飞和错乱的问题;\n\n 5.优化节点编辑的体验;\n")])]),v("p",[_._v("修复:1.修复 setData 方法不触发历史记录的问题;")]),v("p",[_._v("修改:从 0.5.0 版本开始,考虑性能问题,节点激活状态只能修改形状相关的样式:")]),v("pre",{staticClass:"hljs"},[v("code",[_._v(";["),v("span",{staticClass:"hljs-string"},[_._v("'fillColor'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderColor'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderWidth'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderDasharray'")]),_._v(", "),v("span",{staticClass:"hljs-string"},[_._v("'borderRadius'")]),_._v("]\n")])]),v("h2",[_._v("0.4.7")]),v("p",[_._v("优化:1.富文本编辑时初始聚焦时不再默认全选;2.富文本编辑时使用节点填充色作为背景色,避免节点颜色为白色时看不见。 3.节点激活状态切换不再触发历史记录。 4.短时间多次触发历史记录,只会添加最后一次的数据。 5.优化历史记录添加,当有回退时,再次添加新记录时删除当前指针后面的历史数据。")]),v("p",[_._v("新增:1.支持导入和导出 Markdown 格式文件。 2.支持配置插入节点时的初始文字。 3.扩展插入节点和删除节点的命令,支持指定节点。")]),v("h2",[_._v("0.4.6")]),v("p",[_._v("新增:1.关联线支持调整控制点。")]),v("p",[_._v("优化:1.添加历史数据时过滤和上一次相比没有改变的数据。")]),v("p",[_._v("修复:1.修复节点编辑时方向键和方向键导航功能的冲突问题。 2.修复拖拽移动节点时节点 id 的丢失问题,这会导致关联线丢失。")]),v("h2",[_._v("0.4.5")]),v("p",[_._v("新增:1.支持关联线。 2.按住根节点也可以拖动画布。3.按住 ctrl 键可以调整多选节点。")]),v("h2",[_._v("0.4.4")]),v("p",[_._v("新增:支持响应鼠标的横向滚动。")]),v("h2",[_._v("0.4.3")]),v("p",[_._v("修复:前进回退后没有触发"),v("code",[_._v("data_change")]),_._v("事件的问题。")]),v("p",[_._v("新增:支持自定义鼠标滚轮事件;鼠标滚轮调整为支持缩放视图和上下移动视图。")]),v("h2",[_._v("0.4.2")]),v("p",[_._v("新增:"),v("code",[_._v("Node")]),_._v("类的"),v("code",[_._v("setText")]),_._v("方法增加第二个参数,以支持设置富文本内容。")]),v("h2",[_._v("0.4.1")]),v("p",[_._v("新增:1.新增抛出节点鼠标移入和移除事件;2.节点富文本支持设置背景颜色;3.节点富文本支持清除样式。")]),v("p",[_._v("修复:1.Mac 系统触控板缩放相反的问题;2.设备 window.devicePixelRatio 不为 1 时,当存在富文本节点时导出的图片中富文本节点尺寸会变大的问题。")]),v("h2",[_._v("0.4.0")]),v("p",[_._v("新增:节点支持富文本编辑。")]),v("h2",[_._v("0.3.4")]),v("p",[_._v("新增:节点文本增加自动换行功能。")]),v("p",[_._v("修复:1.修复批量删除的节点中如果存在根节点会出现删除异常的问题。2.修复底边风格的情况下,节点高度过高会和其他节点重叠的问题。")]),v("h2",[_._v("0.3.3")]),v("p",[_._v("修复:根节点文字无法换行的问题。")]),v("h2",[_._v("0.3.2")]),v("p",[_._v("修复:1.修复二级节点拖拽到其他节点或其他节点拖拽到二级节点时节点样式没有更新的问题;2.修复当思维导图实际内容大于屏幕宽高时,导出的时候超出的部分没有绘制水印的问题。")]),v("h2",[_._v("0.3.1")]),v("p",[_._v("修复:1.删除背景图片不生效的问题;2.节点拖拽到根节点时连接线跑到根节点上方的问题。")]),v("p",[_._v("新增:背景图片展示增加位置和大小设置。导出的图片也同步支持该设置。")]),v("h2",[_._v("0.3.0")]),v("p",[_._v("升级为插件化架构,将一些非核心功能抽离出来作为插件,按需注册,减小整体体积。")]),v("h2",[_._v("0.2.24")]),v("p",[_._v("新增:节点自由拖拽改为可配置,默认为"),v("code",[_._v("false")]),_._v("不开启;支持添加水印。")]),v("h2",[_._v("0.2.23")]),v("p",[_._v("新增:支持注册新主题。")]),v("h2",[_._v("0.2.22")]),v("p",[_._v("优化:取消内置"),v("code",[_._v("simple-mind-map")]),_._v("包的主题和结构图片,改为由使用者自行维护,原有图片可在"),v("code",[_._v("web/assets/img/")]),_._v("目录找到。")]),v("h2",[_._v("0.2.21")]),v("p",[_._v("新增:支持节点横线风格。")]),v("h2",[_._v("0.2.20")]),v("p",[_._v("修复:画布距窗口左上角不为 0 时节点拖拽出现偏移的问题。")]),v("h2",[_._v("0.2.19")]),v("p",[_._v("修复:没有激活节点时随便按什么键都会触发自动聚焦的问题。")]),v("h2",[_._v("0.2.18")]),v("p",[_._v("优化:键盘导航寻找焦点的算法,支持简单算法、区域算法、阴影算法。")]),v("h2",[_._v("0.2.17")]),v("p",[_._v("新增:键盘导航,即通过方向键来切换激活的节点;支持在大纲直接编辑节点文本内容。")]),v("h2",[_._v("0.2.16")]),v("p",[_._v("优化:小地图、拖拽性能。")]),v("h2",[_._v("0.2.15")]),v("p",[_._v("优化:本地文件编辑。")]),v("p",[_._v("新增:支持双击节点内图片进行大图预览。")]),v("h2",[_._v("0.2.14")]),v("p",[_._v("优化:插入子节点时自动展开。")]),v("p",[_._v("修复:小地图关闭时报错的问题。")]),v("h2",[_._v("0.2.13")]),v("p",[_._v("修复:子节点收起状态复制时丢失的问题。")]),v("h2",[_._v("0.2.11")]),v("p",[_._v("修复:修复子节点收起状态复制时丢失的问题。")]),v("p",[_._v("新增:支持小地图。")]),v("h2",[_._v("0.2.10")]),v("p",[_._v("优化:手动创建节点时立即聚焦。")]),v("p",[_._v("修复:连线样式深度更新问题。")]),v("p",[_._v("新增:逻辑结构图、思维导图新增直线连接风格、直连风格。")]),v("h2",[_._v("0.2.9")]),v("p",[_._v("新增:支持新建、打开、保存到电脑本地文件。")]),v("h2",[_._v("0.2.8")]),v("p",[_._v("修复:xmind8 版本文件导入失败的问题。")]),v("p",[_._v("新增:支持展开到指定层级。")]),v("h2",[_._v("0.2.7")]),v("p",[_._v("修复:根节点添加多个节点爆栈的问题。")]),v("p",[_._v("新增:支持导入.xmind 文件。")]),v("h2",[_._v("0.2.6")]),v("p",[_._v("新增:导出 svg 增加 title 标签。")]),v("h2",[_._v("0.2.5")]),v("p",[_._v("修复:节点展开收起的 bug。")]),v("p",[_._v("新增:节点支持自定义线条样式。")]),v("h2",[_._v("0.2.4")]),v("p",[_._v("新增:节点支持多种形状。")]),v("h2",[_._v("0.2.3")]),v("p",[_._v("修复:编辑节点文本时快捷键冲突的问题;右键菜单快捷键提示错误;右键菜单快捷键提示。")]),v("h2",[_._v("0.2.2")]),v("p",[_._v("修复:输入字符串'/'和快捷键'/'冲突问题。")]),v("h2",[_._v("0.2.1")]),v("p",[_._v("新增:支持导出为 pdf。")]),v("h2",[_._v("0.2.0")]),v("p",[_._v("新增:经典 4 主题;支持添加概要;支持自由拖拽;上移节点、下移节点、复制节点、剪切节点、粘贴节点、一键整理布快捷键;库打包;Ctrl+左键多选。")]),v("h2",[_._v("0.1.18")]),v("p",[_._v("修复:节点图标不能删除的问题;工具按钮置灰仍然可以点击的问题。")]),v("h2",[_._v("0.1.17")]),v("p",[_._v("新增:增加只读模式。")]),v("h2",[_._v("0.1.16")]),v("p",[_._v("新增:节点备注支持 markdown 及富文本。")]),v("p",[_._v("修复:不能选中文字的问题;节点标注在节点激活后无法隐藏问题;超链接、备注、标签等文字编辑时返回键和回车键与思维导图快捷键冲突的问题。")]),v("h2",[_._v("0.1.15")]),v("p",[_._v("新增:状态数据支持保存激活状态、视图状态(拖动位置、缩放值);支持节点拖拽。")]),v("h2",[_._v("0.1.14")]),v("p",[_._v("修复:存在激活节点时设置主题存在的问题。")]),v("h2",[_._v("0.1.13")]),v("p",[_._v("新增:快捷键功能;新增导出为 json。")]),v("p",[_._v("优化:一些细节。")]),v("h2",[_._v("0.1.12")]),v("p",[_._v("新增:本地存储;右键菜单功能等。")]),v("h2",[_._v("0.1.0")]),v("p",[_._v("完成基本功能。")])])}],t={},h=t,i=p("2877"),c=Object(i["a"])(h,o,e,!1,null,null,null);v["default"]=c.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-2d208ffa.js b/dist/js/chunk-2d208ffa.js index a792ab9c..86cc6c07 100644 --- a/dist/js/chunk-2d208ffa.js +++ b/dist/js/chunk-2d208ffa.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d208ffa"],{a6d3:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Changelog")]),t("h2",[e._v("0.9.6")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the style of the collapsed nodes remains unchanged when switching themes;")]),t("p",[e._v("2.Fix the issue of losing the new text style when switching themes for text wrapping;")]),t("p",[e._v("3.Fix the issue where the style of the newline text remains unchanged when switching themes;")]),t("p",[e._v("4.Fixed the issue of adding mathematical formulas to nodes and not changing the text style when switching themes;")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add new fields to the theme, used to set the display position, head or tail, of node line arrows;")]),t("p",[e._v("2.New field added to the theme, used to set the starting position of the root node line when connecting curves;")]),t("p",[e._v("3.Mac dual finger touch event moves the canvas to increase sensitivity slightly;")]),t("p",[e._v("4.Add MOVE_ UP_ ONE_ The LEVEL command is used to move a node up one level;")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The outline supports pressing Shift+Tab to move nodes up one level;")]),t("p",[e._v("2.Support setting the position of node arrow display;")]),t("p",[e._v("3.Support setting the starting position of root node connections;")]),t("p",[e._v("4.Add two new themes;")]),t("p",[e._v("5.Fix the issue of text wrapping not taking effect in the outline and displaying the br tag;")])]),t("h2",[e._v("0.9.5")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of missing inter zone summaries when expanding and folding nodes.")]),t("p",[e._v("2.Fix the issue where the position of the newly created associated line is always on the right side of the node without changing according to its relative position.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add configuration for the initial positions of the two endpoints when creating associated lines.")]),t("p",[e._v("2.Add a configuration that prohibits adjusting the endpoint position of associated lines.")]),t("p",[e._v("3.Add a hand drawn style plugin.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Optimize interface adaptation on mobile devices.")]),t("p",[e._v("2.Supports enabling hand drawn styles.")])]),t("h2",[e._v("0.9.4")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of inconsistent text wrapping caused by inconsistent text area width during node display and editing in some cases.")]),t("p",[e._v("2.Fixed the issue where gradients were not applied to the edit box during rich text editing for nodes with gradient backgrounds.")]),t("p",[e._v("3.Fix the issue of text style loss after switching themes for nodes defined in bold by the theme.")]),t("p",[e._v("4.Fix the issue on Mac where the useLeftKeySelectionRightKeyDrag option is set to true and cannot hold down the Ctrl key to select multiple nodes.")]),t("p",[e._v("5.Fix the issue where text styles are lost after clearing styles during node rich text editing, and switching themes does not restore them.")]),t("p",[e._v("6.Fix data issue when deleting nodes with child nodes_ Change_ The issue of error reporting in detail events.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add the lineRadius property to the theme configuration to set the size of the rounded corners when connecting straight lines.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Remove the display of formulas from the outline.")]),t("p",[e._v("2.Some configurations in the basic style that only support partial structures are displayed and hidden based on the current structure.")]),t("p",[e._v("3.Add configuration for connecting rounded corners.")]),t("p",[e._v("4.Automatically hide the sidebar when importing files.")])]),t("h2",[e._v("0.9.3")]),t("p",[e._v("Fix")]),t("blockquote",[t("p",[e._v("1.Fix the issue of text misalignment when nodes have icons in Safari browser.")]),t("p",[e._v("2.Fix the issue of formula rendering in browsers with lower versions of Chrome kernel.")]),t("p",[e._v("3.Fix the issue of new MouseEvent code execution errors when used in micro front-end framework applications.")]),t("p",[e._v("4.Fix the issue of missing arrows on node connections, arrows on associated lines, and gradient backgrounds when exporting images.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Export PDF from jspdf library to pdf-lib library.")]),t("p",[e._v("2.If the second parameter of the set node text command (SETNODE-TEXT) is not passed, the previous value will be used.")]),t("p",[e._v("3.There is an issue of incorrect width and height of exported images in Firefox browser when optimizing nodes with hyperlinks and comments.")]),t("p",[e._v("4.In node text editing, if the pasted data is in SMM format, the pure text of the first node will be taken out for pasting.")]),t("p",[e._v("5.Add interception operations for pasting when editing nodes without rich text.")]),t("p",[e._v("6.Add a detailed event (data_change_detail) for updating node data, which can retrieve newly created, updated, or deleted node data.")]),t("p",[e._v("7.Theme configuration supports setting node gradient background color.")])]),t("p",[e._v("Demo:")]),t("p",[e._v("1.Support setting the background of node gradients.")]),t("h2",[e._v("0.9.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of no line breaks when node text contains consecutive numbers or letters.")]),t("p",[e._v("2.Fix the issue of duplicate node drawing when importing files with the same UID as existing nodes on the current canvas.")]),t("p",[e._v("3.Fix the issue of duplicate rendering of nodes caused by forward and backward when the number of nodes exceeds the maximum number of cache pools.")]),t("p",[e._v("4.Fix the issue of the canvas moving in the opposite direction when scrolling horizontally with the mouse or touchpad.")]),t("p",[e._v("5.Fix the issue where the mouse in flag is not reset when a node is destroyed.")]),t("p",[e._v("6.Fix the issue of incorrect position calculation in the scrollbar plugin when the 'initRootNodePosition' configuration is not set to the default '[center, center]'.")]),t("p",[e._v("7.Fix the issue where dragging the canvas cannot stop when the mouse is released on the node.")]),t("p",[e._v("8.Fix the issue of errors in the position calculated by the view. fit method when the canvas container is not 0 from the top left corner of the browser window.")]),t("p",[e._v("9.Fix the issue where the watermark in the exported image does not fully cover the entire image when there are a large number of nodes.")]),t("p",[e._v("10.Fix the issue of inserting formula errors.")]),t("p",[e._v("11.Fix the issue of losing the selected text status when the mouse moves out of the editing box while selecting text in the node text editing state.")]),t("p",[e._v("12.When repairing node rich text editing, Fix the issue 'rich_text_selection_change' event is not triggered when the text selection range is 'null'.")]),t("p",[e._v("13.Fix the issue of no 'node' instance in the 'node_dragging' event callback.")]),t("p",[e._v("14.Fix the issue of too many nodes and the canvas size being too large to export PNG.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Modify the mousewheel event, change the dir flag to dirs, support storing multiple directions, and optimize the dual finger movement operation of the touchpad.")]),t("p",[e._v("2.The TextEdit class adds the isShowTextEdit method to determine whether the current node is in an editing state.")]),t("p",[e._v("3.Change the paste method of the render class to support pasting clipboard data.")]),t("p",[e._v("4.Add a configuration option to restrict mind map graphics within the canvas.")]),t("p",[e._v("5.When registering the scrollbar plugin, it supports configuring whether to restrict the mind map within the canvas.")]),t("p",[e._v("6.Folding all nodes will move the mind map root node to the center of the canvas.")]),t("p",[e._v("7.Support the configuration option of displaying watermarks only during export.")]),t("p",[e._v("8.When pasting images from the clipboard at a node, custom processing functions are supported to upload the images to your server.")]),t("p",[e._v("9.Refactoring the export logic of the PDF, the exported PDF size is no longer a fixed A4, but the size of the mind map, while deleting the configuration for pagination export.")]),t("p",[e._v("10.Node connections support displaying arrows as a field for the theme.")]),t("p",[e._v("11.The maximum number of historical records is adjusted to 500 by default.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Support configuration to display watermarks only during export.")]),t("p",[e._v("2.Basic style configuration line supports displaying arrows.")])]),t("h2",[e._v("0.9.1-fix.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where some browsers display default text when node text is empty.")]),t("p",[e._v("2.Fix the issue of text style loss when inputting text again when the node text content is empty.")]),t("p",[e._v("3.Fix the issue where exporting images also fails when node image loading fails.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Support configuring the default image displayed when node image loading fails.")])]),t("h2",[e._v("0.9.1-fix.1")]),t("p",[e._v("Fix:")]),t("p",[e._v("1.Fix the issue of custom node methods reporting null errors.")]),t("p",[e._v("2.Fix the issue of large volume of exported PDF files.")]),t("h2",[e._v("0.9.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of exporting images, SVGs, and PDFs with errors when customizing node content.")]),t("p",[e._v("2.Optimize the distribution of node activation events, do not distribute events when the activation node has not changed, and skip intermediate events when distributing multiple events in a short period of time.")]),t("p",[e._v("3.Fix the issue where the edit box and node detach when scrolling the canvas with the mouse while the node is in editing mode.")]),t("p",[e._v("4.Fix the issue of shortcut keys becoming invalid when zooming the canvas with the mouse wheel and then exiting node editing while in node editing mode.")]),t("p",[e._v("5.Fix the issue where clicking on a node can also trigger node_dragend event.")]),t("p",[e._v("6.Fix that clicking on the canvas and nodes while not in the format brush will also trigger the painter_end event.")]),t("p",[e._v("7.Fixed the issue where the mind map text editing box was not destroyed during node text editing and associated line text editing.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.When holding down the Ctrl key, disable the node double-click event.")]),t("p",[e._v("2.Support configuring the behavior when creating new nodes: focusing and entering editing, not focusing, only focusing.")]),t("p",[e._v("3.When searching in read-only mode, add a highlight effect to the currently matched node.")]),t("p",[e._v("4.The default behavior of the mouse scroll wheel is to move the canvas up and down; The default is to scroll forward to enlarge the canvas and zoom back.")]),t("p",[e._v("5.When the mouse scroll wheel behavior is to move the canvas up and down, it supports holding down the Ctrl key to zoom in and out of the canvas.")])]),t("p",[e._v("Demo:支持配置创建新节点时的行为。")]),t("h2",[e._v("0.9.0")]),t("p",[e._v("New:")]),t("p",[e._v("1.Support adding summaries to some child nodes of the same node.")]),t("p",[e._v("2.Moving the mouse into the summary will highlight its node.")]),t("p",[e._v("3.Importing and exporting xmind files supports processing profiles.")]),t("h2",[e._v("0.8.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the activation status of the summary node in the history data has not been deleted, which can cause data to be triggered when clicking on the summary node_ Change event.")]),t("p",[e._v("2.Fix the issue of blank pages and exceptions thrown by the console when running in Safari browser.")]),t("p",[e._v("3.Fixed the issue of icon floating layer and note floating layer detached from nodes when scaling the canvas.")]),t("p",[e._v("4.Fixed the issue of selecting all nodes in read-only mode.")]),t("p",[e._v("5.Fix the presence of node content has   in rich text mode; Error exporting as image.")]),t("p",[e._v("6.Fixed the issue of overlapping profiles when adding profiles to oneself first and then to subordinates; Fix the issue of overlapping profiles when adding profiles to nodes with hierarchical relationships at the same time.")]),t("p",[e._v("7.Fix the issue of exporting PDF errors when there are many nodes.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option that prohibits dragging the canvas.")]),t("p",[e._v("2.Add a configuration option to prohibit double finger scaling of the canvas.")]),t("p",[e._v("3.Add compression parameters to the method of exporting PNG; Optimize the problem of excessive volume when exporting PDF from nodes with large amounts of data.")]),t("p",[e._v("4.Rename the isParent method of the node instance to isAncestor and add the isParent method at the same time.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of being able to search for replacement and edit outlines in read-only mode.")]),t("p",[e._v("2.Fix the issue where the outline cannot be displayed and edited when the node content is an HTML tag.")]),t("p",[e._v("3.Fix the issue where when multiple nodes are selected and icons are added at the same time, all node icons will be unified as the icon of the first node.")]),t("p",[e._v("4.Adding loading to the export operation.")])]),t("h2",[e._v("0.8.0-fix.1")]),t("p",[e._v("Fix: Fixed the issue of creating a new node using direct paste if the pasted content contains HTML label symbols such as <> and the newly created node content is empty.")]),t("h2",[e._v("0.8.0")]),t("p",[e._v("Breaking change: Greatly optimize some of the code and slightly improve performance, mainly by using the 'render' class to remove useless logic, adjust unreasonable implementations, and extract duplicate code; Modify function names, functions, etc.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the arrow of the associated line disappearing when exporting images and SVGs.")]),t("p",[e._v("2.Fix the issue of abnormal operation returning to the root node after resizing the container.")]),t("p",[e._v("3.Fix that the shortcut key operations for inserting summary, moving up, down, and organizing layout with one click did not trigger data_ The issue with the change event.")]),t("p",[e._v("4.Fix the issue of each node displaying a border when exporting images, SVGs, and PDFs with watermarks.")]),t("p",[e._v("5.Fixed the issue of no watermarks and no redrawing after the container size was changed.")]),t("p",[e._v("6.Fix the issue of slow rendering of mini maps with watermarks.")]),t("p",[e._v("7.Fixed the issue where the collaboration plugin did not display the creator's avatar when creating a new node.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Optimize the canvas DOM structure and render nodes, lines, and associated lines in layers.")]),t("p",[e._v("2.Optimize the watermark plugin.")]),t("p",[e._v("3.The setTheme, setThemeConfig, and setLayout functions add parameters that do not trigger re rendering.")]),t("p",[e._v("4.Add a command to insert a parent node.")]),t("p",[e._v("5.Add a command to only delete the current node.")]),t("p",[e._v("6.Automatically expand child nodes when inserting a summary.")]),t("p",[e._v("7.Clear the current active node when right-clicking on the canvas.")]),t("p",[e._v("8.The folded active nodes are synchronously deleted from the list of active nodes.")]),t("p",[e._v("9.Pasting text with line breaks supports controlling whether nodes are split by line breaks.")]),t("p",[e._v("10.The mini map plugin supports returning mini maps of image types.")]),t("p",[e._v("11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Modify the method and copy to return to the root node.")]),t("p",[e._v("2.Fix the issue of ineffective first switching when switching themes in overlay mode.")]),t("p",[e._v("3.The right-click menu adds the function of inserting parent nodes and deleting only the current node.")]),t("p",[e._v("4.The top toolbar supports automatic folding into more according to the window width.")]),t("p",[e._v("5.Support manual input of zoom factor.")]),t("p",[e._v("6.Improve the English translation of the interface.")]),t("p",[e._v("7.Change the mini map to render through images.")])]),t("h2",[e._v("0.7.3-fix.2")]),t("p",[e._v("Fix some issues with collaborative editing:")]),t("p",[e._v("1.The position of the new node is incorrect when inserting peer nodes;")]),t("p",[e._v("2.Moving a position within a peer node did not trigger an update;")]),t("p",[e._v("3.The position of the mobile node inserted as a sibling node is incorrect;")]),t("h2",[e._v("0.7.3-fix.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed some issues where the box selection area did not disappear when multiple nodes were selected.")]),t("p",[e._v("2.Fixed an issue where the box selection area does not disappear when releasing the mouse over multiple selected nodes.")]),t("p",[e._v("3.Fixed rendering anomalies caused by duplicate node uids when pasting nodes multiple times.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add protocol selection function to the hyperlink input box.")])]),t("h2",[e._v("0.7.3")]),t("p",[e._v("New: 1.Add a Cooperate editing plugin.")]),t("p",[e._v("Demo: 1.Fix the automatic closing of the sidebar caused by the formula sidebar component.")]),t("h2",[e._v("0.7.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of nodes not being selected when the selection area does not include node boundaries when multiple nodes are selected.")]),t("p",[e._v("2.Fix the issue of errors when node text is not a string.")]),t("p",[e._v("3.Fix the issue of some text disappearing when edited again when there are<>&characters in the text in non rich text mode.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Supports inserting mathematical formulas.")]),t("p",[e._v("2.Supports dragging and moving multiple nodes simultaneously.")]),t("p",[e._v("3.Supports copying and cutting multiple nodes simultaneously.")]),t("p",[e._v("4.The node label color has been changed to be generated based on the label content, meaning that the same label content will generate the same color.")]),t("p",[e._v("5.Optimize the insertion of child nodes: 1. When inserting child nodes into multiple nodes simultaneously, do not enter the editing state; 2. The newly inserted child node automatically enters the active state.")]),t("p",[e._v("6.Optimize the insertion of sibling nodes: 1. Support the simultaneous insertion of sibling nodes into multiple nodes; 2. When calling the command to insert sibling nodes on the root node, no child nodes will be created.")]),t("p",[e._v("7.Add a command to simultaneously insert multiple peers and multiple child nodes.")]),t("p",[e._v("8.Changing the unique identifier of nodes from id to uid mainly affects the associated lines, which may not display properly in previous versions.")]),t("p",[e._v("9.Optimize the logic of icon merging and support the expansion of icons under the internal classification of the library.")]),t("p",[e._v("10.Associate line: 1. Double click the associate line to enter associate line text editing mode; If the associated line text is the default text, it will not be saved; 3. When there are active nodes, clicking on the associated line can directly activate the associated line.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed an issue where multiple nodes in the Zhixi mind map cannot be pasted when copying.")]),t("p",[e._v("2.Add a sidebar for formula editing.")])]),t("h2",[e._v("0.7.1-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of plugin registration method chain call reporting errors.")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option to adapt to the canvas size when the mind map is first loaded.")]),t("p",[e._v("2.Add a command to automatically generate dts declaration files.")])]),t("h2",[e._v("0.7.1-fix.1")]),t("p",[e._v("Fix: Fixed the issue of dragging nodes without excluding the child nodes of the dragged nodes.")]),t("h2",[e._v("0.7.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of unsaved associated line endpoints after changes.")]),t("p",[e._v("2.Fix the issue of abnormal canvas scrolling when moving the mouse to the edge of multiple selected nodes when the distance from the top left corner of the canvas to the browser window is not 0.")]),t("p",[e._v("3.Fix the issue of importing xmind file errors for nodes with empty titles.")]),t("p",[e._v("4.Fix the issue where the exported xmind file prompts for corruption when opened on the latest version of xmind software.")]),t("p",[e._v("5.Fix the issue where stickers cannot be displayed when exporting data with stickers in xmind format.")]),t("p",[e._v("6.Fix the issue of node right-click event reporting errors when the select plugin is not registered.")]),t("p",[e._v("7.There is no issue with removing duplicates in the method of registering plugins.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Reconstruct node drag and drop logic: optimize drag and drop difficulties in some situations, adapt to various structures, and automatically move the canvas when the mouse moves to the edge of the canvas during drag and drop.")]),t("p",[e._v("2.Reconstruct the scrollbar plugin to optimize the user experience.")]),t("p",[e._v("3.Imperfect resolution of conflicts between logical structure diagrams, mind maps, directory organization diagrams, organization chart summaries, and nodes (the summaries should be rewritten or deleted later).")]),t("p",[e._v("4.Activate adjacent nodes after deleting them.")]),t("p",[e._v("5.In node data_ The starting field is considered a custom field.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The page will display the current core library version number.")])]),t("h2",[e._v("0.7.0")]),t("p",[e._v("Breaking change: Removed the section of node activation style in the theme file, Setting the activation style of nodes is no longer supported, and the activation effect has been changed to a unified node outer border style, while also supporting the mouse hover effect.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix rendering anomalies when the node border size is relatively large.")]),t("p",[e._v("2.Fixed an issue where the node style of the associated line will not be updated when switching themes.")]),t("p",[e._v("3.Fix that selecting all did not trigger node_ The issue with active events.")])]),t("p",[e._v("新增:")]),t("blockquote",[t("p",[e._v("1.When folding nodes, displays the number of collapsed nodes.")]),t("p",[e._v("2.Support the position of the endpoint of the associated line to follow mouse drag changes.")]),t("p",[e._v("3.Add a scrollbar plugin.")]),t("p",[e._v("4.Support opening specified online files through fileURL query parameters in URLs.")]),t("p",[e._v("5.The fishbone diagram supports setting node margins.")]),t("p",[e._v("6.By default, double-click to reset the canvas.")]),t("p",[e._v("7.Modify the parameters of the export image method, and when exporting PDF, if the size of the mind map is smaller than A4 paper, do not rotate the direction.")]),t("p",[e._v("8.Improve the clarity of exported images and PDFs on high-definition screens.")]),t("p",[e._v("9.Add a pre destruction lifecycle function to the plugin to address the issue of some side effects that were not cleared during the destruction of the mind map.")]),t("p",[e._v("10.Optimize the settings of the basic style and do not trigger full rendering when modifying theme attributes that do not affect size.")]),t("p",[e._v("11.Prohibit triggering node right-click menu events when multiple node selections are completed, to avoid triggering the right-click menu display.")]),t("p",[e._v("12.Optimize the Select plugin so that if multiple selected nodes do not change, the activation event is not triggered.")]),t("p",[e._v("13.The activation node list thrown by event node_active no longer directly references the internal activation list.")]),t("p",[e._v("14.Optimize the logic of mouse button down node events, and support dragging the canvas by holding down the root node with the right mouse button in the right-click drag and drop canvas mode.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Do not directly reference the internal activation node list to optimize performance.")]),t("p",[e._v("2.Support configuring whether to display scrollbars.")]),t("p",[e._v("3.Delete the active node configuration in the sidebar node style configuration section.")])]),t("h2",[e._v("0.6.17")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of error reporting in the xmind file exported from Baidu Brain Map.")]),t("p",[e._v("2.Fix the mindMap. export method code error.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Create index.d.ts file。")]),t("p",[e._v("2.Support configuration to enable double click reset mind map.")]),t("p",[e._v("3.Intercept paste operations during rich text editing, remove formatting, and only allow pasting pure text.")])]),t("h2",[e._v("0.6.16")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Optimize the logic of rich text measurement elements, remove duplicate settings for styles, and add duplicate nodes")]),t("p",[e._v("2.Optimize the export image logic, and when traversing the node to convert the URL of the image, if it is already in the form of data: URL, do not handle it repeatedly.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove the second parameter of the exported SVG method and configure it through instantiation instead.")]),t("p",[e._v("2.Export images without using external libraries.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed a bug where siblings can be added to the root node when editing the outline separately.")])]),t("h2",[e._v("0.6.15-fix.2")]),t("p",[e._v("Fix: Fixed an issue where rich text nodes cannot be displayed in Firefox browser.")]),t("h2",[e._v("0.6.15-fix.1")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Export PDF supports pagination export based on image size.")]),t("p",[e._v("2.Exporting PDF supports automatic direction adjustment based on aspect ratio.")]),t("p",[e._v("3.Optimize the placeholder elements of the expand and collapse buttons: 1. Nodes without child nodes do not render this element; 2. Dynamically update the element based on the existence of child nodes.")]),t("p",[e._v("4.Add a configuration that prohibits mouse wheel scaling.")]),t("p",[e._v("5.Supports passing error handling functions.")])]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of displaying exceptions when node text is empty.")]),t("p",[e._v("2.Change the paddingX and paddingY of exported SVG graphics to single sided padding.")]),t("p",[e._v("3.Fixed an issue where the mouse is not centered when zooming when the canvas is not 0 from the top left corner of the browser window.")]),t("p",[e._v("4.Fix the issue of overlapping node borders.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The bottom right corner supports jumping to related links.")]),t("p",[e._v("2.Adjust the position of the mini map to solve the problem of being blocked by side buttons.")]),t("p",[e._v("3.Fix the issue where the prompt in the upper right corner of the open local file cannot be closed.")]),t("p",[e._v("4.Editing the outline separately is no longer linked to the canvas, optimizing the editing experience under large data volume.")]),t("p",[e._v("5.The sidebar involves graphical options to increase visualization effects.")])]),t("h2",[e._v("0.6.14")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove and create hidden input boxes, and copy and paste them through navigator. clipboard; Support cross browser pasting of mind map node data; Support custom processing of text data in the clipboard.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of enabling input to automatically enter text editing mode and conflicting with other input boxes.")]),t("p",[e._v("2.Fix the issue of not being able to delete node images in the node image pop-up window.")]),t("p",[e._v("3.Fixed an issue where the text decoration line style of nodes cannot be removed in the node style sidebar.")]),t("p",[e._v("4.The color selector supports selecting transparent colors.")]),t("p",[e._v("5.Fix the issue of importing mind map data without updating the sidebar data when the basic style sidebar is open.")]),t("p",[e._v("6.Fixed the issue of not focusing when modifying the text of one node in the outline and then clicking on other nodes.")]),t("p",[e._v("7.Fixed an issue where the node and word count statistics in the bottom left corner were not updated after exiting Zen mode.")]),t("p",[e._v("8.Support deleting hyperlinks and notes of nodes from the right-click menu.")]),t("p",[e._v("9.Support pasting node data of Zhixi Mind Map.")])]),t("h2",[e._v("0.6.13")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the inability to drag the canvas while holding down the middle mouse button on a node in read-only mode.")]),t("p",[e._v("2.Fixed the issue of probabilistic error reporting after quickly dragging nodes several times.")]),t("p",[e._v("3.Fix the issue of pulling up the input method during operations such as activating nodes on the mobile end, expanding and collapsing.")]),t("p",[e._v("4.Fix the issue where an exception request is initiated when the background image in the theme configuration is none.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Mobile gesture scaling optimization: Scale according to a linear relationship, and adjust the canvas position with double finger displacement.")]),t("p",[e._v("2.Remove the logic of asynchronous rendering nodes and improve the speed of creating new nodes.")]),t("p",[e._v("3.The export of images has been changed from the html2canvas library to the dom to image more library to address the issue of missing text styles in exporting rich text nodes.")]),t("p",[e._v("4.When a non rich text input box enters the editing state, it is deselected by default.")]),t("p",[e._v("5.When there is an activation node, it supports automatically entering text editing mode when pressing the Chinese, numeric, or English buttons.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add anti shake operations when saving view data to optimize performance.")]),t("p",[e._v("2.Some time-consuming operations add loading effects.")]),t("p",[e._v("3.Improve the dark mode of right-click menus and rich text toolbars.")])]),t("h2",[e._v("0.6.12")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the indicator in the mini map will also move out of the mini map area when the mind map is completely moved out of the visible area.")]),t("p",[e._v("2.Fix the issue of overly sensitive dual finger scaling on the mobile end.")]),t("p",[e._v("3.Fix the issue of holding down nodes while dragging the canvas in read-only mode.")]),t("p",[e._v("4.Fix the issue of incorrect rendering of the mini map when the distance between the mind map and the top left corner of the browser window is not 0.")]),t("p",[e._v("5.Fix the issue of the prompt block being too large for the new location when moving nodes.")]),t("p",[e._v("6.Fix the issue where search cannot be replaced with empty characters.")]),t("p",[e._v("7.Fixed the issue of missing line breaks after searching and replacing in rich text mode.")]),t("p",[e._v("8.Fixed the issue of missing focus in the input box when clicking on text editing in the outline.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Adding a callback parameter to the node move end event (node_drag) can obtain the uid of the move to the node.")]),t("p",[e._v("2.Support specifying the location to which internal elements are added through configuration.")]),t("p",[e._v("3.Support the format brush function.")]),t("p",[e._v("4.Under the curve style, the connection line style of the root node supports consistency with other nodes.")]),t("p",[e._v("5.Search supports continuous replacement.")]),t("p",[e._v("6.Add and delete button for node image.")]),t("p",[e._v("7.Support dragging the canvas while holding down the middle mouse button.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Provide an application takeover mode to facilitate docking with one's own storage services; Supports setting static resource paths at runtime.")]),t("p",[e._v("2.Refactoring outline: 1. No longer use the text style that comes with the node; 2. Support full screen editing of the outline; 3. The outline supports dragging and moving nodes; 4. The outline supports deleting nodes.")]),t("p",[e._v("3.Fix the issue of interface dark mode not updating in the scenario of importing data.")])]),t("h2",[e._v("0.6.11-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of invisible editing when node text is white.")]),t("h2",[e._v("0.6.11")]),t("p",[e._v("New: 1.Optimize the mini map, remove node content within the mini map, and optimize performance.")]),t("p",[e._v("Demo: 1.Add a new topic and add tab differentiation to the topic list. 2.Node image upload supports inputting network image addresses. 3.Node image upload supports inputting network images.")]),t("h2",[e._v("0.6.10")]),t("p",[e._v("Fix: 1.Fix the issue of deleting a node after searching for it and not updating the search results when searching again. 2.Fixed an issue where the button for adjusting image size did not update after node operation. 3.Fix the issue of incorrect internal data deep copy location. 4.Fix the issue of ineffective line wrapping in rich text nodes. 5. Fix the issue of node swapping and loss when switching themes and other scenarios.")]),t("p",[e._v("New: 1.Search supports searching for white space characters and replacing them with white space characters.")]),t("p",[e._v("Demo: 1.Support calling up search through icon buttons. 2.Support for switching to dark mode through icon buttons. 3.Optimize search: The mouse is not in the search area and not focused, solving the problem of not being able to delete input text when the mouse is not in the search area. 4.Adjust the interface UI for adding node icons and add a series of node icons. 5.Add a sticker list. 6.Fixed the issue of missing focus in the input box after entering the search box. 7.Support clicking on the icon within the node to display an icon for quick replacement and deletion of the floating panel.")]),t("h2",[e._v("0.6.9-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect replacement after a single search.")]),t("p",[e._v("New: 1.We will no longer directly modify the incoming data object, but will make a deep copy internally.")]),t("h2",[e._v("0.6.9")]),t("p",[e._v("Fix: 1.Fixed an issue where setting styles to summary nodes would cause summary nodes to disappear. 2.Fixed the issue of node content not rendering when creating a root instance again when customizing node content. 3.Fix the issue of losing focus when adding a new node while the node is in editing. 2.Fix the issue of continuously pressing the tab key not being able to continuously create child nodes.")]),t("p",[e._v("New: 1.Replace existing "),t("code",[e._v(" ")]),e._v(" in SVG when exporting Characters to avoid exporting SVG errors. 2.Support for search and replace.")]),t("p",[e._v("Demo: 1.When switching themes, it is supported to choose whether to overwrite the set basic style.")]),t("h2",[e._v("0.6.8")]),t("p",[e._v("Fix: 1.Change the shortcut key for inserting a summary to Ctrl+G to avoid conflicts with the save shortcut key. 2.Fix the issue of abnormal switching between rich text editing configuration input boxes while nodes are being edited.")]),t("p",[e._v("New: 1.Modify the copy, cut, and paste logic, and support pasting data from the clipboard.")]),t("p",[e._v("Demo: 1.Fix the issue of not saving the outer margin of the basic style setting node. 2.Supports automatic switching to dark mode based on the theme.")]),t("h2",[e._v("0.6.7")]),t("p",[e._v("Fix: 1.Fixed the issue of missing placeholder elements for the expand and collapse button after node collapse and expansion. 2.Fixed the issue of being able to scale images in read-only mode.")]),t("p",[e._v("New: 1.Support locating to a node based on node instance or node uid. 2.Modify the creation method of node uids and export data to add node uids.")]),t("p",[e._v("Remove: 1.Remove the node transition effect.")]),t("p",[e._v("Demo: 1.Add website homepage. 2.Fixed the issue of missing node styles when creating new nodes in the outline. 3.Fixed the issue of missing edited text after pressing Enter or Tab after editing nodes in the outline. 4.Optimize the node positioning of the outline, and the collapsed nodes will automatically expand. 5.The sidebar button supports folding. 6.Optimize small screen adaptation.")]),t("h2",[e._v("0.6.6")]),t("p",[e._v("New: 1.Support exporting to Xmind new version files. 2.Importing the new version of Xmind file supports importing images from nodes. 3.Add a vertical timeline structure.")]),t("p",[e._v("Fix: 1.The TouchEvent plugin no longer sends click events, solving the problem of two windows opening when clicking on a hyperlink on the mobile end. 2.Fix the issue of dragging and moving a node to become a child node of another node, where the parent node of that node points to not being updated. 3.Fixed an issue where the node border style was not updated when dragging a second level node into a third level node. 4.Fix the issue where the mouse will not trigger the button display when moving into the unfolded or retracted button position, except for the structure growing to the right.")]),t("p",[e._v("optimization: 1.The issue of excessive amplitude when optimizing the touchpad to scale the canvas. 2.The newly created node defaults to selecting all for easy deletion of default text.")]),t("h2",[e._v("0.6.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of adjusting the image size incorrectly while zooming.")]),t("h2",[e._v("0.6.5")]),t("p",[e._v("Fix: 1.Fix the issue of xmind file import errors. 2.Fixed a rare issue where line breaks occur when the width of the node text is decimal.")]),t("p",[e._v("New: 1.The packaged library supports obtaining built-in constants, themes, and other data. 2.Supports configuring the zoom behavior corresponding to the direction of the mouse wheel. 3.Node images support dragging and resizing.")]),t("h2",[e._v("0.6.4-fix.1")]),t("p",[e._v("New: 1.When zooming with the mouse wheel, the default zoom is centered around the current position of the mouse, which can be turned off by configuring.")]),t("p",[e._v("Fix: 1.Fixed an issue where the default value of the zoom center point was not updated after changing the canvas size.")]),t("h2",[e._v("0.6.4")]),t("p",[e._v("New: 1.The default is to scale at the center point of the canvas. 2.Optimize the scaling of both fingers on the mobile end, with the center position of the two fingers as the center point for scaling.")]),t("h2",[e._v("0.6.3")]),t("p",[e._v("Fix: 1.Fix the issue where the summary node will respond to inserting node shortcuts.")]),t("p",[e._v("New: 1.Support custom node content.")]),t("h2",[e._v("0.6.2")]),t("p",[e._v("Fix: 1.Fixed the problem that the new node does not change with the theme in rich Text mode.")]),t("h2",[e._v("0.6.1")]),t("p",[e._v("Fix: 1.Fixed the issue of high movement sensitivity when using the touchpad when changing mouse scrolling to moving the canvas behavior.")]),t("h2",[e._v("0.6.0-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of destroying mind maps without setting a background style and reporting errors.")]),t("h2",[e._v("0.6.0")]),t("p",[e._v("Breaking change: Adjusted the directory structure of the simple-mind-map source code, Main impact: 1. The introduction path of the plugin needs to be modified. The constant file path needs to be modified.")]),t("p",[e._v("New: 1.Supports one click zoom to fit the canvas function. 2.Press and hold the Ctrl key to activate the multi selection function on demand through configuration. 3.Support setting to left click to select multiple nodes and right click to drag the canvas. 4. Support controlling whether nodes are allowed to be edited. 5.Add a method for destroying mind maps. 6.Added touch event support plugin.")]),t("p",[e._v("Fix: 1.Fix the issue where holding down the Ctrl key to select multiple nodes does not trigger the click event for the node. 2.Fixed the issue of node style loss when clearing a node and then entering text.")]),t("h2",[e._v("0.5.11")]),t("p",[e._v("New: Supports associative text editing.")]),t("p",[e._v("optimization: Optimizing theme configuration updates, changing configurations that do not involve node size does not trigger node recalculation.")]),t("h2",[e._v("0.5.10")]),t("p",[e._v("New: Optimize node reuse logic using LRU caching algorithm.")]),t("h2",[e._v("0.5.10-fix.1")]),t("p",[e._v("Fix: Fix the issue of import errors.")]),t("h2",[e._v("0.5.10-fix.2")]),t("p",[e._v("Fix: Fixed the issue of switching themes and importing data without triggering data changes in rich text mode.")]),t("p",[e._v("New: Add three new themes.")]),t("h2",[e._v("0.5.9")]),t("p",[e._v("Change: Unified export method format, using "),t("code",[e._v("FileReader")]),e._v(" instead of "),t("code",[e._v("URL.createObjectURL")]),e._v(" to convert "),t("code",[e._v("blob")]),e._v(" data.")]),t("h2",[e._v("0.5.8")]),t("p",[e._v("optimization: 1.The position setting is not triggered when the node position does not change. 2.The unfolding and folding status does not change and does not trigger button updates.")]),t("p",[e._v("New: 1.The default setting is to move the mouse over the node to display the expand and collapse buttons. 2.Support the list of icons that can be inserted into extended nodes.")]),t("h2",[e._v("0.5.7")]),t("p",[e._v("Breaking change:In rich text mode, exporting png has been changed to using html2canvas to convert the entire svg, greatly improving the export speed. However, html2canvas has a bug where the text color inline with the dom node in the foreignObject element cannot be recognized. Therefore, the text color of the exported node is fixed. However, compared to the previously unavailable state of the export, it can at least be exported quickly and smoothly.")]),t("p",[e._v("optimization: Optimize the rich text node editing experience.")]),t("p",[e._v("New: In rich text mode, importing data, initializing data, and switching theme scene node styles support following theme changes.")]),t("h2",[e._v("0.5.6")]),t("p",[e._v("Fix: 1.Fix the issue of node position disorder during fast and multiple renderings in a short period of time. 2.Fix the issue of dragging the canvas while the node is being edited, causing the edit box and node to separate.")]),t("p",[e._v("New: 1.Add a maximum history limit.")]),t("h2",[e._v("0.5.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where the edit box is also outside the canvas when editing nodes outside the canvas. 2.After modifying the structure, reset the transformation to prevent the problem of sudden position changes during the first drag after switching the structure during scaling.")]),t("p",[e._v("optimization: 1.When multiple nodes are selected, as long as there is a cross between the node and the selection area, it is considered selected.")]),t("h2",[e._v("0.5.5-fix.2")]),t("p",[e._v("Fix: 1.Fix mini map error.")]),t("h2",[e._v("0.5.5")]),t("p",[e._v("New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. 2.Support the configuration of z-index for node text editing boxes and node comment floating layer elements. 3.Support clicking on areas outside the canvas to end node editing status.")]),t("h2",[e._v("0.5.4")]),t("p",[e._v("New: 1.Add new themes. 2.Added timeline and fishbone structure.")]),t("p",[e._v("Fix: 1.Fix the conflict issue between node right-click and canvas right-click. 2.Fix the bug that the line segment is not hidden when dragging nodes such as organizational chart and directory organization chart.")]),t("p",[e._v("optimization: 1.Optimize the layout of organizational chart. 2.Optimize the layout of the directory organization chart.")]),t("h2",[e._v("0.5.4-fix.1")]),t("p",[e._v("optimization: 1.Optimize fishbone layout.")]),t("h2",[e._v("0.5.3")]),t("p",[e._v("Fix: 1.Fixed the issue of setting the text style when multiple nodes were selected in rich text mode, which would change the text of all selected nodes to the text of the last selected node.")]),t("p",[e._v("New: 1.Support setting the position of the initial central node.")]),t("h3",[e._v("0.5.3-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where setting the position of the initial central node does not take effect.")]),t("h3",[e._v("0.5.3-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of not displaying images in nodes when exporting as images.")]),t("h2",[e._v("0.5.2")]),t("p",[e._v("Fix: 1.Remove "),t("code",[e._v("uid")]),e._v(" from exported "),t("code",[e._v("JSON")]),e._v(" data; 2.Clear the node cache pool when re rendering.")]),t("h2",[e._v("0.5.1")]),t("p",[e._v("optimization: 1.Only respond to shortcut key events when the mouse is inside the canvas")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect node position during fast operation")]),t("h2",[e._v("0.5.0")]),t("p",[e._v("This version is mainly about code level changes and optimization, with the core goal of improving rendering performance and reducing stuck issues.")]),t("p",[e._v("New: 1.Support custom expansion and collapse node icons and colors;")]),t("p",[e._v("optimization: 1.Optimize rendering logic, set the theme, move forward and backward, and other operations no longer require full rendering;")]),t("pre",[t("code",[e._v(" 2.Optimize node drag logic, and fix the problem of being unable to drag between two nodes;\n\n 3.Collapse all nodes adds logic to return to the center point;\n\n 4.Fix the problem of nodes flying and scrambling caused by triggering rendering multiple times in a short time;\n\n 5.Optimize the experience of node editing;\n")])]),t("p",[e._v("Fix: 1.Fix the issue where the setData method does not trigger history;")]),t("p",[e._v("modify: Starting from version 0.5.0, considering performance issues, the node activation state can only modify shape related styles:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("[\n "),t("span",{staticClass:"hljs-string"},[e._v("'fillColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderWidth'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderDasharray'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderRadius'")]),e._v("\n]\n")])]),t("h2",[e._v("0.4.7")]),t("p",[e._v("optimization: 1.During rich text editing, when initially focusing, all are no longer selected by default; 2.When editing rich text, use the node fill color as the background color to avoid being invisible when the node color is white. 3.Node activation state switching no longer triggers history. 4.Triggering history multiple times in a short time will only add the last data. 5.Optimize the addition of historical records. When there is a rollback, delete the historical data after the current pointer when adding a new record again.")]),t("p",[e._v("New: 1.Support for importing and exporting Markdown format files. 2.Support for configuring initial text when inserting nodes. 3.Expand the commands for inserting and deleting nodes to support specifying nodes.")]),t("h2",[e._v("0.4.6")]),t("p",[e._v("New: 1.Associated lines support adjusting control points.")]),t("p",[e._v("optimization: 1.When adding historical data, filter data that has not changed compared to the previous time.")]),t("p",[e._v("Fix: 1.Fixed a conflict between the direction keys and the navigation function of the direction keys during node editing. 2.Fixed the issue of node id loss when dragging a mobile node, which can cause associated lines to be lost.")]),t("h2",[e._v("0.4.5")]),t("p",[e._v("New: 1.Supports associative lines. 2.You can also drag the canvas by holding down the root node. 3. Hold down the ctrl key to adjust multiple selected nodes.")]),t("h2",[e._v("0.4.4")]),t("p",[e._v("New: Support horizontal scrolling in response to the mouse.")]),t("h2",[e._v("0.4.3")]),t("p",[e._v("Fix: No trigger after forward and backward "),t("code",[e._v("data_ Change")]),e._v(" event.")]),t("p",[e._v("New: Support user-defined mouse wheel events; The mouse wheel is adjusted to support zooming and moving the view up and down.")]),t("h2",[e._v("0.4.2")]),t("p",[e._v("New: The "),t("code",[e._v("setText")]),e._v(" method of the Node class adds a second parameter to support setting rich text content.")]),t("h2",[e._v("0.4.1")]),t("p",[e._v("New: 1.Add and throw node mouseenter and mouseleave events; 2.Node rich text supports setting background color; 3.Node rich text supports clear style.")]),t("p",[e._v("Fix: 1.Mac system touchpad scaling is the opposite problem; 2.When the device window.devicePixelRatio is not 1, the size of the rich text node in the exported image will become larger when there are rich text nodes.")]),t("h2",[e._v("0.4.0")]),t("p",[e._v("New: The node supports rich text editing.")]),t("h2",[e._v("0.3.4")]),t("p",[e._v("New: Automatic line wrapping function is added to node text.")]),t("p",[e._v("Fix: 1.Fix the problem of deletion exceptions if there are root nodes in the batch deleted nodes. 2.Fix the problem that high node height will overlap with other nodes in the case of bottom edge style.")]),t("h2",[e._v("0.3.3")]),t("p",[e._v("Fix: The root node text cannot wrap.")]),t("h2",[e._v("0.3.2")]),t("p",[e._v("Fix: 1.Fix the problem that the node style is not updated when the secondary node is dragged to other nodes or other nodes are dragged to the secondary node; 2.Fix the problem that when the actual content of the mind map is larger than the screen width and height, the excess part is not watermarked when exporting.")]),t("h2",[e._v("0.3.1")]),t("p",[e._v("Fix: 1.The problem that deleting the background image does not take effect; 2.The problem that the connector runs above the root node when the node is dragged to the root node.")]),t("p",[e._v("New: Add position and size settings for background image display. This setting is also supported for exported pictures.")]),t("h2",[e._v("0.3.0")]),t("p",[e._v("Upgrade to plugin architecture, pull out some non-core functions as plugins, register as needed, and reduce the overall volume.")]),t("h2",[e._v("0.2.24")]),t("p",[e._v("New: Node free drag is changed to configurable, the default is "),t("code",[e._v("false")]),e._v(", not open; Support add watermark.")]),t("h2",[e._v("0.2.23")]),t("p",[e._v("New: Support register new theme.")]),t("h2",[e._v("0.2.22")]),t("p",[e._v("optimization:The theme and structure pictures of the built-in "),t("code",[e._v("simple-mind-map")]),e._v(" package are removed and replaced by user self-maintenance. The original pictures can be found in the "),t("code",[e._v("web/assets/img/")]),e._v(" directory.")]),t("h2",[e._v("0.2.21")]),t("p",[e._v("New: Support node horizontal line style.")]),t("h2",[e._v("0.2.20")]),t("p",[e._v("fix:When the distance from the canvas to the upper left corner of the window is not 0, the node dragging will have an offset problem.")]),t("h2",[e._v("0.2.19")]),t("p",[e._v("fix:When the node is not activated, pressing any key will trigger the problem of automatic focus.")]),t("h2",[e._v("0.2.18")]),t("p",[e._v("optimization:Keyboard navigation algorithm for finding focus, supporting simple algorithm, region algorithm and shadow algorithm.")]),t("h2",[e._v("0.2.17")]),t("p",[e._v("New:Keyboard navigation, that is, switch the active nodes through the direction keys; The node text content can be edited directly in the outline.")]),t("h2",[e._v("0.2.16")]),t("p",[e._v("optimization:Mini map; drag performance.")]),t("h2",[e._v("0.2.15")]),t("p",[e._v("optimization:Local file editing.")]),t("p",[e._v("New:Double-click the image in the node to preview the large image.")]),t("h2",[e._v("0.2.14")]),t("p",[e._v("optimization:Automatically expand when inserting child nodes.")]),t("p",[e._v("fix:The error occurred when the mini map was closed.")]),t("h2",[e._v("0.2.13")]),t("p",[e._v("fix:The child node is missing when collapsing state replication.")]),t("h2",[e._v("0.2.11")]),t("p",[e._v("fix:Fix the problem that is lost when the child node collapses state replication.")]),t("p",[e._v("New:Support mini map.")]),t("h2",[e._v("0.2.10")]),t("p",[e._v("optimization:Focus immediately when you manually create a node.")]),t("p",[e._v("fix:Connection style depth update problem.")]),t("p",[e._v("New:Logical structure diagram and mind map add linear connection style and direct connection style.")]),t("h2",[e._v("0.2.9")]),t("p",[e._v("New:Support the creation, opening and saving of local files on the computer.")]),t("h2",[e._v("0.2.8")]),t("p",[e._v("fix:Xmind8 version file import failed.")]),t("p",[e._v("New:Expanding to the specified level is supported.")]),t("h2",[e._v("0.2.7")]),t("p",[e._v("fix:The root node adds multiple nodes to burst the stack.")]),t("p",[e._v("New:Support import .xmind file.")]),t("h2",[e._v("0.2.6")]),t("p",[e._v("New:The title tag is added when exporting svg.")]),t("h2",[e._v("0.2.5")]),t("p",[e._v("fix:Bugs caused by node expansion and collapse.")]),t("p",[e._v("New:Node supports custom line styles.")]),t("h2",[e._v("0.2.4")]),t("p",[e._v("New:Nodes support multiple shapes.")]),t("h2",[e._v("0.2.3")]),t("p",[e._v("fix:Shortcut key conflicts when editing node text; Right-click menu shortcut prompt error; Right-click menu shortcut prompt.")]),t("h2",[e._v("0.2.2")]),t("p",[e._v("fix:The input string '/' conflicts with the shortcut key '/'.")]),t("h2",[e._v("0.2.1")]),t("p",[e._v("New:Support export as pdf.")]),t("h2",[e._v("0.2.0")]),t("p",[e._v("New:Classic4 theme;Support adding summary; Support free drag; Move Node Up, Move Node Down, Copy Node, Cut Node, Paste Node, One-click Organize Cloth Shortcut; Library packaging; Ctrl+left click to select multiple.")]),t("h2",[e._v("0.1.18")]),t("p",[e._v("fix:The problem that the node icon cannot be deleted; The tool button is grayed out and can still be clicked.")]),t("h2",[e._v("0.1.17")]),t("p",[e._v("New:Add read-only mode.")]),t("h2",[e._v("0.1.16")]),t("p",[e._v("New:Node notes support markdown and rich text.")]),t("p",[e._v("fix:Can't select text; Node annotations cannot hide problems after node activation; When editing text such as hyperlinks, notes, labels, etc., the return key and return key conflict with the shortcut key of mind map.")]),t("h2",[e._v("0.1.15")]),t("p",[e._v("New:The status data supports saving the active status and view status (drag position, zoom value);Support node drag.")]),t("h2",[e._v("0.1.14")]),t("p",[e._v("fix:There are problems with setting topics when activating nodes.")]),t("h2",[e._v("0.1.13")]),t("p",[e._v("New:Shortcut key function; Support export as json。")]),t("p",[e._v("optimization:Some details.")]),t("h2",[e._v("0.1.12")]),t("p",[e._v("New:Local storage;Right-click menu function, etc.")]),t("h2",[e._v("0.1.0")]),t("p",[e._v("Complete basic functions.")])])}],s={},a=s,r=i("2877"),d=Object(r["a"])(a,o,n,!1,null,null,null);t["default"]=d.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d208ffa"],{a6d3:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Changelog")]),t("h2",[e._v("0.9.7")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the style is not updated when dragging nodes below level 2 to the root node to become level 2 nodes; Fix the issue where the style is not updated when moving nodes with the command to move up one level;")]),t("p",[e._v("2.Fix the issue of losing focus when activating summary nodes and then setting text styles for them;")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add two commands to remove custom styles from nodes;")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add a right-click menu button to remove custom styles from nodes.")])]),t("h2",[e._v("0.9.6")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the style of the collapsed nodes remains unchanged when switching themes;")]),t("p",[e._v("2.Fix the issue of losing the new text style when switching themes for text wrapping;")]),t("p",[e._v("3.Fix the issue where the style of the newline text remains unchanged when switching themes;")]),t("p",[e._v("4.Fixed the issue of adding mathematical formulas to nodes and not changing the text style when switching themes;")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add new fields to the theme, used to set the display position, head or tail, of node line arrows;")]),t("p",[e._v("2.New field added to the theme, used to set the starting position of the root node line when connecting curves;")]),t("p",[e._v("3.Mac dual finger touch event moves the canvas to increase sensitivity slightly;")]),t("p",[e._v("4.Add MOVE_ UP_ ONE_ The LEVEL command is used to move a node up one level;")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The outline supports pressing Shift+Tab to move nodes up one level;")]),t("p",[e._v("2.Support setting the position of node arrow display;")]),t("p",[e._v("3.Support setting the starting position of root node connections;")]),t("p",[e._v("4.Add two new themes;")]),t("p",[e._v("5.Fix the issue of text wrapping not taking effect in the outline and displaying the br tag;")])]),t("h2",[e._v("0.9.5")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of missing inter zone summaries when expanding and folding nodes.")]),t("p",[e._v("2.Fix the issue where the position of the newly created associated line is always on the right side of the node without changing according to its relative position.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add configuration for the initial positions of the two endpoints when creating associated lines.")]),t("p",[e._v("2.Add a configuration that prohibits adjusting the endpoint position of associated lines.")]),t("p",[e._v("3.Add a hand drawn style plugin.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Optimize interface adaptation on mobile devices.")]),t("p",[e._v("2.Supports enabling hand drawn styles.")])]),t("h2",[e._v("0.9.4")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of inconsistent text wrapping caused by inconsistent text area width during node display and editing in some cases.")]),t("p",[e._v("2.Fixed the issue where gradients were not applied to the edit box during rich text editing for nodes with gradient backgrounds.")]),t("p",[e._v("3.Fix the issue of text style loss after switching themes for nodes defined in bold by the theme.")]),t("p",[e._v("4.Fix the issue on Mac where the useLeftKeySelectionRightKeyDrag option is set to true and cannot hold down the Ctrl key to select multiple nodes.")]),t("p",[e._v("5.Fix the issue where text styles are lost after clearing styles during node rich text editing, and switching themes does not restore them.")]),t("p",[e._v("6.Fix data issue when deleting nodes with child nodes_ Change_ The issue of error reporting in detail events.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add the lineRadius property to the theme configuration to set the size of the rounded corners when connecting straight lines.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Remove the display of formulas from the outline.")]),t("p",[e._v("2.Some configurations in the basic style that only support partial structures are displayed and hidden based on the current structure.")]),t("p",[e._v("3.Add configuration for connecting rounded corners.")]),t("p",[e._v("4.Automatically hide the sidebar when importing files.")])]),t("h2",[e._v("0.9.3")]),t("p",[e._v("Fix")]),t("blockquote",[t("p",[e._v("1.Fix the issue of text misalignment when nodes have icons in Safari browser.")]),t("p",[e._v("2.Fix the issue of formula rendering in browsers with lower versions of Chrome kernel.")]),t("p",[e._v("3.Fix the issue of new MouseEvent code execution errors when used in micro front-end framework applications.")]),t("p",[e._v("4.Fix the issue of missing arrows on node connections, arrows on associated lines, and gradient backgrounds when exporting images.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Export PDF from jspdf library to pdf-lib library.")]),t("p",[e._v("2.If the second parameter of the set node text command (SETNODE-TEXT) is not passed, the previous value will be used.")]),t("p",[e._v("3.There is an issue of incorrect width and height of exported images in Firefox browser when optimizing nodes with hyperlinks and comments.")]),t("p",[e._v("4.In node text editing, if the pasted data is in SMM format, the pure text of the first node will be taken out for pasting.")]),t("p",[e._v("5.Add interception operations for pasting when editing nodes without rich text.")]),t("p",[e._v("6.Add a detailed event (data_change_detail) for updating node data, which can retrieve newly created, updated, or deleted node data.")]),t("p",[e._v("7.Theme configuration supports setting node gradient background color.")])]),t("p",[e._v("Demo:")]),t("p",[e._v("1.Support setting the background of node gradients.")]),t("h2",[e._v("0.9.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of no line breaks when node text contains consecutive numbers or letters.")]),t("p",[e._v("2.Fix the issue of duplicate node drawing when importing files with the same UID as existing nodes on the current canvas.")]),t("p",[e._v("3.Fix the issue of duplicate rendering of nodes caused by forward and backward when the number of nodes exceeds the maximum number of cache pools.")]),t("p",[e._v("4.Fix the issue of the canvas moving in the opposite direction when scrolling horizontally with the mouse or touchpad.")]),t("p",[e._v("5.Fix the issue where the mouse in flag is not reset when a node is destroyed.")]),t("p",[e._v("6.Fix the issue of incorrect position calculation in the scrollbar plugin when the 'initRootNodePosition' configuration is not set to the default '[center, center]'.")]),t("p",[e._v("7.Fix the issue where dragging the canvas cannot stop when the mouse is released on the node.")]),t("p",[e._v("8.Fix the issue of errors in the position calculated by the view. fit method when the canvas container is not 0 from the top left corner of the browser window.")]),t("p",[e._v("9.Fix the issue where the watermark in the exported image does not fully cover the entire image when there are a large number of nodes.")]),t("p",[e._v("10.Fix the issue of inserting formula errors.")]),t("p",[e._v("11.Fix the issue of losing the selected text status when the mouse moves out of the editing box while selecting text in the node text editing state.")]),t("p",[e._v("12.When repairing node rich text editing, Fix the issue 'rich_text_selection_change' event is not triggered when the text selection range is 'null'.")]),t("p",[e._v("13.Fix the issue of no 'node' instance in the 'node_dragging' event callback.")]),t("p",[e._v("14.Fix the issue of too many nodes and the canvas size being too large to export PNG.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Modify the mousewheel event, change the dir flag to dirs, support storing multiple directions, and optimize the dual finger movement operation of the touchpad.")]),t("p",[e._v("2.The TextEdit class adds the isShowTextEdit method to determine whether the current node is in an editing state.")]),t("p",[e._v("3.Change the paste method of the render class to support pasting clipboard data.")]),t("p",[e._v("4.Add a configuration option to restrict mind map graphics within the canvas.")]),t("p",[e._v("5.When registering the scrollbar plugin, it supports configuring whether to restrict the mind map within the canvas.")]),t("p",[e._v("6.Folding all nodes will move the mind map root node to the center of the canvas.")]),t("p",[e._v("7.Support the configuration option of displaying watermarks only during export.")]),t("p",[e._v("8.When pasting images from the clipboard at a node, custom processing functions are supported to upload the images to your server.")]),t("p",[e._v("9.Refactoring the export logic of the PDF, the exported PDF size is no longer a fixed A4, but the size of the mind map, while deleting the configuration for pagination export.")]),t("p",[e._v("10.Node connections support displaying arrows as a field for the theme.")]),t("p",[e._v("11.The maximum number of historical records is adjusted to 500 by default.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Support configuration to display watermarks only during export.")]),t("p",[e._v("2.Basic style configuration line supports displaying arrows.")])]),t("h2",[e._v("0.9.1-fix.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where some browsers display default text when node text is empty.")]),t("p",[e._v("2.Fix the issue of text style loss when inputting text again when the node text content is empty.")]),t("p",[e._v("3.Fix the issue where exporting images also fails when node image loading fails.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Support configuring the default image displayed when node image loading fails.")])]),t("h2",[e._v("0.9.1-fix.1")]),t("p",[e._v("Fix:")]),t("p",[e._v("1.Fix the issue of custom node methods reporting null errors.")]),t("p",[e._v("2.Fix the issue of large volume of exported PDF files.")]),t("h2",[e._v("0.9.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of exporting images, SVGs, and PDFs with errors when customizing node content.")]),t("p",[e._v("2.Optimize the distribution of node activation events, do not distribute events when the activation node has not changed, and skip intermediate events when distributing multiple events in a short period of time.")]),t("p",[e._v("3.Fix the issue where the edit box and node detach when scrolling the canvas with the mouse while the node is in editing mode.")]),t("p",[e._v("4.Fix the issue of shortcut keys becoming invalid when zooming the canvas with the mouse wheel and then exiting node editing while in node editing mode.")]),t("p",[e._v("5.Fix the issue where clicking on a node can also trigger node_dragend event.")]),t("p",[e._v("6.Fix that clicking on the canvas and nodes while not in the format brush will also trigger the painter_end event.")]),t("p",[e._v("7.Fixed the issue where the mind map text editing box was not destroyed during node text editing and associated line text editing.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.When holding down the Ctrl key, disable the node double-click event.")]),t("p",[e._v("2.Support configuring the behavior when creating new nodes: focusing and entering editing, not focusing, only focusing.")]),t("p",[e._v("3.When searching in read-only mode, add a highlight effect to the currently matched node.")]),t("p",[e._v("4.The default behavior of the mouse scroll wheel is to move the canvas up and down; The default is to scroll forward to enlarge the canvas and zoom back.")]),t("p",[e._v("5.When the mouse scroll wheel behavior is to move the canvas up and down, it supports holding down the Ctrl key to zoom in and out of the canvas.")])]),t("p",[e._v("Demo:支持配置创建新节点时的行为。")]),t("h2",[e._v("0.9.0")]),t("p",[e._v("New:")]),t("p",[e._v("1.Support adding summaries to some child nodes of the same node.")]),t("p",[e._v("2.Moving the mouse into the summary will highlight its node.")]),t("p",[e._v("3.Importing and exporting xmind files supports processing profiles.")]),t("h2",[e._v("0.8.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the activation status of the summary node in the history data has not been deleted, which can cause data to be triggered when clicking on the summary node_ Change event.")]),t("p",[e._v("2.Fix the issue of blank pages and exceptions thrown by the console when running in Safari browser.")]),t("p",[e._v("3.Fixed the issue of icon floating layer and note floating layer detached from nodes when scaling the canvas.")]),t("p",[e._v("4.Fixed the issue of selecting all nodes in read-only mode.")]),t("p",[e._v("5.Fix the presence of node content has   in rich text mode; Error exporting as image.")]),t("p",[e._v("6.Fixed the issue of overlapping profiles when adding profiles to oneself first and then to subordinates; Fix the issue of overlapping profiles when adding profiles to nodes with hierarchical relationships at the same time.")]),t("p",[e._v("7.Fix the issue of exporting PDF errors when there are many nodes.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option that prohibits dragging the canvas.")]),t("p",[e._v("2.Add a configuration option to prohibit double finger scaling of the canvas.")]),t("p",[e._v("3.Add compression parameters to the method of exporting PNG; Optimize the problem of excessive volume when exporting PDF from nodes with large amounts of data.")]),t("p",[e._v("4.Rename the isParent method of the node instance to isAncestor and add the isParent method at the same time.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of being able to search for replacement and edit outlines in read-only mode.")]),t("p",[e._v("2.Fix the issue where the outline cannot be displayed and edited when the node content is an HTML tag.")]),t("p",[e._v("3.Fix the issue where when multiple nodes are selected and icons are added at the same time, all node icons will be unified as the icon of the first node.")]),t("p",[e._v("4.Adding loading to the export operation.")])]),t("h2",[e._v("0.8.0-fix.1")]),t("p",[e._v("Fix: Fixed the issue of creating a new node using direct paste if the pasted content contains HTML label symbols such as <> and the newly created node content is empty.")]),t("h2",[e._v("0.8.0")]),t("p",[e._v("Breaking change: Greatly optimize some of the code and slightly improve performance, mainly by using the 'render' class to remove useless logic, adjust unreasonable implementations, and extract duplicate code; Modify function names, functions, etc.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the arrow of the associated line disappearing when exporting images and SVGs.")]),t("p",[e._v("2.Fix the issue of abnormal operation returning to the root node after resizing the container.")]),t("p",[e._v("3.Fix that the shortcut key operations for inserting summary, moving up, down, and organizing layout with one click did not trigger data_ The issue with the change event.")]),t("p",[e._v("4.Fix the issue of each node displaying a border when exporting images, SVGs, and PDFs with watermarks.")]),t("p",[e._v("5.Fixed the issue of no watermarks and no redrawing after the container size was changed.")]),t("p",[e._v("6.Fix the issue of slow rendering of mini maps with watermarks.")]),t("p",[e._v("7.Fixed the issue where the collaboration plugin did not display the creator's avatar when creating a new node.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Optimize the canvas DOM structure and render nodes, lines, and associated lines in layers.")]),t("p",[e._v("2.Optimize the watermark plugin.")]),t("p",[e._v("3.The setTheme, setThemeConfig, and setLayout functions add parameters that do not trigger re rendering.")]),t("p",[e._v("4.Add a command to insert a parent node.")]),t("p",[e._v("5.Add a command to only delete the current node.")]),t("p",[e._v("6.Automatically expand child nodes when inserting a summary.")]),t("p",[e._v("7.Clear the current active node when right-clicking on the canvas.")]),t("p",[e._v("8.The folded active nodes are synchronously deleted from the list of active nodes.")]),t("p",[e._v("9.Pasting text with line breaks supports controlling whether nodes are split by line breaks.")]),t("p",[e._v("10.The mini map plugin supports returning mini maps of image types.")]),t("p",[e._v("11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Modify the method and copy to return to the root node.")]),t("p",[e._v("2.Fix the issue of ineffective first switching when switching themes in overlay mode.")]),t("p",[e._v("3.The right-click menu adds the function of inserting parent nodes and deleting only the current node.")]),t("p",[e._v("4.The top toolbar supports automatic folding into more according to the window width.")]),t("p",[e._v("5.Support manual input of zoom factor.")]),t("p",[e._v("6.Improve the English translation of the interface.")]),t("p",[e._v("7.Change the mini map to render through images.")])]),t("h2",[e._v("0.7.3-fix.2")]),t("p",[e._v("Fix some issues with collaborative editing:")]),t("p",[e._v("1.The position of the new node is incorrect when inserting peer nodes;")]),t("p",[e._v("2.Moving a position within a peer node did not trigger an update;")]),t("p",[e._v("3.The position of the mobile node inserted as a sibling node is incorrect;")]),t("h2",[e._v("0.7.3-fix.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed some issues where the box selection area did not disappear when multiple nodes were selected.")]),t("p",[e._v("2.Fixed an issue where the box selection area does not disappear when releasing the mouse over multiple selected nodes.")]),t("p",[e._v("3.Fixed rendering anomalies caused by duplicate node uids when pasting nodes multiple times.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add protocol selection function to the hyperlink input box.")])]),t("h2",[e._v("0.7.3")]),t("p",[e._v("New: 1.Add a Cooperate editing plugin.")]),t("p",[e._v("Demo: 1.Fix the automatic closing of the sidebar caused by the formula sidebar component.")]),t("h2",[e._v("0.7.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of nodes not being selected when the selection area does not include node boundaries when multiple nodes are selected.")]),t("p",[e._v("2.Fix the issue of errors when node text is not a string.")]),t("p",[e._v("3.Fix the issue of some text disappearing when edited again when there are<>&characters in the text in non rich text mode.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Supports inserting mathematical formulas.")]),t("p",[e._v("2.Supports dragging and moving multiple nodes simultaneously.")]),t("p",[e._v("3.Supports copying and cutting multiple nodes simultaneously.")]),t("p",[e._v("4.The node label color has been changed to be generated based on the label content, meaning that the same label content will generate the same color.")]),t("p",[e._v("5.Optimize the insertion of child nodes: 1. When inserting child nodes into multiple nodes simultaneously, do not enter the editing state; 2. The newly inserted child node automatically enters the active state.")]),t("p",[e._v("6.Optimize the insertion of sibling nodes: 1. Support the simultaneous insertion of sibling nodes into multiple nodes; 2. When calling the command to insert sibling nodes on the root node, no child nodes will be created.")]),t("p",[e._v("7.Add a command to simultaneously insert multiple peers and multiple child nodes.")]),t("p",[e._v("8.Changing the unique identifier of nodes from id to uid mainly affects the associated lines, which may not display properly in previous versions.")]),t("p",[e._v("9.Optimize the logic of icon merging and support the expansion of icons under the internal classification of the library.")]),t("p",[e._v("10.Associate line: 1. Double click the associate line to enter associate line text editing mode; If the associated line text is the default text, it will not be saved; 3. When there are active nodes, clicking on the associated line can directly activate the associated line.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed an issue where multiple nodes in the Zhixi mind map cannot be pasted when copying.")]),t("p",[e._v("2.Add a sidebar for formula editing.")])]),t("h2",[e._v("0.7.1-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of plugin registration method chain call reporting errors.")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option to adapt to the canvas size when the mind map is first loaded.")]),t("p",[e._v("2.Add a command to automatically generate dts declaration files.")])]),t("h2",[e._v("0.7.1-fix.1")]),t("p",[e._v("Fix: Fixed the issue of dragging nodes without excluding the child nodes of the dragged nodes.")]),t("h2",[e._v("0.7.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of unsaved associated line endpoints after changes.")]),t("p",[e._v("2.Fix the issue of abnormal canvas scrolling when moving the mouse to the edge of multiple selected nodes when the distance from the top left corner of the canvas to the browser window is not 0.")]),t("p",[e._v("3.Fix the issue of importing xmind file errors for nodes with empty titles.")]),t("p",[e._v("4.Fix the issue where the exported xmind file prompts for corruption when opened on the latest version of xmind software.")]),t("p",[e._v("5.Fix the issue where stickers cannot be displayed when exporting data with stickers in xmind format.")]),t("p",[e._v("6.Fix the issue of node right-click event reporting errors when the select plugin is not registered.")]),t("p",[e._v("7.There is no issue with removing duplicates in the method of registering plugins.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Reconstruct node drag and drop logic: optimize drag and drop difficulties in some situations, adapt to various structures, and automatically move the canvas when the mouse moves to the edge of the canvas during drag and drop.")]),t("p",[e._v("2.Reconstruct the scrollbar plugin to optimize the user experience.")]),t("p",[e._v("3.Imperfect resolution of conflicts between logical structure diagrams, mind maps, directory organization diagrams, organization chart summaries, and nodes (the summaries should be rewritten or deleted later).")]),t("p",[e._v("4.Activate adjacent nodes after deleting them.")]),t("p",[e._v("5.In node data_ The starting field is considered a custom field.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The page will display the current core library version number.")])]),t("h2",[e._v("0.7.0")]),t("p",[e._v("Breaking change: Removed the section of node activation style in the theme file, Setting the activation style of nodes is no longer supported, and the activation effect has been changed to a unified node outer border style, while also supporting the mouse hover effect.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix rendering anomalies when the node border size is relatively large.")]),t("p",[e._v("2.Fixed an issue where the node style of the associated line will not be updated when switching themes.")]),t("p",[e._v("3.Fix that selecting all did not trigger node_ The issue with active events.")])]),t("p",[e._v("新增:")]),t("blockquote",[t("p",[e._v("1.When folding nodes, displays the number of collapsed nodes.")]),t("p",[e._v("2.Support the position of the endpoint of the associated line to follow mouse drag changes.")]),t("p",[e._v("3.Add a scrollbar plugin.")]),t("p",[e._v("4.Support opening specified online files through fileURL query parameters in URLs.")]),t("p",[e._v("5.The fishbone diagram supports setting node margins.")]),t("p",[e._v("6.By default, double-click to reset the canvas.")]),t("p",[e._v("7.Modify the parameters of the export image method, and when exporting PDF, if the size of the mind map is smaller than A4 paper, do not rotate the direction.")]),t("p",[e._v("8.Improve the clarity of exported images and PDFs on high-definition screens.")]),t("p",[e._v("9.Add a pre destruction lifecycle function to the plugin to address the issue of some side effects that were not cleared during the destruction of the mind map.")]),t("p",[e._v("10.Optimize the settings of the basic style and do not trigger full rendering when modifying theme attributes that do not affect size.")]),t("p",[e._v("11.Prohibit triggering node right-click menu events when multiple node selections are completed, to avoid triggering the right-click menu display.")]),t("p",[e._v("12.Optimize the Select plugin so that if multiple selected nodes do not change, the activation event is not triggered.")]),t("p",[e._v("13.The activation node list thrown by event node_active no longer directly references the internal activation list.")]),t("p",[e._v("14.Optimize the logic of mouse button down node events, and support dragging the canvas by holding down the root node with the right mouse button in the right-click drag and drop canvas mode.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Do not directly reference the internal activation node list to optimize performance.")]),t("p",[e._v("2.Support configuring whether to display scrollbars.")]),t("p",[e._v("3.Delete the active node configuration in the sidebar node style configuration section.")])]),t("h2",[e._v("0.6.17")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of error reporting in the xmind file exported from Baidu Brain Map.")]),t("p",[e._v("2.Fix the mindMap. export method code error.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Create index.d.ts file。")]),t("p",[e._v("2.Support configuration to enable double click reset mind map.")]),t("p",[e._v("3.Intercept paste operations during rich text editing, remove formatting, and only allow pasting pure text.")])]),t("h2",[e._v("0.6.16")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Optimize the logic of rich text measurement elements, remove duplicate settings for styles, and add duplicate nodes")]),t("p",[e._v("2.Optimize the export image logic, and when traversing the node to convert the URL of the image, if it is already in the form of data: URL, do not handle it repeatedly.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove the second parameter of the exported SVG method and configure it through instantiation instead.")]),t("p",[e._v("2.Export images without using external libraries.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed a bug where siblings can be added to the root node when editing the outline separately.")])]),t("h2",[e._v("0.6.15-fix.2")]),t("p",[e._v("Fix: Fixed an issue where rich text nodes cannot be displayed in Firefox browser.")]),t("h2",[e._v("0.6.15-fix.1")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Export PDF supports pagination export based on image size.")]),t("p",[e._v("2.Exporting PDF supports automatic direction adjustment based on aspect ratio.")]),t("p",[e._v("3.Optimize the placeholder elements of the expand and collapse buttons: 1. Nodes without child nodes do not render this element; 2. Dynamically update the element based on the existence of child nodes.")]),t("p",[e._v("4.Add a configuration that prohibits mouse wheel scaling.")]),t("p",[e._v("5.Supports passing error handling functions.")])]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of displaying exceptions when node text is empty.")]),t("p",[e._v("2.Change the paddingX and paddingY of exported SVG graphics to single sided padding.")]),t("p",[e._v("3.Fixed an issue where the mouse is not centered when zooming when the canvas is not 0 from the top left corner of the browser window.")]),t("p",[e._v("4.Fix the issue of overlapping node borders.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The bottom right corner supports jumping to related links.")]),t("p",[e._v("2.Adjust the position of the mini map to solve the problem of being blocked by side buttons.")]),t("p",[e._v("3.Fix the issue where the prompt in the upper right corner of the open local file cannot be closed.")]),t("p",[e._v("4.Editing the outline separately is no longer linked to the canvas, optimizing the editing experience under large data volume.")]),t("p",[e._v("5.The sidebar involves graphical options to increase visualization effects.")])]),t("h2",[e._v("0.6.14")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove and create hidden input boxes, and copy and paste them through navigator. clipboard; Support cross browser pasting of mind map node data; Support custom processing of text data in the clipboard.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of enabling input to automatically enter text editing mode and conflicting with other input boxes.")]),t("p",[e._v("2.Fix the issue of not being able to delete node images in the node image pop-up window.")]),t("p",[e._v("3.Fixed an issue where the text decoration line style of nodes cannot be removed in the node style sidebar.")]),t("p",[e._v("4.The color selector supports selecting transparent colors.")]),t("p",[e._v("5.Fix the issue of importing mind map data without updating the sidebar data when the basic style sidebar is open.")]),t("p",[e._v("6.Fixed the issue of not focusing when modifying the text of one node in the outline and then clicking on other nodes.")]),t("p",[e._v("7.Fixed an issue where the node and word count statistics in the bottom left corner were not updated after exiting Zen mode.")]),t("p",[e._v("8.Support deleting hyperlinks and notes of nodes from the right-click menu.")]),t("p",[e._v("9.Support pasting node data of Zhixi Mind Map.")])]),t("h2",[e._v("0.6.13")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the inability to drag the canvas while holding down the middle mouse button on a node in read-only mode.")]),t("p",[e._v("2.Fixed the issue of probabilistic error reporting after quickly dragging nodes several times.")]),t("p",[e._v("3.Fix the issue of pulling up the input method during operations such as activating nodes on the mobile end, expanding and collapsing.")]),t("p",[e._v("4.Fix the issue where an exception request is initiated when the background image in the theme configuration is none.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Mobile gesture scaling optimization: Scale according to a linear relationship, and adjust the canvas position with double finger displacement.")]),t("p",[e._v("2.Remove the logic of asynchronous rendering nodes and improve the speed of creating new nodes.")]),t("p",[e._v("3.The export of images has been changed from the html2canvas library to the dom to image more library to address the issue of missing text styles in exporting rich text nodes.")]),t("p",[e._v("4.When a non rich text input box enters the editing state, it is deselected by default.")]),t("p",[e._v("5.When there is an activation node, it supports automatically entering text editing mode when pressing the Chinese, numeric, or English buttons.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add anti shake operations when saving view data to optimize performance.")]),t("p",[e._v("2.Some time-consuming operations add loading effects.")]),t("p",[e._v("3.Improve the dark mode of right-click menus and rich text toolbars.")])]),t("h2",[e._v("0.6.12")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the indicator in the mini map will also move out of the mini map area when the mind map is completely moved out of the visible area.")]),t("p",[e._v("2.Fix the issue of overly sensitive dual finger scaling on the mobile end.")]),t("p",[e._v("3.Fix the issue of holding down nodes while dragging the canvas in read-only mode.")]),t("p",[e._v("4.Fix the issue of incorrect rendering of the mini map when the distance between the mind map and the top left corner of the browser window is not 0.")]),t("p",[e._v("5.Fix the issue of the prompt block being too large for the new location when moving nodes.")]),t("p",[e._v("6.Fix the issue where search cannot be replaced with empty characters.")]),t("p",[e._v("7.Fixed the issue of missing line breaks after searching and replacing in rich text mode.")]),t("p",[e._v("8.Fixed the issue of missing focus in the input box when clicking on text editing in the outline.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Adding a callback parameter to the node move end event (node_drag) can obtain the uid of the move to the node.")]),t("p",[e._v("2.Support specifying the location to which internal elements are added through configuration.")]),t("p",[e._v("3.Support the format brush function.")]),t("p",[e._v("4.Under the curve style, the connection line style of the root node supports consistency with other nodes.")]),t("p",[e._v("5.Search supports continuous replacement.")]),t("p",[e._v("6.Add and delete button for node image.")]),t("p",[e._v("7.Support dragging the canvas while holding down the middle mouse button.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Provide an application takeover mode to facilitate docking with one's own storage services; Supports setting static resource paths at runtime.")]),t("p",[e._v("2.Refactoring outline: 1. No longer use the text style that comes with the node; 2. Support full screen editing of the outline; 3. The outline supports dragging and moving nodes; 4. The outline supports deleting nodes.")]),t("p",[e._v("3.Fix the issue of interface dark mode not updating in the scenario of importing data.")])]),t("h2",[e._v("0.6.11-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of invisible editing when node text is white.")]),t("h2",[e._v("0.6.11")]),t("p",[e._v("New: 1.Optimize the mini map, remove node content within the mini map, and optimize performance.")]),t("p",[e._v("Demo: 1.Add a new topic and add tab differentiation to the topic list. 2.Node image upload supports inputting network image addresses. 3.Node image upload supports inputting network images.")]),t("h2",[e._v("0.6.10")]),t("p",[e._v("Fix: 1.Fix the issue of deleting a node after searching for it and not updating the search results when searching again. 2.Fixed an issue where the button for adjusting image size did not update after node operation. 3.Fix the issue of incorrect internal data deep copy location. 4.Fix the issue of ineffective line wrapping in rich text nodes. 5. Fix the issue of node swapping and loss when switching themes and other scenarios.")]),t("p",[e._v("New: 1.Search supports searching for white space characters and replacing them with white space characters.")]),t("p",[e._v("Demo: 1.Support calling up search through icon buttons. 2.Support for switching to dark mode through icon buttons. 3.Optimize search: The mouse is not in the search area and not focused, solving the problem of not being able to delete input text when the mouse is not in the search area. 4.Adjust the interface UI for adding node icons and add a series of node icons. 5.Add a sticker list. 6.Fixed the issue of missing focus in the input box after entering the search box. 7.Support clicking on the icon within the node to display an icon for quick replacement and deletion of the floating panel.")]),t("h2",[e._v("0.6.9-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect replacement after a single search.")]),t("p",[e._v("New: 1.We will no longer directly modify the incoming data object, but will make a deep copy internally.")]),t("h2",[e._v("0.6.9")]),t("p",[e._v("Fix: 1.Fixed an issue where setting styles to summary nodes would cause summary nodes to disappear. 2.Fixed the issue of node content not rendering when creating a root instance again when customizing node content. 3.Fix the issue of losing focus when adding a new node while the node is in editing. 2.Fix the issue of continuously pressing the tab key not being able to continuously create child nodes.")]),t("p",[e._v("New: 1.Replace existing "),t("code",[e._v(" ")]),e._v(" in SVG when exporting Characters to avoid exporting SVG errors. 2.Support for search and replace.")]),t("p",[e._v("Demo: 1.When switching themes, it is supported to choose whether to overwrite the set basic style.")]),t("h2",[e._v("0.6.8")]),t("p",[e._v("Fix: 1.Change the shortcut key for inserting a summary to Ctrl+G to avoid conflicts with the save shortcut key. 2.Fix the issue of abnormal switching between rich text editing configuration input boxes while nodes are being edited.")]),t("p",[e._v("New: 1.Modify the copy, cut, and paste logic, and support pasting data from the clipboard.")]),t("p",[e._v("Demo: 1.Fix the issue of not saving the outer margin of the basic style setting node. 2.Supports automatic switching to dark mode based on the theme.")]),t("h2",[e._v("0.6.7")]),t("p",[e._v("Fix: 1.Fixed the issue of missing placeholder elements for the expand and collapse button after node collapse and expansion. 2.Fixed the issue of being able to scale images in read-only mode.")]),t("p",[e._v("New: 1.Support locating to a node based on node instance or node uid. 2.Modify the creation method of node uids and export data to add node uids.")]),t("p",[e._v("Remove: 1.Remove the node transition effect.")]),t("p",[e._v("Demo: 1.Add website homepage. 2.Fixed the issue of missing node styles when creating new nodes in the outline. 3.Fixed the issue of missing edited text after pressing Enter or Tab after editing nodes in the outline. 4.Optimize the node positioning of the outline, and the collapsed nodes will automatically expand. 5.The sidebar button supports folding. 6.Optimize small screen adaptation.")]),t("h2",[e._v("0.6.6")]),t("p",[e._v("New: 1.Support exporting to Xmind new version files. 2.Importing the new version of Xmind file supports importing images from nodes. 3.Add a vertical timeline structure.")]),t("p",[e._v("Fix: 1.The TouchEvent plugin no longer sends click events, solving the problem of two windows opening when clicking on a hyperlink on the mobile end. 2.Fix the issue of dragging and moving a node to become a child node of another node, where the parent node of that node points to not being updated. 3.Fixed an issue where the node border style was not updated when dragging a second level node into a third level node. 4.Fix the issue where the mouse will not trigger the button display when moving into the unfolded or retracted button position, except for the structure growing to the right.")]),t("p",[e._v("optimization: 1.The issue of excessive amplitude when optimizing the touchpad to scale the canvas. 2.The newly created node defaults to selecting all for easy deletion of default text.")]),t("h2",[e._v("0.6.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of adjusting the image size incorrectly while zooming.")]),t("h2",[e._v("0.6.5")]),t("p",[e._v("Fix: 1.Fix the issue of xmind file import errors. 2.Fixed a rare issue where line breaks occur when the width of the node text is decimal.")]),t("p",[e._v("New: 1.The packaged library supports obtaining built-in constants, themes, and other data. 2.Supports configuring the zoom behavior corresponding to the direction of the mouse wheel. 3.Node images support dragging and resizing.")]),t("h2",[e._v("0.6.4-fix.1")]),t("p",[e._v("New: 1.When zooming with the mouse wheel, the default zoom is centered around the current position of the mouse, which can be turned off by configuring.")]),t("p",[e._v("Fix: 1.Fixed an issue where the default value of the zoom center point was not updated after changing the canvas size.")]),t("h2",[e._v("0.6.4")]),t("p",[e._v("New: 1.The default is to scale at the center point of the canvas. 2.Optimize the scaling of both fingers on the mobile end, with the center position of the two fingers as the center point for scaling.")]),t("h2",[e._v("0.6.3")]),t("p",[e._v("Fix: 1.Fix the issue where the summary node will respond to inserting node shortcuts.")]),t("p",[e._v("New: 1.Support custom node content.")]),t("h2",[e._v("0.6.2")]),t("p",[e._v("Fix: 1.Fixed the problem that the new node does not change with the theme in rich Text mode.")]),t("h2",[e._v("0.6.1")]),t("p",[e._v("Fix: 1.Fixed the issue of high movement sensitivity when using the touchpad when changing mouse scrolling to moving the canvas behavior.")]),t("h2",[e._v("0.6.0-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of destroying mind maps without setting a background style and reporting errors.")]),t("h2",[e._v("0.6.0")]),t("p",[e._v("Breaking change: Adjusted the directory structure of the simple-mind-map source code, Main impact: 1. The introduction path of the plugin needs to be modified. The constant file path needs to be modified.")]),t("p",[e._v("New: 1.Supports one click zoom to fit the canvas function. 2.Press and hold the Ctrl key to activate the multi selection function on demand through configuration. 3.Support setting to left click to select multiple nodes and right click to drag the canvas. 4. Support controlling whether nodes are allowed to be edited. 5.Add a method for destroying mind maps. 6.Added touch event support plugin.")]),t("p",[e._v("Fix: 1.Fix the issue where holding down the Ctrl key to select multiple nodes does not trigger the click event for the node. 2.Fixed the issue of node style loss when clearing a node and then entering text.")]),t("h2",[e._v("0.5.11")]),t("p",[e._v("New: Supports associative text editing.")]),t("p",[e._v("optimization: Optimizing theme configuration updates, changing configurations that do not involve node size does not trigger node recalculation.")]),t("h2",[e._v("0.5.10")]),t("p",[e._v("New: Optimize node reuse logic using LRU caching algorithm.")]),t("h2",[e._v("0.5.10-fix.1")]),t("p",[e._v("Fix: Fix the issue of import errors.")]),t("h2",[e._v("0.5.10-fix.2")]),t("p",[e._v("Fix: Fixed the issue of switching themes and importing data without triggering data changes in rich text mode.")]),t("p",[e._v("New: Add three new themes.")]),t("h2",[e._v("0.5.9")]),t("p",[e._v("Change: Unified export method format, using "),t("code",[e._v("FileReader")]),e._v(" instead of "),t("code",[e._v("URL.createObjectURL")]),e._v(" to convert "),t("code",[e._v("blob")]),e._v(" data.")]),t("h2",[e._v("0.5.8")]),t("p",[e._v("optimization: 1.The position setting is not triggered when the node position does not change. 2.The unfolding and folding status does not change and does not trigger button updates.")]),t("p",[e._v("New: 1.The default setting is to move the mouse over the node to display the expand and collapse buttons. 2.Support the list of icons that can be inserted into extended nodes.")]),t("h2",[e._v("0.5.7")]),t("p",[e._v("Breaking change:In rich text mode, exporting png has been changed to using html2canvas to convert the entire svg, greatly improving the export speed. However, html2canvas has a bug where the text color inline with the dom node in the foreignObject element cannot be recognized. Therefore, the text color of the exported node is fixed. However, compared to the previously unavailable state of the export, it can at least be exported quickly and smoothly.")]),t("p",[e._v("optimization: Optimize the rich text node editing experience.")]),t("p",[e._v("New: In rich text mode, importing data, initializing data, and switching theme scene node styles support following theme changes.")]),t("h2",[e._v("0.5.6")]),t("p",[e._v("Fix: 1.Fix the issue of node position disorder during fast and multiple renderings in a short period of time. 2.Fix the issue of dragging the canvas while the node is being edited, causing the edit box and node to separate.")]),t("p",[e._v("New: 1.Add a maximum history limit.")]),t("h2",[e._v("0.5.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where the edit box is also outside the canvas when editing nodes outside the canvas. 2.After modifying the structure, reset the transformation to prevent the problem of sudden position changes during the first drag after switching the structure during scaling.")]),t("p",[e._v("optimization: 1.When multiple nodes are selected, as long as there is a cross between the node and the selection area, it is considered selected.")]),t("h2",[e._v("0.5.5-fix.2")]),t("p",[e._v("Fix: 1.Fix mini map error.")]),t("h2",[e._v("0.5.5")]),t("p",[e._v("New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. 2.Support the configuration of z-index for node text editing boxes and node comment floating layer elements. 3.Support clicking on areas outside the canvas to end node editing status.")]),t("h2",[e._v("0.5.4")]),t("p",[e._v("New: 1.Add new themes. 2.Added timeline and fishbone structure.")]),t("p",[e._v("Fix: 1.Fix the conflict issue between node right-click and canvas right-click. 2.Fix the bug that the line segment is not hidden when dragging nodes such as organizational chart and directory organization chart.")]),t("p",[e._v("optimization: 1.Optimize the layout of organizational chart. 2.Optimize the layout of the directory organization chart.")]),t("h2",[e._v("0.5.4-fix.1")]),t("p",[e._v("optimization: 1.Optimize fishbone layout.")]),t("h2",[e._v("0.5.3")]),t("p",[e._v("Fix: 1.Fixed the issue of setting the text style when multiple nodes were selected in rich text mode, which would change the text of all selected nodes to the text of the last selected node.")]),t("p",[e._v("New: 1.Support setting the position of the initial central node.")]),t("h3",[e._v("0.5.3-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where setting the position of the initial central node does not take effect.")]),t("h3",[e._v("0.5.3-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of not displaying images in nodes when exporting as images.")]),t("h2",[e._v("0.5.2")]),t("p",[e._v("Fix: 1.Remove "),t("code",[e._v("uid")]),e._v(" from exported "),t("code",[e._v("JSON")]),e._v(" data; 2.Clear the node cache pool when re rendering.")]),t("h2",[e._v("0.5.1")]),t("p",[e._v("optimization: 1.Only respond to shortcut key events when the mouse is inside the canvas")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect node position during fast operation")]),t("h2",[e._v("0.5.0")]),t("p",[e._v("This version is mainly about code level changes and optimization, with the core goal of improving rendering performance and reducing stuck issues.")]),t("p",[e._v("New: 1.Support custom expansion and collapse node icons and colors;")]),t("p",[e._v("optimization: 1.Optimize rendering logic, set the theme, move forward and backward, and other operations no longer require full rendering;")]),t("pre",[t("code",[e._v(" 2.Optimize node drag logic, and fix the problem of being unable to drag between two nodes;\n\n 3.Collapse all nodes adds logic to return to the center point;\n\n 4.Fix the problem of nodes flying and scrambling caused by triggering rendering multiple times in a short time;\n\n 5.Optimize the experience of node editing;\n")])]),t("p",[e._v("Fix: 1.Fix the issue where the setData method does not trigger history;")]),t("p",[e._v("modify: Starting from version 0.5.0, considering performance issues, the node activation state can only modify shape related styles:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("[\n "),t("span",{staticClass:"hljs-string"},[e._v("'fillColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderWidth'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderDasharray'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderRadius'")]),e._v("\n]\n")])]),t("h2",[e._v("0.4.7")]),t("p",[e._v("optimization: 1.During rich text editing, when initially focusing, all are no longer selected by default; 2.When editing rich text, use the node fill color as the background color to avoid being invisible when the node color is white. 3.Node activation state switching no longer triggers history. 4.Triggering history multiple times in a short time will only add the last data. 5.Optimize the addition of historical records. When there is a rollback, delete the historical data after the current pointer when adding a new record again.")]),t("p",[e._v("New: 1.Support for importing and exporting Markdown format files. 2.Support for configuring initial text when inserting nodes. 3.Expand the commands for inserting and deleting nodes to support specifying nodes.")]),t("h2",[e._v("0.4.6")]),t("p",[e._v("New: 1.Associated lines support adjusting control points.")]),t("p",[e._v("optimization: 1.When adding historical data, filter data that has not changed compared to the previous time.")]),t("p",[e._v("Fix: 1.Fixed a conflict between the direction keys and the navigation function of the direction keys during node editing. 2.Fixed the issue of node id loss when dragging a mobile node, which can cause associated lines to be lost.")]),t("h2",[e._v("0.4.5")]),t("p",[e._v("New: 1.Supports associative lines. 2.You can also drag the canvas by holding down the root node. 3. Hold down the ctrl key to adjust multiple selected nodes.")]),t("h2",[e._v("0.4.4")]),t("p",[e._v("New: Support horizontal scrolling in response to the mouse.")]),t("h2",[e._v("0.4.3")]),t("p",[e._v("Fix: No trigger after forward and backward "),t("code",[e._v("data_ Change")]),e._v(" event.")]),t("p",[e._v("New: Support user-defined mouse wheel events; The mouse wheel is adjusted to support zooming and moving the view up and down.")]),t("h2",[e._v("0.4.2")]),t("p",[e._v("New: The "),t("code",[e._v("setText")]),e._v(" method of the Node class adds a second parameter to support setting rich text content.")]),t("h2",[e._v("0.4.1")]),t("p",[e._v("New: 1.Add and throw node mouseenter and mouseleave events; 2.Node rich text supports setting background color; 3.Node rich text supports clear style.")]),t("p",[e._v("Fix: 1.Mac system touchpad scaling is the opposite problem; 2.When the device window.devicePixelRatio is not 1, the size of the rich text node in the exported image will become larger when there are rich text nodes.")]),t("h2",[e._v("0.4.0")]),t("p",[e._v("New: The node supports rich text editing.")]),t("h2",[e._v("0.3.4")]),t("p",[e._v("New: Automatic line wrapping function is added to node text.")]),t("p",[e._v("Fix: 1.Fix the problem of deletion exceptions if there are root nodes in the batch deleted nodes. 2.Fix the problem that high node height will overlap with other nodes in the case of bottom edge style.")]),t("h2",[e._v("0.3.3")]),t("p",[e._v("Fix: The root node text cannot wrap.")]),t("h2",[e._v("0.3.2")]),t("p",[e._v("Fix: 1.Fix the problem that the node style is not updated when the secondary node is dragged to other nodes or other nodes are dragged to the secondary node; 2.Fix the problem that when the actual content of the mind map is larger than the screen width and height, the excess part is not watermarked when exporting.")]),t("h2",[e._v("0.3.1")]),t("p",[e._v("Fix: 1.The problem that deleting the background image does not take effect; 2.The problem that the connector runs above the root node when the node is dragged to the root node.")]),t("p",[e._v("New: Add position and size settings for background image display. This setting is also supported for exported pictures.")]),t("h2",[e._v("0.3.0")]),t("p",[e._v("Upgrade to plugin architecture, pull out some non-core functions as plugins, register as needed, and reduce the overall volume.")]),t("h2",[e._v("0.2.24")]),t("p",[e._v("New: Node free drag is changed to configurable, the default is "),t("code",[e._v("false")]),e._v(", not open; Support add watermark.")]),t("h2",[e._v("0.2.23")]),t("p",[e._v("New: Support register new theme.")]),t("h2",[e._v("0.2.22")]),t("p",[e._v("optimization:The theme and structure pictures of the built-in "),t("code",[e._v("simple-mind-map")]),e._v(" package are removed and replaced by user self-maintenance. The original pictures can be found in the "),t("code",[e._v("web/assets/img/")]),e._v(" directory.")]),t("h2",[e._v("0.2.21")]),t("p",[e._v("New: Support node horizontal line style.")]),t("h2",[e._v("0.2.20")]),t("p",[e._v("fix:When the distance from the canvas to the upper left corner of the window is not 0, the node dragging will have an offset problem.")]),t("h2",[e._v("0.2.19")]),t("p",[e._v("fix:When the node is not activated, pressing any key will trigger the problem of automatic focus.")]),t("h2",[e._v("0.2.18")]),t("p",[e._v("optimization:Keyboard navigation algorithm for finding focus, supporting simple algorithm, region algorithm and shadow algorithm.")]),t("h2",[e._v("0.2.17")]),t("p",[e._v("New:Keyboard navigation, that is, switch the active nodes through the direction keys; The node text content can be edited directly in the outline.")]),t("h2",[e._v("0.2.16")]),t("p",[e._v("optimization:Mini map; drag performance.")]),t("h2",[e._v("0.2.15")]),t("p",[e._v("optimization:Local file editing.")]),t("p",[e._v("New:Double-click the image in the node to preview the large image.")]),t("h2",[e._v("0.2.14")]),t("p",[e._v("optimization:Automatically expand when inserting child nodes.")]),t("p",[e._v("fix:The error occurred when the mini map was closed.")]),t("h2",[e._v("0.2.13")]),t("p",[e._v("fix:The child node is missing when collapsing state replication.")]),t("h2",[e._v("0.2.11")]),t("p",[e._v("fix:Fix the problem that is lost when the child node collapses state replication.")]),t("p",[e._v("New:Support mini map.")]),t("h2",[e._v("0.2.10")]),t("p",[e._v("optimization:Focus immediately when you manually create a node.")]),t("p",[e._v("fix:Connection style depth update problem.")]),t("p",[e._v("New:Logical structure diagram and mind map add linear connection style and direct connection style.")]),t("h2",[e._v("0.2.9")]),t("p",[e._v("New:Support the creation, opening and saving of local files on the computer.")]),t("h2",[e._v("0.2.8")]),t("p",[e._v("fix:Xmind8 version file import failed.")]),t("p",[e._v("New:Expanding to the specified level is supported.")]),t("h2",[e._v("0.2.7")]),t("p",[e._v("fix:The root node adds multiple nodes to burst the stack.")]),t("p",[e._v("New:Support import .xmind file.")]),t("h2",[e._v("0.2.6")]),t("p",[e._v("New:The title tag is added when exporting svg.")]),t("h2",[e._v("0.2.5")]),t("p",[e._v("fix:Bugs caused by node expansion and collapse.")]),t("p",[e._v("New:Node supports custom line styles.")]),t("h2",[e._v("0.2.4")]),t("p",[e._v("New:Nodes support multiple shapes.")]),t("h2",[e._v("0.2.3")]),t("p",[e._v("fix:Shortcut key conflicts when editing node text; Right-click menu shortcut prompt error; Right-click menu shortcut prompt.")]),t("h2",[e._v("0.2.2")]),t("p",[e._v("fix:The input string '/' conflicts with the shortcut key '/'.")]),t("h2",[e._v("0.2.1")]),t("p",[e._v("New:Support export as pdf.")]),t("h2",[e._v("0.2.0")]),t("p",[e._v("New:Classic4 theme;Support adding summary; Support free drag; Move Node Up, Move Node Down, Copy Node, Cut Node, Paste Node, One-click Organize Cloth Shortcut; Library packaging; Ctrl+left click to select multiple.")]),t("h2",[e._v("0.1.18")]),t("p",[e._v("fix:The problem that the node icon cannot be deleted; The tool button is grayed out and can still be clicked.")]),t("h2",[e._v("0.1.17")]),t("p",[e._v("New:Add read-only mode.")]),t("h2",[e._v("0.1.16")]),t("p",[e._v("New:Node notes support markdown and rich text.")]),t("p",[e._v("fix:Can't select text; Node annotations cannot hide problems after node activation; When editing text such as hyperlinks, notes, labels, etc., the return key and return key conflict with the shortcut key of mind map.")]),t("h2",[e._v("0.1.15")]),t("p",[e._v("New:The status data supports saving the active status and view status (drag position, zoom value);Support node drag.")]),t("h2",[e._v("0.1.14")]),t("p",[e._v("fix:There are problems with setting topics when activating nodes.")]),t("h2",[e._v("0.1.13")]),t("p",[e._v("New:Shortcut key function; Support export as json。")]),t("p",[e._v("optimization:Some details.")]),t("h2",[e._v("0.1.12")]),t("p",[e._v("New:Local storage;Right-click menu function, etc.")]),t("h2",[e._v("0.1.0")]),t("p",[e._v("Complete basic functions.")])])}],s={},a=s,r=i("2877"),d=Object(r["a"])(a,o,n,!1,null,null,null);t["default"]=d.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-f72c6b9a.js b/dist/js/chunk-5c17f390.js similarity index 57% rename from dist/js/chunk-f72c6b9a.js rename to dist/js/chunk-5c17f390.js index 4da7899b..8c549cf3 100644 --- a/dist/js/chunk-f72c6b9a.js +++ b/dist/js/chunk-5c17f390.js @@ -1,15 +1,15 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f72c6b9a"],{"0082":function(e,t,n){e.exports=n.p+"img/ditu.svg"},"012b":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return m}));var r=n("9fd6"),i=n("5ab3"),o=n("4afd");const a=0,s=1,l=2,c=(e,t)=>{r["n"](e,a);const n=o["d"](t);r["o"](e,n)},u=(e,t,n)=>{r["n"](e,s),r["o"](e,o["c"](t,n))},h=(e,t,n)=>u(t,n,i["l"](e)),d=(e,t,n)=>{try{o["b"](t,i["l"](e),n)}catch(r){console.error("Caught error while handling a Yjs update",r)}},f=(e,t)=>{r["n"](e,l),r["o"](e,t)},p=d,m=(e,t,n,r)=>{const o=i["k"](e);switch(o){case a:h(e,t,n);break;case s:d(e,n,r);break;case l:p(e,n,r);break;default:throw new Error("Unknown message type")}return o}},"01fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n("c4f9"),i=n("a2b5");const o=(e,t,n=0)=>{try{for(;n{},s=e=>e,l=(e,t)=>e===t,c=(e,t)=>{if(null==e||null==t)return l(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;nt.includes(e);r["d"]},"027d":function(e,t,n){e.exports=n.p+"img/zhongyangjie.svg"},"02a0":function(e,t,n){e.exports=n.p+"img/a-18-xiguan.svg"},"02c6":function(e,t,n){"use strict";n("7b4d")},"031f":function(e,t,n){"use strict";n("8ee5")},"0455":function(e,t,n){e.exports=n.p+"img/zhongqiujie.svg"},"049e":function(e,t,n){e.exports=n.p+"img/shiyan.svg"},"04a8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("fa98");const r=Date.now},"04f0":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));const r=()=>new Set,i=e=>new Set(e)},"0536":function(e,t,n){e.exports=n.p+"img/rose.jpg"},"058c":function(e,t,n){},"0613":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"06c3":function(e,t,n){"use strict";var r=n("1fa7");e.exports=Function.prototype.bind||r},"0754":function(e,t,n){e.exports=n.p+"img/simpleBlack.jpg"},"07f3":function(e,t,n){e.exports=n.p+"img/duanwujie.svg"},"0914":function(e,t,n){e.exports=n.p+"img/tiyu.svg"},"0960":function(e,t,n){e.exports=n("b19a")},"09d9":function(e,t,n){var r=n("9a1c").isArray;e.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&"boolean"===typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!==typeof e.spaces&&"string"!==typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"===typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"===typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},"0a21":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return"undefined"===typeof t||r.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,a,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"===typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d{let t=!0;e.webrtcConns.forEach(e=>{e.synced||(t=!1)}),(!t&&e.synced||t&&!e.synced)&&(e.synced=t,e.provider.emit("synced",[{synced:t}]),k("synced ",h["b"],e.name,h["h"]," with all peers"))},N=(e,t,n)=>{const r=l["e"](t),i=s["e"](),o=l["k"](r);if(void 0===e)return null;const a=e.awareness,c=e.doc;let u=!1;switch(o){case C:{s["n"](i,C);const t=y["c"](r,i,c,e);t!==y["b"]||e.synced||n(),t===y["a"]&&(u=!0);break}case A:s["n"](i,E),s["o"](i,w["c"](a,Array.from(a.getStates().keys()))),u=!0;break;case E:w["b"](a,l["l"](r),e);break;case T:{const t=1===l["h"](r),n=l["j"](r);if(n!==e.peerId&&(e.bcConns.has(n)&&!t||!e.bcConns.has(n)&&t)){const r=[],i=[];t?(e.bcConns.add(n),i.push(n)):(e.bcConns.delete(n),r.push(n)),e.provider.emit("peers",[{added:i,removed:r,webrtcPeers:Array.from(e.webrtcConns.keys()),bcPeers:Array.from(e.bcConns)}]),j(e)}break}default:return console.error("Unable to compute message"),i}return u?i:null},D=(e,t)=>{const n=e.room;return k("received message from ",h["b"],e.remotePeerId,h["d"]," (",n.name,")",h["h"],h["i"]),N(n,t,()=>{e.synced=!0,k("synced ",h["b"],n.name,h["h"]," with ",h["b"],e.remotePeerId),O(n)})},L=(e,t)=>{k("send message to ",h["b"],e.remotePeerId,h["h"],h["d"]," (",e.room.name,")",h["i"]);try{e.peer.send(s["f"](t))}catch(n){}},P=(e,t)=>{k("broadcast message in ",h["b"],e.name,h["h"]),e.webrtcConns.forEach(e=>{try{e.peer.send(t)}catch(n){}})};class I{constructor(e,t,n,r){k("establishing connection to ",h["b"],n),this.room=r,this.remotePeerId=n,this.closed=!1,this.connected=!1,this.synced=!1,this.peer=new b.a({initiator:t,...r.provider.peerOpts}),this.peer.on("signal",t=>{H(e,r,{to:n,from:r.peerId,type:"signal",signal:t})}),this.peer.on("connect",()=>{k("connected to ",h["b"],n),this.connected=!0;const e=r.provider,t=e.doc,i=r.awareness,o=s["e"]();s["n"](o,C),y["d"](o,t),L(this,o);const a=i.getStates();if(a.size>0){const e=s["e"]();s["n"](e,E),s["o"](e,w["c"](i,Array.from(a.keys()))),L(this,e)}}),this.peer.on("close",()=>{this.connected=!1,this.closed=!0,r.webrtcConns.has(this.remotePeerId)&&(r.webrtcConns.delete(this.remotePeerId),r.provider.emit("peers",[{removed:[this.remotePeerId],added:[],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}])),O(r),this.peer.destroy(),k("closed connection to ",h["b"],n),z(r)}),this.peer.on("error",e=>{k("Error in connection to ",h["b"],n,": ",e),z(r)}),this.peer.on("data",e=>{const t=D(this,e);null!==t&&L(this,t)})}destroy(){this.peer.destroy()}}const R=(e,t)=>x["d"](t,e.key).then(t=>e.mux(()=>f["a"](e.name,t))),F=(e,t)=>{e.bcconnected&&R(e,t),P(e,t)},z=e=>{S.forEach(t=>{t.connected&&(t.send({type:"subscribe",topics:[e.name]}),e.webrtcConns.size{if(e.provider.filterBcConns){const t=s["e"]();s["n"](t,T),s["j"](t,1),s["m"](t,e.peerId),R(e,s["f"](t))}};class B{constructor(t,n,r,i){this.peerId=a["c"](),this.doc=t,this.awareness=n.awareness,this.provider=n,this.synced=!1,this.name=r,this.key=i,this.webrtcConns=new Map,this.bcConns=new Set,this.mux=Object(g["a"])(),this.bcconnected=!1,this._bcSubscriber=e=>x["a"](new Uint8Array(e),i).then(e=>this.mux(()=>{const t=N(this,e,()=>{});t&&R(this,s["f"](t))})),this._docUpdateHandler=(e,t)=>{const n=s["e"]();s["n"](n,C),y["f"](n,e),F(this,s["f"](n))},this._awarenessUpdateHandler=({added:e,updated:t,removed:n},r)=>{const i=e.concat(t).concat(n),o=s["e"]();s["n"](o,E),s["o"](o,w["c"](this.awareness,i)),F(this,s["f"](o))},this._beforeUnloadHandler=()=>{w["d"](this.awareness,[t.clientID],"window unload"),M.forEach(e=>{e.disconnect()})},"undefined"!==typeof window?window.addEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.on("exit",this._beforeUnloadHandler)}connect(){this.doc.on("update",this._docUpdateHandler),this.awareness.on("update",this._awarenessUpdateHandler),z(this);const e=this.name;f["b"](e,this._bcSubscriber),this.bcconnected=!0,j(this);const t=s["e"]();s["n"](t,C),y["d"](t,this.doc),R(this,s["f"](t));const n=s["e"]();s["n"](n,C),y["e"](n,this.doc),R(this,s["f"](n));const r=s["e"]();s["n"](r,A),R(this,s["f"](r));const i=s["e"]();s["n"](i,E),s["o"](i,w["c"](this.awareness,[this.doc.clientID])),R(this,s["f"](i))}disconnect(){S.forEach(e=>{e.connected&&e.send({type:"unsubscribe",topics:[this.name]})}),w["d"](this.awareness,[this.doc.clientID],"disconnect");const e=s["e"]();s["n"](e,T),s["j"](e,0),s["m"](e,this.peerId),R(this,s["f"](e)),f["c"](this.name,this._bcSubscriber),this.bcconnected=!1,this.doc.off("update",this._docUpdateHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.webrtcConns.forEach(e=>e.destroy())}destroy(){this.disconnect(),"undefined"!==typeof window?window.removeEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.off("exit",this._beforeUnloadHandler)}}const U=(e,t,n,r)=>{if(M.has(n))throw o["a"](`A Yjs Doc connected to room "${n}" already exists!`);const i=new B(e,t,n,r);return M.set(n,i),i},H=(e,t,n)=>{t.key?x["e"](n,t.key).then(n=>{e.send({type:"publish",topic:t.name,data:p["e"](n)})}):e.send({type:"publish",topic:t.name,data:n})};class q extends r["a"]{constructor(e){super(e),this.providers=new Set,this.on("connect",()=>{k(`connected (${e})`);const t=Array.from(M.keys());this.send({type:"subscribe",topics:t}),M.forEach(e=>H(this,e,{type:"announce",from:e.peerId}))}),this.on("message",e=>{switch(e.type){case"publish":{const t=e.topic,n=M.get(t);if(null==n||"string"!==typeof t)return;const r=e=>{const t=n.webrtcConns,r=n.peerId;if(null==e||e.from===r||void 0!==e.to&&e.to!==r||n.bcConns.has(e.from))return;const o=t.has(e.from)?()=>{}:()=>n.provider.emit("peers",[{removed:[],added:[e.from],webrtcPeers:Array.from(n.webrtcConns.keys()),bcPeers:Array.from(n.bcConns)}]);switch(e.type){case"announce":t.sizenew I(this,!0,e.from,n)),o());break;case"signal":e.to===r&&(i["e"](t,e.from,()=>new I(this,!1,e.from,n)).peer.signal(e.signal),o());break}};n.key?"string"===typeof e.data&&x["b"](p["d"](e.data),n.key).then(r):r(e.data)}}}),this.on("disconnect",()=>k(`disconnect (${e})`))}}class W extends c["a"]{constructor(e,t,{signaling:n=["wss://y-webrtc-eu.fly.dev"],password:r=null,awareness:i=new w["a"](t),maxConns:o=20+m["d"](15*a["a"]()),filterBcConns:s=!0,peerOpts:l={}}={}){super(),this.roomName=e,this.doc=t,this.filterBcConns=s,this.awareness=i,this.shouldConnect=!1,this.signalingUrls=n,this.signalingConns=[],this.maxConns=o,this.peerOpts=l,this.key=r?x["c"](r,e):d["c"](null),this.room=null,this.key.then(n=>{this.room=U(t,this,e,n),this.shouldConnect?this.room.connect():this.room.disconnect()}),this.connect(),this.destroy=this.destroy.bind(this),t.on("destroy",this.destroy)}get connected(){return null!==this.room&&this.shouldConnect}connect(){this.shouldConnect=!0,this.signalingUrls.forEach(e=>{const t=i["e"](S,e,()=>new q(e));this.signalingConns.push(t),t.providers.add(this)}),this.room&&this.room.connect()}disconnect(){this.shouldConnect=!1,this.signalingConns.forEach(e=>{e.providers.delete(this),0===e.providers.size&&(e.destroy(),S.delete(e.url))}),this.room&&this.room.disconnect()}destroy(){this.doc.off("destroy",this.destroy),this.key.then(()=>{this.room.destroy(),M.delete(this.roomName)}),super.destroy()}}}).call(this,n("4362"))},"0e25":function(e,t,n){e.exports=n.p+"img/a-13-xiguan.svg"},"0e4d":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>void 0===e?null:e},"0e50":function(e,t,n){e.exports=n.p+"img/ziyuan_2.svg"},"0e5f":function(e,t,n){},"0e5fa":function(e,t,n){e.exports=n.p+"img/a-9-tizhongcheng.svg"},"0f8b":function(e,t,n){},"0fb2":function(e,t,n){"use strict";var r=Date.prototype.getDay,i=function(e){try{return r.call(e),!0}catch(t){return!1}},o=Object.prototype.toString,a="[object Date]",s=n("9803")();e.exports=function(e){return"object"===typeof e&&null!==e&&(s?i(e):o.call(e)===a)}},"0fb5":function(e,t,n){e.exports=n.p+"img/muqinjie.svg"},1:function(e,t){},"103a":function(e,t,n){e.exports=n.p+"img/paishe.svg"},"10ad":function(e,t,n){var r,i,o=n("a83d"),a={on:function(){},parse:function(){}},s=n("09d9"),l=n("9a1c").isArray,c=!0;function u(e){return r=s.copyOptions(e),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}function h(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return"true"===n||"false"!==n&&e}function d(e,t){var n;if(r.compact){if(!i[r[e+"Key"]]&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(i[r[e+"Key"]]=[]),i[r[e+"Key"]]&&!l(i[r[e+"Key"]])&&(i[r[e+"Key"]]=[i[r[e+"Key"]]]),e+"Fn"in r&&"string"===typeof t&&(t=r[e+"Fn"](t,i)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in r)t[n]=r.instructionFn(t[n],n,i);else{var o=t[n];delete t[n],t[r.instructionNameFn(n,o,i)]=o}l(i[r[e+"Key"]])?i[r[e+"Key"]].push(t):i[r[e+"Key"]]=t}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var a={};if(a[r.typeKey]=e,"instruction"===e){for(n in t)if(t.hasOwnProperty(n))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,t,i):n,r.instructionHasAttributes?(a[r.attributesKey]=t[n][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],n,i))):("instructionFn"in r&&(t[n]=r.instructionFn(t[n],n,i)),a[r.instructionKey]=t[n])}else e+"Fn"in r&&(t=r[e+"Fn"](t,i)),a[r[e+"Key"]]=t;r.addParent&&(a[r.parentKey]=i),i[r.elementsKey].push(a)}}function f(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=h(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,i)),"attributeNameFn"in r)){var n=e[t];delete e[t],e[r.attributeNameFn(t,e[t],i)]=n}return e}function p(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){var n,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;while(null!==(n=o.exec(e.body)))t[n[1]]=n[2]||n[3]||n[4];t=f(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(t).length&&(i[r.declarationKey][r.attributesKey]=t),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var a={};r.instructionHasAttributes&&Object.keys(t).length?(a[e.name]={},a[e.name][r.attributesKey]=t):a[e.name]=e.body,d("instruction",a)}}function m(e,t){var n;if("object"===typeof e&&(t=e.attributes,e=e.name),t=f(t),"elementNameFn"in r&&(e=r.elementNameFn(e,i)),r.compact){var o;if(n={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in n[r.attributesKey]={},t)t.hasOwnProperty(o)&&(n[r.attributesKey][o]=t[o]);!(e in i)&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(i[e]=[]),i[e]&&!l(i[e])&&(i[e]=[i[e]]),l(i[e])?i[e].push(n):i[e]=n}else i[r.elementsKey]||(i[r.elementsKey]=[]),n={},n[r.typeKey]="element",n[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(n[r.attributesKey]=t),r.alwaysChildren&&(n[r.elementsKey]=[]),i[r.elementsKey].push(n);n[r.parentKey]=i,i=n}function g(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=h(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),d("text",e))}function v(e){r.ignoreComment||(r.trim&&(e=e.trim()),d("comment",e))}function b(e){var t=i[r.parentKey];r.addParent||delete i[r.parentKey],i=t}function y(e){r.ignoreCdata||(r.trim&&(e=e.trim()),d("cdata",e))}function w(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),d("doctype",e))}function x(e){e.note=e}e.exports=function(e,t){var n=c?o.parser(!0,{}):n=new a.Parser("UTF-8"),s={};if(i=s,r=u(t),c?(n.opt={strictEntities:!0},n.onopentag=m,n.ontext=g,n.oncomment=v,n.onclosetag=b,n.onerror=x,n.oncdata=y,n.ondoctype=w,n.onprocessinginstruction=p):(n.on("startElement",m),n.on("text",g),n.on("comment",v),n.on("endElement",b),n.on("error",x)),c)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(s[r.elementsKey]){var l=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=l,delete s.text}return s}},"10db1":function(e,t,n){"use strict";var r=n("8790");n.d(t,"PDFDocument",(function(){return r["a"]}));n("a935"),n("5d8f"),n("5d9a")},"127b":function(e,t,n){"use strict";n("8e61")},"12a6":function(e,t,n){e.exports=n.p+"img/ziyuan.svg"},"12b7":function(e,t,n){e.exports=n.p+"img/a-7-xinzang.svg"},"135f":function(e,t,n){e.exports=n.p+"img/avocado.jpg"},1397:function(e,t,n){e.exports=n.p+"img/neonLamp.jpg"},"146c":function(e,t,n){"use strict";n("a95f")},1470:function(e,t,n){},1474:function(e,t,n){e.exports=n.p+"img/classicGreen.jpg"},1485:function(e,t,n){e.exports=n.p+"img/pisa.svg"},"14bd":function(e,t,n){e.exports=n.p+"img/ziyuan_10.svg"},"14d4":function(e,t,n){e.exports=n.p+"img/tianqi.svg"},"150c":function(e,t,n){"use strict";n("8444")},1560:function(e,t,n){e.exports=n.p+"img/blueSky.jpg"},1587:function(e,t,n){},1634:function(e,t,n){"use strict";n("1470")},1651:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s}));const r=()=>new Map,i=e=>{const t=r();return e.forEach((e,n)=>{t.set(n,e)}),t},o=(e,t,n)=>{let r=e.get(t);return void 0===r&&e.set(t,r=n()),r},a=(e,t)=>{const n=[];for(const[r,i]of e)n.push(t(i,r));return n},s=(e,t)=>{for(const[n,r]of e)if(t(r,n))return!0;return!1}},1754:function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return b}));var r,i=n("31fc"),o=function(e,t){void 0===t&&(t=!0);var n=[];t&&n.push(65279);for(var r=0,o=e.length;r=0&&e<=65535},s=function(e){return e>=65536&&e<=1114111},l=function(e){return Math.floor((e-65536)/1024)+55296},c=function(e){return(e-65536)%1024+56320};(function(e){e["BigEndian"]="BigEndian",e["LittleEndian"]="LittleEndian"})(r||(r={}));var u="�".codePointAt(0),h=function(e,t){if(void 0===t&&(t=!0),e.length<=1)return String.fromCodePoint(u);var n=t?m(e):r.BigEndian,i=t?2:0,o=[];while(e.length-i>=2){var a=p(e[i++],e[i++],n);if(d(a))if(e.length-i<2)o.push(u);else{var s=p(e[i++],e[i++],n);f(s)?o.push(a,s):o.push(u)}else f(a)?(i+=2,o.push(u)):o.push(a)}return i=55296&&e<=56319},f=function(e){return e>=56320&&e<=57343},p=function(e,t,n){if(n===r.LittleEndian)return t<<8|e;if(n===r.BigEndian)return e<<8|t;throw new Error("Invalid byteOrder: "+n)},m=function(e){return g(e)?r.BigEndian:v(e)?r.LittleEndian:r.BigEndian},g=function(e){return 254===e[0]&&255===e[1]},v=function(e){return 255===e[0]&&254===e[1]},b=function(e){return g(e)||v(e)}},"17f2":function(e,t,n){e.exports=n.p+"img/jisuanqi.svg"},"19bf":function(e,t,n){var r=n("5841"),i=n("0a21"),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},"1a7d":function(e){e.exports=JSON.parse('"eJx9WFlv2zgQ/iuGnnYBt5DkS85bmk13g27SoEkPbNEHWqIlIhSpklSuov99R7JIkSLtFyGZjxzN8c0h/4oueF1jpqKz6Mt1K1GJZ4s4S+PZYrvdbqJ59J4zdYNqDAfuXuodp52spdSToZrQl6n0KyZl1Sm/xgVpa5BcKURJfs5KCgdj+F++J8+4uCUqr6IzJVo8jy4qJFCusLjD3d27BucE0cGYd+/4c3T2/U2SxfM36XYxT+JtDI8k/jGPPrMCC0oYvuWSKMJZdPYmiWMLuK9I/sCwlNHZCuRfsJD9sSiOk7dxnMFbbrgieefGBW9eROfA7I/8z1myzVbz7rnpn9vuCW/unpvZecF3eHb3IhWu5eyK5Vw0XCCFi7ezc0pnvRo5E1hi8QhCeM0lHCoIK+/yCvdR67zrfd2THPA7VfzzNTrbpv2fX+BPeH8fm2usBMnBg++/oq/forO08+QGNMgGgeG/5wfxYrE4iPFzTlFt5JtkkLeMPIL/EFoNreJBE2vrXReako3YcqvVEXCTKWJdzPS7Gizyjk/mZZvsAKC66d7FCgMtF4NC2eaVqpDyLW+QwIzi/TGoD6tvPQL7BJEPNVKVb39DW2mkJnY5FALyD9eEhU6DL4SPrqTaS0mRrHyDXrHgvpQz7AvVU+CkqgQOnN3zVgSkkFVfKslzQIgfMfPFOBxWRiyDjcs5p5wFIoFr4kImprQrP59WP1ubiVpcCgxlNLq5XC4PwM8Wy77EvSs5ZyU0EpuFaXqAzmlTjVlerzcH8TuskH/4oiLj0WQQ/oWpdXadJAfxZSOJ7exmPfD01lYSD8K/kU0288JLS7Mh+hW337dINCPA5MRX8QE1jXU8Wx/E/6J6V4zyLBtCdd36Km4Cso+QTOG4N6T5dvRusxxsu6/scK5Wgw2fKovZ20HxHSnrQDjv0WjEejvw7/MkxmMD6ZQkvnEfa1xayperg/ibZfN2kN1K4lvxHw4lZAfD6QErpy1lOt2QF4H3XATa8HDP7VnrVWY6SoNZQfKWokBRt90Ak7mt2GACwTVE8bNPE+Tw3VTIzkmQqRuLqsvtUGaFw3cTcjzJxSod3tjYSnQgS4fvpgyc8KaDZuLwXR8FtYlv8YPD9rHBuGxfbQYG1q1vL2v9+3zC9nF0EF+BqoLBFBbbjRfSYbsJprLYboxtpx1Fj23esXoMhqlx7rB9uR2OPxP/aCMDmX61/Vhm8cha7HA91bzbWUR1z0/m8tLUKSyJ1qWNHqeXrTUf16lb76Or6XIzTmWFA4mHyeLOkUS3+H23UpJQPAnbE0bUS2CSUi6IdWM13Mhpu/OlBUE1t/YbA1QYCeWLYVsrRh+SeDm0RCQEf9pxa3Xpds4RcpJhqNVDbXPkzqTpOJcK/mT1VO17gUtn57C3J3cpMlUucW77Px3hRwZ83VJFGvriJ6YRHJboLmnWPUNXWAC7FbQg+/0IrjUL4RMFBxhYkEdSBLxiXB0xD8TkEZorywPXoP0I/jxhXGzWKEoJUFgeiTvs3srq2eO9Hq2Aeq92S9eDIgeYwIeawKoVY+KyVOumuBmpY0r+CgrgQVn7ohl9n6aIoc4TJjB0lEDWvmaGa05ETrGfPRd3lm1jI64b9SKtBJlbhAFTgEhuqWoUvlhCFdwRBW613cNWqnGYyDAdj+OQfdnugpBWHUa14jAKbbN2tlDrfR6mXUT9p7F3peyGvHNBb0UCl933GHgmyN6Hc/0R6+KZxiG7Ba6ReJjg6RiAos0DpTRsHWNz1s284Mr58DI+UF52N8B7vyIGzP4+nGJcWLXiNMtiR0/0S0BPtExAj3ZNwE42zh11e6duTZS/YlZaK6DebfrkOsb4aURMnsqiA+viHpPowDrwsoX1y6moRTZ20cMXtmpOgFYf8sGd8kFrRw4ptuCQagu2lJvwmpXEUu2DNSlOoEf12vY4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb"')},"1b88":function(e,t,n){e.exports=n.p+"img/blackGold.jpg"},"1bc3":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"1c6b":function(e,t,n){e.exports=n.p+"img/naozhong.svg"},"1cd3":function(e,t,n){"use strict";var r=n("4a66");e.exports=function(){return"function"===typeof Object.is?Object.is:r}},"1cf0":function(e,t,n){"use strict";var r=n("ce8e"),i=n("5d66"),o=n("d7f0"),a=n("3213"),s=n("2307"),l=i(a());r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},"1d76":function(e,t,n){"use strict";var r=n("3f29"),i=n("5d66"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},"1e35":function(e,t,n){e.exports=n.p+"img/shouji.svg"},"1f76":function(e,t,n){e.exports=n.p+"img/freshGreen.jpg"},"1fa7":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==a)throw new TypeError(r+t);for(var n,s=i.call(arguments,1),l=function(){if(this instanceof n){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(i.call(arguments)))},c=Math.max(0,t.length-s.length),u=[],h=0;h0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(h(e,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2:function(e,t){},"21cd":function(e,t,n){e.exports=n.p+"img/qixi.svg"},"222a":function(e,t,n){e.exports=n.p+"img/hangli.svg"},2232:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return I}));for(var r=n("77f5"),i=n.n(r),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(256),s=0;s>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return u},u=function(e){for(var t="",n=0;n"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=o["a"].LessThan,t+=Object(a["w"])(this.value,e,t),e[t++]=o["a"].GreaterThan,this.value.length+2},t.of=function(e){return new t(e)},t.fromText=function(e){for(var n=Object(a["Z"])(e),r="",i=0,o=n.length;i{r["n"](e,a);const n=o["d"](t);r["o"](e,n)},u=(e,t,n)=>{r["n"](e,s),r["o"](e,o["c"](t,n))},h=(e,t,n)=>u(t,n,i["l"](e)),d=(e,t,n)=>{try{o["b"](t,i["l"](e),n)}catch(r){console.error("Caught error while handling a Yjs update",r)}},f=(e,t)=>{r["n"](e,l),r["o"](e,t)},p=d,m=(e,t,n,r)=>{const o=i["k"](e);switch(o){case a:h(e,t,n);break;case s:d(e,n,r);break;case l:p(e,n,r);break;default:throw new Error("Unknown message type")}return o}},"01fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n("c4f9"),i=n("a2b5");const o=(e,t,n=0)=>{try{for(;n{},s=e=>e,l=(e,t)=>e===t,c=(e,t)=>{if(null==e||null==t)return l(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;nt.includes(e);r["d"]},"027d":function(e,t,n){e.exports=n.p+"img/zhongyangjie.svg"},"02a0":function(e,t,n){e.exports=n.p+"img/a-18-xiguan.svg"},"02c6":function(e,t,n){"use strict";n("7b4d")},"031f":function(e,t,n){"use strict";n("8ee5")},"0455":function(e,t,n){e.exports=n.p+"img/zhongqiujie.svg"},"049e":function(e,t,n){e.exports=n.p+"img/shiyan.svg"},"04a8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("fa98");const r=Date.now},"04f0":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));const r=()=>new Set,i=e=>new Set(e)},"0536":function(e,t,n){e.exports=n.p+"img/rose.jpg"},"058c":function(e,t,n){},"0613":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"06c3":function(e,t,n){"use strict";var r=n("1fa7");e.exports=Function.prototype.bind||r},"0754":function(e,t,n){e.exports=n.p+"img/simpleBlack.jpg"},"07f3":function(e,t,n){e.exports=n.p+"img/duanwujie.svg"},"0914":function(e,t,n){e.exports=n.p+"img/tiyu.svg"},"0960":function(e,t,n){e.exports=n("b19a")},"09d9":function(e,t,n){var r=n("9a1c").isArray;e.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&"boolean"===typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!==typeof e.spaces&&"string"!==typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"===typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"===typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},"0a21":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return"undefined"===typeof t||r.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,a,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"===typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,d){var f=n+e.length,p=r.length,m=u;return void 0!==h&&(h=i(h),m=c),s(d,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=h[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var d=o(u/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},"0cfe":function(e,t,n){e.exports=n.p+"img/timeline.png"},"0d26":function(e,t,n){var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d42":function(e,t,n){e.exports=n.p+"img/dark.jpg"},"0d93":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return _}));var r=n("b51b"),i=n("1651"),o=n("9aca"),a=n("ac44"),s=n("9fd6"),l=n("5ab3"),c=n("81ad"),u=n("da66"),h=n("b5e5"),d=n("9a8c"),f=n("2e03"),p=n("efdf"),m=n("fa98"),g=n("f932"),v=n("e217"),b=n.n(v),y=n("012b"),w=n("b260"),x=n("6eac");const k=u["a"]("y-webrtc"),C=0,A=3,E=1,T=4,S=new Map,M=new Map,O=e=>{let t=!0;e.webrtcConns.forEach(e=>{e.synced||(t=!1)}),(!t&&e.synced||t&&!e.synced)&&(e.synced=t,e.provider.emit("synced",[{synced:t}]),k("synced ",h["b"],e.name,h["h"]," with all peers"))},N=(e,t,n)=>{const r=l["e"](t),i=s["e"](),o=l["k"](r);if(void 0===e)return null;const a=e.awareness,c=e.doc;let u=!1;switch(o){case C:{s["n"](i,C);const t=y["c"](r,i,c,e);t!==y["b"]||e.synced||n(),t===y["a"]&&(u=!0);break}case A:s["n"](i,E),s["o"](i,w["c"](a,Array.from(a.getStates().keys()))),u=!0;break;case E:w["b"](a,l["l"](r),e);break;case T:{const t=1===l["h"](r),n=l["j"](r);if(n!==e.peerId&&(e.bcConns.has(n)&&!t||!e.bcConns.has(n)&&t)){const r=[],i=[];t?(e.bcConns.add(n),i.push(n)):(e.bcConns.delete(n),r.push(n)),e.provider.emit("peers",[{added:i,removed:r,webrtcPeers:Array.from(e.webrtcConns.keys()),bcPeers:Array.from(e.bcConns)}]),j(e)}break}default:return console.error("Unable to compute message"),i}return u?i:null},D=(e,t)=>{const n=e.room;return k("received message from ",h["b"],e.remotePeerId,h["d"]," (",n.name,")",h["h"],h["i"]),N(n,t,()=>{e.synced=!0,k("synced ",h["b"],n.name,h["h"]," with ",h["b"],e.remotePeerId),O(n)})},L=(e,t)=>{k("send message to ",h["b"],e.remotePeerId,h["h"],h["d"]," (",e.room.name,")",h["i"]);try{e.peer.send(s["f"](t))}catch(n){}},P=(e,t)=>{k("broadcast message in ",h["b"],e.name,h["h"]),e.webrtcConns.forEach(e=>{try{e.peer.send(t)}catch(n){}})};class I{constructor(e,t,n,r){k("establishing connection to ",h["b"],n),this.room=r,this.remotePeerId=n,this.closed=!1,this.connected=!1,this.synced=!1,this.peer=new b.a({initiator:t,...r.provider.peerOpts}),this.peer.on("signal",t=>{H(e,r,{to:n,from:r.peerId,type:"signal",signal:t})}),this.peer.on("connect",()=>{k("connected to ",h["b"],n),this.connected=!0;const e=r.provider,t=e.doc,i=r.awareness,o=s["e"]();s["n"](o,C),y["d"](o,t),L(this,o);const a=i.getStates();if(a.size>0){const e=s["e"]();s["n"](e,E),s["o"](e,w["c"](i,Array.from(a.keys()))),L(this,e)}}),this.peer.on("close",()=>{this.connected=!1,this.closed=!0,r.webrtcConns.has(this.remotePeerId)&&(r.webrtcConns.delete(this.remotePeerId),r.provider.emit("peers",[{removed:[this.remotePeerId],added:[],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}])),O(r),this.peer.destroy(),k("closed connection to ",h["b"],n),z(r)}),this.peer.on("error",e=>{k("Error in connection to ",h["b"],n,": ",e),z(r)}),this.peer.on("data",e=>{const t=D(this,e);null!==t&&L(this,t)})}destroy(){this.peer.destroy()}}const R=(e,t)=>x["d"](t,e.key).then(t=>e.mux(()=>f["a"](e.name,t))),F=(e,t)=>{e.bcconnected&&R(e,t),P(e,t)},z=e=>{S.forEach(t=>{t.connected&&(t.send({type:"subscribe",topics:[e.name]}),e.webrtcConns.size{if(e.provider.filterBcConns){const t=s["e"]();s["n"](t,T),s["j"](t,1),s["m"](t,e.peerId),R(e,s["f"](t))}};class B{constructor(t,n,r,i){this.peerId=a["c"](),this.doc=t,this.awareness=n.awareness,this.provider=n,this.synced=!1,this.name=r,this.key=i,this.webrtcConns=new Map,this.bcConns=new Set,this.mux=Object(g["a"])(),this.bcconnected=!1,this._bcSubscriber=e=>x["a"](new Uint8Array(e),i).then(e=>this.mux(()=>{const t=N(this,e,()=>{});t&&R(this,s["f"](t))})),this._docUpdateHandler=(e,t)=>{const n=s["e"]();s["n"](n,C),y["f"](n,e),F(this,s["f"](n))},this._awarenessUpdateHandler=({added:e,updated:t,removed:n},r)=>{const i=e.concat(t).concat(n),o=s["e"]();s["n"](o,E),s["o"](o,w["c"](this.awareness,i)),F(this,s["f"](o))},this._beforeUnloadHandler=()=>{w["d"](this.awareness,[t.clientID],"window unload"),M.forEach(e=>{e.disconnect()})},"undefined"!==typeof window?window.addEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.on("exit",this._beforeUnloadHandler)}connect(){this.doc.on("update",this._docUpdateHandler),this.awareness.on("update",this._awarenessUpdateHandler),z(this);const e=this.name;f["b"](e,this._bcSubscriber),this.bcconnected=!0,j(this);const t=s["e"]();s["n"](t,C),y["d"](t,this.doc),R(this,s["f"](t));const n=s["e"]();s["n"](n,C),y["e"](n,this.doc),R(this,s["f"](n));const r=s["e"]();s["n"](r,A),R(this,s["f"](r));const i=s["e"]();s["n"](i,E),s["o"](i,w["c"](this.awareness,[this.doc.clientID])),R(this,s["f"](i))}disconnect(){S.forEach(e=>{e.connected&&e.send({type:"unsubscribe",topics:[this.name]})}),w["d"](this.awareness,[this.doc.clientID],"disconnect");const e=s["e"]();s["n"](e,T),s["j"](e,0),s["m"](e,this.peerId),R(this,s["f"](e)),f["c"](this.name,this._bcSubscriber),this.bcconnected=!1,this.doc.off("update",this._docUpdateHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.webrtcConns.forEach(e=>e.destroy())}destroy(){this.disconnect(),"undefined"!==typeof window?window.removeEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.off("exit",this._beforeUnloadHandler)}}const U=(e,t,n,r)=>{if(M.has(n))throw o["a"](`A Yjs Doc connected to room "${n}" already exists!`);const i=new B(e,t,n,r);return M.set(n,i),i},H=(e,t,n)=>{t.key?x["e"](n,t.key).then(n=>{e.send({type:"publish",topic:t.name,data:p["e"](n)})}):e.send({type:"publish",topic:t.name,data:n})};class q extends r["a"]{constructor(e){super(e),this.providers=new Set,this.on("connect",()=>{k(`connected (${e})`);const t=Array.from(M.keys());this.send({type:"subscribe",topics:t}),M.forEach(e=>H(this,e,{type:"announce",from:e.peerId}))}),this.on("message",e=>{switch(e.type){case"publish":{const t=e.topic,n=M.get(t);if(null==n||"string"!==typeof t)return;const r=e=>{const t=n.webrtcConns,r=n.peerId;if(null==e||e.from===r||void 0!==e.to&&e.to!==r||n.bcConns.has(e.from))return;const o=t.has(e.from)?()=>{}:()=>n.provider.emit("peers",[{removed:[],added:[e.from],webrtcPeers:Array.from(n.webrtcConns.keys()),bcPeers:Array.from(n.bcConns)}]);switch(e.type){case"announce":t.sizenew I(this,!0,e.from,n)),o());break;case"signal":e.to===r&&(i["e"](t,e.from,()=>new I(this,!1,e.from,n)).peer.signal(e.signal),o());break}};n.key?"string"===typeof e.data&&x["b"](p["d"](e.data),n.key).then(r):r(e.data)}}}),this.on("disconnect",()=>k(`disconnect (${e})`))}}class _ extends c["a"]{constructor(e,t,{signaling:n=["wss://y-webrtc-eu.fly.dev"],password:r=null,awareness:i=new w["a"](t),maxConns:o=20+m["d"](15*a["a"]()),filterBcConns:s=!0,peerOpts:l={}}={}){super(),this.roomName=e,this.doc=t,this.filterBcConns=s,this.awareness=i,this.shouldConnect=!1,this.signalingUrls=n,this.signalingConns=[],this.maxConns=o,this.peerOpts=l,this.key=r?x["c"](r,e):d["c"](null),this.room=null,this.key.then(n=>{this.room=U(t,this,e,n),this.shouldConnect?this.room.connect():this.room.disconnect()}),this.connect(),this.destroy=this.destroy.bind(this),t.on("destroy",this.destroy)}get connected(){return null!==this.room&&this.shouldConnect}connect(){this.shouldConnect=!0,this.signalingUrls.forEach(e=>{const t=i["e"](S,e,()=>new q(e));this.signalingConns.push(t),t.providers.add(this)}),this.room&&this.room.connect()}disconnect(){this.shouldConnect=!1,this.signalingConns.forEach(e=>{e.providers.delete(this),0===e.providers.size&&(e.destroy(),S.delete(e.url))}),this.room&&this.room.disconnect()}destroy(){this.doc.off("destroy",this.destroy),this.key.then(()=>{this.room.destroy(),M.delete(this.roomName)}),super.destroy()}}}).call(this,n("4362"))},"0e25":function(e,t,n){e.exports=n.p+"img/a-13-xiguan.svg"},"0e4d":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>void 0===e?null:e},"0e50":function(e,t,n){e.exports=n.p+"img/ziyuan_2.svg"},"0e5f":function(e,t,n){e.exports=n.p+"img/a-9-tizhongcheng.svg"},"0f8b":function(e,t,n){},"0fb2":function(e,t,n){"use strict";var r=Date.prototype.getDay,i=function(e){try{return r.call(e),!0}catch(t){return!1}},o=Object.prototype.toString,a="[object Date]",s=n("9803")();e.exports=function(e){return"object"===typeof e&&null!==e&&(s?i(e):o.call(e)===a)}},"0fb5":function(e,t,n){e.exports=n.p+"img/muqinjie.svg"},1:function(e,t){},"103a":function(e,t,n){e.exports=n.p+"img/paishe.svg"},"10ad":function(e,t,n){var r,i,o=n("a83d"),a={on:function(){},parse:function(){}},s=n("09d9"),l=n("9a1c").isArray,c=!0;function u(e){return r=s.copyOptions(e),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}function h(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return"true"===n||"false"!==n&&e}function d(e,t){var n;if(r.compact){if(!i[r[e+"Key"]]&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(i[r[e+"Key"]]=[]),i[r[e+"Key"]]&&!l(i[r[e+"Key"]])&&(i[r[e+"Key"]]=[i[r[e+"Key"]]]),e+"Fn"in r&&"string"===typeof t&&(t=r[e+"Fn"](t,i)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in r)t[n]=r.instructionFn(t[n],n,i);else{var o=t[n];delete t[n],t[r.instructionNameFn(n,o,i)]=o}l(i[r[e+"Key"]])?i[r[e+"Key"]].push(t):i[r[e+"Key"]]=t}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var a={};if(a[r.typeKey]=e,"instruction"===e){for(n in t)if(t.hasOwnProperty(n))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,t,i):n,r.instructionHasAttributes?(a[r.attributesKey]=t[n][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],n,i))):("instructionFn"in r&&(t[n]=r.instructionFn(t[n],n,i)),a[r.instructionKey]=t[n])}else e+"Fn"in r&&(t=r[e+"Fn"](t,i)),a[r[e+"Key"]]=t;r.addParent&&(a[r.parentKey]=i),i[r.elementsKey].push(a)}}function f(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=h(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,i)),"attributeNameFn"in r)){var n=e[t];delete e[t],e[r.attributeNameFn(t,e[t],i)]=n}return e}function p(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){var n,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;while(null!==(n=o.exec(e.body)))t[n[1]]=n[2]||n[3]||n[4];t=f(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(t).length&&(i[r.declarationKey][r.attributesKey]=t),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var a={};r.instructionHasAttributes&&Object.keys(t).length?(a[e.name]={},a[e.name][r.attributesKey]=t):a[e.name]=e.body,d("instruction",a)}}function m(e,t){var n;if("object"===typeof e&&(t=e.attributes,e=e.name),t=f(t),"elementNameFn"in r&&(e=r.elementNameFn(e,i)),r.compact){var o;if(n={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in n[r.attributesKey]={},t)t.hasOwnProperty(o)&&(n[r.attributesKey][o]=t[o]);!(e in i)&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(i[e]=[]),i[e]&&!l(i[e])&&(i[e]=[i[e]]),l(i[e])?i[e].push(n):i[e]=n}else i[r.elementsKey]||(i[r.elementsKey]=[]),n={},n[r.typeKey]="element",n[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(n[r.attributesKey]=t),r.alwaysChildren&&(n[r.elementsKey]=[]),i[r.elementsKey].push(n);n[r.parentKey]=i,i=n}function g(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=h(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),d("text",e))}function v(e){r.ignoreComment||(r.trim&&(e=e.trim()),d("comment",e))}function b(e){var t=i[r.parentKey];r.addParent||delete i[r.parentKey],i=t}function y(e){r.ignoreCdata||(r.trim&&(e=e.trim()),d("cdata",e))}function w(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),d("doctype",e))}function x(e){e.note=e}e.exports=function(e,t){var n=c?o.parser(!0,{}):n=new a.Parser("UTF-8"),s={};if(i=s,r=u(t),c?(n.opt={strictEntities:!0},n.onopentag=m,n.ontext=g,n.oncomment=v,n.onclosetag=b,n.onerror=x,n.oncdata=y,n.ondoctype=w,n.onprocessinginstruction=p):(n.on("startElement",m),n.on("text",g),n.on("comment",v),n.on("endElement",b),n.on("error",x)),c)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(s[r.elementsKey]){var l=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=l,delete s.text}return s}},"10db1":function(e,t,n){"use strict";var r=n("8790");n.d(t,"PDFDocument",(function(){return r["a"]}));n("a935"),n("5d8f"),n("5d9a")},"127b":function(e,t,n){"use strict";n("8e61")},"12a6":function(e,t,n){e.exports=n.p+"img/ziyuan.svg"},"12b7":function(e,t,n){e.exports=n.p+"img/a-7-xinzang.svg"},"135f":function(e,t,n){e.exports=n.p+"img/avocado.jpg"},1397:function(e,t,n){e.exports=n.p+"img/neonLamp.jpg"},"146c":function(e,t,n){"use strict";n("a95f")},1470:function(e,t,n){},1474:function(e,t,n){e.exports=n.p+"img/classicGreen.jpg"},1485:function(e,t,n){e.exports=n.p+"img/pisa.svg"},"14bd":function(e,t,n){e.exports=n.p+"img/ziyuan_10.svg"},"14d4":function(e,t,n){e.exports=n.p+"img/tianqi.svg"},"150c":function(e,t,n){"use strict";n("8444")},1560:function(e,t,n){e.exports=n.p+"img/blueSky.jpg"},1634:function(e,t,n){"use strict";n("1470")},1651:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s}));const r=()=>new Map,i=e=>{const t=r();return e.forEach((e,n)=>{t.set(n,e)}),t},o=(e,t,n)=>{let r=e.get(t);return void 0===r&&e.set(t,r=n()),r},a=(e,t)=>{const n=[];for(const[r,i]of e)n.push(t(i,r));return n},s=(e,t)=>{for(const[n,r]of e)if(t(r,n))return!0;return!1}},1754:function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return b}));var r,i=n("31fc"),o=function(e,t){void 0===t&&(t=!0);var n=[];t&&n.push(65279);for(var r=0,o=e.length;r=0&&e<=65535},s=function(e){return e>=65536&&e<=1114111},l=function(e){return Math.floor((e-65536)/1024)+55296},c=function(e){return(e-65536)%1024+56320};(function(e){e["BigEndian"]="BigEndian",e["LittleEndian"]="LittleEndian"})(r||(r={}));var u="�".codePointAt(0),h=function(e,t){if(void 0===t&&(t=!0),e.length<=1)return String.fromCodePoint(u);var n=t?m(e):r.BigEndian,i=t?2:0,o=[];while(e.length-i>=2){var a=p(e[i++],e[i++],n);if(d(a))if(e.length-i<2)o.push(u);else{var s=p(e[i++],e[i++],n);f(s)?o.push(a,s):o.push(u)}else f(a)?(i+=2,o.push(u)):o.push(a)}return i=55296&&e<=56319},f=function(e){return e>=56320&&e<=57343},p=function(e,t,n){if(n===r.LittleEndian)return t<<8|e;if(n===r.BigEndian)return e<<8|t;throw new Error("Invalid byteOrder: "+n)},m=function(e){return g(e)?r.BigEndian:v(e)?r.LittleEndian:r.BigEndian},g=function(e){return 254===e[0]&&255===e[1]},v=function(e){return 255===e[0]&&254===e[1]},b=function(e){return g(e)||v(e)}},"178c":function(e,t,n){},"17f2":function(e,t,n){e.exports=n.p+"img/jisuanqi.svg"},"19bf":function(e,t,n){var r=n("5841"),i=n("0a21"),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},"1a7d":function(e){e.exports=JSON.parse('"eJx9WFlv2zgQ/iuGnnYBt5DkS85bmk13g27SoEkPbNEHWqIlIhSpklSuov99R7JIkSLtFyGZjxzN8c0h/4oueF1jpqKz6Mt1K1GJZ4s4S+PZYrvdbqJ59J4zdYNqDAfuXuodp52spdSToZrQl6n0KyZl1Sm/xgVpa5BcKURJfs5KCgdj+F++J8+4uCUqr6IzJVo8jy4qJFCusLjD3d27BucE0cGYd+/4c3T2/U2SxfM36XYxT+JtDI8k/jGPPrMCC0oYvuWSKMJZdPYmiWMLuK9I/sCwlNHZCuRfsJD9sSiOk7dxnMFbbrgieefGBW9eROfA7I/8z1myzVbz7rnpn9vuCW/unpvZecF3eHb3IhWu5eyK5Vw0XCCFi7ezc0pnvRo5E1hi8QhCeM0lHCoIK+/yCvdR67zrfd2THPA7VfzzNTrbpv2fX+BPeH8fm2usBMnBg++/oq/forO08+QGNMgGgeG/5wfxYrE4iPFzTlFt5JtkkLeMPIL/EFoNreJBE2vrXReako3YcqvVEXCTKWJdzPS7Gizyjk/mZZvsAKC66d7FCgMtF4NC2eaVqpDyLW+QwIzi/TGoD6tvPQL7BJEPNVKVb39DW2mkJnY5FALyD9eEhU6DL4SPrqTaS0mRrHyDXrHgvpQz7AvVU+CkqgQOnN3zVgSkkFVfKslzQIgfMfPFOBxWRiyDjcs5p5wFIoFr4kImprQrP59WP1ubiVpcCgxlNLq5XC4PwM8Wy77EvSs5ZyU0EpuFaXqAzmlTjVlerzcH8TuskH/4oiLj0WQQ/oWpdXadJAfxZSOJ7exmPfD01lYSD8K/kU0288JLS7Mh+hW337dINCPA5MRX8QE1jXU8Wx/E/6J6V4zyLBtCdd36Km4Cso+QTOG4N6T5dvRusxxsu6/scK5Wgw2fKovZ20HxHSnrQDjv0WjEejvw7/MkxmMD6ZQkvnEfa1xayperg/ibZfN2kN1K4lvxHw4lZAfD6QErpy1lOt2QF4H3XATa8HDP7VnrVWY6SoNZQfKWokBRt90Ak7mt2GACwTVE8bNPE+Tw3VTIzkmQqRuLqsvtUGaFw3cTcjzJxSod3tjYSnQgS4fvpgyc8KaDZuLwXR8FtYlv8YPD9rHBuGxfbQYG1q1vL2v9+3zC9nF0EF+BqoLBFBbbjRfSYbsJprLYboxtpx1Fj23esXoMhqlx7rB9uR2OPxP/aCMDmX61/Vhm8cha7HA91bzbWUR1z0/m8tLUKSyJ1qWNHqeXrTUf16lb76Or6XIzTmWFA4mHyeLOkUS3+H23UpJQPAnbE0bUS2CSUi6IdWM13Mhpu/OlBUE1t/YbA1QYCeWLYVsrRh+SeDm0RCQEf9pxa3Xpds4RcpJhqNVDbXPkzqTpOJcK/mT1VO17gUtn57C3J3cpMlUucW77Px3hRwZ83VJFGvriJ6YRHJboLmnWPUNXWAC7FbQg+/0IrjUL4RMFBxhYkEdSBLxiXB0xD8TkEZorywPXoP0I/jxhXGzWKEoJUFgeiTvs3srq2eO9Hq2Aeq92S9eDIgeYwIeawKoVY+KyVOumuBmpY0r+CgrgQVn7ohl9n6aIoc4TJjB0lEDWvmaGa05ETrGfPRd3lm1jI64b9SKtBJlbhAFTgEhuqWoUvlhCFdwRBW613cNWqnGYyDAdj+OQfdnugpBWHUa14jAKbbN2tlDrfR6mXUT9p7F3peyGvHNBb0UCl933GHgmyN6Hc/0R6+KZxiG7Ba6ReJjg6RiAos0DpTRsHWNz1s284Mr58DI+UF52N8B7vyIGzP4+nGJcWLXiNMtiR0/0S0BPtExAj3ZNwE42zh11e6duTZS/YlZaK6DebfrkOsb4aURMnsqiA+viHpPowDrwsoX1y6moRTZ20cMXtmpOgFYf8sGd8kFrRw4ptuCQagu2lJvwmpXEUu2DNSlOoEf12vY4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb"')},"1b88":function(e,t,n){e.exports=n.p+"img/blackGold.jpg"},"1bc3":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"1c6b":function(e,t,n){e.exports=n.p+"img/naozhong.svg"},"1cd3":function(e,t,n){"use strict";var r=n("4a66");e.exports=function(){return"function"===typeof Object.is?Object.is:r}},"1cf0":function(e,t,n){"use strict";var r=n("ce8e"),i=n("5d66"),o=n("d7f0"),a=n("3213"),s=n("2307"),l=i(a());r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},"1d76":function(e,t,n){"use strict";var r=n("3f29"),i=n("5d66"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},"1e35":function(e,t,n){e.exports=n.p+"img/shouji.svg"},"1f76":function(e,t,n){e.exports=n.p+"img/freshGreen.jpg"},"1fa7":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==a)throw new TypeError(r+t);for(var n,s=i.call(arguments,1),l=function(){if(this instanceof n){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(i.call(arguments)))},c=Math.max(0,t.length-s.length),u=[],h=0;h0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(h(e,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2:function(e,t){},"21cd":function(e,t,n){e.exports=n.p+"img/qixi.svg"},"222a":function(e,t,n){e.exports=n.p+"img/hangli.svg"},2232:function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return I}));for(var r=n("77f5"),i=n.n(r),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(256),s=0;s>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return u},u=function(e){for(var t="",n=0;n"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=o["a"].LessThan,t+=Object(a["w"])(this.value,e,t),e[t++]=o["a"].GreaterThan,this.value.length+2},t.of=function(e){return new t(e)},t.fromText=function(e){for(var n=Object(a["Z"])(e),r="",i=0,o=n.length;i>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}function m(e){for(var t=[],n=0;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var g,v=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?p(e.slice(2)):254==t&&255==n?m(e.slice(2)):65279==t?e.slice(1):e},b=function(e){return String.fromCharCode(e)},y=function(e){return String.fromCharCode(e)};var w=null,x=!0,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(e){for(var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0,c=0;c>2,r=e.charCodeAt(c++),a=(3&n)<<4|r>>4,i=e.charCodeAt(c++),s=(15&r)<<2|i>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=k.charAt(o)+k.charAt(a)+k.charAt(s)+k.charAt(l);return t}function A(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(n),s=k.indexOf(e.charAt(c++)),r=(15&a)<<4|s>>2,64!==s&&(t+=String.fromCharCode(r)),l=k.indexOf(e.charAt(c++)),i=(3&s)<<6|l,64!==l&&(t+=String.fromCharCode(i));return t}var E=function(){return"undefined"!==typeof e&&"undefined"!==typeof r&&"undefined"!==typeof r.versions&&!!r.versions.node}(),T=function(){if("undefined"!==typeof e){var t=!e.from;if(!t)try{e.from("foo","utf8")}catch(n){t=!0}return t?function(t,n){return n?new e(t,n):new e(t)}:e.from.bind(e)}return function(){}}();function S(t){return E?e.alloc?e.alloc(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function M(t){return E?e.allocUnsafe?e.allocUnsafe(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var O=function(e){return E?T(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function N(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n>6&31,i[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&e.charCodeAt(++o);i[n++]=240|a>>8&7,i[n++]=128|a>>2&63,i[n++]=128|s>>6&15|(3&a)<<4,i[n++]=128|63&s}else i[n++]=224|a>>12&15,i[n++]=128|a>>6&63,i[n++]=128|63&a;n>r&&(t.push(i.slice(0,n)),n=0,i=S(65535),r=65530)}return t.push(i.slice(0,n)),L(t)}var I=/\u0000/g,R=/[\u0001-\u0006]/g;function F(e){var t="",n=e.length-1;while(n>=0)t+=e.charAt(n--);return t}function z(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}function j(e,t){var n=""+e;return n.length>=t?n:ft(" ",t-n.length)+n}function B(e,t){var n=""+e;return n.length>=t?n:n+ft(" ",t-n.length)}function U(e,t){var n=""+Math.round(e);return n.length>=t?n:ft("0",t-n.length)+n}function H(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}var q=Math.pow(2,32);function W(e,t){if(e>q||e<-q)return U(e,t);var n=Math.round(e);return H(n,t)}function _(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var G=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],V=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Y(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var K={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Z={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},X={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function J(e,t,n){var r=e<0?-1:1,i=e*r,o=0,a=1,s=0,l=1,c=0,u=0,h=Math.floor(i);while(ct&&(c>t?(u=l,s=o):(u=c,s=a)),!n)return[0,r*s,u];var d=Math.floor(r*s/u);return[d,r*s-d*u,u]}function Q(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),o=0,a=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),r<60&&(o=(o+6)%7),n&&(o=ue(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var ee=new Date(1899,11,31,0,0,0),te=ee.getTime(),ne=new Date(1900,2,1,0,0,0);function re(e,t){var n=e.getTime();return t?n-=1262304e5:e>=ne&&(n+=864e5),(n-(te+6e4*(e.getTimezoneOffset()-ee.getTimezoneOffset())))/864e5}function ie(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function oe(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ae(e){var t=e<0?12:11,n=ie(e.toFixed(12));return n.length<=t?n:(n=e.toPrecision(10),n.length<=t?n:e.toExponential(5))}function se(e){var t=ie(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}function le(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?ae(e):10===n?e.toFixed(10).substr(0,12):se(e),ie(oe(t.toUpperCase()))}function ce(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):le(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return He(14,re(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ue(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function he(e,t,n,r){var i,o="",a=0,s=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:i=n.m,c=t.length;break;case 3:return V[n.m-1][1];case 5:return V[n.m-1][0];default:return V[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,c=t.length;break;case 3:return G[n.q][0];default:return G[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,a=Math.round(s*(n.S+n.u)),a>=60*s&&(a=0),"s"===t?0===a?"0":""+a/s:(o=z(a,2+r),"ss"===t?o.substr(0,2):"."+o.substr(2,t.length-1))):z(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:i=l,c=1;break}var u=c>0?z(i,c):"";return u}function de(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}var fe=/%/g;function pe(e,t,n){var r=t.replace(fe,""),i=t.length-r.length;return Pe(e,r,n*Math.pow(10,2*i))+ft("%",i)}function me(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return Pe(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function ge(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ge(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),-1===n.indexOf("e")){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o);while("0."===n.substr(0,2))n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var ve=/# (\?+)( ?)\/( ?)(\d+)/;function be(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),o=Math.floor(i/r),a=i-o*r,s=r;return n+(0===o?"":""+o)+" "+(0===a?ft(" ",e[1].length+1+e[4].length):j(a,e[1].length)+e[2]+"/"+e[3]+z(s,e[4].length))}function ye(e,t,n){return n+(0===t?"":""+t)+ft(" ",e[1].length+2+e[4].length)}var we=/^#*0*\.([0#]+)/,xe=/\).*[0#]/,ke=/\(###\) ###\\?-####/;function Ce(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function Ae(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function Ee(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function Te(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Se(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function Me(e,t,n){if(40===e.charCodeAt(0)&&!t.match(xe)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Me("n",r,n):"("+Me("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return me(e,t,n);if(-1!==t.indexOf("%"))return pe(e,t,n);if(-1!==t.indexOf("E"))return ge(t,n);if(36===t.charCodeAt(0))return"$"+Me(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+W(l,t.length);if(t.match(/^[#?]+$/))return i=W(n,0),"0"===i&&(i=""),i.length>t.length?i:Ce(t.substr(0,t.length-i.length))+i;if(o=t.match(ve))return be(o,l,c);if(t.match(/^#+0+$/))return c+W(l,t.length-t.indexOf("0"));if(o=t.match(we))return i=Ae(n,o[1].length).replace(/^([^\.]+)$/,"$1."+Ce(o[1])).replace(/\.$/,"."+Ce(o[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",Ce(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+Ae(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+de(W(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Me(e,t,-n):de(""+(Math.floor(n)+Te(n,o[1].length)))+"."+z(Ee(n,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return Me(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=F(Me(e,t.replace(/[\\-]/g,""),n)),a=0,F(F(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a=0?Le("n",r,n):"("+Le("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return Oe(e,t,n);if(-1!==t.indexOf("%"))return Ne(e,t,n);if(-1!==t.indexOf("E"))return De(t,n);if(36===t.charCodeAt(0))return"$"+Le(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+z(l,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:Ce(t.substr(0,t.length-i.length))+i;if(o=t.match(ve))return ye(o,l,c);if(t.match(/^#+0+$/))return c+z(l,t.length-t.indexOf("0"));if(o=t.match(we))return i=(""+n).replace(/^([^\.]+)$/,"$1."+Ce(o[1])).replace(/\.$/,"."+Ce(o[1])),i=i.replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",Ce(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+de(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Le(e,t,-n):de(""+n)+"."+ft("0",o[1].length);if(o=t.match(/^#,#*,#0/))return Le(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=F(Le(e,t.replace(/[\\-]/g,""),n)),a=0,F(F(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===n);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t-1);break;case" ":++t;break;default:++t;break}return!1}function ze(e,t,n,r){var i,o,a,s=[],l="",c=0,u="",h="t",d="H";while(c=12?"P":"A"),m.t="T",d="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",c+=5,d="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",c+=5,d="h"):(m.t="t",++c),null==i&&"T"===m.t)return"";s[s.length]=m,h=u;break;case"[":l=u;while("]"!==e.charAt(c++)&&c-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Fe(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){l=u;while(++c-1)l+=u;s[s.length]={t:"n",v:l};break;case"?":l=u;while(e.charAt(++c)===u)l+=u;s[s.length]={t:u,v:l},h=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===r?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=u;while(c-1)l+=e.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"t",v:u},++c;break}var g,v=0,b=0;for(c=s.length-1,h="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=d,h="h",v<1&&(v=1);break;case"s":(g=s[c].v.match(/\.0+$/))&&(b=Math.max(b,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=s[c].t;break;case"m":"s"===h&&(s[c].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[c].v.match(/[Hh]/)&&(v=1),v<2&&s[c].v.match(/[Mm]/)&&(v=2),v<3&&s[c].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M);break}var y,w="";for(c=0;c0){40==w.charCodeAt(0)?(x=t<0&&45===w.charCodeAt(0)?-t:t,k=Pe("n",w,x)):(x=t<0&&r>1?-t:t,k=Pe("n",w,x),x<0&&s[0]&&"t"==s[0].t&&(k=k.substr(1),s[0].v="-"+s[0].v)),y=k.length-1;var A=s.length;for(c=0;c-1){A=c;break}var E=s.length;if(A===s.length&&-1===k.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(y>=s[c].v.length-1?(y-=s[c].v.length,s[c].v=k.substr(y+1,s[c].v.length)):y<0?s[c].v="":(s[c].v=k.substr(0,y+1),y=-1),s[c].t="t",E=c);y>=0&&E=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(o=s[c].v.indexOf(".")>-1&&c===A?s[c].v.indexOf(".")-1:s[c].v.length-1,C=s[c].v.substr(o+1);o>=0;--o)y>=0&&("0"===s[c].v.charAt(o)||"#"===s[c].v.charAt(o))&&(C=k.charAt(y--)+C);s[c].v=C,s[c].t="t",E=c}for(y>=0&&E-1&&c===A?s[c].v.indexOf(".")+1:0,C=s[c].v.substr(0,o);o-1&&(x=r>1&&t<0&&c>0&&"-"===s[c-1].v?-t:t,s[c].v=Pe(s[c].t,s[c].v,x),s[c].t="t");var T="";for(c=0;c!==s.length;++c)null!=s[c]&&(T+=s[c].v);return T}var je=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Be(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function Ue(e,t){var n=Ie(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!==typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break;case 4:break}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var a=n[0].match(je),s=n[1].match(je);return Be(t,a)?[r,n[0]]:Be(t,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,o]}function He(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:K)[e],null==r&&(r=n.table&&n.table[Z[e]]||K[Z[e]]),null==r&&(r=X[e]||"General");break}if(_(r,0))return ce(t,n);t instanceof Date&&(t=re(t,n.date1904));var i=Ue(r,t);if(_(i[1]))return ce(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return ze(i[1],t,n,i[0])}function qe(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(void 0!=K[n]){if(K[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return K[t]=e,t}function We(){K=Y()}var _e={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ge=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ve(e){var t="number"==typeof e?K[e]:e;return t=t.replace(Ge,"(\\d+)"),new RegExp("^"+t+"$")}function Ye(e,t,n){var r=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(Ge)||[]).forEach((function(e,t){var c=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=c;break;case"d":o=c;break;case"h":a=c;break;case"s":l=c;break;case"m":a>=0?s=c:i=c;break}})),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var c=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==a&&-1==s&&-1==l?c:-1==r&&-1==i&&-1==o?u:c+"T"+u}var Ke=function(){var e={};function t(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=n,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var n=t();function r(e){var t=0,n=0,r=0,i="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!==typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return o}var i=r(n),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],h=i[6],d=i[7],f=i[8],p=i[9],m=i[10],g=i[11],v=i[12],b=i[13],y=i[14];function w(e,t){for(var r=-1^t,i=0,o=e.length;i>>8^n[255&(r^e.charCodeAt(i++))];return~r}function x(e,t){for(var r=-1^t,i=e.length-15,w=0;w>8&255]^v[e[w++]^r>>16&255]^g[e[w++]^r>>>24]^m[e[w++]]^p[e[w++]]^f[e[w++]]^d[e[w++]]^h[e[w++]]^u[e[w++]]^c[e[w++]]^l[e[w++]]^s[e[w++]]^a[e[w++]]^o[e[w++]]^n[e[w++]];i+=15;while(w>>8^n[255&(r^e[w++])];return~r}function k(e,t){for(var r=-1^t,i=0,o=e.length,a=0,s=0;i>>8^n[255&(r^a)]:a<2048?(r=r>>>8^n[255&(r^(192|a>>6&31))],r=r>>>8^n[255&(r^(128|63&a))]):a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(i++),r=r>>>8^n[255&(r^(240|a>>8&7))],r=r>>>8^n[255&(r^(128|a>>2&63))],r=r>>>8^n[255&(r^(128|s>>6&15|(3&a)<<4))],r=r>>>8^n[255&(r^(128|63&s))]):(r=r>>>8^n[255&(r^(224|a>>12&15))],r=r>>>8^n[255&(r^(128|a>>6&63))],r=r>>>8^n[255&(r^(128|63&a))]);return~r}return e.table=n,e.bstr=w,e.buf=x,e.str=k,e}(),Ze=function(){var t,n={};function r(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,o=0,a=Math.min(n.length,r.length);i>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=r<<4|t.getMonth()+1,r=r<<5|t.getDate(),e.write_shift(2,r)}function s(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n;n>>>=5;var o=15&n;n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(o-1),r.setDate(i);var a=31&t;t>>>=5;var s=63&t;return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(a<<1),r}function l(e){Zn(e,0);var t={},n=0;while(e.l<=e.length-4){var r=e.read_shift(2),i=e.read_shift(2),o=e.l+i,a={};switch(r){case 21589:n=e.read_shift(1),1&n&&(a.mtime=e.read_shift(4)),i>5&&(2&n&&(a.atime=e.read_shift(4)),4&n&&(a.ctime=e.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));break}e.l=o,t[r]=a}return t}function c(){return t||(t={})}function u(e,t){if(80==e[0]&&75==e[1])return Le(e,t);if(109==(32|e[0])&&105==(32|e[1]))return He(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n=3,r=512,i=0,o=0,a=0,s=0,l=0,c=[],u=e.slice(0,512);Zn(u,0);var m=h(u);switch(n=m[0],n){case 3:r=512;break;case 4:r=4096;break;case 0:if(0==m[1])return Le(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==r&&(u=e.slice(0,r),Zn(u,28));var v=e.slice(0,r);d(u,n);var w=u.read_shift(4,"i");if(3===n&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);u.l+=4,a=u.read_shift(4,"i"),u.l+=4,u.chk("00100000","Mini Stream Cutoff Size: "),s=u.read_shift(4,"i"),i=u.read_shift(4,"i"),l=u.read_shift(4,"i"),o=u.read_shift(4,"i");for(var x=-1,k=0;k<109;++k){if(x=u.read_shift(4,"i"),x<0)break;c[k]=x}var C=f(e,r);g(l,o,C,r,c);var A=b(C,a,c,r);A[a].name="!Directory",i>0&&s!==U&&(A[s].name="!MiniFAT"),A[c[0]].name="!FAT",A.fat_addrs=c,A.ssz=r;var E={},T=[],S=[],M=[];y(a,A,C,T,i,E,S,s),p(S,M,T),T.shift();var O={FileIndex:S,FullPaths:M};return t&&t.raw&&(O.raw={header:v,sectors:C}),O}function h(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(H,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function d(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function f(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i0&&a>=0)o.push(t.slice(a*B,a*B+B)),i-=B,a=Hn(n,4*a);return 0===o.length?Jn(0):L(o).slice(0,e.size)}function g(e,t,n,r,i){var o=U;if(e===U){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var a=n[e],s=(r>>>2)-1;if(!a)return;for(var l=0;l=0;){i[l]=!0,o[o.length]=l,a.push(e[l]);var u=n[Math.floor(4*l/r)];if(c=4*l&s,r<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[u])break;l=Hn(e[u],c)}return{nodes:o,data:gn([a])}}function b(e,t,n,r){var i=e.length,o=[],a=[],s=[],l=[],c=r-1,u=0,h=0,d=0,f=0;for(u=0;u=i&&(d-=i),!a[d]){l=[];var p=[];for(h=d;h>=0;){p[h]=!0,a[h]=!0,s[s.length]=h,l.push(e[h]);var m=n[Math.floor(4*h/r)];if(f=4*h&c,r<4+f)throw new Error("FAT boundary crossed: "+h+" 4 "+r);if(!e[m])break;if(h=Hn(e[m],f),p[h])break}o[d]={nodes:s,data:gn([l])}}return o}function y(e,t,n,r,i,o,a,s){for(var l,c=0,u=r.length?2:0,h=t[e].data,d=0,f=0;d0&&c!==U&&(t[c].name="!StreamData")):g.size>=4096?(g.storage="fat",void 0===t[g.start]&&(t[g.start]=v(n,g.start,t.fat_addrs,t.ssz)),t[g.start].name=g.name,g.content=t[g.start].data.slice(0,g.size)):(g.storage="minifat",g.size<0?g.size=0:c!==U&&g.start!==U&&t[c]&&(g.content=m(g,t[c].data,(t[s]||{}).data))),g.content&&Zn(g.content,0),o[l]=g,a.push(g)}}function w(e,t){return new Date(1e3*(Un(e,t+4)/1e7*Math.pow(2,32)+Un(e,t)/1e7-11644473600))}function x(e,n){return c(),u(t.readFileSync(e),n)}function k(t,n){var r=n&&n.type;switch(r||E&&e.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return x(t,n);case"base64":return u(O(A(t)),n);case"binary":return u(O(t),n)}return u(t,n)}function N(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),D(e)}function D(e){var t="Sh33tJ5";if(!Ze.find(e,"/"+t)){var n=Jn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),P(e)}}function P(e,t){N(e);for(var n=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var l=e.FileIndex[s];switch(l.type){case 0:a?n=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(l.R*l.L*l.C)&&(n=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(n=!0);break;default:n=!0;break}}if(n||t){var c=new Date(1987,1,19),u=0,h=Object.create?Object.create(null):{},d=[];for(s=0;s1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(u=s+1;u=d.length?-1:u,u=s+1;u=d.length?-1:u,p.type=1}else i(e.FullPaths[s+1]||"")==i(m)&&(p.R=s+1),p.type=2}}}function F(t,n){var r=n||{};if("mad"==r.fileType)return qe(t,r);switch(P(t),r.fileType){case"zip":return Ie(t,r)}var i=function(e){for(var t=0,n=0,r=0;r0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}var a=e.FullPaths.length+3>>2,s=t+7>>3,l=t+127>>7,c=s+n+a+l,u=c+127>>7,h=u<=109?0:Math.ceil((u-109)/127);while(c+u+h+127>>7>u)h=++u<=109?0:Math.ceil((u-109)/127);var d=[1,h,u,l,a,n,t,0];return e.FileIndex[0].size=t<<6,d[7]=(e.FileIndex[0].start=d[0]+d[1]+d[2]+d[3]+d[4]+d[5])+(d[6]+7>>3),d}(t),o=Jn(i[7]<<9),a=0,s=0;for(a=0;a<8;++a)o.write_shift(1,q[a]);for(a=0;a<8;++a)o.write_shift(2,0);for(o.write_shift(2,62),o.write_shift(2,3),o.write_shift(2,65534),o.write_shift(2,9),o.write_shift(2,6),a=0;a<3;++a)o.write_shift(2,0);for(o.write_shift(4,0),o.write_shift(4,i[2]),o.write_shift(4,i[0]+i[1]+i[2]+i[3]-1),o.write_shift(4,0),o.write_shift(4,4096),o.write_shift(4,i[3]?i[0]+i[1]+i[2]-1:U),o.write_shift(4,i[3]),o.write_shift(-4,i[1]?i[0]-1:U),o.write_shift(4,i[1]),a=0;a<109;++a)o.write_shift(-4,a>9)));l(i[6]+7>>3);while(511&o.l)o.write_shift(-4,_.ENDOFCHAIN);for(s=a=0,c=0;c=4096||(h.start=s,l(u+63>>6)));while(511&o.l)o.write_shift(-4,_.ENDOFCHAIN);for(a=0;a=4096)if(o.l=h.start+1<<9,E&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+511&-512;else{for(c=0;c0&&h.size<4096)if(E&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+63&-64;else{for(c=0;c>16|t>>8|t)}for(var te="undefined"!==typeof Uint8Array,ne=te?new Uint8Array(256):[],re=0;re<256;++re)ne[re]=ee(re);function ie(e,t){var n=ne[255&e];return t<=8?n>>>8-t:(n=n<<8|ne[e>>8&255],t<=16?n>>>16-t:(n=n<<8|ne[e>>16&255],n>>>24-t))}function oe(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function ae(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function se(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}function le(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function ce(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function ue(e,t,n){var r=7&t,i=t>>>3,o=(1<>>r;return n<8-r?a&o:(a|=e[i+1]<<8-r,n<16-r?a&o:(a|=e[i+2]<<16-r,n<24-r||(a|=e[i+3]<<24-r),a&o))}function he(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<>8-r),t+3}function de(e,t,n){var r=7&t,i=t>>>3;return n=(1&n)<>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=n,t+8}function pe(e,t,n){var r=7&t,i=t>>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=255&n,e[i+2]=n>>>8,t+16}function me(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(E){var o=M(r);if(e.copy)e.copy(o);else for(;i>r-h,a=(1<=0;--a)t[s|a<0)t[t.l++]=e[n++]}return t.l}function o(t,n){var i=0,o=0,a=te?new Uint16Array(32768):[];while(o0)n[n.l++]=t[o++];i=8*n.l}else{i=he(n,i,+!(o+s!=t.length)+2);var l=0;while(s-- >0){var c=t[o];l=32767&(l<<5^c);var u=-1,h=0;if((u=a[l])&&(u|=-32768&o,u>o&&(u-=32768),u2){c=r[h],c<=22?i=fe(n,i,ne[c+1]>>1)-1:(fe(n,i,3),i+=5,fe(n,i,ne[c-23]>>5),i+=3);var d=c<8?0:c-4>>2;d>0&&(pe(n,i,h-Q[c]),i+=d),c=e[o-u],i=fe(n,i,ne[c]>>3),i-=3;var f=c<4?0:c-2>>1;f>0&&(pe(n,i,o-u-$[c]),i+=f);for(var p=0;p>8-p;for(var m=(1<<7-p)-1;m>=0;--m)Ee[f|m<>>=3){case 16:o=3+oe(e,t),t+=2,f=g[g.length-1];while(o-- >0)g.push(f);break;case 17:o=3+ae(e,t),t+=3;while(o-- >0)g.push(0);break;case 18:o=11+ce(e,t),t+=7;while(o-- >0)g.push(0);break;default:g.push(f),l>>0,s=0,l=0;while(0==(1&r))if(r=ae(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=Me(e,n),s=Te,l=Se);;){!t&&a>>1==1?be[c]:Ce[c];if(n+=15&u,u>>>=4,0===(u>>>8&255))i[o++]=u;else{if(256==u)break;u-=257;var h=u<8?0:u-4>>2;h>5&&(h=0);var d=o+Q[u];h>0&&(d+=ue(e,n,h),n+=h),c=ue(e,n,l),u=r>>>1==1?ye[c]:Ae[c],n+=15&u,u>>>=4;var f=u<4?0:u-2>>1,p=$[u];f>0&&(p+=ue(e,n,f),n+=f),!t&&a>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0){!t&&a0)i[o++]=e[n>>>3],n+=8}}return t?[i,n+7>>>3]:[i.slice(0,o),n+7>>>3]}function Ne(e,t){var n=e.slice(e.l||0),r=Oe(n,t);return e.l+=r[1],r[0]}function De(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function Le(e,t){var n=e;Zn(n,0);var r=[],i=[],o={FileIndex:r,FullPaths:i};N(o,{root:t.root});var a=n.length-4;while((80!=n[a]||75!=n[a+1]||5!=n[a+2]||6!=n[a+3])&&a>=0)--a;n.l=a+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var c=n.read_shift(4);for(n.l=c,a=0;a0)if(r=r.slice(0,r.length-1),r=r.slice(0,r.lastIndexOf("/")+1),a.slice(0,r.length)==r)break;var s=(i[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var l="--"+(s[1]||""),c=[],u=[],h={FileIndex:c,FullPaths:u};N(h);var d,f=0;for(o=0;o=32&&p<128&&++d;var g=d>=4*f/5;o.push(i),o.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),o.push("Content-Type: "+Fe(l,s)),o.push(""),o.push(g?je(h):ze(h))}return o.push(i+"--\r\n"),o.join("\r\n")}function We(e){var t={};return N(t,e),t}function _e(e,t,n,r){var i=r&&r.unsafe;i||N(e);var a=!i&&Ze.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),a={name:o(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),i||Ze.utils.cfb_gc(e)}return a.content=n,a.size=n?n.length:0,r&&(r.CLSID&&(a.clsid=r.CLSID),r.mt&&(a.mt=r.mt),r.ct&&(a.ct=r.ct)),a}function Ge(e,t){N(e);var n=Ze.find(e,t);if(n)for(var r=0;r3&&(r=!0),i[o].slice(i[o].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[o].slice(i[o].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60;case"S":break}t+=n*parseInt(i[o],10)}return t}var st=new Date("2017-02-19T19:06:09.000Z"),lt=isNaN(st.getFullYear())?new Date("2/19/17"):st,ct=2017==lt.getFullYear();function ut(e,t){var n=new Date(e);if(ct)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==lt.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function ht(t,n){if(E&&e.isBuffer(t)){if(n){if(255==t[0]&&254==t[1])return Qt(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Qt(m(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(n){if(255==t[0]&&254==t[1])return Qt(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Qt(new TextDecoder("utf-16be").decode(t.slice(2)))}var r={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(a){}for(var i=[],o=0;o!=t.length;++o)i.push(String.fromCharCode(t[o]));return i.join("")}function dt(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=dt(e[n]));return t}function ft(e,t){var n="";while(n.length3&&-1==mt.indexOf(a))return n}else if(a.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||o>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var vt=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var i=t.split(n),o=[i[0]],a=1;a\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Lt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Pt=/<[^>]*>/g,It=Nt.match(Lt)?Lt:Pt,Rt=/<\w*:/,Ft=/<(\/?)\w+:/;function zt(e,t,n){for(var r={},i=0,o=0;i!==e.length;++i)if(32===(o=e.charCodeAt(i))||10===o||13===o)break;if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var a=e.match(Dt),s=0,l="",c=0,u="",h="",d=1;if(a)for(c=0;c!=a.length;++c){for(h=a[c],o=0;o!=h.length;++o)if(61===h.charCodeAt(o))break;u=h.slice(0,o).trim();while(32==h.charCodeAt(o+1))++o;for(d=34==(i=h.charCodeAt(o+1))||39==i?1:0,l=h.slice(o+1+d,h.length-d),s=0;s!=u.length;++s)if(58===u.charCodeAt(s))break;if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=l,n||(r[u.toLowerCase()]=l);else{var f=(5===s&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(s+1);if(r[f]&&"ext"==u.slice(s-3,s))continue;r[f]=l,n||(r[f.toLowerCase()]=l)}}return r}function jt(e){return e.replace(Ft,"<$1")}var Bt={""":'"',"'":"'",">":">","<":"<","&":"&"},Ut=$e(Bt),Ht=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",o=i.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var a=i.indexOf("]]>");return n(i.slice(0,o))+i.slice(o+9,a)+n(i.slice(a+3))}}(),qt=/[&<>'"]/g;var Wt=/[\u0000-\u001f]/g;function _t(e){var t=e+"";return t.replace(qt,(function(e){return Ut[e]})).replace(/\n/g,"
").replace(Wt,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Gt=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function Vt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Yt(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0;while(n191&&r<224?(a=(31&r)<<6,a|=63&i,t+=String.fromCharCode(a)):(o=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o):(a=e.charCodeAt(n++),s=((7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function Kt(e){var t,n,r,i=S(2*e.length),o=1,a=0,s=0;for(n=0;n>>10&1023),t=56320+(1023&t)),0!==s&&(i[a++]=255&s,i[a++]=s>>>8,s=0),i[a++]=t%256,i[a++]=t>>>8;return i.slice(0,a).toString("ucs2")}function Zt(e){return T(e,"binary").toString("utf8")}var Xt="foo bar baz☃🍣",Jt=E&&(Zt(Xt)==Yt(Xt)&&Zt||Kt(Xt)==Yt(Xt)&&Kt)||Yt,Qt=E?function(e){return T(e,"utf8").toString("binary")}:function(e){var t=[],n=0,r=0,i=0;while(n>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},$t=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),en=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),r=0;r([\\s\\S]*?)","g")}}(),nn=/<\/?(?:vt:)?variant>/g,rn=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function cn(t){if(E&&e.isBuffer(t))return t.toString("utf8");if("string"===typeof t)return t;if("undefined"!==typeof Uint8Array&&t instanceof Uint8Array)return Jt(N(D(t)));throw new Error("Bad input format: expected Buffer or string")}var un=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,hn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},dn=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function fn(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],o=5;o>=0;--o)i=256*i+e[t+o];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function pn(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=r?-t:t;isFinite(a)?0==a?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o>4|r}var mn=function(e){for(var t=[],n=10240,r=0;r0&&e.isBuffer(t[0][0])?e.concat(t[0].map((function(t){return e.isBuffer(t)?t:T(t)}))):mn(t)}:mn,vn=function(e,t,n){for(var r=[],i=t;i0?kn(e,t+4,t+4+n-1):""},An=Cn,En=function(e,t){var n=Un(e,t);return n>0?kn(e,t+4,t+4+n-1):""},Tn=En,Sn=function(e,t){var n=2*Un(e,t);return n>0?kn(e,t+4,t+4+n-1):""},Mn=Sn,On=function(e,t){var n=Un(e,t);return n>0?bn(e,t+4,t+4+n):""},Nn=On,Dn=function(e,t){var n=Un(e,t);return n>0?kn(e,t+4,t+4+n):""},Ln=Dn,Pn=function(e,t){return fn(e,t)},In=Pn,Rn=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function Fn(){bn=function(e,t,n){return g.utils.decode(1200,e.slice(t,n)).replace(I,"")},kn=function(e,t,n){return g.utils.decode(65001,e.slice(t,n))},An=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(a,e.slice(t+4,t+4+n-1)):""},Tn=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(o,e.slice(t+4,t+4+n-1)):""},Mn=function(e,t){var n=2*Un(e,t);return n>0?g.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},Nn=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(1200,e.slice(t+4,t+4+n)):""},Ln=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(65001,e.slice(t+4,t+4+n)):""}}E&&(An=function(t,n){if(!e.isBuffer(t))return Cn(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Tn=function(t,n){if(!e.isBuffer(t))return En(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Mn=function(t,n){if(!e.isBuffer(t))return Sn(t,n);var r=2*t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r-1)},Nn=function(t,n){if(!e.isBuffer(t))return On(t,n);var r=t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r)},Ln=function(t,n){if(!e.isBuffer(t))return Dn(t,n);var r=t.readUInt32LE(n);return t.toString("utf8",n+4,n+4+r)},In=function(t,n){return e.isBuffer(t)?t.readDoubleLE(n):Pn(t,n)},Rn=function(t){return e.isBuffer(t)||Array.isArray(t)||"undefined"!==typeof Uint8Array&&t instanceof Uint8Array}),"undefined"!==typeof g&&Fn();var zn=function(e,t){return e[t]},jn=function(e,t){return 256*e[t+1]+e[t]},Bn=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Un=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Hn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},qn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Wn(t,n){var r,i,a,s,l,c,u="",h=[];switch(n){case"dbcs":if(c=this.l,E&&e.isBuffer(this))u=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l0?Hn:qn)(this,this.l),this.l+=4,r):(i=Un(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return i=8==t?In(this,this.l):In([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:u=wn(this,this.l,t);break}}return this.l+=t,u}var _n=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},Gn=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Vn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Yn(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)Vn(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){if("undefined"!==typeof g&&874==a)for(i=0;i!=t.length;++i){var o=g.utils.encode(a,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i>8}while(this.l>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,_n(this,t,this.l);break;case 8:if(r=8,"f"===n){pn(this,t,this.l);break}case 16:break;case-4:r=4,Gn(this,t,this.l);break}}return this.l+=r,this}function Kn(e,t){var n=wn(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Zn(e,t){e.l=t,e.read_shift=Wn,e.chk=Kn,e.write_shift=Yn}function Xn(e,t){e.l+=t}function Jn(e){var t=S(e);return Zn(t,0),t}function Qn(e,t,n){if(e){var r,i,o;Zn(e,e.l||0);var a=e.length,s=0,l=0;while(e.lr.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},o=function(e){return r&&e=256)r.c-=256;while(r.r>=65536)r.r-=65536}return r}function tr(e,t,n){var r=dt(e);return r.s=er(r.s,t.s,n),r.e=er(r.e,t.s,n),r}function nr(e,t){if(e.cRel&&e.c<0){e=dt(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=dt(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var n=pr(e);return e.cRel||null==e.cRel||(n=ur(n)),e.rRel||null==e.rRel||(n=ar(n)),n}function rr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?nr(e.s,t.biff)+":"+nr(e.e,t.biff):(e.s.rRel?"":"$")+or(e.s.r)+":"+(e.e.rRel?"":"$")+or(e.e.r):(e.s.cRel?"":"$")+cr(e.s.c)+":"+(e.e.cRel?"":"$")+cr(e.e.c)}function ir(e){return parseInt(sr(e),10)-1}function or(e){return""+(e+1)}function ar(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function sr(e){return e.replace(/\$(\d+)$/,"$1")}function lr(e){for(var t=hr(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function cr(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function ur(e){return e.replace(/^([A-Z])/,"$$$1")}function hr(e){return e.replace(/^\$([A-Z])/,"$1")}function dr(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function fr(e){for(var t=0,n=0,r=0;r=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function pr(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function mr(e){var t=e.indexOf(":");return-1==t?{s:fr(e),e:fr(e)}:{s:fr(e.slice(0,t)),e:fr(e.slice(t+1))}}function gr(e,t){return"undefined"===typeof t||"number"===typeof t?gr(e.s,e.e):("string"!==typeof e&&(e=pr(e)),"string"!==typeof t&&(t=pr(t)),e==t?e:e+":"+t)}function vr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,o=e.length;for(n=0;r26)break;n=26*n+i}for(t.s.c=--n,n=0;r9)break;n=10*n+i}if(t.s.r=--n,r===o||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=o;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.e.c=--n,n=0;r!=o;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return t.e.r=--n,t}function br(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=He(e.z,n?tt(t):t)}catch(r){}try{return e.w=He((e.XF||{}).numFmtId||(n?14:0),n?tt(t):t)}catch(r){return""+t}}function yr(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?ci[e.v]||e.v:br(e,void 0==t?e.v:t))}function wr(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function xr(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=w&&null==i&&(i=w);var o=e||(i?[]:{}),a=0,s=0;if(o&&null!=r.origin){if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?fr(r.origin):r.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=vr(o["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==a&&(c.e.r=a=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[h].length;++d)if("undefined"!==typeof t[h][d]){var f={v:t[h][d]},p=a+h,m=s+d;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r>2;return n?i/100:i}function Rr(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Fr=Rr;function zr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function jr(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var c=li[i];c&&(t.rgb=Ns(c));break;case 2:t.rgb=Ns([a,s,l]);break;case 3:t.theme=i;break}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}function Br(e){var t=e.read_shift(1);e.l++;var n={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return n}function Ur(e,t){var n={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return n[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function Hr(e){return Ur(e,1)}function qr(e){return Ur(e,2)}var Wr=2,_r=3,Gr=11,Vr=12,Yr=19,Kr=64,Zr=65,Xr=71,Jr=4108,Qr=4126,$r=80,ei=81,ti=[$r,ei],ni={1:{n:"CodePage",t:Wr},2:{n:"Category",t:$r},3:{n:"PresentationFormat",t:$r},4:{n:"ByteCount",t:_r},5:{n:"LineCount",t:_r},6:{n:"ParagraphCount",t:_r},7:{n:"SlideCount",t:_r},8:{n:"NoteCount",t:_r},9:{n:"HiddenCount",t:_r},10:{n:"MultimediaClipCount",t:_r},11:{n:"ScaleCrop",t:Gr},12:{n:"HeadingPairs",t:Jr},13:{n:"TitlesOfParts",t:Qr},14:{n:"Manager",t:$r},15:{n:"Company",t:$r},16:{n:"LinksUpToDate",t:Gr},17:{n:"CharacterCount",t:_r},19:{n:"SharedDoc",t:Gr},22:{n:"HyperlinksChanged",t:Gr},23:{n:"AppVersion",t:_r,p:"version"},24:{n:"DigSig",t:Zr},26:{n:"ContentType",t:$r},27:{n:"ContentStatus",t:$r},28:{n:"Language",t:$r},29:{n:"Version",t:$r},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ri={1:{n:"CodePage",t:Wr},2:{n:"Title",t:$r},3:{n:"Subject",t:$r},4:{n:"Author",t:$r},5:{n:"Keywords",t:$r},6:{n:"Comments",t:$r},7:{n:"Template",t:$r},8:{n:"LastAuthor",t:$r},9:{n:"RevNumber",t:$r},10:{n:"EditTime",t:Kr},11:{n:"LastPrinted",t:Kr},12:{n:"CreatedDate",t:Kr},13:{n:"ModifiedDate",t:Kr},14:{n:"PageCount",t:_r},15:{n:"WordCount",t:_r},16:{n:"CharCount",t:_r},17:{n:"Thumbnail",t:Xr},18:{n:"Application",t:$r},19:{n:"DocSecurity",t:_r},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ii={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},oi=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ai(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var si=ai([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),li=dt(si),ci={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ui={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},hi={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function di(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function fi(e){var t=di();if(!e||!e.match)return t;var n={};if((e.match(It)||[]).forEach((function(e){var r=zt(e);switch(r[0].replace(Rt,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}var pi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function mi(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function gi(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(It)||[]).forEach((function(e){var i=zt(e);if("]*>([\\s\\S]*?)")}return e}();function xi(e){var t={};e=Jt(e);for(var n=0;n0&&(t[r[1]]=Ht(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=ut(t[r[1]]))}return t}var ki=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ci(e,t,n,r){var i=[];if("string"==typeof e)i=on(e,r);else for(var o=0;o0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=a.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=a.slice(s,s+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=a.slice(s,s+l);break}s+=l}}function Ai(e,t,n){var r={};return t||(t={}),e=Jt(e),ki.forEach((function(n){var i=(e.match($t(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Ht(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var o=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"));o&&o.length>0&&(r[n[1]]=o[1]);break}})),r.HeadingPairs&&r.TitlesOfParts&&Ci(r.HeadingPairs,r.TitlesOfParts,t,n),t}var Ei=/<[^>]+>[^<]*/g;function Ti(e,t){var n={},r="",i=e.match(Ei);if(i)for(var o=0;o!=i.length;++o){var a=i[o],s=zt(a);switch(s[0]){case"":r=null;break;default:if(0===a.indexOf(""),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[r]=Ht(u);break;case"bool":n[r]=Vt(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=ut(u);break;case"cy":case"error":n[r]=Ht(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",a,c,l)}}else if(">3<<2),r}function Hi(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function qi(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Wi(e,t,n){var r,i=e.read_shift(2),o=n||{};if(e.l+=2,t!==Vr&&i!==t&&-1===ti.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(t===Vr?i:t){case 2:return r=e.read_shift(2,"i"),o.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i"),r;case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4),r;case 30:return Di(e,i,4).replace(I,"");case 31:return Li(e);case 64:return Ni(e);case 65:return Hi(e);case 71:return qi(e);case 80:return Ii(e,i,!o.raw).replace(I,"");case 81:return Ri(e,i).replace(I,"");case 4108:return Bi(e);case 4126:case 4127:return 4127==i?Fi(e):zi(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function _i(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0,s=0,l=-1,c={};for(a=0;a!=i;++a){var u=e.read_shift(4),d=e.read_shift(4);o[a]=[u,d+n]}o.sort((function(e,t){return e[1]-t[1]}));var f={};for(a=0;a!=i;++a){if(e.l!==o[a][1]){var p=!0;if(a>0&&t)switch(t[o[a-1][0]].t){case 2:e.l+2===o[a][1]&&(e.l+=2,p=!1);break;case 80:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break;case 4108:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break}if((!t||0==a)&&e.l<=o[a][1]&&(p=!1,e.l=o[a][1]),p)throw new Error("Read Error: Expected address "+o[a][1]+" at "+e.l+" :"+a)}if(t){var m=t[o[a][0]];if(f[m.n]=Wi(e,m.t,{raw:!0}),"version"===m.p&&(f[m.n]=String(f[m.n]>>16)+"."+("0000"+String(65535&f[m.n])).slice(-4)),"CodePage"==m.n)switch(f[m.n]){case 0:f[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(s=f[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[m.n])}}else if(1===o[a][0]){if(s=f.CodePage=Wi(e,Wr),h(s),-1!==l){var g=e.l;e.l=o[l][1],c=Ui(e,s),e.l=g}}else if(0===o[a][0]){if(0===s){l=a,e.l=o[a+1][1];continue}c=Ui(e,s)}else{var v,b=c[o[a][0]];switch(e[e.l]){case 65:e.l+=4,v=Hi(e);break;case 30:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=Ki(e,4);break;case 64:e.l+=4,v=ut(Ni(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[b]=v}}return e.l=n+r,f}function Gi(e,t,n){var r=e.content;if(!r)return{};Zn(r,0);var i,o,a,s,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==Ze.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(i=r.read_shift(4),1!==i&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(o=r.read_shift(16),s=r.read_shift(4),1===i&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);2===i&&(a=r.read_shift(16),l=r.read_shift(4));var h,d=_i(r,t),f={SystemIdentifier:c};for(var p in d)f[p]=d[p];if(f.FMTID=o,1===i)return f;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{h=_i(r,null)}catch(m){}for(p in h)f[p]=h[p];return f.FMTID=[o,a],f}function Vi(e,t){return e.read_shift(t),null}function Yi(e,t,n){var r=[],i=e.l+t;while(e.l=12?2:1),i="sbcs-cont",a=o;if(n&&n.biff>=8&&(o=1200),n&&8!=n.biff)12==n.biff&&(i="wstr");else{var s=e.read_shift(1);s&&(i="dbcs-cont")}n.biff>=2&&n.biff<=5&&(i="cpstr");var l=r?e.read_shift(r,i):"";return o=a,l}function $i(e){var t=o;o=1200;var n,r=e.read_shift(2),i=e.read_shift(1),a=4&i,s=8&i,l=1+(1&i),c=0,u={};s&&(c=e.read_shift(2)),a&&(n=e.read_shift(4));var h=2==l?"dbcs-cont":"sbcs-cont",d=0===r?"":e.read_shift(r,h);return s&&(e.l+=4*c),a&&(e.l+=n),u.t=d,s||(u.raw=""+u.t+"",u.r=u.t),o=t,u}function eo(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return r=0===i?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),r}function to(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):eo(e,r,n)}function no(e,t,n){if(n.biff>5)return to(e,t,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ro(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}function io(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(I,"");return r&&(e.l+=24),i}function oo(e){var t=e.read_shift(2),n="";while(t-- >0)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(0===i)return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var a=e.read_shift(o>>1,"utf16le").replace(I,"");return n+a}function ao(e,t){var n=e.read_shift(16);switch(t-=16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return io(e,t);case"0303000000000000c000000000000046":return oo(e,t);default:throw new Error("Unsupported Moniker "+n)}}function so(e){var t=e.read_shift(4),n=t>0?e.read_shift(t,"utf16le").replace(I,""):"";return n}function lo(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var o,a,s,l,c,u,h="";16&i&&(o=so(e,n-e.l)),128&i&&(a=so(e,n-e.l)),257===(257&i)&&(s=so(e,n-e.l)),1===(257&i)&&(l=ao(e,n-e.l)),8&i&&(h=so(e,n-e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=Ni(e)),e.l=n;var d=a||s||l||"";d&&h&&(d+="#"+h),d||(d="#"+h),2&i&&"/"==d.charAt(0)&&"/"!=d.charAt(1)&&(d="file://"+d);var f={Target:d};return c&&(f.guid=c),u&&(f.time=u),o&&(f.Tooltip=o),f}function co(e){var t=e.read_shift(1),n=e.read_shift(1),r=e.read_shift(1),i=e.read_shift(1);return[t,n,r,i]}function uo(e,t){var n=co(e,t);return n[3]=0,n}function ho(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return{r:t,c:n,ixfe:r}}function fo(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}function po(e,t,n){return 0===t?"":no(e,t,n)}function mo(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),o=e.read_shift(r,"i"),a=e.read_shift(r,"i");return[i,o,a]}function go(e){var t=e.read_shift(2),n=Ir(e);return[t,n]}function vo(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=Qi(e,t,n),o=e.read_shift(2);if(r-=e.l,o!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+o);return e.l+=o,i}function bo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(1),i=e.read_shift(1);return{s:{c:r,r:t},e:{c:i,r:n}}}var wo=yo;function xo(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function ko(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Co(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Ao(e){e.l+=2,e.l+=e.read_shift(2)}var Eo={0:Ao,4:Ao,5:Ao,6:Ao,7:Co,8:Ao,9:Ao,10:Ao,11:Ao,12:Ao,13:ko,14:Ao,15:Ao,16:Ao,17:Ao,18:Ao,19:Ao,20:Ao,21:xo};function To(e,t){var n=e.l+t,r=[];while(e.l=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function Mo(e,t){return 0===t||e.read_shift(2),1200}function Oo(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=no(e,0,n);return e.read_shift(t+r-e.l),i}function No(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}function Do(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),o=e.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule";break}var a=Qi(e,0,n);return 0===a.length&&(a="Sheet1"),{pos:r,hs:i,dt:o,name:a}}function Lo(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0;a!=i&&e.l>15),i&=32767);var o={Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3};return[o,i]}function jo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,n],Dim:[r,i],Flags:o,CurTab:a,FirstTab:s,Selected:l,TabRatio:c}}function Bo(e,t,n){if(n&&n.biff>=2&&n.biff<5)return{};var r=e.read_shift(2);return{RTL:64&r}}function Uo(){}function Ho(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return r.name=Qi(e,0,n),r}function qo(e){var t=ho(e);return t.isst=e.read_shift(4),t}function Wo(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=e.l+t,i=ho(e,6);2==n.biff&&e.l++;var o=to(e,r-e.l,n);return i.val=o,i}function _o(e,t,n){var r=e.read_shift(2),i=no(e,0,n);return[r,i]}var Go=no;function Vo(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,o=e.read_shift(i),a=e.read_shift(i),s=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:o,c:s},e:{r:a,c:l}}}function Yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=go(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}function Ko(e,t){var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),o=[];while(e.l>26],r.cellStyles?(i.alc=7&o,i.fWrap=o>>3&1,i.alcV=o>>4&7,i.fJustLast=o>>7&1,i.trot=o>>8&255,i.cIndent=o>>16&15,i.fShrinkToFit=o>>20&1,i.iReadOrder=o>>22&2,i.fAtrNum=o>>26&1,i.fAtrFnt=o>>27&1,i.fAtrAlc=o>>28&1,i.fAtrBdr=o>>29&1,i.fAtrPat=o>>30&1,i.fAtrProt=o>>31&1,i.dgLeft=15&a,i.dgRight=a>>4&15,i.dgTop=a>>8&15,i.dgBottom=a>>12&15,i.icvLeft=a>>16&127,i.icvRight=a>>23&127,i.grbitDiag=a>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}function Jo(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,t-=6,r.data=Xo(e,t,r.fStyle,n),r}function Qo(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function $o(e,t,n){var r=ho(e,6);2!=n.biff&&9!=t||++e.l;var i=Ji(e,2);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}function ea(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=ho(e,6),i=zr(e,8);return r.val=i,r}var ta=po;function na(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(2);if(n.sbcch=o,1025==o||14849==o)return[o,i];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);var a=eo(e,o),s=[];while(r>e.l)s.push(to(e));return[o,i,a,s]}function ra(e,t,n){var r,i=e.read_shift(2),o={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=vo(e,t-2,n)),o.body=r||e.read_shift(t-2),"string"===typeof r&&(o.Name=r),o}var ia=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function oa(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(1),a=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var c=eo(e,a,n);32&i&&(c=ia[c.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==s&&u>0?Fu(e,u,n,s):[];return{chKey:o,Name:c,itab:l,rgce:h}}function aa(e,t,n){if(n.biff<8)return sa(e,t,n);var r=[],i=e.l+t,o=e.read_shift(n.biff>8?4:2);while(0!==o--)r.push(mo(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function sa(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Qi(e,t,n);return 3==r.charCodeAt(0)?r.slice(1):r}function la(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=eo(e,r,n),a=eo(e,i,n);return[o,a]}e.l+=t}function ca(e,t,n){var r=yo(e,6);e.l++;var i=e.read_shift(1);return t-=8,[zu(e,t,n),i,r]}function ua(e,t,n){var r=wo(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Iu(e,t,n,r)]}function ha(e){var t=0!==e.read_shift(4),n=0!==e.read_shift(4),r=e.read_shift(4);return[t,n,r]}function da(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=no(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},s,a,o]}}function fa(e,t,n){return da(e,t,n)}function pa(e,t){var n=[],r=e.read_shift(2);while(r--)n.push(bo(e,t));return n}function ma(e,t,n){if(n&&n.biff<8)return va(e,t,n);var r=xo(e,22),i=To(e,t-22,r[1]);return{cmo:r,ft:i}}var ga={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function va(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var a=[];return a.push((ga[r]||Xn)(e,t,n)),{cmo:[i,r,o],ft:a}}function ba(e,t,n){var r=e.l,i="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:ro(e,6,n);var a=e.read_shift(2);e.read_shift(2),Zi(e,2);var s=e.read_shift(2);e.l+=s;for(var l=1;l=(c?a:2*a))break}if(i.length!==a&&i.length!==2*a)throw new Error("cchText: "+a+" != "+i.length);return e.l=r+t,{t:i}}catch(h){return e.l=r+t,{t:i}}}function ya(e,t){var n=bo(e,8);e.l+=16;var r=lo(e,t-24);return[n,r]}function wa(e,t){e.read_shift(2);var n=bo(e,8),r=e.read_shift((t-10)/2,"dbcs-cont");return r=r.replace(I,""),[n,r]}function xa(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=ii[t]||t,t=e.read_shift(2),n[1]=ii[t]||t,n}function ka(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Ca(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Aa(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function Ea(e,t,n){if(!n.cellStyles)return Xn(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:o,w:a,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}function Ta(e,t){var n={};return t<32||(e.l+=16,n.header=zr(e,8),n.footer=zr(e,8),e.l+=2),n}function Sa(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}var Ma=ho,Oa=Xi,Na=to;function Da(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}function La(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=ho(e,6);++e.l;var i=no(e,t-7,n);return r.t="str",r.val=i,r}function Pa(e){var t=ho(e,6);++e.l;var n=zr(e,8);return t.t="n",t.val=n,t}function Ia(e){var t=ho(e,6);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}function Ra(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}function Fa(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function za(e,t,n){var r=e.l+t,i=ho(e,6),o=e.read_shift(2),a=eo(e,o,n);return e.l=r,i.t="str",i.val=a,i}var ja=[2,3,48,49,131,139,140,245],Ba=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=$e({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=[],i=S(1);switch(n.type){case"base64":i=O(A(t));break;case"binary":i=O(t);break;case"buffer":case"array":i=t;break}Zn(i,0);var o=i.read_shift(1),a=!!(136&o),s=!1,l=!1;switch(o){case 2:break;case 3:break;case 48:s=!0,a=!0;break;case 49:s=!0,a=!0;break;case 131:break;case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+o.toString(16))}var c=0,u=521;2==o&&(c=i.read_shift(2)),i.l+=3,2!=o&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=o&&(u=i.read_shift(2));var h=i.read_shift(2),d=n.codepage||1252;2!=o&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(d=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);var f=[],p={},m=Math.min(i.length,2==o?521:u-10-(s?264:0)),v=l?32:11;while(i.l0)if(42!==i[i.l])for(++i.l,r[++b]=[],y=0,y=0;y!=f.length;++y){var w=i.slice(i.l,i.l+f[y].len);i.l+=f[y].len,Zn(w,0);var x=g.utils.decode(d,w);switch(f[y].type){case"C":x.trim().length&&(r[b][y]=x.replace(/\s+$/,""));break;case"D":8===x.length?r[b][y]=new Date(+x.slice(0,4),+x.slice(4,6)-1,+x.slice(6,8)):r[b][y]=x;break;case"F":r[b][y]=parseFloat(x.trim());break;case"+":case"I":r[b][y]=l?2147483648^w.read_shift(-4,"i"):w.read_shift(4,"i");break;case"L":switch(x.trim().toUpperCase()){case"Y":case"T":r[b][y]=!0;break;case"N":case"F":r[b][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+x+"|")}break;case"M":if(!a)throw new Error("DBF Unexpected MEMO for type "+o.toString(16));r[b][y]="##MEMO##"+(l?parseInt(x.trim(),10):w.read_shift(4));break;case"N":x=x.replace(/\u0000/g,"").trim(),x&&"."!=x&&(r[b][y]=+x||0);break;case"@":r[b][y]=new Date(w.read_shift(-8,"f")-621356832e5);break;case"T":r[b][y]=new Date(864e5*(w.read_shift(4)-2440588)+w.read_shift(4));break;case"Y":r[b][y]=w.read_shift(4,"i")/1e4+w.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[b][y]=-w.read_shift(-8,"f");break;case"B":if(s&&8==f[y].len){r[b][y]=w.read_shift(8,"f");break}case"G":case"P":w.l+=f[y].len;break;case"0":if("_NullFlags"===f[y].name)break;default:throw new Error("DBF Unsupported data type "+f[y].type)}}else i.l+=h;if(2!=o&&i.l=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=$n(),s=hp(e,{header:1,raw:!0,cellDates:!0}),l=s[0],c=s.slice(1),u=e["!cols"]||[],d=0,f=0,p=0,m=1;for(d=0;d250&&(k=250),x=((u[d]||{}).DBF||{}).type,"C"==x&&u[d].DBF.len>k&&(k=u[d].DBF.len),"B"==w&&"N"==x&&(w="N",y[d]=u[d].DBF.dec,k=u[d].DBF.len),b[d]="C"==w||"N"==x?k:o[w]||0,m+=b[d],v[d]=w}else v[d]="?"}var A=i.next(32);for(A.write_shift(4,318902576),A.write_shift(4,c.length),A.write_shift(2,296+32*p),A.write_shift(2,m),d=0;d<4;++d)A.write_shift(4,0);for(A.write_shift(4,0|(+t[a]||3)<<8),d=0,f=0;d":190,"?":191,"{":223},n=new RegExp("N("+Qe(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(e,n){var r=t[n];return"number"==typeof r?y(r):r},i=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:y(r)};function o(t,n){switch(n.type){case"base64":return a(A(t),n);case"binary":return a(t,n);case"buffer":return a(E&&e.isBuffer(t)?t.toString("binary"):N(t),n);case"array":return a(ht(t),n)}throw new Error("Unrecognized type "+n.type)}function a(e,t){var o,a=e.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,d=[],f=[],p=null,m={},v=[],b=[],y=[],w=0;for(+t.codepage>=0&&h(+t.codepage);c!==a.length;++c){w=0;var x,k=a[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,r),C=k.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),A=C[0];if(k.length>0)switch(A){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==C[1].charAt(0)&&f.push(k.slice(3).replace(/;;/g,";"));break;case"C":var E=!1,T=!1,S=!1,M=!1,O=-1,N=-1;for(u=1;u-1&&d[O][N];if(!L||!L[1])throw new Error("SYLK shared formula cannot find base");d[s][l][1]=tc(L[1],{r:s-O,c:l-N})}break;case"F":var P=0;for(u=1;u0?(v[s].hpt=w,v[s].hpx=Ys(w)):0===w&&(v[s].hidden=!0);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}P<1&&(p=null);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}}return v.length>0&&(m["!rows"]=v),b.length>0&&(m["!cols"]=b),t&&t.sheetRows&&(d=d.slice(0,t.sheetRows)),[d,m]}function s(e,t){var n=o(e,t),r=n[0],i=n[1],a=kr(r,t);return Qe(i).forEach((function(e){a[e]=i[e]})),a}function l(e,t){return wr(s(e,t),t)}function c(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+ec(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return i}function u(e,t){t.forEach((function(t,n){var r="F;W"+(n+1)+" "+(n+1)+" ";t.hidden?r+="0":("number"!=typeof t.width||t.wpx||(t.wpx=js(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Bs(t.wpx)),"number"==typeof t.wch&&(r+=Math.round(t.wch)))," "!=r.charAt(r.length-1)&&e.push(r)}))}function d(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Vs(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}function f(e,t){var n,r=["ID;PWXL;N;E"],i=[],o=vr(e["!ref"]),a=Array.isArray(e),s="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),e["!cols"]&&u(r,e["!cols"]),e["!rows"]&&d(r,e["!rows"]),r.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var l=o.s.r;l<=o.e.r;++l)for(var h=o.s.c;h<=o.e.c;++h){var f=pr({r:l,c:h});n=a?(e[l]||[])[h]:e[f],n&&(null!=n.v||n.f&&!n.F)&&i.push(c(n,e,l,h,t))}return r.join(s)+s+i.join(s)+s+"E"+s}return t["|"]=254,{to_workbook:l,to_sheet:s,from_sheet:f}}(),Ha=function(){function t(t,r){switch(r.type){case"base64":return n(A(t),r);case"binary":return n(t,r);case"buffer":return n(E&&e.isBuffer(t)?t.toString("binary"):N(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){for(var n=e.split("\n"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(r<0)){var s=n[o].trim().split(","),l=s[0],c=s[1];++o;var u=n[o]||"";while(1&(u.match(/["]/g)||[]).length&&o=0&&0===o[a].length)--a;for(var s=10,l=0,c=0;c<=a;++c)l=o[c].indexOf(" "),-1==l?l=o[c].length:l++,s=Math.max(s,l);for(c=0;c<=a;++c){i[c]=[];var u=0;for(t(o[c].slice(0,s).trim(),i,c,u,r),u=1;u<=(o[c].length-s)/10+1;++u)t(o[c].slice(s+10*(u-1),s+10*u).trim(),i,c,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var r={44:",",9:"\t",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function o(e){for(var t={},n=!1,o=0,a=0;o0&&v(),i["!ref"]=gr(a),i}function s(e,t){return t&&t.PRN?t.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?a(e,t):kr(n(e,t),t):a(e,t)}function l(t,n){var r="",i="string"==n.type?[0,0,0,0]:tp(t,n);switch(n.type){case"base64":r=A(t);break;case"binary":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&"undefined"!==typeof g?g.utils.decode(n.codepage,t):E&&e.isBuffer(t)?t.toString("binary"):N(t);break;case"array":r=ht(t);break;case"string":r=t;break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Jt(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Jt(r):"binary"==n.type&&"undefined"!==typeof g&&n.codepage&&(r=g.utils.decode(n.codepage,g.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?qa.to_sheet("string"==n.type?r:Jt(r),n):s(r,n)}function c(e,t){return wr(l(e,t),t)}function u(e){for(var t,n=[],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var l=pr({r:o,c:s});if(t=i?(e[o]||[])[s]:e[l],t&&null!=t.v){var c=(t.w||(yr(t),t.w)||"").slice(0,10);while(c.length<10)c+=" ";a.push(c+(0===s?" ":""))}else a.push(" ")}n.push(a.join(""))}return n.join("\n")}return{to_workbook:c,to_sheet:l,from_sheet:u}}();function _a(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=Ua.to_workbook(e,n);return n.WTF=r,i}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return Wa.to_workbook(e,t)}}var Ga=function(){function e(e,t,n){if(e){Zn(e,e.l||0);var r=n.Enum||U;while(e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=U,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(a=e);break;case 222:a=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||K[14],r.cellDates&&(e[1].t="d",e[1].v=ot(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o=a||"Sheet"+(s+1),a="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[pr(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1];break;default:}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=H,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o="Sheet"+(s+1)),d>0&&e[0].r>=d)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1],h.e.c=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r=$n(),i=vr(e["!ref"]),a=Array.isArray(e),s=[];of(r,0,o(1030)),of(r,6,l(i));for(var c=Math.min(i.e.r,8191),u=i.s.r;u<=c;++u)for(var f=or(u),m=i.s.c;m<=i.e.c;++m){u===i.s.r&&(s[m]=cr(m));var v=s[m]+f,b=a?(e[u]||[])[m]:e[v];if(b&&"z"!=b.t)if("n"==b.t)(0|b.v)==b.v&&b.v>=-32768&&b.v<=32767?of(r,13,p(u,m,b.v)):of(r,14,g(u,m,b.v));else{var y=yr(b);of(r,15,d(u,m,y.slice(0,239)))}}return of(r,1),r.end()}function i(e,t){var n=t||{};if(+n.codepage>=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=$n();of(r,0,a(e));for(var i=0,o=0;i8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function s(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function l(e){var t=Jn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function c(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function u(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].t="s",20768==n.vers){e.l++;var o=e.read_shift(1);return i[1].v=e.read_shift(o,"utf8"),i}return n.qpro&&e.l++,i[1].v=e.read_shift(r-e.l,"cstr"),i}function d(e,t,n){var r=Jn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i=128?95:o)}return r.write_shift(1,0),r}function f(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(2,"i"),r}function p(e,t,n){var r=Jn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function m(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(8,"f"),r}function g(e,t,n){var r=Jn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function v(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=r;else{var o=e.read_shift(2);k(e.slice(e.l,e.l+o),i),e.l+=o}return i}function b(e,t,n){var r=32768&t;return t&=-32769,t=(r?e:0)+(t>=8192?t-16384:t),(r?"":"$")+(n?cr(t):or(t))}var y={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(e,t){Zn(e,0);var n=[],r=0,i="",o="",a="",s="";while(e.ln.length)return void console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+n.join("|")+"|");var d=n.slice(-r);n.length-=r,n.push(y[l][0]+"("+d.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}function C(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function E(e,t){var n=C(e,t);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}function T(e,t,n,r){var i=Jn(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var o=0;o=128?95:a)}return i.write_shift(1,0),i}function S(e,t){var n=C(e,t);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break}return n[1].v=r,n}function M(e,t){var n=C(e,t),r=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(2);if(65535==o)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*a)*(i*Math.pow(2,o+32)+r*Math.pow(2,o)),n}function N(e,t,n,r){var i=Jn(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var o=0,a=0,s=0,l=0;return r<0&&(o=1,r=-r),a=0|Math.log2(r),r/=Math.pow(2,a-31),l=r>>>0,0==(2147483648&l)&&(r/=2,++a,l=r>>>0),r-=l,l|=2147483648,l>>>=0,r*=Math.pow(2,32),s=r>>>0,i.write_shift(4,s),i.write_shift(4,l),a+=16383+(o?32768:0),i.write_shift(2,a),i}function D(e,t){var n=M(e,14);return e.l+=t-14,n}function L(e,t){var n=C(e,t),r=e.read_shift(4);return n[1].v=r>>6,n}function P(e,t){var n=C(e,t),r=e.read_shift(8,"f");return n[1].v=r,n}function I(e,t){var n=P(e,14);return e.l+=t-10,n}function R(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function F(e,t){var n=e[e.l++];n>t-1&&(n=t-1);var r="";while(r.length127?95:i}return n[n.l++]=0,n}var U={0:{n:"BOF",f:Zi},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:f},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:R},222:{n:"SHEETNAMELP",f:F},65535:{n:""}},H={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:E},23:{n:"NUMBER17",f:M},24:{n:"NUMBER18",f:S},25:{n:"FORMULA19",f:D},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:j},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:L},38:{n:"??"},39:{n:"NUMBER27",f:P},40:{n:"FORMULA28",f:I},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:R},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:z},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:t}}();function Va(e){var t={},n=e.match(It),r=0,i=!1;if(n)for(;r!=n.length;++r){var o=zt(n[r]);switch(o[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(47!==o[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+o[0])}}return t}var Ya=function(){var e=$t("t"),t=$t("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:Ht(r[1])},o=n.match(t);return o&&(i.s=Va(o[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),Ka=function(){var e=/(\r\n|\n)/g;function t(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),n.push("")),e.i&&(t.push(""),n.push("")),e.strike&&(t.push(""),n.push(""));var i=e.valign||"";return"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push("")),n.push(""),e}function n(n){var r=[[],n.v,[]];return n.v?(n.s&&t(n.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"
")+r[2].join("")):""}return function(e){return e.map(n).join("")}}(),Za=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Xa=/<(?:\w+:)?r>/,Ja=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Qa(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=Ht(Jt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=Jt(e),n&&(r.h=_t(r.t))):e.match(Xa)&&(r.r=Jt(e),r.t=Ht(Jt((e.replace(Ja,"").match(Za)||[]).join("").replace(It,""))),n&&(r.h=Ka(Ya(r.r)))),r):{t:""}}var $a=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,es=/<(?:\w+:)?(?:si|sstItem)>/g,ts=/<\/(?:\w+:)?(?:si|sstItem)>/;function ns(e,t){var n=[],r="";if(!e)return n;var i=e.match($a);if(i){r=i[2].replace(es,"").split(ts);for(var o=0;o!=r.length;++o){var a=Qa(r[o].trim(),t);null!=a&&(n[n.length]=a)}i=zt(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}function rs(e){return[e.read_shift(4),e.read_shift(4)]}function is(e,t){var n=[],r=!1;return Qn(e,(function(e,i,o){switch(o){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),n}function os(e){if("undefined"!==typeof g)return g.utils.encode(a,e);for(var t=[],n=e.split(""),r=0;r=4&&(e.l+=t-4),n}function ss(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ls(e){var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),o=[];while(i-- >0)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=o,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function cs(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(ls(e));return t}function us(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(e.read_shift(0,"lpp4"));return t}function hs(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ds(e){var t=hs(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function fs(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function ps(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function ms(e){var t=as(e);switch(t.Minor){case 2:return[t.Minor,gs(e,t)];case 3:return[t.Minor,vs(e,t)];case 4:return[t.Minor,bs(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function gs(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var n=e.read_shift(4),r=fs(e,n),i=ps(e,e.length-e.l);return{t:"Std",h:r,v:i}}function vs(){throw new Error("File is password-protected: ECMA-376 Extensible")}function bs(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(It,(function(e){var n=zt(e);switch(jt(n[0])){case"":break;case"":case"":break;case"":break;case"4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=fs(e,i),t-=i,n.EncryptionVerifier=ps(e,t),n}function ws(e){var t={},n=t.EncryptionVersionInfo=as(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function xs(e){var t,n,r,i,o,a,s=0,l=os(e),c=l.length+1;for(t=S(c),t[0]=l.length,n=1;n!=c;++n)t[n]=l[n-1];for(n=c-1;n>=0;--n)r=t[n],i=0===(16384&s)?0:1,o=s<<1&32767,a=i|o,s=a^r;return 52811^s}var ks=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e){return 255&(e/2|128*e)},i=function(e,t){return r(e^t)},o=function(e){for(var r=t[e.length-1],i=104,o=e.length-1;o>=0;--o)for(var a=e[o],s=0;7!=s;++s)64&a&&(r^=n[i]),a*=2,--i;return r};return function(t){for(var n,r,a,s=os(t),l=o(s),c=s.length,u=S(16),h=0;16!=h;++h)u[h]=0;1===(1&c)&&(n=l>>8,u[c]=i(e[0],n),--c,n=255&l,r=s[s.length-1],u[c]=i(r,n));while(c>0)--c,n=l>>8,u[c]=i(s[c],n),--c,n=255&l,u[c]=i(s[c],n);c=15,a=15-s.length;while(a>0)n=l>>8,u[c]=i(e[a],n),--c,--a,n=255&l,u[c]=i(s[c],n),--c,--a;return u}}(),Cs=function(e,t,n,r,i){var o,a;for(i||(i=t),r||(r=ks(e)),o=0;o!=t.length;++o)a=t[o],a^=r[n],a=255&(a>>5|a<<3),i[o]=a,++n;return[i,n,r]},As=function(e){var t=0,n=ks(e);return function(e){var r=Cs("",e,t,n);return t=r[1],r[0]}};function Es(e,t,n,r){var i={key:Zi(e),verificationBytes:Zi(e)};return n.password&&(i.verifier=xs(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=As(n.password)),i}function Ts(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=ws(e,t):r.Data=ys(e,t),r}function Ss(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?Ts(e,t-2,r):Es(e,n.biff>=8?t:t-2,n,r),r}var Ms=function(){function t(t,r){switch(r.type){case"base64":return n(A(t),r);case"binary":return n(t,r);case"buffer":return n(E&&e.isBuffer(t)?t.toString("binary"):N(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){var n=t||{},r=n.dense?[]:{},i=e.match(/\\trowd.*?\\row\b/g);if(!i.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:i.length-1}};return i.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);var n,i=/\\\w+\b/g,a=0,s=-1;while(n=i.exec(e)){switch(n[0]){case"\\cell":var l=e.slice(a,i.lastIndex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:"s"};Array.isArray(r)?r[t][s]=c:r[pr({r:t,c:s})]=c}break}a=i.lastIndex}s>o.e.c&&(o.e.c=s)})),r["!ref"]=gr(o),r}function r(e,n){return wr(t(e,n),n)}function i(e){for(var t,n=["{\\rtf1\\ansi"],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){n.push("\\trowd\\trautofit1");for(var a=r.s.c;a<=r.e.c;++a)n.push("\\cellx"+(a+1));for(n.push("\\pard\\intbl"),a=r.s.c;a<=r.e.c;++a){var s=pr({r:o,c:a});t=i?(e[o]||[])[a]:e[s],t&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(yr(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:i}}();function Os(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Ns(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function Ds(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=i-o;if(0===a)return[0,0,t];var s=0,l=0,c=i+o;switch(l=a/(c>1?2-c:c),i){case t:s=((n-r)/a+6)%6;break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4;break}return[s/6,l,c/2]}function Ls(e){var t,n=e[0],r=e[1],i=e[2],o=2*r*(i<.5?i:1-i),a=i-o/2,s=[a,a,a],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=o*l,s[0]+=o,s[1]+=t;break;case 1:t=o*(2-l),s[0]+=t,s[1]+=o;break;case 2:t=o*(l-2),s[1]+=o,s[2]+=t;break;case 3:t=o*(4-l),s[1]+=t,s[2]+=o;break;case 4:t=o*(l-4),s[2]+=o,s[0]+=t;break;case 5:t=o*(6-l),s[2]+=t,s[0]+=o;break}for(var c=0;3!=c;++c)s[c]=Math.round(255*s[c]);return s}function Ps(e,t){if(0===t)return e;var n=Ds(Os(e));return n[2]=t<0?n[2]*(1+t):1-(1-n[2])*(1-t),Ns(Ls(n))}var Is=6,Rs=15,Fs=1,zs=Is;function js(e){return Math.floor((e+Math.round(128/zs)/256)*zs)}function Bs(e){return Math.floor((e-5)/zs*100+.5)/100}function Us(e){return Math.round((e*zs+5)/zs*256)/256}function Hs(e){return Us(Bs(js(e)))}function qs(e){var t=Math.abs(e-Hs(e)),n=zs;if(t>.005)for(zs=Fs;zs":case"":break;case"":case"":i={},n.diagonalUp&&(i.diagonalUp=Vt(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=Vt(n.diagonalDown)),t.Borders.push(i);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in borders")}}))}function Xs(e,t,n,r){t.Fills=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var n=zt(e);switch(jt(n[0])){case"":case"":break;case"":case"":i={},t.Fills.push(i);break;case"":break;case"":break;case"":t.Fills.push(i),i={};break;case"":n.patternType&&(i.patternType=n.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in fills")}}))}function Js(e,t,n,r){t.Fonts=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var a=zt(e);switch(jt(a[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(i),i={};break;case"":case"":break;case"":i.bold=1;break;case"":i.italic=1;break;case"":i.underline=1;break;case"":i.strike=1;break;case"":i.outline=1;break;case"":i.shadow=1;break;case"":i.condense=1;break;case"":i.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+a[0]+" in fonts")}}))}function Qs(e,t,n){t.NumberFmt=[];for(var r=Qe(K),i=0;i":case"":case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(null==t.NumberFmt[l])break;t.NumberFmt[l]=s}qe(s,l)}break;case"":break;default:if(n.WTF)throw new Error("unrecognized "+a[0]+" in numFmts")}}}var $s=["numFmtId","fillId","fontId","borderId","xfId"],el=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function tl(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(It)||[]).forEach((function(e){var o=zt(e),a=0;switch(jt(o[0])){case"":case"":case"":break;case"":for(r=o,delete r[0],a=0;a<$s.length;++a)r[$s[a]]&&(r[$s[a]]=parseInt(r[$s[a]],10));for(a=0;a392)for(a=392;a>60;--a)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[a]){r.numFmtId=a;break}t.CellXf.push(r);break;case"":break;case"":var s={};o.vertical&&(s.vertical=o.vertical),o.horizontal&&(s.horizontal=o.horizontal),null!=o.textRotation&&(s.textRotation=o.textRotation),o.indent&&(s.indent=o.indent),o.wrapText&&(s.wrapText=Vt(o.wrapText)),r.alignment=s;break;case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}}))}var nl=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,a,s){var l,c={};return o?(o=o.replace(//gm,"").replace(//gm,""),(l=o.match(e))&&Qs(l,c,s),(l=o.match(r))&&Js(l,c,a,s),(l=o.match(n))&&Xs(l,c,a,s),(l=o.match(i))&&Zs(l,c,a,s),(l=o.match(t))&&tl(l,c,s),c):c}}();function rl(e,t){var n=e.read_shift(2),r=Ar(e,t-2);return[n,r]}function il(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=Br(e,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var o=e.read_shift(2);switch(700===o&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var l=e.read_shift(1);switch(l>0&&(r.charset=l),e.l++,r.color=jr(e,8),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Ar(e,t-21),r}var ol=Xn;function al(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}var sl=Xn;function ll(e,t,n){var r={NumberFmt:[]};for(var i in K)r.NumberFmt[i]=K[i];r.CellXf=[],r.Fonts=[];var o=[],a=!1;return Qn(e,(function(e,i,s){switch(s){case 44:r.NumberFmt[e[0]]=e[1],qe(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Ps(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:617==o[o.length-1]&&r.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:o.push(s),a=!0;break;case 38:o.pop(),a=!1;break;default:if(i.T>0)o.push(s);else if(i.T<0)o.pop();else if(!a||n.WTF&&37!=o[o.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),r}var cl=["","","","","","","","","","","",""];function ul(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(It)||[]).forEach((function(e){var i=zt(e);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[cl.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function hl(){}function dl(){}var fl=/]*)>[\s\S]*<\/a:clrScheme>/,pl=/]*)>[\s\S]*<\/a:fontScheme>/,ml=/]*)>[\s\S]*<\/a:fmtScheme>/;function gl(e,t,n){var r;t.themeElements={},[["clrScheme",fl,ul],["fontScheme",pl,hl],["fmtScheme",ml,dl]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}var vl=/]*)>[\s\S]*<\/a:themeElements>/;function bl(e,t){var n;e&&0!==e.length||(e=yl());var r={};if(!(n=e.match(vl)))throw new Error("themeElements not found in theme");return gl(n[0],r,t),r.raw=e,r}function yl(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Nt];return n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n.join("")}function wl(e,t,n){var r=e.l+t,i=e.read_shift(4);if(124226!==i)if(n.cellStyles){var o,a=e.slice(e.l);e.l=r;try{o=Mt(a,{type:"array"})}catch(l){return}var s=At(o,"theme/theme/theme1.xml",!0);if(s)return bl(s,n)}else e.l=r}function xl(e){return e.read_shift(4)}function kl(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Cl(e,4);break;case 2:t.xclrValue=co(e,4);break;case 3:t.xclrValue=xl(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Cl(e,t){return Xn(e,t)}function Al(e,t){return Xn(e,t)}function El(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=kl(e,n);break;case 6:r[1]=Al(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Tl(e,t){var n=e.l+t;e.l+=2;var r=e.read_shift(2);e.l+=2;var i=e.read_shift(2),o=[];while(i-- >0)o.push(El(e,n-e.l));return{ixfe:r,ext:o}}function Sl(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function Ml(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ar(e,t-8)}}function Ol(e){var t=[],n=e.read_shift(4);while(n-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Nl(e){return e.l+=4,0!=e.read_shift(4)}function Dl(e,t,n){var r={Types:[],Cell:[],Value:[]},i=n||{},o=[],a=!1,s=2;return Qn(e,(function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==s&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:o.push(n),a=!0;break;case 36:o.pop(),a=!1;break;default:if(t.T);else if(!a||i.WTF&&35!=o[o.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),r}function Ll(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var i,o=!1,a=2;return e.replace(It,(function(e){var t=zt(e);switch(jt(t[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":a=2;break;case"":a=2;break;case"":case"":case"":break;case"":o=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}function Bl(e,t,n,r){var i,o=Array.isArray(e);t.forEach((function(t){var a=fr(t.ref);if(o?(e[a.r]||(e[a.r]=[]),i=e[a.r][a.c]):i=e[t.ref],!i){i={t:"z"},o?e[a.r][a.c]=i:e[t.ref]=i;var s=vr(e["!ref"]||"BDWGO1000001:A1");s.s.r>a.r&&(s.s.r=a.r),s.e.ra.c&&(s.s.c=a.c),s.e.c=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var o=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var o=zt(i[0]),a={author:o.authorId&&n[o.authorId]||"sheetjsghost",ref:o.ref,guid:o.guid},s=fr(o.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Qa(l[1])||{r:"",t:"",h:""};a.r=c.r,""==c.r&&(c.t=c.h=""),a.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(a.h=c.h),r.push(a)}}}})),r}function Hl(e,t){var n=[],r=!1,i={},o=0;return e.replace(It,(function(a,s){var l=zt(a);switch(jt(l[0])){case"":break;case"":null!=i.t&&n.push(i);break;case"":case"":i.t=e.slice(o,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":r=!0;break;case"":r=!1;break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return a})),n}function ql(e,t){var n=[],r=!1;return e.replace(It,(function(e){var i=zt(e);switch(jt(i[0])){case"":break;case"":break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}function Wl(e){var t={};t.iauthor=e.read_shift(4);var n=Fr(e,16);return t.rfx=n.s,t.ref=pr(n.s),e.l+=16,t}var _l=Ar;function Gl(e,t){var n=[],r=[],i={},o=!1;return Qn(e,(function(e,a,s){switch(s){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(a.T);else if(!o||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),n}var Vl="application/vnd.ms-office.vbaProject";function Yl(e){var t=Ze.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ze.utils.cfb_add(t,i,e.FileIndex[r].content)}})),Ze.write(t)}function Kl(){return{"!type":"dialog"}}function Zl(){return{"!type":"dialog"}}function Xl(){return{"!type":"macro"}}function Jl(){return{"!type":"macro"}}var Ql=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var o=!1,a=!1;0==r.length?a=!0:"["==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:"["==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return o?l+=t.c:--l,a?s+=t.r:--s,n+(o?"":"$")+cr(l)+(a?"":"$")+or(s)}return function(r,i){return t=i,r.replace(e,n)}}(),$l=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,ec=function(){return function(e,t){return e.replace($l,(function(e,n,r,i,o,a){var s=lr(i)-(r?0:t.c),l=ir(a)-(o?0:t.r),c=0==l?"":o?l+1:"["+l+"]",u=0==s?"":r?s+1:"["+s+"]";return n+"R"+c+"C"+u}))}}();function tc(e,t){return e.replace($l,(function(e,n,r,i,o,a){return n+("$"==r?r+i:cr(lr(i)+t.c))+("$"==o?o+a:or(ir(a)+t.r))}))}function nc(e,t,n){var r=mr(t),i=r.s,o=fr(n),a={r:o.r-i.r,c:o.c-i.c};return tc(e,a)}function rc(e){return 1!=e.length}function ic(e){return e.replace(/_xlfn\./g,"")}function oc(e){e.l+=1}function ac(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function sc(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return lc(e,t,n);12==n.biff&&(r=4)}var i=e.read_shift(r),o=e.read_shift(r),a=ac(e,2),s=ac(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function lc(e){var t=ac(e,2),n=ac(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function cc(e,t,n){if(n.biff<8)return lc(e,t,n);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),o=ac(e,2),a=ac(e,2);return{s:{r:r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function uc(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return hc(e,t,n);var r=e.read_shift(n&&12==n.biff?4:2),i=ac(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function hc(e){var t=ac(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function dc(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function fc(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return pc(e,t,n);var i=e.read_shift(r>=12?4:2),o=e.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)while(i>524287)i-=1048576;if(1==a)while(o>8191)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}function pc(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function mc(e,t,n){var r=(96&e[e.l++])>>5,i=sc(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function gc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i"),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=sc(e,o,n);return[r,i,a]}function vc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function bc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[r,i]}function yc(e,t,n){var r=(96&e[e.l++])>>5,i=cc(e,t-1,n);return[r,i]}function wc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}function xc(e){var t=1&e[e.l+1],n=1;return e.l+=4,[t,n]}function kc(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(e.read_shift(n&&2==n.biff?1:2));return i}function Cc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Ac(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Ec(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function Tc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}function Sc(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function Mc(e){return e.read_shift(2),Sc(e,2)}function Oc(e){return e.read_shift(2),Sc(e,2)}function Nc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=uc(e,0,n);return[r,i]}function Dc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=fc(e,0,n);return[r,i]}function Lc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);n&&5==n.biff&&(e.l+=12);var o=uc(e,0,n);return[r,i,o]}function Pc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Yu[i],Vu[i],r]}function Ic(e,t,n){var r=e[e.l++],i=e.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:Rc(e);return[i,(0===o[0]?Vu:Gu)[o[1]]]}function Rc(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function Fc(e,t,n){e.l+=n&&2==n.biff?3:4}function zc(e,t,n){if(e.l++,n&&12==n.biff)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function jc(e){return e.l++,ci[e.read_shift(1)]}function Bc(e){return e.l++,e.read_shift(2)}function Uc(e){return e.l++,0!==e.read_shift(1)}function Hc(e){return e.l++,zr(e,8)}function qc(e,t,n){return e.l++,Qi(e,t-1,n)}function Wc(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Ki(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=ci[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=zr(e,8);break;case 2:n[1]=no(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function _c(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?Fr:bo)(e,8));return i}function Gc(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=Wc(e,n.biff);return a}function Vc(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,o]}function Yc(e,t,n){if(5==n.biff)return Kc(e,t,n);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[r,i,o]}function Kc(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function Zc(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&2==n.biff?3:4;var i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Xc(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Jc(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}function Qc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[r,i]}var $c=Xn,eu=Xn,tu=Xn;function nu(e,t,n){return e.l+=2,[dc(e,4,n)]}function ru(e){return e.l+=6,[]}var iu=nu,ou=ru,au=ru,su=nu;function lu(e){return e.l+=2,[Zi(e),1&e.read_shift(2)]}var cu=nu,uu=lu,hu=ru,du=nu,fu=nu,pu=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function mu(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=pu[n>>2&31];return{ixti:t,coltype:3&n,rt:a,idx:r,c:i,C:o}}function gu(e){return e.l+=2,[e.read_shift(4)]}function vu(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}function bu(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}function yu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function wu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function xu(e){return e.l+=4,[0,0]}var ku={1:{n:"PtgExp",f:zc},2:{n:"PtgTbl",f:tu},3:{n:"PtgAdd",f:oc},4:{n:"PtgSub",f:oc},5:{n:"PtgMul",f:oc},6:{n:"PtgDiv",f:oc},7:{n:"PtgPower",f:oc},8:{n:"PtgConcat",f:oc},9:{n:"PtgLt",f:oc},10:{n:"PtgLe",f:oc},11:{n:"PtgEq",f:oc},12:{n:"PtgGe",f:oc},13:{n:"PtgGt",f:oc},14:{n:"PtgNe",f:oc},15:{n:"PtgIsect",f:oc},16:{n:"PtgUnion",f:oc},17:{n:"PtgRange",f:oc},18:{n:"PtgUplus",f:oc},19:{n:"PtgUminus",f:oc},20:{n:"PtgPercent",f:oc},21:{n:"PtgParen",f:oc},22:{n:"PtgMissArg",f:oc},23:{n:"PtgStr",f:qc},26:{n:"PtgSheet",f:vu},27:{n:"PtgEndSheet",f:bu},28:{n:"PtgErr",f:jc},29:{n:"PtgBool",f:Uc},30:{n:"PtgInt",f:Bc},31:{n:"PtgNum",f:Hc},32:{n:"PtgArray",f:wc},33:{n:"PtgFunc",f:Pc},34:{n:"PtgFuncVar",f:Ic},35:{n:"PtgName",f:Vc},36:{n:"PtgRef",f:Nc},37:{n:"PtgArea",f:mc},38:{n:"PtgMemArea",f:Zc},39:{n:"PtgMemErr",f:$c},40:{n:"PtgMemNoMem",f:eu},41:{n:"PtgMemFunc",f:Xc},42:{n:"PtgRefErr",f:Jc},43:{n:"PtgAreaErr",f:vc},44:{n:"PtgRefN",f:Dc},45:{n:"PtgAreaN",f:yc},46:{n:"PtgMemAreaN",f:yu},47:{n:"PtgMemNoMemN",f:wu},57:{n:"PtgNameX",f:Yc},58:{n:"PtgRef3d",f:Lc},59:{n:"PtgArea3d",f:gc},60:{n:"PtgRefErr3d",f:Qc},61:{n:"PtgAreaErr3d",f:bc},255:{}},Cu={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Au={1:{n:"PtgElfLel",f:lu},2:{n:"PtgElfRw",f:du},3:{n:"PtgElfCol",f:iu},6:{n:"PtgElfRwV",f:fu},7:{n:"PtgElfColV",f:su},10:{n:"PtgElfRadical",f:cu},11:{n:"PtgElfRadicalS",f:hu},13:{n:"PtgElfColS",f:ou},15:{n:"PtgElfColSV",f:au},16:{n:"PtgElfRadicalLel",f:uu},25:{n:"PtgList",f:mu},29:{n:"PtgSxName",f:gu},255:{}},Eu={0:{n:"PtgAttrNoop",f:xu},1:{n:"PtgAttrSemi",f:Tc},2:{n:"PtgAttrIf",f:Ac},4:{n:"PtgAttrChoose",f:kc},8:{n:"PtgAttrGoto",f:Cc},16:{n:"PtgAttrSum",f:Fc},32:{n:"PtgAttrBaxcel",f:xc},33:{n:"PtgAttrBaxcel",f:xc},64:{n:"PtgAttrSpace",f:Mc},65:{n:"PtgAttrSpaceSemi",f:Oc},128:{n:"PtgAttrIfError",f:Ec},255:{}};function Tu(e,t,n,r){if(r.biff<8)return Xn(e,t);for(var i=e.l+t,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=Gc(e,0,r),o.push(n[a][1]);break;case"PtgMemArea":n[a][2]=_c(e,n[a][1],r),o.push(n[a][2]);break;case"PtgExp":r&&12==r.biff&&(n[a][1][1]=e.read_shift(4),o.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0];default:break}return t=i-e.l,0!==t&&o.push(Xn(e,t)),o}function Su(e,t,n){var r,i,o=e.l+t,a=[];while(o!=e.l)t=o-e.l,i=e[e.l],r=ku[i]||ku[Cu[i]],24!==i&&25!==i||(r=(24===i?Au:Eu)[e[e.l+1]]),r&&r.f?a.push([r.n,r.f(e,t,n)]):Xn(e,t);return a}function Mu(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Nu(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Du(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Lu(e,t,n){var r=Du(e,t,n);return"#REF"==r?r:Nu(r,n)}function Pu(e,t,n,r,i){var o,a,s,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],d=0,f=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,b=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=ft(" ",e[0][m][1][1]);break;case 1:g=ft("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}a+=g,m=-1}h.push(a+Ou[y[0]]+o);break;case"PtgIsect":o=h.pop(),a=h.pop(),h.push(a+" "+o);break;case"PtgUnion":o=h.pop(),a=h.pop(),h.push(a+","+o);break;case"PtgRange":o=h.pop(),a=h.pop(),h.push(a+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=er(y[1][1],u,i),h.push(nr(s,c));break;case"PtgRefN":s=n?er(y[1][1],n,i):y[1][1],h.push(nr(s,c));break;case"PtgRef3d":d=y[1][1],s=er(y[1][2],u,i),p=Lu(r,d,i);h.push(p+"!"+nr(s,c));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],x=y[1][1];w||(w=0),w&=127;var k=0==w?[]:h.slice(-w);h.length-=w,"User"===x&&(x=k.shift()),h.push(x+"("+k.join(",")+")");break;case"PtgBool":h.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(y[1]);break;case"PtgNum":h.push(String(y[1]));break;case"PtgStr":h.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(y[1]);break;case"PtgAreaN":l=tr(y[1][1],n?{s:n}:u,i),h.push(rr(l,i));break;case"PtgArea":l=tr(y[1][1],u,i),h.push(rr(l,i));break;case"PtgArea3d":d=y[1][1],l=y[1][2],p=Lu(r,d,i),h.push(p+"!"+rr(l,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=y[1][2];var C=(r.names||[])[f-1]||(r[0]||[])[f],A=C?C.Name:"SH33TJSNAME"+String(f);A&&"_xlfn."==A.slice(0,6)&&!i.xlfn&&(A=A.slice(6)),h.push(A);break;case"PtgNameX":var E,T=y[1][1];if(f=y[1][2],!(i.biff<=5)){var S="";if(14849==((r[T]||[])[0]||[])[0]||(1025==((r[T]||[])[0]||[])[0]?r[T][f]&&r[T][f].itab>0&&(S=r.SheetNames[r[T][f].itab-1]+"!"):S=r.SheetNames[f-1]+"!"),r[T]&&r[T][f])S+=r[T][f].Name;else if(r[0]&&r[0][f])S+=r[0][f].Name;else{var M=(Du(r,T,i)||"").split(";;");M[f-1]?S=M[f-1]:S+="SH33TJSERRX"}h.push(S);break}T<0&&(T=-T),r[T]&&(E=r[T][f]),E||(E={Name:"SH33TJSERRY"}),h.push(E.Name);break;case"PtgParen":var O="(",N=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:O=ft(" ",e[0][m][1][1])+O;break;case 3:O=ft("\r",e[0][m][1][1])+O;break;case 4:N=ft(" ",e[0][m][1][1])+N;break;case 5:N=ft("\r",e[0][m][1][1])+N;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(O+h.pop()+N);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":s={c:y[1][1],r:y[1][0]};var D={c:n.c,r:n.r};if(r.sharedf[pr(s)]){var L=r.sharedf[pr(s)];h.push(Pu(L,u,D,r,i))}else{var P=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.ca[0].e.c)&&!(s.ra[0].e.r)){h.push(Pu(a[1],u,D,r,i)),P=!0;break}P||h.push(y[1])}break;case"PtgArray":h.push("{"+Mu(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var I=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&m>=0&&-1==I.indexOf(e[0][v][0])){y=e[0][m];var R=!0;switch(y[1][0]){case 4:R=!1;case 0:g=ft(" ",y[1][1]);break;case 5:R=!1;case 1:g=ft("\r",y[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}h.push((R?g:"")+h.pop()+(R?"":g)),m=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function Iu(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Xn(e,t-2)];var s=Su(e,a,n);return t!==a+o&&(r=Tu(e,t-a-o,s,n)),e.l=i,[s,r]}function Ru(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Xn(e,t-2)];var s=Su(e,a,n);return t!==a+o&&(r=Tu(e,t-a-o,s,n)),e.l=i,[s,r]}function Fu(e,t,n,r){var i,o=e.l+t,a=Su(e,r,n);return o!==e.l&&(i=Tu(e,o-e.l,a,n)),[a,i]}function zu(e,t,n){var r,i=e.l+t,o=e.read_shift(2),a=Su(e,o,n);return 65535==o?[[],Xn(e,t-2)]:(t!==o+2&&(r=Tu(e,i-o-2,a,n)),[a,r])}function ju(e){var t;if(65535!==jn(e,e.l+6))return[zr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function Bu(e,t,n){var r=e.l+t,i=ho(e,6);2==n.biff&&++e.l;var o=ju(e,8),a=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var s=Ru(e,r-e.l,n);return{cell:i,val:o[0],formula:s,shared:a>>3&1,tt:o[1]}}function Uu(e,t,n){var r=e.read_shift(4),i=Su(e,r,n),o=e.read_shift(4),a=o>0?Tu(e,o,i,n):null;return[i,a]}var Hu=Uu,qu=Uu,Wu=Uu,_u=Uu,Gu={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Vu={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Yu={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ku(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Zu(e){var t=e.split(":"),n=t[0].split(".")[0];return[n,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Xu={},Ju={};function Qu(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function $u(e,t,n,r,i,o){try{r.cellNF&&(e.z=K[t])}catch(s){if(r.WTF)throw s}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=ut(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==K[t]&&qe(_e[t]||"General",t),"e"===e.t)e.w=e.w||ci[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v);else if("d"===e.t){var a=tt(e.v);e.w=(0|a)===a?a.toString(10):le(a)}else{if(void 0===e.v)return"";e.w=ce(e.v,Ju)}else"d"===e.t?e.w=He(t,tt(e.v),Ju):e.w=He(t,e.v,Ju)}catch(s){if(r.WTF)throw s}if(r.cellStyles&&null!=n)try{e.s=o.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Ps(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Ps(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(r.WTF&&o.Fills)throw s}}}function eh(e,t){var n=vr(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=gr(n))}var th=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,nh=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,rh=/<(?:\w:)?hyperlink [^>]*>/gm,ih=/"(\w*:\w*)"/,oh=/<(?:\w:)?col\b[^>]*[\/]?>/g,ah=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,sh=/<(?:\w:)?pageMargins[^>]*\/>/g,lh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,ch=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,uh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function hh(e,t,n,r,i,o,a){if(!e)return e;r||(r={"!id":{}}),null!=w&&null==t.dense&&(t.dense=w);var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",h=e.match(nh);h?(c=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):c=u=e;var d=c.match(lh);d?dh(d[0],s,i,n):(d=c.match(ch))&&fh(d[0],d[1]||"",s,i,n,a,o);var f=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(f>0){var p=c.slice(f,f+50).match(ih);p&&eh(s,p[1])}var m=c.match(uh);m&&m[1]&&yh(m[1],i);var g=[];if(t.cellStyles){var v=c.match(oh);v&&gh(g,v)}h&&wh(h[1],s,t,l,o,a);var b=u.match(ah);b&&(s["!autofilter"]=vh(b[0]));var y=[],x=u.match(th);if(x)for(f=0;f!=x.length;++f)y[f]=vr(x[f].slice(x[f].indexOf('"')+1));var k=u.match(rh);k&&ph(s,k,r);var C=u.match(sh);if(C&&(s["!margins"]=mh(zt(C[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=gr(l)),t.sheetRows>0&&s["!ref"]){var A=vr(s["!ref"]);t.sheetRows<=+A.e.r&&(A.e.r=t.sheetRows-1,A.e.r>l.e.r&&(A.e.r=l.e.r),A.e.rl.e.c&&(A.e.c=l.e.c),A.e.c0&&(s["!cols"]=g),y.length>0&&(s["!merges"]=y),s}function dh(e,t,n,r){var i=zt(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=Ht(Jt(i.codeName)))}function fh(e,t,n,r,i){dh(e.slice(0,e.indexOf(">")),n,r,i)}function ph(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var o=zt(Jt(t[i]),!0);if(!o.ref)return;var a=((n||{})["!id"]||[])[o.id];a?(o.Target=a.Target,o.location&&(o.Target+="#"+Ht(o.location))):(o.Target="#"+Ht(o.location),a={Target:o.Target,TargetMode:"Internal"}),o.Rel=a,o.tooltip&&(o.Tooltip=o.tooltip,delete o.tooltip);for(var s=vr(o.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=pr({c:c,r:l});r?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=o):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=o)}}}function mh(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(n){e[n]&&(t[n]=parseFloat(e[n]))})),t}function gh(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=zt(t[r],!0);i.hidden&&(i.hidden=Vt(i.hidden));var o=parseInt(i.min,10)-1,a=parseInt(i.max,10)-1;i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,qs(i.width)),Ws(i);while(o<=a)e[o++]=dt(i)}}function vh(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var bh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function yh(e,t){t.Views||(t.Views=[{}]),(e.match(bh)||[]).forEach((function(e,n){var r=zt(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),Vt(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}var wh=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,o=$t("v"),a=$t("f");return function(s,l,c,u,h,d){for(var f,p,m,g,v,b=0,y="",w=[],x=[],k=0,C=0,A=0,E="",T=0,S=0,M=0,O=0,N=Array.isArray(d.CellXf),D=[],L=[],P=Array.isArray(l),I=[],R={},F=!1,z=!!c.sheetStubs,j=s.split(t),B=0,U=j.length;B!=U;++B){y=j[B].trim();var H=y.length;if(0!==H){var q=0;e:for(b=0;b":if("/"!=y[b-1]){++b;break e}if(c&&c.cellStyles){if(p=zt(y.slice(q,b),!0),T=null!=p.r?parseInt(p.r,10):T+1,S=-1,c.sheetRows&&c.sheetRows=b)break;if(p=zt(y.slice(q,b),!0),T=null!=p.r?parseInt(p.r,10):T+1,S=-1,!(c.sheetRows&&c.sheetRowsT-1&&(u.s.r=T-1),u.e.r":"")+y,null!=x&&2===x.length){for(k=0,E=x[1],C=0;C!=E.length;++C){if((A=E.charCodeAt(C)-64)<1||A>26)break;k=26*k+A}--k,S=k}else++S;for(C=0;C!=y.length;++C)if(62===y.charCodeAt(C))break;if(++C,p=zt(y.slice(0,C),!0),p.r||(p.r=pr({r:T-1,c:S})),E=y.slice(C),f={t:""},null!=(x=E.match(o))&&""!==x[1]&&(f.v=Ht(x[1])),c.cellFormula){if(null!=(x=E.match(a))&&""!==x[1]){if(f.f=Ht(Jt(x[1])).replace(/\r\n/g,"\n"),c.xlfn||(f.f=ic(f.f)),x[0].indexOf('t="array"')>-1)f.F=(E.match(i)||[])[1],f.F.indexOf(":")>-1&&D.push([vr(f.F),f.F]);else if(x[0].indexOf('t="shared"')>-1){g=zt(x[0]);var _=Ht(Jt(x[1]));c.xlfn||(_=ic(_)),L[parseInt(g.si,10)]=[g,_,p.r]}}else(x=E.match(/]*\/>/))&&(g=zt(x[0]),L[g.si]&&(f.f=nc(L[g.si][1],L[g.si][2],p.r)));var G=fr(p.r);for(C=0;C=D[C][0].s.r&&G.r<=D[C][0].e.r&&G.c>=D[C][0].s.c&&G.c<=D[C][0].e.c&&(f.F=D[C][1])}if(null==p.t&&void 0===f.v)if(f.f||f.F)f.v=0,f.t="n";else{if(!z)continue;f.t="z"}else f.t=p.t||"n";switch(u.s.c>S&&(u.s.c=S),u.e.c0&&(l["!rows"]=I)}}();function xh(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=r,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}var kh=Fr;function Ch(){}function Ah(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=Nr(e,t-19),n}function Eh(e){var t=Mr(e);return[t]}function Th(e){var t=Or(e);return[t]}function Sh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"b"]}function Mh(e){var t=Or(e),n=e.read_shift(1);return[t,n,"b"]}function Oh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"e"]}function Nh(e){var t=Or(e),n=e.read_shift(1);return[t,n,"e"]}function Dh(e){var t=Mr(e),n=e.read_shift(4);return[t,n,"s"]}function Lh(e){var t=Or(e),n=e.read_shift(4);return[t,n,"s"]}function Ph(e){var t=Mr(e),n=zr(e);return[t,n,"n"]}function Ih(e){var t=Or(e),n=zr(e);return[t,n,"n"]}function Rh(e){var t=Mr(e),n=Ir(e);return[t,n,"n"]}function Fh(e){var t=Or(e),n=Ir(e);return[t,n,"n"]}function zh(e){var t=Mr(e),n=Tr(e);return[t,n,"is"]}function jh(e){var t=Mr(e),n=Ar(e);return[t,n,"str"]}function Bh(e){var t=Or(e),n=Ar(e);return[t,n,"str"]}function Uh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function Hh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function qh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=zr(e),a=[i,o,"n"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function Wh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=Ar(e),a=[i,o,"str"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}var _h=Fr;function Gh(e,t){var n=e.l+t,r=Fr(e,16),i=Dr(e),o=Ar(e),a=Ar(e),s=Ar(e);e.l=n;var l={rfx:r,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function Vh(){}function Yh(e,t,n){var r=e.l+t,i=Rr(e,16),o=e.read_shift(1),a=[i];if(a[2]=o,n.cellFormula){var s=Hu(e,r-e.l,n);a[1]=s}else e.l=r;return a}function Kh(e,t,n){var r=e.l+t,i=Fr(e,16),o=[i];if(n.cellFormula){var a=_u(e,r-e.l,n);o[1]=a,e.l=r}else e.l=r;return o}var Zh=["left","right","top","bottom","header","footer"];function Xh(e){var t={};return Zh.forEach((function(n){t[n]=zr(e,8)})),t}function Jh(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function Qh(){}function $h(){}function ed(e,t,n,r,i,o,a){if(!e)return e;var s=t||{};r||(r={"!id":{}}),null!=w&&null==s.dense&&(s.dense=w);var l,c,u,h,d,f,p,m,g,v,b=s.dense?[]:{},y={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=[],k=!1,C=!1,A=[];s.biff=12,s["!row"]=0;var E=0,T=!1,S=[],M={},O=s.supbooks||i.supbooks||[[]];if(O.sharedf=M,O.arrayf=S,O.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=O,i.Names))for(var N=0;N=N[0].s.r&&c.r<=N[0].e.r&&f>=N[0].s.c&&f<=N[0].e.c&&(u.F=gr(N[0]),T=!0)}!T&&e.length>3&&(u.f=e[3])}if(y.s.r>c.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.rc.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.r=e.s)P[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},R||(R=!0,qs(e.w/256)),Ws(P[e.e+1]);break;case 161:b["!autofilter"]={ref:gr(e)};break;case 476:b["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:k=!0;break;case 36:k=!1;break;case 37:x.push(w),k=!0;break;case 38:x.pop(),k=!1;break;default:if(t.T);else if(!k||s.WTF)throw new Error("Unexpected record 0x"+w.toString(16))}}),s),delete s.supbooks,delete s["!row"],!b["!ref"]&&(y.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(b["!ref"]=gr(l||y)),s.sheetRows&&b["!ref"]){var F=vr(b["!ref"]);s.sheetRows<=+F.e.r&&(F.e.r=s.sheetRows-1,F.e.r>y.e.r&&(F.e.r=y.e.r),F.e.ry.e.c&&(F.e.c=y.e.c),F.e.c0&&(b["!merges"]=A),P.length>0&&(b["!cols"]=P),I.length>0&&(b["!rows"]=I),b}function td(e){var t,n=[],r=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=Ht((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}function nd(e,t,n,r,i,o){var a=o||{"!type":"chart"};if(!e)return o;var s=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=td(e);u.s.r=u.s.c=0,u.e.c=s,c=cr(s),t[0].forEach((function(e,n){a[c+or(n)]={t:"n",v:e,z:t[1]},l=n})),u.e.r0&&(a["!ref"]=gr(u)),a}function rd(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o,a={"!type":"chart","!drawel":null,"!rel":""},s=e.match(lh);return s&&dh(s[0],a,i,n),(o=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=o[1]),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}function id(e,t){e.l+=10;var n=Ar(e,t-10);return{name:n}}function od(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o={"!type":"chart","!drawel":null,"!rel":""},a=[],s=!1;return Qn(e,(function(e,r,l){switch(l){case 550:o["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(l);break;case 38:a.pop();break;default:if(r.T>0)a.push(l);else if(r.T<0)a.pop();else if(!s||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),t),r["!id"][o["!rel"]]&&(o["!drawel"]=r["!id"][o["!rel"]]),o}var ad=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],sd=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ld=[],cd=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function ud(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var o=t[i];if(null==r[o[0]])r[o[0]]=o[1];else switch(o[2]){case"bool":"string"==typeof r[o[0]]&&(r[o[0]]=Vt(r[o[0]]));break;case"int":"string"==typeof r[o[0]]&&(r[o[0]]=parseInt(r[o[0]],10));break}}}function hd(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=Vt(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10));break}}}function dd(e){hd(e.WBProps,ad),hd(e.CalcPr,cd),ud(e.WBView,sd),ud(e.Sheets,ld),Ju.date1904=Vt(e.WBProps.date1904)}var fd="][*?/\\".split("");function pd(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return fd.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}var md=/<\w+:workbook/;function gd(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",o={},a=0;if(e.replace(It,(function(s,l){var c=zt(s);switch(jt(c[0])){case"":break;case"":case"":break;case"":break;case"":ad.forEach((function(e){if(null!=c[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=Vt(c[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:n.WBProps[e[0]]=c[e[0]]}})),c.codeName&&(n.WBProps.CodeName=Jt(c.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete c[0],n.WBView.push(c);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":r=!1;break;case"":o.Ref=Ht(Jt(e.slice(a,l))),n.Names.push(o);break;case"":break;case"":delete c[0],n.CalcPr=c;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":r=!1;break;case"":r=!0;break;case"":r=!1;break;case"8?Ar(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}function yd(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function wd(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=Lr(e),a=Wu(e,0,n),s=Dr(e);e.l=r;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function xd(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var o=[],a=[[]];return a.SheetNames=[],a.XTI=[],nf[16]={n:"BrtFRTArchID$",f:yd},Qn(e,(function(e,s,l){switch(l){case 156:a.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Pu(e.Ptg,null,null,a,t),delete t.SID,delete e.Ptg,o.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:a[0].length?a.push([l,e]):a[0]=[l,e],a[a.length-1].XTI=[];break;case 362:0===a.length&&(a[0]=[],a[0].XTI=[]),a[a.length-1].XTI=a[a.length-1].XTI.concat(e),a.XTI=a.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(l),i=!0;break;case 36:r.pop(),i=!1;break;case 37:r.push(l),i=!0;break;case 38:r.pop(),i=!1;break;case 16:break;default:if(s.T);else if(!i||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}}),t),dd(n),n.Names=o,n.supbooks=a,n}function kd(e,t,n){return".bin"===t.slice(-4)?xd(e,n):gd(e,n)}function Cd(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?ed(e,r,n,i,o,a,s):hh(e,r,n,i,o,a,s)}function Ad(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?od(e,r,n,i,o,a,s):rd(e,r,n,i,o,a,s)}function Ed(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Xl(e,r,n,i,o,a,s):Jl(e,r,n,i,o,a,s)}function Td(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Kl(e,r,n,i,o,a,s):Zl(e,r,n,i,o,a,s)}function Sd(e,t,n,r){return".bin"===t.slice(-4)?ll(e,n,r):nl(e,n,r)}function Md(e,t,n){return bl(e,n)}function Od(e,t,n){return".bin"===t.slice(-4)?is(e,n):ns(e,n)}function Nd(e,t,n){return".bin"===t.slice(-4)?Gl(e,n):Ul(e,n)}function Dd(e,t,n){return".bin"===t.slice(-4)?Rl(e,t,n):Pl(e,t,n)}function Ld(e,t,n,r){return".bin"===n.slice(-4)?zl(e,t,n,r):Fl(e,t,n,r)}function Pd(e,t,n){return".bin"===t.slice(-4)?Dl(e,t,n):Ll(e,t,n)}var Id,Rd=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Fd=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function zd(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var i,o,a,s,l=e.match(Rd);if(l)for(s=0;s!=l.length;++s)i=l[s].match(Fd),-1===(o=i[1].indexOf(":"))?r[i[1]]=i[2].slice(1,i[2].length-1):(a="xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(o+1),r[a]=i[2].slice(1,i[2].length-1));return r}function jd(e){var t=e.split(/\s+/),n={};if(1===t.length)return n;var r,i,o,a,s=e.match(Rd);if(s)for(a=0;a!=s.length;++a)r=s[a].match(Fd),-1===(i=r[1].indexOf(":"))?n[r[1]]=r[2].slice(1,r[2].length-1):(o="xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(i+1),n[o]=r[2].slice(1,r[2].length-1));return n}function Bd(e,t){var n=Id[e]||Ht(e);return"General"===n?ce(t):He(n,t)}function Ud(e,t,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Vt(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=ut(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[Ht(t)]=i}function Hd(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||ci[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v):e.w=ce(e.v):e.w=Bd(t||"General",e.v)}catch(o){if(n.WTF)throw o}try{var r=Id[t]||t||"General";if(n.cellNF&&(e.z=r),n.cellDates&&"n"==e.t&&Fe(r)){var i=Q(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(o){if(n.WTF)throw o}}}function qd(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Ks[r.Pattern]||r.Pattern)}e[t.ID]=t}function Wd(e,t,n,r,i,o,a,s,l,c){var u="General",h=r.StyleID,d={};c=c||{};var f=[],p=0;void 0===h&&s&&(h=s.StyleID),void 0===h&&a&&(h=a.StyleID);while(void 0!==o[h]){if(o[h].nf&&(u=o[h].nf),o[h].Interior&&f.push(o[h].Interior),!o[h].Parent)break;h=o[h].Parent}switch(n.Type){case"Boolean":r.t="b",r.v=Vt(e);break;case"String":r.t="s",r.r=Gt(Ht(e)),r.v=e.indexOf("<")>-1?Ht(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(ut(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!==r.v?r.v=Ht(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=ui[e],!1!==c.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=Gt(t||e));break}if(Hd(r,u,c),!1!==c.cellFormula)if(r.Formula){var m=Ht(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=Ql(m,i),delete r.Formula,"RC"==r.ArrayRange?r.F=Ql("RC:RC",i):r.ArrayRange&&(r.F=Ql(r.ArrayRange,i),l.push([vr(r.F),r.F]))}else for(p=0;p=l[p][0].s.r&&i.r<=l[p][0].e.r&&i.c>=l[p][0].s.c&&i.c<=l[p][0].e.c&&(r.F=l[p][1]);c.cellStyles&&(f.forEach((function(e){!d.patternType&&e.patternType&&(d.patternType=e.patternType)})),r.s=d),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function _d(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Gd(e,t){var n=t||{};We();var r=v(cn(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r="undefined"!==typeof g?g.utils.decode(65001,f(r)):Jt(r));var i,o=r.slice(0,1024).toLowerCase(),a=!1;if(o=o.replace(/".*?"/g,""),(1023&o.indexOf(">"))>Math.min(1023&o.indexOf(","),1023&o.indexOf(";"))){var s=dt(n);return s.type="string",Wa.to_workbook(r,s)}if(-1==o.indexOf("=0&&(a=!0)})),a)return uf(r,n);Id={"General Number":"General","General Date":K[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":K[15],"Short Date":K[14],"Long Time":K[19],"Medium Time":K[18],"Short Time":K[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:K[2],Standard:K[4],Percent:K[10],Scientific:K[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,c=[];null!=w&&null==n.dense&&(n.dense=w);var u,h={},d=[],p=n.dense?[]:{},m="",b={},y={},x=zd(''),k=0,C=0,A=0,E={s:{r:2e6,c:2e6},e:{r:0,c:0}},T={},S={},M="",O=0,N=[],D={},L={},P=0,I=[],R=[],F={},z=[],j=!1,B=[],U=[],H={},q=0,W=0,_={Sheets:[],WBProps:{date1904:!1}},G={};un.lastIndex=0,r=r.replace(//gm,"");var V="";while(i=un.exec(r))switch(i[3]=(V=i[3]).toLowerCase()){case"data":if("data"==V){if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break}if(c[c.length-1][1])break;"/"===i[1]?Wd(r.slice(k,i.index),M,x,"comment"==c[c.length-1][0]?F:b,{c:C,r:A},T,z[C],y,B,n):(M="",x=zd(i[0]),k=i.index+i[0].length);break;case"cell":if("/"===i[1])if(R.length>0&&(b.c=R),(!n.sheetRows||n.sheetRows>A)&&void 0!==b.v&&(n.dense?(p[A]||(p[A]=[]),p[A][C]=b):p[cr(C)+or(A)]=b),b.HRef&&(b.l={Target:Ht(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(q=C+(0|parseInt(b.MergeAcross,10)),W=A+(0|parseInt(b.MergeDown,10)),N.push({s:{c:C,r:A},e:{c:q,r:W}})),n.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var Y=C;Y<=q;++Y)for(var Z=A;Z<=W;++Z)(Y>C||Z>A)&&(n.dense?(p[Z]||(p[Z]=[]),p[Z][Y]={t:"z"}):p[cr(Y)+or(Z)]={t:"z"});C=q+1}else++C;else b.MergeAcross?C=q+1:++C;else b=jd(i[0]),b.Index&&(C=+b.Index-1),CE.e.c&&(E.e.c=C),"/>"===i[0].slice(-2)&&++C,R=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(AE.e.r&&(E.e.r=A),"/>"===i[0].slice(-2)&&(y=zd(i[0]),y.Index&&(A=+y.Index-1)),C=0,++A):(y=zd(i[0]),y.Index&&(A=+y.Index-1),H={},("0"==y.AutoFitHeight||y.Height)&&(H.hpx=parseInt(y.Height,10),H.hpt=Vs(H.hpx),U[A]=H),"1"==y.Hidden&&(H.hidden=!0,U[A]=H));break;case"worksheet":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));d.push(m),E.s.r<=E.e.r&&E.s.c<=E.e.c&&(p["!ref"]=gr(E),n.sheetRows&&n.sheetRows<=E.e.r&&(p["!fullref"]=p["!ref"],E.e.r=n.sheetRows-1,p["!ref"]=gr(E))),N.length&&(p["!merges"]=N),z.length>0&&(p["!cols"]=z),U.length>0&&(p["!rows"]=U),h[m]=p}else E={s:{r:2e6,c:2e6},e:{r:0,c:0}},A=C=0,c.push([i[3],!1]),l=zd(i[0]),m=Ht(l.Name),p=n.dense?[]:{},N=[],B=[],U=[],G={name:m,Hidden:0},_.Sheets.push(G);break;case"table":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==i[0].slice(-2))break;c.push([i[3],!1]),z=[],j=!1}break;case"style":"/"===i[1]?qd(T,S,n):S=zd(i[0]);break;case"numberformat":S.nf=Ht(zd(i[0]).Format||"General"),Id[S.nf]&&(S.nf=Id[S.nf]);for(var X=0;392!=X;++X)if(K[X]==S.nf)break;if(392==X)for(X=57;392!=X;++X)if(null==K[X]){qe(S.nf,X);break}break;case"column":if("table"!==c[c.length-1][0])break;if(u=zd(i[0]),u.Hidden&&(u.hidden=!0,delete u.Hidden),u.Width&&(u.wpx=parseInt(u.Width,10)),!j&&u.wpx>10){j=!0,zs=Is;for(var J=0;J0&&(ee.Sheet=_.Sheets.length-1),_.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?M+=r.slice(O,i.index):O=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;S.Interior=zd(i[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?Oi(D,V,r.slice(P,i.index)):P=i.index+i[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else c.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));_d(F),R.push(F)}else c.push([i[3],!1]),l=zd(i[0]),F={a:l.Author};break;case"autofilter":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var te=zd(i[0]);p["!autofilter"]={ref:Ql(te.Range).replace(/\$/g,"")},c.push([i[3],!0])}break;case"name":break;case"datavalidation":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"null":break;default:if(0==c.length&&"document"==i[3])return kf(r,n);if(0==c.length&&"uof"==i[3])return kf(r,n);var ne=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ne=!1}break;case"componentoptions":switch(i[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ne=!1}break;case"excelworkbook":switch(i[3]){case"date1904":_.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ne=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":break;case"height":break;case"width":break;default:ne=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(P,i.index)){case"SheetHidden":G.Hidden=1;break;case"SheetVeryHidden":G.Hidden=2;break}else P=i.index+i[0].length;break;case"header":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+zt(i[0]).Margin)||(p["!margins"].header=+zt(i[0]).Margin);break;case"footer":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+zt(i[0]).Margin)||(p["!margins"].footer=+zt(i[0]).Margin);break;case"pagemargins":var re=zt(i[0]);p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+re.Top)||(p["!margins"].top=+re.Top),isNaN(+re.Left)||(p["!margins"].left=+re.Left),isNaN(+re.Right)||(p["!margins"].right=+re.Right),isNaN(+re.Bottom)||(p["!margins"].bottom=+re.Bottom);break;case"displayrighttoleft":_.Views||(_.Views=[]),_.Views[0]||(_.Views[0]={}),_.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ne=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ne=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ne=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ne=!1}break;case"querytable":switch(i[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ne=!1}break;case"datavalidation":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ne=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ne=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:ne=!1}break;case"smarttags":break;default:ne=!1;break}if(ne)break;if(i[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+c.join("|");if("customdocumentproperties"===c[c.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?Ud(L,V,I,r.slice(P,i.index)):(I=i,P=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+c.join("|")}var ie={};return n.bookSheets||n.bookProps||(ie.Sheets=h),ie.SheetNames=d,ie.Workbook=_,ie.SSF=dt(K),ie.Props=D,ie.Custprops=L,ie}function Vd(e,t){switch(Kf(t=t||{}),t.type||"base64"){case"base64":return Gd(A(e),t);case"binary":case"buffer":case"file":return Gd(e,t);case"array":return Gd(N(e),t)}}function Yd(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=Hr(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4?t:(r=n.read_shift(4),1907505652!==r?t:(t.UnicodeClipboardFormat=qr(n),r=n.read_shift(4),0==r||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr"))))))}var Kd=[60,1084,2066,2165,2175];function Zd(e,t,n,r,i){var o=r,a=[],s=n.slice(n.l,n.l+o);if(i&&i.enc&&i.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(s)}a.push(s),n.l+=o;var l=jn(n,n.l),c=rf[l],u=0;while(null!=c&&Kd.indexOf(l)>-1)o=jn(n,n.l+2),u=n.l+4,2066==l?u+=4:2165!=l&&2175!=l||(u+=12),s=n.slice(u,n.l+4+o),a.push(s),n.l+=4+o,c=rf[l=jn(n,n.l)];var h=L(a);Zn(h,0);var d=0;h.lens=[];for(var f=0;f1)&&!(n.sheetRows&&e.r>=n.sheetRows)){if(n.cellStyles&&t.XF&&t.XF.data&&O(e,t,n),delete t.ixfe,delete t.XF,i=e,x=pr(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),n.cellFormula&&t.f)for(var r=0;re.c||C[r][0].s.r>e.r)&&!(C[r][0].e.c>8)!==V)throw new Error("rt mismatch: "+X+"!="+V);12==Z.r&&(e.l+=10,Y-=10)}var J={};if(J=10===V?Z.f(e,Y,D):Zd(V,Z,e,Y,D),0==U&&-1===[9,521,1033,2057].indexOf(B))continue;switch(V){case 34:n.opts.Date1904=T.WBProps.date1904=J;break;case 134:n.opts.WriteProtect=!0;break;case 47:if(D.enc||(e.l=0),D.enc=J,!t.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:D.lastuser=J;break;case 66:var Q=Number(J);switch(Q){case 21010:Q=1200;break;case 32768:Q=1e4;break;case 32769:Q=1252;break}h(D.codepage=Q),_=!0;break;case 317:D.rrtabid=J;break;case 25:D.winlocked=J;break;case 439:n.opts["RefreshAll"]=J;break;case 12:n.opts["CalcCount"]=J;break;case 16:n.opts["CalcDelta"]=J;break;case 17:n.opts["CalcIter"]=J;break;case 13:n.opts["CalcMode"]=J;break;case 14:n.opts["CalcPrecision"]=J;break;case 95:n.opts["CalcSaveRecalc"]=J;break;case 15:D.CalcRefMode=J;break;case 2211:n.opts.FullCalc=J;break;case 129:J.fDialog&&(f["!type"]="dialog"),J.fBelow||((f["!outline"]||(f["!outline"]={})).above=!0),J.fRight||((f["!outline"]||(f["!outline"]={})).left=!0);break;case 224:A.push(J);break;case 430:z.push([J]),z[z.length-1].XTI=[];break;case 35:case 547:z[z.length-1].push(J);break;case 24:case 536:j={Name:J.Name,Ref:Pu(J.rgce,m,null,z,D)},J.itab>0&&(j.Sheet=J.itab-1),z.names.push(j),z[0]||(z[0]=[],z[0].XTI=[]),z[z.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(W[J.itab-1]={ref:gr(J.rgce[0][0][1][2])});break;case 22:D.ExternCount=J;break;case 23:0==z.length&&(z[0]=[],z[0].XTI=[]),z[z.length-1].XTI=z[z.length-1].XTI.concat(J),z.XTI=z.XTI.concat(J);break;case 2196:if(D.biff<8)break;null!=j&&(j.Comment=J[1]);break;case 18:f["!protect"]=J;break;case 19:0!==J&&D.WTF&&console.error("Password verifier: "+J);break;case 133:p[J.pos]=J,D.snames.push(J.name);break;case 10:if(--U)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,f["!ref"]=gr(m),t.sheetRows&&t.sheetRows<=m.e.r){var $=m.e.r;m.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=gr(m),m.e.r=$}m.e.r++,m.e.c++}L.length>0&&(f["!merges"]=L),P.length>0&&(f["!objects"]=P),I.length>0&&(f["!cols"]=I),R.length>0&&(f["!rows"]=R),T.Sheets.push(S)}""===b?y=f:r[b]=f,f=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===D.biff&&(D.biff={9:2,521:3,1033:4}[V]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),D.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(D.biff=5,_=!0,h(D.codepage=28591)),8==D.biff&&0==J.BIFFVer&&16==J.dt&&(D.biff=2),U++)break;if(f=t.dense?[]:{},D.biff<8&&!_&&(_=!0,h(D.codepage=t.codepage||1252)),D.biff<5||0==J.BIFFVer&&4096==J.dt){""===b&&(b="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-Y,name:b};p[ee.pos]=ee,D.snames.push(b)}else b=(p[G]||{name:""}).name;32==J.dt&&(f["!type"]="chart"),64==J.dt&&(f["!type"]="macro"),L=[],P=[],D.arrayf=C=[],I=[],R=[],F=!1,S={Hidden:(p[G]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==f["!type"]&&(t.dense?(f[J.r]||[])[J.c]:f[pr({c:J.c,r:J.r})])&&++J.c,c={ixfe:J.ixfe,XF:A[J.ixfe]||{},v:J.val,t:"n"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 5:case 517:c={ixfe:J.ixfe,XF:A[J.ixfe],v:J.val,t:J.t},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 638:c={ixfe:J.ixfe,XF:A[J.ixfe],v:J.rknum,t:"n"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 189:for(var te=J.c;te<=J.C;++te){var ne=J.rkrec[te-J.c][0];c={ixfe:ne,XF:A[ne],v:J.rkrec[te-J.c][1],t:"n"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:te,r:J.r},c,t)}break;case 6:case 518:case 1030:if("String"==J.val){g=J;break}if(c=Jd(J.val,J.cell.ixfe,J.tt),c.XF=A[c.ixfe],t.cellFormula){var re=J.formula;if(re&&re[0]&&re[0][0]&&"PtgExp"==re[0][0][0]){var ie=re[0][0][1][0],oe=re[0][0][1][1],ae=pr({r:ie,c:oe});k[ae]?c.f=""+Pu(J.formula,m,J.cell,z,D):c.F=((t.dense?(f[ie]||[])[oe]:f[ae])||{}).F}else c.f=""+Pu(J.formula,m,J.cell,z,D)}H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N(J.cell,c,t),g=J;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=J,c=Jd(J,g.cell.ixfe,"s"),c.XF=A[c.ixfe],t.cellFormula&&(c.f=""+Pu(g.formula,m,g.cell,z,D)),H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N(g.cell,c,t),g=null;break;case 33:case 545:C.push(J);var se=pr(J[0].s);if(o=t.dense?(f[J[0].s.r]||[])[J[0].s.c]:f[se],t.cellFormula&&o){if(!g)break;if(!se||!o)break;o.f=""+Pu(J[1],m,J[0],z,D),o.F=gr(J[0])}break;case 1212:if(!t.cellFormula)break;if(x){if(!g)break;k[pr(g.cell)]=J[0],o=t.dense?(f[g.cell.r]||[])[g.cell.c]:f[pr(g.cell)],(o||{}).f=""+Pu(J[0],m,i,z,D)}break;case 253:c=Jd(v[J.isst].t,J.ixfe,"s"),v[J.isst].h&&(c.h=v[J.isst].h),c.XF=A[c.ixfe],H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 513:t.sheetStubs&&(c={ixfe:J.ixfe,XF:A[J.ixfe],t:"z"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t));break;case 190:if(t.sheetStubs)for(var le=J.c;le<=J.C;++le){var ce=J.ixfe[le-J.c];c={ixfe:ce,XF:A[ce],t:"z"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:le,r:J.r},c,t)}break;case 214:case 516:case 4:c=Jd(J.val,J.ixfe,"s"),c.XF=A[c.ixfe],H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 0:case 512:1===U&&(m=J);break;case 252:v=J;break;case 1054:if(4==D.biff){q[H++]=J[1];for(var ue=0;ue=163&&qe(J[1],H+163)}else qe(J[1],J[0]);break;case 30:q[H++]=J;for(var he=0;he=163&&qe(J,H+163);break;case 229:L=L.concat(J);break;case 93:P[J.cmo[0]]=D.lastobj=J;break;case 438:D.lastobj.TxO=J;break;case 127:D.lastobj.ImData=J;break;case 440:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&(o.l=J[1]);break;case 2048:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&o.l&&(o.l.Tooltip=J[1]);break;case 28:if(D.biff<=5&&D.biff>=2)break;o=t.dense?(f[J[0].r]||[])[J[0].c]:f[pr(J[0])];var de=P[J[2]];o||(t.dense?(f[J[0].r]||(f[J[0].r]=[]),o=f[J[0].r][J[0].c]={t:"z"}):o=f[pr(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),o.c||(o.c=[]),a={a:J[1],t:de.TxO.t},o.c.push(a);break;case 2173:Sl(A[J.ixfe],J.ext);break;case 125:if(!D.cellStyles)break;while(J.e>=J.s)I[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},F||(F=!0,qs(J.w/256)),Ws(I[J.e+1]);break;case 520:var fe={};null!=J.level&&(R[J.r]=fe,fe.level=J.level),J.hidden&&(R[J.r]=fe,fe.hidden=!0),J.hpt&&(R[J.r]=fe,fe.hpt=J.hpt,fe.hpx=Ys(J.hpt));break;case 38:case 39:case 40:case 41:f["!margins"]||Qu(f["!margins"]={}),f["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[V]]=J;break;case 161:f["!margins"]||Qu(f["!margins"]={}),f["!margins"].header=J.header,f["!margins"].footer=J.footer;break;case 574:J.RTL&&(T.Views[0].RTL=!0);break;case 146:E=J;break;case 2198:d=J;break;case 140:u=J;break;case 442:b?S.CodeName=J||S.name:T.WBProps.CodeName=J||"ThisWorkbook";break}}else Z||console.error("Missing Info for XLS Record 0x"+V.toString(16)),e.l+=Y}return n.SheetNames=Qe(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(n.Sheets=r),!n.SheetNames.length&&y["!ref"]?(n.SheetNames.push("Sheet1"),n.Sheets&&(n.Sheets["Sheet1"]=y)):n.Preamble=y,n.Sheets&&W.forEach((function(e,t){n.Sheets[n.SheetNames[t]]["!autofilter"]=e})),n.Strings=v,n.SSF=dt(K),D.enc&&(n.Encryption=D.enc),d&&(n.Themes=d),n.Metadata={},void 0!==u&&(n.Metadata.Country=u),z.names.length>0&&(T.Names=z.names),n.Workbook=T,n}var $d={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function ef(e,t,n){var r=Ze.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=Gi(r,ni,$d.DSI);for(var o in i)t[o]=i[o]}catch(c){if(n.WTF)throw c}var a=Ze.find(e,"/!SummaryInformation");if(a&&a.size>0)try{var s=Gi(a,ri,$d.SI);for(var l in s)null==t[l]&&(t[l]=s[l])}catch(c){if(n.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(Ci(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}function tf(e,t){var n,r,i,o;if(t||(t={}),Kf(t),d(),t.codepage&&c(t.codepage),e.FullPaths){if(Ze.find(e,"/encryption"))throw new Error("File is password-protected");n=Ze.find(e,"!CompObj"),r=Ze.find(e,"/Workbook")||Ze.find(e,"/Book")}else{switch(t.type){case"base64":e=O(A(e));break;case"binary":e=O(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Zn(e,0),r={content:e}}if(n&&Yd(n),t.bookProps&&!t.bookSheets)i={};else{var a=E?"buffer":"array";if(r&&r.content)i=Qd(r.content,t);else if((o=Ze.find(e,"PerfectOffice_MAIN"))&&o.content)i=Ga.to_workbook(o.content,(t.type=a,t));else{if(!(o=Ze.find(e,"NativeContent_MAIN"))||!o.content)throw(o=Ze.find(e,"MN0"))&&o.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=Ga.to_workbook(o.content,(t.type=a,t))}t.bookVBA&&e.FullPaths&&Ze.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=Yl(e))}var s={};return e.FullPaths&&ef(e,s,t),i.Props=i.Custprops=s,t.bookFiles&&(i.cfb=e),i}var nf={0:{f:xh},1:{f:Eh},2:{f:Rh},3:{f:Oh},4:{f:Sh},5:{f:Ph},6:{f:jh},7:{f:Dh},8:{f:Wh},9:{f:qh},10:{f:Uh},11:{f:Hh},12:{f:Th},13:{f:Fh},14:{f:Nh},15:{f:Mh},16:{f:Ih},17:{f:Bh},18:{f:Lh},19:{f:Tr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:wd},40:{},42:{},43:{f:il},44:{f:rl},45:{f:ol},46:{f:sl},47:{f:al},48:{},49:{f:Cr},50:{},51:{f:Ol},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Ea},62:{f:zh},63:{f:Il},64:{f:Qh},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Xn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Jh},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Ah},148:{f:kh,p:16},151:{f:Vh},152:{},153:{f:bd},154:{},155:{},156:{f:vd},157:{},158:{},159:{T:1,f:rs},160:{T:-1},161:{T:1,f:Fr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:_h},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Ml},336:{T:-1},337:{f:Nl,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Pr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:aa},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Yh},427:{f:Kh},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Xh},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Ch},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Gh},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Pr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:_l},633:{T:1},634:{T:-1},635:{T:1,f:Wl},636:{T:-1},637:{f:Sr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:id},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:$h},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},rf={6:{f:Bu},10:{f:Vi},12:{f:Zi},13:{f:Zi},14:{f:Ki},15:{f:Ki},16:{f:zr},17:{f:Ki},18:{f:Ki},19:{f:Zi},20:{f:ta},21:{f:ta},23:{f:aa},24:{f:oa},25:{f:Ki},26:{},27:{},28:{f:fa},29:{},34:{f:Ki},35:{f:ra},38:{f:zr},39:{f:zr},40:{f:zr},41:{f:zr},42:{f:Ki},43:{f:Ki},47:{f:Ss},49:{f:Ho},51:{f:Zi},60:{},61:{f:jo},64:{f:Ki},65:{f:Uo},66:{f:Zi},77:{},80:{},81:{},82:{},85:{f:Zi},89:{},90:{},91:{},92:{f:Oo},93:{f:ma},94:{},95:{f:Ki},96:{},97:{},99:{f:Ki},125:{f:Ea},128:{f:Qo},129:{f:No},130:{f:Zi},131:{f:Ki},132:{f:Ki},133:{f:Do},134:{},140:{f:xa},141:{f:Zi},144:{},146:{f:Ca},151:{},152:{},153:{},154:{},155:{},156:{f:Zi},157:{},158:{},160:{f:Oa},161:{f:Ta},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Ko},190:{f:Zo},193:{f:Vi},197:{},198:{},199:{},200:{},201:{},202:{f:Ki},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Zi},220:{},221:{f:Ki},222:{},224:{f:Jo},225:{f:Mo},226:{f:Vi},227:{},229:{f:pa},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Lo},253:{f:qo},255:{f:Po},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Xi},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Ki},353:{f:Vi},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:na},431:{f:Ki},432:{},433:{},434:{},437:{},438:{f:ba},439:{f:Ki},440:{f:ya},441:{},442:{f:to},443:{},444:{f:Zi},445:{},446:{},448:{f:Vi},449:{f:Fo,r:2},450:{f:Vi},512:{f:Vo},513:{f:Ma},515:{f:ea},516:{f:Wo},517:{f:$o},519:{f:Na},520:{f:Io},523:{},545:{f:ua},549:{f:zo},566:{},574:{f:Bo},638:{f:Yo},659:{},1048:{},1054:{f:_o},1084:{},1212:{f:ca},2048:{f:wa},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:So},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Vi},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Aa,r:12},2173:{f:Tl,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Ki,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:la,r:12},2197:{},2198:{f:wl,r:12},2199:{},2200:{},2201:{},2202:{f:ha,r:12},2203:{f:Vi},2204:{},2205:{},2206:{},2207:{},2211:{f:Ro},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Zi},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Sa},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:ka},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Vo},1:{},2:{f:Ia},3:{f:Pa},4:{f:La},5:{f:$o},7:{f:Ra},8:{},9:{f:So},11:{},22:{f:Zi},30:{f:Go},31:{},32:{},33:{f:ua},36:{},37:{f:zo},50:{f:Fa},62:{},52:{},67:{},68:{f:Zi},69:{},86:{},126:{},127:{f:Da},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:za},223:{},234:{},354:{},421:{},518:{f:Bu},521:{f:So},536:{f:oa},547:{f:ra},561:{},579:{},1030:{f:Bu},1033:{f:So},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function of(e,t,n,r){var i=t;if(!isNaN(i)){var o=r||(n||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&Rn(n)&&e.push(n)}}function af(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r=n.dense?[]:{};e=e.replace(//g,"");var i=e.match(/");var o=e.match(/<\/table/i),a=i.index,s=o&&o.index||e.length,l=vt(e.slice(a,s),/(:?]*>)/i,""),c=-1,u=0,h=0,d=0,f={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(a=0;a/i);for(s=0;s"))>-1)y=y.slice(x+1);for(var k=0;k")));d=A.colspan?+A.colspan:1,((h=+A.rowspan)>1||d>1)&&p.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+d-1}});var E=A.t||A["data-t"]||"";if(y.length)if(y=en(y),f.s.r>c&&(f.s.r=c),f.e.ru&&(f.s.c=u),f.e.cn||i[c].s.c>a)&&!(i[c].e.r1&&(f.rowspan=s),l>1&&(f.colspan=l),r.editable?d=''+d+"":h&&(f["data-t"]=h&&h.t||"z",null!=h.v&&(f["data-v"]=h.v),null!=h.z&&(f["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(d=''+d+"")),f.id=(r.id||"sjs")+"-"+u,o.push(ln("td",d,f))}}var p="";return p+o.join("")+""}var lf='SheetJS Table Export',cf="";function uf(e,t){var n=e.match(/[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find
");if(1==n.length)return wr(af(n[0],t),t);var r=xp();return n.forEach((function(e,n){kp(r,af(e,t),"Sheet"+(n+1))})),r}function hf(e,t,n){var r=[];return r.join("")+""}function df(e,t){var n=t||{},r=null!=n.header?n.header:lf,i=null!=n.footer?n.footer:cf,o=[r],a=mr(e["!ref"]);n.dense=Array.isArray(e),o.push(hf(e,a,n));for(var s=a.s.r;s<=a.e.r;++s)o.push(sf(e,a,s,n));return o.push("
"+i),o.join("")}function ff(e,t,n){var r=n||{};null!=w&&(r.dense=w);var i=0,o=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var a="string"==typeof r.origin?fr(r.origin):r.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var u=mr(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==i&&(c.e.r=i=u.e.r+1)}var h=[],d=0,f=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,y=0;for(e["!cols"]||(e["!cols"]=[]);p1||y>1)&&h.push({s:{r:m+i,c:v+o},e:{r:m+i+(b||1)-1,c:v+o+(y||1)-1}});var S={t:"s",v:A},M=C.getAttribute("data-t")||C.getAttribute("t")||"";null!=A&&(0==A.length?S.t=M||"z":r.raw||0==A.trim().length||"s"==M||("TRUE"===A?S={t:"b",v:!0}:"FALSE"===A?S={t:"b",v:!1}:isNaN(pt(A))?isNaN(gt(A).getDate())||(S={t:"d",v:ut(A)},r.cellDates||(S={t:"n",v:tt(S.v)}),S.z=r.dateNF||K[14]):S={t:"n",v:pt(A)})),void 0===S.z&&null!=E&&(S.z=E);var O="",N=C.getElementsByTagName("A");if(N&&N.length)for(var D=0;D=l&&(e["!fullref"]=gr((c.e.r=s.length-p+m-1+i,c))),e}function pf(e,t){var n=t||{},r=n.dense?[]:{};return ff(r,e,t)}function mf(e,t){return wr(pf(e,t),t)}function gf(e){var t="",n=vf(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function vf(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}function bf(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n"),n=Ht(t.replace(/<[^>]*>/g,""));return[n]}var yf={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function wf(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r,i,o,a,s,l,c,u=cn(e),h=[],d={name:""},f="",p=0,m={},g=[],v=n.dense?[]:{},b={value:""},y="",x=0,k=[],C=-1,A=-1,E={s:{r:1e6,c:1e7},e:{r:0,c:0}},T=0,S={},M=[],O={},N=0,D=0,L=[],P=1,I=1,R=[],F={Names:[]},z={},j=["",""],B=[],U={},H="",q=0,W=!1,_=!1,G=0;un.lastIndex=0,u=u.replace(//gm,"").replace(//gm,"");while(s=un.exec(u))switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(E.e.c>=E.s.c&&E.e.r>=E.s.r?v["!ref"]=gr(E):v["!ref"]="A1:A1",n.sheetRows>0&&n.sheetRows<=E.e.r&&(v["!fullref"]=v["!ref"],E.e.r=n.sheetRows-1,v["!ref"]=gr(E)),M.length&&(v["!merges"]=M),L.length&&(v["!rows"]=L),o.name=o["名称"]||o.name,"undefined"!==typeof JSON&&JSON.stringify(o),g.push(o.name),m[o.name]=v,_=!1):"/"!==s[0].charAt(s[0].length-2)&&(o=zt(s[0],!1),C=A=-1,E.s.r=E.s.c=1e7,E.e.r=E.e.c=0,v=n.dense?[]:{},M=[],L=[],_=!0);break;case"table-row-group":"/"===s[1]?--T:++T;break;case"table-row":case"行":if("/"===s[1]){C+=P,P=1;break}if(a=zt(s[0],!1),a["行号"]?C=a["行号"]-1:-1==C&&(C=0),P=+a["number-rows-repeated"]||1,P<10)for(G=0;G0&&(L[C+G]={level:T});A=-1;break;case"covered-table-cell":"/"!==s[1]&&++A,n.sheetStubs&&(n.dense?(v[C]||(v[C]=[]),v[C][A]={t:"z"}):v[pr({r:C,c:A})]={t:"z"}),y="",k=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++A,b=zt(s[0],!1),I=parseInt(b["number-columns-repeated"]||"1",10),l={t:"z",v:null},b.formula&&0!=n.cellFormula&&(l.f=Ku(Ht(b.formula))),"string"==(b["数据类型"]||b["value-type"])&&(l.t="s",l.v=Ht(b["string-value"]||""),n.dense?(v[C]||(v[C]=[]),v[C][A]=l):v[pr({r:C,c:A})]=l),A+=I-1;else if("/"!==s[1]){++A,y="",x=0,k=[],I=1;var V=P?C+P-1:C;if(A>E.e.c&&(E.e.c=A),AE.e.r&&(E.e.r=V),b=zt(s[0],!1),B=[],U={},l={t:b["数据类型"]||b["value-type"],v:null},n.cellFormula)if(b.formula&&(b.formula=Ht(b.formula)),b["number-matrix-columns-spanned"]&&b["number-matrix-rows-spanned"]&&(N=parseInt(b["number-matrix-rows-spanned"],10)||0,D=parseInt(b["number-matrix-columns-spanned"],10)||0,O={s:{r:C,c:A},e:{r:C+N-1,c:A+D-1}},l.F=gr(O),R.push([O,l.F])),b.formula)l.f=Ku(b.formula);else for(G=0;G=R[G][0].s.r&&C<=R[G][0].e.r&&A>=R[G][0].s.c&&A<=R[G][0].e.c&&(l.F=R[G][1]);switch((b["number-columns-spanned"]||b["number-rows-spanned"])&&(N=parseInt(b["number-rows-spanned"],10)||0,D=parseInt(b["number-columns-spanned"],10)||0,O={s:{r:C,c:A},e:{r:C+N-1,c:A+D-1}},M.push(O)),b["number-columns-repeated"]&&(I=parseInt(b["number-columns-repeated"],10)),l.t){case"boolean":l.t="b",l.v=Vt(b["boolean-value"]);break;case"float":l.t="n",l.v=parseFloat(b.value);break;case"percentage":l.t="n",l.v=parseFloat(b.value);break;case"currency":l.t="n",l.v=parseFloat(b.value);break;case"date":l.t="d",l.v=ut(b["date-value"]),n.cellDates||(l.t="n",l.v=tt(l.v)),l.z="m/d/yy";break;case"time":l.t="n",l.v=at(b["time-value"])/86400,n.cellDates&&(l.t="d",l.v=ot(l.v)),l.z="HH:MM:SS";break;case"number":l.t="n",l.v=parseFloat(b["数据数值"]);break;default:if("string"!==l.t&&"text"!==l.t&&l.t)throw new Error("Unsupported value type "+l.t);l.t="s",null!=b["string-value"]&&(y=Ht(b["string-value"]),k=[])}}else{if(W=!1,"s"===l.t&&(l.v=y||"",k.length&&(l.R=k),W=0==x),z.Target&&(l.l=z),B.length>0&&(l.c=B,B=[]),y&&!1!==n.cellText&&(l.w=y),W&&(l.t="z",delete l.v),(!W||n.sheetStubs)&&!(n.sheetRows&&n.sheetRows<=C))for(var Y=0;Y0)v[C+Y][A+I]=dt(l)}else{v[pr({r:C+Y,c:A})]=l;while(--I>0)v[pr({r:C+Y,c:A+I})]=dt(l)}E.e.c<=A&&(E.e.c=A)}I=parseInt(b["number-columns-repeated"]||"1",10),A+=I-1,I=0,l={},y="",k=[]}z={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r;U.t=y,k.length&&(U.R=k),U.a=H,B.push(U)}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);H="",q=0,y="",x=0,k=[];break;case"creator":"/"===s[1]?H=u.slice(q,s.index):q=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);y="",x=0,k=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(S[d.name]=f,(r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&(f="",d=zt(s[0],!1),h.push([s[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(h[h.length-1][0]){case"time-style":case"date-style":i=zt(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":i=zt(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":f+=u.slice(p,s.index);break}else p=s.index+s[0].length;break;case"named-range":i=zt(s[0],!1),j=Zu(i["cell-range-address"]);var K={Name:i.name,Ref:j[0]+"!"+j[1]};_&&(K.Sheet=g.length),F.Names.push(K);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if("/"!==s[1]||b&&b["string-value"])c=zt(s[0],!1),x=s.index+s[0].length;else{var Z=bf(u.slice(x,s.index),c);y=(y.length>0?y+"\n":"")+Z[0]}break;case"s":break;case"database-range":if("/"===s[1])break;try{j=Zu(zt(s[0])["target-range-address"]),m[j[0]]["!autofilter"]={ref:j[1]}}catch(J){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if("/"!==s[1]){if(z=zt(s[0],!1),!z.href)break;z.Target=Ht(z.href),delete z.href,"#"==z.Target.charAt(0)&&z.Target.indexOf(".")>-1?(j=Zu(z.Target.slice(1)),z.Target="#"+j[0]+"!"+j[1]):z.Target.match(/^\.\.[\\\/]/)&&(z.Target=z.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(n.WTF)throw new Error(s)}}var X={Sheets:m,SheetNames:g,Workbook:F};return n.bookSheets&&delete X.Sheets,X}function xf(e,t){t=t||{},xt(e,"META-INF/manifest.xml")&&bi(Ct(e,"META-INF/manifest.xml"),t);var n=At(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=wf(Jt(n),t);return xt(e,"meta.xml")&&(r.Props=xi(Ct(e,"meta.xml"))),r}function kf(e,t){return wf(e,t)} +var i={version:"0.18.5"},o=1200,a=1252,s=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},c=function(e){-1!=s.indexOf(e)&&(a=l[0]=e)};function u(){c(1252)}var h=function(e){o=e,c(e)};function d(){h(1200),u()}function f(e){for(var t=[],n=0,r=e.length;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}function m(e){for(var t=[],n=0;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var g,v=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?p(e.slice(2)):254==t&&255==n?m(e.slice(2)):65279==t?e.slice(1):e},b=function(e){return String.fromCharCode(e)},y=function(e){return String.fromCharCode(e)};var w=null,x=!0,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(e){for(var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0,c=0;c>2,r=e.charCodeAt(c++),a=(3&n)<<4|r>>4,i=e.charCodeAt(c++),s=(15&r)<<2|i>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=k.charAt(o)+k.charAt(a)+k.charAt(s)+k.charAt(l);return t}function A(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(n),s=k.indexOf(e.charAt(c++)),r=(15&a)<<4|s>>2,64!==s&&(t+=String.fromCharCode(r)),l=k.indexOf(e.charAt(c++)),i=(3&s)<<6|l,64!==l&&(t+=String.fromCharCode(i));return t}var E=function(){return"undefined"!==typeof e&&"undefined"!==typeof r&&"undefined"!==typeof r.versions&&!!r.versions.node}(),T=function(){if("undefined"!==typeof e){var t=!e.from;if(!t)try{e.from("foo","utf8")}catch(n){t=!0}return t?function(t,n){return n?new e(t,n):new e(t)}:e.from.bind(e)}return function(){}}();function S(t){return E?e.alloc?e.alloc(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function M(t){return E?e.allocUnsafe?e.allocUnsafe(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var O=function(e){return E?T(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function N(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n>6&31,i[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&e.charCodeAt(++o);i[n++]=240|a>>8&7,i[n++]=128|a>>2&63,i[n++]=128|s>>6&15|(3&a)<<4,i[n++]=128|63&s}else i[n++]=224|a>>12&15,i[n++]=128|a>>6&63,i[n++]=128|63&a;n>r&&(t.push(i.slice(0,n)),n=0,i=S(65535),r=65530)}return t.push(i.slice(0,n)),L(t)}var I=/\u0000/g,R=/[\u0001-\u0006]/g;function F(e){var t="",n=e.length-1;while(n>=0)t+=e.charAt(n--);return t}function z(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}function j(e,t){var n=""+e;return n.length>=t?n:ft(" ",t-n.length)+n}function B(e,t){var n=""+e;return n.length>=t?n:n+ft(" ",t-n.length)}function U(e,t){var n=""+Math.round(e);return n.length>=t?n:ft("0",t-n.length)+n}function H(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}var q=Math.pow(2,32);function _(e,t){if(e>q||e<-q)return U(e,t);var n=Math.round(e);return H(n,t)}function W(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var G=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],V=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Y(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var K={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Z={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},X={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function J(e,t,n){var r=e<0?-1:1,i=e*r,o=0,a=1,s=0,l=1,c=0,u=0,h=Math.floor(i);while(ct&&(c>t?(u=l,s=o):(u=c,s=a)),!n)return[0,r*s,u];var d=Math.floor(r*s/u);return[d,r*s-d*u,u]}function Q(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),o=0,a=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),r<60&&(o=(o+6)%7),n&&(o=ue(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var ee=new Date(1899,11,31,0,0,0),te=ee.getTime(),ne=new Date(1900,2,1,0,0,0);function re(e,t){var n=e.getTime();return t?n-=1262304e5:e>=ne&&(n+=864e5),(n-(te+6e4*(e.getTimezoneOffset()-ee.getTimezoneOffset())))/864e5}function ie(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function oe(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ae(e){var t=e<0?12:11,n=ie(e.toFixed(12));return n.length<=t?n:(n=e.toPrecision(10),n.length<=t?n:e.toExponential(5))}function se(e){var t=ie(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}function le(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?ae(e):10===n?e.toFixed(10).substr(0,12):se(e),ie(oe(t.toUpperCase()))}function ce(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):le(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return He(14,re(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ue(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function he(e,t,n,r){var i,o="",a=0,s=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:i=n.m,c=t.length;break;case 3:return V[n.m-1][1];case 5:return V[n.m-1][0];default:return V[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,c=t.length;break;case 3:return G[n.q][0];default:return G[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,a=Math.round(s*(n.S+n.u)),a>=60*s&&(a=0),"s"===t?0===a?"0":""+a/s:(o=z(a,2+r),"ss"===t?o.substr(0,2):"."+o.substr(2,t.length-1))):z(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:i=l,c=1;break}var u=c>0?z(i,c):"";return u}function de(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}var fe=/%/g;function pe(e,t,n){var r=t.replace(fe,""),i=t.length-r.length;return Pe(e,r,n*Math.pow(10,2*i))+ft("%",i)}function me(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return Pe(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function ge(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ge(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),-1===n.indexOf("e")){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o);while("0."===n.substr(0,2))n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var ve=/# (\?+)( ?)\/( ?)(\d+)/;function be(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),o=Math.floor(i/r),a=i-o*r,s=r;return n+(0===o?"":""+o)+" "+(0===a?ft(" ",e[1].length+1+e[4].length):j(a,e[1].length)+e[2]+"/"+e[3]+z(s,e[4].length))}function ye(e,t,n){return n+(0===t?"":""+t)+ft(" ",e[1].length+2+e[4].length)}var we=/^#*0*\.([0#]+)/,xe=/\).*[0#]/,ke=/\(###\) ###\\?-####/;function Ce(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function Ae(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function Ee(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function Te(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Se(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function Me(e,t,n){if(40===e.charCodeAt(0)&&!t.match(xe)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Me("n",r,n):"("+Me("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return me(e,t,n);if(-1!==t.indexOf("%"))return pe(e,t,n);if(-1!==t.indexOf("E"))return ge(t,n);if(36===t.charCodeAt(0))return"$"+Me(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+_(l,t.length);if(t.match(/^[#?]+$/))return i=_(n,0),"0"===i&&(i=""),i.length>t.length?i:Ce(t.substr(0,t.length-i.length))+i;if(o=t.match(ve))return be(o,l,c);if(t.match(/^#+0+$/))return c+_(l,t.length-t.indexOf("0"));if(o=t.match(we))return i=Ae(n,o[1].length).replace(/^([^\.]+)$/,"$1."+Ce(o[1])).replace(/\.$/,"."+Ce(o[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",Ce(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+Ae(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+de(_(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Me(e,t,-n):de(""+(Math.floor(n)+Te(n,o[1].length)))+"."+z(Ee(n,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return Me(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=F(Me(e,t.replace(/[\\-]/g,""),n)),a=0,F(F(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a=0?Le("n",r,n):"("+Le("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return Oe(e,t,n);if(-1!==t.indexOf("%"))return Ne(e,t,n);if(-1!==t.indexOf("E"))return De(t,n);if(36===t.charCodeAt(0))return"$"+Le(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+z(l,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:Ce(t.substr(0,t.length-i.length))+i;if(o=t.match(ve))return ye(o,l,c);if(t.match(/^#+0+$/))return c+z(l,t.length-t.indexOf("0"));if(o=t.match(we))return i=(""+n).replace(/^([^\.]+)$/,"$1."+Ce(o[1])).replace(/\.$/,"."+Ce(o[1])),i=i.replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",Ce(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+de(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Le(e,t,-n):de(""+n)+"."+ft("0",o[1].length);if(o=t.match(/^#,#*,#0/))return Le(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=F(Le(e,t.replace(/[\\-]/g,""),n)),a=0,F(F(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===n);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t-1);break;case" ":++t;break;default:++t;break}return!1}function ze(e,t,n,r){var i,o,a,s=[],l="",c=0,u="",h="t",d="H";while(c=12?"P":"A"),m.t="T",d="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",c+=5,d="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",c+=5,d="h"):(m.t="t",++c),null==i&&"T"===m.t)return"";s[s.length]=m,h=u;break;case"[":l=u;while("]"!==e.charAt(c++)&&c-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Fe(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){l=u;while(++c-1)l+=u;s[s.length]={t:"n",v:l};break;case"?":l=u;while(e.charAt(++c)===u)l+=u;s[s.length]={t:u,v:l},h=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===r?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=u;while(c-1)l+=e.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"t",v:u},++c;break}var g,v=0,b=0;for(c=s.length-1,h="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=d,h="h",v<1&&(v=1);break;case"s":(g=s[c].v.match(/\.0+$/))&&(b=Math.max(b,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=s[c].t;break;case"m":"s"===h&&(s[c].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[c].v.match(/[Hh]/)&&(v=1),v<2&&s[c].v.match(/[Mm]/)&&(v=2),v<3&&s[c].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M);break}var y,w="";for(c=0;c0){40==w.charCodeAt(0)?(x=t<0&&45===w.charCodeAt(0)?-t:t,k=Pe("n",w,x)):(x=t<0&&r>1?-t:t,k=Pe("n",w,x),x<0&&s[0]&&"t"==s[0].t&&(k=k.substr(1),s[0].v="-"+s[0].v)),y=k.length-1;var A=s.length;for(c=0;c-1){A=c;break}var E=s.length;if(A===s.length&&-1===k.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(y>=s[c].v.length-1?(y-=s[c].v.length,s[c].v=k.substr(y+1,s[c].v.length)):y<0?s[c].v="":(s[c].v=k.substr(0,y+1),y=-1),s[c].t="t",E=c);y>=0&&E=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(o=s[c].v.indexOf(".")>-1&&c===A?s[c].v.indexOf(".")-1:s[c].v.length-1,C=s[c].v.substr(o+1);o>=0;--o)y>=0&&("0"===s[c].v.charAt(o)||"#"===s[c].v.charAt(o))&&(C=k.charAt(y--)+C);s[c].v=C,s[c].t="t",E=c}for(y>=0&&E-1&&c===A?s[c].v.indexOf(".")+1:0,C=s[c].v.substr(0,o);o-1&&(x=r>1&&t<0&&c>0&&"-"===s[c-1].v?-t:t,s[c].v=Pe(s[c].t,s[c].v,x),s[c].t="t");var T="";for(c=0;c!==s.length;++c)null!=s[c]&&(T+=s[c].v);return T}var je=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Be(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function Ue(e,t){var n=Ie(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!==typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break;case 4:break}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var a=n[0].match(je),s=n[1].match(je);return Be(t,a)?[r,n[0]]:Be(t,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,o]}function He(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:K)[e],null==r&&(r=n.table&&n.table[Z[e]]||K[Z[e]]),null==r&&(r=X[e]||"General");break}if(W(r,0))return ce(t,n);t instanceof Date&&(t=re(t,n.date1904));var i=Ue(r,t);if(W(i[1]))return ce(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return ze(i[1],t,n,i[0])}function qe(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(void 0!=K[n]){if(K[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return K[t]=e,t}function _e(){K=Y()}var We={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ge=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ve(e){var t="number"==typeof e?K[e]:e;return t=t.replace(Ge,"(\\d+)"),new RegExp("^"+t+"$")}function Ye(e,t,n){var r=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(Ge)||[]).forEach((function(e,t){var c=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=c;break;case"d":o=c;break;case"h":a=c;break;case"s":l=c;break;case"m":a>=0?s=c:i=c;break}})),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var c=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==a&&-1==s&&-1==l?c:-1==r&&-1==i&&-1==o?u:c+"T"+u}var Ke=function(){var e={};function t(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=n,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var n=t();function r(e){var t=0,n=0,r=0,i="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!==typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return o}var i=r(n),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],h=i[6],d=i[7],f=i[8],p=i[9],m=i[10],g=i[11],v=i[12],b=i[13],y=i[14];function w(e,t){for(var r=-1^t,i=0,o=e.length;i>>8^n[255&(r^e.charCodeAt(i++))];return~r}function x(e,t){for(var r=-1^t,i=e.length-15,w=0;w>8&255]^v[e[w++]^r>>16&255]^g[e[w++]^r>>>24]^m[e[w++]]^p[e[w++]]^f[e[w++]]^d[e[w++]]^h[e[w++]]^u[e[w++]]^c[e[w++]]^l[e[w++]]^s[e[w++]]^a[e[w++]]^o[e[w++]]^n[e[w++]];i+=15;while(w>>8^n[255&(r^e[w++])];return~r}function k(e,t){for(var r=-1^t,i=0,o=e.length,a=0,s=0;i>>8^n[255&(r^a)]:a<2048?(r=r>>>8^n[255&(r^(192|a>>6&31))],r=r>>>8^n[255&(r^(128|63&a))]):a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(i++),r=r>>>8^n[255&(r^(240|a>>8&7))],r=r>>>8^n[255&(r^(128|a>>2&63))],r=r>>>8^n[255&(r^(128|s>>6&15|(3&a)<<4))],r=r>>>8^n[255&(r^(128|63&s))]):(r=r>>>8^n[255&(r^(224|a>>12&15))],r=r>>>8^n[255&(r^(128|a>>6&63))],r=r>>>8^n[255&(r^(128|63&a))]);return~r}return e.table=n,e.bstr=w,e.buf=x,e.str=k,e}(),Ze=function(){var t,n={};function r(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,o=0,a=Math.min(n.length,r.length);i>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=r<<4|t.getMonth()+1,r=r<<5|t.getDate(),e.write_shift(2,r)}function s(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n;n>>>=5;var o=15&n;n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(o-1),r.setDate(i);var a=31&t;t>>>=5;var s=63&t;return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(a<<1),r}function l(e){Zn(e,0);var t={},n=0;while(e.l<=e.length-4){var r=e.read_shift(2),i=e.read_shift(2),o=e.l+i,a={};switch(r){case 21589:n=e.read_shift(1),1&n&&(a.mtime=e.read_shift(4)),i>5&&(2&n&&(a.atime=e.read_shift(4)),4&n&&(a.ctime=e.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));break}e.l=o,t[r]=a}return t}function c(){return t||(t={})}function u(e,t){if(80==e[0]&&75==e[1])return Le(e,t);if(109==(32|e[0])&&105==(32|e[1]))return He(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n=3,r=512,i=0,o=0,a=0,s=0,l=0,c=[],u=e.slice(0,512);Zn(u,0);var m=h(u);switch(n=m[0],n){case 3:r=512;break;case 4:r=4096;break;case 0:if(0==m[1])return Le(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==r&&(u=e.slice(0,r),Zn(u,28));var v=e.slice(0,r);d(u,n);var w=u.read_shift(4,"i");if(3===n&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);u.l+=4,a=u.read_shift(4,"i"),u.l+=4,u.chk("00100000","Mini Stream Cutoff Size: "),s=u.read_shift(4,"i"),i=u.read_shift(4,"i"),l=u.read_shift(4,"i"),o=u.read_shift(4,"i");for(var x=-1,k=0;k<109;++k){if(x=u.read_shift(4,"i"),x<0)break;c[k]=x}var C=f(e,r);g(l,o,C,r,c);var A=b(C,a,c,r);A[a].name="!Directory",i>0&&s!==U&&(A[s].name="!MiniFAT"),A[c[0]].name="!FAT",A.fat_addrs=c,A.ssz=r;var E={},T=[],S=[],M=[];y(a,A,C,T,i,E,S,s),p(S,M,T),T.shift();var O={FileIndex:S,FullPaths:M};return t&&t.raw&&(O.raw={header:v,sectors:C}),O}function h(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(H,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function d(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function f(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i0&&a>=0)o.push(t.slice(a*B,a*B+B)),i-=B,a=Hn(n,4*a);return 0===o.length?Jn(0):L(o).slice(0,e.size)}function g(e,t,n,r,i){var o=U;if(e===U){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var a=n[e],s=(r>>>2)-1;if(!a)return;for(var l=0;l=0;){i[l]=!0,o[o.length]=l,a.push(e[l]);var u=n[Math.floor(4*l/r)];if(c=4*l&s,r<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[u])break;l=Hn(e[u],c)}return{nodes:o,data:gn([a])}}function b(e,t,n,r){var i=e.length,o=[],a=[],s=[],l=[],c=r-1,u=0,h=0,d=0,f=0;for(u=0;u=i&&(d-=i),!a[d]){l=[];var p=[];for(h=d;h>=0;){p[h]=!0,a[h]=!0,s[s.length]=h,l.push(e[h]);var m=n[Math.floor(4*h/r)];if(f=4*h&c,r<4+f)throw new Error("FAT boundary crossed: "+h+" 4 "+r);if(!e[m])break;if(h=Hn(e[m],f),p[h])break}o[d]={nodes:s,data:gn([l])}}return o}function y(e,t,n,r,i,o,a,s){for(var l,c=0,u=r.length?2:0,h=t[e].data,d=0,f=0;d0&&c!==U&&(t[c].name="!StreamData")):g.size>=4096?(g.storage="fat",void 0===t[g.start]&&(t[g.start]=v(n,g.start,t.fat_addrs,t.ssz)),t[g.start].name=g.name,g.content=t[g.start].data.slice(0,g.size)):(g.storage="minifat",g.size<0?g.size=0:c!==U&&g.start!==U&&t[c]&&(g.content=m(g,t[c].data,(t[s]||{}).data))),g.content&&Zn(g.content,0),o[l]=g,a.push(g)}}function w(e,t){return new Date(1e3*(Un(e,t+4)/1e7*Math.pow(2,32)+Un(e,t)/1e7-11644473600))}function x(e,n){return c(),u(t.readFileSync(e),n)}function k(t,n){var r=n&&n.type;switch(r||E&&e.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return x(t,n);case"base64":return u(O(A(t)),n);case"binary":return u(O(t),n)}return u(t,n)}function N(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),D(e)}function D(e){var t="Sh33tJ5";if(!Ze.find(e,"/"+t)){var n=Jn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),P(e)}}function P(e,t){N(e);for(var n=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var l=e.FileIndex[s];switch(l.type){case 0:a?n=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(l.R*l.L*l.C)&&(n=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(n=!0);break;default:n=!0;break}}if(n||t){var c=new Date(1987,1,19),u=0,h=Object.create?Object.create(null):{},d=[];for(s=0;s1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(u=s+1;u=d.length?-1:u,u=s+1;u=d.length?-1:u,p.type=1}else i(e.FullPaths[s+1]||"")==i(m)&&(p.R=s+1),p.type=2}}}function F(t,n){var r=n||{};if("mad"==r.fileType)return qe(t,r);switch(P(t),r.fileType){case"zip":return Ie(t,r)}var i=function(e){for(var t=0,n=0,r=0;r0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}var a=e.FullPaths.length+3>>2,s=t+7>>3,l=t+127>>7,c=s+n+a+l,u=c+127>>7,h=u<=109?0:Math.ceil((u-109)/127);while(c+u+h+127>>7>u)h=++u<=109?0:Math.ceil((u-109)/127);var d=[1,h,u,l,a,n,t,0];return e.FileIndex[0].size=t<<6,d[7]=(e.FileIndex[0].start=d[0]+d[1]+d[2]+d[3]+d[4]+d[5])+(d[6]+7>>3),d}(t),o=Jn(i[7]<<9),a=0,s=0;for(a=0;a<8;++a)o.write_shift(1,q[a]);for(a=0;a<8;++a)o.write_shift(2,0);for(o.write_shift(2,62),o.write_shift(2,3),o.write_shift(2,65534),o.write_shift(2,9),o.write_shift(2,6),a=0;a<3;++a)o.write_shift(2,0);for(o.write_shift(4,0),o.write_shift(4,i[2]),o.write_shift(4,i[0]+i[1]+i[2]+i[3]-1),o.write_shift(4,0),o.write_shift(4,4096),o.write_shift(4,i[3]?i[0]+i[1]+i[2]-1:U),o.write_shift(4,i[3]),o.write_shift(-4,i[1]?i[0]-1:U),o.write_shift(4,i[1]),a=0;a<109;++a)o.write_shift(-4,a>9)));l(i[6]+7>>3);while(511&o.l)o.write_shift(-4,W.ENDOFCHAIN);for(s=a=0,c=0;c=4096||(h.start=s,l(u+63>>6)));while(511&o.l)o.write_shift(-4,W.ENDOFCHAIN);for(a=0;a=4096)if(o.l=h.start+1<<9,E&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+511&-512;else{for(c=0;c0&&h.size<4096)if(E&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+63&-64;else{for(c=0;c>16|t>>8|t)}for(var te="undefined"!==typeof Uint8Array,ne=te?new Uint8Array(256):[],re=0;re<256;++re)ne[re]=ee(re);function ie(e,t){var n=ne[255&e];return t<=8?n>>>8-t:(n=n<<8|ne[e>>8&255],t<=16?n>>>16-t:(n=n<<8|ne[e>>16&255],n>>>24-t))}function oe(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function ae(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function se(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}function le(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function ce(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function ue(e,t,n){var r=7&t,i=t>>>3,o=(1<>>r;return n<8-r?a&o:(a|=e[i+1]<<8-r,n<16-r?a&o:(a|=e[i+2]<<16-r,n<24-r||(a|=e[i+3]<<24-r),a&o))}function he(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<>8-r),t+3}function de(e,t,n){var r=7&t,i=t>>>3;return n=(1&n)<>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=n,t+8}function pe(e,t,n){var r=7&t,i=t>>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=255&n,e[i+2]=n>>>8,t+16}function me(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(E){var o=M(r);if(e.copy)e.copy(o);else for(;i>r-h,a=(1<=0;--a)t[s|a<0)t[t.l++]=e[n++]}return t.l}function o(t,n){var i=0,o=0,a=te?new Uint16Array(32768):[];while(o0)n[n.l++]=t[o++];i=8*n.l}else{i=he(n,i,+!(o+s!=t.length)+2);var l=0;while(s-- >0){var c=t[o];l=32767&(l<<5^c);var u=-1,h=0;if((u=a[l])&&(u|=-32768&o,u>o&&(u-=32768),u2){c=r[h],c<=22?i=fe(n,i,ne[c+1]>>1)-1:(fe(n,i,3),i+=5,fe(n,i,ne[c-23]>>5),i+=3);var d=c<8?0:c-4>>2;d>0&&(pe(n,i,h-Q[c]),i+=d),c=e[o-u],i=fe(n,i,ne[c]>>3),i-=3;var f=c<4?0:c-2>>1;f>0&&(pe(n,i,o-u-$[c]),i+=f);for(var p=0;p>8-p;for(var m=(1<<7-p)-1;m>=0;--m)Ee[f|m<>>=3){case 16:o=3+oe(e,t),t+=2,f=g[g.length-1];while(o-- >0)g.push(f);break;case 17:o=3+ae(e,t),t+=3;while(o-- >0)g.push(0);break;case 18:o=11+ce(e,t),t+=7;while(o-- >0)g.push(0);break;default:g.push(f),l>>0,s=0,l=0;while(0==(1&r))if(r=ae(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=Me(e,n),s=Te,l=Se);;){!t&&a>>1==1?be[c]:Ce[c];if(n+=15&u,u>>>=4,0===(u>>>8&255))i[o++]=u;else{if(256==u)break;u-=257;var h=u<8?0:u-4>>2;h>5&&(h=0);var d=o+Q[u];h>0&&(d+=ue(e,n,h),n+=h),c=ue(e,n,l),u=r>>>1==1?ye[c]:Ae[c],n+=15&u,u>>>=4;var f=u<4?0:u-2>>1,p=$[u];f>0&&(p+=ue(e,n,f),n+=f),!t&&a>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0){!t&&a0)i[o++]=e[n>>>3],n+=8}}return t?[i,n+7>>>3]:[i.slice(0,o),n+7>>>3]}function Ne(e,t){var n=e.slice(e.l||0),r=Oe(n,t);return e.l+=r[1],r[0]}function De(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function Le(e,t){var n=e;Zn(n,0);var r=[],i=[],o={FileIndex:r,FullPaths:i};N(o,{root:t.root});var a=n.length-4;while((80!=n[a]||75!=n[a+1]||5!=n[a+2]||6!=n[a+3])&&a>=0)--a;n.l=a+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var c=n.read_shift(4);for(n.l=c,a=0;a0)if(r=r.slice(0,r.length-1),r=r.slice(0,r.lastIndexOf("/")+1),a.slice(0,r.length)==r)break;var s=(i[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var l="--"+(s[1]||""),c=[],u=[],h={FileIndex:c,FullPaths:u};N(h);var d,f=0;for(o=0;o=32&&p<128&&++d;var g=d>=4*f/5;o.push(i),o.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),o.push("Content-Type: "+Fe(l,s)),o.push(""),o.push(g?je(h):ze(h))}return o.push(i+"--\r\n"),o.join("\r\n")}function _e(e){var t={};return N(t,e),t}function We(e,t,n,r){var i=r&&r.unsafe;i||N(e);var a=!i&&Ze.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),a={name:o(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),i||Ze.utils.cfb_gc(e)}return a.content=n,a.size=n?n.length:0,r&&(r.CLSID&&(a.clsid=r.CLSID),r.mt&&(a.mt=r.mt),r.ct&&(a.ct=r.ct)),a}function Ge(e,t){N(e);var n=Ze.find(e,t);if(n)for(var r=0;r3&&(r=!0),i[o].slice(i[o].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[o].slice(i[o].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60;case"S":break}t+=n*parseInt(i[o],10)}return t}var st=new Date("2017-02-19T19:06:09.000Z"),lt=isNaN(st.getFullYear())?new Date("2/19/17"):st,ct=2017==lt.getFullYear();function ut(e,t){var n=new Date(e);if(ct)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==lt.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function ht(t,n){if(E&&e.isBuffer(t)){if(n){if(255==t[0]&&254==t[1])return Qt(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Qt(m(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(n){if(255==t[0]&&254==t[1])return Qt(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Qt(new TextDecoder("utf-16be").decode(t.slice(2)))}var r={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(a){}for(var i=[],o=0;o!=t.length;++o)i.push(String.fromCharCode(t[o]));return i.join("")}function dt(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=dt(e[n]));return t}function ft(e,t){var n="";while(n.length3&&-1==mt.indexOf(a))return n}else if(a.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||o>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var vt=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var i=t.split(n),o=[i[0]],a=1;a\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Lt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Pt=/<[^>]*>/g,It=Nt.match(Lt)?Lt:Pt,Rt=/<\w*:/,Ft=/<(\/?)\w+:/;function zt(e,t,n){for(var r={},i=0,o=0;i!==e.length;++i)if(32===(o=e.charCodeAt(i))||10===o||13===o)break;if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var a=e.match(Dt),s=0,l="",c=0,u="",h="",d=1;if(a)for(c=0;c!=a.length;++c){for(h=a[c],o=0;o!=h.length;++o)if(61===h.charCodeAt(o))break;u=h.slice(0,o).trim();while(32==h.charCodeAt(o+1))++o;for(d=34==(i=h.charCodeAt(o+1))||39==i?1:0,l=h.slice(o+1+d,h.length-d),s=0;s!=u.length;++s)if(58===u.charCodeAt(s))break;if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=l,n||(r[u.toLowerCase()]=l);else{var f=(5===s&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(s+1);if(r[f]&&"ext"==u.slice(s-3,s))continue;r[f]=l,n||(r[f.toLowerCase()]=l)}}return r}function jt(e){return e.replace(Ft,"<$1")}var Bt={""":'"',"'":"'",">":">","<":"<","&":"&"},Ut=$e(Bt),Ht=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",o=i.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var a=i.indexOf("]]>");return n(i.slice(0,o))+i.slice(o+9,a)+n(i.slice(a+3))}}(),qt=/[&<>'"]/g;var _t=/[\u0000-\u001f]/g;function Wt(e){var t=e+"";return t.replace(qt,(function(e){return Ut[e]})).replace(/\n/g,"
").replace(_t,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Gt=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function Vt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Yt(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0;while(n191&&r<224?(a=(31&r)<<6,a|=63&i,t+=String.fromCharCode(a)):(o=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o):(a=e.charCodeAt(n++),s=((7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function Kt(e){var t,n,r,i=S(2*e.length),o=1,a=0,s=0;for(n=0;n>>10&1023),t=56320+(1023&t)),0!==s&&(i[a++]=255&s,i[a++]=s>>>8,s=0),i[a++]=t%256,i[a++]=t>>>8;return i.slice(0,a).toString("ucs2")}function Zt(e){return T(e,"binary").toString("utf8")}var Xt="foo bar baz☃🍣",Jt=E&&(Zt(Xt)==Yt(Xt)&&Zt||Kt(Xt)==Yt(Xt)&&Kt)||Yt,Qt=E?function(e){return T(e,"utf8").toString("binary")}:function(e){var t=[],n=0,r=0,i=0;while(n>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},$t=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),en=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),r=0;r([\\s\\S]*?)","g")}}(),nn=/<\/?(?:vt:)?variant>/g,rn=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function cn(t){if(E&&e.isBuffer(t))return t.toString("utf8");if("string"===typeof t)return t;if("undefined"!==typeof Uint8Array&&t instanceof Uint8Array)return Jt(N(D(t)));throw new Error("Bad input format: expected Buffer or string")}var un=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,hn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},dn=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function fn(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],o=5;o>=0;--o)i=256*i+e[t+o];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function pn(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=r?-t:t;isFinite(a)?0==a?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o>4|r}var mn=function(e){for(var t=[],n=10240,r=0;r0&&e.isBuffer(t[0][0])?e.concat(t[0].map((function(t){return e.isBuffer(t)?t:T(t)}))):mn(t)}:mn,vn=function(e,t,n){for(var r=[],i=t;i0?kn(e,t+4,t+4+n-1):""},An=Cn,En=function(e,t){var n=Un(e,t);return n>0?kn(e,t+4,t+4+n-1):""},Tn=En,Sn=function(e,t){var n=2*Un(e,t);return n>0?kn(e,t+4,t+4+n-1):""},Mn=Sn,On=function(e,t){var n=Un(e,t);return n>0?bn(e,t+4,t+4+n):""},Nn=On,Dn=function(e,t){var n=Un(e,t);return n>0?kn(e,t+4,t+4+n):""},Ln=Dn,Pn=function(e,t){return fn(e,t)},In=Pn,Rn=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function Fn(){bn=function(e,t,n){return g.utils.decode(1200,e.slice(t,n)).replace(I,"")},kn=function(e,t,n){return g.utils.decode(65001,e.slice(t,n))},An=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(a,e.slice(t+4,t+4+n-1)):""},Tn=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(o,e.slice(t+4,t+4+n-1)):""},Mn=function(e,t){var n=2*Un(e,t);return n>0?g.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},Nn=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(1200,e.slice(t+4,t+4+n)):""},Ln=function(e,t){var n=Un(e,t);return n>0?g.utils.decode(65001,e.slice(t+4,t+4+n)):""}}E&&(An=function(t,n){if(!e.isBuffer(t))return Cn(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Tn=function(t,n){if(!e.isBuffer(t))return En(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Mn=function(t,n){if(!e.isBuffer(t))return Sn(t,n);var r=2*t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r-1)},Nn=function(t,n){if(!e.isBuffer(t))return On(t,n);var r=t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r)},Ln=function(t,n){if(!e.isBuffer(t))return Dn(t,n);var r=t.readUInt32LE(n);return t.toString("utf8",n+4,n+4+r)},In=function(t,n){return e.isBuffer(t)?t.readDoubleLE(n):Pn(t,n)},Rn=function(t){return e.isBuffer(t)||Array.isArray(t)||"undefined"!==typeof Uint8Array&&t instanceof Uint8Array}),"undefined"!==typeof g&&Fn();var zn=function(e,t){return e[t]},jn=function(e,t){return 256*e[t+1]+e[t]},Bn=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Un=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Hn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},qn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function _n(t,n){var r,i,a,s,l,c,u="",h=[];switch(n){case"dbcs":if(c=this.l,E&&e.isBuffer(this))u=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l0?Hn:qn)(this,this.l),this.l+=4,r):(i=Un(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return i=8==t?In(this,this.l):In([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:u=wn(this,this.l,t);break}}return this.l+=t,u}var Wn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},Gn=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Vn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Yn(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)Vn(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){if("undefined"!==typeof g&&874==a)for(i=0;i!=t.length;++i){var o=g.utils.encode(a,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i>8}while(this.l>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,Wn(this,t,this.l);break;case 8:if(r=8,"f"===n){pn(this,t,this.l);break}case 16:break;case-4:r=4,Gn(this,t,this.l);break}}return this.l+=r,this}function Kn(e,t){var n=wn(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Zn(e,t){e.l=t,e.read_shift=_n,e.chk=Kn,e.write_shift=Yn}function Xn(e,t){e.l+=t}function Jn(e){var t=S(e);return Zn(t,0),t}function Qn(e,t,n){if(e){var r,i,o;Zn(e,e.l||0);var a=e.length,s=0,l=0;while(e.lr.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},o=function(e){return r&&e=256)r.c-=256;while(r.r>=65536)r.r-=65536}return r}function tr(e,t,n){var r=dt(e);return r.s=er(r.s,t.s,n),r.e=er(r.e,t.s,n),r}function nr(e,t){if(e.cRel&&e.c<0){e=dt(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=dt(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var n=pr(e);return e.cRel||null==e.cRel||(n=ur(n)),e.rRel||null==e.rRel||(n=ar(n)),n}function rr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?nr(e.s,t.biff)+":"+nr(e.e,t.biff):(e.s.rRel?"":"$")+or(e.s.r)+":"+(e.e.rRel?"":"$")+or(e.e.r):(e.s.cRel?"":"$")+cr(e.s.c)+":"+(e.e.cRel?"":"$")+cr(e.e.c)}function ir(e){return parseInt(sr(e),10)-1}function or(e){return""+(e+1)}function ar(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function sr(e){return e.replace(/\$(\d+)$/,"$1")}function lr(e){for(var t=hr(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function cr(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function ur(e){return e.replace(/^([A-Z])/,"$$$1")}function hr(e){return e.replace(/^\$([A-Z])/,"$1")}function dr(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function fr(e){for(var t=0,n=0,r=0;r=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function pr(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function mr(e){var t=e.indexOf(":");return-1==t?{s:fr(e),e:fr(e)}:{s:fr(e.slice(0,t)),e:fr(e.slice(t+1))}}function gr(e,t){return"undefined"===typeof t||"number"===typeof t?gr(e.s,e.e):("string"!==typeof e&&(e=pr(e)),"string"!==typeof t&&(t=pr(t)),e==t?e:e+":"+t)}function vr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,o=e.length;for(n=0;r26)break;n=26*n+i}for(t.s.c=--n,n=0;r9)break;n=10*n+i}if(t.s.r=--n,r===o||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=o;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.e.c=--n,n=0;r!=o;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return t.e.r=--n,t}function br(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=He(e.z,n?tt(t):t)}catch(r){}try{return e.w=He((e.XF||{}).numFmtId||(n?14:0),n?tt(t):t)}catch(r){return""+t}}function yr(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?ci[e.v]||e.v:br(e,void 0==t?e.v:t))}function wr(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function xr(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=w&&null==i&&(i=w);var o=e||(i?[]:{}),a=0,s=0;if(o&&null!=r.origin){if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?fr(r.origin):r.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=vr(o["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==a&&(c.e.r=a=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[h].length;++d)if("undefined"!==typeof t[h][d]){var f={v:t[h][d]},p=a+h,m=s+d;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r>2;return n?i/100:i}function Rr(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Fr=Rr;function zr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function jr(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var c=li[i];c&&(t.rgb=Ns(c));break;case 2:t.rgb=Ns([a,s,l]);break;case 3:t.theme=i;break}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}function Br(e){var t=e.read_shift(1);e.l++;var n={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return n}function Ur(e,t){var n={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return n[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function Hr(e){return Ur(e,1)}function qr(e){return Ur(e,2)}var _r=2,Wr=3,Gr=11,Vr=12,Yr=19,Kr=64,Zr=65,Xr=71,Jr=4108,Qr=4126,$r=80,ei=81,ti=[$r,ei],ni={1:{n:"CodePage",t:_r},2:{n:"Category",t:$r},3:{n:"PresentationFormat",t:$r},4:{n:"ByteCount",t:Wr},5:{n:"LineCount",t:Wr},6:{n:"ParagraphCount",t:Wr},7:{n:"SlideCount",t:Wr},8:{n:"NoteCount",t:Wr},9:{n:"HiddenCount",t:Wr},10:{n:"MultimediaClipCount",t:Wr},11:{n:"ScaleCrop",t:Gr},12:{n:"HeadingPairs",t:Jr},13:{n:"TitlesOfParts",t:Qr},14:{n:"Manager",t:$r},15:{n:"Company",t:$r},16:{n:"LinksUpToDate",t:Gr},17:{n:"CharacterCount",t:Wr},19:{n:"SharedDoc",t:Gr},22:{n:"HyperlinksChanged",t:Gr},23:{n:"AppVersion",t:Wr,p:"version"},24:{n:"DigSig",t:Zr},26:{n:"ContentType",t:$r},27:{n:"ContentStatus",t:$r},28:{n:"Language",t:$r},29:{n:"Version",t:$r},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ri={1:{n:"CodePage",t:_r},2:{n:"Title",t:$r},3:{n:"Subject",t:$r},4:{n:"Author",t:$r},5:{n:"Keywords",t:$r},6:{n:"Comments",t:$r},7:{n:"Template",t:$r},8:{n:"LastAuthor",t:$r},9:{n:"RevNumber",t:$r},10:{n:"EditTime",t:Kr},11:{n:"LastPrinted",t:Kr},12:{n:"CreatedDate",t:Kr},13:{n:"ModifiedDate",t:Kr},14:{n:"PageCount",t:Wr},15:{n:"WordCount",t:Wr},16:{n:"CharCount",t:Wr},17:{n:"Thumbnail",t:Xr},18:{n:"Application",t:$r},19:{n:"DocSecurity",t:Wr},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ii={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},oi=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ai(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var si=ai([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),li=dt(si),ci={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ui={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},hi={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function di(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function fi(e){var t=di();if(!e||!e.match)return t;var n={};if((e.match(It)||[]).forEach((function(e){var r=zt(e);switch(r[0].replace(Rt,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}var pi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function mi(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function gi(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(It)||[]).forEach((function(e){var i=zt(e);if("]*>([\\s\\S]*?)")}return e}();function xi(e){var t={};e=Jt(e);for(var n=0;n0&&(t[r[1]]=Ht(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=ut(t[r[1]]))}return t}var ki=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ci(e,t,n,r){var i=[];if("string"==typeof e)i=on(e,r);else for(var o=0;o0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=a.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=a.slice(s,s+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=a.slice(s,s+l);break}s+=l}}function Ai(e,t,n){var r={};return t||(t={}),e=Jt(e),ki.forEach((function(n){var i=(e.match($t(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Ht(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var o=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"));o&&o.length>0&&(r[n[1]]=o[1]);break}})),r.HeadingPairs&&r.TitlesOfParts&&Ci(r.HeadingPairs,r.TitlesOfParts,t,n),t}var Ei=/<[^>]+>[^<]*/g;function Ti(e,t){var n={},r="",i=e.match(Ei);if(i)for(var o=0;o!=i.length;++o){var a=i[o],s=zt(a);switch(s[0]){case"":r=null;break;default:if(0===a.indexOf(""),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[r]=Ht(u);break;case"bool":n[r]=Vt(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=ut(u);break;case"cy":case"error":n[r]=Ht(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",a,c,l)}}else if(">3<<2),r}function Hi(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function qi(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function _i(e,t,n){var r,i=e.read_shift(2),o=n||{};if(e.l+=2,t!==Vr&&i!==t&&-1===ti.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(t===Vr?i:t){case 2:return r=e.read_shift(2,"i"),o.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i"),r;case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4),r;case 30:return Di(e,i,4).replace(I,"");case 31:return Li(e);case 64:return Ni(e);case 65:return Hi(e);case 71:return qi(e);case 80:return Ii(e,i,!o.raw).replace(I,"");case 81:return Ri(e,i).replace(I,"");case 4108:return Bi(e);case 4126:case 4127:return 4127==i?Fi(e):zi(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function Wi(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0,s=0,l=-1,c={};for(a=0;a!=i;++a){var u=e.read_shift(4),d=e.read_shift(4);o[a]=[u,d+n]}o.sort((function(e,t){return e[1]-t[1]}));var f={};for(a=0;a!=i;++a){if(e.l!==o[a][1]){var p=!0;if(a>0&&t)switch(t[o[a-1][0]].t){case 2:e.l+2===o[a][1]&&(e.l+=2,p=!1);break;case 80:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break;case 4108:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break}if((!t||0==a)&&e.l<=o[a][1]&&(p=!1,e.l=o[a][1]),p)throw new Error("Read Error: Expected address "+o[a][1]+" at "+e.l+" :"+a)}if(t){var m=t[o[a][0]];if(f[m.n]=_i(e,m.t,{raw:!0}),"version"===m.p&&(f[m.n]=String(f[m.n]>>16)+"."+("0000"+String(65535&f[m.n])).slice(-4)),"CodePage"==m.n)switch(f[m.n]){case 0:f[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(s=f[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[m.n])}}else if(1===o[a][0]){if(s=f.CodePage=_i(e,_r),h(s),-1!==l){var g=e.l;e.l=o[l][1],c=Ui(e,s),e.l=g}}else if(0===o[a][0]){if(0===s){l=a,e.l=o[a+1][1];continue}c=Ui(e,s)}else{var v,b=c[o[a][0]];switch(e[e.l]){case 65:e.l+=4,v=Hi(e);break;case 30:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=Ki(e,4);break;case 64:e.l+=4,v=ut(Ni(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[b]=v}}return e.l=n+r,f}function Gi(e,t,n){var r=e.content;if(!r)return{};Zn(r,0);var i,o,a,s,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==Ze.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(i=r.read_shift(4),1!==i&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(o=r.read_shift(16),s=r.read_shift(4),1===i&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);2===i&&(a=r.read_shift(16),l=r.read_shift(4));var h,d=Wi(r,t),f={SystemIdentifier:c};for(var p in d)f[p]=d[p];if(f.FMTID=o,1===i)return f;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{h=Wi(r,null)}catch(m){}for(p in h)f[p]=h[p];return f.FMTID=[o,a],f}function Vi(e,t){return e.read_shift(t),null}function Yi(e,t,n){var r=[],i=e.l+t;while(e.l=12?2:1),i="sbcs-cont",a=o;if(n&&n.biff>=8&&(o=1200),n&&8!=n.biff)12==n.biff&&(i="wstr");else{var s=e.read_shift(1);s&&(i="dbcs-cont")}n.biff>=2&&n.biff<=5&&(i="cpstr");var l=r?e.read_shift(r,i):"";return o=a,l}function $i(e){var t=o;o=1200;var n,r=e.read_shift(2),i=e.read_shift(1),a=4&i,s=8&i,l=1+(1&i),c=0,u={};s&&(c=e.read_shift(2)),a&&(n=e.read_shift(4));var h=2==l?"dbcs-cont":"sbcs-cont",d=0===r?"":e.read_shift(r,h);return s&&(e.l+=4*c),a&&(e.l+=n),u.t=d,s||(u.raw=""+u.t+"",u.r=u.t),o=t,u}function eo(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return r=0===i?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),r}function to(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):eo(e,r,n)}function no(e,t,n){if(n.biff>5)return to(e,t,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ro(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}function io(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(I,"");return r&&(e.l+=24),i}function oo(e){var t=e.read_shift(2),n="";while(t-- >0)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(0===i)return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var a=e.read_shift(o>>1,"utf16le").replace(I,"");return n+a}function ao(e,t){var n=e.read_shift(16);switch(t-=16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return io(e,t);case"0303000000000000c000000000000046":return oo(e,t);default:throw new Error("Unsupported Moniker "+n)}}function so(e){var t=e.read_shift(4),n=t>0?e.read_shift(t,"utf16le").replace(I,""):"";return n}function lo(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var o,a,s,l,c,u,h="";16&i&&(o=so(e,n-e.l)),128&i&&(a=so(e,n-e.l)),257===(257&i)&&(s=so(e,n-e.l)),1===(257&i)&&(l=ao(e,n-e.l)),8&i&&(h=so(e,n-e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=Ni(e)),e.l=n;var d=a||s||l||"";d&&h&&(d+="#"+h),d||(d="#"+h),2&i&&"/"==d.charAt(0)&&"/"!=d.charAt(1)&&(d="file://"+d);var f={Target:d};return c&&(f.guid=c),u&&(f.time=u),o&&(f.Tooltip=o),f}function co(e){var t=e.read_shift(1),n=e.read_shift(1),r=e.read_shift(1),i=e.read_shift(1);return[t,n,r,i]}function uo(e,t){var n=co(e,t);return n[3]=0,n}function ho(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return{r:t,c:n,ixfe:r}}function fo(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}function po(e,t,n){return 0===t?"":no(e,t,n)}function mo(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),o=e.read_shift(r,"i"),a=e.read_shift(r,"i");return[i,o,a]}function go(e){var t=e.read_shift(2),n=Ir(e);return[t,n]}function vo(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=Qi(e,t,n),o=e.read_shift(2);if(r-=e.l,o!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+o);return e.l+=o,i}function bo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(1),i=e.read_shift(1);return{s:{c:r,r:t},e:{c:i,r:n}}}var wo=yo;function xo(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function ko(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Co(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Ao(e){e.l+=2,e.l+=e.read_shift(2)}var Eo={0:Ao,4:Ao,5:Ao,6:Ao,7:Co,8:Ao,9:Ao,10:Ao,11:Ao,12:Ao,13:ko,14:Ao,15:Ao,16:Ao,17:Ao,18:Ao,19:Ao,20:Ao,21:xo};function To(e,t){var n=e.l+t,r=[];while(e.l=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function Mo(e,t){return 0===t||e.read_shift(2),1200}function Oo(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=no(e,0,n);return e.read_shift(t+r-e.l),i}function No(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}function Do(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),o=e.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule";break}var a=Qi(e,0,n);return 0===a.length&&(a="Sheet1"),{pos:r,hs:i,dt:o,name:a}}function Lo(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0;a!=i&&e.l>15),i&=32767);var o={Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3};return[o,i]}function jo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,n],Dim:[r,i],Flags:o,CurTab:a,FirstTab:s,Selected:l,TabRatio:c}}function Bo(e,t,n){if(n&&n.biff>=2&&n.biff<5)return{};var r=e.read_shift(2);return{RTL:64&r}}function Uo(){}function Ho(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return r.name=Qi(e,0,n),r}function qo(e){var t=ho(e);return t.isst=e.read_shift(4),t}function _o(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=e.l+t,i=ho(e,6);2==n.biff&&e.l++;var o=to(e,r-e.l,n);return i.val=o,i}function Wo(e,t,n){var r=e.read_shift(2),i=no(e,0,n);return[r,i]}var Go=no;function Vo(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,o=e.read_shift(i),a=e.read_shift(i),s=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:o,c:s},e:{r:a,c:l}}}function Yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=go(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}function Ko(e,t){var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),o=[];while(e.l>26],r.cellStyles?(i.alc=7&o,i.fWrap=o>>3&1,i.alcV=o>>4&7,i.fJustLast=o>>7&1,i.trot=o>>8&255,i.cIndent=o>>16&15,i.fShrinkToFit=o>>20&1,i.iReadOrder=o>>22&2,i.fAtrNum=o>>26&1,i.fAtrFnt=o>>27&1,i.fAtrAlc=o>>28&1,i.fAtrBdr=o>>29&1,i.fAtrPat=o>>30&1,i.fAtrProt=o>>31&1,i.dgLeft=15&a,i.dgRight=a>>4&15,i.dgTop=a>>8&15,i.dgBottom=a>>12&15,i.icvLeft=a>>16&127,i.icvRight=a>>23&127,i.grbitDiag=a>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}function Jo(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,t-=6,r.data=Xo(e,t,r.fStyle,n),r}function Qo(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function $o(e,t,n){var r=ho(e,6);2!=n.biff&&9!=t||++e.l;var i=Ji(e,2);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}function ea(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=ho(e,6),i=zr(e,8);return r.val=i,r}var ta=po;function na(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(2);if(n.sbcch=o,1025==o||14849==o)return[o,i];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);var a=eo(e,o),s=[];while(r>e.l)s.push(to(e));return[o,i,a,s]}function ra(e,t,n){var r,i=e.read_shift(2),o={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=vo(e,t-2,n)),o.body=r||e.read_shift(t-2),"string"===typeof r&&(o.Name=r),o}var ia=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function oa(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(1),a=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var c=eo(e,a,n);32&i&&(c=ia[c.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==s&&u>0?Fu(e,u,n,s):[];return{chKey:o,Name:c,itab:l,rgce:h}}function aa(e,t,n){if(n.biff<8)return sa(e,t,n);var r=[],i=e.l+t,o=e.read_shift(n.biff>8?4:2);while(0!==o--)r.push(mo(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function sa(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Qi(e,t,n);return 3==r.charCodeAt(0)?r.slice(1):r}function la(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=eo(e,r,n),a=eo(e,i,n);return[o,a]}e.l+=t}function ca(e,t,n){var r=yo(e,6);e.l++;var i=e.read_shift(1);return t-=8,[zu(e,t,n),i,r]}function ua(e,t,n){var r=wo(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Iu(e,t,n,r)]}function ha(e){var t=0!==e.read_shift(4),n=0!==e.read_shift(4),r=e.read_shift(4);return[t,n,r]}function da(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=no(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},s,a,o]}}function fa(e,t,n){return da(e,t,n)}function pa(e,t){var n=[],r=e.read_shift(2);while(r--)n.push(bo(e,t));return n}function ma(e,t,n){if(n&&n.biff<8)return va(e,t,n);var r=xo(e,22),i=To(e,t-22,r[1]);return{cmo:r,ft:i}}var ga={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function va(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var a=[];return a.push((ga[r]||Xn)(e,t,n)),{cmo:[i,r,o],ft:a}}function ba(e,t,n){var r=e.l,i="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:ro(e,6,n);var a=e.read_shift(2);e.read_shift(2),Zi(e,2);var s=e.read_shift(2);e.l+=s;for(var l=1;l=(c?a:2*a))break}if(i.length!==a&&i.length!==2*a)throw new Error("cchText: "+a+" != "+i.length);return e.l=r+t,{t:i}}catch(h){return e.l=r+t,{t:i}}}function ya(e,t){var n=bo(e,8);e.l+=16;var r=lo(e,t-24);return[n,r]}function wa(e,t){e.read_shift(2);var n=bo(e,8),r=e.read_shift((t-10)/2,"dbcs-cont");return r=r.replace(I,""),[n,r]}function xa(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=ii[t]||t,t=e.read_shift(2),n[1]=ii[t]||t,n}function ka(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Ca(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Aa(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function Ea(e,t,n){if(!n.cellStyles)return Xn(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:o,w:a,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}function Ta(e,t){var n={};return t<32||(e.l+=16,n.header=zr(e,8),n.footer=zr(e,8),e.l+=2),n}function Sa(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}var Ma=ho,Oa=Xi,Na=to;function Da(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}function La(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=ho(e,6);++e.l;var i=no(e,t-7,n);return r.t="str",r.val=i,r}function Pa(e){var t=ho(e,6);++e.l;var n=zr(e,8);return t.t="n",t.val=n,t}function Ia(e){var t=ho(e,6);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}function Ra(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}function Fa(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function za(e,t,n){var r=e.l+t,i=ho(e,6),o=e.read_shift(2),a=eo(e,o,n);return e.l=r,i.t="str",i.val=a,i}var ja=[2,3,48,49,131,139,140,245],Ba=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=$e({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=[],i=S(1);switch(n.type){case"base64":i=O(A(t));break;case"binary":i=O(t);break;case"buffer":case"array":i=t;break}Zn(i,0);var o=i.read_shift(1),a=!!(136&o),s=!1,l=!1;switch(o){case 2:break;case 3:break;case 48:s=!0,a=!0;break;case 49:s=!0,a=!0;break;case 131:break;case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+o.toString(16))}var c=0,u=521;2==o&&(c=i.read_shift(2)),i.l+=3,2!=o&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=o&&(u=i.read_shift(2));var h=i.read_shift(2),d=n.codepage||1252;2!=o&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(d=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);var f=[],p={},m=Math.min(i.length,2==o?521:u-10-(s?264:0)),v=l?32:11;while(i.l0)if(42!==i[i.l])for(++i.l,r[++b]=[],y=0,y=0;y!=f.length;++y){var w=i.slice(i.l,i.l+f[y].len);i.l+=f[y].len,Zn(w,0);var x=g.utils.decode(d,w);switch(f[y].type){case"C":x.trim().length&&(r[b][y]=x.replace(/\s+$/,""));break;case"D":8===x.length?r[b][y]=new Date(+x.slice(0,4),+x.slice(4,6)-1,+x.slice(6,8)):r[b][y]=x;break;case"F":r[b][y]=parseFloat(x.trim());break;case"+":case"I":r[b][y]=l?2147483648^w.read_shift(-4,"i"):w.read_shift(4,"i");break;case"L":switch(x.trim().toUpperCase()){case"Y":case"T":r[b][y]=!0;break;case"N":case"F":r[b][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+x+"|")}break;case"M":if(!a)throw new Error("DBF Unexpected MEMO for type "+o.toString(16));r[b][y]="##MEMO##"+(l?parseInt(x.trim(),10):w.read_shift(4));break;case"N":x=x.replace(/\u0000/g,"").trim(),x&&"."!=x&&(r[b][y]=+x||0);break;case"@":r[b][y]=new Date(w.read_shift(-8,"f")-621356832e5);break;case"T":r[b][y]=new Date(864e5*(w.read_shift(4)-2440588)+w.read_shift(4));break;case"Y":r[b][y]=w.read_shift(4,"i")/1e4+w.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[b][y]=-w.read_shift(-8,"f");break;case"B":if(s&&8==f[y].len){r[b][y]=w.read_shift(8,"f");break}case"G":case"P":w.l+=f[y].len;break;case"0":if("_NullFlags"===f[y].name)break;default:throw new Error("DBF Unsupported data type "+f[y].type)}}else i.l+=h;if(2!=o&&i.l=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=$n(),s=hp(e,{header:1,raw:!0,cellDates:!0}),l=s[0],c=s.slice(1),u=e["!cols"]||[],d=0,f=0,p=0,m=1;for(d=0;d250&&(k=250),x=((u[d]||{}).DBF||{}).type,"C"==x&&u[d].DBF.len>k&&(k=u[d].DBF.len),"B"==w&&"N"==x&&(w="N",y[d]=u[d].DBF.dec,k=u[d].DBF.len),b[d]="C"==w||"N"==x?k:o[w]||0,m+=b[d],v[d]=w}else v[d]="?"}var A=i.next(32);for(A.write_shift(4,318902576),A.write_shift(4,c.length),A.write_shift(2,296+32*p),A.write_shift(2,m),d=0;d<4;++d)A.write_shift(4,0);for(A.write_shift(4,0|(+t[a]||3)<<8),d=0,f=0;d":190,"?":191,"{":223},n=new RegExp("N("+Qe(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(e,n){var r=t[n];return"number"==typeof r?y(r):r},i=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:y(r)};function o(t,n){switch(n.type){case"base64":return a(A(t),n);case"binary":return a(t,n);case"buffer":return a(E&&e.isBuffer(t)?t.toString("binary"):N(t),n);case"array":return a(ht(t),n)}throw new Error("Unrecognized type "+n.type)}function a(e,t){var o,a=e.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,d=[],f=[],p=null,m={},v=[],b=[],y=[],w=0;for(+t.codepage>=0&&h(+t.codepage);c!==a.length;++c){w=0;var x,k=a[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,r),C=k.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),A=C[0];if(k.length>0)switch(A){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==C[1].charAt(0)&&f.push(k.slice(3).replace(/;;/g,";"));break;case"C":var E=!1,T=!1,S=!1,M=!1,O=-1,N=-1;for(u=1;u-1&&d[O][N];if(!L||!L[1])throw new Error("SYLK shared formula cannot find base");d[s][l][1]=tc(L[1],{r:s-O,c:l-N})}break;case"F":var P=0;for(u=1;u0?(v[s].hpt=w,v[s].hpx=Ys(w)):0===w&&(v[s].hidden=!0);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}P<1&&(p=null);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}}return v.length>0&&(m["!rows"]=v),b.length>0&&(m["!cols"]=b),t&&t.sheetRows&&(d=d.slice(0,t.sheetRows)),[d,m]}function s(e,t){var n=o(e,t),r=n[0],i=n[1],a=kr(r,t);return Qe(i).forEach((function(e){a[e]=i[e]})),a}function l(e,t){return wr(s(e,t),t)}function c(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+ec(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return i}function u(e,t){t.forEach((function(t,n){var r="F;W"+(n+1)+" "+(n+1)+" ";t.hidden?r+="0":("number"!=typeof t.width||t.wpx||(t.wpx=js(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Bs(t.wpx)),"number"==typeof t.wch&&(r+=Math.round(t.wch)))," "!=r.charAt(r.length-1)&&e.push(r)}))}function d(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Vs(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}function f(e,t){var n,r=["ID;PWXL;N;E"],i=[],o=vr(e["!ref"]),a=Array.isArray(e),s="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),e["!cols"]&&u(r,e["!cols"]),e["!rows"]&&d(r,e["!rows"]),r.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var l=o.s.r;l<=o.e.r;++l)for(var h=o.s.c;h<=o.e.c;++h){var f=pr({r:l,c:h});n=a?(e[l]||[])[h]:e[f],n&&(null!=n.v||n.f&&!n.F)&&i.push(c(n,e,l,h,t))}return r.join(s)+s+i.join(s)+s+"E"+s}return t["|"]=254,{to_workbook:l,to_sheet:s,from_sheet:f}}(),Ha=function(){function t(t,r){switch(r.type){case"base64":return n(A(t),r);case"binary":return n(t,r);case"buffer":return n(E&&e.isBuffer(t)?t.toString("binary"):N(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){for(var n=e.split("\n"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(r<0)){var s=n[o].trim().split(","),l=s[0],c=s[1];++o;var u=n[o]||"";while(1&(u.match(/["]/g)||[]).length&&o=0&&0===o[a].length)--a;for(var s=10,l=0,c=0;c<=a;++c)l=o[c].indexOf(" "),-1==l?l=o[c].length:l++,s=Math.max(s,l);for(c=0;c<=a;++c){i[c]=[];var u=0;for(t(o[c].slice(0,s).trim(),i,c,u,r),u=1;u<=(o[c].length-s)/10+1;++u)t(o[c].slice(s+10*(u-1),s+10*u).trim(),i,c,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var r={44:",",9:"\t",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function o(e){for(var t={},n=!1,o=0,a=0;o0&&v(),i["!ref"]=gr(a),i}function s(e,t){return t&&t.PRN?t.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?a(e,t):kr(n(e,t),t):a(e,t)}function l(t,n){var r="",i="string"==n.type?[0,0,0,0]:tp(t,n);switch(n.type){case"base64":r=A(t);break;case"binary":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&"undefined"!==typeof g?g.utils.decode(n.codepage,t):E&&e.isBuffer(t)?t.toString("binary"):N(t);break;case"array":r=ht(t);break;case"string":r=t;break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Jt(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Jt(r):"binary"==n.type&&"undefined"!==typeof g&&n.codepage&&(r=g.utils.decode(n.codepage,g.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?qa.to_sheet("string"==n.type?r:Jt(r),n):s(r,n)}function c(e,t){return wr(l(e,t),t)}function u(e){for(var t,n=[],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var l=pr({r:o,c:s});if(t=i?(e[o]||[])[s]:e[l],t&&null!=t.v){var c=(t.w||(yr(t),t.w)||"").slice(0,10);while(c.length<10)c+=" ";a.push(c+(0===s?" ":""))}else a.push(" ")}n.push(a.join(""))}return n.join("\n")}return{to_workbook:c,to_sheet:l,from_sheet:u}}();function Wa(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=Ua.to_workbook(e,n);return n.WTF=r,i}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return _a.to_workbook(e,t)}}var Ga=function(){function e(e,t,n){if(e){Zn(e,e.l||0);var r=n.Enum||U;while(e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=U,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(a=e);break;case 222:a=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||K[14],r.cellDates&&(e[1].t="d",e[1].v=ot(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o=a||"Sheet"+(s+1),a="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[pr(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1];break;default:}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=H,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o="Sheet"+(s+1)),d>0&&e[0].r>=d)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1],h.e.c=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r=$n(),i=vr(e["!ref"]),a=Array.isArray(e),s=[];of(r,0,o(1030)),of(r,6,l(i));for(var c=Math.min(i.e.r,8191),u=i.s.r;u<=c;++u)for(var f=or(u),m=i.s.c;m<=i.e.c;++m){u===i.s.r&&(s[m]=cr(m));var v=s[m]+f,b=a?(e[u]||[])[m]:e[v];if(b&&"z"!=b.t)if("n"==b.t)(0|b.v)==b.v&&b.v>=-32768&&b.v<=32767?of(r,13,p(u,m,b.v)):of(r,14,g(u,m,b.v));else{var y=yr(b);of(r,15,d(u,m,y.slice(0,239)))}}return of(r,1),r.end()}function i(e,t){var n=t||{};if(+n.codepage>=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=$n();of(r,0,a(e));for(var i=0,o=0;i8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function s(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function l(e){var t=Jn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function c(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function u(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].t="s",20768==n.vers){e.l++;var o=e.read_shift(1);return i[1].v=e.read_shift(o,"utf8"),i}return n.qpro&&e.l++,i[1].v=e.read_shift(r-e.l,"cstr"),i}function d(e,t,n){var r=Jn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i=128?95:o)}return r.write_shift(1,0),r}function f(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(2,"i"),r}function p(e,t,n){var r=Jn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function m(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(8,"f"),r}function g(e,t,n){var r=Jn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function v(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=r;else{var o=e.read_shift(2);k(e.slice(e.l,e.l+o),i),e.l+=o}return i}function b(e,t,n){var r=32768&t;return t&=-32769,t=(r?e:0)+(t>=8192?t-16384:t),(r?"":"$")+(n?cr(t):or(t))}var y={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(e,t){Zn(e,0);var n=[],r=0,i="",o="",a="",s="";while(e.ln.length)return void console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+n.join("|")+"|");var d=n.slice(-r);n.length-=r,n.push(y[l][0]+"("+d.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}function C(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function E(e,t){var n=C(e,t);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}function T(e,t,n,r){var i=Jn(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var o=0;o=128?95:a)}return i.write_shift(1,0),i}function S(e,t){var n=C(e,t);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break}return n[1].v=r,n}function M(e,t){var n=C(e,t),r=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(2);if(65535==o)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*a)*(i*Math.pow(2,o+32)+r*Math.pow(2,o)),n}function N(e,t,n,r){var i=Jn(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var o=0,a=0,s=0,l=0;return r<0&&(o=1,r=-r),a=0|Math.log2(r),r/=Math.pow(2,a-31),l=r>>>0,0==(2147483648&l)&&(r/=2,++a,l=r>>>0),r-=l,l|=2147483648,l>>>=0,r*=Math.pow(2,32),s=r>>>0,i.write_shift(4,s),i.write_shift(4,l),a+=16383+(o?32768:0),i.write_shift(2,a),i}function D(e,t){var n=M(e,14);return e.l+=t-14,n}function L(e,t){var n=C(e,t),r=e.read_shift(4);return n[1].v=r>>6,n}function P(e,t){var n=C(e,t),r=e.read_shift(8,"f");return n[1].v=r,n}function I(e,t){var n=P(e,14);return e.l+=t-10,n}function R(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function F(e,t){var n=e[e.l++];n>t-1&&(n=t-1);var r="";while(r.length127?95:i}return n[n.l++]=0,n}var U={0:{n:"BOF",f:Zi},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:f},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:R},222:{n:"SHEETNAMELP",f:F},65535:{n:""}},H={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:E},23:{n:"NUMBER17",f:M},24:{n:"NUMBER18",f:S},25:{n:"FORMULA19",f:D},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:j},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:L},38:{n:"??"},39:{n:"NUMBER27",f:P},40:{n:"FORMULA28",f:I},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:R},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:z},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:t}}();function Va(e){var t={},n=e.match(It),r=0,i=!1;if(n)for(;r!=n.length;++r){var o=zt(n[r]);switch(o[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"
":break;case"":i=!1;break;default:if(47!==o[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+o[0])}}return t}var Ya=function(){var e=$t("t"),t=$t("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:Ht(r[1])},o=n.match(t);return o&&(i.s=Va(o[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),Ka=function(){var e=/(\r\n|\n)/g;function t(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),n.push("")),e.i&&(t.push(""),n.push("")),e.strike&&(t.push(""),n.push(""));var i=e.valign||"";return"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push("")),n.push(""),e}function n(n){var r=[[],n.v,[]];return n.v?(n.s&&t(n.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"
")+r[2].join("")):""}return function(e){return e.map(n).join("")}}(),Za=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Xa=/<(?:\w+:)?r>/,Ja=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Qa(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=Ht(Jt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=Jt(e),n&&(r.h=Wt(r.t))):e.match(Xa)&&(r.r=Jt(e),r.t=Ht(Jt((e.replace(Ja,"").match(Za)||[]).join("").replace(It,""))),n&&(r.h=Ka(Ya(r.r)))),r):{t:""}}var $a=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,es=/<(?:\w+:)?(?:si|sstItem)>/g,ts=/<\/(?:\w+:)?(?:si|sstItem)>/;function ns(e,t){var n=[],r="";if(!e)return n;var i=e.match($a);if(i){r=i[2].replace(es,"").split(ts);for(var o=0;o!=r.length;++o){var a=Qa(r[o].trim(),t);null!=a&&(n[n.length]=a)}i=zt(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}function rs(e){return[e.read_shift(4),e.read_shift(4)]}function is(e,t){var n=[],r=!1;return Qn(e,(function(e,i,o){switch(o){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),n}function os(e){if("undefined"!==typeof g)return g.utils.encode(a,e);for(var t=[],n=e.split(""),r=0;r=4&&(e.l+=t-4),n}function ss(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ls(e){var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),o=[];while(i-- >0)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=o,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function cs(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(ls(e));return t}function us(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(e.read_shift(0,"lpp4"));return t}function hs(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ds(e){var t=hs(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function fs(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function ps(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function ms(e){var t=as(e);switch(t.Minor){case 2:return[t.Minor,gs(e,t)];case 3:return[t.Minor,vs(e,t)];case 4:return[t.Minor,bs(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function gs(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var n=e.read_shift(4),r=fs(e,n),i=ps(e,e.length-e.l);return{t:"Std",h:r,v:i}}function vs(){throw new Error("File is password-protected: ECMA-376 Extensible")}function bs(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(It,(function(e){var n=zt(e);switch(jt(n[0])){case"":break;case"":case"":break;case"":break;case"4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=fs(e,i),t-=i,n.EncryptionVerifier=ps(e,t),n}function ws(e){var t={},n=t.EncryptionVersionInfo=as(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function xs(e){var t,n,r,i,o,a,s=0,l=os(e),c=l.length+1;for(t=S(c),t[0]=l.length,n=1;n!=c;++n)t[n]=l[n-1];for(n=c-1;n>=0;--n)r=t[n],i=0===(16384&s)?0:1,o=s<<1&32767,a=i|o,s=a^r;return 52811^s}var ks=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e){return 255&(e/2|128*e)},i=function(e,t){return r(e^t)},o=function(e){for(var r=t[e.length-1],i=104,o=e.length-1;o>=0;--o)for(var a=e[o],s=0;7!=s;++s)64&a&&(r^=n[i]),a*=2,--i;return r};return function(t){for(var n,r,a,s=os(t),l=o(s),c=s.length,u=S(16),h=0;16!=h;++h)u[h]=0;1===(1&c)&&(n=l>>8,u[c]=i(e[0],n),--c,n=255&l,r=s[s.length-1],u[c]=i(r,n));while(c>0)--c,n=l>>8,u[c]=i(s[c],n),--c,n=255&l,u[c]=i(s[c],n);c=15,a=15-s.length;while(a>0)n=l>>8,u[c]=i(e[a],n),--c,--a,n=255&l,u[c]=i(s[c],n),--c,--a;return u}}(),Cs=function(e,t,n,r,i){var o,a;for(i||(i=t),r||(r=ks(e)),o=0;o!=t.length;++o)a=t[o],a^=r[n],a=255&(a>>5|a<<3),i[o]=a,++n;return[i,n,r]},As=function(e){var t=0,n=ks(e);return function(e){var r=Cs("",e,t,n);return t=r[1],r[0]}};function Es(e,t,n,r){var i={key:Zi(e),verificationBytes:Zi(e)};return n.password&&(i.verifier=xs(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=As(n.password)),i}function Ts(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=ws(e,t):r.Data=ys(e,t),r}function Ss(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?Ts(e,t-2,r):Es(e,n.biff>=8?t:t-2,n,r),r}var Ms=function(){function t(t,r){switch(r.type){case"base64":return n(A(t),r);case"binary":return n(t,r);case"buffer":return n(E&&e.isBuffer(t)?t.toString("binary"):N(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){var n=t||{},r=n.dense?[]:{},i=e.match(/\\trowd.*?\\row\b/g);if(!i.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:i.length-1}};return i.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);var n,i=/\\\w+\b/g,a=0,s=-1;while(n=i.exec(e)){switch(n[0]){case"\\cell":var l=e.slice(a,i.lastIndex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:"s"};Array.isArray(r)?r[t][s]=c:r[pr({r:t,c:s})]=c}break}a=i.lastIndex}s>o.e.c&&(o.e.c=s)})),r["!ref"]=gr(o),r}function r(e,n){return wr(t(e,n),n)}function i(e){for(var t,n=["{\\rtf1\\ansi"],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){n.push("\\trowd\\trautofit1");for(var a=r.s.c;a<=r.e.c;++a)n.push("\\cellx"+(a+1));for(n.push("\\pard\\intbl"),a=r.s.c;a<=r.e.c;++a){var s=pr({r:o,c:a});t=i?(e[o]||[])[a]:e[s],t&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(yr(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:i}}();function Os(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Ns(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function Ds(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=i-o;if(0===a)return[0,0,t];var s=0,l=0,c=i+o;switch(l=a/(c>1?2-c:c),i){case t:s=((n-r)/a+6)%6;break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4;break}return[s/6,l,c/2]}function Ls(e){var t,n=e[0],r=e[1],i=e[2],o=2*r*(i<.5?i:1-i),a=i-o/2,s=[a,a,a],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=o*l,s[0]+=o,s[1]+=t;break;case 1:t=o*(2-l),s[0]+=t,s[1]+=o;break;case 2:t=o*(l-2),s[1]+=o,s[2]+=t;break;case 3:t=o*(4-l),s[1]+=t,s[2]+=o;break;case 4:t=o*(l-4),s[2]+=o,s[0]+=t;break;case 5:t=o*(6-l),s[2]+=t,s[0]+=o;break}for(var c=0;3!=c;++c)s[c]=Math.round(255*s[c]);return s}function Ps(e,t){if(0===t)return e;var n=Ds(Os(e));return n[2]=t<0?n[2]*(1+t):1-(1-n[2])*(1-t),Ns(Ls(n))}var Is=6,Rs=15,Fs=1,zs=Is;function js(e){return Math.floor((e+Math.round(128/zs)/256)*zs)}function Bs(e){return Math.floor((e-5)/zs*100+.5)/100}function Us(e){return Math.round((e*zs+5)/zs*256)/256}function Hs(e){return Us(Bs(js(e)))}function qs(e){var t=Math.abs(e-Hs(e)),n=zs;if(t>.005)for(zs=Fs;zs":case"":break;case"":case"":i={},n.diagonalUp&&(i.diagonalUp=Vt(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=Vt(n.diagonalDown)),t.Borders.push(i);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in borders")}}))}function Xs(e,t,n,r){t.Fills=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var n=zt(e);switch(jt(n[0])){case"":case"":break;case"":case"":i={},t.Fills.push(i);break;case"":break;case"":break;case"":t.Fills.push(i),i={};break;case"":n.patternType&&(i.patternType=n.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in fills")}}))}function Js(e,t,n,r){t.Fonts=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var a=zt(e);switch(jt(a[0])){case"":case"":break;case"":break;case"
":case"":t.Fonts.push(i),i={};break;case"":case"":break;case"":i.bold=1;break;case"":i.italic=1;break;case"":i.underline=1;break;case"":i.strike=1;break;case"":i.outline=1;break;case"":i.shadow=1;break;case"":i.condense=1;break;case"":i.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+a[0]+" in fonts")}}))}function Qs(e,t,n){t.NumberFmt=[];for(var r=Qe(K),i=0;i":case"":case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(null==t.NumberFmt[l])break;t.NumberFmt[l]=s}qe(s,l)}break;case"":break;default:if(n.WTF)throw new Error("unrecognized "+a[0]+" in numFmts")}}}var $s=["numFmtId","fillId","fontId","borderId","xfId"],el=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function tl(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(It)||[]).forEach((function(e){var o=zt(e),a=0;switch(jt(o[0])){case"":case"":case"":break;case"":for(r=o,delete r[0],a=0;a<$s.length;++a)r[$s[a]]&&(r[$s[a]]=parseInt(r[$s[a]],10));for(a=0;a392)for(a=392;a>60;--a)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[a]){r.numFmtId=a;break}t.CellXf.push(r);break;case"":break;case"":var s={};o.vertical&&(s.vertical=o.vertical),o.horizontal&&(s.horizontal=o.horizontal),null!=o.textRotation&&(s.textRotation=o.textRotation),o.indent&&(s.indent=o.indent),o.wrapText&&(s.wrapText=Vt(o.wrapText)),r.alignment=s;break;case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}}))}var nl=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,a,s){var l,c={};return o?(o=o.replace(//gm,"").replace(//gm,""),(l=o.match(e))&&Qs(l,c,s),(l=o.match(r))&&Js(l,c,a,s),(l=o.match(n))&&Xs(l,c,a,s),(l=o.match(i))&&Zs(l,c,a,s),(l=o.match(t))&&tl(l,c,s),c):c}}();function rl(e,t){var n=e.read_shift(2),r=Ar(e,t-2);return[n,r]}function il(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=Br(e,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var o=e.read_shift(2);switch(700===o&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var l=e.read_shift(1);switch(l>0&&(r.charset=l),e.l++,r.color=jr(e,8),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Ar(e,t-21),r}var ol=Xn;function al(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}var sl=Xn;function ll(e,t,n){var r={NumberFmt:[]};for(var i in K)r.NumberFmt[i]=K[i];r.CellXf=[],r.Fonts=[];var o=[],a=!1;return Qn(e,(function(e,i,s){switch(s){case 44:r.NumberFmt[e[0]]=e[1],qe(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Ps(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:617==o[o.length-1]&&r.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:o.push(s),a=!0;break;case 38:o.pop(),a=!1;break;default:if(i.T>0)o.push(s);else if(i.T<0)o.pop();else if(!a||n.WTF&&37!=o[o.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),r}var cl=["","","","","","","","","","","",""];function ul(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(It)||[]).forEach((function(e){var i=zt(e);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[cl.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function hl(){}function dl(){}var fl=/]*)>[\s\S]*<\/a:clrScheme>/,pl=/]*)>[\s\S]*<\/a:fontScheme>/,ml=/]*)>[\s\S]*<\/a:fmtScheme>/;function gl(e,t,n){var r;t.themeElements={},[["clrScheme",fl,ul],["fontScheme",pl,hl],["fmtScheme",ml,dl]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}var vl=/]*)>[\s\S]*<\/a:themeElements>/;function bl(e,t){var n;e&&0!==e.length||(e=yl());var r={};if(!(n=e.match(vl)))throw new Error("themeElements not found in theme");return gl(n[0],r,t),r.raw=e,r}function yl(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Nt];return n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n.join("")}function wl(e,t,n){var r=e.l+t,i=e.read_shift(4);if(124226!==i)if(n.cellStyles){var o,a=e.slice(e.l);e.l=r;try{o=Mt(a,{type:"array"})}catch(l){return}var s=At(o,"theme/theme/theme1.xml",!0);if(s)return bl(s,n)}else e.l=r}function xl(e){return e.read_shift(4)}function kl(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Cl(e,4);break;case 2:t.xclrValue=co(e,4);break;case 3:t.xclrValue=xl(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Cl(e,t){return Xn(e,t)}function Al(e,t){return Xn(e,t)}function El(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=kl(e,n);break;case 6:r[1]=Al(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Tl(e,t){var n=e.l+t;e.l+=2;var r=e.read_shift(2);e.l+=2;var i=e.read_shift(2),o=[];while(i-- >0)o.push(El(e,n-e.l));return{ixfe:r,ext:o}}function Sl(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function Ml(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ar(e,t-8)}}function Ol(e){var t=[],n=e.read_shift(4);while(n-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Nl(e){return e.l+=4,0!=e.read_shift(4)}function Dl(e,t,n){var r={Types:[],Cell:[],Value:[]},i=n||{},o=[],a=!1,s=2;return Qn(e,(function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==s&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:o.push(n),a=!0;break;case 36:o.pop(),a=!1;break;default:if(t.T);else if(!a||i.WTF&&35!=o[o.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),r}function Ll(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var i,o=!1,a=2;return e.replace(It,(function(e){var t=zt(e);switch(jt(t[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":a=2;break;case"":a=2;break;case"":case"":case"":break;case"":o=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}function Bl(e,t,n,r){var i,o=Array.isArray(e);t.forEach((function(t){var a=fr(t.ref);if(o?(e[a.r]||(e[a.r]=[]),i=e[a.r][a.c]):i=e[t.ref],!i){i={t:"z"},o?e[a.r][a.c]=i:e[t.ref]=i;var s=vr(e["!ref"]||"BDWGO1000001:A1");s.s.r>a.r&&(s.s.r=a.r),s.e.ra.c&&(s.s.c=a.c),s.e.c=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var o=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var o=zt(i[0]),a={author:o.authorId&&n[o.authorId]||"sheetjsghost",ref:o.ref,guid:o.guid},s=fr(o.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Qa(l[1])||{r:"",t:"",h:""};a.r=c.r,""==c.r&&(c.t=c.h=""),a.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(a.h=c.h),r.push(a)}}}})),r}function Hl(e,t){var n=[],r=!1,i={},o=0;return e.replace(It,(function(a,s){var l=zt(a);switch(jt(l[0])){case"":break;case"":null!=i.t&&n.push(i);break;case"":case"":i.t=e.slice(o,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":r=!0;break;case"":r=!1;break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return a})),n}function ql(e,t){var n=[],r=!1;return e.replace(It,(function(e){var i=zt(e);switch(jt(i[0])){case"":break;case"":break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}function _l(e){var t={};t.iauthor=e.read_shift(4);var n=Fr(e,16);return t.rfx=n.s,t.ref=pr(n.s),e.l+=16,t}var Wl=Ar;function Gl(e,t){var n=[],r=[],i={},o=!1;return Qn(e,(function(e,a,s){switch(s){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(a.T);else if(!o||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),n}var Vl="application/vnd.ms-office.vbaProject";function Yl(e){var t=Ze.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ze.utils.cfb_add(t,i,e.FileIndex[r].content)}})),Ze.write(t)}function Kl(){return{"!type":"dialog"}}function Zl(){return{"!type":"dialog"}}function Xl(){return{"!type":"macro"}}function Jl(){return{"!type":"macro"}}var Ql=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var o=!1,a=!1;0==r.length?a=!0:"["==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:"["==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return o?l+=t.c:--l,a?s+=t.r:--s,n+(o?"":"$")+cr(l)+(a?"":"$")+or(s)}return function(r,i){return t=i,r.replace(e,n)}}(),$l=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,ec=function(){return function(e,t){return e.replace($l,(function(e,n,r,i,o,a){var s=lr(i)-(r?0:t.c),l=ir(a)-(o?0:t.r),c=0==l?"":o?l+1:"["+l+"]",u=0==s?"":r?s+1:"["+s+"]";return n+"R"+c+"C"+u}))}}();function tc(e,t){return e.replace($l,(function(e,n,r,i,o,a){return n+("$"==r?r+i:cr(lr(i)+t.c))+("$"==o?o+a:or(ir(a)+t.r))}))}function nc(e,t,n){var r=mr(t),i=r.s,o=fr(n),a={r:o.r-i.r,c:o.c-i.c};return tc(e,a)}function rc(e){return 1!=e.length}function ic(e){return e.replace(/_xlfn\./g,"")}function oc(e){e.l+=1}function ac(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function sc(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return lc(e,t,n);12==n.biff&&(r=4)}var i=e.read_shift(r),o=e.read_shift(r),a=ac(e,2),s=ac(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function lc(e){var t=ac(e,2),n=ac(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function cc(e,t,n){if(n.biff<8)return lc(e,t,n);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),o=ac(e,2),a=ac(e,2);return{s:{r:r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function uc(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return hc(e,t,n);var r=e.read_shift(n&&12==n.biff?4:2),i=ac(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function hc(e){var t=ac(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function dc(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function fc(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return pc(e,t,n);var i=e.read_shift(r>=12?4:2),o=e.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)while(i>524287)i-=1048576;if(1==a)while(o>8191)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}function pc(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function mc(e,t,n){var r=(96&e[e.l++])>>5,i=sc(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function gc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i"),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=sc(e,o,n);return[r,i,a]}function vc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function bc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[r,i]}function yc(e,t,n){var r=(96&e[e.l++])>>5,i=cc(e,t-1,n);return[r,i]}function wc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}function xc(e){var t=1&e[e.l+1],n=1;return e.l+=4,[t,n]}function kc(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(e.read_shift(n&&2==n.biff?1:2));return i}function Cc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Ac(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Ec(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function Tc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}function Sc(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function Mc(e){return e.read_shift(2),Sc(e,2)}function Oc(e){return e.read_shift(2),Sc(e,2)}function Nc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=uc(e,0,n);return[r,i]}function Dc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=fc(e,0,n);return[r,i]}function Lc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);n&&5==n.biff&&(e.l+=12);var o=uc(e,0,n);return[r,i,o]}function Pc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Yu[i],Vu[i],r]}function Ic(e,t,n){var r=e[e.l++],i=e.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:Rc(e);return[i,(0===o[0]?Vu:Gu)[o[1]]]}function Rc(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function Fc(e,t,n){e.l+=n&&2==n.biff?3:4}function zc(e,t,n){if(e.l++,n&&12==n.biff)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function jc(e){return e.l++,ci[e.read_shift(1)]}function Bc(e){return e.l++,e.read_shift(2)}function Uc(e){return e.l++,0!==e.read_shift(1)}function Hc(e){return e.l++,zr(e,8)}function qc(e,t,n){return e.l++,Qi(e,t-1,n)}function _c(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Ki(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=ci[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=zr(e,8);break;case 2:n[1]=no(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Wc(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?Fr:bo)(e,8));return i}function Gc(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=_c(e,n.biff);return a}function Vc(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,o]}function Yc(e,t,n){if(5==n.biff)return Kc(e,t,n);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[r,i,o]}function Kc(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function Zc(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&2==n.biff?3:4;var i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Xc(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Jc(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}function Qc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[r,i]}var $c=Xn,eu=Xn,tu=Xn;function nu(e,t,n){return e.l+=2,[dc(e,4,n)]}function ru(e){return e.l+=6,[]}var iu=nu,ou=ru,au=ru,su=nu;function lu(e){return e.l+=2,[Zi(e),1&e.read_shift(2)]}var cu=nu,uu=lu,hu=ru,du=nu,fu=nu,pu=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function mu(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=pu[n>>2&31];return{ixti:t,coltype:3&n,rt:a,idx:r,c:i,C:o}}function gu(e){return e.l+=2,[e.read_shift(4)]}function vu(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}function bu(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}function yu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function wu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function xu(e){return e.l+=4,[0,0]}var ku={1:{n:"PtgExp",f:zc},2:{n:"PtgTbl",f:tu},3:{n:"PtgAdd",f:oc},4:{n:"PtgSub",f:oc},5:{n:"PtgMul",f:oc},6:{n:"PtgDiv",f:oc},7:{n:"PtgPower",f:oc},8:{n:"PtgConcat",f:oc},9:{n:"PtgLt",f:oc},10:{n:"PtgLe",f:oc},11:{n:"PtgEq",f:oc},12:{n:"PtgGe",f:oc},13:{n:"PtgGt",f:oc},14:{n:"PtgNe",f:oc},15:{n:"PtgIsect",f:oc},16:{n:"PtgUnion",f:oc},17:{n:"PtgRange",f:oc},18:{n:"PtgUplus",f:oc},19:{n:"PtgUminus",f:oc},20:{n:"PtgPercent",f:oc},21:{n:"PtgParen",f:oc},22:{n:"PtgMissArg",f:oc},23:{n:"PtgStr",f:qc},26:{n:"PtgSheet",f:vu},27:{n:"PtgEndSheet",f:bu},28:{n:"PtgErr",f:jc},29:{n:"PtgBool",f:Uc},30:{n:"PtgInt",f:Bc},31:{n:"PtgNum",f:Hc},32:{n:"PtgArray",f:wc},33:{n:"PtgFunc",f:Pc},34:{n:"PtgFuncVar",f:Ic},35:{n:"PtgName",f:Vc},36:{n:"PtgRef",f:Nc},37:{n:"PtgArea",f:mc},38:{n:"PtgMemArea",f:Zc},39:{n:"PtgMemErr",f:$c},40:{n:"PtgMemNoMem",f:eu},41:{n:"PtgMemFunc",f:Xc},42:{n:"PtgRefErr",f:Jc},43:{n:"PtgAreaErr",f:vc},44:{n:"PtgRefN",f:Dc},45:{n:"PtgAreaN",f:yc},46:{n:"PtgMemAreaN",f:yu},47:{n:"PtgMemNoMemN",f:wu},57:{n:"PtgNameX",f:Yc},58:{n:"PtgRef3d",f:Lc},59:{n:"PtgArea3d",f:gc},60:{n:"PtgRefErr3d",f:Qc},61:{n:"PtgAreaErr3d",f:bc},255:{}},Cu={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Au={1:{n:"PtgElfLel",f:lu},2:{n:"PtgElfRw",f:du},3:{n:"PtgElfCol",f:iu},6:{n:"PtgElfRwV",f:fu},7:{n:"PtgElfColV",f:su},10:{n:"PtgElfRadical",f:cu},11:{n:"PtgElfRadicalS",f:hu},13:{n:"PtgElfColS",f:ou},15:{n:"PtgElfColSV",f:au},16:{n:"PtgElfRadicalLel",f:uu},25:{n:"PtgList",f:mu},29:{n:"PtgSxName",f:gu},255:{}},Eu={0:{n:"PtgAttrNoop",f:xu},1:{n:"PtgAttrSemi",f:Tc},2:{n:"PtgAttrIf",f:Ac},4:{n:"PtgAttrChoose",f:kc},8:{n:"PtgAttrGoto",f:Cc},16:{n:"PtgAttrSum",f:Fc},32:{n:"PtgAttrBaxcel",f:xc},33:{n:"PtgAttrBaxcel",f:xc},64:{n:"PtgAttrSpace",f:Mc},65:{n:"PtgAttrSpaceSemi",f:Oc},128:{n:"PtgAttrIfError",f:Ec},255:{}};function Tu(e,t,n,r){if(r.biff<8)return Xn(e,t);for(var i=e.l+t,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=Gc(e,0,r),o.push(n[a][1]);break;case"PtgMemArea":n[a][2]=Wc(e,n[a][1],r),o.push(n[a][2]);break;case"PtgExp":r&&12==r.biff&&(n[a][1][1]=e.read_shift(4),o.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0];default:break}return t=i-e.l,0!==t&&o.push(Xn(e,t)),o}function Su(e,t,n){var r,i,o=e.l+t,a=[];while(o!=e.l)t=o-e.l,i=e[e.l],r=ku[i]||ku[Cu[i]],24!==i&&25!==i||(r=(24===i?Au:Eu)[e[e.l+1]]),r&&r.f?a.push([r.n,r.f(e,t,n)]):Xn(e,t);return a}function Mu(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Nu(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Du(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Lu(e,t,n){var r=Du(e,t,n);return"#REF"==r?r:Nu(r,n)}function Pu(e,t,n,r,i){var o,a,s,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],d=0,f=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,b=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=ft(" ",e[0][m][1][1]);break;case 1:g=ft("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}a+=g,m=-1}h.push(a+Ou[y[0]]+o);break;case"PtgIsect":o=h.pop(),a=h.pop(),h.push(a+" "+o);break;case"PtgUnion":o=h.pop(),a=h.pop(),h.push(a+","+o);break;case"PtgRange":o=h.pop(),a=h.pop(),h.push(a+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=er(y[1][1],u,i),h.push(nr(s,c));break;case"PtgRefN":s=n?er(y[1][1],n,i):y[1][1],h.push(nr(s,c));break;case"PtgRef3d":d=y[1][1],s=er(y[1][2],u,i),p=Lu(r,d,i);h.push(p+"!"+nr(s,c));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],x=y[1][1];w||(w=0),w&=127;var k=0==w?[]:h.slice(-w);h.length-=w,"User"===x&&(x=k.shift()),h.push(x+"("+k.join(",")+")");break;case"PtgBool":h.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(y[1]);break;case"PtgNum":h.push(String(y[1]));break;case"PtgStr":h.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(y[1]);break;case"PtgAreaN":l=tr(y[1][1],n?{s:n}:u,i),h.push(rr(l,i));break;case"PtgArea":l=tr(y[1][1],u,i),h.push(rr(l,i));break;case"PtgArea3d":d=y[1][1],l=y[1][2],p=Lu(r,d,i),h.push(p+"!"+rr(l,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=y[1][2];var C=(r.names||[])[f-1]||(r[0]||[])[f],A=C?C.Name:"SH33TJSNAME"+String(f);A&&"_xlfn."==A.slice(0,6)&&!i.xlfn&&(A=A.slice(6)),h.push(A);break;case"PtgNameX":var E,T=y[1][1];if(f=y[1][2],!(i.biff<=5)){var S="";if(14849==((r[T]||[])[0]||[])[0]||(1025==((r[T]||[])[0]||[])[0]?r[T][f]&&r[T][f].itab>0&&(S=r.SheetNames[r[T][f].itab-1]+"!"):S=r.SheetNames[f-1]+"!"),r[T]&&r[T][f])S+=r[T][f].Name;else if(r[0]&&r[0][f])S+=r[0][f].Name;else{var M=(Du(r,T,i)||"").split(";;");M[f-1]?S=M[f-1]:S+="SH33TJSERRX"}h.push(S);break}T<0&&(T=-T),r[T]&&(E=r[T][f]),E||(E={Name:"SH33TJSERRY"}),h.push(E.Name);break;case"PtgParen":var O="(",N=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:O=ft(" ",e[0][m][1][1])+O;break;case 3:O=ft("\r",e[0][m][1][1])+O;break;case 4:N=ft(" ",e[0][m][1][1])+N;break;case 5:N=ft("\r",e[0][m][1][1])+N;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(O+h.pop()+N);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":s={c:y[1][1],r:y[1][0]};var D={c:n.c,r:n.r};if(r.sharedf[pr(s)]){var L=r.sharedf[pr(s)];h.push(Pu(L,u,D,r,i))}else{var P=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.ca[0].e.c)&&!(s.ra[0].e.r)){h.push(Pu(a[1],u,D,r,i)),P=!0;break}P||h.push(y[1])}break;case"PtgArray":h.push("{"+Mu(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var I=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&m>=0&&-1==I.indexOf(e[0][v][0])){y=e[0][m];var R=!0;switch(y[1][0]){case 4:R=!1;case 0:g=ft(" ",y[1][1]);break;case 5:R=!1;case 1:g=ft("\r",y[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}h.push((R?g:"")+h.pop()+(R?"":g)),m=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function Iu(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Xn(e,t-2)];var s=Su(e,a,n);return t!==a+o&&(r=Tu(e,t-a-o,s,n)),e.l=i,[s,r]}function Ru(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Xn(e,t-2)];var s=Su(e,a,n);return t!==a+o&&(r=Tu(e,t-a-o,s,n)),e.l=i,[s,r]}function Fu(e,t,n,r){var i,o=e.l+t,a=Su(e,r,n);return o!==e.l&&(i=Tu(e,o-e.l,a,n)),[a,i]}function zu(e,t,n){var r,i=e.l+t,o=e.read_shift(2),a=Su(e,o,n);return 65535==o?[[],Xn(e,t-2)]:(t!==o+2&&(r=Tu(e,i-o-2,a,n)),[a,r])}function ju(e){var t;if(65535!==jn(e,e.l+6))return[zr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function Bu(e,t,n){var r=e.l+t,i=ho(e,6);2==n.biff&&++e.l;var o=ju(e,8),a=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var s=Ru(e,r-e.l,n);return{cell:i,val:o[0],formula:s,shared:a>>3&1,tt:o[1]}}function Uu(e,t,n){var r=e.read_shift(4),i=Su(e,r,n),o=e.read_shift(4),a=o>0?Tu(e,o,i,n):null;return[i,a]}var Hu=Uu,qu=Uu,_u=Uu,Wu=Uu,Gu={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Vu={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Yu={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ku(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Zu(e){var t=e.split(":"),n=t[0].split(".")[0];return[n,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Xu={},Ju={};function Qu(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function $u(e,t,n,r,i,o){try{r.cellNF&&(e.z=K[t])}catch(s){if(r.WTF)throw s}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=ut(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==K[t]&&qe(We[t]||"General",t),"e"===e.t)e.w=e.w||ci[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v);else if("d"===e.t){var a=tt(e.v);e.w=(0|a)===a?a.toString(10):le(a)}else{if(void 0===e.v)return"";e.w=ce(e.v,Ju)}else"d"===e.t?e.w=He(t,tt(e.v),Ju):e.w=He(t,e.v,Ju)}catch(s){if(r.WTF)throw s}if(r.cellStyles&&null!=n)try{e.s=o.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Ps(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Ps(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(r.WTF&&o.Fills)throw s}}}function eh(e,t){var n=vr(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=gr(n))}var th=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,nh=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,rh=/<(?:\w:)?hyperlink [^>]*>/gm,ih=/"(\w*:\w*)"/,oh=/<(?:\w:)?col\b[^>]*[\/]?>/g,ah=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,sh=/<(?:\w:)?pageMargins[^>]*\/>/g,lh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,ch=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,uh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function hh(e,t,n,r,i,o,a){if(!e)return e;r||(r={"!id":{}}),null!=w&&null==t.dense&&(t.dense=w);var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",h=e.match(nh);h?(c=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):c=u=e;var d=c.match(lh);d?dh(d[0],s,i,n):(d=c.match(ch))&&fh(d[0],d[1]||"",s,i,n,a,o);var f=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(f>0){var p=c.slice(f,f+50).match(ih);p&&eh(s,p[1])}var m=c.match(uh);m&&m[1]&&yh(m[1],i);var g=[];if(t.cellStyles){var v=c.match(oh);v&&gh(g,v)}h&&wh(h[1],s,t,l,o,a);var b=u.match(ah);b&&(s["!autofilter"]=vh(b[0]));var y=[],x=u.match(th);if(x)for(f=0;f!=x.length;++f)y[f]=vr(x[f].slice(x[f].indexOf('"')+1));var k=u.match(rh);k&&ph(s,k,r);var C=u.match(sh);if(C&&(s["!margins"]=mh(zt(C[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=gr(l)),t.sheetRows>0&&s["!ref"]){var A=vr(s["!ref"]);t.sheetRows<=+A.e.r&&(A.e.r=t.sheetRows-1,A.e.r>l.e.r&&(A.e.r=l.e.r),A.e.rl.e.c&&(A.e.c=l.e.c),A.e.c0&&(s["!cols"]=g),y.length>0&&(s["!merges"]=y),s}function dh(e,t,n,r){var i=zt(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=Ht(Jt(i.codeName)))}function fh(e,t,n,r,i){dh(e.slice(0,e.indexOf(">")),n,r,i)}function ph(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var o=zt(Jt(t[i]),!0);if(!o.ref)return;var a=((n||{})["!id"]||[])[o.id];a?(o.Target=a.Target,o.location&&(o.Target+="#"+Ht(o.location))):(o.Target="#"+Ht(o.location),a={Target:o.Target,TargetMode:"Internal"}),o.Rel=a,o.tooltip&&(o.Tooltip=o.tooltip,delete o.tooltip);for(var s=vr(o.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=pr({c:c,r:l});r?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=o):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=o)}}}function mh(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(n){e[n]&&(t[n]=parseFloat(e[n]))})),t}function gh(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=zt(t[r],!0);i.hidden&&(i.hidden=Vt(i.hidden));var o=parseInt(i.min,10)-1,a=parseInt(i.max,10)-1;i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,qs(i.width)),_s(i);while(o<=a)e[o++]=dt(i)}}function vh(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var bh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function yh(e,t){t.Views||(t.Views=[{}]),(e.match(bh)||[]).forEach((function(e,n){var r=zt(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),Vt(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}var wh=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,o=$t("v"),a=$t("f");return function(s,l,c,u,h,d){for(var f,p,m,g,v,b=0,y="",w=[],x=[],k=0,C=0,A=0,E="",T=0,S=0,M=0,O=0,N=Array.isArray(d.CellXf),D=[],L=[],P=Array.isArray(l),I=[],R={},F=!1,z=!!c.sheetStubs,j=s.split(t),B=0,U=j.length;B!=U;++B){y=j[B].trim();var H=y.length;if(0!==H){var q=0;e:for(b=0;b":if("/"!=y[b-1]){++b;break e}if(c&&c.cellStyles){if(p=zt(y.slice(q,b),!0),T=null!=p.r?parseInt(p.r,10):T+1,S=-1,c.sheetRows&&c.sheetRows=b)break;if(p=zt(y.slice(q,b),!0),T=null!=p.r?parseInt(p.r,10):T+1,S=-1,!(c.sheetRows&&c.sheetRowsT-1&&(u.s.r=T-1),u.e.r":"")+y,null!=x&&2===x.length){for(k=0,E=x[1],C=0;C!=E.length;++C){if((A=E.charCodeAt(C)-64)<1||A>26)break;k=26*k+A}--k,S=k}else++S;for(C=0;C!=y.length;++C)if(62===y.charCodeAt(C))break;if(++C,p=zt(y.slice(0,C),!0),p.r||(p.r=pr({r:T-1,c:S})),E=y.slice(C),f={t:""},null!=(x=E.match(o))&&""!==x[1]&&(f.v=Ht(x[1])),c.cellFormula){if(null!=(x=E.match(a))&&""!==x[1]){if(f.f=Ht(Jt(x[1])).replace(/\r\n/g,"\n"),c.xlfn||(f.f=ic(f.f)),x[0].indexOf('t="array"')>-1)f.F=(E.match(i)||[])[1],f.F.indexOf(":")>-1&&D.push([vr(f.F),f.F]);else if(x[0].indexOf('t="shared"')>-1){g=zt(x[0]);var W=Ht(Jt(x[1]));c.xlfn||(W=ic(W)),L[parseInt(g.si,10)]=[g,W,p.r]}}else(x=E.match(/]*\/>/))&&(g=zt(x[0]),L[g.si]&&(f.f=nc(L[g.si][1],L[g.si][2],p.r)));var G=fr(p.r);for(C=0;C=D[C][0].s.r&&G.r<=D[C][0].e.r&&G.c>=D[C][0].s.c&&G.c<=D[C][0].e.c&&(f.F=D[C][1])}if(null==p.t&&void 0===f.v)if(f.f||f.F)f.v=0,f.t="n";else{if(!z)continue;f.t="z"}else f.t=p.t||"n";switch(u.s.c>S&&(u.s.c=S),u.e.c0&&(l["!rows"]=I)}}();function xh(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=r,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}var kh=Fr;function Ch(){}function Ah(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=Nr(e,t-19),n}function Eh(e){var t=Mr(e);return[t]}function Th(e){var t=Or(e);return[t]}function Sh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"b"]}function Mh(e){var t=Or(e),n=e.read_shift(1);return[t,n,"b"]}function Oh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"e"]}function Nh(e){var t=Or(e),n=e.read_shift(1);return[t,n,"e"]}function Dh(e){var t=Mr(e),n=e.read_shift(4);return[t,n,"s"]}function Lh(e){var t=Or(e),n=e.read_shift(4);return[t,n,"s"]}function Ph(e){var t=Mr(e),n=zr(e);return[t,n,"n"]}function Ih(e){var t=Or(e),n=zr(e);return[t,n,"n"]}function Rh(e){var t=Mr(e),n=Ir(e);return[t,n,"n"]}function Fh(e){var t=Or(e),n=Ir(e);return[t,n,"n"]}function zh(e){var t=Mr(e),n=Tr(e);return[t,n,"is"]}function jh(e){var t=Mr(e),n=Ar(e);return[t,n,"str"]}function Bh(e){var t=Or(e),n=Ar(e);return[t,n,"str"]}function Uh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function Hh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function qh(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=zr(e),a=[i,o,"n"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function _h(e,t,n){var r=e.l+t,i=Mr(e);i.r=n["!row"];var o=Ar(e),a=[i,o,"str"];if(n.cellFormula){e.l+=2;var s=qu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}var Wh=Fr;function Gh(e,t){var n=e.l+t,r=Fr(e,16),i=Dr(e),o=Ar(e),a=Ar(e),s=Ar(e);e.l=n;var l={rfx:r,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function Vh(){}function Yh(e,t,n){var r=e.l+t,i=Rr(e,16),o=e.read_shift(1),a=[i];if(a[2]=o,n.cellFormula){var s=Hu(e,r-e.l,n);a[1]=s}else e.l=r;return a}function Kh(e,t,n){var r=e.l+t,i=Fr(e,16),o=[i];if(n.cellFormula){var a=Wu(e,r-e.l,n);o[1]=a,e.l=r}else e.l=r;return o}var Zh=["left","right","top","bottom","header","footer"];function Xh(e){var t={};return Zh.forEach((function(n){t[n]=zr(e,8)})),t}function Jh(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function Qh(){}function $h(){}function ed(e,t,n,r,i,o,a){if(!e)return e;var s=t||{};r||(r={"!id":{}}),null!=w&&null==s.dense&&(s.dense=w);var l,c,u,h,d,f,p,m,g,v,b=s.dense?[]:{},y={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=[],k=!1,C=!1,A=[];s.biff=12,s["!row"]=0;var E=0,T=!1,S=[],M={},O=s.supbooks||i.supbooks||[[]];if(O.sharedf=M,O.arrayf=S,O.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=O,i.Names))for(var N=0;N=N[0].s.r&&c.r<=N[0].e.r&&f>=N[0].s.c&&f<=N[0].e.c&&(u.F=gr(N[0]),T=!0)}!T&&e.length>3&&(u.f=e[3])}if(y.s.r>c.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.rc.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.r=e.s)P[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},R||(R=!0,qs(e.w/256)),_s(P[e.e+1]);break;case 161:b["!autofilter"]={ref:gr(e)};break;case 476:b["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:k=!0;break;case 36:k=!1;break;case 37:x.push(w),k=!0;break;case 38:x.pop(),k=!1;break;default:if(t.T);else if(!k||s.WTF)throw new Error("Unexpected record 0x"+w.toString(16))}}),s),delete s.supbooks,delete s["!row"],!b["!ref"]&&(y.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(b["!ref"]=gr(l||y)),s.sheetRows&&b["!ref"]){var F=vr(b["!ref"]);s.sheetRows<=+F.e.r&&(F.e.r=s.sheetRows-1,F.e.r>y.e.r&&(F.e.r=y.e.r),F.e.ry.e.c&&(F.e.c=y.e.c),F.e.c0&&(b["!merges"]=A),P.length>0&&(b["!cols"]=P),I.length>0&&(b["!rows"]=I),b}function td(e){var t,n=[],r=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=Ht((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}function nd(e,t,n,r,i,o){var a=o||{"!type":"chart"};if(!e)return o;var s=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=td(e);u.s.r=u.s.c=0,u.e.c=s,c=cr(s),t[0].forEach((function(e,n){a[c+or(n)]={t:"n",v:e,z:t[1]},l=n})),u.e.r0&&(a["!ref"]=gr(u)),a}function rd(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o,a={"!type":"chart","!drawel":null,"!rel":""},s=e.match(lh);return s&&dh(s[0],a,i,n),(o=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=o[1]),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}function id(e,t){e.l+=10;var n=Ar(e,t-10);return{name:n}}function od(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o={"!type":"chart","!drawel":null,"!rel":""},a=[],s=!1;return Qn(e,(function(e,r,l){switch(l){case 550:o["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(l);break;case 38:a.pop();break;default:if(r.T>0)a.push(l);else if(r.T<0)a.pop();else if(!s||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),t),r["!id"][o["!rel"]]&&(o["!drawel"]=r["!id"][o["!rel"]]),o}var ad=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],sd=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ld=[],cd=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function ud(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var o=t[i];if(null==r[o[0]])r[o[0]]=o[1];else switch(o[2]){case"bool":"string"==typeof r[o[0]]&&(r[o[0]]=Vt(r[o[0]]));break;case"int":"string"==typeof r[o[0]]&&(r[o[0]]=parseInt(r[o[0]],10));break}}}function hd(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=Vt(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10));break}}}function dd(e){hd(e.WBProps,ad),hd(e.CalcPr,cd),ud(e.WBView,sd),ud(e.Sheets,ld),Ju.date1904=Vt(e.WBProps.date1904)}var fd="][*?/\\".split("");function pd(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return fd.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}var md=/<\w+:workbook/;function gd(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",o={},a=0;if(e.replace(It,(function(s,l){var c=zt(s);switch(jt(c[0])){case"":break;case"":case"":break;case"":break;case"":ad.forEach((function(e){if(null!=c[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=Vt(c[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:n.WBProps[e[0]]=c[e[0]]}})),c.codeName&&(n.WBProps.CodeName=Jt(c.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete c[0],n.WBView.push(c);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":r=!1;break;case"":o.Ref=Ht(Jt(e.slice(a,l))),n.Names.push(o);break;case"":break;case"":delete c[0],n.CalcPr=c;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":r=!1;break;case"":r=!0;break;case"":r=!1;break;case"8?Ar(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}function yd(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function wd(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=Lr(e),a=_u(e,0,n),s=Dr(e);e.l=r;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function xd(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var o=[],a=[[]];return a.SheetNames=[],a.XTI=[],nf[16]={n:"BrtFRTArchID$",f:yd},Qn(e,(function(e,s,l){switch(l){case 156:a.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Pu(e.Ptg,null,null,a,t),delete t.SID,delete e.Ptg,o.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:a[0].length?a.push([l,e]):a[0]=[l,e],a[a.length-1].XTI=[];break;case 362:0===a.length&&(a[0]=[],a[0].XTI=[]),a[a.length-1].XTI=a[a.length-1].XTI.concat(e),a.XTI=a.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(l),i=!0;break;case 36:r.pop(),i=!1;break;case 37:r.push(l),i=!0;break;case 38:r.pop(),i=!1;break;case 16:break;default:if(s.T);else if(!i||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}}),t),dd(n),n.Names=o,n.supbooks=a,n}function kd(e,t,n){return".bin"===t.slice(-4)?xd(e,n):gd(e,n)}function Cd(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?ed(e,r,n,i,o,a,s):hh(e,r,n,i,o,a,s)}function Ad(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?od(e,r,n,i,o,a,s):rd(e,r,n,i,o,a,s)}function Ed(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Xl(e,r,n,i,o,a,s):Jl(e,r,n,i,o,a,s)}function Td(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Kl(e,r,n,i,o,a,s):Zl(e,r,n,i,o,a,s)}function Sd(e,t,n,r){return".bin"===t.slice(-4)?ll(e,n,r):nl(e,n,r)}function Md(e,t,n){return bl(e,n)}function Od(e,t,n){return".bin"===t.slice(-4)?is(e,n):ns(e,n)}function Nd(e,t,n){return".bin"===t.slice(-4)?Gl(e,n):Ul(e,n)}function Dd(e,t,n){return".bin"===t.slice(-4)?Rl(e,t,n):Pl(e,t,n)}function Ld(e,t,n,r){return".bin"===n.slice(-4)?zl(e,t,n,r):Fl(e,t,n,r)}function Pd(e,t,n){return".bin"===t.slice(-4)?Dl(e,t,n):Ll(e,t,n)}var Id,Rd=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Fd=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function zd(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var i,o,a,s,l=e.match(Rd);if(l)for(s=0;s!=l.length;++s)i=l[s].match(Fd),-1===(o=i[1].indexOf(":"))?r[i[1]]=i[2].slice(1,i[2].length-1):(a="xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(o+1),r[a]=i[2].slice(1,i[2].length-1));return r}function jd(e){var t=e.split(/\s+/),n={};if(1===t.length)return n;var r,i,o,a,s=e.match(Rd);if(s)for(a=0;a!=s.length;++a)r=s[a].match(Fd),-1===(i=r[1].indexOf(":"))?n[r[1]]=r[2].slice(1,r[2].length-1):(o="xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(i+1),n[o]=r[2].slice(1,r[2].length-1));return n}function Bd(e,t){var n=Id[e]||Ht(e);return"General"===n?ce(t):He(n,t)}function Ud(e,t,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Vt(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=ut(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[Ht(t)]=i}function Hd(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||ci[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v):e.w=ce(e.v):e.w=Bd(t||"General",e.v)}catch(o){if(n.WTF)throw o}try{var r=Id[t]||t||"General";if(n.cellNF&&(e.z=r),n.cellDates&&"n"==e.t&&Fe(r)){var i=Q(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(o){if(n.WTF)throw o}}}function qd(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Ks[r.Pattern]||r.Pattern)}e[t.ID]=t}function _d(e,t,n,r,i,o,a,s,l,c){var u="General",h=r.StyleID,d={};c=c||{};var f=[],p=0;void 0===h&&s&&(h=s.StyleID),void 0===h&&a&&(h=a.StyleID);while(void 0!==o[h]){if(o[h].nf&&(u=o[h].nf),o[h].Interior&&f.push(o[h].Interior),!o[h].Parent)break;h=o[h].Parent}switch(n.Type){case"Boolean":r.t="b",r.v=Vt(e);break;case"String":r.t="s",r.r=Gt(Ht(e)),r.v=e.indexOf("<")>-1?Ht(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(ut(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!==r.v?r.v=Ht(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=ui[e],!1!==c.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=Gt(t||e));break}if(Hd(r,u,c),!1!==c.cellFormula)if(r.Formula){var m=Ht(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=Ql(m,i),delete r.Formula,"RC"==r.ArrayRange?r.F=Ql("RC:RC",i):r.ArrayRange&&(r.F=Ql(r.ArrayRange,i),l.push([vr(r.F),r.F]))}else for(p=0;p=l[p][0].s.r&&i.r<=l[p][0].e.r&&i.c>=l[p][0].s.c&&i.c<=l[p][0].e.c&&(r.F=l[p][1]);c.cellStyles&&(f.forEach((function(e){!d.patternType&&e.patternType&&(d.patternType=e.patternType)})),r.s=d),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function Wd(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Gd(e,t){var n=t||{};_e();var r=v(cn(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r="undefined"!==typeof g?g.utils.decode(65001,f(r)):Jt(r));var i,o=r.slice(0,1024).toLowerCase(),a=!1;if(o=o.replace(/".*?"/g,""),(1023&o.indexOf(">"))>Math.min(1023&o.indexOf(","),1023&o.indexOf(";"))){var s=dt(n);return s.type="string",_a.to_workbook(r,s)}if(-1==o.indexOf("=0&&(a=!0)})),a)return uf(r,n);Id={"General Number":"General","General Date":K[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":K[15],"Short Date":K[14],"Long Time":K[19],"Medium Time":K[18],"Short Time":K[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:K[2],Standard:K[4],Percent:K[10],Scientific:K[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,c=[];null!=w&&null==n.dense&&(n.dense=w);var u,h={},d=[],p=n.dense?[]:{},m="",b={},y={},x=zd(''),k=0,C=0,A=0,E={s:{r:2e6,c:2e6},e:{r:0,c:0}},T={},S={},M="",O=0,N=[],D={},L={},P=0,I=[],R=[],F={},z=[],j=!1,B=[],U=[],H={},q=0,_=0,W={Sheets:[],WBProps:{date1904:!1}},G={};un.lastIndex=0,r=r.replace(//gm,"");var V="";while(i=un.exec(r))switch(i[3]=(V=i[3]).toLowerCase()){case"data":if("data"==V){if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break}if(c[c.length-1][1])break;"/"===i[1]?_d(r.slice(k,i.index),M,x,"comment"==c[c.length-1][0]?F:b,{c:C,r:A},T,z[C],y,B,n):(M="",x=zd(i[0]),k=i.index+i[0].length);break;case"cell":if("/"===i[1])if(R.length>0&&(b.c=R),(!n.sheetRows||n.sheetRows>A)&&void 0!==b.v&&(n.dense?(p[A]||(p[A]=[]),p[A][C]=b):p[cr(C)+or(A)]=b),b.HRef&&(b.l={Target:Ht(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(q=C+(0|parseInt(b.MergeAcross,10)),_=A+(0|parseInt(b.MergeDown,10)),N.push({s:{c:C,r:A},e:{c:q,r:_}})),n.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var Y=C;Y<=q;++Y)for(var Z=A;Z<=_;++Z)(Y>C||Z>A)&&(n.dense?(p[Z]||(p[Z]=[]),p[Z][Y]={t:"z"}):p[cr(Y)+or(Z)]={t:"z"});C=q+1}else++C;else b.MergeAcross?C=q+1:++C;else b=jd(i[0]),b.Index&&(C=+b.Index-1),CE.e.c&&(E.e.c=C),"/>"===i[0].slice(-2)&&++C,R=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(AE.e.r&&(E.e.r=A),"/>"===i[0].slice(-2)&&(y=zd(i[0]),y.Index&&(A=+y.Index-1)),C=0,++A):(y=zd(i[0]),y.Index&&(A=+y.Index-1),H={},("0"==y.AutoFitHeight||y.Height)&&(H.hpx=parseInt(y.Height,10),H.hpt=Vs(H.hpx),U[A]=H),"1"==y.Hidden&&(H.hidden=!0,U[A]=H));break;case"worksheet":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));d.push(m),E.s.r<=E.e.r&&E.s.c<=E.e.c&&(p["!ref"]=gr(E),n.sheetRows&&n.sheetRows<=E.e.r&&(p["!fullref"]=p["!ref"],E.e.r=n.sheetRows-1,p["!ref"]=gr(E))),N.length&&(p["!merges"]=N),z.length>0&&(p["!cols"]=z),U.length>0&&(p["!rows"]=U),h[m]=p}else E={s:{r:2e6,c:2e6},e:{r:0,c:0}},A=C=0,c.push([i[3],!1]),l=zd(i[0]),m=Ht(l.Name),p=n.dense?[]:{},N=[],B=[],U=[],G={name:m,Hidden:0},W.Sheets.push(G);break;case"table":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==i[0].slice(-2))break;c.push([i[3],!1]),z=[],j=!1}break;case"style":"/"===i[1]?qd(T,S,n):S=zd(i[0]);break;case"numberformat":S.nf=Ht(zd(i[0]).Format||"General"),Id[S.nf]&&(S.nf=Id[S.nf]);for(var X=0;392!=X;++X)if(K[X]==S.nf)break;if(392==X)for(X=57;392!=X;++X)if(null==K[X]){qe(S.nf,X);break}break;case"column":if("table"!==c[c.length-1][0])break;if(u=zd(i[0]),u.Hidden&&(u.hidden=!0,delete u.Hidden),u.Width&&(u.wpx=parseInt(u.Width,10)),!j&&u.wpx>10){j=!0,zs=Is;for(var J=0;J0&&(ee.Sheet=W.Sheets.length-1),W.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?M+=r.slice(O,i.index):O=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;S.Interior=zd(i[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?Oi(D,V,r.slice(P,i.index)):P=i.index+i[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else c.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));Wd(F),R.push(F)}else c.push([i[3],!1]),l=zd(i[0]),F={a:l.Author};break;case"autofilter":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var te=zd(i[0]);p["!autofilter"]={ref:Ql(te.Range).replace(/\$/g,"")},c.push([i[3],!0])}break;case"name":break;case"datavalidation":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"null":break;default:if(0==c.length&&"document"==i[3])return kf(r,n);if(0==c.length&&"uof"==i[3])return kf(r,n);var ne=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ne=!1}break;case"componentoptions":switch(i[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ne=!1}break;case"excelworkbook":switch(i[3]){case"date1904":W.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ne=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":break;case"height":break;case"width":break;default:ne=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(P,i.index)){case"SheetHidden":G.Hidden=1;break;case"SheetVeryHidden":G.Hidden=2;break}else P=i.index+i[0].length;break;case"header":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+zt(i[0]).Margin)||(p["!margins"].header=+zt(i[0]).Margin);break;case"footer":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+zt(i[0]).Margin)||(p["!margins"].footer=+zt(i[0]).Margin);break;case"pagemargins":var re=zt(i[0]);p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+re.Top)||(p["!margins"].top=+re.Top),isNaN(+re.Left)||(p["!margins"].left=+re.Left),isNaN(+re.Right)||(p["!margins"].right=+re.Right),isNaN(+re.Bottom)||(p["!margins"].bottom=+re.Bottom);break;case"displayrighttoleft":W.Views||(W.Views=[]),W.Views[0]||(W.Views[0]={}),W.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ne=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ne=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ne=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ne=!1}break;case"querytable":switch(i[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ne=!1}break;case"datavalidation":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ne=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ne=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:ne=!1}break;case"smarttags":break;default:ne=!1;break}if(ne)break;if(i[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+c.join("|");if("customdocumentproperties"===c[c.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?Ud(L,V,I,r.slice(P,i.index)):(I=i,P=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+c.join("|")}var ie={};return n.bookSheets||n.bookProps||(ie.Sheets=h),ie.SheetNames=d,ie.Workbook=W,ie.SSF=dt(K),ie.Props=D,ie.Custprops=L,ie}function Vd(e,t){switch(Kf(t=t||{}),t.type||"base64"){case"base64":return Gd(A(e),t);case"binary":case"buffer":case"file":return Gd(e,t);case"array":return Gd(N(e),t)}}function Yd(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=Hr(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4?t:(r=n.read_shift(4),1907505652!==r?t:(t.UnicodeClipboardFormat=qr(n),r=n.read_shift(4),0==r||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr"))))))}var Kd=[60,1084,2066,2165,2175];function Zd(e,t,n,r,i){var o=r,a=[],s=n.slice(n.l,n.l+o);if(i&&i.enc&&i.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(s)}a.push(s),n.l+=o;var l=jn(n,n.l),c=rf[l],u=0;while(null!=c&&Kd.indexOf(l)>-1)o=jn(n,n.l+2),u=n.l+4,2066==l?u+=4:2165!=l&&2175!=l||(u+=12),s=n.slice(u,n.l+4+o),a.push(s),n.l+=4+o,c=rf[l=jn(n,n.l)];var h=L(a);Zn(h,0);var d=0;h.lens=[];for(var f=0;f1)&&!(n.sheetRows&&e.r>=n.sheetRows)){if(n.cellStyles&&t.XF&&t.XF.data&&O(e,t,n),delete t.ixfe,delete t.XF,i=e,x=pr(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),n.cellFormula&&t.f)for(var r=0;re.c||C[r][0].s.r>e.r)&&!(C[r][0].e.c>8)!==V)throw new Error("rt mismatch: "+X+"!="+V);12==Z.r&&(e.l+=10,Y-=10)}var J={};if(J=10===V?Z.f(e,Y,D):Zd(V,Z,e,Y,D),0==U&&-1===[9,521,1033,2057].indexOf(B))continue;switch(V){case 34:n.opts.Date1904=T.WBProps.date1904=J;break;case 134:n.opts.WriteProtect=!0;break;case 47:if(D.enc||(e.l=0),D.enc=J,!t.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:D.lastuser=J;break;case 66:var Q=Number(J);switch(Q){case 21010:Q=1200;break;case 32768:Q=1e4;break;case 32769:Q=1252;break}h(D.codepage=Q),W=!0;break;case 317:D.rrtabid=J;break;case 25:D.winlocked=J;break;case 439:n.opts["RefreshAll"]=J;break;case 12:n.opts["CalcCount"]=J;break;case 16:n.opts["CalcDelta"]=J;break;case 17:n.opts["CalcIter"]=J;break;case 13:n.opts["CalcMode"]=J;break;case 14:n.opts["CalcPrecision"]=J;break;case 95:n.opts["CalcSaveRecalc"]=J;break;case 15:D.CalcRefMode=J;break;case 2211:n.opts.FullCalc=J;break;case 129:J.fDialog&&(f["!type"]="dialog"),J.fBelow||((f["!outline"]||(f["!outline"]={})).above=!0),J.fRight||((f["!outline"]||(f["!outline"]={})).left=!0);break;case 224:A.push(J);break;case 430:z.push([J]),z[z.length-1].XTI=[];break;case 35:case 547:z[z.length-1].push(J);break;case 24:case 536:j={Name:J.Name,Ref:Pu(J.rgce,m,null,z,D)},J.itab>0&&(j.Sheet=J.itab-1),z.names.push(j),z[0]||(z[0]=[],z[0].XTI=[]),z[z.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(_[J.itab-1]={ref:gr(J.rgce[0][0][1][2])});break;case 22:D.ExternCount=J;break;case 23:0==z.length&&(z[0]=[],z[0].XTI=[]),z[z.length-1].XTI=z[z.length-1].XTI.concat(J),z.XTI=z.XTI.concat(J);break;case 2196:if(D.biff<8)break;null!=j&&(j.Comment=J[1]);break;case 18:f["!protect"]=J;break;case 19:0!==J&&D.WTF&&console.error("Password verifier: "+J);break;case 133:p[J.pos]=J,D.snames.push(J.name);break;case 10:if(--U)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,f["!ref"]=gr(m),t.sheetRows&&t.sheetRows<=m.e.r){var $=m.e.r;m.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=gr(m),m.e.r=$}m.e.r++,m.e.c++}L.length>0&&(f["!merges"]=L),P.length>0&&(f["!objects"]=P),I.length>0&&(f["!cols"]=I),R.length>0&&(f["!rows"]=R),T.Sheets.push(S)}""===b?y=f:r[b]=f,f=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===D.biff&&(D.biff={9:2,521:3,1033:4}[V]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),D.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(D.biff=5,W=!0,h(D.codepage=28591)),8==D.biff&&0==J.BIFFVer&&16==J.dt&&(D.biff=2),U++)break;if(f=t.dense?[]:{},D.biff<8&&!W&&(W=!0,h(D.codepage=t.codepage||1252)),D.biff<5||0==J.BIFFVer&&4096==J.dt){""===b&&(b="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-Y,name:b};p[ee.pos]=ee,D.snames.push(b)}else b=(p[G]||{name:""}).name;32==J.dt&&(f["!type"]="chart"),64==J.dt&&(f["!type"]="macro"),L=[],P=[],D.arrayf=C=[],I=[],R=[],F=!1,S={Hidden:(p[G]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==f["!type"]&&(t.dense?(f[J.r]||[])[J.c]:f[pr({c:J.c,r:J.r})])&&++J.c,c={ixfe:J.ixfe,XF:A[J.ixfe]||{},v:J.val,t:"n"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 5:case 517:c={ixfe:J.ixfe,XF:A[J.ixfe],v:J.val,t:J.t},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 638:c={ixfe:J.ixfe,XF:A[J.ixfe],v:J.rknum,t:"n"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 189:for(var te=J.c;te<=J.C;++te){var ne=J.rkrec[te-J.c][0];c={ixfe:ne,XF:A[ne],v:J.rkrec[te-J.c][1],t:"n"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:te,r:J.r},c,t)}break;case 6:case 518:case 1030:if("String"==J.val){g=J;break}if(c=Jd(J.val,J.cell.ixfe,J.tt),c.XF=A[c.ixfe],t.cellFormula){var re=J.formula;if(re&&re[0]&&re[0][0]&&"PtgExp"==re[0][0][0]){var ie=re[0][0][1][0],oe=re[0][0][1][1],ae=pr({r:ie,c:oe});k[ae]?c.f=""+Pu(J.formula,m,J.cell,z,D):c.F=((t.dense?(f[ie]||[])[oe]:f[ae])||{}).F}else c.f=""+Pu(J.formula,m,J.cell,z,D)}H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N(J.cell,c,t),g=J;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=J,c=Jd(J,g.cell.ixfe,"s"),c.XF=A[c.ixfe],t.cellFormula&&(c.f=""+Pu(g.formula,m,g.cell,z,D)),H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N(g.cell,c,t),g=null;break;case 33:case 545:C.push(J);var se=pr(J[0].s);if(o=t.dense?(f[J[0].s.r]||[])[J[0].s.c]:f[se],t.cellFormula&&o){if(!g)break;if(!se||!o)break;o.f=""+Pu(J[1],m,J[0],z,D),o.F=gr(J[0])}break;case 1212:if(!t.cellFormula)break;if(x){if(!g)break;k[pr(g.cell)]=J[0],o=t.dense?(f[g.cell.r]||[])[g.cell.c]:f[pr(g.cell)],(o||{}).f=""+Pu(J[0],m,i,z,D)}break;case 253:c=Jd(v[J.isst].t,J.ixfe,"s"),v[J.isst].h&&(c.h=v[J.isst].h),c.XF=A[c.ixfe],H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 513:t.sheetStubs&&(c={ixfe:J.ixfe,XF:A[J.ixfe],t:"z"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t));break;case 190:if(t.sheetStubs)for(var le=J.c;le<=J.C;++le){var ce=J.ixfe[le-J.c];c={ixfe:ce,XF:A[ce],t:"z"},H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:le,r:J.r},c,t)}break;case 214:case 516:case 4:c=Jd(J.val,J.ixfe,"s"),c.XF=A[c.ixfe],H>0&&(c.z=q[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),N({c:J.c,r:J.r},c,t);break;case 0:case 512:1===U&&(m=J);break;case 252:v=J;break;case 1054:if(4==D.biff){q[H++]=J[1];for(var ue=0;ue=163&&qe(J[1],H+163)}else qe(J[1],J[0]);break;case 30:q[H++]=J;for(var he=0;he=163&&qe(J,H+163);break;case 229:L=L.concat(J);break;case 93:P[J.cmo[0]]=D.lastobj=J;break;case 438:D.lastobj.TxO=J;break;case 127:D.lastobj.ImData=J;break;case 440:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&(o.l=J[1]);break;case 2048:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&o.l&&(o.l.Tooltip=J[1]);break;case 28:if(D.biff<=5&&D.biff>=2)break;o=t.dense?(f[J[0].r]||[])[J[0].c]:f[pr(J[0])];var de=P[J[2]];o||(t.dense?(f[J[0].r]||(f[J[0].r]=[]),o=f[J[0].r][J[0].c]={t:"z"}):o=f[pr(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),o.c||(o.c=[]),a={a:J[1],t:de.TxO.t},o.c.push(a);break;case 2173:Sl(A[J.ixfe],J.ext);break;case 125:if(!D.cellStyles)break;while(J.e>=J.s)I[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},F||(F=!0,qs(J.w/256)),_s(I[J.e+1]);break;case 520:var fe={};null!=J.level&&(R[J.r]=fe,fe.level=J.level),J.hidden&&(R[J.r]=fe,fe.hidden=!0),J.hpt&&(R[J.r]=fe,fe.hpt=J.hpt,fe.hpx=Ys(J.hpt));break;case 38:case 39:case 40:case 41:f["!margins"]||Qu(f["!margins"]={}),f["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[V]]=J;break;case 161:f["!margins"]||Qu(f["!margins"]={}),f["!margins"].header=J.header,f["!margins"].footer=J.footer;break;case 574:J.RTL&&(T.Views[0].RTL=!0);break;case 146:E=J;break;case 2198:d=J;break;case 140:u=J;break;case 442:b?S.CodeName=J||S.name:T.WBProps.CodeName=J||"ThisWorkbook";break}}else Z||console.error("Missing Info for XLS Record 0x"+V.toString(16)),e.l+=Y}return n.SheetNames=Qe(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(n.Sheets=r),!n.SheetNames.length&&y["!ref"]?(n.SheetNames.push("Sheet1"),n.Sheets&&(n.Sheets["Sheet1"]=y)):n.Preamble=y,n.Sheets&&_.forEach((function(e,t){n.Sheets[n.SheetNames[t]]["!autofilter"]=e})),n.Strings=v,n.SSF=dt(K),D.enc&&(n.Encryption=D.enc),d&&(n.Themes=d),n.Metadata={},void 0!==u&&(n.Metadata.Country=u),z.names.length>0&&(T.Names=z.names),n.Workbook=T,n}var $d={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function ef(e,t,n){var r=Ze.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=Gi(r,ni,$d.DSI);for(var o in i)t[o]=i[o]}catch(c){if(n.WTF)throw c}var a=Ze.find(e,"/!SummaryInformation");if(a&&a.size>0)try{var s=Gi(a,ri,$d.SI);for(var l in s)null==t[l]&&(t[l]=s[l])}catch(c){if(n.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(Ci(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}function tf(e,t){var n,r,i,o;if(t||(t={}),Kf(t),d(),t.codepage&&c(t.codepage),e.FullPaths){if(Ze.find(e,"/encryption"))throw new Error("File is password-protected");n=Ze.find(e,"!CompObj"),r=Ze.find(e,"/Workbook")||Ze.find(e,"/Book")}else{switch(t.type){case"base64":e=O(A(e));break;case"binary":e=O(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Zn(e,0),r={content:e}}if(n&&Yd(n),t.bookProps&&!t.bookSheets)i={};else{var a=E?"buffer":"array";if(r&&r.content)i=Qd(r.content,t);else if((o=Ze.find(e,"PerfectOffice_MAIN"))&&o.content)i=Ga.to_workbook(o.content,(t.type=a,t));else{if(!(o=Ze.find(e,"NativeContent_MAIN"))||!o.content)throw(o=Ze.find(e,"MN0"))&&o.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=Ga.to_workbook(o.content,(t.type=a,t))}t.bookVBA&&e.FullPaths&&Ze.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=Yl(e))}var s={};return e.FullPaths&&ef(e,s,t),i.Props=i.Custprops=s,t.bookFiles&&(i.cfb=e),i}var nf={0:{f:xh},1:{f:Eh},2:{f:Rh},3:{f:Oh},4:{f:Sh},5:{f:Ph},6:{f:jh},7:{f:Dh},8:{f:_h},9:{f:qh},10:{f:Uh},11:{f:Hh},12:{f:Th},13:{f:Fh},14:{f:Nh},15:{f:Mh},16:{f:Ih},17:{f:Bh},18:{f:Lh},19:{f:Tr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:wd},40:{},42:{},43:{f:il},44:{f:rl},45:{f:ol},46:{f:sl},47:{f:al},48:{},49:{f:Cr},50:{},51:{f:Ol},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Ea},62:{f:zh},63:{f:Il},64:{f:Qh},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Xn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Jh},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Ah},148:{f:kh,p:16},151:{f:Vh},152:{},153:{f:bd},154:{},155:{},156:{f:vd},157:{},158:{},159:{T:1,f:rs},160:{T:-1},161:{T:1,f:Fr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Wh},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Ml},336:{T:-1},337:{f:Nl,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Pr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:aa},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Yh},427:{f:Kh},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Xh},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Ch},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Gh},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Pr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Wl},633:{T:1},634:{T:-1},635:{T:1,f:_l},636:{T:-1},637:{f:Sr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:id},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:$h},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},rf={6:{f:Bu},10:{f:Vi},12:{f:Zi},13:{f:Zi},14:{f:Ki},15:{f:Ki},16:{f:zr},17:{f:Ki},18:{f:Ki},19:{f:Zi},20:{f:ta},21:{f:ta},23:{f:aa},24:{f:oa},25:{f:Ki},26:{},27:{},28:{f:fa},29:{},34:{f:Ki},35:{f:ra},38:{f:zr},39:{f:zr},40:{f:zr},41:{f:zr},42:{f:Ki},43:{f:Ki},47:{f:Ss},49:{f:Ho},51:{f:Zi},60:{},61:{f:jo},64:{f:Ki},65:{f:Uo},66:{f:Zi},77:{},80:{},81:{},82:{},85:{f:Zi},89:{},90:{},91:{},92:{f:Oo},93:{f:ma},94:{},95:{f:Ki},96:{},97:{},99:{f:Ki},125:{f:Ea},128:{f:Qo},129:{f:No},130:{f:Zi},131:{f:Ki},132:{f:Ki},133:{f:Do},134:{},140:{f:xa},141:{f:Zi},144:{},146:{f:Ca},151:{},152:{},153:{},154:{},155:{},156:{f:Zi},157:{},158:{},160:{f:Oa},161:{f:Ta},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Ko},190:{f:Zo},193:{f:Vi},197:{},198:{},199:{},200:{},201:{},202:{f:Ki},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Zi},220:{},221:{f:Ki},222:{},224:{f:Jo},225:{f:Mo},226:{f:Vi},227:{},229:{f:pa},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Lo},253:{f:qo},255:{f:Po},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Xi},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Ki},353:{f:Vi},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:na},431:{f:Ki},432:{},433:{},434:{},437:{},438:{f:ba},439:{f:Ki},440:{f:ya},441:{},442:{f:to},443:{},444:{f:Zi},445:{},446:{},448:{f:Vi},449:{f:Fo,r:2},450:{f:Vi},512:{f:Vo},513:{f:Ma},515:{f:ea},516:{f:_o},517:{f:$o},519:{f:Na},520:{f:Io},523:{},545:{f:ua},549:{f:zo},566:{},574:{f:Bo},638:{f:Yo},659:{},1048:{},1054:{f:Wo},1084:{},1212:{f:ca},2048:{f:wa},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:So},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Vi},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Aa,r:12},2173:{f:Tl,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Ki,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:la,r:12},2197:{},2198:{f:wl,r:12},2199:{},2200:{},2201:{},2202:{f:ha,r:12},2203:{f:Vi},2204:{},2205:{},2206:{},2207:{},2211:{f:Ro},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Zi},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Sa},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:ka},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Vo},1:{},2:{f:Ia},3:{f:Pa},4:{f:La},5:{f:$o},7:{f:Ra},8:{},9:{f:So},11:{},22:{f:Zi},30:{f:Go},31:{},32:{},33:{f:ua},36:{},37:{f:zo},50:{f:Fa},62:{},52:{},67:{},68:{f:Zi},69:{},86:{},126:{},127:{f:Da},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:za},223:{},234:{},354:{},421:{},518:{f:Bu},521:{f:So},536:{f:oa},547:{f:ra},561:{},579:{},1030:{f:Bu},1033:{f:So},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function of(e,t,n,r){var i=t;if(!isNaN(i)){var o=r||(n||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&Rn(n)&&e.push(n)}}function af(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r=n.dense?[]:{};e=e.replace(//g,"");var i=e.match(/");var o=e.match(/<\/table/i),a=i.index,s=o&&o.index||e.length,l=vt(e.slice(a,s),/(:?]*>)/i,""),c=-1,u=0,h=0,d=0,f={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(a=0;a/i);for(s=0;s"))>-1)y=y.slice(x+1);for(var k=0;k")));d=A.colspan?+A.colspan:1,((h=+A.rowspan)>1||d>1)&&p.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+d-1}});var E=A.t||A["data-t"]||"";if(y.length)if(y=en(y),f.s.r>c&&(f.s.r=c),f.e.ru&&(f.s.c=u),f.e.cn||i[c].s.c>a)&&!(i[c].e.r1&&(f.rowspan=s),l>1&&(f.colspan=l),r.editable?d=''+d+"":h&&(f["data-t"]=h&&h.t||"z",null!=h.v&&(f["data-v"]=h.v),null!=h.z&&(f["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(d=''+d+"")),f.id=(r.id||"sjs")+"-"+u,o.push(ln("td",d,f))}}var p="";return p+o.join("")+""}var lf='SheetJS Table Export',cf="";function uf(e,t){var n=e.match(/[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find
");if(1==n.length)return wr(af(n[0],t),t);var r=xp();return n.forEach((function(e,n){kp(r,af(e,t),"Sheet"+(n+1))})),r}function hf(e,t,n){var r=[];return r.join("")+""}function df(e,t){var n=t||{},r=null!=n.header?n.header:lf,i=null!=n.footer?n.footer:cf,o=[r],a=mr(e["!ref"]);n.dense=Array.isArray(e),o.push(hf(e,a,n));for(var s=a.s.r;s<=a.e.r;++s)o.push(sf(e,a,s,n));return o.push("
"+i),o.join("")}function ff(e,t,n){var r=n||{};null!=w&&(r.dense=w);var i=0,o=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var a="string"==typeof r.origin?fr(r.origin):r.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var u=mr(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==i&&(c.e.r=i=u.e.r+1)}var h=[],d=0,f=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,y=0;for(e["!cols"]||(e["!cols"]=[]);p1||y>1)&&h.push({s:{r:m+i,c:v+o},e:{r:m+i+(b||1)-1,c:v+o+(y||1)-1}});var S={t:"s",v:A},M=C.getAttribute("data-t")||C.getAttribute("t")||"";null!=A&&(0==A.length?S.t=M||"z":r.raw||0==A.trim().length||"s"==M||("TRUE"===A?S={t:"b",v:!0}:"FALSE"===A?S={t:"b",v:!1}:isNaN(pt(A))?isNaN(gt(A).getDate())||(S={t:"d",v:ut(A)},r.cellDates||(S={t:"n",v:tt(S.v)}),S.z=r.dateNF||K[14]):S={t:"n",v:pt(A)})),void 0===S.z&&null!=E&&(S.z=E);var O="",N=C.getElementsByTagName("A");if(N&&N.length)for(var D=0;D=l&&(e["!fullref"]=gr((c.e.r=s.length-p+m-1+i,c))),e}function pf(e,t){var n=t||{},r=n.dense?[]:{};return ff(r,e,t)}function mf(e,t){return wr(pf(e,t),t)}function gf(e){var t="",n=vf(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function vf(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}function bf(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n"),n=Ht(t.replace(/<[^>]*>/g,""));return[n]}var yf={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function wf(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r,i,o,a,s,l,c,u=cn(e),h=[],d={name:""},f="",p=0,m={},g=[],v=n.dense?[]:{},b={value:""},y="",x=0,k=[],C=-1,A=-1,E={s:{r:1e6,c:1e7},e:{r:0,c:0}},T=0,S={},M=[],O={},N=0,D=0,L=[],P=1,I=1,R=[],F={Names:[]},z={},j=["",""],B=[],U={},H="",q=0,_=!1,W=!1,G=0;un.lastIndex=0,u=u.replace(//gm,"").replace(//gm,"");while(s=un.exec(u))switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(E.e.c>=E.s.c&&E.e.r>=E.s.r?v["!ref"]=gr(E):v["!ref"]="A1:A1",n.sheetRows>0&&n.sheetRows<=E.e.r&&(v["!fullref"]=v["!ref"],E.e.r=n.sheetRows-1,v["!ref"]=gr(E)),M.length&&(v["!merges"]=M),L.length&&(v["!rows"]=L),o.name=o["名称"]||o.name,"undefined"!==typeof JSON&&JSON.stringify(o),g.push(o.name),m[o.name]=v,W=!1):"/"!==s[0].charAt(s[0].length-2)&&(o=zt(s[0],!1),C=A=-1,E.s.r=E.s.c=1e7,E.e.r=E.e.c=0,v=n.dense?[]:{},M=[],L=[],W=!0);break;case"table-row-group":"/"===s[1]?--T:++T;break;case"table-row":case"行":if("/"===s[1]){C+=P,P=1;break}if(a=zt(s[0],!1),a["行号"]?C=a["行号"]-1:-1==C&&(C=0),P=+a["number-rows-repeated"]||1,P<10)for(G=0;G0&&(L[C+G]={level:T});A=-1;break;case"covered-table-cell":"/"!==s[1]&&++A,n.sheetStubs&&(n.dense?(v[C]||(v[C]=[]),v[C][A]={t:"z"}):v[pr({r:C,c:A})]={t:"z"}),y="",k=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++A,b=zt(s[0],!1),I=parseInt(b["number-columns-repeated"]||"1",10),l={t:"z",v:null},b.formula&&0!=n.cellFormula&&(l.f=Ku(Ht(b.formula))),"string"==(b["数据类型"]||b["value-type"])&&(l.t="s",l.v=Ht(b["string-value"]||""),n.dense?(v[C]||(v[C]=[]),v[C][A]=l):v[pr({r:C,c:A})]=l),A+=I-1;else if("/"!==s[1]){++A,y="",x=0,k=[],I=1;var V=P?C+P-1:C;if(A>E.e.c&&(E.e.c=A),AE.e.r&&(E.e.r=V),b=zt(s[0],!1),B=[],U={},l={t:b["数据类型"]||b["value-type"],v:null},n.cellFormula)if(b.formula&&(b.formula=Ht(b.formula)),b["number-matrix-columns-spanned"]&&b["number-matrix-rows-spanned"]&&(N=parseInt(b["number-matrix-rows-spanned"],10)||0,D=parseInt(b["number-matrix-columns-spanned"],10)||0,O={s:{r:C,c:A},e:{r:C+N-1,c:A+D-1}},l.F=gr(O),R.push([O,l.F])),b.formula)l.f=Ku(b.formula);else for(G=0;G=R[G][0].s.r&&C<=R[G][0].e.r&&A>=R[G][0].s.c&&A<=R[G][0].e.c&&(l.F=R[G][1]);switch((b["number-columns-spanned"]||b["number-rows-spanned"])&&(N=parseInt(b["number-rows-spanned"],10)||0,D=parseInt(b["number-columns-spanned"],10)||0,O={s:{r:C,c:A},e:{r:C+N-1,c:A+D-1}},M.push(O)),b["number-columns-repeated"]&&(I=parseInt(b["number-columns-repeated"],10)),l.t){case"boolean":l.t="b",l.v=Vt(b["boolean-value"]);break;case"float":l.t="n",l.v=parseFloat(b.value);break;case"percentage":l.t="n",l.v=parseFloat(b.value);break;case"currency":l.t="n",l.v=parseFloat(b.value);break;case"date":l.t="d",l.v=ut(b["date-value"]),n.cellDates||(l.t="n",l.v=tt(l.v)),l.z="m/d/yy";break;case"time":l.t="n",l.v=at(b["time-value"])/86400,n.cellDates&&(l.t="d",l.v=ot(l.v)),l.z="HH:MM:SS";break;case"number":l.t="n",l.v=parseFloat(b["数据数值"]);break;default:if("string"!==l.t&&"text"!==l.t&&l.t)throw new Error("Unsupported value type "+l.t);l.t="s",null!=b["string-value"]&&(y=Ht(b["string-value"]),k=[])}}else{if(_=!1,"s"===l.t&&(l.v=y||"",k.length&&(l.R=k),_=0==x),z.Target&&(l.l=z),B.length>0&&(l.c=B,B=[]),y&&!1!==n.cellText&&(l.w=y),_&&(l.t="z",delete l.v),(!_||n.sheetStubs)&&!(n.sheetRows&&n.sheetRows<=C))for(var Y=0;Y0)v[C+Y][A+I]=dt(l)}else{v[pr({r:C+Y,c:A})]=l;while(--I>0)v[pr({r:C+Y,c:A+I})]=dt(l)}E.e.c<=A&&(E.e.c=A)}I=parseInt(b["number-columns-repeated"]||"1",10),A+=I-1,I=0,l={},y="",k=[]}z={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r;U.t=y,k.length&&(U.R=k),U.a=H,B.push(U)}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);H="",q=0,y="",x=0,k=[];break;case"creator":"/"===s[1]?H=u.slice(q,s.index):q=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);y="",x=0,k=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(S[d.name]=f,(r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&(f="",d=zt(s[0],!1),h.push([s[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(h[h.length-1][0]){case"time-style":case"date-style":i=zt(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":i=zt(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":f+=u.slice(p,s.index);break}else p=s.index+s[0].length;break;case"named-range":i=zt(s[0],!1),j=Zu(i["cell-range-address"]);var K={Name:i.name,Ref:j[0]+"!"+j[1]};W&&(K.Sheet=g.length),F.Names.push(K);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if("/"!==s[1]||b&&b["string-value"])c=zt(s[0],!1),x=s.index+s[0].length;else{var Z=bf(u.slice(x,s.index),c);y=(y.length>0?y+"\n":"")+Z[0]}break;case"s":break;case"database-range":if("/"===s[1])break;try{j=Zu(zt(s[0])["target-range-address"]),m[j[0]]["!autofilter"]={ref:j[1]}}catch(J){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if("/"!==s[1]){if(z=zt(s[0],!1),!z.href)break;z.Target=Ht(z.href),delete z.href,"#"==z.Target.charAt(0)&&z.Target.indexOf(".")>-1?(j=Zu(z.Target.slice(1)),z.Target="#"+j[0]+"!"+j[1]):z.Target.match(/^\.\.[\\\/]/)&&(z.Target=z.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(n.WTF)throw new Error(s)}}var X={Sheets:m,SheetNames:g,Workbook:F};return n.bookSheets&&delete X.Sheets,X}function xf(e,t){t=t||{},xt(e,"META-INF/manifest.xml")&&bi(Ct(e,"META-INF/manifest.xml"),t);var n=At(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=wf(Jt(n),t);return xt(e,"meta.xml")&&(r.Props=xi(Ct(e,"meta.xml"))),r}function kf(e,t){return wf(e,t)} /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */ -function Cf(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Af(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Jt(N(e))}function Ef(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Tf(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),16843009*(e+(e>>4)&252645135)>>>24}function Sf(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}function Mf(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Of(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Nf(e){var t=[],n=[0];while(n[0]=128);a=e.slice(l,n[0]);break;case 5:s=4,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Mf(e,n),a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(r))}var c={data:a,type:o};null==t[i]?t[i]=[c]:t[i].push(c)}return t}function Df(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Lf(e){var t,n=[],r=[0];while(r[0]>>0>0),n.push(a)}return n}function Pf(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var n=[0],r=Mf(t,n),i=[];while(n[0]>2&7),a=(224&t[n[0]++])<<3,a|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==o?(a=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(a=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Ef(i)],0==a)throw new Error("Invalid offset 0");if(a>i[0].length)throw new Error("Invalid offset beyond length");if(s>=a){i.push(i[0].slice(-a)),s-=a;while(s>=i[i.length-1].length)i.push(i[i.length-1]),s-=i[i.length-1].length}i.push(i[0].slice(-a,-a+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var u=Ef(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function If(e){var t=[],n=0;while(n1?12:8)+4*Tf(a&(r>1?3470:398)),l=-1,c=-1,u=NaN,h=new Date(2001,0,1);switch(512&a&&(l=o.getUint32(s,!0),s+=4),s+=4*Tf(a&(r>1?12288:4096)),16&a&&(c=o.getUint32(s,!0),s+=4),32&a&&(u=o.getFloat64(s,!0),s+=8),64&a&&(h.setTime(h.getTime()+1e3*o.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[c]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(l>-1)i={t:"s",v:n[l]};else if(c>-1)i={t:"s",v:t[c]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}function Ff(e,t,n){var r,i=Cf(e),o=i.getUint32(8,!0),a=12,s=-1,l=-1,c=NaN,u=NaN,h=new Date(2001,0,1);switch(1&o&&(c=Sf(e,a),a+=16),2&o&&(u=i.getFloat64(a,!0),a+=8),4&o&&(h.setTime(h.getTime()+1e3*i.getFloat64(a,!0)),a+=8),8&o&&(l=i.getUint32(a,!0),a+=4),16&o&&(s=i.getUint32(a,!0),a+=4),e[1]){case 0:break;case 2:r={t:"n",v:c};break;case 3:r={t:"s",v:t[l]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)));r={t:"s",v:n[s]};break;case 10:r={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)))}return r}function zf(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return Rf(e,t,n,e[0]);case 5:return Ff(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function jf(e){var t=Nf(e);return Mf(t[1][0].data)}function Bf(e,t){var n=Nf(t.data),r=Of(n[1][0].data),i=n[3],o=[];return(i||[]).forEach((function(t){var n=Nf(t.data),i=Of(n[1][0].data)>>>0;switch(r){case 1:o[i]=Af(n[3][0].data);break;case 8:var a=e[jf(n[9][0].data)][0],s=Nf(a.data),l=e[jf(s[1][0].data)][0],c=Of(l.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var u=Nf(l.data);o[i]=u[3].map((function(e){return Af(e.data)})).join("");break}})),o}function Uf(e,t){var n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,b=Nf(e),y=Of(b[1][0].data)>>>0,w=Of(b[2][0].data)>>>0,x=(null==(r=null==(n=b[8])?void 0:n[0])?void 0:r.data)&&Of(b[8][0].data)>0||!1;if((null==(o=null==(i=b[7])?void 0:i[0])?void 0:o.data)&&0!=t)g=null==(s=null==(a=b[7])?void 0:a[0])?void 0:s.data,v=null==(c=null==(l=b[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(h=null==(u=b[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(f=null==(d=b[4])?void 0:d[0])?void 0:f.data,v=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var k=x?4:1,C=Cf(g),A=[],E=0;E=1&&(S[A[A.length-1][0]]=v.subarray(A[A.length-1][1]*k)),{R:y,cells:S}}function Hf(e,t){var n,r=Nf(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?Of(r[7][0].data)>>>0>0?1:0:-1,o=Df(r[5],(function(e){return Uf(e,i)}));return{nrows:Of(r[4][0].data)>>>0,data:o.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function qf(e,t,n){var r,i=Nf(t.data),o={s:{r:0,c:0},e:{r:0,c:0}};if(o.e.r=(Of(i[6][0].data)>>>0)-1,o.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(o.e.c=(Of(i[7][0].data)>>>0)-1,o.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=gr(o);var a=Nf(i[4][0].data),s=Bf(e,e[jf(a[4][0].data)][0]),l=(null==(r=a[17])?void 0:r[0])?Bf(e,e[jf(a[17][0].data)][0]):[],c=Nf(a[3][0].data),u=0;c[1].forEach((function(t){var r=Nf(t.data),i=e[jf(r[2][0].data)][0],o=Of(i.meta[1][0].data);if(6002!=o)throw new Error("6001 unexpected reference to ".concat(o));var a=Hf(e,i);a.data.forEach((function(e,t){e.forEach((function(e,r){var i=pr({r:u+t,c:r}),o=zf(e,s,l);o&&(n[i]=o)}))})),u+=a.nrows}))}function Wf(e,t){var n=Nf(t.data),r={"!ref":"A1"},i=e[jf(n[2][0].data)],o=Of(i[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return qf(e,i[0],r),r}function _f(e,t){var n,r=Nf(t.data),i={name:(null==(n=r[1])?void 0:n[0])?Af(r[1][0].data):"",sheets:[]},o=Df(r[2],jf);return o.forEach((function(t){e[t].forEach((function(t){var n=Of(t.meta[1][0].data);6e3==n&&i.sheets.push(Wf(e,t))}))})),i}function Gf(e,t){var n=xp(),r=Nf(t.data),i=Df(r[1],jf);if(i.forEach((function(t){e[t].forEach((function(t){var r=Of(t.meta[1][0].data);if(2==r){var i=_f(e,t);i.sheets.forEach((function(e,t){kp(n,e,0==t?i.name:i.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function Vf(e){var t,n,r,i,o={},a=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=If(e.content)}catch(r){return console.log("?? "+e.content.length+" "+(r.message||r))}try{n=Lf(t)}catch(r){return console.log("## "+(r.message||r))}n.forEach((function(e){o[e.id]=e.messages,a.push(e.id)}))}})),!a.length)throw new Error("File has no messages");var s=(null==(i=null==(r=null==(n=null==(t=null==o?void 0:o[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==Of(o[1][0].meta[1][0].data)&&o[1][0];if(s||a.forEach((function(e){o[e].forEach((function(e){var t=Of(e.meta[1][0].data)>>>0;if(1==t){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return Gf(o,s)}function Yf(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function Kf(e){Yf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Zf(e){return pi.WS.indexOf(e)>-1?"sheet":pi.CS&&e==pi.CS?"chart":pi.DS&&e==pi.DS?"dialog":pi.MS&&e==pi.MS?"macro":e&&e.length?e:"sheet"}function Xf(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,Zf(e["!id"][t.id].Type)]}))}catch(n){return null}return e&&0!==e.length?e:null}function Jf(e,t,n,r,i,o,a,s,l,c,u,h){try{o[r]=gi(At(e,n,!0),t);var d,f=Ct(e,t);switch(s){case"sheet":d=Cd(f,t,i,l,o[r],c,u,h);break;case"chart":if(d=Ad(f,t,i,l,o[r],c,u,h),!d||!d["!drawel"])break;var p=Ot(d["!drawel"].Target,t),m=mi(p),g=jl(At(e,p,!0),gi(At(e,m,!0),p)),v=Ot(g,p),b=mi(v);d=nd(At(e,v,!0),v,l,gi(At(e,b,!0),v),c,d);break;case"macro":d=Ed(f,t,i,l,o[r],c,u,h);break;case"dialog":d=Td(f,t,i,l,o[r],c,u,h);break;default:throw new Error("Unrecognized sheet type "+s)}a[r]=d;var y=[];o&&o[r]&&Qe(o[r]).forEach((function(n){var i="";if(o[r][n].Type==pi.CMNT){i=Ot(o[r][n].Target,t);var a=Nd(Ct(e,i,!0),i,l);if(!a||!a.length)return;Bl(d,a,!1)}o[r][n].Type==pi.TCMNT&&(i=Ot(o[r][n].Target,t),y=y.concat(Hl(Ct(e,i,!0),l)))})),y&&y.length&&Bl(d,y,!0,l.people||[])}catch(w){if(l.WTF)throw w}}function Qf(e){return"/"==e.charAt(0)?e.slice(1):e}function $f(e,t){if(We(),t=t||{},Kf(t),xt(e,"META-INF/manifest.xml"))return xf(e,t);if(xt(e,"objectdata.xml"))return xf(e,t);if(xt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if("undefined"!=typeof Vf){if(e.FileIndex)return Vf(e);var n=Ze.utils.cfb_new();return Tt(e).forEach((function(t){St(n,t,Et(e,t))})),Vf(n)}throw new Error("Unsupported NUMBERS file")}if(!xt(e,"[Content_Types].xml")){if(xt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(xt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,o=Tt(e),a=fi(At(e,"[Content_Types].xml")),s=!1;if(0===a.workbooks.length&&(i="xl/workbook.xml",Ct(e,i,!0)&&a.workbooks.push(i)),0===a.workbooks.length){if(i="xl/workbook.bin",!Ct(e,i,!0))throw new Error("Could not find workbook");a.workbooks.push(i),s=!0}"bin"==a.workbooks[0].slice(-3)&&(s=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Xu=[],a.sst)try{Xu=Od(Ct(e,Qf(a.sst)),a.sst,t)}catch(N){if(t.WTF)throw N}t.cellStyles&&a.themes.length&&(l=Md(At(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=Sd(Ct(e,Qf(a.style)),a.style,l,t))}a.links.map((function(n){try{var r=gi(At(e,mi(Qf(n))),n);return Ld(Ct(e,Qf(n)),r,n,t)}catch(N){}}));var u=kd(Ct(e,Qf(a.workbooks[0])),a.workbooks[0],t),h={},d="";a.coreprops.length&&(d=Ct(e,Qf(a.coreprops[0]),!0),d&&(h=xi(d)),0!==a.extprops.length&&(d=Ct(e,Qf(a.extprops[0]),!0),d&&Ai(d,h,t)));var f={};t.bookSheets&&!t.bookProps||0!==a.custprops.length&&(d=At(e,Qf(a.custprops[0]),!0),d&&(f=Ti(d,t)));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?r=u.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=f),t.bookSheets&&"undefined"!==typeof r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var m={};t.bookDeps&&a.calcchain&&(m=Dd(Ct(e,Qf(a.calcchain)),a.calcchain,t));var g,v,b=0,y={},w=u.Sheets;h.Worksheets=w.length,h.SheetNames=[];for(var x=0;x!=w.length;++x)h.SheetNames[x]=w[x].name;var k=s?"bin":"xml",C=a.workbooks[0].lastIndexOf("/"),A=(a.workbooks[0].slice(0,C+1)+"_rels/"+a.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");xt(e,A)||(A="xl/_rels/workbook."+k+".rels");var E=gi(At(e,A,!0),A.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=Pd(Ct(e,Qf(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=ql(Ct(e,Qf(a.people[0])),t)),E&&(E=Xf(E,u.Sheets));var T=Ct(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=h.Worksheets;++b){var S="sheet";if(E&&E[b]?(g="xl/"+E[b][1].replace(/[\/]?xl\//,""),xt(e,g)||(g=E[b][1]),xt(e,g)||(g=A.replace(/_rels\/.*$/,"")+E[b][1]),S=E[b][2]):(g="xl/worksheets/sheet"+(b+1-T)+"."+k,g=g.replace(/sheet0\./,"sheet.")),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var M=!1,O=0;O!=t.sheets.length;++O)"number"==typeof t.sheets[O]&&t.sheets[O]==b&&(M=1),"string"==typeof t.sheets[O]&&t.sheets[O].toLowerCase()==h.SheetNames[b].toLowerCase()&&(M=1);if(!M)continue e}}Jf(e,g,v,h.SheetNames[b],b,y,r,S,t,u,l,c)}return p={Directory:a,Workbook:u,Props:h,Custprops:f,Deps:m,Sheets:r,SheetNames:h.SheetNames,Strings:Xu,Styles:c,Themes:l,SSF:dt(K)},t&&t.bookFiles&&(e.files?(p.keys=o,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(a.vba.length>0?p.vbaraw=Ct(e,Qf(a.vba[0]),!0):a.defaults&&a.defaults.bin===Vl&&(p.vbaraw=Ct(e,"xl/vbaProject.bin",!0))),p}function ep(e,t){var n=t||{},r="Workbook",i=Ze.find(e,r);try{if(r="/!DataSpaces/Version",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(ss(i.content),r="/!DataSpaces/DataSpaceMap",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=cs(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=us(i.content);if(1!=a.length||"StrongEncryptionTransform"!=a[0])throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);ds(i.content)}catch(l){}if(r="/EncryptionInfo",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=ms(i.content);if(r="/EncryptedPackage",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(4==s[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(s[1],i.content,n.password||"",n);if(2==s[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(s[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function tp(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=A(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function np(e,t){return Ze.find(e,"EncryptedPackage")?ep(e,t):tf(e,t)}function rp(t,n){var r,i=t,o=n||{};return o.type||(o.type=E&&e.isBuffer(t)?"buffer":"base64"),r=Mt(i,o),$f(r,o)}function ip(e,t){var n=0;e:while(n=2&&0===o[3])return Ga.to_workbook(i,r);if(0===o[2]&&(8===o[3]||9===o[3]))return Ga.to_workbook(i,r)}break;case 3:case 131:case 139:case 140:return Ba.to_workbook(i,r);case 123:if(92===o[1]&&114===o[2]&&116===o[3])return Ms.to_workbook(i,r);break;case 10:case 13:case 32:return op(i,r);case 137:if(80===o[1]&&78===o[2]&&71===o[3])throw new Error("PNG Image File is not a spreadsheet");break}return ja.indexOf(o[0])>-1&&o[2]<=12&&o[3]<=31?Ba.to_workbook(i,r):lp(t,i,r,a)}function up(e,t,n,r,i,o,a,s){var l=or(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(g){d.__rowNum__=n}else d.__rowNum__=n;if(!a||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=a?e[n][f]:e[r[f]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=o[f]){if(null==m)if("e"==p.t&&null===m)d[o[f]]=null;else if(void 0!==c)d[o[f]]=c;else{if(!u||null!==m)continue;d[o[f]]=null}else d[o[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:yr(p,m,s);null!=m&&(h=!1)}}else{if(void 0===c)continue;null!=o[f]&&(d[o[f]]=c)}}return{row:d,isempty:h}}function hp(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=vr(u);break;case"number":l=vr(e["!ref"]),l.s.r=u;break;default:l=u}r>0&&(i=0);var h=or(l.s.r),d=[],f=[],p=0,m=0,g=Array.isArray(e),v=l.s.r,b=0,y={};g&&!e[v]&&(e[v]=[]);var w=c.skipHidden&&e["!cols"]||[],x=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(w[b]||{}).hidden)switch(d[b]=cr(b),n=g?e[v][b]:e[d[b]+h],r){case 1:o[b]=b-l.s.c;break;case 2:o[b]=d[b];break;case 3:o[b]=c.header[b-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=yr(n,null,c),m=y[a]||0,m){do{s=a+"_"+m++}while(y[s]);y[a]=m,y[s]=1}else y[a]=1;o[b]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(x[v]||{}).hidden){var k=up(e,l,v,d,r,o,g,c);(!1===k.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(f[p++]=k.row)}return f.length=p,f}var dp=/"/g;function fp(e,t,n,r,i,o,a,s){for(var l=!0,c=[],u="",h=or(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var f=s.dense?(e[n]||[])[d]:e[r[d]+h];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(s.rawNumbers&&"n"==f.t?f.v:yr(f,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===o||34===m||s.forceQuotes){u='"'+u.replace(dp,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,u="="+f.f,u.indexOf(",")>=0&&(u='"'+u.replace(dp,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(a)}function pp(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=vr(e["!ref"]),o=void 0!==r.FS?r.FS:",",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),u="",h=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],f=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(d[p]||{}).hidden||(h[p]=cr(p));for(var m=0,g=i.s.r;g<=i.e.r;++g)(f[g]||{}).hidden||(u=fp(e,i,g,h,a,l,o,r),null!=u&&(r.strip&&(u=u.replace(c,"")),(u||!1!==r.blankrows)&&n.push((m++?s:"")+u)));return delete r.dense,n.join("")}function mp(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=pp(e,t);if("undefined"==typeof g||"string"==t.type)return n;var r=g.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function gp(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,o=vr(e["!ref"]),a="",s=[],l=[],c=Array.isArray(e);for(i=o.s.c;i<=o.e.c;++i)s[i]=cr(i);for(var u=o.s.r;u<=o.e.r;++u)for(a=or(u),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,t=c?(e[u]||[])[i]:e[n],r="",void 0!==t){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l}function vp(e,t,n){var r,i=n||{},o=+!i.skipHeader,a=e||{},s=0,l=0;if(a&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?fr(i.origin):i.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a["!ref"]){var h=vr(a["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),-1==s&&(s=h.e.r+1,u.e.r=s+t.length-1+o)}else-1==s&&(s=0,u.e.r=t.length-1+o);var d=i.header||[],f=0;t.forEach((function(e,t){Qe(e).forEach((function(n){-1==(f=d.indexOf(n))&&(d[f=d.length]=n);var c=e[n],u="z",h="",p=pr({c:l+f,r:s+t+o});r=yp(a,p),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",i.cellDates||(u="n",c=tt(c)),h=i.dateNF||K[14]):null===c&&i.nullError&&(u="e",c=0),r?(r.t=u,r.v=c,delete r.w,delete r.R,h&&(r.z=h)):a[p]=r={t:u,v:c},h&&(r.z=h)):a[p]=c}))})),u.e.c=Math.max(u.e.c,l+d.length-1);var p=or(s);if(o)for(f=0;f=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function xp(){return{SheetNames:[],Sheets:{}}}function kp(e,t,n,r){var i=1;if(!n)for(;i<=65535;++i,n=void 0)if(-1==e.SheetNames.indexOf(n="Sheet"+i))break;if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||n;for(++i;i<=65535;++i)if(-1==e.SheetNames.indexOf(n=a+i))break}if(pd(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Cp(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=wp(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function Ap(e,t){return e.z=t,e}function Ep(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function Tp(e,t,n){return Ep(e,"#"+t,n)}function Sp(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})}function Mp(e,t,n,r){for(var i="string"!=typeof t?t:vr(t),o="string"==typeof t?t:gr(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=yp(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e}var Op={encode_col:cr,encode_row:or,encode_cell:pr,encode_range:gr,decode_col:lr,decode_row:ir,split_cell:dr,decode_cell:fr,decode_range:mr,format_cell:yr,sheet_add_aoa:xr,sheet_add_json:vp,sheet_add_dom:ff,aoa_to_sheet:kr,json_to_sheet:bp,table_to_sheet:pf,table_to_book:mf,sheet_to_csv:pp,sheet_to_txt:mp,sheet_to_json:hp,sheet_to_html:df,sheet_to_formulae:gp,sheet_to_row_object_array:hp,sheet_get_cell:yp,book_new:xp,book_append_sheet:kp,book_set_sheet_visibility:Cp,cell_set_number_format:Ap,cell_set_hyperlink:Ep,cell_set_internal_link:Tp,cell_add_comment:Sp,sheet_set_array_formula:Mp,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};i.version}).call(this,n("b639").Buffer,n("4362"))},"25cac":function(e,t,n){e.exports=n.p+"img/a-8-DNA.svg"},2613:function(e,t,n){e.exports=n.p+"img/ziyuan_5.svg"},"265a":function(e,t,n){e.exports=n.p+"img/bijiben.svg"},"26eb":function(e,t,n){e.exports=n.p+"img/-_17.svg"},2710:function(e,t,n){e.exports=n.p+"img/fanqiejiang.svg"},2771:function(e,t,n){},2783:function(e,t,n){e.exports=n.p+"img/ziyuan_13.svg"},"27bf":function(e,t,n){"use strict";e.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}e.exports=r},"2e03":function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return f}));var r=n("1651"),i=n("04f0"),o=n("efdf"),a=n("5e9b");const s=new Map;class l{constructor(e){this.room=e,this.onmessage=null,this._onChange=t=>t.key===e&&null!==this.onmessage&&this.onmessage({data:o["d"](t.newValue||"")}),a["b"](this._onChange)}postMessage(e){a["c"].setItem(this.room,o["e"](o["b"](e)))}close(){a["a"](this._onChange)}}const c="undefined"===typeof BroadcastChannel?l:BroadcastChannel,u=e=>r["e"](s,e,()=>{const t=i["a"](),n=new c(e);return n.onmessage=e=>t.forEach(t=>t(e.data,"broadcastchannel")),{bc:n,subs:t}}),h=(e,t)=>(u(e).subs.add(t),t),d=(e,t)=>{const n=u(e),r=n.subs.delete(t);return r&&0===n.subs.size&&(n.bc.close(),s.delete(e)),r},f=(e,t,n=null)=>{const r=u(e);r.bc.postMessage(t),r.subs.forEach(e=>e(t,n))}},"2f97":function(e,t,n){e.exports=n.p+"img/brainImpairedPink.jpg"},"300d":function(e,t,n){},"318a":function(e,t,n){e.exports=n.p+"img/jisuan.svg"},"31fc":function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"n",(function(){return i})),n.d(t,"p",(function(){return o})),n.d(t,"o",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"l",(function(){return k})),n.d(t,"h",(function(){return C}));var r=function(e){return e.charCodeAt(0)},i=function(e){return e.codePointAt(0)},o=function(e,t){return c(e.toString(16),t,"0").toUpperCase()},a=function(e){return o(e,2)},s=function(e){return String.fromCharCode(e)},l=function(e){return s(parseInt(e,16))},c=function(e,t,n){for(var r="",i=0,o=t-e.length;i=55296&&r<=56319&&e.length>i&&(n=e.charCodeAt(i),n>=56320&&n<=57343&&(o=2)),[e.slice(t,t+o),o]},b=function(e){for(var t=[],n=0,r=e.length;nn&&c(),a+=f,s+=m}}return c(),l},x=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,k=function(e){var t=e.match(x);if(t){var n=t[1],r=t[2],i=void 0===r?"01":r,o=t[3],a=void 0===o?"01":o,s=t[4],l=void 0===s?"00":s,c=t[5],u=void 0===c?"00":c,h=t[6],d=void 0===h?"00":h,f=t[7],p=void 0===f?"Z":f,m=t[8],g=void 0===m?"00":m,v=t[9],b=void 0===v?"00":v,y="Z"===p?"Z":""+p+g+":"+b,w=new Date(n+"-"+i+"-"+a+"T"+l+":"+u+":"+d+y);return w}},C=function(e,t){var n,r,i=0;while(i=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,e.exports=l?a:s},"3aa9":function(e,t,n){"use strict";n("7de5")},"3acd":function(e,t,n){e.exports=n.p+"img/fanwendengji.svg"},"3b50":function(e,t,n){e.exports=n.p+"img/jiandan.svg"},"3bbe":function(e,t,n){var r=n("1626"),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},"3bd3":function(e,t,n){e.exports=n.p+"img/jiaoxuelou.svg"},"3c2a":function(e,t,n){e.exports=n.p+"img/fishbone.png"},"3cc4":function(e,t,n){e.exports=n.p+"img/courseGreen.jpg"},"3d18":function(e,t,n){e.exports=n.p+"img/jiangbei.svg"},"3e01":function(e,t,n){"use strict";var r=n("06c3");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},"3ec8":function(e,t,n){e.exports=n.p+"img/a-19guaizhang.svg"},"3f26":function(e,t,n){},"3f29":function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(N){l=null}var c=function(){throw new a},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,h=n("ddbb")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":h?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&h?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&h?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?d(""[Symbol.iterator]()):r,"%Symbol%":h?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};try{null.error}catch(N){var g=d(d(N));m["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n("06c3"),w=n("3e01"),x=y.call(Function.call,Array.prototype.concat),k=y.call(Function.apply,Array.prototype.splice),C=y.call(Function.call,String.prototype.replace),A=y.call(Function.call,String.prototype.slice),E=y.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,M=function(e){var t=A(e,0,1),n=A(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,T,(function(e,t,n,i){r[r.length]=n?C(i,S,"$1"):t||e})),r},O=function(e,t){var n,r=e;if(w(b,r)&&(n=b[r],r="%"+n[0]+"%"),w(m,r)){var o=m[r];if(o===f&&(o=v(r)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=M(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),s=o.name,c=o.value,u=!1,h=o.alias;h&&(r=h[0],k(n,x([0,1],h)));for(var d=1,f=!0;d=n.length){var b=l(c,p);f=!!b,c=f&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else f=w(c,p),c=c[p];f&&!u&&(m[s]=c)}}return c}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"401c":function(e){e.exports=JSON.parse('"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHhiQ7jjriPdpoziFpdGGWcNRrYBIt1WcbvotCCYHK0uxDhkzvwVyHVOksWd0H6bQmxQapdBJCo1T6G0KvUuh9yk0SaG/UuhDCp2m0FkKTVNolkLnKfQxhS5SaJ5Clym0SKGrFLpOoU8p9DmFblJoGU+iW/I8bSyjDNTp8zzIKVIpqawMDIuGlrRdPDiYEun4jVeG4ZwlU2MM/zIVxHABU1AMy6WQSqG/U4ihV6aEGW8xVcvQ3oZxZQox3MDQC+P7kEJ3KXSfQgyTbhnS5/MLJMKSO0y78bls9EqX8KgvzT3jZ/50bo9L3fYraQq1XR3Ls1vu7FhpYxV7HoBVZLDxGJeMA7uycarrOmHXwnuzCipKagMooBV3C/9GDFy/YqpjxSR+bORYmilFVXFH2hPOtmJPDUcbO7LE1H7shURlxYYjtdj6E2PFv+5dCpfxcF4KXPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO"')},"406c":function(e,t,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=r},"41ab":function(e,t,n){},"41af":function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},"41c5":function(e,t,n){e.exports=n.p+"img/-_12.svg"},4244:function(e,t,n){e.exports=n.p+"img/a-20-shuye.svg"},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43cf":function(e,t,n){e.exports=n.p+"img/xiezizhuo.svg"},"442c":function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return N})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return O}));var r=n("b923"),i=n("6f27"),o=n("6ffb");const a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const l=(e,t,n)=>{let a=s(e,n);if(!a)return!1;let l=h(a);if(!l){let n=a.blockRange(),i=n&&Object(r["k"])(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=l.nodeBefore;if(!u.type.spec.isolating&&E(e,l,t))return!0;if(0==a.parent.content.size&&(c(u,"end")||o["NodeSelection"].isSelectable(u))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=h(r)}let s=a&&a.nodeBefore;return!(!s||!o["NodeSelection"].isSelectable(s))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function d(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let a=d(e,n);if(!a)return!1;let s=m(a);if(!s)return!1;let l=s.nodeAfter;if(E(e,s,t))return!0;if(0==a.parent.content.size&&(c(l,"start")||o["NodeSelection"].isSelectable(l))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=v(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,s.createAndFill());i.setSelection(o["Selection"].near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},y=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o["AllSelection"]||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=v(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Object(r["g"])(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&Object(r["k"])(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)};function x(e){return(t,n)=>{let{$from:i,$to:a}=t.selection;if(t.selection instanceof o["NodeSelection"]&&t.selection.node.isBlock)return!(!i.parentOffset||!Object(r["g"])(t.doc,i.pos))&&(n&&n(t.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(n){let s=a.parentOffset==a.parent.content.size,l=t.tr;(t.selection instanceof o["TextSelection"]||t.selection instanceof o["AllSelection"])&&l.deleteSelection();let c=0==i.depth?null:v(i.node(-1).contentMatchAt(i.indexAfter(-1))),u=e&&e(a.parent,s),h=u?[u]:s&&c?[{type:c}]:void 0,d=Object(r["g"])(l.doc,l.mapping.map(i.pos),1,h);if(h||d||!Object(r["g"])(l.doc,l.mapping.map(i.pos),1,c?[{type:c}]:void 0)||(c&&(h=[{type:c}]),d=!0),d&&(l.split(l.mapping.map(i.pos),1,h),!s&&!i.parentOffset&&i.parent.type!=c)){let e=l.mapping.map(i.before()),t=l.doc.resolve(e);c&&i.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&l.setNodeMarkup(l.mapping.map(i.before()),c)}n(l.scrollIntoView())}return!0}}const k=x(),C=(e,t)=>(t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0);function A(e,t,n){let i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function E(e,t,n){let a,s,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(A(e,t,n))return!0;let h=t.parent.canReplace(t.index(),t.index()+1);if(h&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){let o=t.pos+u.nodeSize,s=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)s=i["Fragment"].from(a[e].create(null,s));s=i["Fragment"].from(l.copy(s));let c=e.tr.step(new r["b"](t.pos-1,o,t.pos,o,new i["Slice"](s,1,0),a.length,!0)),h=o+2*a.length;Object(r["f"])(c.doc,h)&&c.join(h),n(c.scrollIntoView())}return!0}let d=o["Selection"].findFrom(t,1),f=d&&d.$from.blockRange(d.$to),p=f&&Object(r["k"])(f);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(f,p).scrollIntoView()),!0;if(h&&c(u,"start",!0)&&c(l,"end")){let o=l,a=[];for(;;){if(a.push(o),o.isTextblock)break;o=o.lastChild}let s=u,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,s.content)){if(n){let o=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)o=i["Fragment"].from(a[e].copy(o));let s=e.tr.step(new r["b"](t.pos-a.length,t.pos+u.nodeSize,t.pos+c,t.pos+u.nodeSize-c,new i["Slice"](o,a.length,0),0,!0));n(s.scrollIntoView())}return!0}}return!1}function T(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;while(i.node(a).isInline){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["TextSelection"].create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}const S=T(-1),M=T(1);function O(e,t=null){return function(n,i){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Object(r["i"])(s,e,t);return!!l&&(i&&i(n.tr.wrap(s,l).scrollIntoView()),!0)}}function N(e,t=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}function L(e,t=null){return function(n,r){let{empty:i,$cursor:o,ranges:a}=n.selection;if(i&&!o||!D(n.doc,a,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let i=!1,o=n.tr;for(let t=0;!i&&tt.clients.forEach((t,r)=>{const i=e.doc.store.clients.get(r);for(let o=0;o{let n=0,r=e.length-1;while(n<=r){const i=o["d"]((n+r)/2),a=e[i],s=a.clock;if(s<=t){if(t{const n=e.clients.get(t.client);return void 0!==n&&null!==C(n,t.clock)},E=e=>{e.clients.forEach(e=>{let t,n;for(e.sort((e,t)=>e.clock-t.clock),t=1,n=1;t=i.clock?r.len=o["g"](r.len,i.clock+i.len-r.clock):(n{const t=new x;for(let n=0;n{if(!t.clients.has(o)){const a=r.slice();for(let t=n+1;t{a["e"](e.clients,t,()=>[]).push(new w(n,r))},M=()=>new x,O=e=>{const t=M();return e.clients.forEach((e,n)=>{const r=[];for(let t=0;t0&&t.clients.set(n,r)}),t},N=(e,t)=>{s["n"](e.restEncoder,t.clients.size),i["c"](t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),s["n"](e.restEncoder,t);const r=n.length;s["n"](e.restEncoder,r);for(let i=0;i{const t=new x,n=l["k"](e.restDecoder);for(let r=0;r0){const i=a["e"](t.clients,n,()=>[]);for(let t=0;t{const r=new x,i=l["k"](e.restDecoder);for(let o=0;o0){const e=new q;return s["n"](e.restEncoder,0),N(e,r),e.toUint8Array()}return null},P=c["b"];class I extends r["a"]{constructor({guid:e=c["c"](),collectionid:t=null,gc:n=!0,gcFilter:r=(()=>!0),meta:i=null,autoLoad:o=!1,shouldLoad:a=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=P(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new ye,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=a,this.autoLoad=o,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=u["a"](e=>{this.on("load",()=>{this.isLoaded=!0,e(this)})});const s=()=>u["a"](e=>{const t=n=>{void 0!==n&&!0!==n||(this.off("sync",t),e())};this.on("sync",t)});this.on("sync",e=>{!1===e&&this.isSynced&&(this.whenSynced=s()),this.isSynced=void 0===e||!0===e,this.isLoaded||this.emit("load",[])}),this.whenSynced=s()}load(){const e=this._item;null===e||this.shouldLoad||je(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(i["c"](this.subdocs).map(e=>e.guid))}transact(e,t=null){return je(this,e,t)}get(e,t=ct){const n=a["e"](this.share,e,()=>{const e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==ct&&r!==t){if(r===ct){const r=new t;r._map=n._map,n._map.forEach(e=>{for(;null!==e;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;null!==e;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}throw new Error(`Type with the name ${e} has already been defined with a different constructor`)}return n}getArray(e=""){return this.get(e,Mt)}getText(e=""){return this.get(e,Zt)}getMap(e=""){return this.get(e,Dt)}getXmlFragment(e=""){return this.get(e,Qt)}toJSON(){const e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){i["c"](this.subdocs).forEach(e=>e.destroy());const e=this._item;if(null!==e){this._item=null;const t=e.content;t.doc=new I({guid:this.guid,...t.opts,shouldLoad:!1}),t.doc._item=e,je(e.parent.doc,n=>{const r=t.doc;e.deleted||n.subdocsAdded.add(r),n.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(e,t){super.on(e,t)}off(e,t){super.off(e,t)}}class R{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return l["k"](this.restDecoder)}readDsLen(){return l["k"](this.restDecoder)}}class F extends R{readLeftID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readRightID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readClient(){return l["k"](this.restDecoder)}readInfo(){return l["h"](this.restDecoder)}readString(){return l["j"](this.restDecoder)}readParentInfo(){return 1===l["k"](this.restDecoder)}readTypeRef(){return l["k"](this.restDecoder)}readLen(){return l["k"](this.restDecoder)}readAny(){return l["g"](this.restDecoder)}readBuf(){return h["a"](l["l"](this.restDecoder))}readJSON(){return JSON.parse(l["j"](this.restDecoder))}readKey(){return l["j"](this.restDecoder)}}class z{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=l["k"](this.restDecoder),this.dsCurrVal}readDsLen(){const e=l["k"](this.restDecoder)+1;return this.dsCurrVal+=e,e}}class j extends z{constructor(e){super(e),this.keys=[],l["k"](e),this.keyClockDecoder=new l["a"](l["l"](e)),this.clientDecoder=new l["d"](l["l"](e)),this.leftClockDecoder=new l["a"](l["l"](e)),this.rightClockDecoder=new l["a"](l["l"](e)),this.infoDecoder=new l["b"](l["l"](e),l["h"]),this.stringDecoder=new l["c"](l["l"](e)),this.parentInfoDecoder=new l["b"](l["l"](e),l["h"]),this.typeRefDecoder=new l["d"](l["l"](e)),this.lenDecoder=new l["d"](l["l"](e))}readLeftID(){return new he(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new he(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return l["g"](this.restDecoder)}readBuf(){return l["l"](this.restDecoder)}readJSON(){return l["g"](this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e{r=o["g"](r,t[0].id.clock);const i=Ce(t,r);s["n"](e.restEncoder,t.length-i),e.writeClient(n),s["n"](e.restEncoder,r);const a=t[i];a.write(e,r-a.id.clock);for(let o=i+1;o{const r=new Map;n.forEach((e,n)=>{xe(t,n)>e&&r.set(n,e)}),we(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),s["n"](e.restEncoder,r.size),i["c"](r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{W(e,t.clients.get(n),n,r)})},G=(e,t)=>{const n=a["c"](),r=l["k"](e.restDecoder);for(let i=0;i{const r=[];let o=i["c"](n.keys()).sort((e,t)=>e-t);if(0===o.length)return null;const l=()=>{if(0===o.length)return null;let e=n.get(o[o.length-1]);while(e.refs.length===e.i){if(o.pop(),!(o.length>0))return null;e=n.get(o[o.length-1])}return e};let c=l();if(null===c&&0===r.length)return null;const u=new ye,h=new Map,d=(e,t)=>{const n=h.get(e);(null==n||n>t)&&h.set(e,t)};let f=c.refs[c.i++];const p=new Map,m=()=>{for(const e of r){const t=e.id.client,r=n.get(t);r?(r.i--,u.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):u.clients.set(t,[e]),o=o.filter(e=>e!==t)}r.length=0};while(1){if(f.constructor!==Wn){const i=a["e"](p,f.id.client,()=>xe(t,f.id.client)),o=i-f.id.clock;if(o<0)r.push(f),d(f.id.client,f.id.clock-1),m();else{const i=f.getMissing(e,t);if(null!==i){r.push(f);const e=n.get(i)||{refs:[],i:0};if(e.refs.length!==e.i){f=e.refs[e.i++];continue}d(i,xe(t,i)),m()}else(0===o||o0)f=r.pop();else if(null!==c&&c.i0){const e=new q;return _(e,u,new Map),s["n"](e.restEncoder,0),{missing:h,update:e.toUint8Array()}}return null},Y=(e,t)=>_(e,t.doc.store,t.beforeState),K=(e,t,n,r=new j(e))=>je(t,e=>{e.local=!1;let t=!1;const n=e.doc,i=n.store,o=G(r,n),a=V(e,i,o),s=i.pendingStructs;if(s){for(const[e,n]of s.missing)if(nt)&&s.missing.set(e,t)}s.update=_e([s.update,a.update])}}else i.pendingStructs=a;const c=L(r,e,i);if(i.pendingDs){const t=new j(l["e"](i.pendingDs));l["k"](t.restDecoder);const n=L(t,e,i);i.pendingDs=c&&n?_e([c,n]):c||n}else i.pendingDs=c;if(t){const t=i.pendingStructs.update;i.pendingStructs=null,Z(e.doc,t)}},n,!1),Z=(e,t,n,r=j)=>{const i=l["e"](t);K(i,e,n,new r(i))},X=(e,t,n)=>Z(e,t,n,F),J=(e,t,n=new Map)=>{_(e,t.store,n),N(e,O(t.store))},Q=(e,t=new Uint8Array([0]),n=new q)=>{const r=te(t);J(n,e,r);const i=[n.toUint8Array()];if(e.store.pendingDs&&i.push(e.store.pendingDs),e.store.pendingStructs&&i.push(Ge(e.store.pendingStructs.update,t)),i.length>1){if(n.constructor===U)return qe(i.map((e,t)=>0===t?e:Xe(e)));if(n.constructor===q)return _e(i)}return i[0]},$=(e,t)=>Q(e,t,new U),ee=e=>{const t=new Map,n=l["k"](e.restDecoder);for(let r=0;ree(new R(l["e"](e))),ne=(e,t)=>(s["n"](e.restEncoder,t.size),i["c"](t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{s["n"](e.restEncoder,t),s["n"](e.restEncoder,n)}),e),re=(e,t)=>ne(e,we(t.store)),ie=(e,t=new H)=>(e instanceof Map?ne(t,e):re(t,e),t.toUint8Array()),oe=e=>ie(e,new B);class ae{constructor(){this.l=[]}}const se=()=>new ae,le=(e,t)=>e.l.push(t),ce=(e,t)=>{const n=e.l,r=n.length;e.l=n.filter(e=>t!==e),r===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},ue=(e,t,n)=>p["a"](e.l,[t,n]);class he{constructor(e,t){this.client=e,this.clock=t}}const de=(e,t)=>e===t||null!==e&&null!==t&&e.client===t.client&&e.clock===t.clock,fe=(e,t)=>new he(e,t),pe=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw d["c"]()};class me{constructor(e,t){this.ds=e,this.sv=t}}const ge=(e,t)=>new me(e,t),ve=(ge(M(),new Map),(e,t)=>void 0===t?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!A(t.ds,e.id)),be=(e,t)=>{const n=a["e"](e.meta,be,m["a"]),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t{}),n.add(t))};class ye{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const we=e=>{const t=new Map;return e.clients.forEach((e,n)=>{const r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},xe=(e,t)=>{const n=e.clients.get(t);if(void 0===n)return 0;const r=n[n.length-1];return r.id.clock+r.length},ke=(e,t)=>{let n=e.clients.get(t.id.client);if(void 0===n)n=[],e.clients.set(t.id.client,n);else{const e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw d["c"]()}n.push(t)},Ce=(e,t)=>{let n=0,r=e.length-1,i=e[r],a=i.id.clock;if(a===t)return r;let s=o["d"](t/(a+i.length-1)*r);while(n<=r){if(i=e[s],a=i.id.clock,a<=t){if(t{const n=e.clients.get(t.client);return n[Ce(n,t.clock)]},Ee=Ae,Te=(e,t,n)=>{const r=Ce(t,n),i=t[r];return i.id.clock{const n=e.doc.store.clients.get(t.client);return n[Te(e,n,t.clock)]},Me=(e,t,n)=>{const r=t.clients.get(n.client),i=Ce(r,n.clock),o=r[i];return n.clock!==o.id.clock+o.length-1&&o.constructor!==un&&r.splice(i+1,0,jn(e,o,n.clock-o.id.clock+1)),o},Oe=(e,t,n)=>{const r=e.clients.get(t.id.client);r[Ce(r,t.id.clock)]=n},Ne=(e,t,n,r,i)=>{if(0===r)return;const o=n+r;let a,s=Te(e,t,n);do{a=t[s++],o!(0===t.deleteSet.clients.size&&!a["a"](t.afterState,(e,n)=>t.beforeState.get(n)!==e))&&(E(t.deleteSet),Y(e,t),N(e,t.deleteSet),!0),Pe=(e,t,n)=>{const r=t._item;(null===r||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&a["e"](e.changed,t,m["a"]).add(n)},Ie=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted!==n.deleted||r.constructor!==n.constructor||!r.mergeWith(n))break;n instanceof Bn&&null!==n.parentSub&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r)}const o=t-i;return o&&e.splice(t+1-o,o),o},Re=(e,t,n)=>{for(const[r,i]of e.clients.entries()){const e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){const o=i[r],a=o.clock+o.len;for(let r=Ce(e,o.clock),i=e[r];r{e.clients.forEach((e,n)=>{const r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){const n=e[t],i=o["h"](r.length-1,1+Ce(r,n.clock+n.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+Ie(r,e)}})},ze=(e,t)=>{if(tl.push(()=>{null!==t._item&&t._item.deleted||t._callObserver(n,e)})),l.push(()=>{n.changedParentTypes.forEach((e,t)=>{t._dEH.l.length>0&&(null===t._item||!t._item.deleted)&&(e=e.filter(e=>null===e.target._item||!e.target._item.deleted),e.forEach(e=>{e.currentTarget=t,e._path=null}),e.sort((e,t)=>e.path.length-t.path.length),ue(t._dEH,e,n))})}),l.push(()=>r.emit("afterTransaction",[n,r])),Object(p["a"])(l,[]),n._needFormattingCleanup&&Vt(n)}finally{r.gc&&Re(a,i,r.gcFilter),Fe(a,i),n.afterState.forEach((e,t)=>{const r=n.beforeState.get(t)||0;if(r!==e){const e=i.clients.get(t),n=o["g"](Ce(e,r),1);for(let t=e.length-1;t>=n;)t-=1+Ie(e,t)}});for(let e=s.length-1;e>=0;e--){const{client:t,clock:n}=s[e].id,r=i.clients.get(t),o=Ce(r,n);o+11||o>0&&Ie(r,o)}if(n.local||n.afterState.get(r.clientID)===n.beforeState.get(r.clientID)||(g["b"](v["e"],v["b"],"[yjs] ",v["h"],v["g"],"Changed the client-id because another client seems to be using it."),r.clientID=P()),r.emit("afterTransactionCleanup",[n,r]),r._observers.has("update")){const e=new U,t=Le(e,n);t&&r.emit("update",[e.toUint8Array(),n.origin,r,n])}if(r._observers.has("updateV2")){const e=new q,t=Le(e,n);t&&r.emit("updateV2",[e.toUint8Array(),n.origin,r,n])}const{subdocsAdded:l,subdocsLoaded:c,subdocsRemoved:u}=n;(l.size>0||u.size>0||c.size>0)&&(l.forEach(e=>{e.clientID=r.clientID,null==e.collectionid&&(e.collectionid=r.collectionid),r.subdocs.add(e)}),u.forEach(e=>r.subdocs.delete(e)),r.emit("subdocs",[{loaded:c,added:l,removed:u},r,n]),u.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,e])):ze(e,t+1)}}},je=(e,t,n=null,r=!0)=>{const i=e._transactionCleanups;let o=!1,a=null;null===e._transaction&&(o=!0,e._transaction=new De(e,n,r),i.push(e._transaction),1===i.length&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{a=t(e._transaction)}finally{if(o){const t=e._transaction===i[0];e._transaction=null,t&&ze(i,0)}}return a};r["a"];function*Be(e){const t=l["k"](e.restDecoder);for(let n=0;n_e(e,F,U),We=(e,t)=>{if(e.constructor===un){const{client:n,clock:r}=e.id;return new un(fe(n,r+t),e.length-t)}if(e.constructor===Wn){const{client:n,clock:r}=e.id;return new Wn(fe(n,r+t),e.length-t)}{const n=e,{client:r,clock:i}=n.id;return new Bn(fe(r,i+t),null,fe(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},_e=(e,t=j,n=q)=>{if(1===e.length)return e[0];const r=e.map(e=>new t(l["e"](e)));let i=r.map(e=>new Ue(e,!0)),o=null;const a=new n,s=new He(a);while(1){if(i=i.filter(e=>null!==e.curr),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){const n=e.curr.id.clock-t.curr.id.clock;return 0===n?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===Wn?1:-1:n}return t.curr.id.client-e.curr.id.client}),0===i.length)break;const e=i[0],t=e.curr.id.client;if(null!==o){let n=e.curr,r=!1;while(null!==n&&n.id.clock+n.length<=o.struct.id.clock+o.struct.length&&n.id.client>=o.struct.id.client)n=e.next(),r=!0;if(null===n||n.id.client!==t||r&&n.id.clock>o.struct.id.clock+o.struct.length)continue;if(t!==o.struct.id.client)Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next();else if(o.struct.id.clock+o.struct.length0&&(o.struct.constructor===Wn?o.struct.length-=t:n=We(n,t)),o.struct.mergeWith(n)||(Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next())}}else o={struct:e.curr,offset:0},e.next();for(let n=e.curr;null!==n&&n.id.client===t&&n.id.clock===o.struct.id.clock+o.struct.length&&n.constructor!==Wn;n=e.next())Ye(s,o.struct,o.offset),o={struct:n,offset:0}}null!==o&&(Ye(s,o.struct,o.offset),o=null),Ke(s);const c=r.map(e=>D(e)),u=T(c);return N(a,u),a.toUint8Array()},Ge=(e,t,n=j,r=q)=>{const i=te(t),a=new r,s=new He(a),c=new n(l["e"](e)),u=new Ue(c,!1);while(u.curr){const e=u.curr,t=e.id.client,n=i.get(t)||0;if(u.curr.constructor!==Wn)if(e.id.clock+e.length>n){Ye(s,e,o["g"](n-e.id.clock,0)),u.next();while(u.curr&&u.curr.id.client===t)Ye(s,u.curr,0),u.next()}else while(u.curr&&u.curr.id.client===t&&u.curr.id.clock+u.curr.length<=n)u.next();else u.next()}Ke(s);const h=D(c);return N(a,h),a.toUint8Array()},Ve=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:s["f"](e.encoder.restEncoder)}),e.encoder.restEncoder=s["e"](),e.written=0)},Ye=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&Ve(e),0===e.written&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),s["n"](e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},Ke=e=>{Ve(e);const t=e.encoder.restEncoder;s["n"](t,e.clientStructs.length);for(let n=0;n{const i=new n(l["e"](e)),o=new Ue(i,!1),a=new r,s=new He(a);for(let l=o.curr;null!==l;l=o.next())Ye(s,t(l),0);Ke(s);const c=D(i);return N(a,c),a.toUint8Array()},Xe=e=>Ze(e,p["c"],j,U),Je="You must not compute changes after the event-handler fired.";class Qe{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=$e(this.currentTarget,this.target))}deletes(e){return A(this.transaction.deleteSet,e.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const e=new Map,t=this.target,n=this.transaction.changed.get(t);n.forEach(n=>{if(null!==n){const r=t._map.get(n);let o,a;if(this.adds(r)){let e=r.left;while(null!==e&&this.adds(e))e=e.left;if(this.deletes(r)){if(null===e||!this.deletes(e))return;o="delete",a=i["e"](e.content.getContent())}else null!==e&&this.deletes(e)?(o="update",a=i["e"](e.content.getContent())):(o="add",a=void 0)}else{if(!this.deletes(r))return;o="delete",a=i["e"](r.content.getContent())}e.set(n,{action:o,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(null===e){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const t=this.target,n=m["a"](),r=m["a"](),i=[];e={added:n,deleted:r,delta:i,keys:this.keys};const o=this.transaction.changed.get(t);if(o.has(null)){let e=null;const o=()=>{e&&i.push(e)};for(let i=t._start;null!==i;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&(null!==e&&void 0!==e.delete||(o(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?(null!==e&&void 0!==e.insert||(o(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):(null!==e&&void 0!==e.retain||(o(),e={retain:0}),e.retain+=i.length);null!==e&&void 0===e.retain&&o()}this._changes=e}return e}}const $e=(e,t)=>{const n=[];while(null!==t._item&&t!==e){if(null!==t._item.parentSub)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;while(r!==t._item&&null!==r)r.deleted||e++,r=r.right;n.unshift(e)}t=t._item.parent}return n},et=80;let tt=0;class nt{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=tt++}}const rt=e=>{e.timestamp=tt++},it=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=tt++},ot=(e,t,n)=>{if(e.length>=et){const r=e.reduce((e,t)=>e.timestamp{if(null===e._start||0===t||null===e._searchMarker)return null;const n=0===e._searchMarker.length?null:e._searchMarker.reduce((e,n)=>o["a"](t-e.index)t)r=r.left,!r.deleted&&r.countable&&(i-=r.length);while(null!==r.left&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return null!==n&&o["a"](n.index-i){for(let r=e.length-1;r>=0;r--){const i=e[r];if(n>0){let t=i.p;t.marker=!1;while(t&&(t.deleted||!t.countable))t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(null===t||!0===t.marker){e.splice(r,1);continue}i.p=t,t.marker=!0}(t0&&t===i.index)&&(i.index=o["g"](t,i.index+n))}},lt=(e,t,n)=>{const r=e,i=t.changedParentTypes;while(1){if(a["e"](i,e,()=>[]).push(n),null===e._item)break;e=e._item.parent}ue(r._eH,n,t)};class ct{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=se(),this._dEH=se(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw d["b"]()}clone(){throw d["b"]()}_write(e){}get _first(){let e=this._start;while(null!==e&&e.deleted)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){le(this._eH,e)}observeDeep(e){le(this._dEH,e)}unobserve(e){ce(this._eH,e)}unobserveDeep(e){ce(this._dEH,e)}toJSON(){}}const ut=(e,t,n)=>{t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t;const i=[];let o=e._start;while(null!==o&&r>0){if(o.countable&&!o.deleted){const e=o.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n0;n++)i.push(e[n]),r--;t=0}}o=o.right}return i},ht=e=>{const t=[];let n=e._start;while(null!==n){if(n.countable&&!n.deleted){const e=n.content.getContent();for(let n=0;n{let n=0,r=e._start;while(null!==r){if(r.countable&&!r.deleted){const i=r.content.getContent();for(let r=0;r{const n=[];return dt(e,(r,i)=>{n.push(t(r,i,e))}),n},pt=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(null===n){while(null!==t&&t.deleted)t=t.right;if(null===t)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}const e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},mt=(e,t)=>{const n=at(e,t);let r=e._start;for(null!==n&&(r=n.p,t-=n.index);null!==r;r=r.right)if(!r.deleted&&r.countable){if(t{let i=n;const o=e.doc,a=o.clientID,s=o.store,l=null===n?t._start:n.right;let c=[];const u=()=>{c.length>0&&(i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new An(c)),i.integrate(e,0),c=[])};r.forEach(n=>{if(null===n)c.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new hn(new Uint8Array(n))),i.integrate(e,0);break;case I:i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new gn(n)),i.integrate(e,0);break;default:if(!(n instanceof ct))throw new Error("Unexpected content type in insert operation");i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new Fn(n)),i.integrate(e,0)}}}),u()},vt=()=>d["a"]("Length exceeded!"),bt=(e,t,n,r)=>{if(n>t._length)throw vt();if(0===n)return t._searchMarker&&st(t._searchMarker,n,r.length),gt(e,t,null,r);const i=n,o=at(t,n);let a=t._start;for(null!==o&&(a=o.p,n-=o.index,0===n&&(a=a.prev,n+=a&&a.countable&&!a.deleted?a.length:0));null!==a;a=a.right)if(!a.deleted&&a.countable){if(n<=a.length){n{const r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start});let i=r.p;if(i)while(i.right)i=i.right;return gt(e,t,i,n)},wt=(e,t,n,r)=>{if(0===r)return;const i=n,o=r,a=at(t,n);let s=t._start;for(null!==a&&(s=a.p,n-=a.index);null!==s&&n>0;s=s.right)!s.deleted&&s.countable&&(n0&&null!==s)s.deleted||(r0)throw vt();t._searchMarker&&st(t._searchMarker,i,-o+r)},xt=(e,t,n)=>{const r=t._map.get(n);void 0!==r&&r.delete(e)},kt=(e,t,n,r)=>{const i=t._map.get(n)||null,o=e.doc,a=o.clientID;let s;if(null==r)s=new An([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:s=new An([r]);break;case Uint8Array:s=new hn(r);break;case I:s=new gn(r);break;default:if(!(r instanceof ct))throw new Error("Unexpected content type");s=new Fn(r)}new Bn(fe(a,xe(o.store,a)),i,i&&i.lastId,null,null,t,n,s).integrate(e,0)},Ct=(e,t)=>{const n=e._map.get(t);return void 0===n||n.deleted?void 0:n.content.getContent()[n.length-1]},At=e=>{const t={};return e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},Et=(e,t)=>{const n=e._map.get(t);return void 0!==n&&!n.deleted},Tt=e=>b["a"](e.entries(),e=>!e[1].deleted);class St extends Qe{constructor(e,t){super(e,t),this._transaction=t}}class Mt extends ct{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const t=new Mt;return t.push(e),t}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Mt}clone(){const e=new Mt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}_callObserver(e,t){super._callObserver(e,t),lt(this,e,new St(this,e))}insert(e,t){null!==this.doc?je(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}push(e){null!==this.doc?je(this.doc,t=>{yt(t,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,t=1){null!==this.doc?je(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}get(e){return mt(this,e)}toArray(){return ht(this)}slice(e=0,t=this.length){return ut(this,e,t)}toJSON(){return this.map(e=>e instanceof ct?e.toJSON():e)}map(e){return ft(this,e)}forEach(e){dt(this,e)}[Symbol.iterator](){return pt(this)}_write(e){e.writeTypeRef(On)}}const Ot=e=>new Mt;class Nt extends Qe{constructor(e,t,n){super(e,t),this.keysChanged=n}}class Dt extends ct{constructor(e){super(),this._prelimContent=null,this._prelimContent=void 0===e?new Map:new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new Dt}clone(){const e=new Dt;return this.forEach((t,n)=>{e.set(n,t instanceof ct?t.clone():t)}),e}_callObserver(e,t){lt(this,e,new Nt(this,e,t))}toJSON(){const e={};return this._map.forEach((t,n)=>{if(!t.deleted){const r=t.content.getContent()[t.length-1];e[n]=r instanceof ct?r.toJSON():r}}),e}get size(){return[...Tt(this._map)].length}keys(){return b["b"](Tt(this._map),e=>e[0])}values(){return b["b"](Tt(this._map),e=>e[1].content.getContent()[e[1].length-1])}entries(){return b["b"](Tt(this._map),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){null!==this.doc?je(this.doc,t=>{xt(t,this,e)}):this._prelimContent.delete(e)}set(e,t){return null!==this.doc?je(this.doc,n=>{kt(n,this,e,t)}):this._prelimContent.set(e,t),t}get(e){return Ct(this,e)}has(e){return Et(this,e)}clear(){null!==this.doc?je(this.doc,e=>{this.forEach((function(t,n,r){xt(e,r,n)}))}):this._prelimContent.clear()}_write(e){e.writeTypeRef(Nn)}}const Lt=e=>new Dt,Pt=(e,t)=>e===t||"object"===typeof e&&"object"===typeof t&&e&&t&&y["b"](e,t);class It{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){switch(null===this.right&&d["c"](),this.right.content.constructor){case wn:this.right.deleted||jt(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const Rt=(e,t,n)=>{while(null!==t.right&&n>0){switch(t.right.content.constructor){case wn:t.right.deleted||jt(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n{const r=new Map,i=at(t,n);if(i){const t=new It(i.p.left,i.p,i.index,r);return Rt(e,t,n-i.index)}{const i=new It(null,t._start,0,r);return Rt(e,i,n)}},zt=(e,t,n,r)=>{while(null!==n.right&&(!0===n.right.deleted||n.right.content.constructor===wn&&Pt(r.get(n.right.content.key),n.right.content.value)))n.right.deleted||r.delete(n.right.content.key),n.forward();const i=e.doc,o=i.clientID;r.forEach((r,a)=>{const s=n.left,l=n.right,c=new Bn(fe(o,xe(i.store,o)),s,s&&s.lastId,l,l&&l.id,t,null,new wn(a,r));c.integrate(e,0),n.right=c,n.forward()})},jt=(e,t)=>{const{key:n,value:r}=t;null===r?e.delete(n):e.set(n,r)},Bt=(e,t)=>{while(1){if(null===e.right)break;if(!(e.right.deleted||e.right.content.constructor===wn&&Pt(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},Ut=(e,t,n,r)=>{const i=e.doc,o=i.clientID,a=new Map;for(const s in r){const l=r[s],c=n.currentAttributes.get(s)||null;if(!Pt(c,l)){a.set(s,c);const{left:r,right:u}=n;n.right=new Bn(fe(o,xe(i.store,o)),r,r&&r.lastId,u,u&&u.id,t,null,new wn(s,l)),n.right.integrate(e,0),n.forward()}}return a},Ht=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{void 0===i[t]&&(i[t]=null)});const o=e.doc,a=o.clientID;Bt(n,i);const s=Ut(e,t,n,i),l=r.constructor===String?new Tn(r):r instanceof ct?new Fn(r):new bn(r);let{left:c,right:u,index:h}=n;t._searchMarker&&st(t._searchMarker,n.index,l.getLength()),u=new Bn(fe(a,xe(o.store,a)),c,c&&c.lastId,u,u&&u.id,t,null,l),u.integrate(e,0),n.right=u,n.index=h,n.forward(),zt(e,t,n,s)},qt=(e,t,n,r,i)=>{const o=e.doc,a=o.clientID;Bt(n,i);const s=Ut(e,t,n,i);e:while(null!==n.right&&(r>0||s.size>0&&(n.right.deleted||n.right.content.constructor===wn))){if(!n.right.deleted)switch(n.right.content.constructor){case wn:{const{key:t,value:o}=n.right.content,a=i[t];if(void 0!==a){if(Pt(a,o))s.delete(t);else{if(0===r)break e;s.set(t,o)}n.right.delete(e)}else n.currentAttributes.set(t,o);break}default:r0){let i="";for(;r>0;r--)i+="\n";n.right=new Bn(fe(a,xe(o.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Tn(i)),n.right.integrate(e,0),n.forward()}zt(e,t,n,s)},Wt=(e,t,n,r,i)=>{let o=t;const s=a["c"]();while(o&&(!o.countable||o.deleted)){if(!o.deleted&&o.content.constructor===wn){const e=o.content;s.set(e.key,e)}o=o.right}let l=0,c=!1;while(t!==o){if(n===t&&(c=!0),!t.deleted){const n=t.content;switch(n.constructor){case wn:{const{key:o,value:a}=n,u=r.get(o)||null;s.get(o)===n&&u!==a||(t.delete(e),l++,c||(i.get(o)||null)!==a||u===a||(null===u?i.delete(o):i.set(o,u))),c||t.deleted||jt(i,n);break}}}t=t.right}return l},_t=(e,t)=>{while(t&&t.right&&(t.right.deleted||!t.right.countable))t=t.right;const n=new Set;while(t&&(t.deleted||!t.countable)){if(!t.deleted&&t.content.constructor===wn){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},Gt=e=>{let t=0;return je(e.doc,n=>{let r=e._start,i=e._start,o=a["c"]();const s=a["b"](o);while(i){if(!1===i.deleted)switch(i.content.constructor){case wn:jt(s,i.content);break;default:t+=Wt(n,r,i,o,s),o=a["b"](s),r=i;break}i=i.right}}),t},Vt=e=>{const t=new Set,n=e.doc;for(const[r,i]of e.afterState.entries()){const o=e.beforeState.get(r)||0;i!==o&&Ne(e,n.store.clients.get(r),o,i,e=>{e.deleted||e.content.constructor!==wn||e.constructor===un||t.add(e.parent)})}je(n,n=>{k(e,e.deleteSet,e=>{if(e instanceof un||!e.parent._hasFormatting||t.has(e.parent))return;const r=e.parent;e.content.constructor===wn?t.add(r):_t(n,e)});for(const e of t)Gt(e)})},Yt=(e,t,n)=>{const r=n,i=a["b"](t.currentAttributes),o=t.right;while(n>0&&null!==t.right){if(!1===t.right.deleted)switch(t.right.content.constructor){case Fn:case bn:case Tn:n{null===e?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){if(null===this._changes){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(null===this._delta){const e=this.target.doc,t=[];je(e,e=>{const n=new Map,r=new Map;let i=this.target._start,o=null;const a={};let s="",l=0,c=0;const u=()=>{if(null!==o){let e=null;switch(o){case"delete":c>0&&(e={delete:c}),c=0;break;case"insert":("object"===typeof s||s.length>0)&&(e={insert:s},n.size>0&&(e.attributes={},n.forEach((t,n)=>{null!==t&&(e.attributes[n]=t)}))),s="";break;case"retain":l>0&&(e={retain:l},y["e"](a)||(e.attributes=y["a"]({},a))),l=0;break}e&&t.push(e),o=null}};while(null!==i){switch(i.content.constructor){case Fn:case bn:this.adds(i)?this.deletes(i)||(u(),o="insert",s=i.content.getContent()[0],u()):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=1):i.deleted||("retain"!==o&&(u(),o="retain"),l+=1);break;case Tn:this.adds(i)?this.deletes(i)||("insert"!==o&&(u(),o="insert"),s+=i.content.str):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=i.length):i.deleted||("retain"!==o&&(u(),o="retain"),l+=i.length);break;case wn:{const{key:t,value:s}=i.content;if(this.adds(i)){if(!this.deletes(i)){const l=n.get(t)||null;Pt(l,s)?null!==s&&i.delete(e):("retain"===o&&u(),Pt(s,r.get(t)||null)?delete a[t]:a[t]=s)}}else if(this.deletes(i)){r.set(t,s);const e=n.get(t)||null;Pt(e,s)||("retain"===o&&u(),a[t]=e)}else if(!i.deleted){r.set(t,s);const n=a[t];void 0!==n&&(Pt(n,s)?null!==n&&i.delete(e):("retain"===o&&u(),null===s?delete a[t]:a[t]=s))}i.deleted||("insert"===o&&u(),jt(n,i.content));break}}i=i.right}u();while(t.length>0){const e=t[t.length-1];if(void 0===e.retain||void 0!==e.attributes)break;t.pop()}}),this._delta=t}return this._delta}}class Zt extends ct{constructor(e){super(),this._pending=void 0!==e?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(n){console.error(n)}this._pending=null}_copy(){return new Zt}clone(){const e=new Zt;return e.applyDelta(this.toDelta()),e}_callObserver(e,t){super._callObserver(e,t);const n=new Kt(this,e,t);lt(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){let e="",t=this._start;while(null!==t)!t.deleted&&t.countable&&t.content.constructor===Tn&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){null!==this.doc?je(this.doc,n=>{const r=new It(null,this._start,0,new Map);for(let i=0;i0)&&Ht(n,this,r,a,o.attributes||{})}else void 0!==o.retain?qt(n,this,r,o.retain,o.attributes||{}):void 0!==o.delete&&Yt(n,r,o.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,t,n){const r=[],i=new Map,o=this.doc;let a="",s=this._start;function l(){if(a.length>0){const e={};let t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});const n={insert:a};t&&(n.attributes=e),r.push(n),a=""}}const c=()=>{while(null!==s){if(ve(s,e)||void 0!==t&&ve(s,t))switch(s.content.constructor){case Tn:{const r=i.get("ychange");void 0===e||ve(s,e)?void 0===t||ve(s,t)?void 0!==r&&(l(),i.delete("ychange")):void 0!==r&&r.user===s.id.client&&"added"===r.type||(l(),i.set("ychange",n?n("added",s.id):{type:"added"})):void 0!==r&&r.user===s.id.client&&"removed"===r.type||(l(),i.set("ychange",n?n("removed",s.id):{type:"removed"})),a+=s.content.str;break}case Fn:case bn:{l();const e={insert:s.content.getContent()[0]};if(i.size>0){const t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case wn:ve(s,e)&&(l(),jt(i,s.content));break}s=s.right}l()};return e||t?je(o,n=>{e&&be(n,e),t&&be(n,t),c()},"cleanup"):c(),r}insert(e,t,n){if(t.length<=0)return;const r=this.doc;null!==r?je(r,r=>{const i=Ft(r,this,e);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),Ht(r,this,i,t,n)}):this._pending.push(()=>this.insert(e,t,n))}insertEmbed(e,t,n={}){const r=this.doc;null!==r?je(r,r=>{const i=Ft(r,this,e);Ht(r,this,i,t,n)}):this._pending.push(()=>this.insertEmbed(e,t,n))}delete(e,t){if(0===t)return;const n=this.doc;null!==n?je(n,n=>{Yt(n,Ft(n,this,e),t)}):this._pending.push(()=>this.delete(e,t))}format(e,t,n){if(0===t)return;const r=this.doc;null!==r?je(r,r=>{const i=Ft(r,this,e);null!==i.right&&qt(r,this,i,t,n)}):this._pending.push(()=>this.format(e,t,n))}removeAttribute(e){null!==this.doc?je(this.doc,t=>{xt(t,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,t){null!==this.doc?je(this.doc,n=>{kt(n,this,e,t)}):this._pending.push(()=>this.setAttribute(e,t))}getAttribute(e){return Ct(this,e)}getAttributes(){return At(this)}_write(e){e.writeTypeRef(Dn)}}const Xt=e=>new Zt;class Jt{constructor(e,t=(()=>!0)){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(null!==e&&(!this._firstCall||e.deleted||!this._filter(t)))do{if(t=e.content.type,e.deleted||t.constructor!==en&&t.constructor!==Qt||null===t._start)while(null!==e){if(null!==e.right){e=e.right;break}e=e.parent===this._root?null:e.parent._item}else e=t._start}while(null!==e&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,null===e?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class Qt extends ct{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Qt}clone(){const e=new Qt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(e){return new Jt(this,e)}querySelector(e){e=e.toUpperCase();const t=new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e),n=t.next();return n.done?null:n.value}querySelectorAll(e){return e=e.toUpperCase(),i["c"](new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){lt(this,e,new nn(this,t,e))}toString(){return ft(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,t={},n){const r=e.createDocumentFragment();return void 0!==n&&n._createAssociation(r,this),dt(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){null!==this.doc?je(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}insertAfter(e,t){if(null!==this.doc)je(this.doc,n=>{const r=e&&e instanceof ct?e._item:e;gt(n,this,r,t)});else{const n=this._prelimContent,r=null===e?0:n.findIndex(t=>t===e)+1;if(0===r&&null!==e)throw d["a"]("Reference item not found");n.splice(r,0,...t)}}delete(e,t=1){null!==this.doc?je(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}toArray(){return ht(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return mt(this,e)}slice(e=0,t=this.length){return ut(this,e,t)}forEach(e){dt(this,e)}_write(e){e.writeTypeRef(Pn)}}const $t=e=>new Qt;class en extends Qt{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new en(this.nodeName)}clone(){const e=new en(this.nodeName),t=this.getAttributes();return y["c"](t,(t,n)=>{"string"===typeof t&&e.setAttribute(n,t)}),e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}toString(){const e=this.getAttributes(),t=[],n=[];for(const a in e)n.push(a);n.sort();const r=n.length;for(let a=0;a0?" "+t.join(" "):"";return`<${i}${o}>${super.toString()}`}removeAttribute(e){null!==this.doc?je(this.doc,t=>{xt(t,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,t){null!==this.doc?je(this.doc,n=>{kt(n,this,e,t)}):this._prelimAttrs.set(e,t)}getAttribute(e){return Ct(this,e)}hasAttribute(e){return Et(this,e)}getAttributes(){return At(this)}toDOM(e=document,t={},n){const r=e.createElement(this.nodeName),i=this.getAttributes();for(const o in i){const e=i[o];"string"===typeof e&&r.setAttribute(o,e)}return dt(this,i=>{r.appendChild(i.toDOM(e,t,n))}),void 0!==n&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef(Ln),e.writeKey(this.nodeName)}}const tn=e=>new en(e.readKey());class nn extends Qe{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{null===e?this.childListChanged=!0:this.attributesChanged.add(e)})}}class rn extends Dt{constructor(e){super(),this.hookName=e}_copy(){return new rn(this.hookName)}clone(){const e=new rn(this.hookName);return this.forEach((t,n)=>{e.set(n,t)}),e}toDOM(e=document,t={},n){const r=t[this.hookName];let i;return i=void 0!==r?r.createDom(this):document.createElement(this.hookName),i.setAttribute("data-yjs-hook",this.hookName),void 0!==n&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(In),e.writeKey(this.hookName)}}const on=e=>new rn(e.readKey());class an extends Zt{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new an}clone(){const e=new an;return e.applyDelta(this.toDelta()),e}toDOM(e=document,t,n){const r=e.createTextNode(this.toString());return void 0!==n&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{const t=[];for(const r in e.attributes){const n=[];for(const t in e.attributes[r])n.push({key:t,value:e.attributes[r][t]});n.sort((e,t)=>e.keye.nodeName=0;r--)n+=``;return n}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(Rn)}}const sn=e=>new an;class ln{constructor(e,t){this.id=e,this.length=t}get deleted(){throw d["b"]()}mergeWith(e){return!1}write(e,t,n){throw d["b"]()}integrate(e,t){throw d["b"]()}}const cn=0;class un extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),ke(e.doc.store,this)}write(e,t){e.writeInfo(cn),e.writeLen(this.length-t)}getMissing(e,t){return null}}class hn{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new hn(this.content)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}}const dn=e=>new hn(e.readBuf());class fn{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new fn(this.len)}splice(e){const t=new fn(this.len-e);return this.len=e,t}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){S(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}}const pn=e=>new fn(e.readLen()),mn=(e,t)=>new I({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class gn{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),null!==e.meta&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new gn(mn(this.doc.guid,this.opts))}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}const vn=e=>new gn(mn(e.readString(),e.readAny()));class bn{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new bn(this.embed)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}}const yn=e=>new bn(e.readJSON());class wn{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new wn(this.key,this.value)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){const n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}const xn=e=>new wn(e.readKey(),e.readJSON());class kn{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new kn(this.arr)}splice(e){const t=new kn(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const n=this.arr.length;e.writeLen(n-t);for(let r=t;r{const t=e.readLen(),n=[];for(let r=0;r{const t=e.readLen(),n=[];for(let r=0;r=55296&&n<=56319&&(this.str=this.str.slice(0,e-1)+"�",t.str="�"+t.str.slice(1)),t}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(0===t?this.str:this.str.slice(t))}getRef(){return 4}}const Sn=e=>new Tn(e.readString()),Mn=[Ot,Lt,Xt,tn,$t,on,sn],On=0,Nn=1,Dn=2,Ln=3,Pn=4,In=5,Rn=6;class Fn{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Fn(this.type._copy())}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;while(null!==t)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;while(null!==t)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{while(null!==t)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}}const zn=e=>new Fn(Mn[e.readTypeRef()](e)),jn=(e,t,n)=>{const{client:r,clock:i}=t.id,o=new Bn(fe(r,i+n),t,fe(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&o.markDeleted(),t.keep&&(o.keep=!0),null!==t.redone&&(o.redone=fe(t.redone.client,t.redone.clock+n)),t.right=o,null!==o.right&&(o.right.left=o),e._mergeStructs.push(o),null!==o.parentSub&&null===o.right&&o.parent._map.set(o.parentSub,o),t.length=n,o};class Bn extends ln{constructor(e,t,n,r,i,o,a,s){super(e,s.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=o,this.parentSub=a,this.redone=null,this.content=s,this.info=this.content.isCountable()?f["b"]:0}set marker(e){(this.info&f["d"])>0!==e&&(this.info^=f["d"])}get marker(){return(this.info&f["d"])>0}get keep(){return(this.info&f["a"])>0}set keep(e){this.keep!==e&&(this.info^=f["a"])}get countable(){return(this.info&f["b"])>0}get deleted(){return(this.info&f["c"])>0}set deleted(e){this.deleted!==e&&(this.info^=f["c"])}markDeleted(){this.info|=f["c"]}getMissing(e,t){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=xe(t,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=xe(t,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===he&&this.id.client!==this.parent.client&&this.parent.clock>=xe(t,this.parent.client))return this.parent.client;if(this.origin&&(this.left=Me(e,t,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Se(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===un||this.right&&this.right.constructor===un)this.parent=null;else if(this.parent){if(this.parent.constructor===he){const e=Ee(t,this.parent);e.constructor===un?this.parent=null:this.parent=e.content.type}}else this.left&&this.left.constructor===Bn&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===Bn&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Me(e,e.doc.store,fe(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let t,n=this.left;if(null!==n)t=n.right;else if(null!==this.parentSub){t=this.parent._map.get(this.parentSub)||null;while(null!==t&&null!==t.left)t=t.left}else t=this.parent._start;const r=new Set,i=new Set;while(null!==t&&t!==this.right){if(i.add(t),r.add(t),de(this.origin,t.origin)){if(t.id.client{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,null!==this.right&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const t=this.parent;this.countable&&null===this.parentSub&&(t._length-=this.length),this.markDeleted(),S(e.deleteSet,this.id.client,this.id.clock,this.length),Pe(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw d["c"]();this.content.gc(e),t?Oe(e,this,new un(this.id,this.length)):this.content=new fn(this.length)}write(e,t){const n=t>0?fe(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,o=this.content.getRef()&f["k"]|(null===n?0:f["g"])|(null===r?0:f["f"])|(null===i?0:f["e"]);if(e.writeInfo(o),null!==n&&e.writeLeftID(n),null!==r&&e.writeRightID(r),null===n&&null===r){const t=this.parent;if(void 0!==t._item){const n=t._item;if(null===n){const n=pe(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===he?(e.writeParentInfo(!1),e.writeLeftID(t)):d["c"]();null!==i&&e.writeString(i)}this.content.write(e,t)}}const Un=(e,t)=>Hn[t&f["k"]](e),Hn=[()=>{d["c"]()},pn,Cn,dn,Sn,yn,xn,zn,En,vn,()=>{d["c"]()}],qn=10;class Wn extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){d["c"]()}write(e,t){e.writeInfo(qn),s["n"](e.restEncoder,this.length-t)}getMissing(e,t){return null}}const _n="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{},Gn="__ $YJS$ __";!0===_n[Gn]&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),_n[Gn]=!0}).call(this,n("c8ba"))},"4dde":function(e,t,n){"use strict";var r=n("c4ab"),i=n("6f54"),o=n("7280"),a=n("5d9a"),s=n("f537"),l=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return Object(r["c"])(t,e),t.prototype.asBytes=function(){for(var e=[],t="",n=!1,r=function(t){void 0!==t&&e.push(t),n=!1},i=0,s=this.value.length;i=o["a"].Zero&&c<=o["a"].Seven?(t+=l,3!==t.length&&u>="0"&&u<="7"||(r(parseInt(t,8)),t="")):r(c):c===o["a"].BackSlash?n=!0:r(c)}return new Uint8Array(e)},t.prototype.decodeText=function(){var e=this.asBytes();return Object(a["A"])(e)?Object(a["Y"])(e):Object(a["K"])(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),t=Object(a["J"])(e);if(!t)throw new s["d"](e);return t},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"("+this.value+")"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=o["a"].LeftParen,t+=Object(a["w"])(this.value,e,t),e[t++]=o["a"].RightParen,this.value.length+2},t.of=function(e){return new t(e)},t.fromDate=function(e){var n=Object(a["I"])(String(e.getUTCFullYear()),4,"0"),r=Object(a["I"])(String(e.getUTCMonth()+1),2,"0"),i=Object(a["I"])(String(e.getUTCDate()),2,"0"),o=Object(a["I"])(String(e.getUTCHours()),2,"0"),s=Object(a["I"])(String(e.getUTCMinutes()),2,"0"),l=Object(a["I"])(String(e.getUTCSeconds()),2,"0");return new t("D:"+n+r+i+o+s+l+"Z")},t}(i["a"]);t["a"]=l},"4ec2":function(e,t,n){e.exports=n.p+"img/timeline2.png"},"4f5a":function(e,t,n){e.exports=n.p+"img/-_14.svg"},"4f8c":function(e,t,n){e.exports=n.p+"img/pinkGrape.jpg"},"4f98":function(e,t,n){(function(t){ +function Cf(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Af(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Jt(N(e))}function Ef(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Tf(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),16843009*(e+(e>>4)&252645135)>>>24}function Sf(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}function Mf(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Of(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Nf(e){var t=[],n=[0];while(n[0]=128);a=e.slice(l,n[0]);break;case 5:s=4,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Mf(e,n),a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(r))}var c={data:a,type:o};null==t[i]?t[i]=[c]:t[i].push(c)}return t}function Df(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Lf(e){var t,n=[],r=[0];while(r[0]>>0>0),n.push(a)}return n}function Pf(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var n=[0],r=Mf(t,n),i=[];while(n[0]>2&7),a=(224&t[n[0]++])<<3,a|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==o?(a=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(a=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Ef(i)],0==a)throw new Error("Invalid offset 0");if(a>i[0].length)throw new Error("Invalid offset beyond length");if(s>=a){i.push(i[0].slice(-a)),s-=a;while(s>=i[i.length-1].length)i.push(i[i.length-1]),s-=i[i.length-1].length}i.push(i[0].slice(-a,-a+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var u=Ef(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function If(e){var t=[],n=0;while(n1?12:8)+4*Tf(a&(r>1?3470:398)),l=-1,c=-1,u=NaN,h=new Date(2001,0,1);switch(512&a&&(l=o.getUint32(s,!0),s+=4),s+=4*Tf(a&(r>1?12288:4096)),16&a&&(c=o.getUint32(s,!0),s+=4),32&a&&(u=o.getFloat64(s,!0),s+=8),64&a&&(h.setTime(h.getTime()+1e3*o.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[c]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(l>-1)i={t:"s",v:n[l]};else if(c>-1)i={t:"s",v:t[c]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}function Ff(e,t,n){var r,i=Cf(e),o=i.getUint32(8,!0),a=12,s=-1,l=-1,c=NaN,u=NaN,h=new Date(2001,0,1);switch(1&o&&(c=Sf(e,a),a+=16),2&o&&(u=i.getFloat64(a,!0),a+=8),4&o&&(h.setTime(h.getTime()+1e3*i.getFloat64(a,!0)),a+=8),8&o&&(l=i.getUint32(a,!0),a+=4),16&o&&(s=i.getUint32(a,!0),a+=4),e[1]){case 0:break;case 2:r={t:"n",v:c};break;case 3:r={t:"s",v:t[l]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)));r={t:"s",v:n[s]};break;case 10:r={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)))}return r}function zf(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return Rf(e,t,n,e[0]);case 5:return Ff(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function jf(e){var t=Nf(e);return Mf(t[1][0].data)}function Bf(e,t){var n=Nf(t.data),r=Of(n[1][0].data),i=n[3],o=[];return(i||[]).forEach((function(t){var n=Nf(t.data),i=Of(n[1][0].data)>>>0;switch(r){case 1:o[i]=Af(n[3][0].data);break;case 8:var a=e[jf(n[9][0].data)][0],s=Nf(a.data),l=e[jf(s[1][0].data)][0],c=Of(l.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var u=Nf(l.data);o[i]=u[3].map((function(e){return Af(e.data)})).join("");break}})),o}function Uf(e,t){var n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,b=Nf(e),y=Of(b[1][0].data)>>>0,w=Of(b[2][0].data)>>>0,x=(null==(r=null==(n=b[8])?void 0:n[0])?void 0:r.data)&&Of(b[8][0].data)>0||!1;if((null==(o=null==(i=b[7])?void 0:i[0])?void 0:o.data)&&0!=t)g=null==(s=null==(a=b[7])?void 0:a[0])?void 0:s.data,v=null==(c=null==(l=b[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(h=null==(u=b[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(f=null==(d=b[4])?void 0:d[0])?void 0:f.data,v=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var k=x?4:1,C=Cf(g),A=[],E=0;E=1&&(S[A[A.length-1][0]]=v.subarray(A[A.length-1][1]*k)),{R:y,cells:S}}function Hf(e,t){var n,r=Nf(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?Of(r[7][0].data)>>>0>0?1:0:-1,o=Df(r[5],(function(e){return Uf(e,i)}));return{nrows:Of(r[4][0].data)>>>0,data:o.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function qf(e,t,n){var r,i=Nf(t.data),o={s:{r:0,c:0},e:{r:0,c:0}};if(o.e.r=(Of(i[6][0].data)>>>0)-1,o.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(o.e.c=(Of(i[7][0].data)>>>0)-1,o.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=gr(o);var a=Nf(i[4][0].data),s=Bf(e,e[jf(a[4][0].data)][0]),l=(null==(r=a[17])?void 0:r[0])?Bf(e,e[jf(a[17][0].data)][0]):[],c=Nf(a[3][0].data),u=0;c[1].forEach((function(t){var r=Nf(t.data),i=e[jf(r[2][0].data)][0],o=Of(i.meta[1][0].data);if(6002!=o)throw new Error("6001 unexpected reference to ".concat(o));var a=Hf(e,i);a.data.forEach((function(e,t){e.forEach((function(e,r){var i=pr({r:u+t,c:r}),o=zf(e,s,l);o&&(n[i]=o)}))})),u+=a.nrows}))}function _f(e,t){var n=Nf(t.data),r={"!ref":"A1"},i=e[jf(n[2][0].data)],o=Of(i[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return qf(e,i[0],r),r}function Wf(e,t){var n,r=Nf(t.data),i={name:(null==(n=r[1])?void 0:n[0])?Af(r[1][0].data):"",sheets:[]},o=Df(r[2],jf);return o.forEach((function(t){e[t].forEach((function(t){var n=Of(t.meta[1][0].data);6e3==n&&i.sheets.push(_f(e,t))}))})),i}function Gf(e,t){var n=xp(),r=Nf(t.data),i=Df(r[1],jf);if(i.forEach((function(t){e[t].forEach((function(t){var r=Of(t.meta[1][0].data);if(2==r){var i=Wf(e,t);i.sheets.forEach((function(e,t){kp(n,e,0==t?i.name:i.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function Vf(e){var t,n,r,i,o={},a=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=If(e.content)}catch(r){return console.log("?? "+e.content.length+" "+(r.message||r))}try{n=Lf(t)}catch(r){return console.log("## "+(r.message||r))}n.forEach((function(e){o[e.id]=e.messages,a.push(e.id)}))}})),!a.length)throw new Error("File has no messages");var s=(null==(i=null==(r=null==(n=null==(t=null==o?void 0:o[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==Of(o[1][0].meta[1][0].data)&&o[1][0];if(s||a.forEach((function(e){o[e].forEach((function(e){var t=Of(e.meta[1][0].data)>>>0;if(1==t){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return Gf(o,s)}function Yf(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function Kf(e){Yf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Zf(e){return pi.WS.indexOf(e)>-1?"sheet":pi.CS&&e==pi.CS?"chart":pi.DS&&e==pi.DS?"dialog":pi.MS&&e==pi.MS?"macro":e&&e.length?e:"sheet"}function Xf(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,Zf(e["!id"][t.id].Type)]}))}catch(n){return null}return e&&0!==e.length?e:null}function Jf(e,t,n,r,i,o,a,s,l,c,u,h){try{o[r]=gi(At(e,n,!0),t);var d,f=Ct(e,t);switch(s){case"sheet":d=Cd(f,t,i,l,o[r],c,u,h);break;case"chart":if(d=Ad(f,t,i,l,o[r],c,u,h),!d||!d["!drawel"])break;var p=Ot(d["!drawel"].Target,t),m=mi(p),g=jl(At(e,p,!0),gi(At(e,m,!0),p)),v=Ot(g,p),b=mi(v);d=nd(At(e,v,!0),v,l,gi(At(e,b,!0),v),c,d);break;case"macro":d=Ed(f,t,i,l,o[r],c,u,h);break;case"dialog":d=Td(f,t,i,l,o[r],c,u,h);break;default:throw new Error("Unrecognized sheet type "+s)}a[r]=d;var y=[];o&&o[r]&&Qe(o[r]).forEach((function(n){var i="";if(o[r][n].Type==pi.CMNT){i=Ot(o[r][n].Target,t);var a=Nd(Ct(e,i,!0),i,l);if(!a||!a.length)return;Bl(d,a,!1)}o[r][n].Type==pi.TCMNT&&(i=Ot(o[r][n].Target,t),y=y.concat(Hl(Ct(e,i,!0),l)))})),y&&y.length&&Bl(d,y,!0,l.people||[])}catch(w){if(l.WTF)throw w}}function Qf(e){return"/"==e.charAt(0)?e.slice(1):e}function $f(e,t){if(_e(),t=t||{},Kf(t),xt(e,"META-INF/manifest.xml"))return xf(e,t);if(xt(e,"objectdata.xml"))return xf(e,t);if(xt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if("undefined"!=typeof Vf){if(e.FileIndex)return Vf(e);var n=Ze.utils.cfb_new();return Tt(e).forEach((function(t){St(n,t,Et(e,t))})),Vf(n)}throw new Error("Unsupported NUMBERS file")}if(!xt(e,"[Content_Types].xml")){if(xt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(xt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,o=Tt(e),a=fi(At(e,"[Content_Types].xml")),s=!1;if(0===a.workbooks.length&&(i="xl/workbook.xml",Ct(e,i,!0)&&a.workbooks.push(i)),0===a.workbooks.length){if(i="xl/workbook.bin",!Ct(e,i,!0))throw new Error("Could not find workbook");a.workbooks.push(i),s=!0}"bin"==a.workbooks[0].slice(-3)&&(s=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Xu=[],a.sst)try{Xu=Od(Ct(e,Qf(a.sst)),a.sst,t)}catch(N){if(t.WTF)throw N}t.cellStyles&&a.themes.length&&(l=Md(At(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=Sd(Ct(e,Qf(a.style)),a.style,l,t))}a.links.map((function(n){try{var r=gi(At(e,mi(Qf(n))),n);return Ld(Ct(e,Qf(n)),r,n,t)}catch(N){}}));var u=kd(Ct(e,Qf(a.workbooks[0])),a.workbooks[0],t),h={},d="";a.coreprops.length&&(d=Ct(e,Qf(a.coreprops[0]),!0),d&&(h=xi(d)),0!==a.extprops.length&&(d=Ct(e,Qf(a.extprops[0]),!0),d&&Ai(d,h,t)));var f={};t.bookSheets&&!t.bookProps||0!==a.custprops.length&&(d=At(e,Qf(a.custprops[0]),!0),d&&(f=Ti(d,t)));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?r=u.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=f),t.bookSheets&&"undefined"!==typeof r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var m={};t.bookDeps&&a.calcchain&&(m=Dd(Ct(e,Qf(a.calcchain)),a.calcchain,t));var g,v,b=0,y={},w=u.Sheets;h.Worksheets=w.length,h.SheetNames=[];for(var x=0;x!=w.length;++x)h.SheetNames[x]=w[x].name;var k=s?"bin":"xml",C=a.workbooks[0].lastIndexOf("/"),A=(a.workbooks[0].slice(0,C+1)+"_rels/"+a.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");xt(e,A)||(A="xl/_rels/workbook."+k+".rels");var E=gi(At(e,A,!0),A.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=Pd(Ct(e,Qf(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=ql(Ct(e,Qf(a.people[0])),t)),E&&(E=Xf(E,u.Sheets));var T=Ct(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=h.Worksheets;++b){var S="sheet";if(E&&E[b]?(g="xl/"+E[b][1].replace(/[\/]?xl\//,""),xt(e,g)||(g=E[b][1]),xt(e,g)||(g=A.replace(/_rels\/.*$/,"")+E[b][1]),S=E[b][2]):(g="xl/worksheets/sheet"+(b+1-T)+"."+k,g=g.replace(/sheet0\./,"sheet.")),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var M=!1,O=0;O!=t.sheets.length;++O)"number"==typeof t.sheets[O]&&t.sheets[O]==b&&(M=1),"string"==typeof t.sheets[O]&&t.sheets[O].toLowerCase()==h.SheetNames[b].toLowerCase()&&(M=1);if(!M)continue e}}Jf(e,g,v,h.SheetNames[b],b,y,r,S,t,u,l,c)}return p={Directory:a,Workbook:u,Props:h,Custprops:f,Deps:m,Sheets:r,SheetNames:h.SheetNames,Strings:Xu,Styles:c,Themes:l,SSF:dt(K)},t&&t.bookFiles&&(e.files?(p.keys=o,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(a.vba.length>0?p.vbaraw=Ct(e,Qf(a.vba[0]),!0):a.defaults&&a.defaults.bin===Vl&&(p.vbaraw=Ct(e,"xl/vbaProject.bin",!0))),p}function ep(e,t){var n=t||{},r="Workbook",i=Ze.find(e,r);try{if(r="/!DataSpaces/Version",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(ss(i.content),r="/!DataSpaces/DataSpaceMap",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=cs(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=us(i.content);if(1!=a.length||"StrongEncryptionTransform"!=a[0])throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);ds(i.content)}catch(l){}if(r="/EncryptionInfo",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=ms(i.content);if(r="/EncryptedPackage",i=Ze.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(4==s[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(s[1],i.content,n.password||"",n);if(2==s[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(s[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function tp(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=A(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function np(e,t){return Ze.find(e,"EncryptedPackage")?ep(e,t):tf(e,t)}function rp(t,n){var r,i=t,o=n||{};return o.type||(o.type=E&&e.isBuffer(t)?"buffer":"base64"),r=Mt(i,o),$f(r,o)}function ip(e,t){var n=0;e:while(n=2&&0===o[3])return Ga.to_workbook(i,r);if(0===o[2]&&(8===o[3]||9===o[3]))return Ga.to_workbook(i,r)}break;case 3:case 131:case 139:case 140:return Ba.to_workbook(i,r);case 123:if(92===o[1]&&114===o[2]&&116===o[3])return Ms.to_workbook(i,r);break;case 10:case 13:case 32:return op(i,r);case 137:if(80===o[1]&&78===o[2]&&71===o[3])throw new Error("PNG Image File is not a spreadsheet");break}return ja.indexOf(o[0])>-1&&o[2]<=12&&o[3]<=31?Ba.to_workbook(i,r):lp(t,i,r,a)}function up(e,t,n,r,i,o,a,s){var l=or(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(g){d.__rowNum__=n}else d.__rowNum__=n;if(!a||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=a?e[n][f]:e[r[f]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=o[f]){if(null==m)if("e"==p.t&&null===m)d[o[f]]=null;else if(void 0!==c)d[o[f]]=c;else{if(!u||null!==m)continue;d[o[f]]=null}else d[o[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:yr(p,m,s);null!=m&&(h=!1)}}else{if(void 0===c)continue;null!=o[f]&&(d[o[f]]=c)}}return{row:d,isempty:h}}function hp(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=vr(u);break;case"number":l=vr(e["!ref"]),l.s.r=u;break;default:l=u}r>0&&(i=0);var h=or(l.s.r),d=[],f=[],p=0,m=0,g=Array.isArray(e),v=l.s.r,b=0,y={};g&&!e[v]&&(e[v]=[]);var w=c.skipHidden&&e["!cols"]||[],x=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(w[b]||{}).hidden)switch(d[b]=cr(b),n=g?e[v][b]:e[d[b]+h],r){case 1:o[b]=b-l.s.c;break;case 2:o[b]=d[b];break;case 3:o[b]=c.header[b-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=yr(n,null,c),m=y[a]||0,m){do{s=a+"_"+m++}while(y[s]);y[a]=m,y[s]=1}else y[a]=1;o[b]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(x[v]||{}).hidden){var k=up(e,l,v,d,r,o,g,c);(!1===k.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(f[p++]=k.row)}return f.length=p,f}var dp=/"/g;function fp(e,t,n,r,i,o,a,s){for(var l=!0,c=[],u="",h=or(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var f=s.dense?(e[n]||[])[d]:e[r[d]+h];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(s.rawNumbers&&"n"==f.t?f.v:yr(f,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===o||34===m||s.forceQuotes){u='"'+u.replace(dp,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,u="="+f.f,u.indexOf(",")>=0&&(u='"'+u.replace(dp,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(a)}function pp(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=vr(e["!ref"]),o=void 0!==r.FS?r.FS:",",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),u="",h=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],f=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(d[p]||{}).hidden||(h[p]=cr(p));for(var m=0,g=i.s.r;g<=i.e.r;++g)(f[g]||{}).hidden||(u=fp(e,i,g,h,a,l,o,r),null!=u&&(r.strip&&(u=u.replace(c,"")),(u||!1!==r.blankrows)&&n.push((m++?s:"")+u)));return delete r.dense,n.join("")}function mp(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=pp(e,t);if("undefined"==typeof g||"string"==t.type)return n;var r=g.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function gp(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,o=vr(e["!ref"]),a="",s=[],l=[],c=Array.isArray(e);for(i=o.s.c;i<=o.e.c;++i)s[i]=cr(i);for(var u=o.s.r;u<=o.e.r;++u)for(a=or(u),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,t=c?(e[u]||[])[i]:e[n],r="",void 0!==t){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l}function vp(e,t,n){var r,i=n||{},o=+!i.skipHeader,a=e||{},s=0,l=0;if(a&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?fr(i.origin):i.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a["!ref"]){var h=vr(a["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),-1==s&&(s=h.e.r+1,u.e.r=s+t.length-1+o)}else-1==s&&(s=0,u.e.r=t.length-1+o);var d=i.header||[],f=0;t.forEach((function(e,t){Qe(e).forEach((function(n){-1==(f=d.indexOf(n))&&(d[f=d.length]=n);var c=e[n],u="z",h="",p=pr({c:l+f,r:s+t+o});r=yp(a,p),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",i.cellDates||(u="n",c=tt(c)),h=i.dateNF||K[14]):null===c&&i.nullError&&(u="e",c=0),r?(r.t=u,r.v=c,delete r.w,delete r.R,h&&(r.z=h)):a[p]=r={t:u,v:c},h&&(r.z=h)):a[p]=c}))})),u.e.c=Math.max(u.e.c,l+d.length-1);var p=or(s);if(o)for(f=0;f=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function xp(){return{SheetNames:[],Sheets:{}}}function kp(e,t,n,r){var i=1;if(!n)for(;i<=65535;++i,n=void 0)if(-1==e.SheetNames.indexOf(n="Sheet"+i))break;if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||n;for(++i;i<=65535;++i)if(-1==e.SheetNames.indexOf(n=a+i))break}if(pd(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Cp(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=wp(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function Ap(e,t){return e.z=t,e}function Ep(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function Tp(e,t,n){return Ep(e,"#"+t,n)}function Sp(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})}function Mp(e,t,n,r){for(var i="string"!=typeof t?t:vr(t),o="string"==typeof t?t:gr(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=yp(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e}var Op={encode_col:cr,encode_row:or,encode_cell:pr,encode_range:gr,decode_col:lr,decode_row:ir,split_cell:dr,decode_cell:fr,decode_range:mr,format_cell:yr,sheet_add_aoa:xr,sheet_add_json:vp,sheet_add_dom:ff,aoa_to_sheet:kr,json_to_sheet:bp,table_to_sheet:pf,table_to_book:mf,sheet_to_csv:pp,sheet_to_txt:mp,sheet_to_json:hp,sheet_to_html:df,sheet_to_formulae:gp,sheet_to_row_object_array:hp,sheet_get_cell:yp,book_new:xp,book_append_sheet:kp,book_set_sheet_visibility:Cp,cell_set_number_format:Ap,cell_set_hyperlink:Ep,cell_set_internal_link:Tp,cell_add_comment:Sp,sheet_set_array_formula:Mp,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};i.version}).call(this,n("b639").Buffer,n("4362"))},"25cac":function(e,t,n){e.exports=n.p+"img/a-8-DNA.svg"},2613:function(e,t,n){e.exports=n.p+"img/ziyuan_5.svg"},"265a":function(e,t,n){e.exports=n.p+"img/bijiben.svg"},"26eb":function(e,t,n){e.exports=n.p+"img/-_17.svg"},2710:function(e,t,n){e.exports=n.p+"img/fanqiejiang.svg"},2771:function(e,t,n){},2783:function(e,t,n){e.exports=n.p+"img/ziyuan_13.svg"},"27bf":function(e,t,n){"use strict";e.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}e.exports=r},"2e03":function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return f}));var r=n("1651"),i=n("04f0"),o=n("efdf"),a=n("5e9b");const s=new Map;class l{constructor(e){this.room=e,this.onmessage=null,this._onChange=t=>t.key===e&&null!==this.onmessage&&this.onmessage({data:o["d"](t.newValue||"")}),a["b"](this._onChange)}postMessage(e){a["c"].setItem(this.room,o["e"](o["b"](e)))}close(){a["a"](this._onChange)}}const c="undefined"===typeof BroadcastChannel?l:BroadcastChannel,u=e=>r["e"](s,e,()=>{const t=i["a"](),n=new c(e);return n.onmessage=e=>t.forEach(t=>t(e.data,"broadcastchannel")),{bc:n,subs:t}}),h=(e,t)=>(u(e).subs.add(t),t),d=(e,t)=>{const n=u(e),r=n.subs.delete(t);return r&&0===n.subs.size&&(n.bc.close(),s.delete(e)),r},f=(e,t,n=null)=>{const r=u(e);r.bc.postMessage(t),r.subs.forEach(e=>e(t,n))}},"2f97":function(e,t,n){e.exports=n.p+"img/brainImpairedPink.jpg"},"300d":function(e,t,n){},"318a":function(e,t,n){e.exports=n.p+"img/jisuan.svg"},"31fc":function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"n",(function(){return i})),n.d(t,"p",(function(){return o})),n.d(t,"o",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"l",(function(){return k})),n.d(t,"h",(function(){return C}));var r=function(e){return e.charCodeAt(0)},i=function(e){return e.codePointAt(0)},o=function(e,t){return c(e.toString(16),t,"0").toUpperCase()},a=function(e){return o(e,2)},s=function(e){return String.fromCharCode(e)},l=function(e){return s(parseInt(e,16))},c=function(e,t,n){for(var r="",i=0,o=t-e.length;i=55296&&r<=56319&&e.length>i&&(n=e.charCodeAt(i),n>=56320&&n<=57343&&(o=2)),[e.slice(t,t+o),o]},b=function(e){for(var t=[],n=0,r=e.length;nn&&c(),a+=f,s+=m}}return c(),l},x=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,k=function(e){var t=e.match(x);if(t){var n=t[1],r=t[2],i=void 0===r?"01":r,o=t[3],a=void 0===o?"01":o,s=t[4],l=void 0===s?"00":s,c=t[5],u=void 0===c?"00":c,h=t[6],d=void 0===h?"00":h,f=t[7],p=void 0===f?"Z":f,m=t[8],g=void 0===m?"00":m,v=t[9],b=void 0===v?"00":v,y="Z"===p?"Z":""+p+g+":"+b,w=new Date(n+"-"+i+"-"+a+"T"+l+":"+u+":"+d+y);return w}},C=function(e,t){var n,r,i=0;while(i=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,e.exports=l?a:s},"3aa9":function(e,t,n){"use strict";n("7de5")},"3acd":function(e,t,n){e.exports=n.p+"img/fanwendengji.svg"},"3b50":function(e,t,n){e.exports=n.p+"img/jiandan.svg"},"3bbe":function(e,t,n){var r=n("1626"),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},"3bd3":function(e,t,n){e.exports=n.p+"img/jiaoxuelou.svg"},"3c2a":function(e,t,n){e.exports=n.p+"img/fishbone.png"},"3cc4":function(e,t,n){e.exports=n.p+"img/courseGreen.jpg"},"3d18":function(e,t,n){e.exports=n.p+"img/jiangbei.svg"},"3e01":function(e,t,n){"use strict";var r=n("06c3");e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},"3ec8":function(e,t,n){e.exports=n.p+"img/a-19guaizhang.svg"},"3eea":function(e,t,n){var r=n("fbad");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},"3f26":function(e,t,n){},"3f29":function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(N){l=null}var c=function(){throw new a},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,h=n("ddbb")(),d=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":h?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&h?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&h?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?d(""[Symbol.iterator]()):r,"%Symbol%":h?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};try{null.error}catch(N){var g=d(d(N));m["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n("06c3"),w=n("3e01"),x=y.call(Function.call,Array.prototype.concat),k=y.call(Function.apply,Array.prototype.splice),C=y.call(Function.call,String.prototype.replace),A=y.call(Function.call,String.prototype.slice),E=y.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,M=function(e){var t=A(e,0,1),n=A(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,T,(function(e,t,n,i){r[r.length]=n?C(i,S,"$1"):t||e})),r},O=function(e,t){var n,r=e;if(w(b,r)&&(n=b[r],r="%"+n[0]+"%"),w(m,r)){var o=m[r];if(o===f&&(o=v(r)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=M(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),s=o.name,c=o.value,u=!1,h=o.alias;h&&(r=h[0],k(n,x([0,1],h)));for(var d=1,f=!0;d=n.length){var b=l(c,p);f=!!b,c=f&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else f=w(c,p),c=c[p];f&&!u&&(m[s]=c)}}return c}},"3f35":function(e,t,n){var r=n("4883"),i=n("c191"),o=n("6003");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"401c":function(e){e.exports=JSON.parse('"eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHhiQ7jjriPdpoziFpdGGWcNRrYBIt1WcbvotCCYHK0uxDhkzvwVyHVOksWd0H6bQmxQapdBJCo1T6G0KvUuh9yk0SaG/UuhDCp2m0FkKTVNolkLnKfQxhS5SaJ5Clym0SKGrFLpOoU8p9DmFblJoGU+iW/I8bSyjDNTp8zzIKVIpqawMDIuGlrRdPDiYEun4jVeG4ZwlU2MM/zIVxHABU1AMy6WQSqG/U4ihV6aEGW8xVcvQ3oZxZQox3MDQC+P7kEJ3KXSfQgyTbhnS5/MLJMKSO0y78bls9EqX8KgvzT3jZ/50bo9L3fYraQq1XR3Ls1vu7FhpYxV7HoBVZLDxGJeMA7uycarrOmHXwnuzCipKagMooBV3C/9GDFy/YqpjxSR+bORYmilFVXFH2hPOtmJPDUcbO7LE1H7shURlxYYjtdj6E2PFv+5dCpfxcF4KXPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO"')},"406c":function(e,t,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=r},"41ab":function(e,t,n){},"41af":function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},"41c5":function(e,t,n){e.exports=n.p+"img/-_12.svg"},4244:function(e,t,n){e.exports=n.p+"img/a-20-shuye.svg"},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43cf":function(e,t,n){e.exports=n.p+"img/xiezizhuo.svg"},"442c":function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return N})),n.d(t,"i",(function(){return L})),n.d(t,"j",(function(){return O}));var r=n("b923"),i=n("6f27"),o=n("6ffb");const a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const l=(e,t,n)=>{let a=s(e,n);if(!a)return!1;let l=h(a);if(!l){let n=a.blockRange(),i=n&&Object(r["k"])(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=l.nodeBefore;if(!u.type.spec.isolating&&E(e,l,t))return!0;if(0==a.parent.content.size&&(c(u,"end")||o["NodeSelection"].isSelectable(u))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=h(r)}let s=a&&a.nodeBefore;return!(!s||!o["NodeSelection"].isSelectable(s))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function d(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let a=d(e,n);if(!a)return!1;let s=m(a);if(!s)return!1;let l=s.nodeAfter;if(E(e,s,t))return!0;if(0==a.parent.content.size&&(c(l,"start")||o["NodeSelection"].isSelectable(l))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=v(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,s.createAndFill());i.setSelection(o["Selection"].near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},y=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o["AllSelection"]||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=v(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Object(r["g"])(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&Object(r["k"])(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)};function x(e){return(t,n)=>{let{$from:i,$to:a}=t.selection;if(t.selection instanceof o["NodeSelection"]&&t.selection.node.isBlock)return!(!i.parentOffset||!Object(r["g"])(t.doc,i.pos))&&(n&&n(t.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(n){let s=a.parentOffset==a.parent.content.size,l=t.tr;(t.selection instanceof o["TextSelection"]||t.selection instanceof o["AllSelection"])&&l.deleteSelection();let c=0==i.depth?null:v(i.node(-1).contentMatchAt(i.indexAfter(-1))),u=e&&e(a.parent,s),h=u?[u]:s&&c?[{type:c}]:void 0,d=Object(r["g"])(l.doc,l.mapping.map(i.pos),1,h);if(h||d||!Object(r["g"])(l.doc,l.mapping.map(i.pos),1,c?[{type:c}]:void 0)||(c&&(h=[{type:c}]),d=!0),d&&(l.split(l.mapping.map(i.pos),1,h),!s&&!i.parentOffset&&i.parent.type!=c)){let e=l.mapping.map(i.before()),t=l.doc.resolve(e);c&&i.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&l.setNodeMarkup(l.mapping.map(i.before()),c)}n(l.scrollIntoView())}return!0}}const k=x(),C=(e,t)=>(t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0);function A(e,t,n){let i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function E(e,t,n){let a,s,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(A(e,t,n))return!0;let h=t.parent.canReplace(t.index(),t.index()+1);if(h&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){let o=t.pos+u.nodeSize,s=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)s=i["Fragment"].from(a[e].create(null,s));s=i["Fragment"].from(l.copy(s));let c=e.tr.step(new r["b"](t.pos-1,o,t.pos,o,new i["Slice"](s,1,0),a.length,!0)),h=o+2*a.length;Object(r["f"])(c.doc,h)&&c.join(h),n(c.scrollIntoView())}return!0}let d=o["Selection"].findFrom(t,1),f=d&&d.$from.blockRange(d.$to),p=f&&Object(r["k"])(f);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(f,p).scrollIntoView()),!0;if(h&&c(u,"start",!0)&&c(l,"end")){let o=l,a=[];for(;;){if(a.push(o),o.isTextblock)break;o=o.lastChild}let s=u,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,s.content)){if(n){let o=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)o=i["Fragment"].from(a[e].copy(o));let s=e.tr.step(new r["b"](t.pos-a.length,t.pos+u.nodeSize,t.pos+c,t.pos+u.nodeSize-c,new i["Slice"](o,a.length,0),0,!0));n(s.scrollIntoView())}return!0}}return!1}function T(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;while(i.node(a).isInline){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["TextSelection"].create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}const S=T(-1),M=T(1);function O(e,t=null){return function(n,i){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Object(r["i"])(s,e,t);return!!l&&(i&&i(n.tr.wrap(s,l).scrollIntoView()),!0)}}function N(e,t=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}function L(e,t=null){return function(n,r){let{empty:i,$cursor:o,ranges:a}=n.selection;if(i&&!o||!D(n.doc,a,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let i=!1,o=n.tr;for(let t=0;!i&&tt.clients.forEach((t,r)=>{const i=e.doc.store.clients.get(r);for(let o=0;o{let n=0,r=e.length-1;while(n<=r){const i=o["d"]((n+r)/2),a=e[i],s=a.clock;if(s<=t){if(t{const n=e.clients.get(t.client);return void 0!==n&&null!==C(n,t.clock)},E=e=>{e.clients.forEach(e=>{let t,n;for(e.sort((e,t)=>e.clock-t.clock),t=1,n=1;t=i.clock?r.len=o["g"](r.len,i.clock+i.len-r.clock):(n{const t=new x;for(let n=0;n{if(!t.clients.has(o)){const a=r.slice();for(let t=n+1;t{a["e"](e.clients,t,()=>[]).push(new w(n,r))},M=()=>new x,O=e=>{const t=M();return e.clients.forEach((e,n)=>{const r=[];for(let t=0;t0&&t.clients.set(n,r)}),t},N=(e,t)=>{s["n"](e.restEncoder,t.clients.size),i["c"](t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),s["n"](e.restEncoder,t);const r=n.length;s["n"](e.restEncoder,r);for(let i=0;i{const t=new x,n=l["k"](e.restDecoder);for(let r=0;r0){const i=a["e"](t.clients,n,()=>[]);for(let t=0;t{const r=new x,i=l["k"](e.restDecoder);for(let o=0;o0){const e=new q;return s["n"](e.restEncoder,0),N(e,r),e.toUint8Array()}return null},P=c["b"];class I extends r["a"]{constructor({guid:e=c["c"](),collectionid:t=null,gc:n=!0,gcFilter:r=(()=>!0),meta:i=null,autoLoad:o=!1,shouldLoad:a=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=P(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new ye,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=a,this.autoLoad=o,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=u["a"](e=>{this.on("load",()=>{this.isLoaded=!0,e(this)})});const s=()=>u["a"](e=>{const t=n=>{void 0!==n&&!0!==n||(this.off("sync",t),e())};this.on("sync",t)});this.on("sync",e=>{!1===e&&this.isSynced&&(this.whenSynced=s()),this.isSynced=void 0===e||!0===e,this.isLoaded||this.emit("load",[])}),this.whenSynced=s()}load(){const e=this._item;null===e||this.shouldLoad||je(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(i["c"](this.subdocs).map(e=>e.guid))}transact(e,t=null){return je(this,e,t)}get(e,t=ct){const n=a["e"](this.share,e,()=>{const e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==ct&&r!==t){if(r===ct){const r=new t;r._map=n._map,n._map.forEach(e=>{for(;null!==e;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;null!==e;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}throw new Error(`Type with the name ${e} has already been defined with a different constructor`)}return n}getArray(e=""){return this.get(e,Mt)}getText(e=""){return this.get(e,Zt)}getMap(e=""){return this.get(e,Dt)}getXmlFragment(e=""){return this.get(e,Qt)}toJSON(){const e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){i["c"](this.subdocs).forEach(e=>e.destroy());const e=this._item;if(null!==e){this._item=null;const t=e.content;t.doc=new I({guid:this.guid,...t.opts,shouldLoad:!1}),t.doc._item=e,je(e.parent.doc,n=>{const r=t.doc;e.deleted||n.subdocsAdded.add(r),n.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(e,t){super.on(e,t)}off(e,t){super.off(e,t)}}class R{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return l["k"](this.restDecoder)}readDsLen(){return l["k"](this.restDecoder)}}class F extends R{readLeftID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readRightID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readClient(){return l["k"](this.restDecoder)}readInfo(){return l["h"](this.restDecoder)}readString(){return l["j"](this.restDecoder)}readParentInfo(){return 1===l["k"](this.restDecoder)}readTypeRef(){return l["k"](this.restDecoder)}readLen(){return l["k"](this.restDecoder)}readAny(){return l["g"](this.restDecoder)}readBuf(){return h["a"](l["l"](this.restDecoder))}readJSON(){return JSON.parse(l["j"](this.restDecoder))}readKey(){return l["j"](this.restDecoder)}}class z{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=l["k"](this.restDecoder),this.dsCurrVal}readDsLen(){const e=l["k"](this.restDecoder)+1;return this.dsCurrVal+=e,e}}class j extends z{constructor(e){super(e),this.keys=[],l["k"](e),this.keyClockDecoder=new l["a"](l["l"](e)),this.clientDecoder=new l["d"](l["l"](e)),this.leftClockDecoder=new l["a"](l["l"](e)),this.rightClockDecoder=new l["a"](l["l"](e)),this.infoDecoder=new l["b"](l["l"](e),l["h"]),this.stringDecoder=new l["c"](l["l"](e)),this.parentInfoDecoder=new l["b"](l["l"](e),l["h"]),this.typeRefDecoder=new l["d"](l["l"](e)),this.lenDecoder=new l["d"](l["l"](e))}readLeftID(){return new he(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new he(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return l["g"](this.restDecoder)}readBuf(){return l["l"](this.restDecoder)}readJSON(){return l["g"](this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e{r=o["g"](r,t[0].id.clock);const i=Ce(t,r);s["n"](e.restEncoder,t.length-i),e.writeClient(n),s["n"](e.restEncoder,r);const a=t[i];a.write(e,r-a.id.clock);for(let o=i+1;o{const r=new Map;n.forEach((e,n)=>{xe(t,n)>e&&r.set(n,e)}),we(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),s["n"](e.restEncoder,r.size),i["c"](r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{_(e,t.clients.get(n),n,r)})},G=(e,t)=>{const n=a["c"](),r=l["k"](e.restDecoder);for(let i=0;i{const r=[];let o=i["c"](n.keys()).sort((e,t)=>e-t);if(0===o.length)return null;const l=()=>{if(0===o.length)return null;let e=n.get(o[o.length-1]);while(e.refs.length===e.i){if(o.pop(),!(o.length>0))return null;e=n.get(o[o.length-1])}return e};let c=l();if(null===c&&0===r.length)return null;const u=new ye,h=new Map,d=(e,t)=>{const n=h.get(e);(null==n||n>t)&&h.set(e,t)};let f=c.refs[c.i++];const p=new Map,m=()=>{for(const e of r){const t=e.id.client,r=n.get(t);r?(r.i--,u.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):u.clients.set(t,[e]),o=o.filter(e=>e!==t)}r.length=0};while(1){if(f.constructor!==_n){const i=a["e"](p,f.id.client,()=>xe(t,f.id.client)),o=i-f.id.clock;if(o<0)r.push(f),d(f.id.client,f.id.clock-1),m();else{const i=f.getMissing(e,t);if(null!==i){r.push(f);const e=n.get(i)||{refs:[],i:0};if(e.refs.length!==e.i){f=e.refs[e.i++];continue}d(i,xe(t,i)),m()}else(0===o||o0)f=r.pop();else if(null!==c&&c.i0){const e=new q;return W(e,u,new Map),s["n"](e.restEncoder,0),{missing:h,update:e.toUint8Array()}}return null},Y=(e,t)=>W(e,t.doc.store,t.beforeState),K=(e,t,n,r=new j(e))=>je(t,e=>{e.local=!1;let t=!1;const n=e.doc,i=n.store,o=G(r,n),a=V(e,i,o),s=i.pendingStructs;if(s){for(const[e,n]of s.missing)if(nt)&&s.missing.set(e,t)}s.update=We([s.update,a.update])}}else i.pendingStructs=a;const c=L(r,e,i);if(i.pendingDs){const t=new j(l["e"](i.pendingDs));l["k"](t.restDecoder);const n=L(t,e,i);i.pendingDs=c&&n?We([c,n]):c||n}else i.pendingDs=c;if(t){const t=i.pendingStructs.update;i.pendingStructs=null,Z(e.doc,t)}},n,!1),Z=(e,t,n,r=j)=>{const i=l["e"](t);K(i,e,n,new r(i))},X=(e,t,n)=>Z(e,t,n,F),J=(e,t,n=new Map)=>{W(e,t.store,n),N(e,O(t.store))},Q=(e,t=new Uint8Array([0]),n=new q)=>{const r=te(t);J(n,e,r);const i=[n.toUint8Array()];if(e.store.pendingDs&&i.push(e.store.pendingDs),e.store.pendingStructs&&i.push(Ge(e.store.pendingStructs.update,t)),i.length>1){if(n.constructor===U)return qe(i.map((e,t)=>0===t?e:Xe(e)));if(n.constructor===q)return We(i)}return i[0]},$=(e,t)=>Q(e,t,new U),ee=e=>{const t=new Map,n=l["k"](e.restDecoder);for(let r=0;ree(new R(l["e"](e))),ne=(e,t)=>(s["n"](e.restEncoder,t.size),i["c"](t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{s["n"](e.restEncoder,t),s["n"](e.restEncoder,n)}),e),re=(e,t)=>ne(e,we(t.store)),ie=(e,t=new H)=>(e instanceof Map?ne(t,e):re(t,e),t.toUint8Array()),oe=e=>ie(e,new B);class ae{constructor(){this.l=[]}}const se=()=>new ae,le=(e,t)=>e.l.push(t),ce=(e,t)=>{const n=e.l,r=n.length;e.l=n.filter(e=>t!==e),r===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},ue=(e,t,n)=>p["a"](e.l,[t,n]);class he{constructor(e,t){this.client=e,this.clock=t}}const de=(e,t)=>e===t||null!==e&&null!==t&&e.client===t.client&&e.clock===t.clock,fe=(e,t)=>new he(e,t),pe=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw d["c"]()};class me{constructor(e,t){this.ds=e,this.sv=t}}const ge=(e,t)=>new me(e,t),ve=(ge(M(),new Map),(e,t)=>void 0===t?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!A(t.ds,e.id)),be=(e,t)=>{const n=a["e"](e.meta,be,m["a"]),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t{}),n.add(t))};class ye{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const we=e=>{const t=new Map;return e.clients.forEach((e,n)=>{const r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},xe=(e,t)=>{const n=e.clients.get(t);if(void 0===n)return 0;const r=n[n.length-1];return r.id.clock+r.length},ke=(e,t)=>{let n=e.clients.get(t.id.client);if(void 0===n)n=[],e.clients.set(t.id.client,n);else{const e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw d["c"]()}n.push(t)},Ce=(e,t)=>{let n=0,r=e.length-1,i=e[r],a=i.id.clock;if(a===t)return r;let s=o["d"](t/(a+i.length-1)*r);while(n<=r){if(i=e[s],a=i.id.clock,a<=t){if(t{const n=e.clients.get(t.client);return n[Ce(n,t.clock)]},Ee=Ae,Te=(e,t,n)=>{const r=Ce(t,n),i=t[r];return i.id.clock{const n=e.doc.store.clients.get(t.client);return n[Te(e,n,t.clock)]},Me=(e,t,n)=>{const r=t.clients.get(n.client),i=Ce(r,n.clock),o=r[i];return n.clock!==o.id.clock+o.length-1&&o.constructor!==un&&r.splice(i+1,0,jn(e,o,n.clock-o.id.clock+1)),o},Oe=(e,t,n)=>{const r=e.clients.get(t.id.client);r[Ce(r,t.id.clock)]=n},Ne=(e,t,n,r,i)=>{if(0===r)return;const o=n+r;let a,s=Te(e,t,n);do{a=t[s++],o!(0===t.deleteSet.clients.size&&!a["a"](t.afterState,(e,n)=>t.beforeState.get(n)!==e))&&(E(t.deleteSet),Y(e,t),N(e,t.deleteSet),!0),Pe=(e,t,n)=>{const r=t._item;(null===r||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&a["e"](e.changed,t,m["a"]).add(n)},Ie=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted!==n.deleted||r.constructor!==n.constructor||!r.mergeWith(n))break;n instanceof Bn&&null!==n.parentSub&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r)}const o=t-i;return o&&e.splice(t+1-o,o),o},Re=(e,t,n)=>{for(const[r,i]of e.clients.entries()){const e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){const o=i[r],a=o.clock+o.len;for(let r=Ce(e,o.clock),i=e[r];r{e.clients.forEach((e,n)=>{const r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){const n=e[t],i=o["h"](r.length-1,1+Ce(r,n.clock+n.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+Ie(r,e)}})},ze=(e,t)=>{if(tl.push(()=>{null!==t._item&&t._item.deleted||t._callObserver(n,e)})),l.push(()=>{n.changedParentTypes.forEach((e,t)=>{t._dEH.l.length>0&&(null===t._item||!t._item.deleted)&&(e=e.filter(e=>null===e.target._item||!e.target._item.deleted),e.forEach(e=>{e.currentTarget=t,e._path=null}),e.sort((e,t)=>e.path.length-t.path.length),ue(t._dEH,e,n))})}),l.push(()=>r.emit("afterTransaction",[n,r])),Object(p["a"])(l,[]),n._needFormattingCleanup&&Vt(n)}finally{r.gc&&Re(a,i,r.gcFilter),Fe(a,i),n.afterState.forEach((e,t)=>{const r=n.beforeState.get(t)||0;if(r!==e){const e=i.clients.get(t),n=o["g"](Ce(e,r),1);for(let t=e.length-1;t>=n;)t-=1+Ie(e,t)}});for(let e=s.length-1;e>=0;e--){const{client:t,clock:n}=s[e].id,r=i.clients.get(t),o=Ce(r,n);o+11||o>0&&Ie(r,o)}if(n.local||n.afterState.get(r.clientID)===n.beforeState.get(r.clientID)||(g["b"](v["e"],v["b"],"[yjs] ",v["h"],v["g"],"Changed the client-id because another client seems to be using it."),r.clientID=P()),r.emit("afterTransactionCleanup",[n,r]),r._observers.has("update")){const e=new U,t=Le(e,n);t&&r.emit("update",[e.toUint8Array(),n.origin,r,n])}if(r._observers.has("updateV2")){const e=new q,t=Le(e,n);t&&r.emit("updateV2",[e.toUint8Array(),n.origin,r,n])}const{subdocsAdded:l,subdocsLoaded:c,subdocsRemoved:u}=n;(l.size>0||u.size>0||c.size>0)&&(l.forEach(e=>{e.clientID=r.clientID,null==e.collectionid&&(e.collectionid=r.collectionid),r.subdocs.add(e)}),u.forEach(e=>r.subdocs.delete(e)),r.emit("subdocs",[{loaded:c,added:l,removed:u},r,n]),u.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,e])):ze(e,t+1)}}},je=(e,t,n=null,r=!0)=>{const i=e._transactionCleanups;let o=!1,a=null;null===e._transaction&&(o=!0,e._transaction=new De(e,n,r),i.push(e._transaction),1===i.length&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{a=t(e._transaction)}finally{if(o){const t=e._transaction===i[0];e._transaction=null,t&&ze(i,0)}}return a};r["a"];function*Be(e){const t=l["k"](e.restDecoder);for(let n=0;nWe(e,F,U),_e=(e,t)=>{if(e.constructor===un){const{client:n,clock:r}=e.id;return new un(fe(n,r+t),e.length-t)}if(e.constructor===_n){const{client:n,clock:r}=e.id;return new _n(fe(n,r+t),e.length-t)}{const n=e,{client:r,clock:i}=n.id;return new Bn(fe(r,i+t),null,fe(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},We=(e,t=j,n=q)=>{if(1===e.length)return e[0];const r=e.map(e=>new t(l["e"](e)));let i=r.map(e=>new Ue(e,!0)),o=null;const a=new n,s=new He(a);while(1){if(i=i.filter(e=>null!==e.curr),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){const n=e.curr.id.clock-t.curr.id.clock;return 0===n?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===_n?1:-1:n}return t.curr.id.client-e.curr.id.client}),0===i.length)break;const e=i[0],t=e.curr.id.client;if(null!==o){let n=e.curr,r=!1;while(null!==n&&n.id.clock+n.length<=o.struct.id.clock+o.struct.length&&n.id.client>=o.struct.id.client)n=e.next(),r=!0;if(null===n||n.id.client!==t||r&&n.id.clock>o.struct.id.clock+o.struct.length)continue;if(t!==o.struct.id.client)Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next();else if(o.struct.id.clock+o.struct.length0&&(o.struct.constructor===_n?o.struct.length-=t:n=_e(n,t)),o.struct.mergeWith(n)||(Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next())}}else o={struct:e.curr,offset:0},e.next();for(let n=e.curr;null!==n&&n.id.client===t&&n.id.clock===o.struct.id.clock+o.struct.length&&n.constructor!==_n;n=e.next())Ye(s,o.struct,o.offset),o={struct:n,offset:0}}null!==o&&(Ye(s,o.struct,o.offset),o=null),Ke(s);const c=r.map(e=>D(e)),u=T(c);return N(a,u),a.toUint8Array()},Ge=(e,t,n=j,r=q)=>{const i=te(t),a=new r,s=new He(a),c=new n(l["e"](e)),u=new Ue(c,!1);while(u.curr){const e=u.curr,t=e.id.client,n=i.get(t)||0;if(u.curr.constructor!==_n)if(e.id.clock+e.length>n){Ye(s,e,o["g"](n-e.id.clock,0)),u.next();while(u.curr&&u.curr.id.client===t)Ye(s,u.curr,0),u.next()}else while(u.curr&&u.curr.id.client===t&&u.curr.id.clock+u.curr.length<=n)u.next();else u.next()}Ke(s);const h=D(c);return N(a,h),a.toUint8Array()},Ve=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:s["f"](e.encoder.restEncoder)}),e.encoder.restEncoder=s["e"](),e.written=0)},Ye=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&Ve(e),0===e.written&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),s["n"](e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},Ke=e=>{Ve(e);const t=e.encoder.restEncoder;s["n"](t,e.clientStructs.length);for(let n=0;n{const i=new n(l["e"](e)),o=new Ue(i,!1),a=new r,s=new He(a);for(let l=o.curr;null!==l;l=o.next())Ye(s,t(l),0);Ke(s);const c=D(i);return N(a,c),a.toUint8Array()},Xe=e=>Ze(e,p["c"],j,U),Je="You must not compute changes after the event-handler fired.";class Qe{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=$e(this.currentTarget,this.target))}deletes(e){return A(this.transaction.deleteSet,e.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const e=new Map,t=this.target,n=this.transaction.changed.get(t);n.forEach(n=>{if(null!==n){const r=t._map.get(n);let o,a;if(this.adds(r)){let e=r.left;while(null!==e&&this.adds(e))e=e.left;if(this.deletes(r)){if(null===e||!this.deletes(e))return;o="delete",a=i["e"](e.content.getContent())}else null!==e&&this.deletes(e)?(o="update",a=i["e"](e.content.getContent())):(o="add",a=void 0)}else{if(!this.deletes(r))return;o="delete",a=i["e"](r.content.getContent())}e.set(n,{action:o,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(null===e){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const t=this.target,n=m["a"](),r=m["a"](),i=[];e={added:n,deleted:r,delta:i,keys:this.keys};const o=this.transaction.changed.get(t);if(o.has(null)){let e=null;const o=()=>{e&&i.push(e)};for(let i=t._start;null!==i;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&(null!==e&&void 0!==e.delete||(o(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?(null!==e&&void 0!==e.insert||(o(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):(null!==e&&void 0!==e.retain||(o(),e={retain:0}),e.retain+=i.length);null!==e&&void 0===e.retain&&o()}this._changes=e}return e}}const $e=(e,t)=>{const n=[];while(null!==t._item&&t!==e){if(null!==t._item.parentSub)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;while(r!==t._item&&null!==r)r.deleted||e++,r=r.right;n.unshift(e)}t=t._item.parent}return n},et=80;let tt=0;class nt{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=tt++}}const rt=e=>{e.timestamp=tt++},it=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=tt++},ot=(e,t,n)=>{if(e.length>=et){const r=e.reduce((e,t)=>e.timestamp{if(null===e._start||0===t||null===e._searchMarker)return null;const n=0===e._searchMarker.length?null:e._searchMarker.reduce((e,n)=>o["a"](t-e.index)t)r=r.left,!r.deleted&&r.countable&&(i-=r.length);while(null!==r.left&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return null!==n&&o["a"](n.index-i){for(let r=e.length-1;r>=0;r--){const i=e[r];if(n>0){let t=i.p;t.marker=!1;while(t&&(t.deleted||!t.countable))t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(null===t||!0===t.marker){e.splice(r,1);continue}i.p=t,t.marker=!0}(t0&&t===i.index)&&(i.index=o["g"](t,i.index+n))}},lt=(e,t,n)=>{const r=e,i=t.changedParentTypes;while(1){if(a["e"](i,e,()=>[]).push(n),null===e._item)break;e=e._item.parent}ue(r._eH,n,t)};class ct{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=se(),this._dEH=se(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw d["b"]()}clone(){throw d["b"]()}_write(e){}get _first(){let e=this._start;while(null!==e&&e.deleted)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){le(this._eH,e)}observeDeep(e){le(this._dEH,e)}unobserve(e){ce(this._eH,e)}unobserveDeep(e){ce(this._dEH,e)}toJSON(){}}const ut=(e,t,n)=>{t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t;const i=[];let o=e._start;while(null!==o&&r>0){if(o.countable&&!o.deleted){const e=o.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n0;n++)i.push(e[n]),r--;t=0}}o=o.right}return i},ht=e=>{const t=[];let n=e._start;while(null!==n){if(n.countable&&!n.deleted){const e=n.content.getContent();for(let n=0;n{let n=0,r=e._start;while(null!==r){if(r.countable&&!r.deleted){const i=r.content.getContent();for(let r=0;r{const n=[];return dt(e,(r,i)=>{n.push(t(r,i,e))}),n},pt=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(null===n){while(null!==t&&t.deleted)t=t.right;if(null===t)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}const e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},mt=(e,t)=>{const n=at(e,t);let r=e._start;for(null!==n&&(r=n.p,t-=n.index);null!==r;r=r.right)if(!r.deleted&&r.countable){if(t{let i=n;const o=e.doc,a=o.clientID,s=o.store,l=null===n?t._start:n.right;let c=[];const u=()=>{c.length>0&&(i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new An(c)),i.integrate(e,0),c=[])};r.forEach(n=>{if(null===n)c.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new hn(new Uint8Array(n))),i.integrate(e,0);break;case I:i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new gn(n)),i.integrate(e,0);break;default:if(!(n instanceof ct))throw new Error("Unexpected content type in insert operation");i=new Bn(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new Fn(n)),i.integrate(e,0)}}}),u()},vt=()=>d["a"]("Length exceeded!"),bt=(e,t,n,r)=>{if(n>t._length)throw vt();if(0===n)return t._searchMarker&&st(t._searchMarker,n,r.length),gt(e,t,null,r);const i=n,o=at(t,n);let a=t._start;for(null!==o&&(a=o.p,n-=o.index,0===n&&(a=a.prev,n+=a&&a.countable&&!a.deleted?a.length:0));null!==a;a=a.right)if(!a.deleted&&a.countable){if(n<=a.length){n{const r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start});let i=r.p;if(i)while(i.right)i=i.right;return gt(e,t,i,n)},wt=(e,t,n,r)=>{if(0===r)return;const i=n,o=r,a=at(t,n);let s=t._start;for(null!==a&&(s=a.p,n-=a.index);null!==s&&n>0;s=s.right)!s.deleted&&s.countable&&(n0&&null!==s)s.deleted||(r0)throw vt();t._searchMarker&&st(t._searchMarker,i,-o+r)},xt=(e,t,n)=>{const r=t._map.get(n);void 0!==r&&r.delete(e)},kt=(e,t,n,r)=>{const i=t._map.get(n)||null,o=e.doc,a=o.clientID;let s;if(null==r)s=new An([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:s=new An([r]);break;case Uint8Array:s=new hn(r);break;case I:s=new gn(r);break;default:if(!(r instanceof ct))throw new Error("Unexpected content type");s=new Fn(r)}new Bn(fe(a,xe(o.store,a)),i,i&&i.lastId,null,null,t,n,s).integrate(e,0)},Ct=(e,t)=>{const n=e._map.get(t);return void 0===n||n.deleted?void 0:n.content.getContent()[n.length-1]},At=e=>{const t={};return e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},Et=(e,t)=>{const n=e._map.get(t);return void 0!==n&&!n.deleted},Tt=e=>b["a"](e.entries(),e=>!e[1].deleted);class St extends Qe{constructor(e,t){super(e,t),this._transaction=t}}class Mt extends ct{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const t=new Mt;return t.push(e),t}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Mt}clone(){const e=new Mt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}_callObserver(e,t){super._callObserver(e,t),lt(this,e,new St(this,e))}insert(e,t){null!==this.doc?je(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}push(e){null!==this.doc?je(this.doc,t=>{yt(t,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,t=1){null!==this.doc?je(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}get(e){return mt(this,e)}toArray(){return ht(this)}slice(e=0,t=this.length){return ut(this,e,t)}toJSON(){return this.map(e=>e instanceof ct?e.toJSON():e)}map(e){return ft(this,e)}forEach(e){dt(this,e)}[Symbol.iterator](){return pt(this)}_write(e){e.writeTypeRef(On)}}const Ot=e=>new Mt;class Nt extends Qe{constructor(e,t,n){super(e,t),this.keysChanged=n}}class Dt extends ct{constructor(e){super(),this._prelimContent=null,this._prelimContent=void 0===e?new Map:new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new Dt}clone(){const e=new Dt;return this.forEach((t,n)=>{e.set(n,t instanceof ct?t.clone():t)}),e}_callObserver(e,t){lt(this,e,new Nt(this,e,t))}toJSON(){const e={};return this._map.forEach((t,n)=>{if(!t.deleted){const r=t.content.getContent()[t.length-1];e[n]=r instanceof ct?r.toJSON():r}}),e}get size(){return[...Tt(this._map)].length}keys(){return b["b"](Tt(this._map),e=>e[0])}values(){return b["b"](Tt(this._map),e=>e[1].content.getContent()[e[1].length-1])}entries(){return b["b"](Tt(this._map),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){null!==this.doc?je(this.doc,t=>{xt(t,this,e)}):this._prelimContent.delete(e)}set(e,t){return null!==this.doc?je(this.doc,n=>{kt(n,this,e,t)}):this._prelimContent.set(e,t),t}get(e){return Ct(this,e)}has(e){return Et(this,e)}clear(){null!==this.doc?je(this.doc,e=>{this.forEach((function(t,n,r){xt(e,r,n)}))}):this._prelimContent.clear()}_write(e){e.writeTypeRef(Nn)}}const Lt=e=>new Dt,Pt=(e,t)=>e===t||"object"===typeof e&&"object"===typeof t&&e&&t&&y["b"](e,t);class It{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){switch(null===this.right&&d["c"](),this.right.content.constructor){case wn:this.right.deleted||jt(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const Rt=(e,t,n)=>{while(null!==t.right&&n>0){switch(t.right.content.constructor){case wn:t.right.deleted||jt(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n{const r=new Map,i=at(t,n);if(i){const t=new It(i.p.left,i.p,i.index,r);return Rt(e,t,n-i.index)}{const i=new It(null,t._start,0,r);return Rt(e,i,n)}},zt=(e,t,n,r)=>{while(null!==n.right&&(!0===n.right.deleted||n.right.content.constructor===wn&&Pt(r.get(n.right.content.key),n.right.content.value)))n.right.deleted||r.delete(n.right.content.key),n.forward();const i=e.doc,o=i.clientID;r.forEach((r,a)=>{const s=n.left,l=n.right,c=new Bn(fe(o,xe(i.store,o)),s,s&&s.lastId,l,l&&l.id,t,null,new wn(a,r));c.integrate(e,0),n.right=c,n.forward()})},jt=(e,t)=>{const{key:n,value:r}=t;null===r?e.delete(n):e.set(n,r)},Bt=(e,t)=>{while(1){if(null===e.right)break;if(!(e.right.deleted||e.right.content.constructor===wn&&Pt(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},Ut=(e,t,n,r)=>{const i=e.doc,o=i.clientID,a=new Map;for(const s in r){const l=r[s],c=n.currentAttributes.get(s)||null;if(!Pt(c,l)){a.set(s,c);const{left:r,right:u}=n;n.right=new Bn(fe(o,xe(i.store,o)),r,r&&r.lastId,u,u&&u.id,t,null,new wn(s,l)),n.right.integrate(e,0),n.forward()}}return a},Ht=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{void 0===i[t]&&(i[t]=null)});const o=e.doc,a=o.clientID;Bt(n,i);const s=Ut(e,t,n,i),l=r.constructor===String?new Tn(r):r instanceof ct?new Fn(r):new bn(r);let{left:c,right:u,index:h}=n;t._searchMarker&&st(t._searchMarker,n.index,l.getLength()),u=new Bn(fe(a,xe(o.store,a)),c,c&&c.lastId,u,u&&u.id,t,null,l),u.integrate(e,0),n.right=u,n.index=h,n.forward(),zt(e,t,n,s)},qt=(e,t,n,r,i)=>{const o=e.doc,a=o.clientID;Bt(n,i);const s=Ut(e,t,n,i);e:while(null!==n.right&&(r>0||s.size>0&&(n.right.deleted||n.right.content.constructor===wn))){if(!n.right.deleted)switch(n.right.content.constructor){case wn:{const{key:t,value:o}=n.right.content,a=i[t];if(void 0!==a){if(Pt(a,o))s.delete(t);else{if(0===r)break e;s.set(t,o)}n.right.delete(e)}else n.currentAttributes.set(t,o);break}default:r0){let i="";for(;r>0;r--)i+="\n";n.right=new Bn(fe(a,xe(o.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Tn(i)),n.right.integrate(e,0),n.forward()}zt(e,t,n,s)},_t=(e,t,n,r,i)=>{let o=t;const s=a["c"]();while(o&&(!o.countable||o.deleted)){if(!o.deleted&&o.content.constructor===wn){const e=o.content;s.set(e.key,e)}o=o.right}let l=0,c=!1;while(t!==o){if(n===t&&(c=!0),!t.deleted){const n=t.content;switch(n.constructor){case wn:{const{key:o,value:a}=n,u=r.get(o)||null;s.get(o)===n&&u!==a||(t.delete(e),l++,c||(i.get(o)||null)!==a||u===a||(null===u?i.delete(o):i.set(o,u))),c||t.deleted||jt(i,n);break}}}t=t.right}return l},Wt=(e,t)=>{while(t&&t.right&&(t.right.deleted||!t.right.countable))t=t.right;const n=new Set;while(t&&(t.deleted||!t.countable)){if(!t.deleted&&t.content.constructor===wn){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},Gt=e=>{let t=0;return je(e.doc,n=>{let r=e._start,i=e._start,o=a["c"]();const s=a["b"](o);while(i){if(!1===i.deleted)switch(i.content.constructor){case wn:jt(s,i.content);break;default:t+=_t(n,r,i,o,s),o=a["b"](s),r=i;break}i=i.right}}),t},Vt=e=>{const t=new Set,n=e.doc;for(const[r,i]of e.afterState.entries()){const o=e.beforeState.get(r)||0;i!==o&&Ne(e,n.store.clients.get(r),o,i,e=>{e.deleted||e.content.constructor!==wn||e.constructor===un||t.add(e.parent)})}je(n,n=>{k(e,e.deleteSet,e=>{if(e instanceof un||!e.parent._hasFormatting||t.has(e.parent))return;const r=e.parent;e.content.constructor===wn?t.add(r):Wt(n,e)});for(const e of t)Gt(e)})},Yt=(e,t,n)=>{const r=n,i=a["b"](t.currentAttributes),o=t.right;while(n>0&&null!==t.right){if(!1===t.right.deleted)switch(t.right.content.constructor){case Fn:case bn:case Tn:n{null===e?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){if(null===this._changes){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(null===this._delta){const e=this.target.doc,t=[];je(e,e=>{const n=new Map,r=new Map;let i=this.target._start,o=null;const a={};let s="",l=0,c=0;const u=()=>{if(null!==o){let e=null;switch(o){case"delete":c>0&&(e={delete:c}),c=0;break;case"insert":("object"===typeof s||s.length>0)&&(e={insert:s},n.size>0&&(e.attributes={},n.forEach((t,n)=>{null!==t&&(e.attributes[n]=t)}))),s="";break;case"retain":l>0&&(e={retain:l},y["e"](a)||(e.attributes=y["a"]({},a))),l=0;break}e&&t.push(e),o=null}};while(null!==i){switch(i.content.constructor){case Fn:case bn:this.adds(i)?this.deletes(i)||(u(),o="insert",s=i.content.getContent()[0],u()):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=1):i.deleted||("retain"!==o&&(u(),o="retain"),l+=1);break;case Tn:this.adds(i)?this.deletes(i)||("insert"!==o&&(u(),o="insert"),s+=i.content.str):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=i.length):i.deleted||("retain"!==o&&(u(),o="retain"),l+=i.length);break;case wn:{const{key:t,value:s}=i.content;if(this.adds(i)){if(!this.deletes(i)){const l=n.get(t)||null;Pt(l,s)?null!==s&&i.delete(e):("retain"===o&&u(),Pt(s,r.get(t)||null)?delete a[t]:a[t]=s)}}else if(this.deletes(i)){r.set(t,s);const e=n.get(t)||null;Pt(e,s)||("retain"===o&&u(),a[t]=e)}else if(!i.deleted){r.set(t,s);const n=a[t];void 0!==n&&(Pt(n,s)?null!==n&&i.delete(e):("retain"===o&&u(),null===s?delete a[t]:a[t]=s))}i.deleted||("insert"===o&&u(),jt(n,i.content));break}}i=i.right}u();while(t.length>0){const e=t[t.length-1];if(void 0===e.retain||void 0!==e.attributes)break;t.pop()}}),this._delta=t}return this._delta}}class Zt extends ct{constructor(e){super(),this._pending=void 0!==e?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(n){console.error(n)}this._pending=null}_copy(){return new Zt}clone(){const e=new Zt;return e.applyDelta(this.toDelta()),e}_callObserver(e,t){super._callObserver(e,t);const n=new Kt(this,e,t);lt(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){let e="",t=this._start;while(null!==t)!t.deleted&&t.countable&&t.content.constructor===Tn&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){null!==this.doc?je(this.doc,n=>{const r=new It(null,this._start,0,new Map);for(let i=0;i0)&&Ht(n,this,r,a,o.attributes||{})}else void 0!==o.retain?qt(n,this,r,o.retain,o.attributes||{}):void 0!==o.delete&&Yt(n,r,o.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,t,n){const r=[],i=new Map,o=this.doc;let a="",s=this._start;function l(){if(a.length>0){const e={};let t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});const n={insert:a};t&&(n.attributes=e),r.push(n),a=""}}const c=()=>{while(null!==s){if(ve(s,e)||void 0!==t&&ve(s,t))switch(s.content.constructor){case Tn:{const r=i.get("ychange");void 0===e||ve(s,e)?void 0===t||ve(s,t)?void 0!==r&&(l(),i.delete("ychange")):void 0!==r&&r.user===s.id.client&&"added"===r.type||(l(),i.set("ychange",n?n("added",s.id):{type:"added"})):void 0!==r&&r.user===s.id.client&&"removed"===r.type||(l(),i.set("ychange",n?n("removed",s.id):{type:"removed"})),a+=s.content.str;break}case Fn:case bn:{l();const e={insert:s.content.getContent()[0]};if(i.size>0){const t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case wn:ve(s,e)&&(l(),jt(i,s.content));break}s=s.right}l()};return e||t?je(o,n=>{e&&be(n,e),t&&be(n,t),c()},"cleanup"):c(),r}insert(e,t,n){if(t.length<=0)return;const r=this.doc;null!==r?je(r,r=>{const i=Ft(r,this,e);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),Ht(r,this,i,t,n)}):this._pending.push(()=>this.insert(e,t,n))}insertEmbed(e,t,n={}){const r=this.doc;null!==r?je(r,r=>{const i=Ft(r,this,e);Ht(r,this,i,t,n)}):this._pending.push(()=>this.insertEmbed(e,t,n))}delete(e,t){if(0===t)return;const n=this.doc;null!==n?je(n,n=>{Yt(n,Ft(n,this,e),t)}):this._pending.push(()=>this.delete(e,t))}format(e,t,n){if(0===t)return;const r=this.doc;null!==r?je(r,r=>{const i=Ft(r,this,e);null!==i.right&&qt(r,this,i,t,n)}):this._pending.push(()=>this.format(e,t,n))}removeAttribute(e){null!==this.doc?je(this.doc,t=>{xt(t,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,t){null!==this.doc?je(this.doc,n=>{kt(n,this,e,t)}):this._pending.push(()=>this.setAttribute(e,t))}getAttribute(e){return Ct(this,e)}getAttributes(){return At(this)}_write(e){e.writeTypeRef(Dn)}}const Xt=e=>new Zt;class Jt{constructor(e,t=(()=>!0)){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(null!==e&&(!this._firstCall||e.deleted||!this._filter(t)))do{if(t=e.content.type,e.deleted||t.constructor!==en&&t.constructor!==Qt||null===t._start)while(null!==e){if(null!==e.right){e=e.right;break}e=e.parent===this._root?null:e.parent._item}else e=t._start}while(null!==e&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,null===e?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class Qt extends ct{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Qt}clone(){const e=new Qt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(e){return new Jt(this,e)}querySelector(e){e=e.toUpperCase();const t=new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e),n=t.next();return n.done?null:n.value}querySelectorAll(e){return e=e.toUpperCase(),i["c"](new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){lt(this,e,new nn(this,t,e))}toString(){return ft(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,t={},n){const r=e.createDocumentFragment();return void 0!==n&&n._createAssociation(r,this),dt(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){null!==this.doc?je(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}insertAfter(e,t){if(null!==this.doc)je(this.doc,n=>{const r=e&&e instanceof ct?e._item:e;gt(n,this,r,t)});else{const n=this._prelimContent,r=null===e?0:n.findIndex(t=>t===e)+1;if(0===r&&null!==e)throw d["a"]("Reference item not found");n.splice(r,0,...t)}}delete(e,t=1){null!==this.doc?je(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}toArray(){return ht(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return mt(this,e)}slice(e=0,t=this.length){return ut(this,e,t)}forEach(e){dt(this,e)}_write(e){e.writeTypeRef(Pn)}}const $t=e=>new Qt;class en extends Qt{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new en(this.nodeName)}clone(){const e=new en(this.nodeName),t=this.getAttributes();return y["c"](t,(t,n)=>{"string"===typeof t&&e.setAttribute(n,t)}),e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}toString(){const e=this.getAttributes(),t=[],n=[];for(const a in e)n.push(a);n.sort();const r=n.length;for(let a=0;a0?" "+t.join(" "):"";return`<${i}${o}>${super.toString()}`}removeAttribute(e){null!==this.doc?je(this.doc,t=>{xt(t,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,t){null!==this.doc?je(this.doc,n=>{kt(n,this,e,t)}):this._prelimAttrs.set(e,t)}getAttribute(e){return Ct(this,e)}hasAttribute(e){return Et(this,e)}getAttributes(){return At(this)}toDOM(e=document,t={},n){const r=e.createElement(this.nodeName),i=this.getAttributes();for(const o in i){const e=i[o];"string"===typeof e&&r.setAttribute(o,e)}return dt(this,i=>{r.appendChild(i.toDOM(e,t,n))}),void 0!==n&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef(Ln),e.writeKey(this.nodeName)}}const tn=e=>new en(e.readKey());class nn extends Qe{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{null===e?this.childListChanged=!0:this.attributesChanged.add(e)})}}class rn extends Dt{constructor(e){super(),this.hookName=e}_copy(){return new rn(this.hookName)}clone(){const e=new rn(this.hookName);return this.forEach((t,n)=>{e.set(n,t)}),e}toDOM(e=document,t={},n){const r=t[this.hookName];let i;return i=void 0!==r?r.createDom(this):document.createElement(this.hookName),i.setAttribute("data-yjs-hook",this.hookName),void 0!==n&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(In),e.writeKey(this.hookName)}}const on=e=>new rn(e.readKey());class an extends Zt{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new an}clone(){const e=new an;return e.applyDelta(this.toDelta()),e}toDOM(e=document,t,n){const r=e.createTextNode(this.toString());return void 0!==n&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{const t=[];for(const r in e.attributes){const n=[];for(const t in e.attributes[r])n.push({key:t,value:e.attributes[r][t]});n.sort((e,t)=>e.keye.nodeName=0;r--)n+=``;return n}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(Rn)}}const sn=e=>new an;class ln{constructor(e,t){this.id=e,this.length=t}get deleted(){throw d["b"]()}mergeWith(e){return!1}write(e,t,n){throw d["b"]()}integrate(e,t){throw d["b"]()}}const cn=0;class un extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),ke(e.doc.store,this)}write(e,t){e.writeInfo(cn),e.writeLen(this.length-t)}getMissing(e,t){return null}}class hn{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new hn(this.content)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}}const dn=e=>new hn(e.readBuf());class fn{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new fn(this.len)}splice(e){const t=new fn(this.len-e);return this.len=e,t}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){S(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}}const pn=e=>new fn(e.readLen()),mn=(e,t)=>new I({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class gn{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),null!==e.meta&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new gn(mn(this.doc.guid,this.opts))}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}const vn=e=>new gn(mn(e.readString(),e.readAny()));class bn{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new bn(this.embed)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}}const yn=e=>new bn(e.readJSON());class wn{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new wn(this.key,this.value)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){const n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}const xn=e=>new wn(e.readKey(),e.readJSON());class kn{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new kn(this.arr)}splice(e){const t=new kn(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const n=this.arr.length;e.writeLen(n-t);for(let r=t;r{const t=e.readLen(),n=[];for(let r=0;r{const t=e.readLen(),n=[];for(let r=0;r=55296&&n<=56319&&(this.str=this.str.slice(0,e-1)+"�",t.str="�"+t.str.slice(1)),t}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(0===t?this.str:this.str.slice(t))}getRef(){return 4}}const Sn=e=>new Tn(e.readString()),Mn=[Ot,Lt,Xt,tn,$t,on,sn],On=0,Nn=1,Dn=2,Ln=3,Pn=4,In=5,Rn=6;class Fn{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Fn(this.type._copy())}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;while(null!==t)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;while(null!==t)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{while(null!==t)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}}const zn=e=>new Fn(Mn[e.readTypeRef()](e)),jn=(e,t,n)=>{const{client:r,clock:i}=t.id,o=new Bn(fe(r,i+n),t,fe(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&o.markDeleted(),t.keep&&(o.keep=!0),null!==t.redone&&(o.redone=fe(t.redone.client,t.redone.clock+n)),t.right=o,null!==o.right&&(o.right.left=o),e._mergeStructs.push(o),null!==o.parentSub&&null===o.right&&o.parent._map.set(o.parentSub,o),t.length=n,o};class Bn extends ln{constructor(e,t,n,r,i,o,a,s){super(e,s.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=o,this.parentSub=a,this.redone=null,this.content=s,this.info=this.content.isCountable()?f["b"]:0}set marker(e){(this.info&f["d"])>0!==e&&(this.info^=f["d"])}get marker(){return(this.info&f["d"])>0}get keep(){return(this.info&f["a"])>0}set keep(e){this.keep!==e&&(this.info^=f["a"])}get countable(){return(this.info&f["b"])>0}get deleted(){return(this.info&f["c"])>0}set deleted(e){this.deleted!==e&&(this.info^=f["c"])}markDeleted(){this.info|=f["c"]}getMissing(e,t){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=xe(t,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=xe(t,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===he&&this.id.client!==this.parent.client&&this.parent.clock>=xe(t,this.parent.client))return this.parent.client;if(this.origin&&(this.left=Me(e,t,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Se(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===un||this.right&&this.right.constructor===un)this.parent=null;else if(this.parent){if(this.parent.constructor===he){const e=Ee(t,this.parent);e.constructor===un?this.parent=null:this.parent=e.content.type}}else this.left&&this.left.constructor===Bn&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===Bn&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Me(e,e.doc.store,fe(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let t,n=this.left;if(null!==n)t=n.right;else if(null!==this.parentSub){t=this.parent._map.get(this.parentSub)||null;while(null!==t&&null!==t.left)t=t.left}else t=this.parent._start;const r=new Set,i=new Set;while(null!==t&&t!==this.right){if(i.add(t),r.add(t),de(this.origin,t.origin)){if(t.id.client{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,null!==this.right&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const t=this.parent;this.countable&&null===this.parentSub&&(t._length-=this.length),this.markDeleted(),S(e.deleteSet,this.id.client,this.id.clock,this.length),Pe(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw d["c"]();this.content.gc(e),t?Oe(e,this,new un(this.id,this.length)):this.content=new fn(this.length)}write(e,t){const n=t>0?fe(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,o=this.content.getRef()&f["k"]|(null===n?0:f["g"])|(null===r?0:f["f"])|(null===i?0:f["e"]);if(e.writeInfo(o),null!==n&&e.writeLeftID(n),null!==r&&e.writeRightID(r),null===n&&null===r){const t=this.parent;if(void 0!==t._item){const n=t._item;if(null===n){const n=pe(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===he?(e.writeParentInfo(!1),e.writeLeftID(t)):d["c"]();null!==i&&e.writeString(i)}this.content.write(e,t)}}const Un=(e,t)=>Hn[t&f["k"]](e),Hn=[()=>{d["c"]()},pn,Cn,dn,Sn,yn,xn,zn,En,vn,()=>{d["c"]()}],qn=10;class _n extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){d["c"]()}write(e,t){e.writeInfo(qn),s["n"](e.restEncoder,this.length-t)}getMissing(e,t){return null}}const Wn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{},Gn="__ $YJS$ __";!0===Wn[Gn]&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),Wn[Gn]=!0}).call(this,n("c8ba"))},"4cfc":function(e,t,n){var r=n("65f8"),i=n("91de"),o=n("bcb9"),a=n("7420"),s="WebAssembly",l=i[s],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},"4dde":function(e,t,n){"use strict";var r=n("c4ab"),i=n("6f54"),o=n("7280"),a=n("5d9a"),s=n("f537"),l=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return Object(r["c"])(t,e),t.prototype.asBytes=function(){for(var e=[],t="",n=!1,r=function(t){void 0!==t&&e.push(t),n=!1},i=0,s=this.value.length;i=o["a"].Zero&&c<=o["a"].Seven?(t+=l,3!==t.length&&u>="0"&&u<="7"||(r(parseInt(t,8)),t="")):r(c):c===o["a"].BackSlash?n=!0:r(c)}return new Uint8Array(e)},t.prototype.decodeText=function(){var e=this.asBytes();return Object(a["A"])(e)?Object(a["Y"])(e):Object(a["K"])(e)},t.prototype.decodeDate=function(){var e=this.decodeText(),t=Object(a["J"])(e);if(!t)throw new s["d"](e);return t},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"("+this.value+")"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(e,t){return e[t++]=o["a"].LeftParen,t+=Object(a["w"])(this.value,e,t),e[t++]=o["a"].RightParen,this.value.length+2},t.of=function(e){return new t(e)},t.fromDate=function(e){var n=Object(a["I"])(String(e.getUTCFullYear()),4,"0"),r=Object(a["I"])(String(e.getUTCMonth()+1),2,"0"),i=Object(a["I"])(String(e.getUTCDate()),2,"0"),o=Object(a["I"])(String(e.getUTCHours()),2,"0"),s=Object(a["I"])(String(e.getUTCMinutes()),2,"0"),l=Object(a["I"])(String(e.getUTCSeconds()),2,"0");return new t("D:"+n+r+i+o+s+l+"Z")},t}(i["a"]);t["a"]=l},"4ec2":function(e,t,n){e.exports=n.p+"img/timeline2.png"},"4f5a":function(e,t,n){e.exports=n.p+"img/-_14.svg"},"4f8c":function(e,t,n){e.exports=n.p+"img/pinkGrape.jpg"},"4f98":function(e,t,n){(function(t){ /*! * Quill Editor v1.3.6 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */ -(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=n(47),c=n(48),u=n(49),h=n(12),d=n(32),f=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:h.default,Class:d.default,Style:f.default,Store:p.default}};t.default=g},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},l={},c={};function u(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:r.create(t);return new r(o,t)}function h(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?h(e.parentNode,n):null}function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=c[e]||a[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=c["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=c["block"]:e&o.LEVEL&o.INLINE&&(n=c["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function f(){for(var e=[],t=0;t1)return e.map((function(e){return f(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(c[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=u,t.find=h,t.query=d,t.register=f},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],t),u=a.iterator(this.ops),h=a.iterator(e.ops);return c.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(h.peekLength(),t),o.push(h.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);var s=u.next(n),l=h.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s["delete"])continue;c["delete"]?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-x)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(u.default.Block);function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:A(e.parent,t))}C.blotName="block",C.tagName="P",C.defaultChild="break",C.allowedChildren=[p.default,u.default.Embed,g.default],t.bubbleFormats=A,t.BlockEmbed=k,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(T(this,e),this.options=O(t,r),this.container=this.options.container,null==this.container)return S.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(e){e===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(h.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;N.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("
"+i+"


");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),x.default.level(e)}},{key:"find",value:function(e){return e.__quill||m.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&S.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||S.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?m.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=D(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],N.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return N.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(m.default.query(e,m.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,E({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,E({},e,t))}return n.setSelection(r,h.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],N.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],N.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=D(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=D(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return N.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,0,n,r,o),c=i(l,4);return e=c[0],s=c[2],o=c[3],N.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=D(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],N.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return N.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=D(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new g.Range(t,n),r),r!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return N.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function O(e,t){if(t=(0,y.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==M.DEFAULTS.theme){if(t.theme=M.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=C.default;var n=(0,y.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=M.import("modules/"+t);return null==n?S.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,y.default)(!0,{},M.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function N(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===h.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=L(i,a,t):0!==r&&(i=L(i,n,r,t)),this.setSelection(i,h.default.sources.SILENT)),a.length()>0){var l,c,u=[h.default.events.TEXT_CHANGE,a,o,t];if((l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(u)),t!==h.default.sources.SILENT)(c=this.emitter).emit.apply(c,u)}return a}function D(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||h.default.sources.API,[e,t,a,o]}function L(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==h.default.sources.USER)})),c=i(l,2);o=c[0],a=c[1]}else{var u=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),d=i(u,2);o=d[0],a=d[1]}return new g.Range(o,a-o)}M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.6",M.imports={delta:s.default,parchment:m.default,"core/module":f.default,"core/theme":C.default},t.expandConfig=O,t.overload=D,t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a0&&"number"!==typeof e[0]))}function c(e,t,n){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c=0;c--)if(h[c]!=d[c])return!1;for(c=h.length-1;c>=0;c--)if(u=h[c],!a(e[u],t[u],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,l=this.isolate(a,s),u=l.next;l.format(r,i),u instanceof t&&u.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(m.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(c.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=c.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof c.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(h.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",t.Code=w,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n=o&&!u.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,u);var d=t.scroll.line(e),f=i(d,2),p=f[0],m=f[1],b=(0,E.default)({},(0,g.bubbleFormats)(p));if(p instanceof v.default){var y=p.descendant(h.default.Leaf,m),w=i(y,1),x=w[0];b=(0,E.default)(b,(0,g.bubbleFormats)(x))}l=c.default.attributes.diff(b,l)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,a.insert[k])}o+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof f.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),o=t[0];o instanceof v.default?n.push(o):o instanceof h.default.Leaf&&r.push(o)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(h.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};var t=(0,g.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=D((0,g.bubbleFormats)(n),t)}return t}));return E.default.apply(E.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(S({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,x.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===v.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof y.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],l=o[1],c=0,u=new s.default;null!=a&&(c=a instanceof f.default?a.newlineIndex(l)-l+1:a.length()-l,u=a.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(e,t+c),d=h.diff((new s.default).insert(n).concat(u)),p=(new s.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(O)&&h.default.find(t[0].target)){var i=h.default.find(t[0].target),o=(0,g.bubbleFormats)(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(m.default.CONTENTS,""),c=(new s.default).insert(l),u=(new s.default).insert(i.value()),d=(new s.default).retain(a).concat(c.diff(u,n));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,C.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function D(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function L(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,x.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,x.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this.index=t,this.length=n},w=function(){function e(t,n){var r=this;v(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new y(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e,t){e===d.default.events.TEXT_CHANGE&&t.length()>0&&r.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(d.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var c=s.position(l,!0),u=r(c,2);i=u[0],l=u[1];var h=document.createRange();if(t>0){h.setStart(i,l);var d=this.scroll.leaf(e+t),f=r(d,2);if(s=f[0],l=f[1],null==s)return null;var p=s.position(l,!0),m=r(p,2);return i=m[0],l=m[1],h.setEnd(i,l),h.getBoundingClientRect()}var g="left",v=void 0;return i instanceof Text?(l0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return b.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,g(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(g(i)));return new y(s,o-s)}},{key:"normalizeNative",value:function(e){if(!x(this.root,e.startContainer)||!e.collapsed&&!x(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a=void 0,s=t.scroll.leaf(e),l=r(s,2),c=l[0],u=l[1],h=c.position(u,0!==n),d=r(h,2);a=d[0],u=d[1],i.push(a,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1),s=a[0],l=s;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,i)),u=r(c,1);l=u[0]}if(null!=s&&null!=l){var h=e.getBoundingClientRect();n.toph.bottom&&(e.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t&&(n=t,t=!1),b.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,g(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(t,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var c,h=[d.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];if((s=this.emitter).emit.apply(s,[d.default.events.EDITOR_CHANGE].concat(h)),e!==d.default.sources.SILENT)(c=this.emitter).emit.apply(c,h)}}}]),e}();function x(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=y,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e;var e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.exports=o},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(h){n=function(){}}try{r=Set}catch(h){r=function(){}}try{i=Promise}catch(h){i=function(){}}function o(a,s,l,c,h){"object"===typeof s&&(l=s.depth,c=s.prototype,h=s.includeNonEnumerable,s=s.circular);var d=[],f=[],p="undefined"!=typeof t;function m(a,l){if(null===a)return null;if(0===l)return a;var g,v;if("object"!=typeof a)return a;if(e(a,n))g=new n;else if(e(a,r))g=new r;else if(e(a,i))g=new i((function(e,t){a.then((function(t){e(m(t,l-1))}),(function(e){t(m(e,l-1))}))}));else if(o.__isArray(a))g=[];else if(o.__isRegExp(a))g=new RegExp(a.source,u(a)),a.lastIndex&&(g.lastIndex=a.lastIndex);else if(o.__isDate(a))g=new Date(a.getTime());else{if(p&&t.isBuffer(a))return g=new t(a.length),a.copy(g),g;e(a,Error)?g=Object.create(a):"undefined"==typeof c?(v=Object.getPrototypeOf(a),g=Object.create(v)):(g=Object.create(c),v=c)}if(s){var b=d.indexOf(a);if(-1!=b)return f[b];d.push(a),f.push(g)}for(var y in e(a,n)&&a.forEach((function(e,t){var n=m(t,l-1),r=m(e,l-1);g.set(n,r)})),e(a,r)&&a.forEach((function(e){var t=m(e,l-1);g.add(t)})),a){var w;v&&(w=Object.getOwnPropertyDescriptor(v,y)),w&&null==w.set||(g[y]=m(a[y],l-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(a);for(y=0;y0){if(s instanceof u.BlockEmbed||d instanceof u.BlockEmbed)return void this.optimize();if(s instanceof m.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===d))return void this.optimize()}else if(d instanceof m.default){var g=d.newlineIndex(0);g>-1&&d.split(g+1)}var v=d.children.head instanceof f.default?null:d.children.head;s.moveChildren(d,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(k,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){k(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=c.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);C.blotName="scroll",C.className="ql-editor",C.tagName="DIV",C.defaultChild="block",C.allowedChildren=[h.default,u.BlockEmbed,v.default],t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B(e);if(null==r||null==r.key)return O.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,h.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),u=i(l,2),h=u[0],d=u[1],f=e.quill.getLeaf(s.index),p=i(f,2),m=p[0],g=p[1],b=0===s.length?[m,g]:e.quill.getLeaf(s.index+s.length),y=i(b,2),w=y[0],x=y[1],k=m instanceof v.default.Text?m.value().slice(0,g):"",C=w instanceof v.default.Text?w.value().slice(x):"",A={collapsed:0===s.length,empty:0===s.length&&h.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:k,suffix:C},E=a.some((function(t){if(null!=t.collapsed&&t.collapsed!==A.collapsed)return!1;if(null!=t.empty&&t.empty!==A.empty)return!1;if(null!=t.offset&&t.offset!==A.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==A.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=A.format[e]:!1===t.format[e]?null==A.format[e]:(0,c.default)(t.format[e],A.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(A.prefix))&&(!(null!=t.suffix&&!t.suffix.test(A.suffix))&&!0!==t.handler.call(e,s,A))}));E&&n.preventDefault()}}}}))}}]),t}(C.default);function L(e,t){var n,r=e===D.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},E(n,r,/^$/),E(n,"handler",(function(n){var r=n.index;e===D.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof v.default.Embed)||(e===D.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),!1)})),n}function P(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),o=r[0],a={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=i(s,1),c=l[0];if(null!=c&&c.length()>1){var u=o.formats(),h=this.quill.getFormat(e.index-1,1);a=m.default.attributes.diff(u,h)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,y.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,y.default.sources.USER),this.quill.focus()}}function I(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1),l=s[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),u=i(c,1),h=u[0];if(h){var d=l.formats(),f=this.quill.getFormat(e.index,1);r=m.default.attributes.diff(d,f)||{},o=h.length()}}this.quill.deleteText(e.index,n,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,y.default.sources.USER)}}function R(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=m.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,y.default.sources.USER),this.quill.setSelection(e.index,y.default.sources.SILENT),this.quill.focus()}function F(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return v.default.query(n,v.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],y.default.sources.USER))}))}function z(e){return{key:D.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=v.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),h=l.newlineIndex(c,!0)+1,d=l.newlineIndex(u+c+o),f=l.domNode.textContent.slice(h,d).split("\n");c=0,f.forEach((function(t,i){e?(l.insertAt(h+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(h+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(r,o,y.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],y.default.sources.USER)}}}function B(e){if("string"===typeof e||"number"===typeof e)return B({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=D.keys[e.key.toUpperCase()])e.key=D.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[N]=e.shortKey,delete e.shortKey),e}D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":z(!0),"outdent code-block":z(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,y.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new f.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,y.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,y.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,h.default)({},r.formats(),{list:"checked"}),s=(new f.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new f.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",y.default.sources.USER),this.quill.history.cutoff();var c=(new f.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,y.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new f.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,y.default.sources.USER)}},"embed left":L(D.keys.LEFT,!1),"embed left shift":L(D.keys.LEFT,!0),"embed right":L(D.keys.RIGHT,!1),"embed right shift":L(D.keys.RIGHT,!0)}},t.default=D,t.SHORTKEY=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=h,t.sanitize=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=O(r),o=n(5),a=O(o),s=n(4),l=O(s),c=n(16),u=O(c),h=n(25),d=O(h),f=n(24),p=O(f),m=n(35),g=O(m),v=n(6),b=O(v),y=n(22),w=O(y),x=n(7),k=O(x),C=n(55),A=O(C),E=n(42),T=O(E),S=n(23),M=O(S);function O(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":u.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":g.default,"blots/inline":b.default,"blots/scroll":w.default,"blots/text":k.default,"modules/clipboard":A.default,"modules/history":T.default,"modules/keyboard":M.default}),i.default.register(l.default,u.default,p.default,b.default,w.default,k.default),t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(c.default);function m(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function g(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return m(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,u.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=I(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",u.default.sources.USER),this.quill.setSelection(r+2,u.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(k.default);function I(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=P,t.default=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(es?n(r,e-s,Math.min(t,s+c-e)):n(r,0,Math.min(c,e+t-s)),s+=c}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)t.push(a.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(c),e.optimize(n))},u=t,h=0;u.length>0;h+=1){if(h>=s)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),u=[].slice.call(this.observer.takeRecords()),a=u.slice();while(a.length>0)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(t,n);a.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;ot.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[r,l.substring(0,u)],[i,c],[r,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[r,t]];var d=h(e,t);if(d){var f=d[0],p=d[1],m=d[2],g=d[3],v=d[4],b=o(f,m),y=o(p,g);return b.concat([[i,v]],y)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,c=2*a,u=new Array(c),h=new Array(c),d=0;di)g+=2;else if(k>o)m+=2;else if(p){var C=s+f-w;if(C>=0&&C=A)return l(e,t,S,k)}}}for(var E=-y+v;E<=y-b;E+=2){C=s+E;A=E==-y||E!=y&&h[C-1]i)b+=2;else if(T>o)v+=2;else if(!p){x=s+f-E;if(x>=0&&x=A)return l(e,t,S,k)}}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=o(i,a),u=o(s,l);return c.concat(u)}function c(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,o,a,h]:null}var o,a,s,l,h,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));if(!d&&!f)return null;o=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(a=o[0],s=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,h,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",h="";while(o1?(0!==a&&0!==s&&(t=c(h,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=h.substring(0,t):(e.splice(0,0,[i,h.substring(0,t)]),o++),h=h.substring(t),l=l.substring(t)),t=u(h,l),0!==t&&(e[o][1]=h.substring(h.length-t)+e[o][1],h=h.substring(0,h.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,h]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",h="";break}""===e[e.length-1][1]&&e.pop();var f=!1;o=1;while(o0&&r.splice(o+2,0,[s[0],l]),v(r,o,3)}return e}function g(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s0&&l.push(e[s]);return l}function v(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[x.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new c.default).insert(n,S({},x.default.blotName,t[x.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=H(this.container,a,s);return B(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new c.default).retain(l.length()-1).delete(1))),D.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,f.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new c.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),f.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new c.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(f.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,f.default.sources.USER),t.quill.setSelection(r.length()-n.length,f.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[L]=e[L]||[],e[L].push(s)}));break}})),[t,n]}}]),t}(v.default);function z(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return z(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},S({},t,n),r.attributes))}),new c.default)}function j(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function B(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function H(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new c.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=H(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[L]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new c.default):new c.default}function q(e,t,n){return z(n,e,!0)}function W(e,t){var n=h.default.Attributor.Attribute.keys(e),r=h.default.Attributor.Class.keys(e),i=h.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=h.default.query(t,h.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(n=I[t],null==n||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),n=R[t],null==n||n.attrName!==t&&n.keyName!==t||(n=R[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=z(t,o)),t}function _(e,t){var n=h.default.query(e);if(null==n)return t;if(n.prototype instanceof h.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new c.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=z(t,n.blotName,n.formats(e)));return t}function G(e,t){return B(t,"\n")||t.insert("\n"),t}function V(){return new c.default}function Y(e,t){var n=h.default.query(e);if(null==n||"list-item"!==n.blotName||!B(t,"\n"))return t;var r=-1,i=e.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(h.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new c.default).retain(t.length()-1).retain(1,{indent:r}))}function K(e,t){return B(t,"\n")||(U(e)||t.length()>0&&e.nextSibling&&U(e.nextSibling))&&t.insert("\n"),t}function Z(e,t){if(U(e)&&null!=e.nextElementSibling&&!B(t,"\n\n")){var n=e.offsetHeight+parseFloat(j(e).marginTop)+parseFloat(j(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function X(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===j(e).fontStyle&&(n.italic=!0),r.fontWeight&&(j(e).fontWeight.startsWith("bold")||parseInt(j(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=z(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new c.default).insert("\t").concat(t)),t}function J(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!j(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&U(e.parentNode)||null!=e.previousSibling&&U(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&U(e.parentNode)||null!=e.nextSibling&&U(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}F.DEFAULTS={matchers:[],matchVisual:!0},t.default=F,t.matchAttributor=W,t.matchBlot=_,t.matchNewline=K,t.matchSpacing=Z,t.matchText=J},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.leftr.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=ne(r),o=n(36),a=n(38),s=n(64),l=n(65),c=ne(l),u=n(66),h=ne(u),d=n(67),f=ne(d),p=n(37),m=n(26),g=n(39),v=n(40),b=n(56),y=ne(b),w=n(68),x=ne(w),k=n(27),C=ne(k),A=n(69),E=ne(A),T=n(70),S=ne(T),M=n(71),O=ne(M),N=n(72),D=ne(N),L=n(73),P=ne(L),I=n(13),R=ne(I),F=n(74),z=ne(F),j=n(75),B=ne(j),U=n(57),H=ne(U),q=n(41),W=ne(q),_=n(28),G=ne(_),V=n(59),Y=ne(V),K=n(60),Z=ne(K),X=n(61),J=ne(X),Q=n(108),$=ne(Q),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":v.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":v.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":f.default,"formats/bold":y.default,"formats/code":I.Code,"formats/italic":x.default,"formats/link":C.default,"formats/script":E.default,"formats/strike":S.default,"formats/underline":O.default,"formats/image":D.default,"formats/video":P.default,"formats/list/item":d.ListItem,"modules/formula":z.default,"modules/syntax":B.default,"modules/toolbar":H.default,"themes/bubble":$.default,"themes/snow":te.default,"ui/icons":W.default,"ui/picker":G.default,"ui/icon-picker":Z.default,"ui/color-picker":Y.default,"ui/tooltip":J.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof g)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(u.default);v.blotName="list",v.scope=a.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[g],t.ListItem=g,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);c.blotName="italic",c.tagName=["EM","I"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(d.default);v.className="ql-syntax";var b=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),y=function(e){function t(e,n){p(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return g(t,e),r(t,null,[{key:"register",value:function(){l.default.register(b,!0),l.default.register(v,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(v).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(u.default);y.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=v,t.CodeToken=b,t.default=y},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var a=o[o.length-1],s=r.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),u=r.quill.getBounds(new h.Range(s,c));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(c.BaseTooltip);w.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=w,t.default=y},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},5023:function(e,t,n){e.exports=n.p+"img/ertongjie.svg"},5082:function(e,t,n){e.exports=n.p+"img/a-10-yiliaoxiang.svg"},5087:function(e,t,n){},5227:function(e,t,n){e.exports=n.p+"img/zuche.svg"},"528d":function(e,t,n){e.exports=n.p+"img/xiaoheiban.svg"},"555d":function(e,t,n){"use strict";n("94c6")},"56c4":function(e,t,n){"use strict";n("300d")},"56d3":function(e,t,n){e.exports=n.p+"img/ziyuan_4.svg"},5703:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(){"use strict";var e={};!function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}}(),function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var t={};e.d(t,{default:function(){return wo}});var n=function e(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,i,o="KaTeX parse error: "+t,a=n&&n.loc;if(a&&a.start<=a.end){var s=a.lexer.input;r=a.start,i=a.end,r===s.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var l,c,u=s.slice(r,i).replace(/[^]/g,"$&̲");l=r>15?"…"+s.slice(r-15,r):s.slice(0,r),c=i+15":">","<":"<",'"':""","'":"'"},c=/[&><"']/g;function u(e){return String(e).replace(c,(function(e){return l[e]}))}var h=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},d=function(e){var t=h(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},f=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},p=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"},m={contains:i,deflt:o,escape:u,hyphenate:s,getBaseElem:h,isCharacterBox:d,protocolFromUrl:p},g={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(e){return"#"+e}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(e,t){return t.push(e),t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(e){return Math.max(0,e)},cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(e){return Math.max(0,e)},cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(e){return Math.max(0,e)},cli:"-e, --max-expand ",cliProcessor:function(e){return"Infinity"===e?1/0:parseInt(e)}},globalGroup:{type:"boolean",cli:!1}};function v(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!==typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var b=function(){function e(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},g)if(g.hasOwnProperty(t)){var n=g[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:v(n)}}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var i=this.strict;if("function"===typeof i&&(i=i(e,t,n)),i&&"ignore"!==i){if(!0===i||"error"===i)throw new r("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===i?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"===typeof r)try{r=r(e,t,n)}catch(i){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=m.protocolFromUrl(e.url));var t="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),y=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return M[O[this.id]]},t.sub=function(){return M[N[this.id]]},t.fracNum=function(){return M[D[this.id]]},t.fracDen=function(){return M[L[this.id]]},t.cramp=function(){return M[P[this.id]]},t.text=function(){return M[I[this.id]]},t.isTight=function(){return this.size>=2},e}(),w=0,x=1,k=2,C=3,A=4,E=5,T=6,S=7,M=[new y(w,0,!1),new y(x,0,!0),new y(k,1,!1),new y(C,1,!0),new y(A,2,!1),new y(E,2,!0),new y(T,3,!1),new y(S,3,!0)],O=[A,E,A,E,T,S,T,S],N=[E,E,E,E,S,S,S,S],D=[k,C,A,E,T,S,T,S],L=[C,C,E,E,S,S,S,S],P=[x,x,C,C,E,E,S,S],I=[w,x,k,C,k,C,k,C],R={DISPLAY:M[w],TEXT:M[k],SCRIPT:M[A],SCRIPTSCRIPT:M[T]},F=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function z(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var j=[];function B(e){for(var t=0;t=j[t]&&e<=j[t+1])return!0;return!1}F.forEach((function(e){return e.blocks.forEach((function(e){return j.push.apply(j,e)}))}));var U=80,H=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},q=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},W=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},_=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"},G=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},V=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Y=function(e,t,n){var r=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+r+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"},K=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=H(t,U);break;case"sqrtSize1":r=q(t,U);break;case"sqrtSize2":r=W(t,U);break;case"sqrtSize3":r=_(t,U);break;case"sqrtSize4":r=G(t,U);break;case"sqrtTall":r=Y(t,U,n)}return r},Z=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}},X={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},J=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}},Q=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t=5?0:e>=3?1:2,!ie[t]){var n=ie[t]={cssEmPerMu:ee.quad[t]/18};for(var r in ee)ee.hasOwnProperty(r)&&(n[r]=ee[r][t])}return ie[t]}var ae=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],se=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],le=function(e,t){return t.size<2?e:ae[e-1][t.size-1]},ce=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=se[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:le(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:se[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=le(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=oe(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();ce.BASESIZE=6;var ue=ce,he={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},de={ex:!0,em:!0,mu:!0},fe=function(e){return"string"!==typeof e&&(e=e.unit),e in he||e in de||"ex"===e},pe=function(e,t){var n;if(e.unit in he)n=he[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var i;if(i=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=i.fontMetrics().xHeight;else{if("em"!==e.unit)throw new r("Invalid unit: '"+e.unit+"'");n=i.fontMetrics().quad}i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},me=function(e){return+e.toFixed(4)+"em"},ge=function(e){return e.filter((function(e){return e})).join(" ")},ve=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},be=function(e){var t=document.createElement(e);for(var n in t.className=ge(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i",t},we=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ve.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){return be.call(this,"span")},t.toMarkup=function(){return ye.call(this,"span")},e}(),xe=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ve.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){return be.call(this,"a")},t.toMarkup=function(){return ye.call(this,"a")},e}(),ke=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"0&&(t=document.createElement("span"),t.style.marginRight=me(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=ge(this.classes)),this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=m.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+m.escape(n)+'"');var i=m.escape(this.text);return e?(t+=">",t+=i,t+="",t):i},e}(),Ee=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r":""},e}(),Se=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t},t.toMarkup=function(){var e=" but got "+String(e)+".")}var Ne={bin:1,close:1,inner:1,open:1,punct:1,rel:1},De={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Le={math:{},text:{}},Pe=Le;function Ie(e,t,n,r,i,o){Le[e][i]={font:t,group:n,replace:r},o&&r&&(Le[e][r]=Le[e][i])}var Re="math",Fe="text",ze="main",je="ams",Be="accent-token",Ue="bin",He="close",qe="inner",We="mathord",_e="op-token",Ge="open",Ve="punct",Ye="rel",Ke="spacing",Ze="textord";Ie(Re,ze,Ye,"≡","\\equiv",!0),Ie(Re,ze,Ye,"≺","\\prec",!0),Ie(Re,ze,Ye,"≻","\\succ",!0),Ie(Re,ze,Ye,"∼","\\sim",!0),Ie(Re,ze,Ye,"⊥","\\perp"),Ie(Re,ze,Ye,"⪯","\\preceq",!0),Ie(Re,ze,Ye,"⪰","\\succeq",!0),Ie(Re,ze,Ye,"≃","\\simeq",!0),Ie(Re,ze,Ye,"∣","\\mid",!0),Ie(Re,ze,Ye,"≪","\\ll",!0),Ie(Re,ze,Ye,"≫","\\gg",!0),Ie(Re,ze,Ye,"≍","\\asymp",!0),Ie(Re,ze,Ye,"∥","\\parallel"),Ie(Re,ze,Ye,"⋈","\\bowtie",!0),Ie(Re,ze,Ye,"⌣","\\smile",!0),Ie(Re,ze,Ye,"⊑","\\sqsubseteq",!0),Ie(Re,ze,Ye,"⊒","\\sqsupseteq",!0),Ie(Re,ze,Ye,"≐","\\doteq",!0),Ie(Re,ze,Ye,"⌢","\\frown",!0),Ie(Re,ze,Ye,"∋","\\ni",!0),Ie(Re,ze,Ye,"∝","\\propto",!0),Ie(Re,ze,Ye,"⊢","\\vdash",!0),Ie(Re,ze,Ye,"⊣","\\dashv",!0),Ie(Re,ze,Ye,"∋","\\owns"),Ie(Re,ze,Ve,".","\\ldotp"),Ie(Re,ze,Ve,"⋅","\\cdotp"),Ie(Re,ze,Ze,"#","\\#"),Ie(Fe,ze,Ze,"#","\\#"),Ie(Re,ze,Ze,"&","\\&"),Ie(Fe,ze,Ze,"&","\\&"),Ie(Re,ze,Ze,"ℵ","\\aleph",!0),Ie(Re,ze,Ze,"∀","\\forall",!0),Ie(Re,ze,Ze,"ℏ","\\hbar",!0),Ie(Re,ze,Ze,"∃","\\exists",!0),Ie(Re,ze,Ze,"∇","\\nabla",!0),Ie(Re,ze,Ze,"♭","\\flat",!0),Ie(Re,ze,Ze,"ℓ","\\ell",!0),Ie(Re,ze,Ze,"♮","\\natural",!0),Ie(Re,ze,Ze,"♣","\\clubsuit",!0),Ie(Re,ze,Ze,"℘","\\wp",!0),Ie(Re,ze,Ze,"♯","\\sharp",!0),Ie(Re,ze,Ze,"♢","\\diamondsuit",!0),Ie(Re,ze,Ze,"ℜ","\\Re",!0),Ie(Re,ze,Ze,"♡","\\heartsuit",!0),Ie(Re,ze,Ze,"ℑ","\\Im",!0),Ie(Re,ze,Ze,"♠","\\spadesuit",!0),Ie(Re,ze,Ze,"§","\\S",!0),Ie(Fe,ze,Ze,"§","\\S"),Ie(Re,ze,Ze,"¶","\\P",!0),Ie(Fe,ze,Ze,"¶","\\P"),Ie(Re,ze,Ze,"†","\\dag"),Ie(Fe,ze,Ze,"†","\\dag"),Ie(Fe,ze,Ze,"†","\\textdagger"),Ie(Re,ze,Ze,"‡","\\ddag"),Ie(Fe,ze,Ze,"‡","\\ddag"),Ie(Fe,ze,Ze,"‡","\\textdaggerdbl"),Ie(Re,ze,He,"⎱","\\rmoustache",!0),Ie(Re,ze,Ge,"⎰","\\lmoustache",!0),Ie(Re,ze,He,"⟯","\\rgroup",!0),Ie(Re,ze,Ge,"⟮","\\lgroup",!0),Ie(Re,ze,Ue,"∓","\\mp",!0),Ie(Re,ze,Ue,"⊖","\\ominus",!0),Ie(Re,ze,Ue,"⊎","\\uplus",!0),Ie(Re,ze,Ue,"⊓","\\sqcap",!0),Ie(Re,ze,Ue,"∗","\\ast"),Ie(Re,ze,Ue,"⊔","\\sqcup",!0),Ie(Re,ze,Ue,"◯","\\bigcirc",!0),Ie(Re,ze,Ue,"∙","\\bullet",!0),Ie(Re,ze,Ue,"‡","\\ddagger"),Ie(Re,ze,Ue,"≀","\\wr",!0),Ie(Re,ze,Ue,"⨿","\\amalg"),Ie(Re,ze,Ue,"&","\\And"),Ie(Re,ze,Ye,"⟵","\\longleftarrow",!0),Ie(Re,ze,Ye,"⇐","\\Leftarrow",!0),Ie(Re,ze,Ye,"⟸","\\Longleftarrow",!0),Ie(Re,ze,Ye,"⟶","\\longrightarrow",!0),Ie(Re,ze,Ye,"⇒","\\Rightarrow",!0),Ie(Re,ze,Ye,"⟹","\\Longrightarrow",!0),Ie(Re,ze,Ye,"↔","\\leftrightarrow",!0),Ie(Re,ze,Ye,"⟷","\\longleftrightarrow",!0),Ie(Re,ze,Ye,"⇔","\\Leftrightarrow",!0),Ie(Re,ze,Ye,"⟺","\\Longleftrightarrow",!0),Ie(Re,ze,Ye,"↦","\\mapsto",!0),Ie(Re,ze,Ye,"⟼","\\longmapsto",!0),Ie(Re,ze,Ye,"↗","\\nearrow",!0),Ie(Re,ze,Ye,"↩","\\hookleftarrow",!0),Ie(Re,ze,Ye,"↪","\\hookrightarrow",!0),Ie(Re,ze,Ye,"↘","\\searrow",!0),Ie(Re,ze,Ye,"↼","\\leftharpoonup",!0),Ie(Re,ze,Ye,"⇀","\\rightharpoonup",!0),Ie(Re,ze,Ye,"↙","\\swarrow",!0),Ie(Re,ze,Ye,"↽","\\leftharpoondown",!0),Ie(Re,ze,Ye,"⇁","\\rightharpoondown",!0),Ie(Re,ze,Ye,"↖","\\nwarrow",!0),Ie(Re,ze,Ye,"⇌","\\rightleftharpoons",!0),Ie(Re,je,Ye,"≮","\\nless",!0),Ie(Re,je,Ye,"","\\@nleqslant"),Ie(Re,je,Ye,"","\\@nleqq"),Ie(Re,je,Ye,"⪇","\\lneq",!0),Ie(Re,je,Ye,"≨","\\lneqq",!0),Ie(Re,je,Ye,"","\\@lvertneqq"),Ie(Re,je,Ye,"⋦","\\lnsim",!0),Ie(Re,je,Ye,"⪉","\\lnapprox",!0),Ie(Re,je,Ye,"⊀","\\nprec",!0),Ie(Re,je,Ye,"⋠","\\npreceq",!0),Ie(Re,je,Ye,"⋨","\\precnsim",!0),Ie(Re,je,Ye,"⪹","\\precnapprox",!0),Ie(Re,je,Ye,"≁","\\nsim",!0),Ie(Re,je,Ye,"","\\@nshortmid"),Ie(Re,je,Ye,"∤","\\nmid",!0),Ie(Re,je,Ye,"⊬","\\nvdash",!0),Ie(Re,je,Ye,"⊭","\\nvDash",!0),Ie(Re,je,Ye,"⋪","\\ntriangleleft"),Ie(Re,je,Ye,"⋬","\\ntrianglelefteq",!0),Ie(Re,je,Ye,"⊊","\\subsetneq",!0),Ie(Re,je,Ye,"","\\@varsubsetneq"),Ie(Re,je,Ye,"⫋","\\subsetneqq",!0),Ie(Re,je,Ye,"","\\@varsubsetneqq"),Ie(Re,je,Ye,"≯","\\ngtr",!0),Ie(Re,je,Ye,"","\\@ngeqslant"),Ie(Re,je,Ye,"","\\@ngeqq"),Ie(Re,je,Ye,"⪈","\\gneq",!0),Ie(Re,je,Ye,"≩","\\gneqq",!0),Ie(Re,je,Ye,"","\\@gvertneqq"),Ie(Re,je,Ye,"⋧","\\gnsim",!0),Ie(Re,je,Ye,"⪊","\\gnapprox",!0),Ie(Re,je,Ye,"⊁","\\nsucc",!0),Ie(Re,je,Ye,"⋡","\\nsucceq",!0),Ie(Re,je,Ye,"⋩","\\succnsim",!0),Ie(Re,je,Ye,"⪺","\\succnapprox",!0),Ie(Re,je,Ye,"≆","\\ncong",!0),Ie(Re,je,Ye,"","\\@nshortparallel"),Ie(Re,je,Ye,"∦","\\nparallel",!0),Ie(Re,je,Ye,"⊯","\\nVDash",!0),Ie(Re,je,Ye,"⋫","\\ntriangleright"),Ie(Re,je,Ye,"⋭","\\ntrianglerighteq",!0),Ie(Re,je,Ye,"","\\@nsupseteqq"),Ie(Re,je,Ye,"⊋","\\supsetneq",!0),Ie(Re,je,Ye,"","\\@varsupsetneq"),Ie(Re,je,Ye,"⫌","\\supsetneqq",!0),Ie(Re,je,Ye,"","\\@varsupsetneqq"),Ie(Re,je,Ye,"⊮","\\nVdash",!0),Ie(Re,je,Ye,"⪵","\\precneqq",!0),Ie(Re,je,Ye,"⪶","\\succneqq",!0),Ie(Re,je,Ye,"","\\@nsubseteqq"),Ie(Re,je,Ue,"⊴","\\unlhd"),Ie(Re,je,Ue,"⊵","\\unrhd"),Ie(Re,je,Ye,"↚","\\nleftarrow",!0),Ie(Re,je,Ye,"↛","\\nrightarrow",!0),Ie(Re,je,Ye,"⇍","\\nLeftarrow",!0),Ie(Re,je,Ye,"⇏","\\nRightarrow",!0),Ie(Re,je,Ye,"↮","\\nleftrightarrow",!0),Ie(Re,je,Ye,"⇎","\\nLeftrightarrow",!0),Ie(Re,je,Ye,"△","\\vartriangle"),Ie(Re,je,Ze,"ℏ","\\hslash"),Ie(Re,je,Ze,"▽","\\triangledown"),Ie(Re,je,Ze,"◊","\\lozenge"),Ie(Re,je,Ze,"Ⓢ","\\circledS"),Ie(Re,je,Ze,"®","\\circledR"),Ie(Fe,je,Ze,"®","\\circledR"),Ie(Re,je,Ze,"∡","\\measuredangle",!0),Ie(Re,je,Ze,"∄","\\nexists"),Ie(Re,je,Ze,"℧","\\mho"),Ie(Re,je,Ze,"Ⅎ","\\Finv",!0),Ie(Re,je,Ze,"⅁","\\Game",!0),Ie(Re,je,Ze,"‵","\\backprime"),Ie(Re,je,Ze,"▲","\\blacktriangle"),Ie(Re,je,Ze,"▼","\\blacktriangledown"),Ie(Re,je,Ze,"■","\\blacksquare"),Ie(Re,je,Ze,"⧫","\\blacklozenge"),Ie(Re,je,Ze,"★","\\bigstar"),Ie(Re,je,Ze,"∢","\\sphericalangle",!0),Ie(Re,je,Ze,"∁","\\complement",!0),Ie(Re,je,Ze,"ð","\\eth",!0),Ie(Fe,ze,Ze,"ð","ð"),Ie(Re,je,Ze,"╱","\\diagup"),Ie(Re,je,Ze,"╲","\\diagdown"),Ie(Re,je,Ze,"□","\\square"),Ie(Re,je,Ze,"□","\\Box"),Ie(Re,je,Ze,"◊","\\Diamond"),Ie(Re,je,Ze,"¥","\\yen",!0),Ie(Fe,je,Ze,"¥","\\yen",!0),Ie(Re,je,Ze,"✓","\\checkmark",!0),Ie(Fe,je,Ze,"✓","\\checkmark"),Ie(Re,je,Ze,"ℶ","\\beth",!0),Ie(Re,je,Ze,"ℸ","\\daleth",!0),Ie(Re,je,Ze,"ℷ","\\gimel",!0),Ie(Re,je,Ze,"ϝ","\\digamma",!0),Ie(Re,je,Ze,"ϰ","\\varkappa"),Ie(Re,je,Ge,"┌","\\@ulcorner",!0),Ie(Re,je,He,"┐","\\@urcorner",!0),Ie(Re,je,Ge,"└","\\@llcorner",!0),Ie(Re,je,He,"┘","\\@lrcorner",!0),Ie(Re,je,Ye,"≦","\\leqq",!0),Ie(Re,je,Ye,"⩽","\\leqslant",!0),Ie(Re,je,Ye,"⪕","\\eqslantless",!0),Ie(Re,je,Ye,"≲","\\lesssim",!0),Ie(Re,je,Ye,"⪅","\\lessapprox",!0),Ie(Re,je,Ye,"≊","\\approxeq",!0),Ie(Re,je,Ue,"⋖","\\lessdot"),Ie(Re,je,Ye,"⋘","\\lll",!0),Ie(Re,je,Ye,"≶","\\lessgtr",!0),Ie(Re,je,Ye,"⋚","\\lesseqgtr",!0),Ie(Re,je,Ye,"⪋","\\lesseqqgtr",!0),Ie(Re,je,Ye,"≑","\\doteqdot"),Ie(Re,je,Ye,"≓","\\risingdotseq",!0),Ie(Re,je,Ye,"≒","\\fallingdotseq",!0),Ie(Re,je,Ye,"∽","\\backsim",!0),Ie(Re,je,Ye,"⋍","\\backsimeq",!0),Ie(Re,je,Ye,"⫅","\\subseteqq",!0),Ie(Re,je,Ye,"⋐","\\Subset",!0),Ie(Re,je,Ye,"⊏","\\sqsubset",!0),Ie(Re,je,Ye,"≼","\\preccurlyeq",!0),Ie(Re,je,Ye,"⋞","\\curlyeqprec",!0),Ie(Re,je,Ye,"≾","\\precsim",!0),Ie(Re,je,Ye,"⪷","\\precapprox",!0),Ie(Re,je,Ye,"⊲","\\vartriangleleft"),Ie(Re,je,Ye,"⊴","\\trianglelefteq"),Ie(Re,je,Ye,"⊨","\\vDash",!0),Ie(Re,je,Ye,"⊪","\\Vvdash",!0),Ie(Re,je,Ye,"⌣","\\smallsmile"),Ie(Re,je,Ye,"⌢","\\smallfrown"),Ie(Re,je,Ye,"≏","\\bumpeq",!0),Ie(Re,je,Ye,"≎","\\Bumpeq",!0),Ie(Re,je,Ye,"≧","\\geqq",!0),Ie(Re,je,Ye,"⩾","\\geqslant",!0),Ie(Re,je,Ye,"⪖","\\eqslantgtr",!0),Ie(Re,je,Ye,"≳","\\gtrsim",!0),Ie(Re,je,Ye,"⪆","\\gtrapprox",!0),Ie(Re,je,Ue,"⋗","\\gtrdot"),Ie(Re,je,Ye,"⋙","\\ggg",!0),Ie(Re,je,Ye,"≷","\\gtrless",!0),Ie(Re,je,Ye,"⋛","\\gtreqless",!0),Ie(Re,je,Ye,"⪌","\\gtreqqless",!0),Ie(Re,je,Ye,"≖","\\eqcirc",!0),Ie(Re,je,Ye,"≗","\\circeq",!0),Ie(Re,je,Ye,"≜","\\triangleq",!0),Ie(Re,je,Ye,"∼","\\thicksim"),Ie(Re,je,Ye,"≈","\\thickapprox"),Ie(Re,je,Ye,"⫆","\\supseteqq",!0),Ie(Re,je,Ye,"⋑","\\Supset",!0),Ie(Re,je,Ye,"⊐","\\sqsupset",!0),Ie(Re,je,Ye,"≽","\\succcurlyeq",!0),Ie(Re,je,Ye,"⋟","\\curlyeqsucc",!0),Ie(Re,je,Ye,"≿","\\succsim",!0),Ie(Re,je,Ye,"⪸","\\succapprox",!0),Ie(Re,je,Ye,"⊳","\\vartriangleright"),Ie(Re,je,Ye,"⊵","\\trianglerighteq"),Ie(Re,je,Ye,"⊩","\\Vdash",!0),Ie(Re,je,Ye,"∣","\\shortmid"),Ie(Re,je,Ye,"∥","\\shortparallel"),Ie(Re,je,Ye,"≬","\\between",!0),Ie(Re,je,Ye,"⋔","\\pitchfork",!0),Ie(Re,je,Ye,"∝","\\varpropto"),Ie(Re,je,Ye,"◀","\\blacktriangleleft"),Ie(Re,je,Ye,"∴","\\therefore",!0),Ie(Re,je,Ye,"∍","\\backepsilon"),Ie(Re,je,Ye,"▶","\\blacktriangleright"),Ie(Re,je,Ye,"∵","\\because",!0),Ie(Re,je,Ye,"⋘","\\llless"),Ie(Re,je,Ye,"⋙","\\gggtr"),Ie(Re,je,Ue,"⊲","\\lhd"),Ie(Re,je,Ue,"⊳","\\rhd"),Ie(Re,je,Ye,"≂","\\eqsim",!0),Ie(Re,ze,Ye,"⋈","\\Join"),Ie(Re,je,Ye,"≑","\\Doteq",!0),Ie(Re,je,Ue,"∔","\\dotplus",!0),Ie(Re,je,Ue,"∖","\\smallsetminus"),Ie(Re,je,Ue,"⋒","\\Cap",!0),Ie(Re,je,Ue,"⋓","\\Cup",!0),Ie(Re,je,Ue,"⩞","\\doublebarwedge",!0),Ie(Re,je,Ue,"⊟","\\boxminus",!0),Ie(Re,je,Ue,"⊞","\\boxplus",!0),Ie(Re,je,Ue,"⋇","\\divideontimes",!0),Ie(Re,je,Ue,"⋉","\\ltimes",!0),Ie(Re,je,Ue,"⋊","\\rtimes",!0),Ie(Re,je,Ue,"⋋","\\leftthreetimes",!0),Ie(Re,je,Ue,"⋌","\\rightthreetimes",!0),Ie(Re,je,Ue,"⋏","\\curlywedge",!0),Ie(Re,je,Ue,"⋎","\\curlyvee",!0),Ie(Re,je,Ue,"⊝","\\circleddash",!0),Ie(Re,je,Ue,"⊛","\\circledast",!0),Ie(Re,je,Ue,"⋅","\\centerdot"),Ie(Re,je,Ue,"⊺","\\intercal",!0),Ie(Re,je,Ue,"⋒","\\doublecap"),Ie(Re,je,Ue,"⋓","\\doublecup"),Ie(Re,je,Ue,"⊠","\\boxtimes",!0),Ie(Re,je,Ye,"⇢","\\dashrightarrow",!0),Ie(Re,je,Ye,"⇠","\\dashleftarrow",!0),Ie(Re,je,Ye,"⇇","\\leftleftarrows",!0),Ie(Re,je,Ye,"⇆","\\leftrightarrows",!0),Ie(Re,je,Ye,"⇚","\\Lleftarrow",!0),Ie(Re,je,Ye,"↞","\\twoheadleftarrow",!0),Ie(Re,je,Ye,"↢","\\leftarrowtail",!0),Ie(Re,je,Ye,"↫","\\looparrowleft",!0),Ie(Re,je,Ye,"⇋","\\leftrightharpoons",!0),Ie(Re,je,Ye,"↶","\\curvearrowleft",!0),Ie(Re,je,Ye,"↺","\\circlearrowleft",!0),Ie(Re,je,Ye,"↰","\\Lsh",!0),Ie(Re,je,Ye,"⇈","\\upuparrows",!0),Ie(Re,je,Ye,"↿","\\upharpoonleft",!0),Ie(Re,je,Ye,"⇃","\\downharpoonleft",!0),Ie(Re,ze,Ye,"⊶","\\origof",!0),Ie(Re,ze,Ye,"⊷","\\imageof",!0),Ie(Re,je,Ye,"⊸","\\multimap",!0),Ie(Re,je,Ye,"↭","\\leftrightsquigarrow",!0),Ie(Re,je,Ye,"⇉","\\rightrightarrows",!0),Ie(Re,je,Ye,"⇄","\\rightleftarrows",!0),Ie(Re,je,Ye,"↠","\\twoheadrightarrow",!0),Ie(Re,je,Ye,"↣","\\rightarrowtail",!0),Ie(Re,je,Ye,"↬","\\looparrowright",!0),Ie(Re,je,Ye,"↷","\\curvearrowright",!0),Ie(Re,je,Ye,"↻","\\circlearrowright",!0),Ie(Re,je,Ye,"↱","\\Rsh",!0),Ie(Re,je,Ye,"⇊","\\downdownarrows",!0),Ie(Re,je,Ye,"↾","\\upharpoonright",!0),Ie(Re,je,Ye,"⇂","\\downharpoonright",!0),Ie(Re,je,Ye,"⇝","\\rightsquigarrow",!0),Ie(Re,je,Ye,"⇝","\\leadsto"),Ie(Re,je,Ye,"⇛","\\Rrightarrow",!0),Ie(Re,je,Ye,"↾","\\restriction"),Ie(Re,ze,Ze,"‘","`"),Ie(Re,ze,Ze,"$","\\$"),Ie(Fe,ze,Ze,"$","\\$"),Ie(Fe,ze,Ze,"$","\\textdollar"),Ie(Re,ze,Ze,"%","\\%"),Ie(Fe,ze,Ze,"%","\\%"),Ie(Re,ze,Ze,"_","\\_"),Ie(Fe,ze,Ze,"_","\\_"),Ie(Fe,ze,Ze,"_","\\textunderscore"),Ie(Re,ze,Ze,"∠","\\angle",!0),Ie(Re,ze,Ze,"∞","\\infty",!0),Ie(Re,ze,Ze,"′","\\prime"),Ie(Re,ze,Ze,"△","\\triangle"),Ie(Re,ze,Ze,"Γ","\\Gamma",!0),Ie(Re,ze,Ze,"Δ","\\Delta",!0),Ie(Re,ze,Ze,"Θ","\\Theta",!0),Ie(Re,ze,Ze,"Λ","\\Lambda",!0),Ie(Re,ze,Ze,"Ξ","\\Xi",!0),Ie(Re,ze,Ze,"Π","\\Pi",!0),Ie(Re,ze,Ze,"Σ","\\Sigma",!0),Ie(Re,ze,Ze,"Υ","\\Upsilon",!0),Ie(Re,ze,Ze,"Φ","\\Phi",!0),Ie(Re,ze,Ze,"Ψ","\\Psi",!0),Ie(Re,ze,Ze,"Ω","\\Omega",!0),Ie(Re,ze,Ze,"A","Α"),Ie(Re,ze,Ze,"B","Β"),Ie(Re,ze,Ze,"E","Ε"),Ie(Re,ze,Ze,"Z","Ζ"),Ie(Re,ze,Ze,"H","Η"),Ie(Re,ze,Ze,"I","Ι"),Ie(Re,ze,Ze,"K","Κ"),Ie(Re,ze,Ze,"M","Μ"),Ie(Re,ze,Ze,"N","Ν"),Ie(Re,ze,Ze,"O","Ο"),Ie(Re,ze,Ze,"P","Ρ"),Ie(Re,ze,Ze,"T","Τ"),Ie(Re,ze,Ze,"X","Χ"),Ie(Re,ze,Ze,"¬","\\neg",!0),Ie(Re,ze,Ze,"¬","\\lnot"),Ie(Re,ze,Ze,"⊤","\\top"),Ie(Re,ze,Ze,"⊥","\\bot"),Ie(Re,ze,Ze,"∅","\\emptyset"),Ie(Re,je,Ze,"∅","\\varnothing"),Ie(Re,ze,We,"α","\\alpha",!0),Ie(Re,ze,We,"β","\\beta",!0),Ie(Re,ze,We,"γ","\\gamma",!0),Ie(Re,ze,We,"δ","\\delta",!0),Ie(Re,ze,We,"ϵ","\\epsilon",!0),Ie(Re,ze,We,"ζ","\\zeta",!0),Ie(Re,ze,We,"η","\\eta",!0),Ie(Re,ze,We,"θ","\\theta",!0),Ie(Re,ze,We,"ι","\\iota",!0),Ie(Re,ze,We,"κ","\\kappa",!0),Ie(Re,ze,We,"λ","\\lambda",!0),Ie(Re,ze,We,"μ","\\mu",!0),Ie(Re,ze,We,"ν","\\nu",!0),Ie(Re,ze,We,"ξ","\\xi",!0),Ie(Re,ze,We,"ο","\\omicron",!0),Ie(Re,ze,We,"π","\\pi",!0),Ie(Re,ze,We,"ρ","\\rho",!0),Ie(Re,ze,We,"σ","\\sigma",!0),Ie(Re,ze,We,"τ","\\tau",!0),Ie(Re,ze,We,"υ","\\upsilon",!0),Ie(Re,ze,We,"ϕ","\\phi",!0),Ie(Re,ze,We,"χ","\\chi",!0),Ie(Re,ze,We,"ψ","\\psi",!0),Ie(Re,ze,We,"ω","\\omega",!0),Ie(Re,ze,We,"ε","\\varepsilon",!0),Ie(Re,ze,We,"ϑ","\\vartheta",!0),Ie(Re,ze,We,"ϖ","\\varpi",!0),Ie(Re,ze,We,"ϱ","\\varrho",!0),Ie(Re,ze,We,"ς","\\varsigma",!0),Ie(Re,ze,We,"φ","\\varphi",!0),Ie(Re,ze,Ue,"∗","*",!0),Ie(Re,ze,Ue,"+","+"),Ie(Re,ze,Ue,"−","-",!0),Ie(Re,ze,Ue,"⋅","\\cdot",!0),Ie(Re,ze,Ue,"∘","\\circ",!0),Ie(Re,ze,Ue,"÷","\\div",!0),Ie(Re,ze,Ue,"±","\\pm",!0),Ie(Re,ze,Ue,"×","\\times",!0),Ie(Re,ze,Ue,"∩","\\cap",!0),Ie(Re,ze,Ue,"∪","\\cup",!0),Ie(Re,ze,Ue,"∖","\\setminus",!0),Ie(Re,ze,Ue,"∧","\\land"),Ie(Re,ze,Ue,"∨","\\lor"),Ie(Re,ze,Ue,"∧","\\wedge",!0),Ie(Re,ze,Ue,"∨","\\vee",!0),Ie(Re,ze,Ze,"√","\\surd"),Ie(Re,ze,Ge,"⟨","\\langle",!0),Ie(Re,ze,Ge,"∣","\\lvert"),Ie(Re,ze,Ge,"∥","\\lVert"),Ie(Re,ze,He,"?","?"),Ie(Re,ze,He,"!","!"),Ie(Re,ze,He,"⟩","\\rangle",!0),Ie(Re,ze,He,"∣","\\rvert"),Ie(Re,ze,He,"∥","\\rVert"),Ie(Re,ze,Ye,"=","="),Ie(Re,ze,Ye,":",":"),Ie(Re,ze,Ye,"≈","\\approx",!0),Ie(Re,ze,Ye,"≅","\\cong",!0),Ie(Re,ze,Ye,"≥","\\ge"),Ie(Re,ze,Ye,"≥","\\geq",!0),Ie(Re,ze,Ye,"←","\\gets"),Ie(Re,ze,Ye,">","\\gt",!0),Ie(Re,ze,Ye,"∈","\\in",!0),Ie(Re,ze,Ye,"","\\@not"),Ie(Re,ze,Ye,"⊂","\\subset",!0),Ie(Re,ze,Ye,"⊃","\\supset",!0),Ie(Re,ze,Ye,"⊆","\\subseteq",!0),Ie(Re,ze,Ye,"⊇","\\supseteq",!0),Ie(Re,je,Ye,"⊈","\\nsubseteq",!0),Ie(Re,je,Ye,"⊉","\\nsupseteq",!0),Ie(Re,ze,Ye,"⊨","\\models"),Ie(Re,ze,Ye,"←","\\leftarrow",!0),Ie(Re,ze,Ye,"≤","\\le"),Ie(Re,ze,Ye,"≤","\\leq",!0),Ie(Re,ze,Ye,"<","\\lt",!0),Ie(Re,ze,Ye,"→","\\rightarrow",!0),Ie(Re,ze,Ye,"→","\\to"),Ie(Re,je,Ye,"≱","\\ngeq",!0),Ie(Re,je,Ye,"≰","\\nleq",!0),Ie(Re,ze,Ke," ","\\ "),Ie(Re,ze,Ke," ","\\space"),Ie(Re,ze,Ke," ","\\nobreakspace"),Ie(Fe,ze,Ke," ","\\ "),Ie(Fe,ze,Ke," "," "),Ie(Fe,ze,Ke," ","\\space"),Ie(Fe,ze,Ke," ","\\nobreakspace"),Ie(Re,ze,Ke,null,"\\nobreak"),Ie(Re,ze,Ke,null,"\\allowbreak"),Ie(Re,ze,Ve,",",","),Ie(Re,ze,Ve,";",";"),Ie(Re,je,Ue,"⊼","\\barwedge",!0),Ie(Re,je,Ue,"⊻","\\veebar",!0),Ie(Re,ze,Ue,"⊙","\\odot",!0),Ie(Re,ze,Ue,"⊕","\\oplus",!0),Ie(Re,ze,Ue,"⊗","\\otimes",!0),Ie(Re,ze,Ze,"∂","\\partial",!0),Ie(Re,ze,Ue,"⊘","\\oslash",!0),Ie(Re,je,Ue,"⊚","\\circledcirc",!0),Ie(Re,je,Ue,"⊡","\\boxdot",!0),Ie(Re,ze,Ue,"△","\\bigtriangleup"),Ie(Re,ze,Ue,"▽","\\bigtriangledown"),Ie(Re,ze,Ue,"†","\\dagger"),Ie(Re,ze,Ue,"⋄","\\diamond"),Ie(Re,ze,Ue,"⋆","\\star"),Ie(Re,ze,Ue,"◃","\\triangleleft"),Ie(Re,ze,Ue,"▹","\\triangleright"),Ie(Re,ze,Ge,"{","\\{"),Ie(Fe,ze,Ze,"{","\\{"),Ie(Fe,ze,Ze,"{","\\textbraceleft"),Ie(Re,ze,He,"}","\\}"),Ie(Fe,ze,Ze,"}","\\}"),Ie(Fe,ze,Ze,"}","\\textbraceright"),Ie(Re,ze,Ge,"{","\\lbrace"),Ie(Re,ze,He,"}","\\rbrace"),Ie(Re,ze,Ge,"[","\\lbrack",!0),Ie(Fe,ze,Ze,"[","\\lbrack",!0),Ie(Re,ze,He,"]","\\rbrack",!0),Ie(Fe,ze,Ze,"]","\\rbrack",!0),Ie(Re,ze,Ge,"(","\\lparen",!0),Ie(Re,ze,He,")","\\rparen",!0),Ie(Fe,ze,Ze,"<","\\textless",!0),Ie(Fe,ze,Ze,">","\\textgreater",!0),Ie(Re,ze,Ge,"⌊","\\lfloor",!0),Ie(Re,ze,He,"⌋","\\rfloor",!0),Ie(Re,ze,Ge,"⌈","\\lceil",!0),Ie(Re,ze,He,"⌉","\\rceil",!0),Ie(Re,ze,Ze,"\\","\\backslash"),Ie(Re,ze,Ze,"∣","|"),Ie(Re,ze,Ze,"∣","\\vert"),Ie(Fe,ze,Ze,"|","\\textbar",!0),Ie(Re,ze,Ze,"∥","\\|"),Ie(Re,ze,Ze,"∥","\\Vert"),Ie(Fe,ze,Ze,"∥","\\textbardbl"),Ie(Fe,ze,Ze,"~","\\textasciitilde"),Ie(Fe,ze,Ze,"\\","\\textbackslash"),Ie(Fe,ze,Ze,"^","\\textasciicircum"),Ie(Re,ze,Ye,"↑","\\uparrow",!0),Ie(Re,ze,Ye,"⇑","\\Uparrow",!0),Ie(Re,ze,Ye,"↓","\\downarrow",!0),Ie(Re,ze,Ye,"⇓","\\Downarrow",!0),Ie(Re,ze,Ye,"↕","\\updownarrow",!0),Ie(Re,ze,Ye,"⇕","\\Updownarrow",!0),Ie(Re,ze,_e,"∐","\\coprod"),Ie(Re,ze,_e,"⋁","\\bigvee"),Ie(Re,ze,_e,"⋀","\\bigwedge"),Ie(Re,ze,_e,"⨄","\\biguplus"),Ie(Re,ze,_e,"⋂","\\bigcap"),Ie(Re,ze,_e,"⋃","\\bigcup"),Ie(Re,ze,_e,"∫","\\int"),Ie(Re,ze,_e,"∫","\\intop"),Ie(Re,ze,_e,"∬","\\iint"),Ie(Re,ze,_e,"∭","\\iiint"),Ie(Re,ze,_e,"∏","\\prod"),Ie(Re,ze,_e,"∑","\\sum"),Ie(Re,ze,_e,"⨂","\\bigotimes"),Ie(Re,ze,_e,"⨁","\\bigoplus"),Ie(Re,ze,_e,"⨀","\\bigodot"),Ie(Re,ze,_e,"∮","\\oint"),Ie(Re,ze,_e,"∯","\\oiint"),Ie(Re,ze,_e,"∰","\\oiiint"),Ie(Re,ze,_e,"⨆","\\bigsqcup"),Ie(Re,ze,_e,"∫","\\smallint"),Ie(Fe,ze,qe,"…","\\textellipsis"),Ie(Re,ze,qe,"…","\\mathellipsis"),Ie(Fe,ze,qe,"…","\\ldots",!0),Ie(Re,ze,qe,"…","\\ldots",!0),Ie(Re,ze,qe,"⋯","\\@cdots",!0),Ie(Re,ze,qe,"⋱","\\ddots",!0),Ie(Re,ze,Ze,"⋮","\\varvdots"),Ie(Re,ze,Be,"ˊ","\\acute"),Ie(Re,ze,Be,"ˋ","\\grave"),Ie(Re,ze,Be,"¨","\\ddot"),Ie(Re,ze,Be,"~","\\tilde"),Ie(Re,ze,Be,"ˉ","\\bar"),Ie(Re,ze,Be,"˘","\\breve"),Ie(Re,ze,Be,"ˇ","\\check"),Ie(Re,ze,Be,"^","\\hat"),Ie(Re,ze,Be,"⃗","\\vec"),Ie(Re,ze,Be,"˙","\\dot"),Ie(Re,ze,Be,"˚","\\mathring"),Ie(Re,ze,We,"","\\@imath"),Ie(Re,ze,We,"","\\@jmath"),Ie(Re,ze,Ze,"ı","ı"),Ie(Re,ze,Ze,"ȷ","ȷ"),Ie(Fe,ze,Ze,"ı","\\i",!0),Ie(Fe,ze,Ze,"ȷ","\\j",!0),Ie(Fe,ze,Ze,"ß","\\ss",!0),Ie(Fe,ze,Ze,"æ","\\ae",!0),Ie(Fe,ze,Ze,"œ","\\oe",!0),Ie(Fe,ze,Ze,"ø","\\o",!0),Ie(Fe,ze,Ze,"Æ","\\AE",!0),Ie(Fe,ze,Ze,"Œ","\\OE",!0),Ie(Fe,ze,Ze,"Ø","\\O",!0),Ie(Fe,ze,Be,"ˊ","\\'"),Ie(Fe,ze,Be,"ˋ","\\`"),Ie(Fe,ze,Be,"ˆ","\\^"),Ie(Fe,ze,Be,"˜","\\~"),Ie(Fe,ze,Be,"ˉ","\\="),Ie(Fe,ze,Be,"˘","\\u"),Ie(Fe,ze,Be,"˙","\\."),Ie(Fe,ze,Be,"¸","\\c"),Ie(Fe,ze,Be,"˚","\\r"),Ie(Fe,ze,Be,"ˇ","\\v"),Ie(Fe,ze,Be,"¨",'\\"'),Ie(Fe,ze,Be,"˝","\\H"),Ie(Fe,ze,Be,"◯","\\textcircled");var Xe={"--":!0,"---":!0,"``":!0,"''":!0};Ie(Fe,ze,Ze,"–","--",!0),Ie(Fe,ze,Ze,"–","\\textendash"),Ie(Fe,ze,Ze,"—","---",!0),Ie(Fe,ze,Ze,"—","\\textemdash"),Ie(Fe,ze,Ze,"‘","`",!0),Ie(Fe,ze,Ze,"‘","\\textquoteleft"),Ie(Fe,ze,Ze,"’","'",!0),Ie(Fe,ze,Ze,"’","\\textquoteright"),Ie(Fe,ze,Ze,"“","``",!0),Ie(Fe,ze,Ze,"“","\\textquotedblleft"),Ie(Fe,ze,Ze,"”","''",!0),Ie(Fe,ze,Ze,"”","\\textquotedblright"),Ie(Re,ze,Ze,"°","\\degree",!0),Ie(Fe,ze,Ze,"°","\\degree"),Ie(Fe,ze,Ze,"°","\\textdegree",!0),Ie(Re,ze,Ze,"£","\\pounds"),Ie(Re,ze,Ze,"£","\\mathsterling",!0),Ie(Fe,ze,Ze,"£","\\pounds"),Ie(Fe,ze,Ze,"£","\\textsterling",!0),Ie(Re,je,Ze,"✠","\\maltese"),Ie(Fe,je,Ze,"✠","\\maltese");for(var Je='0123456789/@."',Qe=0;Qet&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>r&&(r=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Et=function(e,t,n,r){var i=new we(e,t,n,r);return At(i),i},Tt=function(e,t,n,r){return new we(e,t,n,r)},St=function(e,t,n){var r=Et([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=me(r.height),r.maxFontSize=1,r},Mt=function(e,t,n,r){var i=new xe(e,t,n,r);return At(i),i},Ot=function(e){var t=new Q(e);return At(t),t},Nt=function(e,t){return e instanceof Q?Et([],[e],t):e},Dt=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,o=1;o0&&(a.push(un(s,t)),s=[]),a.push(i[l]));s.length>0&&a.push(un(s,t)),n?(o=un(nn(n,t,!0)),o.classes=["tag"],a.push(o)):r&&a.push(r);var u=Jt(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),o){var h=o.children[0];h.style.height=me(u.height+u.depth),u.depth&&(h.style.verticalAlign=me(-u.depth))}return u}function dn(e){return new Q(e)}var fn=function(){function e(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=ge(this.classes));for(var n=0;n0&&(e+=' class ="'+m.escape(ge(this.classes))+'"'),e+=">";for(var n=0;n",e},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),pn=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return m.escape(this.toText())},t.toText=function(){return this.text},e}(),mn=function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",me(this.width)),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),gn={MathNode:fn,TextNode:pn,SpaceNode:mn,newDocumentFragment:dn},vn=function(e,t,n){return!Pe[t][e]||!Pe[t][e].replace||55349===e.charCodeAt(0)||Xe.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=Pe[t][e].replace),new gn.TextNode(e)},bn=function(e){return 1===e.length?e[0]:new gn.MathNode("mrow",e)},yn=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var i=e.text;if(m.contains(["\\imath","\\jmath"],i))return null;Pe[r][i]&&Pe[r][i].replace&&(i=Pe[r][i].replace);var o=jt.fontMap[n].fontName;return re(i,o,r)?jt.fontMap[n].variant:null},wn=function(e,t,n){if(1===e.length){var r=kn(e[0],t);return n&&r instanceof fn&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,o=[],a=0;a0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),o.pop())}}}o.push(s),i=s}return o},xn=function(e,t,n){return bn(wn(e,t,n))},kn=function(e,t){if(!e)return new gn.MathNode("mrow");if(Vt[e.type]){var n=Vt[e.type](e,t);return n}throw new r("Got group of unknown type: '"+e.type+"'")};function Cn(e,t,n,r,i){var o,a=wn(e,n);o=1===a.length&&a[0]instanceof fn&&m.contains(["mrow","mtable"],a[0].type)?a[0]:new gn.MathNode("mrow",a);var s=new gn.MathNode("annotation",[new gn.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new gn.MathNode("semantics",[o,s]),c=new gn.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return jt.makeSpan([u],[c])}var An=function(e){return new ue({style:e.displayMode?R.DISPLAY:R.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},En=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=jt.makeSpan(n,[e])}return e},Tn=function(e,t,n){var r,i=An(n);if("mathml"===n.output)return Cn(e,t,i,n.displayMode,!0);if("html"===n.output){var o=hn(e,i);r=jt.makeSpan(["katex"],[o])}else{var a=Cn(e,t,i,n.displayMode,!1),s=hn(e,i);r=jt.makeSpan(["katex"],[a,s])}return En(r,n)},Sn=function(e,t,n){var r=An(n),i=hn(e,r),o=jt.makeSpan(["katex"],[i]);return En(o,n)},Mn={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},On=function(e){var t=new gn.MathNode("mo",[new gn.TextNode(Mn[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Nn={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Dn=function(e){return"ordgroup"===e.type?e.body.length:1},Ln=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(m.contains(["widehat","widecheck","widetilde","utilde"],r)){var i,o,a,s=e,l=Dn(s.base);if(l>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,a=.42,o=r+"4"):(i=312,n=2340,a=.34,o="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],i=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],i=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],o="tilde"+c)}var u=new Te(o),h=new Ee([u],{width:"100%",height:me(a),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:jt.makeSvgSpan([],[h],t),minWidth:0,height:a}}var d,f,p=[],g=Nn[r],v=g[0],b=g[1],y=g[2],w=y/1e3,x=v.length;if(1===x){var k=g[3];d=["hide-tail"],f=[k]}else if(2===x)d=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");d=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var C=0;C0&&(i.style.minWidth=me(o)),i},Pn=function(e,t,n,r,i){var o,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(o=jt.makeSpan(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(o.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Se({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Se({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Ee(l,{width:"100%",height:me(a)});o=jt.makeSvgSpan([],[c],i)}return o.height=a,o.style.height=me(a),o},In={encloseSpan:Pn,mathMLnode:On,svgSpan:Ln};function Rn(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Fn(e){var t=zn(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function zn(e){return e&&("atom"===e.type||De.hasOwnProperty(e.type))?e:null}var jn=function(e,t){var n,r,i;e&&"supsub"===e.type?(r=Rn(e.base,"accent"),n=r.base,e.base=n,i=Oe(cn(e,t)),e.base=r):(r=Rn(e,"accent"),n=r.base);var o=cn(n,t.havingCrampedStyle()),a=r.isShifty&&m.isCharacterBox(n),s=0;if(a){var l=m.getBaseElem(n),c=cn(l,t.havingCrampedStyle());s=Me(c).skew}var u,h="\\c"===r.label,d=h?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight);if(r.isStretchy)u=In.svgSpan(r,t),u=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+me(2*s)+")",marginLeft:me(2*s)}:void 0}]},t);else{var f,p;"\\vec"===r.label?(f=jt.staticSvg("vec",t),p=jt.svgData.vec[1]):(f=jt.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=Me(f),f.italic=0,p=f.width,h&&(d+=f.depth)),u=jt.makeSpan(["accent-body"],[f]);var g="\\textcircled"===r.label;g&&(u.classes.push("accent-full"),d=o.height);var v=s;g||(v-=p/2),u.style.left=me(v),"\\textcircled"===r.label&&(u.style.top=".2em"),u=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-d},{type:"elem",elem:u}]},t)}var b=jt.makeSpan(["mord","accent"],[u],t);return i?(i.children[0]=b,i.height=Math.max(b.height,i.height),i.classes[0]="mord",i):b},Bn=function(e,t){var n=e.isStretchy?In.mathMLnode(e.label):new gn.MathNode("mo",[vn(e.label,e.mode)]),r=new gn.MathNode("mover",[kn(e.base,t),n]);return r.setAttribute("accent","true"),r},Un=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));Yt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=Zt(t[0]),r=!Un.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:jn,mathmlBuilder:Bn}),Yt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:jn,mathmlBuilder:Bn}),Yt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:function(e,t){var n=cn(e.base,t),r=In.svgSpan(e,t),i="\\utilde"===e.label?.12:0,o=jt.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return jt.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:function(e,t){var n=In.mathMLnode(e.label),r=new gn.MathNode("munder",[kn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Hn=function(e){var t=new gn.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Yt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,i=e.funcName;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),o=jt.wrapFragment(cn(e.body,i,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(a+"-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),n=jt.wrapFragment(cn(e.below,i,t),t),n.classes.push(a+"-arrow-pad"));var s,l=In.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=o.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:h}]},t)}else s=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),jt.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var n,r=In.mathMLnode(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=Hn(kn(e.body,t));if(e.below){var o=Hn(kn(e.below,t));n=new gn.MathNode("munderover",[r,o,i])}else n=new gn.MathNode("mover",[r,i])}else if(e.below){var a=Hn(kn(e.below,t));n=new gn.MathNode("munder",[r,a])}else n=Hn(),n=new gn.MathNode("mover",[r,n]);return n}});var qn=jt.makeSpan;function Wn(e,t){var n=nn(e.body,t,!0);return qn([e.mclass],n,t)}function _n(e,t){var n,r=wn(e.body,t);return"minner"===e.mclass?n=new gn.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0],n.type="mi"):n=new gn.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new gn.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Yt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Xt(i),isCharacterBox:m.isCharacterBox(i)}},htmlBuilder:Wn,mathmlBuilder:_n});var Gn=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Yt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){var n=e.parser;return{type:"mclass",mode:n.mode,mclass:Gn(t[0]),body:Xt(t[1]),isCharacterBox:m.isCharacterBox(t[1])}}}),Yt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,r=e.parser,i=e.funcName,o=t[1],a=t[0];n="\\stackrel"!==i?Gn(o):"mrel";var s={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:Xt(o)},l={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===i?null:a,sub:"\\underset"===i?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:m.isCharacterBox(l)}},htmlBuilder:Wn,mathmlBuilder:_n}),Yt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"pmb",mode:n.mode,mclass:Gn(t[0]),body:Xt(t[0])}},htmlBuilder:function(e,t){var n=nn(e.body,t,!0),r=jt.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder:function(e,t){var n=wn(e.body,t),r=new gn.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Vn={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Yn=function(){return{type:"styling",body:[],mode:"math",style:"display"}},Kn=function(e){return"textord"===e.type&&"@"===e.text},Zn=function(e,t){return("mathord"===e.type||"atom"===e.type)&&e.text===t};function Xn(e,t,n){var r=Vn[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i=n.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:r,mode:"math",family:"rel"},a=n.callFunction("\\Big",[o],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,a,s]};return n.callFunction("\\\\cdparent",[l],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[]);default:return{type:"textord",text:" ",mode:"math"}}}function Jn(e){var t=[];e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();while(1){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new r("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var i=[],o=[i],a=0;a-1);else{if(!("<>AV".indexOf(u)>-1))throw new r('Expected one of "<>AV=|." after @',s[c]);for(var d=0;d<2;d++){for(var f=!0,p=c+1;p=1114111)throw new r("\\@char with invalid code point "+a);return u<=65535?c=String.fromCharCode(u):(u-=65536,c=String.fromCharCode(55296+(u>>10),56320+(1023&u))),{type:"textord",mode:n.mode,text:c}}});var Qn=function(e,t){var n=nn(e.body,t.withColor(e.color),!1);return jt.makeFragment(n)},$n=function(e,t){var n=wn(e.body,t.withColor(e.color)),r=new gn.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Yt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,r=Rn(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:Xt(i)}},htmlBuilder:Qn,mathmlBuilder:$n}),Yt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,i=Rn(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:o}},htmlBuilder:Qn,mathmlBuilder:$n}),Yt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(e,t,n){var r=e.parser,i="["===r.gullet.future().text?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:i&&Rn(i,"size").value}},htmlBuilder:function(e,t){var n=jt.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=me(pe(e.size,t)))),n},mathmlBuilder:function(e,t){var n=new gn.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",me(pe(e.size,t)))),n}});var er={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},tr=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new r("Expected a control sequence",e);return t},nr=function(e){var t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t},rr=function(e,t,n,r){var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Yt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var i=t.fetch();if(er[i.text])return"\\global"!==n&&"\\\\globallong"!==n||(i.text=er[i.text]),Rn(t.parseFunction(),"internal");throw new r("Invalid token after macro prefix",i)}}),Yt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new r("Expected a control sequence",i);var a,s=0,l=[[]];while("{"!==t.gullet.future().text)if(i=t.gullet.popToken(),"#"===i.text){if("{"===t.gullet.future().text){a=t.gullet.future(),l[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new r('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new r('Argument number "'+i.text+'" out of order');s++,l.push([])}else{if("EOF"===i.text)throw new r("Expected a macro definition");l[s].push(i.text)}var c=t.gullet.consumeArg(),u=c.tokens;return a&&u.unshift(a),"\\edef"!==n&&"\\xdef"!==n||(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(o,{tokens:u,numArgs:s,delimiters:l},n===er[n]),{type:"internal",mode:t.mode}}}),Yt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=tr(t.gullet.popToken());t.gullet.consumeSpaces();var i=nr(t);return rr(t,r,i,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),Yt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=tr(t.gullet.popToken()),i=t.gullet.popToken(),o=t.gullet.popToken();return rr(t,r,o,"\\\\globalfuture"===n),t.gullet.pushToken(o),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ir=function(e,t,n){var r=Pe.math[e]&&Pe.math[e].replace,i=re(r||e,t,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return i},or=function(e,t,n,r){var i=n.havingBaseStyle(t),o=jt.makeSpan(r.concat(i.sizingClasses(n)),[e],n),a=i.sizeMultiplier/n.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=i.sizeMultiplier,o},ar=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=me(i),e.height-=i,e.depth+=i},sr=function(e,t,n,r,i,o){var a=jt.makeSymbol(e,"Main-Regular",i,r),s=or(a,t,r,o);return n&&ar(s,r,t),s},lr=function(e,t,n,r){return jt.makeSymbol(e,"Size"+t+"-Regular",n,r)},cr=function(e,t,n,r,i,o){var a=lr(e,t,i,r),s=or(jt.makeSpan(["delimsizing","size"+t],[a],r),R.TEXT,r,o);return n&&ar(s,r,R.TEXT),s},ur=function(e,t,n){var r;r="Size1-Regular"===t?"delim-size1":"delim-size4";var i=jt.makeSpan(["delimsizinginner",r],[jt.makeSpan([],[jt.makeSymbol(e,t,n)])]);return{type:"elem",elem:i}},hr=function(e,t,n){var r=$["Size4-Regular"][e.charCodeAt(0)]?$["Size4-Regular"][e.charCodeAt(0)][4]:$["Size1-Regular"][e.charCodeAt(0)][4],i=new Te("inner",Z(e,Math.round(1e3*t))),o=new Ee([i],{width:me(r),height:me(t),style:"width:"+me(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=jt.makeSvgSpan([],[o],n);return a.height=t,a.style.height=me(t),a.style.width=me(r),{type:"elem",elem:a}},dr=.008,fr={type:"kern",size:-1*dr},pr=["|","\\lvert","\\rvert","\\vert"],mr=["\\|","\\lVert","\\rVert","\\Vert"],gr=function(e,t,n,r,i,o){var a,s,l,c,u="",h=0;a=l=c=e,s=null;var d="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?a=l="⏐":"\\Downarrow"===e?a=l="‖":"\\updownarrow"===e?(a="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",l="‖",c="\\Downarrow"):m.contains(pr,e)?(l="∣",u="vert",h=333):m.contains(mr,e)?(l="∥",u="doublevert",h=556):"["===e||"\\lbrack"===e?(a="⎡",l="⎢",c="⎣",d="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(a="⎤",l="⎥",c="⎦",d="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(l=a="⎢",c="⎣",d="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"⌈"===e?(a="⎡",l=c="⎢",d="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"⌋"===e?(l=a="⎥",c="⎦",d="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"⌉"===e?(a="⎤",l=c="⎥",d="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(a="⎛",l="⎜",c="⎝",d="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(a="⎞",l="⎟",c="⎠",d="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",c="⎩",l="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",c="⎭",l="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",c="⎩",l="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",c="⎭",l="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",c="⎭",l="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",c="⎩",l="⎪",d="Size4-Regular");var f=ir(a,d,i),p=f.height+f.depth,g=ir(l,d,i),v=g.height+g.depth,b=ir(c,d,i),y=b.height+b.depth,w=0,x=1;if(null!==s){var k=ir(s,d,i);w=k.height+k.depth,x=2}var C=p+y+w,A=Math.max(0,Math.ceil((t-C)/(x*v))),E=C+A*x*v,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var S=E/2-T,M=[];if(u.length>0){var O=E-p-y,N=Math.round(1e3*E),D=J(u,Math.round(1e3*O)),L=new Te(u,D),P=(h/1e3).toFixed(3)+"em",I=(N/1e3).toFixed(3)+"em",F=new Ee([L],{width:P,height:I,viewBox:"0 0 "+h+" "+N}),z=jt.makeSvgSpan([],[F],r);z.height=N/1e3,z.style.width=P,z.style.height=I,M.push({type:"elem",elem:z})}else{if(M.push(ur(c,d,i)),M.push(fr),null===s){var j=E-p-y+2*dr;M.push(hr(l,j,r))}else{var B=(E-p-y-w)/2+2*dr;M.push(hr(l,B,r)),M.push(fr),M.push(ur(s,d,i)),M.push(fr),M.push(hr(l,B,r))}M.push(fr),M.push(ur(a,d,i))}var U=r.havingBaseStyle(R.TEXT),H=jt.makeVList({positionType:"bottom",positionData:S,children:M},U);return or(jt.makeSpan(["delimsizing","mult"],[H],U),R.TEXT,r,o)},vr=80,br=.08,yr=function(e,t,n,r,i){var o=K(e,r,n),a=new Te(e,o),s=new Ee([a],{width:"400em",height:me(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return jt.makeSvgSpan(["hide-tail"],[s],i)},wr=function(e,t){var n,r,i=t.havingBaseSizing(),o=Nr("\\surd",e*i.sizeMultiplier,Mr,i),a=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===o.type?(u=1e3+1e3*s+vr,e<1?a=1:e<1.4&&(a=.7),l=(1+s+br)/a,c=(1+s)/a,n=yr("sqrtMain",l,u,s,t),n.style.minWidth="0.853em",r=.833/a):"large"===o.type?(u=(1e3+vr)*Ar[o.size],c=(Ar[o.size]+s)/a,l=(Ar[o.size]+s+br)/a,n=yr("sqrtSize"+o.size,l,u,s,t),n.style.minWidth="1.02em",r=1/a):(l=e+s+br,c=e+s,u=Math.floor(1e3*e+s)+vr,n=yr("sqrtTall",l,u,s,t),n.style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=me(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},xr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],kr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Cr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ar=[0,1.2,1.8,2.4,3],Er=function(e,t,n,i,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),m.contains(xr,e)||m.contains(Cr,e))return cr(e,t,!1,n,i,o);if(m.contains(kr,e))return gr(e,Ar[t],!1,n,i,o);throw new r("Illegal delimiter: '"+e+"'")},Tr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Sr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"stack"}],Mr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Or=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Nr=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),o=i;ot)return n[o]}return n[n.length-1]},Dr=function(e,t,n,r,i,o){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=m.contains(Cr,e)?Tr:m.contains(xr,e)?Mr:Sr;var s=Nr(e,t,a,r);return"small"===s.type?sr(e,s.style,n,r,i,o):"large"===s.type?cr(e,s.size,n,r,i,o):gr(e,t,n,r,i,o)},Lr=function(e,t,n,r,i,o){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),u=Math.max(c/500*s,2*c-l);return Dr(e,u,!0,r,i,o)},Pr={sqrtImage:wr,sizedDelim:Er,sizeToMaxHeight:Ar,customSizedDelim:Dr,leftRightDelim:Lr},Ir={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Rr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fr(e,t){var n=zn(e);if(n&&m.contains(Rr,n.text))return n;throw new r(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function zr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Yt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var n=Fr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Ir[e.funcName].size,mclass:Ir[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?jt.makeSpan([e.mclass]):Pr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(vn(e.delim,e.mode));var n=new gn.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=me(Pr.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),Yt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!==typeof n)throw new r("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Fr(t[0],e).text,color:n}}}),Yt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=Fr(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=Rn(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:function(e,t){zr(e);for(var n,r,i=nn(e.body,t,!0,["mopen","mclose"]),o=0,a=0,s=!1,l=0;l-1?"mpadded":"menclose",[kn(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Yt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,o=Rn(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,body:a}},htmlBuilder:jr,mathmlBuilder:Br}),Yt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,o=Rn(t[0],"color-token").color,a=Rn(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:jr,mathmlBuilder:Br}),Yt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),Yt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:jr,mathmlBuilder:Br}),Yt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){var n=e.parser;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Ur={};function Hr(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,o=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!h)&&g.pop(),b.length0&&(w+=.25),c.push({pos:w,isDashed:e[t]})}for(x(a[0]),n=0;n0&&(M+=y,A=s)){var G=void 0;(i>0||e.hskipBeforeAndAfter)&&(G=m.deflt(U.pregap,d),0!==G&&(O=jt.makeSpan(["arraycolsep"],[]),O.style.width=me(G),P.push(O)));var V=[];for(n=0;n0){var X=jt.makeLineSpan("hline",t,u),J=jt.makeLineSpan("hdashline",t,u),Q=[{type:"elem",elem:l,shift:0}];while(c.length>0){var $=c.pop(),ee=$.pos-D;$.isDashed?Q.push({type:"elem",elem:J,shift:ee}):Q.push({type:"elem",elem:X,shift:ee})}l=jt.makeVList({positionType:"individualShift",children:Q},t)}if(0===I.length)return jt.makeSpan(["mord"],[l],t);var te=jt.makeVList({positionType:"individualShift",children:I},t);return te=jt.makeSpan(["tag"],[te],t),jt.makeFragment([l,te])},Qr={c:"center ",l:"left ",r:"right "},$r=function(e,t){for(var n=[],r=new gn.MathNode("mtd",[],["mtr-glue"]),i=new gn.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var f=e.cols,p="",m=!1,g=0,v=f.length;"separator"===f[0].type&&(h+="top ",g=1),"separator"===f[f.length-1].type&&(h+="bottom ",v-=1);for(var b=g;b0?"left ":"",h+=C[C.length-1].length>0?"right ":"";for(var A=1;A-1?"alignat":"align",a="split"===e.envName,s=Zr(e.parser,{cols:i,addJot:!0,autoTag:a?void 0:Kr(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var u="",h=0;h0&&f&&(g=1),i[p]={type:"align",align:m,pregap:g,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Hr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n=zn(t[0]),i=n?[t[0]]:Rn(t[0],"ordgroup").body,o=i.map((function(e){var t=Fn(e),n=t.text;if(-1!=="lcr".indexOf(n))return{type:"align",align:n};if("|"===n)return{type:"separator",separator:"|"};if(":"===n)return{type:"separator",separator:":"};throw new r("Unknown column alignment: "+n,e)})),a={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return Zr(e.parser,a,Xr(e.envName))},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,-1==="lcr".indexOf(n))throw new r("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:n}]}}var a=Zr(e.parser,i,Xr(e.envName)),s=Math.max.apply(Math,[0].concat(a.body.map((function(e){return e.length}))));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t={arraystretch:.5},n=Zr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=zn(t[0]),i=n?[t[0]]:Rn(t[0],"ordgroup").body,o=i.map((function(e){var t=Fn(e),n=t.text;if(-1!=="lc".indexOf(n))return{type:"align",align:n};throw new r("Unknown column alignment: "+n,e)}));if(o.length>1)throw new r("{subarray} can contain only one column");var a={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Zr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new r("{subarray} can contain only one column");return a},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Zr(e.parser,t,Xr(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ei,htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){m.contains(["gather","gather*"],e.envName)&&Yr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Kr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Zr(e.parser,t,"display")},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ei,htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Yr(e);var t={autoTag:Kr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Zr(e.parser,t,"display")},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Yr(e),Jn(e.parser)},htmlBuilder:Jr,mathmlBuilder:$r}),Wr("\\nonumber","\\gdef\\@eqnsw{0}"),Wr("\\notag","\\nonumber"),Yt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new r(e.funcName+" valid only within array environment")}});var ti=Ur,ni=ti;Yt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];if("ordgroup"!==o.type)throw new r("Invalid environment name",o);for(var a="",s=0;s=R.SCRIPT.id?n.text():R.DISPLAY:"text"===e&&n.size===R.DISPLAY.size?n=R.TEXT:"script"===e?n=R.SCRIPT:"scriptscript"===e&&(n=R.SCRIPTSCRIPT),n},si=function(e,t){var n,r=ai(e.size,t.style),i=r.fracNum(),o=r.fracDen();n=t.havingStyle(i);var a=cn(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*h:7*h,p=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,f=h):(d=t.fontMetrics().num3,f=3*h),p=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;d-a.depth-(w+.5*u)0&&(t=e,t="."===t?null:t),t};Yt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,r=e.parser,i=t[4],o=t[5],a=Zt(t[0]),s="atom"===a.type&&"open"===a.family?ui(a.text):null,l=Zt(t[1]),c="atom"===l.type&&"close"===l.family?ui(l.text):null,u=Rn(t[2],"size"),h=null;u.isBlank?n=!0:(h=u.value,n=h.number>0);var d="auto",f=t[3];if("ordgroup"===f.type){if(f.body.length>0){var p=Rn(f.body[0],"textord");d=ci[Number(p.text)]}}else f=Rn(f,"textord"),d=ci[Number(f.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:c,size:d}},htmlBuilder:si,mathmlBuilder:li}),Yt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Rn(t[0],"size").value,token:r}}}),Yt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),i=f(Rn(t[1],"infix").size),o=t[2],a=i.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:a,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:si,mathmlBuilder:li});var hi=function(e,t){var n,r,i=t.style;"supsub"===e.type?(n=e.sup?cn(e.sup,t.havingStyle(i.sup()),t):cn(e.sub,t.havingStyle(i.sub()),t),r=Rn(e.base,"horizBrace")):r=Rn(e,"horizBrace");var o,a=cn(r.base,t.havingBaseStyle(R.DISPLAY)),s=In.svgSpan(r,t);if(r.isOver?(o=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=jt.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=jt.makeSpan(["mord",r.isOver?"mover":"munder"],[o],t);o=r.isOver?jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):jt.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return jt.makeSpan(["mord",r.isOver?"mover":"munder"],[o],t)},di=function(e,t){var n=In.mathMLnode(e.label);return new gn.MathNode(e.isOver?"mover":"munder",[kn(e.base,t),n])};Yt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:hi,mathmlBuilder:di}),Yt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],i=Rn(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Xt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=nn(e.body,t,!1);return jt.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=xn(e.body,t);return n instanceof fn||(n=new fn("mrow",[n])),n.setAttribute("href",e.href),n}}),Yt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Rn(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],o=0;o0&&(r=pe(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pe(e.width,t));var o={height:me(n+r)};i>0&&(o.width=me(i)),r>0&&(o.verticalAlign=me(-r));var a=new ke(e.src,e.alt,o);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new gn.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pe(e.height,t),i=0;if(e.totalheight.number>0&&(i=pe(e.totalheight,t)-r,n.setAttribute("valign",me(-i))),n.setAttribute("height",me(r+i)),e.width.number>0){var o=pe(e.width,t);n.setAttribute("width",me(o))}return n.setAttribute("src",e.src),n}}),Yt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=Rn(t[0],"size");if(n.settings.strict){var o="m"===r[1],a="mu"===i.value.unit;o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:function(e,t){return jt.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=pe(e.dimension,t);return new gn.SpaceNode(n)}}),Yt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=jt.makeSpan([],[cn(e.body,t)]),n=jt.makeSpan(["inner"],[n],t)):n=jt.makeSpan(["inner"],[cn(e.body,t)]);var r=jt.makeSpan(["fix"],[]),i=jt.makeSpan([e.alignment],[n,r],t),o=jt.makeSpan(["strut"]);return o.style.height=me(i.height+i.depth),i.depth&&(o.style.verticalAlign=me(-i.depth)),i.children.unshift(o),i=jt.makeSpan(["thinbox"],[i],t),jt.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:function(e,t){var n=new gn.MathNode("mpadded",[kn(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),Yt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode("math");var o="\\("===n?"\\)":"$",a=r.parseExpression(!1,o);return r.expect(o),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:a}}}),Yt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new r("Mismatched "+e.funcName)}});var pi=function(e,t){switch(t.style.size){case R.DISPLAY.size:return e.display;case R.TEXT.size:return e.text;case R.SCRIPT.size:return e.script;case R.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Yt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){var n=e.parser;return{type:"mathchoice",mode:n.mode,display:Xt(t[0]),text:Xt(t[1]),script:Xt(t[2]),scriptscript:Xt(t[3])}},htmlBuilder:function(e,t){var n=pi(e,t),r=nn(n,t,!1);return jt.makeFragment(r)},mathmlBuilder:function(e,t){var n=pi(e,t);return xn(n,t)}});var mi=function(e,t,n,r,i,o,a){e=jt.makeSpan([],[e]);var s,l,c,u=n&&m.isCharacterBox(n);if(t){var h=cn(t,r.havingStyle(i.sup()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var d=cn(n,r.havingStyle(i.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var f=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=jt.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:me(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:me(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var p=e.height-a;c=jt.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:me(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var g=e.depth+a;c=jt.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:me(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var v=[c];if(s&&0!==o&&!u){var b=jt.makeSpan(["mspace"],[],r);b.style.marginRight=me(o),v.unshift(b)}return jt.makeSpan(["mop","op-limits"],v,r)},gi=["\\smallint"],vi=function(e,t){var n,r,i,o=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=Rn(e.base,"op"),o=!0):i=Rn(e,"op");var a,s=t.style,l=!1;if(s.size===R.DISPLAY.size&&i.symbol&&!m.contains(gi,i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),a=jt.makeSymbol(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var h=a.italic,d=jt.staticSvg(u+"Size"+(l?"2":"1"),t);a=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:d,shift:l?.08:0}]},t),i.name="\\"+u,a.classes.unshift("mop"),a.italic=h}}else if(i.body){var f=nn(i.body,t,!0);1===f.length&&f[0]instanceof Ae?(a=f[0],a.classes[0]="mop"):a=jt.makeSpan(["mop"],f,t)}else{for(var p=[],g=1;g0){for(var s=i.body.map((function(e){var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=nn(s,t.withFont("mathrm"),!0),c=0;c=0?s.setAttribute("height",me(i)):(s.setAttribute("height",me(i)),s.setAttribute("depth",me(-i))),s.setAttribute("voffset",me(i)),s}});var Ai=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ei=function(e,t){var n=t.havingSize(e.size);return Ci(e.body,n,t)};Yt({type:"sizing",names:Ai,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,o=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Ai.indexOf(r)+1,body:o}},htmlBuilder:Ei,mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=wn(e.body,n),i=new gn.MathNode("mstyle",r);return i.setAttribute("mathsize",me(n.sizeMultiplier)),i}}),Yt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,i=!1,o=!1,a=n[0]&&Rn(n[0],"ordgroup");if(a)for(var s="",l=0;ln.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=c.height-n.height-a-u;n.style.paddingLeft=me(h);var p=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:c},{type:"kern",size:u}]},t);if(e.index){var m=t.havingStyle(R.SCRIPTSCRIPT),g=cn(e.index,m,t),v=.6*(p.height-p.depth),b=jt.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:g}]},t),y=jt.makeSpan(["root"],[b]);return jt.makeSpan(["mord","sqrt"],[y,p],t)}return jt.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new gn.MathNode("mroot",[kn(n,t),kn(r,t)]):new gn.MathNode("msqrt",[kn(n,t)])}});var Ti={display:R.DISPLAY,text:R.TEXT,script:R.SCRIPT,scriptscript:R.SCRIPTSCRIPT};Yt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,o=i.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:a,body:o}},htmlBuilder:function(e,t){var n=Ti[e.style],r=t.havingStyle(n).withFont("");return Ci(e.body,r,t)},mathmlBuilder:function(e,t){var n=Ti[e.style],r=t.havingStyle(n),i=wn(e.body,r),o=new gn.MathNode("mstyle",i),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[e.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var Si=function(e,t){var n=e.base;if(n){if("op"===n.type){var r=n.limits&&(t.style.size===R.DISPLAY.size||n.alwaysHandleSupSub);return r?vi:null}if("operatorname"===n.type){var i=n.alwaysHandleSupSub&&(t.style.size===R.DISPLAY.size||n.limits);return i?xi:null}if("accent"===n.type)return m.isCharacterBox(n.base)?jn:null;if("horizBrace"===n.type){var o=!e.sub;return o===n.isOver?hi:null}return null}return null};Kt({type:"supsub",htmlBuilder:function(e,t){var n=Si(e,t);if(n)return n(e,t);var r,i,o,a=e.base,s=e.sup,l=e.sub,c=cn(a,t),u=t.fontMetrics(),h=0,d=0,f=a&&m.isCharacterBox(a);if(s){var p=t.havingStyle(t.style.sup());r=cn(s,p,t),f||(h=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(l){var g=t.havingStyle(t.style.sub());i=cn(l,g,t),f||(d=c.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}o=t.style===R.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var v,b=t.sizeMultiplier,y=me(.5/u.ptPerEm/b),w=null;if(i){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof Ae||x)&&(w=me(-c.italic))}if(r&&i){h=Math.max(h,o,r.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var k=u.defaultRuleThickness,C=4*k;if(h-r.depth-(i.height-d)0&&(h+=A,d-=A)}var E=[{type:"elem",elem:i,shift:d,marginRight:y,marginLeft:w},{type:"elem",elem:r,shift:-h,marginRight:y}];v=jt.makeVList({positionType:"individualShift",children:E},t)}else if(i){d=Math.max(d,u.sub1,i.height-.8*u.xHeight);var T=[{type:"elem",elem:i,marginLeft:w,marginRight:y}];v=jt.makeVList({positionType:"shift",positionData:d,children:T},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");h=Math.max(h,o,r.depth+.25*u.xHeight),v=jt.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:r,marginRight:y}]},t)}var S=sn(c,"right")||"mord";return jt.makeSpan([S],[c,jt.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var n,r,i=!1;e.base&&"horizBrace"===e.base.type&&(r=!!e.sup,r===e.base.isOver&&(i=!0,n=e.base.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,a=[kn(e.base,t)];if(e.sub&&a.push(kn(e.sub,t)),e.sup&&a.push(kn(e.sup,t)),i)o=n?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;o=s&&"op"===s.type&&s.limits&&t.style===R.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===R.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===R.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===R.DISPLAY)?"munder":"msub"}else{var c=e.base;o=c&&"op"===c.type&&c.limits&&(t.style===R.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===R.DISPLAY)?"mover":"msup"}return new gn.MathNode(o,a)}}),Kt({type:"atom",htmlBuilder:function(e,t){return jt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new gn.MathNode("mo",[vn(e.text,e.mode)]);if("bin"===e.family){var r=yn(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var Mi={mi:"italic",mn:"normal",mtext:"normal"};Kt({type:"mathord",htmlBuilder:function(e,t){return jt.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new gn.MathNode("mi",[vn(e.text,e.mode,t)]),r=yn(e,t)||"italic";return r!==Mi[n.type]&&n.setAttribute("mathvariant",r),n}}),Kt({type:"textord",htmlBuilder:function(e,t){return jt.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=vn(e.text,e.mode,t),i=yn(e,t)||"normal";return n="text"===e.mode?new gn.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new gn.MathNode("mn",[r]):"\\prime"===e.text?new gn.MathNode("mo",[r]):new gn.MathNode("mi",[r]),i!==Mi[n.type]&&n.setAttribute("mathvariant",i),n}});var Oi={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ni={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Kt({type:"spacing",htmlBuilder:function(e,t){if(Ni.hasOwnProperty(e.text)){var n=Ni[e.text].className||"";if("text"===e.mode){var i=jt.makeOrd(e,t,"textord");return i.classes.push(n),i}return jt.makeSpan(["mspace",n],[jt.mathsym(e.text,e.mode,t)],t)}if(Oi.hasOwnProperty(e.text))return jt.makeSpan(["mspace",Oi[e.text]],[],t);throw new r('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){var n;if(!Ni.hasOwnProperty(e.text)){if(Oi.hasOwnProperty(e.text))return new gn.MathNode("mspace");throw new r('Unknown type of space "'+e.text+'"')}return n=new gn.MathNode("mtext",[new gn.TextNode(" ")]),n}});var Di=function(){var e=new gn.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Kt({type:"tag",mathmlBuilder:function(e,t){var n=new gn.MathNode("mtable",[new gn.MathNode("mtr",[Di(),new gn.MathNode("mtd",[xn(e.body,t)]),Di(),new gn.MathNode("mtd",[xn(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Li={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Pi={"\\textbf":"textbf","\\textmd":"textmd"},Ii={"\\textit":"textit","\\textup":"textup"},Ri=function(e,t){var n=e.font;return n?Li[n]?t.withTextFontFamily(Li[n]):Pi[n]?t.withTextFontWeight(Pi[n]):t.withTextFontShape(Ii[n]):t};Yt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"text",mode:n.mode,body:Xt(i),font:r}},htmlBuilder:function(e,t){var n=Ri(e,t),r=nn(e.body,n,!0);return jt.makeSpan(["mord","text"],r,n)},mathmlBuilder:function(e,t){var n=Ri(e,t);return xn(e.body,n)}}),Yt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder:function(e,t){var n=cn(e.body,t),r=jt.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,o=jt.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return jt.makeSpan(["mord","underline"],[o],t)},mathmlBuilder:function(e,t){var n=new gn.MathNode("mo",[new gn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new gn.MathNode("munder",[kn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),Yt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){var n=e.parser;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder:function(e,t){var n=cn(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return jt.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){return new gn.MathNode("mpadded",[kn(e.body,t)],["vcenter"])}}),Yt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new r("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=Fi(e),r=[],i=t.havingStyle(t.style.text()),o=0;o0)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t},e}(),Zi=qr,Xi=Zi;Wr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Wr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Wr("\\@firstoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}})),Wr("\\@secondoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}})),Wr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Wr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Wr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Ji={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Wr("\\char",(function(e){var t,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new r("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(i=Ji[n.text],null==i||i>=t)throw new r("Invalid base-"+t+" digit "+n.text);var o;while(null!=(o=Ji[e.future().text])&&o":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Wr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in $i?t=$i[n]:("\\not"===n.slice(0,4)||n in Pe.math&&m.contains(["bin","rel"],Pe.math[n].group))&&(t="\\dotsb"),t}));var eo={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Wr("\\dotso",(function(e){var t=e.future().text;return t in eo?"\\ldots\\,":"\\ldots"})),Wr("\\dotsc",(function(e){var t=e.future().text;return t in eo&&","!==t?"\\ldots\\,":"\\ldots"})),Wr("\\cdots",(function(e){var t=e.future().text;return t in eo?"\\@cdots\\,":"\\@cdots"})),Wr("\\dotsb","\\cdots"),Wr("\\dotsm","\\cdots"),Wr("\\dotsi","\\!\\cdots"),Wr("\\dotsx","\\ldots\\,"),Wr("\\DOTSI","\\relax"),Wr("\\DOTSB","\\relax"),Wr("\\DOTSX","\\relax"),Wr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Wr("\\,","\\tmspace+{3mu}{.1667em}"),Wr("\\thinspace","\\,"),Wr("\\>","\\mskip{4mu}"),Wr("\\:","\\tmspace+{4mu}{.2222em}"),Wr("\\medspace","\\:"),Wr("\\;","\\tmspace+{5mu}{.2777em}"),Wr("\\thickspace","\\;"),Wr("\\!","\\tmspace-{3mu}{.1667em}"),Wr("\\negthinspace","\\!"),Wr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Wr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Wr("\\enspace","\\kern.5em "),Wr("\\enskip","\\hskip.5em\\relax"),Wr("\\quad","\\hskip1em\\relax"),Wr("\\qquad","\\hskip2em\\relax"),Wr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Wr("\\tag@paren","\\tag@literal{({#1})}"),Wr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new r("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Wr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Wr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Wr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Wr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Wr("\\newline","\\\\\\relax"),Wr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var to=me($["Main-Regular"]["T".charCodeAt(0)][1]-.7*$["Main-Regular"]["A".charCodeAt(0)][1]);Wr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+to+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Wr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+to+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Wr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Wr("\\@hspace","\\hskip #1\\relax"),Wr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Wr("\\ordinarycolon",":"),Wr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Wr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Wr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Wr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Wr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Wr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Wr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Wr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Wr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Wr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Wr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Wr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Wr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Wr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Wr("∷","\\dblcolon"),Wr("∹","\\eqcolon"),Wr("≔","\\coloneqq"),Wr("≕","\\eqqcolon"),Wr("⩴","\\Coloneqq"),Wr("\\ratio","\\vcentcolon"),Wr("\\coloncolon","\\dblcolon"),Wr("\\colonequals","\\coloneqq"),Wr("\\coloncolonequals","\\Coloneqq"),Wr("\\equalscolon","\\eqqcolon"),Wr("\\equalscoloncolon","\\Eqqcolon"),Wr("\\colonminus","\\coloneq"),Wr("\\coloncolonminus","\\Coloneq"),Wr("\\minuscolon","\\eqcolon"),Wr("\\minuscoloncolon","\\Eqcolon"),Wr("\\coloncolonapprox","\\Colonapprox"),Wr("\\coloncolonsim","\\Colonsim"),Wr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Wr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Wr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Wr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Wr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Wr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Wr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Wr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Wr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Wr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Wr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Wr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Wr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Wr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Wr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Wr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Wr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Wr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Wr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Wr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Wr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Wr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Wr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Wr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Wr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Wr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Wr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Wr("\\imath","\\html@mathml{\\@imath}{ı}"),Wr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Wr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Wr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Wr("⟦","\\llbracket"),Wr("⟧","\\rrbracket"),Wr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Wr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Wr("⦃","\\lBrace"),Wr("⦄","\\rBrace"),Wr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Wr("⦵","\\minuso"),Wr("\\darr","\\downarrow"),Wr("\\dArr","\\Downarrow"),Wr("\\Darr","\\Downarrow"),Wr("\\lang","\\langle"),Wr("\\rang","\\rangle"),Wr("\\uarr","\\uparrow"),Wr("\\uArr","\\Uparrow"),Wr("\\Uarr","\\Uparrow"),Wr("\\N","\\mathbb{N}"),Wr("\\R","\\mathbb{R}"),Wr("\\Z","\\mathbb{Z}"),Wr("\\alef","\\aleph"),Wr("\\alefsym","\\aleph"),Wr("\\Alpha","\\mathrm{A}"),Wr("\\Beta","\\mathrm{B}"),Wr("\\bull","\\bullet"),Wr("\\Chi","\\mathrm{X}"),Wr("\\clubs","\\clubsuit"),Wr("\\cnums","\\mathbb{C}"),Wr("\\Complex","\\mathbb{C}"),Wr("\\Dagger","\\ddagger"),Wr("\\diamonds","\\diamondsuit"),Wr("\\empty","\\emptyset"),Wr("\\Epsilon","\\mathrm{E}"),Wr("\\Eta","\\mathrm{H}"),Wr("\\exist","\\exists"),Wr("\\harr","\\leftrightarrow"),Wr("\\hArr","\\Leftrightarrow"),Wr("\\Harr","\\Leftrightarrow"),Wr("\\hearts","\\heartsuit"),Wr("\\image","\\Im"),Wr("\\infin","\\infty"),Wr("\\Iota","\\mathrm{I}"),Wr("\\isin","\\in"),Wr("\\Kappa","\\mathrm{K}"),Wr("\\larr","\\leftarrow"),Wr("\\lArr","\\Leftarrow"),Wr("\\Larr","\\Leftarrow"),Wr("\\lrarr","\\leftrightarrow"),Wr("\\lrArr","\\Leftrightarrow"),Wr("\\Lrarr","\\Leftrightarrow"),Wr("\\Mu","\\mathrm{M}"),Wr("\\natnums","\\mathbb{N}"),Wr("\\Nu","\\mathrm{N}"),Wr("\\Omicron","\\mathrm{O}"),Wr("\\plusmn","\\pm"),Wr("\\rarr","\\rightarrow"),Wr("\\rArr","\\Rightarrow"),Wr("\\Rarr","\\Rightarrow"),Wr("\\real","\\Re"),Wr("\\reals","\\mathbb{R}"),Wr("\\Reals","\\mathbb{R}"),Wr("\\Rho","\\mathrm{P}"),Wr("\\sdot","\\cdot"),Wr("\\sect","\\S"),Wr("\\spades","\\spadesuit"),Wr("\\sub","\\subset"),Wr("\\sube","\\subseteq"),Wr("\\supe","\\supseteq"),Wr("\\Tau","\\mathrm{T}"),Wr("\\thetasym","\\vartheta"),Wr("\\weierp","\\wp"),Wr("\\Zeta","\\mathrm{Z}"),Wr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Wr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Wr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Wr("\\bra","\\mathinner{\\langle{#1}|}"),Wr("\\ket","\\mathinner{|{#1}\\rangle}"),Wr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Wr("\\Bra","\\left\\langle#1\\right|"),Wr("\\Ket","\\left|#1\\right\\rangle");var no=function(e){return function(t){var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=function(t){return function(n){e&&(n.macros.set("|",a),i.length&&n.macros.set("\\|",s));var o=t;if(!t&&i.length){var l=n.future();"|"===l.text&&(n.popToken(),o=!0)}return{tokens:o?i:r,numArgs:0}}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([].concat(o,c,n));return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}}};Wr("\\bra@ket",no(!1)),Wr("\\bra@set",no(!0)),Wr("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Wr("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Wr("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Wr("\\angln","{\\angl n}"),Wr("\\blue","\\textcolor{##6495ed}{#1}"),Wr("\\orange","\\textcolor{##ffa500}{#1}"),Wr("\\pink","\\textcolor{##ff00af}{#1}"),Wr("\\red","\\textcolor{##df0030}{#1}"),Wr("\\green","\\textcolor{##28ae7b}{#1}"),Wr("\\gray","\\textcolor{gray}{#1}"),Wr("\\purple","\\textcolor{##9d38bd}{#1}"),Wr("\\blueA","\\textcolor{##ccfaff}{#1}"),Wr("\\blueB","\\textcolor{##80f6ff}{#1}"),Wr("\\blueC","\\textcolor{##63d9ea}{#1}"),Wr("\\blueD","\\textcolor{##11accd}{#1}"),Wr("\\blueE","\\textcolor{##0c7f99}{#1}"),Wr("\\tealA","\\textcolor{##94fff5}{#1}"),Wr("\\tealB","\\textcolor{##26edd5}{#1}"),Wr("\\tealC","\\textcolor{##01d1c1}{#1}"),Wr("\\tealD","\\textcolor{##01a995}{#1}"),Wr("\\tealE","\\textcolor{##208170}{#1}"),Wr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Wr("\\greenB","\\textcolor{##8af281}{#1}"),Wr("\\greenC","\\textcolor{##74cf70}{#1}"),Wr("\\greenD","\\textcolor{##1fab54}{#1}"),Wr("\\greenE","\\textcolor{##0d923f}{#1}"),Wr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Wr("\\goldB","\\textcolor{##ffbb71}{#1}"),Wr("\\goldC","\\textcolor{##ff9c39}{#1}"),Wr("\\goldD","\\textcolor{##e07d10}{#1}"),Wr("\\goldE","\\textcolor{##a75a05}{#1}"),Wr("\\redA","\\textcolor{##fca9a9}{#1}"),Wr("\\redB","\\textcolor{##ff8482}{#1}"),Wr("\\redC","\\textcolor{##f9685d}{#1}"),Wr("\\redD","\\textcolor{##e84d39}{#1}"),Wr("\\redE","\\textcolor{##bc2612}{#1}"),Wr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Wr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Wr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Wr("\\maroonD","\\textcolor{##ca337c}{#1}"),Wr("\\maroonE","\\textcolor{##9e034e}{#1}"),Wr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Wr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Wr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Wr("\\purpleD","\\textcolor{##7854ab}{#1}"),Wr("\\purpleE","\\textcolor{##543b78}{#1}"),Wr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Wr("\\mintB","\\textcolor{##edf2df}{#1}"),Wr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Wr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Wr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Wr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Wr("\\grayD","\\textcolor{##d6d8da}{#1}"),Wr("\\grayE","\\textcolor{##babec2}{#1}"),Wr("\\grayF","\\textcolor{##888d93}{#1}"),Wr("\\grayG","\\textcolor{##626569}{#1}"),Wr("\\grayH","\\textcolor{##3b3e40}{#1}"),Wr("\\grayI","\\textcolor{##21242c}{#1}"),Wr("\\kaBlue","\\textcolor{##314453}{#1}"),Wr("\\kaGreen","\\textcolor{##71B307}{#1}");var ro={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},io=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Ki(Xi,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Yi(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var i=this.consumeArg(["]"]);r=i.tokens,n=i.end}else{var o=this.consumeArg();r=o.tokens,t=o.start,n=o.end}return this.pushToken(new Gr("EOF",n.loc)),this.pushTokens(r),t.range(n,"")},t.consumeSpaces=function(){for(;;){var e=this.future();if(" "!==e.text)break;this.stack.pop()}},t.consumeArg=function(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var i,o=this.future(),a=0,s=0;do{if(i=this.popToken(),t.push(i),"{"===i.text)++a;else if("}"===i.text){if(--a,-1===a)throw new r("Extra }",i)}else if("EOF"===i.text)throw new r("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",i);if(e&&n)if((0===a||1===a&&"{"===e[s])&&i.text===e[s]){if(++s,s===e.length){t.splice(-s,s);break}}else s=0}while(0!==a||n);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:i}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new r("The length of delimiters doesn't match the number of args!");for(var n=t[0],i=0;ithis.settings.maxExpand)throw new r("Too many expansions: infinite loop or need to increase maxExpand setting");var o=i.tokens,a=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){o=o.slice();for(var s=o.length-1;s>=0;--s){var l=o[s];if("#"===l.text){if(0===s)throw new r("Incomplete placeholder at end of macro body",l);if(l=o[--s],"#"===l.text)o.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new r("Not a valid argument number",l);var c;(c=o).splice.apply(c,[s,2].concat(a[+l.text-1]))}}}}return this.pushTokens(o),o.length},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Gr(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;this.pushTokens(e);while(this.stack.length>n)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"===typeof t?t(this):t;if("string"===typeof r){var i=0;if(-1!==r.indexOf("#")){var o=r.replace(/##/g,"");while(-1!==o.indexOf("#"+(i+1)))++i}var a=new Yi(r,this.settings),s=[],l=a.lex();while("EOF"!==l.text)s.push(l),l=a.lex();s.reverse();var c={tokens:s,numArgs:i};return c}return r},t.isDefined=function(e){return this.macros.has(e)||ji.hasOwnProperty(e)||Pe.math.hasOwnProperty(e)||Pe.text.hasOwnProperty(e)||ro.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:ji.hasOwnProperty(e)&&!ji[e].primitive},e}(),oo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ao=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),so={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},lo={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},co=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new io(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new r("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.subparse=function(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Gr("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n},t.parseExpression=function(t,n){var r=[];while(1){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==e.endOfExpression.indexOf(i.text))break;if(n&&i.text===n)break;if(t&&ji[i.text]&&ji[i.text].infix)break;var o=this.parseAtom(n);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=Pe[this.mode][t].group,c=_r.range(e);if(Ne.hasOwnProperty(l)){var u=l;s={type:"atom",mode:this.mode,family:u,loc:c,text:t}}else s={type:l,mode:this.mode,loc:c,text:t};o=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(B(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:_r.range(e),text:t}}if(this.consume(),a)for(var h=0;h0&&"number"!==typeof e[0]))}function f(e,t,n){var o,f;if(typeof e!==typeof t)return!1;if(h(e)||h(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var p=a(e),m=a(t);if(p!==m)return!1;if(p||m)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var g=d(e),v=d(t);if(g!==v)return!1;if(g||v){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(b[o]!=y[o])return!1;for(o=b.length-1;o>=0;o--)if(f=b[o],!u(e[f],t[f],n))return!1;return!0}e.exports=u},5843:function(e,t,n){e.exports=n.p+"img/romanticPurple.jpg"},5865:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p5}));var r=n("6f27"),i=n("703f"),o=n("b923"),a=n("6ffb"),s=n("e3da"),l=n("442c"),c=n("72a8"),u=n("f201"),h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},h(e,t)};function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&rpe}function ge(e,t){var n="https://www.google-analytics.com/collect",r=location.hostname,i="event",o="use",a="TOAST UI "+e+" for "+r+": Statistics",s=window.localStorage.getItem(a);(de(window.tui)||!1!==window.tui.usageStatistics)&&(s&&!me(s)||(window.localStorage.setItem(a,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||fe(n,{v:1,t:i,tid:t,cid:r,dp:r,dh:e,el:e,ec:o})}),1e3)))}var ve=ge;/Mac/.test(navigator.platform);var be=/[\u0020]+/g,ye=/[>(){}[\]+-.!#|]/g,we=/<([a-zA-Z_][a-zA-Z0-9\-._]*)(\s|[^\\>])*\/?>|<(\/)([a-zA-Z_][a-zA-Z0-9\-._]*)\s*\/?>||<([a-zA-Z_][a-zA-Z0-9\-.:/]*)>/g,xe=/\\[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\\]/g,ke=/[*_~`]/g,Ce=/!\[.*\]\(.*\)/g,Ae=/[[\]]/g,Ee=/(?:^|[^\\])\\(?!\\)/g,Te='[&<>"]',Se=new RegExp(Te,"g");function Me(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}}function Oe(e){return Se.test(e)?e.replace(Se,Me):e}function Ne(){ve("editor","UA-129966929-1")}function De(e,t){return-1!==e.indexOf(t)}var Le=["rel","target","hreflang","type"],Pe={codeblock:/(^ {4}[^\n]+\n*)+/,thematicBreak:/^ *((\* *){3,}|(- *){3,} *|(_ *){3,}) */,atxHeading:/^(#{1,6}) +[\s\S]+/,seTextheading:/^([^\n]+)\n *(=|-){2,} */,blockquote:/^( *>[^\n]+.*)+/,list:/^ *(\*+|-+|\d+\.) [\s\S]+/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? */,link:/!?\[.*\]\(.*\)/,reflink:/!?\[.*\]\s*\[([^\]]*)\]/,verticalBar:/\u007C/,fencedCodeblock:/^((`|~){3,})/};function Ie(e){if(!e)return null;var t={};return Le.forEach((function(n){B(e[n])||(t[n]=e[n])})),t}function Re(e,t){for(var n="",r=0;re[0]&&n=t&&e<=n}function _e(e){return"object"===typeof e&&null!==e}function Ge(e,t){var n=f({},e);return e&&t&&Object.keys(t).forEach((function(e){_e(n[e])?Array.isArray(t[e])?n[e]=Ve(t[e]):n.hasOwnProperty(e)?n[e]=Ge(n[e],t[e]):n[e]=Ye(t[e]):n[e]=t[e]})),n}function Ve(e){return e.map((function(e){return _e(e)?Array.isArray(e)?Ve(e):Ye(e):e}))}function Ye(e){var t=Object.keys(e);return t.length?t.reduce((function(t,n){return _e(e[n])?t[n]=Array.isArray(e[n])?Ve(e[n]):Ye(e[n]):t[n]=e[n],t}),{}):e}function Ke(e,t){return void 0===t&&(t={}),Object.keys(t).forEach((function(n){e.hasOwnProperty(n)&&"object"===typeof e[n]?Array.isArray(t[n])?e[n]=t[n]:Ke(e[n],t[n]):e[n]=t[n]})),e}function Ze(e,t){return e>t?[t,e]:[e,t]}function Xe(e){var t=/^\s(\S*)/g;return t.test(e)}function Je(e){var t=/(\S*)\s$/g;return t.test(e)}var Qe=E;function $e(e){var t;try{t=Array.prototype.slice.call(e)}catch(n){t=[],Qe(e,(function(e){t.push(e)}))}return t}var et=$e;function tt(e,t){var n=e.nodes.paragraph;return t?n.create(null,x(t)?e.text(t):t):n.createAndFill()}function nt(e,t,n){return e.text(t,n)}function rt(e,t,n){void 0===n&&(n=t);var r=e.doc.content.size,i=r>0?r-1:1;return a["TextSelection"].create(e.doc,Math.min(t,i),Math.min(n,i))}function it(e,t,n){var r=t.pos;return e.replaceWith(r,r,tt(n)),e.setSelection(rt(e,r+1))}function ot(e){for(var t=e.state,n=e.from,i=e.startIndex,o=e.endIndex,a=e.createText,s=t.tr,l=t.doc,c=t.schema,u=i;u<=o;u+=1){var h=l.child(u),d=h.nodeSize,f=h.textContent,p=h.content,m=a(f),g=m?nt(c,m):r["Fragment"].empty,v=s.mapping.map(n),b=v+p.size;s.replaceWith(v,b,g),n+=d}return s}function at(e,t,n,r){var i=n.length;e.split(t).delete(t-i,t).insert(e.mapping.map(t),r).setSelection(rt(e,e.mapping.map(t)-i))}function st(e){return e.sourcepos[0][0]}function lt(e){return e.sourcepos[1][0]}function ct(e){return e.sourcepos[0][1]}function ut(e){return e.sourcepos[1][1]}function ht(e){var t=e.type;return"htmlBlock"===t||"htmlInline"===t}function dt(e){var t=e.type;return"strike"===t||"strong"===t||"emph"===t||"code"===t||"link"===t||"image"===t}function ft(e){return e&&"codeBlock"===e.type}function pt(e){return e&&("item"===e.type||"list"===e.type)}function mt(e){return pt(e)&&"ordered"===e.listData.type}function gt(e){return pt(e)&&"ordered"!==e.listData.type}function vt(e){return e&&("tableCell"===e.type||"tableDelimCell"===e.type)}function bt(e){switch(e.type){case"code":case"text":case"emph":case"strong":case"strike":case"link":case"image":case"htmlInline":case"linebreak":case"softbreak":case"customInline":return!0;default:return!1}}function yt(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type){if(t(e))return e;e=e.parent}return null}function wt(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type)t(e),e=e.parent}function xt(e,t){return[e[0],e[1]+t]}function kt(e,t){return[e[0],t]}function Ct(e){var t=e.firstChild.literal;switch(e.type){case"emph":return"*"+t+"*";case"strong":return"**"+t+"**";case"strike":return"~~"+t+"~~";case"code":return"`"+t+"`";case"link":case"image":var n=e,r=n.destination,i=n.title,o="link"===e.type?"":"!";return o+"["+t+"]("+r+(i?' "'+i+'"':"")+")";default:return null}}function At(e){switch(e.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}function Et(e){var t=[],n=e.walker(),r=null;while(r=n.next()){var i=r.node;"text"===i.type&&t.push(i.literal)}return t.join("")}var Tt=[],St={},Mt=/\$\$widget\d+\s/;function Ot(e){var t=e.search(Mt);if(-1!==t){var n=e.substring(t),r=n.replace(Mt,"").replace("$$","");e=e.substring(0,t),e+=Ot(r)}return e}function Nt(e,t){return"$$"+e+" "+t+"$$"}function Dt(e,t){var n=St[e],r=n.rule,i=n.toDOM,o=Ot(t).match(r);return o&&(t=o[0]),i(t)}function Lt(){return Tt}function Pt(e){Tt=e,Tt.forEach((function(e,t){St["widget"+t]=e}))}function It(e,t,n,r){return e.concat(Rt(t,n,r))}function Rt(e,t,n){void 0===n&&(n=0);var r=[],i=(Tt[n]||{}).rule,o=n+1;if(e=Ot(e),i&&i.test(e)){var a=void 0;while(-1!==(a=e.search(i))){var s=e.substring(0,a);s&&(r=It(r,s,t,o)),e=e.substring(a);var l=e.match(i)[0],c="widget"+n;r.push(t.nodes.widget.create({info:c},t.text(Nt(c,l)))),e=e.substring(l.length)}e&&(r=It(r,e,t,o))}else e&&(r=n-1)}var qt=Ht,Wt=z,_t=et,Gt=Element.prototype,Vt=Gt.matches||Gt.webkitMatchesSelector||Gt.mozMatchesSelector||Gt.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return Wt(this,_t(t.querySelectorAll(e)))>-1};function Yt(e,t){return Vt.call(e,t)}var Kt=Yt,Zt="[A-Za-z][A-Za-z0-9-]*",Xt="[a-zA-Z_:][a-zA-Z0-9:._-]*",Jt="[^\"'=<>`\\x00-\\x20]+",Qt="'[^']*'",$t='"[^"]*"',en="(?:"+Jt+"|"+Qt+"|"+$t+")",tn="(?:\\s*=\\s*"+en+")",nn="(?:\\s+"+Xt+tn+"?)",rn="<("+Zt+")("+nn+")*\\s*/?>",on="]",an="(?:"+rn+"|"+on+")",sn=new RegExp("^"+an,"i"),ln=//i,cn=/|/,un="

",hn="a";function dn(e,t,n){var r=parseInt(e.left,10),i=parseInt(e.top,10),o=parseInt(e.width,10)+parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10),a=parseInt(e.height,10)+parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10);return t>=r&&t<=r+o&&n>=i&&n<=i+a}var fn="toastui-editor-";function pn(){for(var e=[],t=0;t<\/p>/gi,"

"),n=new RegExp(an,"ig"),r=t.match(n);return null===r||void 0===r||r.forEach((function(e,n){if(ln.test(e)){var i=un;if(n){var o=r[n-1],a=o.match(rn);if(a&&!/br/i.test(a[1])){var s=a[1];i="<"+s+">"}}t=t.replace(ln,i)}})),t}function Nn(e){var t=//g,n=/ class="ProseMirror-trailingBreak"/g,r=e;return r=r.replace(t,""),r=r.replace(n,""),r}var Dn=new a["PluginKey"]("widget"),Ln=5,Pn=function(){function e(e,t){var n=this;this.popup=null,this.removeWidget=function(){n.popup&&(n.rootEl.removeChild(n.popup),n.popup=null)},this.rootEl=e.dom.parentElement,this.eventEmitter=t,this.eventEmitter.listen("blur",this.removeWidget),this.eventEmitter.listen("loadUI",(function(){n.rootEl=Tn(e.dom.parentElement,"."+pn("defaultUI"))})),this.eventEmitter.listen("removePopupWidget",this.removeWidget)}return e.prototype.update=function(e){var t=Dn.getState(e.state);if(this.removeWidget(),t){var n=t.node,r=t.style,i=e.coordsAtPos(t.pos),o=i.top,a=i.left,s=i.bottom,l=s-o,c=this.rootEl.getBoundingClientRect(),u=o-c.top;I(n,{opacity:"0"}),this.rootEl.appendChild(n),I(n,{position:"absolute",left:a-c.left+Ln+"px",top:("bottom"===r?u+l-Ln:u-l)+"px",opacity:"1"}),this.popup=n,e.focus()}},e.prototype.destroy=function(){this.eventEmitter.removeEventHandler("blur",this.removeWidget)},e}();function In(e){return new a["Plugin"]({key:Dn,state:{init:function(){return null},apply:function(e){return e.getMeta("widget")}},view:function(t){return new Pn(t,e)}})}function Rn(e){e.listen("addImageBlobHook",(function(e,t){var n=new FileReader;n.onload=function(e){var n=e.target;return t(n.result)},n.readAsDataURL(e)}))}function Fn(e,t,n){var r=function(n,r){e.emit("command","addImage",{imageUrl:n,altText:r||t.name||"image"})};e.emit("addImageBlobHook",t,r,n)}function zn(e){var t=et(e).filter((function(e){var t=e.type;return-1!==t.indexOf("image")}));if(1===t.length){var n=t[0];if(n)return n.getAsFile()}return null}function jn(e){var t=e.eventEmitter;return new a["Plugin"]({props:{handleDOMEvents:{drop:function(e,n){var r,i=null===(r=n.dataTransfer)||void 0===r?void 0:r.files;return i&&E(i,(function(e){return-1===e.type.indexOf("image")||(n.preventDefault(),n.stopPropagation(),Fn(t,e,n.type),!1)})),!0}}}})}var Bn=function(){function e(){}return Object.defineProperty(e.prototype,"type",{get:function(){return"node"},enumerable:!1,configurable:!0}),e.prototype.setContext=function(e){this.context=e},e}();function Un(e){var t=document.createElement("span"),n=Dt(e.attrs.info,e.textContent);return t.className="tui-widget",t.appendChild(n),{dom:t}}function Hn(e){return"widget"===e.type.name}var qn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"widget"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{info:{default:null}},group:"inline",inline:!0,content:"text*",selectable:!1,atom:!0,toDOM:function(){return["span",{class:"tui-widget"},0]},parseDOM:[{tag:"span.tui-widget",getAttrs:function(e){var t=e.textContent,n=t.match(/\$\$(widget\d+)/),r=n[1];return{info:r}}}]}},enumerable:!1,configurable:!0}),t}(Bn),Wn=function(){function e(e){this.timer=null,this.el=document.createElement("div"),this.el.className="toastui-editor",this.eventEmitter=e,this.placeholder={text:""}}return e.prototype.createState=function(){return a["EditorState"].create({schema:this.schema,plugins:this.createPlugins()})},e.prototype.initEvent=function(){var e=this,t=e.eventEmitter,n=e.view,r=e.editorType;n.dom.addEventListener("focus",(function(){return t.emit("focus",r)})),n.dom.addEventListener("blur",(function(){return t.emit("blur",r)}))},e.prototype.emitChangeEvent=function(e){this.eventEmitter.emit("caretChange",this.editorType),e.docChanged&&this.eventEmitter.emit("change",this.editorType)},Object.defineProperty(e.prototype,"defaultPlugins",{get:function(){var e=this.createInputRules(),t=p(p([],this.keymaps),[Object(s["keymap"])(f({"Shift-Enter":l["a"].Enter},l["a"])),Object(u["a"])(),jt(this.placeholder),In(this.eventEmitter),jn(this.context)]);return e?t.concat(e):t},enumerable:!1,configurable:!0}),e.prototype.createInputRules=function(){var e=Lt(),t=e.map((function(e){var t=e.rule;return new c["InputRule"](t,(function(e,n,r,i){var o=e.schema,a=e.tr,s=e.doc,l=n.input.match(new RegExp(t,"g")),c=s.resolve(r),u=c.parent,h=0;if(Hn(u)&&(u=c.node(c.depth-1)),u.forEach((function(e){return Hn(e)&&(h+=1)})),l.length>h){var d=qe(l),f=Rt(d,o);return a.replaceWith(i-d.length+1,i,f)}return null}))}));return t.length?Object(c["inputRules"])({rules:t}):null},e.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.createSchema=function(){return new r["Schema"]({nodes:this.specs.nodes,marks:this.specs.marks})},e.prototype.createKeymaps=function(e){var t=zt(),n=t.undo,r=t.redo,i=this.specs.keymaps(e),o={"Mod-z":n(),"Shift-Mod-z":r()};return e?i.concat(Object(s["keymap"])(o)):i},e.prototype.createCommands=function(){return this.specs.commands(this.view)},e.prototype.createPluginProps=function(){var e=this;return this.extraPlugins.map((function(t){return t(e.eventEmitter)}))},e.prototype.focus=function(){var e=this;this.clearTimer(),this.timer=setTimeout((function(){e.view.focus(),e.view.dispatch(e.view.state.tr.scrollIntoView())}))},e.prototype.blur=function(){this.view.dom.blur()},e.prototype.destroy=function(){var e=this;this.clearTimer(),this.view.destroy(),Object.keys(this).forEach((function(t){delete e[t]}))},e.prototype.moveCursorToStart=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(rt(t,1)).scrollIntoView()),e&&this.focus()},e.prototype.moveCursorToEnd=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(rt(t,t.doc.content.size-1)).scrollIntoView()),e&&this.focus()},e.prototype.setScrollTop=function(e){this.view.dom.scrollTop=e},e.prototype.getScrollTop=function(){return this.view.dom.scrollTop},e.prototype.setPlaceholder=function(e){this.placeholder.text=e,this.view.dispatch(this.view.state.tr.scrollIntoView())},e.prototype.setHeight=function(e){I(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){I(this.el,{minHeight:e+"px"})},e.prototype.getElement=function(){return this.el},e}();function _n(e){return e instanceof Function}var Gn=_n,Vn=["Enter","Shift-Enter","Mod-Enter","Tab","Shift-Tab","Delete","Backspace","Mod-Delete","Mod-Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Mod-d","Mod-D","Alt-ArrowUp","Alt-ArrowDown"];function Yn(e,t,n){return e.focus(),t(n)(e.state,e.dispatch,e)}var Kn=function(){function e(e){this.specs=e}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this.specs.filter((function(e){return"node"===e.type})).reduce((function(e,t){var n,r=t.name,i=t.schema;return f(f({},e),(n={},n[r]=i,n))}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"marks",{get:function(){return this.specs.filter((function(e){return"mark"===e.type})).reduce((function(e,t){var n,r=t.name,i=t.schema;return f(f({},e),(n={},n[r]=i,n))}),{})},enumerable:!1,configurable:!0}),e.prototype.commands=function(e,t){var n=this.specs.filter((function(e){var t=e.commands;return t})).reduce((function(t,n){var r={},i=n.commands();return Gn(i)?r[n.name]=function(t){return Yn(e,i,t)}:Object.keys(i).forEach((function(t){r[t]=function(n){return Yn(e,i[t],n)}})),f(f({},t),r)}),{}),r=zt();return Object.keys(r).forEach((function(t){n[t]=function(n){return Yn(e,r[t],n)}})),t&&Object.keys(t).forEach((function(r){n[r]=function(n){return Yn(e,t[r],n)}})),n},e.prototype.keymaps=function(e){var t=this.specs.filter((function(e){return e.keymaps})).map((function(e){return e.keymaps()}));return t.map((function(t){return e||Object.keys(t).forEach((function(e){De(Vn,e)||delete t[e]})),Object(s["keymap"])(t)}))},e.prototype.setContext=function(e){this.specs.forEach((function(t){t.setContext(e)}))},e}();function Zn(e){var t=e.from,n=e.to;return e instanceof a["AllSelection"]?[t+1,n-1]:[t,n]}function Xn(e){return e.index(0)+1}function Jn(e,t,n){void 0===n&&(n=1);var r=0;return e.forEach((function(e,i){Hn(e)&&i+2 ?/,ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:mn("block-quote")},0]}}},enumerable:!1,configurable:!0}),t.prototype.createBlockQuoteText=function(e,t){return t?e.replace(ei,"").trim():"> "+e.trim()},t.prototype.extendBlockQuote=function(){var e=this;return function(t,n){var r=t.selection,i=t.doc,o=t.tr,a=t.schema,s=tr(r),l=s.endFromOffset,c=s.endToOffset,u=s.endIndex,h=s.to,d=$r(i,u),f=ei.test(d);if(f&&h>l&&r.empty){var p=!d.replace(ei,"").trim();if(p)o.deleteRange(l,c).split(o.mapping.map(c));else{var m=d.slice(h-l).trim(),g=nt(a,e.createBlockQuoteText(m));at(o,c,m,g)}return n(o),!0}return!1}},t.prototype.commands=function(){var e=this;return function(){return function(t,n){var r=t.selection,i=t.doc,o=tr(r),a=o.startFromOffset,s=o.endToOffset,l=o.startIndex,c=o.endIndex,u=ei.test($r(i,l)),h=ot({state:t,startIndex:l,endIndex:c,from:a,createText:function(t){return e.createBlockQuoteText(t,u)}});return n(h.setSelection(rt(h,h.mapping.map(s)))),!0}}},t.prototype.keymaps=function(){var e=this.commands()();return{"alt-q":e,"alt-Q":e,Enter:this.extendBlockQuote()}},t}(Jr),ni=/(^\s*)([-*+] |[\d]+\. )/,ri=/(^\s*)([\d])+\.( \[[ xX]])? /,ii=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/,oi=/(^\s*)([-*+]|[\d]+\.)( \[[ xX]])? /,ai=/^(\s*)([-*+]+(\s(?:\[(?:x|\s)\]\s)?))(.*)/,si=/(^\s*)([-*+] |[\d]+\. )(\[[ xX]] )/,li=/(^\s*)([-*+])( \[[ xX]]) /;function ci(e){return ri.test(e)?"ordered":"bullet"}function ui(e){var t=0;while(e&&"document"!==e.type)"list"===e.type&&(t+=1),e=e.parent;return t}function hi(e,t,n,r){var i=e.getLineTexts(),o=i.length,a=[],s=t;while(r?s1){s=r?s+1:s-1;var l=e.findFirstNodeAtLine(s),c=ui(l);if(c===n)a.push({line:s,depth:n,mdNode:l});else if(c0;c-=1){var u=t.findFirstNodeAtLine(c),h=Qr(n,c),d=h&&!!yt(u,(function(e){return pt(e)})),f=ii.exec(Qr(n,c));if(!f&&!d)break;if(f||!d){var p=f,m=p[1],g=p[3];if(!m){a=Number(g),s=c;break}}else l+=1}var v=a+r-s-l,b=[{text:v+". "+o,line:r}];return{changedResults:b}},task:function(e){var t=e.doc,n=e.line,r=Qr(t,n),i=[{text:"* [ ] "+r,line:n}];return{changedResults:i}}},yi={bullet:function(e){var t=e.line,n=e.doc,r=Qr(n,t),i=ai.exec(r),o=i[1],a=i[2];return{listSyntax:""+o+a}},ordered:function(e){var t=e.toastMark,n=e.line,r=e.mdNode,i=e.doc,o=ui(r),a=Qr(i,n),s=ii.exec(a),l=s[1],c=s[3],u=s[4],h=Number(c)+1,d=""+l+h+u,p=hi(t,n,o,!0),m=p.filter((function(e){var t=ii.exec(Qr(i,e.line));return t&&t[1].length===l.length&&!!yt(e.mdNode,(function(e){return mt(e)}))}));return f({listSyntax:d},mi(i,m,"ordered",h))}};function wi(e,t,n,r,i){var o=[],a=Qr(e,n),s=ii.exec(a);while(s){var l=s[1],c=s[4],u=s[5],h=l.length;if(h===i)o.push(nt(t,""+l+r+c+u)),r+=1,n+=1;else if(h>i){var d=wi(e,t,n,1,h);n=d.line,o=o.concat(d.nodes)}if(he.childCount)break;a=Qr(e,n),s=ii.exec(a)}return{nodes:o,line:n}}var xi=/(^\s{1,4})(.*)/;function ki(e,t,n){return e0){var u=r.child(c-1),h=u.nodeSize,d=u.textContent;return n.delete(s-h,s).split(n.mapping.map(l)).insert(n.mapping.map(l),nt(o,d)),t(n),!0}return!1}},t.prototype.commands=function(){return{indent:this.indent(),outdent:this.outdent()}},t.prototype.keymaps=function(){return{Tab:this.indent(!0)(),"Shift-Tab":this.outdent(!0)(),"Mod-d":this.deleteLines(),"Mod-D":this.deleteLines(),"Alt-ArrowUp":this.moveUp(),"Alt-ArrowDown":this.moveDown()}},t}(Bn),Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),t}(Bn),Si=/^#{1,6}\s/,Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{level:{default:1},seText:{default:!1}},toDOM:function(e){var t=e.attrs,n=t.level,r=t.seText,i="heading|heading"+n;return r&&(i+="|delimiter|setext"),["span",{class:mn.apply(void 0,i.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.createHeadingText=function(e,t,n){var r=t.replace(n,"").trim(),i="";while(e>0)i+="#",e-=1;return i+" "+r},t.prototype.commands=function(){var e=this;return function(t){return function(n,r){var i=t.level,o=tr(n.selection),a=o.startFromOffset,s=o.endToOffset,l=o.startIndex,c=o.endIndex,u=ot({state:n,from:a,startIndex:l,endIndex:c,createText:function(t){var n=t.match(Si),r=n?n[0]:"";return e.createHeadingText(i,t,r)}});return r(u.setSelection(rt(u,u.mapping.map(s)))),!0}}},t}(Jr),Oi="```",Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:mn("code-block")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){var n=e.selection,r=e.schema,i=e.tr,o=tr(n),a=o.startFromOffset,s=o.endToOffset,l=nt(r,Oi);return i.insert(a,l).split(a+Oi.length),i.split(i.mapping.map(s)).insert(i.mapping.map(s),l),t(i.setSelection(rt(i,i.mapping.map(s)-(Oi.length+2)))),!0}}},t.prototype.keepIndentation=function(){var e=this;return function(t,n){var r=t.selection,i=t.tr,o=t.doc,a=t.schema,s=e.context.toastMark,l=tr(r),c=l.startFromOffset,u=l.endToOffset,h=l.endIndex,d=l.from,f=l.to,p=$r(o,h);if(d===f&&p.trim()){var m=p.match(/^\s+/),g=s.findFirstNodeAtLine(h+1);if(ft(g)&&m){var v=m[0],b=p.slice(f-c),y=nt(a,v+b);return at(i,u,b,y),n(i),!0}}return!1}},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-p":e,"Shift-Mod-P":e,Enter:this.keepIndentation()}},t}(Jr),Di=/\||\s/g;function Li(e){return[Ii(e),Ii(e,!0)]}function Pi(e,t){for(var n=[],r=0;r0&&(t+="\n")})),t},t.prototype.setSelection=function(e,t){void 0===t&&(t=e);var n=this.view.state.tr,r=er(n.doc,e,t),i=r[0],o=r[1];this.view.dispatch(n.setSelection(rt(n,i,o)).scrollIntoView())},t.prototype.replaceSelection=function(e,t,n){var i,o=this.view.state,a=o.tr,s=o.schema,l=o.doc,c=e.split(po),u=c.map((function(e){return tt(s,Rt(e,s))})),h=new r["Slice"](r["Fragment"].from(u),1,1);if(this.focus(),t&&n){var d=er(l,t,n),f=d[0],p=d[1];i=a.replaceRange(f,p,h)}else i=a.replaceSelection(h);this.view.dispatch(i.scrollIntoView())},t.prototype.deleteSelection=function(e,t){var n,r=this.view.state,i=r.tr,o=r.doc;if(e&&t){var a=er(o,e,t),s=a[0],l=a[1];n=i.deleteRange(s,l)}else n=i.deleteSelection();this.view.dispatch(n.scrollIntoView())},t.prototype.getSelectedText=function(e,t){var n=this.view.state,r=n.doc,i=n.selection,o=i.from,a=i.to;if(e&&t){var s=er(r,e,t);o=s[0],a=s[1]}return r.textBetween(o,a,"\n")},t.prototype.getSelection=function(){var e=this.view.state.selection,t=e.from,n=e.to;return Qn(this.view.state.tr.doc,t,n)},t.prototype.setMarkdown=function(e,t){void 0===t&&(t=!0);var n=e.split(po),r=this.view.state,i=r.tr,o=r.doc,a=r.schema,s=n.map((function(e){return tt(a,Rt(e,a))}));this.view.dispatch(i.replaceWith(0,o.content.size,s)),t&&this.moveCursorToEnd(!0)},t.prototype.addWidget=function(e,t,n){var r=this.view.state,i=r.tr,o=r.doc,a=r.selection,s=n?er(o,n,n)[0]:a.to;this.view.dispatch(i.setMeta("widget",{pos:s,node:e,style:t}))},t.prototype.replaceWithWidget=function(e,t,n){var r=this.view.state,i=r.tr,o=r.schema,a=r.doc,s=er(a,e,t),l=Rt(n,o);this.view.dispatch(i.replaceWith(s[0],s[1],l))},t.prototype.getRangeInfoOfNode=function(e){var t=this.view.state,n=t.doc,r=t.selection,i=e||Qn(n,r.from)[0],o=this.toastMark.findNodeAtPosition(i);return"text"===o.type&&"paragraph"!==o.parent.type&&(o=o.parent),o.sourcepos[1][1]+=1,{range:o.sourcepos,type:o.type}},t.prototype.getMarkdown=function(){return this.toastMark.getLineTexts().map((function(e){return Ot(e)})).join("\n")},t.prototype.getToastMark=function(){return this.toastMark},t}(Wn),go="_feEventKey";function vo(e,t){var n,r=e[go];return r||(r=e[go]={}),n=r[t],n||(n=r[t]=[]),n}var bo=vo,yo=x,wo=N,xo=bo;function ko(e,t,n){yo(t)?wo(t.split(/\s+/g),(function(t){Co(e,t,n)})):wo(t,(function(t,n){Co(e,n,t)}))}function Co(e,t,n){var r,i=xo(e,t);n?(wo(i,(function(i,o){return n!==i.handler||(Ao(e,t,i.wrappedHandler),r=o,!1)})),i.splice(r,1)):(wo(i,(function(n){Ao(e,t,n.wrappedHandler)})),i.splice(0,i.length))}function Ao(e,t,n){"removeEventListener"in e?e.removeEventListener(t,n):"detachEvent"in e&&e.detachEvent("on"+t,n)}var Eo=ko,To=x,So=N,Mo=bo;function Oo(e,t,n,r){To(t)?So(t.split(/\s+/g),(function(t){No(e,t,n,r)})):So(t,(function(t,r){No(e,r,t,n)}))}function No(e,t,n,r){function i(t){n.call(r||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,i):"attachEvent"in e&&e.attachEvent("on"+t,i),Do(e,t,n,i)}function Do(e,t,n,r){var i=Mo(e,t),o=!1;So(i,(function(e){return e.handler!==n||(o=!0,!1)})),o||i.push({handler:n,wrappedHandler:r})}var Lo=Oo,Po=function(e,t){return Po=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Po(e,t)}; +(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=n(47),c=n(48),u=n(49),h=n(12),d=n(32),f=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:h.default,Class:d.default,Style:f.default,Store:p.default}};t.default=g},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},l={},c={};function u(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:r.create(t);return new r(o,t)}function h(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?h(e.parentNode,n):null}function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=c[e]||a[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=c["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=c["block"]:e&o.LEVEL&o.INLINE&&(n=c["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function f(){for(var e=[],t=0;t1)return e.map((function(e){return f(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(c[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=u,t.find=h,t.query=d,t.register=f},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],t),u=a.iterator(this.ops),h=a.iterator(e.ops);return c.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(h.peekLength(),t),o.push(h.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);var s=u.next(n),l=h.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s["delete"])continue;c["delete"]?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-x)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(u.default.Block);function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:A(e.parent,t))}C.blotName="block",C.tagName="P",C.defaultChild="break",C.allowedChildren=[p.default,u.default.Embed,g.default],t.bubbleFormats=A,t.BlockEmbed=k,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(T(this,e),this.options=O(t,r),this.container=this.options.container,null==this.container)return S.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(e){e===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(h.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;N.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("
"+i+"


");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),x.default.level(e)}},{key:"find",value:function(e){return e.__quill||m.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&S.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||S.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?m.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=D(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],N.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return N.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(m.default.query(e,m.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,E({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,E({},e,t))}return n.setSelection(r,h.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],N.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],N.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=D(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=D(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return N.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a=this,s=void 0,l=D(e,0,n,r,o),c=i(l,4);return e=c[0],s=c[2],o=c[3],N.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=D(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],N.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return N.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=D(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new g.Range(t,n),r),r!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return N.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function O(e,t){if(t=(0,y.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==M.DEFAULTS.theme){if(t.theme=M.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=C.default;var n=(0,y.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=M.import("modules/"+t);return null==n?S.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,y.default)(!0,{},M.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function N(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===h.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=L(i,a,t):0!==r&&(i=L(i,n,r,t)),this.setSelection(i,h.default.sources.SILENT)),a.length()>0){var l,c,u=[h.default.events.TEXT_CHANGE,a,o,t];if((l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(u)),t!==h.default.sources.SILENT)(c=this.emitter).emit.apply(c,u)}return a}function D(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||h.default.sources.API,[e,t,a,o]}function L(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==h.default.sources.USER)})),c=i(l,2);o=c[0],a=c[1]}else{var u=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),d=i(u,2);o=d[0],a=d[1]}return new g.Range(o,a-o)}M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.6",M.imports={delta:s.default,parchment:m.default,"core/module":f.default,"core/theme":C.default},t.expandConfig=O,t.overload=D,t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a0&&"number"!==typeof e[0]))}function c(e,t,n){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c=0;c--)if(h[c]!=d[c])return!1;for(c=h.length-1;c>=0;c--)if(u=h[c],!a(e[u],t[u],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,l=this.isolate(a,s),u=l.next;l.format(r,i),u instanceof t&&u.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(m.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(c.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=c.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof c.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(h.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",t.Code=w,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n=o&&!u.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,u);var d=t.scroll.line(e),f=i(d,2),p=f[0],m=f[1],b=(0,E.default)({},(0,g.bubbleFormats)(p));if(p instanceof v.default){var y=p.descendant(h.default.Leaf,m),w=i(y,1),x=w[0];b=(0,E.default)(b,(0,g.bubbleFormats)(x))}l=c.default.attributes.diff(b,l)||{}}else if("object"===r(a.insert)){var k=Object.keys(a.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,a.insert[k])}o+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof f.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,x.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),o=t[0];o instanceof v.default?n.push(o):o instanceof h.default.Leaf&&r.push(o)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(h.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};var t=(0,g.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=D((0,g.bubbleFormats)(n),t)}return t}));return E.default.apply(E.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(S({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,x.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===v.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof y.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],l=o[1],c=0,u=new s.default;null!=a&&(c=a instanceof f.default?a.newlineIndex(l)-l+1:a.length()-l,u=a.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(e,t+c),d=h.diff((new s.default).insert(n).concat(u)),p=(new s.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(O)&&h.default.find(t[0].target)){var i=h.default.find(t[0].target),o=(0,g.bubbleFormats)(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(m.default.CONTENTS,""),c=(new s.default).insert(l),u=(new s.default).insert(i.value()),d=(new s.default).retain(a).concat(c.diff(u,n));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,C.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function D(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function L(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,x.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,x.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this.index=t,this.length=n},w=function(){function e(t,n){var r=this;v(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new y(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e,t){e===d.default.events.TEXT_CHANGE&&t.length()>0&&r.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(d.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var c=s.position(l,!0),u=r(c,2);i=u[0],l=u[1];var h=document.createRange();if(t>0){h.setStart(i,l);var d=this.scroll.leaf(e+t),f=r(d,2);if(s=f[0],l=f[1],null==s)return null;var p=s.position(l,!0),m=r(p,2);return i=m[0],l=m[1],h.setEnd(i,l),h.getBoundingClientRect()}var g="left",v=void 0;return i instanceof Text?(l0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return b.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,g(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(g(i)));return new y(s,o-s)}},{key:"normalizeNative",value:function(e){if(!x(this.root,e.startContainer)||!e.collapsed&&!x(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a=void 0,s=t.scroll.leaf(e),l=r(s,2),c=l[0],u=l[1],h=c.position(u,0!==n),d=r(h,2);a=d[0],u=d[1],i.push(a,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1),s=a[0],l=s;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,i)),u=r(c,1);l=u[0]}if(null!=s&&null!=l){var h=e.getBoundingClientRect();n.toph.bottom&&(e.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t&&(n=t,t=!1),b.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,g(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(t,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var c,h=[d.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];if((s=this.emitter).emit.apply(s,[d.default.events.EDITOR_CHANGE].concat(h)),e!==d.default.sources.SILENT)(c=this.emitter).emit.apply(c,h)}}}]),e}();function x(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=y,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e;var e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.exports=o},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(h){n=function(){}}try{r=Set}catch(h){r=function(){}}try{i=Promise}catch(h){i=function(){}}function o(a,s,l,c,h){"object"===typeof s&&(l=s.depth,c=s.prototype,h=s.includeNonEnumerable,s=s.circular);var d=[],f=[],p="undefined"!=typeof t;function m(a,l){if(null===a)return null;if(0===l)return a;var g,v;if("object"!=typeof a)return a;if(e(a,n))g=new n;else if(e(a,r))g=new r;else if(e(a,i))g=new i((function(e,t){a.then((function(t){e(m(t,l-1))}),(function(e){t(m(e,l-1))}))}));else if(o.__isArray(a))g=[];else if(o.__isRegExp(a))g=new RegExp(a.source,u(a)),a.lastIndex&&(g.lastIndex=a.lastIndex);else if(o.__isDate(a))g=new Date(a.getTime());else{if(p&&t.isBuffer(a))return g=new t(a.length),a.copy(g),g;e(a,Error)?g=Object.create(a):"undefined"==typeof c?(v=Object.getPrototypeOf(a),g=Object.create(v)):(g=Object.create(c),v=c)}if(s){var b=d.indexOf(a);if(-1!=b)return f[b];d.push(a),f.push(g)}for(var y in e(a,n)&&a.forEach((function(e,t){var n=m(t,l-1),r=m(e,l-1);g.set(n,r)})),e(a,r)&&a.forEach((function(e){var t=m(e,l-1);g.add(t)})),a){var w;v&&(w=Object.getOwnPropertyDescriptor(v,y)),w&&null==w.set||(g[y]=m(a[y],l-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(a);for(y=0;y0){if(s instanceof u.BlockEmbed||d instanceof u.BlockEmbed)return void this.optimize();if(s instanceof m.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===d))return void this.optimize()}else if(d instanceof m.default){var g=d.newlineIndex(0);g>-1&&d.split(g+1)}var v=d.children.head instanceof f.default?null:d.children.head;s.moveChildren(d,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(k,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){k(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=c.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);C.blotName="scroll",C.className="ql-editor",C.tagName="DIV",C.defaultChild="block",C.allowedChildren=[h.default,u.BlockEmbed,v.default],t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B(e);if(null==r||null==r.key)return O.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,h.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),u=i(l,2),h=u[0],d=u[1],f=e.quill.getLeaf(s.index),p=i(f,2),m=p[0],g=p[1],b=0===s.length?[m,g]:e.quill.getLeaf(s.index+s.length),y=i(b,2),w=y[0],x=y[1],k=m instanceof v.default.Text?m.value().slice(0,g):"",C=w instanceof v.default.Text?w.value().slice(x):"",A={collapsed:0===s.length,empty:0===s.length&&h.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:k,suffix:C},E=a.some((function(t){if(null!=t.collapsed&&t.collapsed!==A.collapsed)return!1;if(null!=t.empty&&t.empty!==A.empty)return!1;if(null!=t.offset&&t.offset!==A.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==A.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=A.format[e]:!1===t.format[e]?null==A.format[e]:(0,c.default)(t.format[e],A.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(A.prefix))&&(!(null!=t.suffix&&!t.suffix.test(A.suffix))&&!0!==t.handler.call(e,s,A))}));E&&n.preventDefault()}}}}))}}]),t}(C.default);function L(e,t){var n,r=e===D.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},E(n,r,/^$/),E(n,"handler",(function(n){var r=n.index;e===D.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof v.default.Embed)||(e===D.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),!1)})),n}function P(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),o=r[0],a={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=i(s,1),c=l[0];if(null!=c&&c.length()>1){var u=o.formats(),h=this.quill.getFormat(e.index-1,1);a=m.default.attributes.diff(u,h)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,y.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,y.default.sources.USER),this.quill.focus()}}function I(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1),l=s[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),u=i(c,1),h=u[0];if(h){var d=l.formats(),f=this.quill.getFormat(e.index,1);r=m.default.attributes.diff(d,f)||{},o=h.length()}}this.quill.deleteText(e.index,n,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,y.default.sources.USER)}}function R(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=m.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,y.default.sources.USER),this.quill.setSelection(e.index,y.default.sources.SILENT),this.quill.focus()}function F(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return v.default.query(n,v.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],y.default.sources.USER))}))}function z(e){return{key:D.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=v.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),h=l.newlineIndex(c,!0)+1,d=l.newlineIndex(u+c+o),f=l.domNode.textContent.slice(h,d).split("\n");c=0,f.forEach((function(t,i){e?(l.insertAt(h+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(h+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(r,o,y.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],y.default.sources.USER)}}}function B(e){if("string"===typeof e||"number"===typeof e)return B({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=D.keys[e.key.toUpperCase()])e.key=D.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[N]=e.shortKey,delete e.shortKey),e}D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":z(!0),"outdent code-block":z(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,y.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new f.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,y.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,y.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,h.default)({},r.formats(),{list:"checked"}),s=(new f.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new f.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",y.default.sources.USER),this.quill.history.cutoff();var c=(new f.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,y.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new f.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,y.default.sources.USER)}},"embed left":L(D.keys.LEFT,!1),"embed left shift":L(D.keys.LEFT,!0),"embed right":L(D.keys.RIGHT,!1),"embed right shift":L(D.keys.RIGHT,!0)}},t.default=D,t.SHORTKEY=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=h,t.sanitize=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=O(r),o=n(5),a=O(o),s=n(4),l=O(s),c=n(16),u=O(c),h=n(25),d=O(h),f=n(24),p=O(f),m=n(35),g=O(m),v=n(6),b=O(v),y=n(22),w=O(y),x=n(7),k=O(x),C=n(55),A=O(C),E=n(42),T=O(E),S=n(23),M=O(S);function O(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":u.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":g.default,"blots/inline":b.default,"blots/scroll":w.default,"blots/text":k.default,"modules/clipboard":A.default,"modules/history":T.default,"modules/keyboard":M.default}),i.default.register(l.default,u.default,p.default,b.default,w.default,k.default),t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(c.default);function m(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function g(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return m(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,u.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=I(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",u.default.sources.USER),this.quill.setSelection(r+2,u.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(k.default);function I(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=P,t.default=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(es?n(r,e-s,Math.min(t,s+c-e)):n(r,0,Math.min(c,e+t-s)),s+=c}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)t.push(a.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(c),e.optimize(n))},u=t,h=0;u.length>0;h+=1){if(h>=s)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),u=[].slice.call(this.observer.takeRecords()),a=u.slice();while(a.length>0)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(t,n);a.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;ot.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[r,l.substring(0,u)],[i,c],[r,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[r,t]];var d=h(e,t);if(d){var f=d[0],p=d[1],m=d[2],g=d[3],v=d[4],b=o(f,m),y=o(p,g);return b.concat([[i,v]],y)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,c=2*a,u=new Array(c),h=new Array(c),d=0;di)g+=2;else if(k>o)m+=2;else if(p){var C=s+f-w;if(C>=0&&C=A)return l(e,t,S,k)}}}for(var E=-y+v;E<=y-b;E+=2){C=s+E;A=E==-y||E!=y&&h[C-1]i)b+=2;else if(T>o)v+=2;else if(!p){x=s+f-E;if(x>=0&&x=A)return l(e,t,S,k)}}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=o(i,a),u=o(s,l);return c.concat(u)}function c(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,o,a,h]:null}var o,a,s,l,h,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));if(!d&&!f)return null;o=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(a=o[0],s=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,h,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",h="";while(o1?(0!==a&&0!==s&&(t=c(h,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=h.substring(0,t):(e.splice(0,0,[i,h.substring(0,t)]),o++),h=h.substring(t),l=l.substring(t)),t=u(h,l),0!==t&&(e[o][1]=h.substring(h.length-t)+e[o][1],h=h.substring(0,h.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,h]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",h="";break}""===e[e.length-1][1]&&e.pop();var f=!1;o=1;while(o0&&r.splice(o+2,0,[s[0],l]),v(r,o,3)}return e}function g(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s0&&l.push(e[s]);return l}function v(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[x.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new c.default).insert(n,S({},x.default.blotName,t[x.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=H(this.container,a,s);return B(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new c.default).retain(l.length()-1).delete(1))),D.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,f.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new c.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),f.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new c.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(f.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,f.default.sources.USER),t.quill.setSelection(r.length()-n.length,f.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[L]=e[L]||[],e[L].push(s)}));break}})),[t,n]}}]),t}(v.default);function z(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return z(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},S({},t,n),r.attributes))}),new c.default)}function j(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function B(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function H(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new c.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=H(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[L]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new c.default):new c.default}function q(e,t,n){return z(n,e,!0)}function _(e,t){var n=h.default.Attributor.Attribute.keys(e),r=h.default.Attributor.Class.keys(e),i=h.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=h.default.query(t,h.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(n=I[t],null==n||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),n=R[t],null==n||n.attrName!==t&&n.keyName!==t||(n=R[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=z(t,o)),t}function W(e,t){var n=h.default.query(e);if(null==n)return t;if(n.prototype instanceof h.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new c.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=z(t,n.blotName,n.formats(e)));return t}function G(e,t){return B(t,"\n")||t.insert("\n"),t}function V(){return new c.default}function Y(e,t){var n=h.default.query(e);if(null==n||"list-item"!==n.blotName||!B(t,"\n"))return t;var r=-1,i=e.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(h.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new c.default).retain(t.length()-1).retain(1,{indent:r}))}function K(e,t){return B(t,"\n")||(U(e)||t.length()>0&&e.nextSibling&&U(e.nextSibling))&&t.insert("\n"),t}function Z(e,t){if(U(e)&&null!=e.nextElementSibling&&!B(t,"\n\n")){var n=e.offsetHeight+parseFloat(j(e).marginTop)+parseFloat(j(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function X(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===j(e).fontStyle&&(n.italic=!0),r.fontWeight&&(j(e).fontWeight.startsWith("bold")||parseInt(j(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=z(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new c.default).insert("\t").concat(t)),t}function J(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!j(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&U(e.parentNode)||null!=e.previousSibling&&U(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&U(e.parentNode)||null!=e.nextSibling&&U(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}F.DEFAULTS={matchers:[],matchVisual:!0},t.default=F,t.matchAttributor=_,t.matchBlot=W,t.matchNewline=K,t.matchSpacing=Z,t.matchText=J},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.leftr.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=ne(r),o=n(36),a=n(38),s=n(64),l=n(65),c=ne(l),u=n(66),h=ne(u),d=n(67),f=ne(d),p=n(37),m=n(26),g=n(39),v=n(40),b=n(56),y=ne(b),w=n(68),x=ne(w),k=n(27),C=ne(k),A=n(69),E=ne(A),T=n(70),S=ne(T),M=n(71),O=ne(M),N=n(72),D=ne(N),L=n(73),P=ne(L),I=n(13),R=ne(I),F=n(74),z=ne(F),j=n(75),B=ne(j),U=n(57),H=ne(U),q=n(41),_=ne(q),W=n(28),G=ne(W),V=n(59),Y=ne(V),K=n(60),Z=ne(K),X=n(61),J=ne(X),Q=n(108),$=ne(Q),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":v.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":v.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":f.default,"formats/bold":y.default,"formats/code":I.Code,"formats/italic":x.default,"formats/link":C.default,"formats/script":E.default,"formats/strike":S.default,"formats/underline":O.default,"formats/image":D.default,"formats/video":P.default,"formats/list/item":d.ListItem,"modules/formula":z.default,"modules/syntax":B.default,"modules/toolbar":H.default,"themes/bubble":$.default,"themes/snow":te.default,"ui/icons":_.default,"ui/picker":G.default,"ui/icon-picker":Z.default,"ui/color-picker":Y.default,"ui/tooltip":J.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof g)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(u.default);v.blotName="list",v.scope=a.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[g],t.ListItem=g,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);c.blotName="italic",c.tagName=["EM","I"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(d.default);v.className="ql-syntax";var b=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),y=function(e){function t(e,n){p(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return g(t,e),r(t,null,[{key:"register",value:function(){l.default.register(b,!0),l.default.register(v,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(v).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(u.default);y.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=v,t.CodeToken=b,t.default=y},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var a=o[o.length-1],s=r.quill.getIndex(a),c=Math.min(a.length()-1,t.index+t.length-s),u=r.quill.getBounds(new h.Range(s,c));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(c.BaseTooltip);w.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=w,t.default=y},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},5023:function(e,t,n){e.exports=n.p+"img/ertongjie.svg"},5082:function(e,t,n){e.exports=n.p+"img/a-10-yiliaoxiang.svg"},5087:function(e,t,n){},5227:function(e,t,n){e.exports=n.p+"img/zuche.svg"},"528d":function(e,t,n){e.exports=n.p+"img/xiaoheiban.svg"},"555d":function(e,t,n){"use strict";n("94c6")},"56c4":function(e,t,n){"use strict";n("300d")},"56d3":function(e,t,n){e.exports=n.p+"img/ziyuan_4.svg"},5703:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(){"use strict";var e={};!function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}}(),function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var t={};e.d(t,{default:function(){return wo}});var n=function e(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,i,o="KaTeX parse error: "+t,a=n&&n.loc;if(a&&a.start<=a.end){var s=a.lexer.input;r=a.start,i=a.end,r===s.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var l,c,u=s.slice(r,i).replace(/[^]/g,"$&̲");l=r>15?"…"+s.slice(r-15,r):s.slice(0,r),c=i+15":">","<":"<",'"':""","'":"'"},c=/[&><"']/g;function u(e){return String(e).replace(c,(function(e){return l[e]}))}var h=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},d=function(e){var t=h(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},f=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},p=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"},m={contains:i,deflt:o,escape:u,hyphenate:s,getBaseElem:h,isCharacterBox:d,protocolFromUrl:p},g={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:function(e){return"#"+e}},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:function(e,t){return t.push(e),t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:function(e){return Math.max(0,e)},cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:function(e){return Math.max(0,e)},cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:function(e){return Math.max(0,e)},cli:"-e, --max-expand ",cliProcessor:function(e){return"Infinity"===e?1/0:parseInt(e)}},globalGroup:{type:"boolean",cli:!1}};function v(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!==typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var b=function(){function e(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},g)if(g.hasOwnProperty(t)){var n=g[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:v(n)}}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var i=this.strict;if("function"===typeof i&&(i=i(e,t,n)),i&&"ignore"!==i){if(!0===i||"error"===i)throw new r("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===i?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+i+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"===typeof r)try{r=r(e,t,n)}catch(i){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=m.protocolFromUrl(e.url));var t="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),y=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return M[O[this.id]]},t.sub=function(){return M[N[this.id]]},t.fracNum=function(){return M[D[this.id]]},t.fracDen=function(){return M[L[this.id]]},t.cramp=function(){return M[P[this.id]]},t.text=function(){return M[I[this.id]]},t.isTight=function(){return this.size>=2},e}(),w=0,x=1,k=2,C=3,A=4,E=5,T=6,S=7,M=[new y(w,0,!1),new y(x,0,!0),new y(k,1,!1),new y(C,1,!0),new y(A,2,!1),new y(E,2,!0),new y(T,3,!1),new y(S,3,!0)],O=[A,E,A,E,T,S,T,S],N=[E,E,E,E,S,S,S,S],D=[k,C,A,E,T,S,T,S],L=[C,C,E,E,S,S,S,S],P=[x,x,C,C,E,E,S,S],I=[w,x,k,C,k,C,k,C],R={DISPLAY:M[w],TEXT:M[k],SCRIPT:M[A],SCRIPTSCRIPT:M[T]},F=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function z(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var j=[];function B(e){for(var t=0;t=j[t]&&e<=j[t+1])return!0;return!1}F.forEach((function(e){return e.blocks.forEach((function(e){return j.push.apply(j,e)}))}));var U=80,H=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},q=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},_=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},W=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"},G=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},V=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Y=function(e,t,n){var r=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+r+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"},K=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=H(t,U);break;case"sqrtSize1":r=q(t,U);break;case"sqrtSize2":r=_(t,U);break;case"sqrtSize3":r=W(t,U);break;case"sqrtSize4":r=G(t,U);break;case"sqrtTall":r=Y(t,U,n)}return r},Z=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}},X={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},J=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}},Q=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t=5?0:e>=3?1:2,!ie[t]){var n=ie[t]={cssEmPerMu:ee.quad[t]/18};for(var r in ee)ee.hasOwnProperty(r)&&(n[r]=ee[r][t])}return ie[t]}var ae=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],se=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],le=function(e,t){return t.size<2?e:ae[e-1][t.size-1]},ce=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=se[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:le(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:se[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=le(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=oe(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();ce.BASESIZE=6;var ue=ce,he={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},de={ex:!0,em:!0,mu:!0},fe=function(e){return"string"!==typeof e&&(e=e.unit),e in he||e in de||"ex"===e},pe=function(e,t){var n;if(e.unit in he)n=he[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var i;if(i=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=i.fontMetrics().xHeight;else{if("em"!==e.unit)throw new r("Invalid unit: '"+e.unit+"'");n=i.fontMetrics().quad}i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},me=function(e){return+e.toFixed(4)+"em"},ge=function(e){return e.filter((function(e){return e})).join(" ")},ve=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},be=function(e){var t=document.createElement(e);for(var n in t.className=ge(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var i=0;i",t},we=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ve.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){return be.call(this,"span")},t.toMarkup=function(){return ye.call(this,"span")},e}(),xe=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ve.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){return be.call(this,"a")},t.toMarkup=function(){return ye.call(this,"a")},e}(),ke=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return m.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"0&&(t=document.createElement("span"),t.style.marginRight=me(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=ge(this.classes)),this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=m.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+m.escape(n)+'"');var i=m.escape(this.text);return e?(t+=">",t+=i,t+="",t):i},e}(),Ee=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r":""},e}(),Se=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t},t.toMarkup=function(){var e=" but got "+String(e)+".")}var Ne={bin:1,close:1,inner:1,open:1,punct:1,rel:1},De={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Le={math:{},text:{}},Pe=Le;function Ie(e,t,n,r,i,o){Le[e][i]={font:t,group:n,replace:r},o&&r&&(Le[e][r]=Le[e][i])}var Re="math",Fe="text",ze="main",je="ams",Be="accent-token",Ue="bin",He="close",qe="inner",_e="mathord",We="op-token",Ge="open",Ve="punct",Ye="rel",Ke="spacing",Ze="textord";Ie(Re,ze,Ye,"≡","\\equiv",!0),Ie(Re,ze,Ye,"≺","\\prec",!0),Ie(Re,ze,Ye,"≻","\\succ",!0),Ie(Re,ze,Ye,"∼","\\sim",!0),Ie(Re,ze,Ye,"⊥","\\perp"),Ie(Re,ze,Ye,"⪯","\\preceq",!0),Ie(Re,ze,Ye,"⪰","\\succeq",!0),Ie(Re,ze,Ye,"≃","\\simeq",!0),Ie(Re,ze,Ye,"∣","\\mid",!0),Ie(Re,ze,Ye,"≪","\\ll",!0),Ie(Re,ze,Ye,"≫","\\gg",!0),Ie(Re,ze,Ye,"≍","\\asymp",!0),Ie(Re,ze,Ye,"∥","\\parallel"),Ie(Re,ze,Ye,"⋈","\\bowtie",!0),Ie(Re,ze,Ye,"⌣","\\smile",!0),Ie(Re,ze,Ye,"⊑","\\sqsubseteq",!0),Ie(Re,ze,Ye,"⊒","\\sqsupseteq",!0),Ie(Re,ze,Ye,"≐","\\doteq",!0),Ie(Re,ze,Ye,"⌢","\\frown",!0),Ie(Re,ze,Ye,"∋","\\ni",!0),Ie(Re,ze,Ye,"∝","\\propto",!0),Ie(Re,ze,Ye,"⊢","\\vdash",!0),Ie(Re,ze,Ye,"⊣","\\dashv",!0),Ie(Re,ze,Ye,"∋","\\owns"),Ie(Re,ze,Ve,".","\\ldotp"),Ie(Re,ze,Ve,"⋅","\\cdotp"),Ie(Re,ze,Ze,"#","\\#"),Ie(Fe,ze,Ze,"#","\\#"),Ie(Re,ze,Ze,"&","\\&"),Ie(Fe,ze,Ze,"&","\\&"),Ie(Re,ze,Ze,"ℵ","\\aleph",!0),Ie(Re,ze,Ze,"∀","\\forall",!0),Ie(Re,ze,Ze,"ℏ","\\hbar",!0),Ie(Re,ze,Ze,"∃","\\exists",!0),Ie(Re,ze,Ze,"∇","\\nabla",!0),Ie(Re,ze,Ze,"♭","\\flat",!0),Ie(Re,ze,Ze,"ℓ","\\ell",!0),Ie(Re,ze,Ze,"♮","\\natural",!0),Ie(Re,ze,Ze,"♣","\\clubsuit",!0),Ie(Re,ze,Ze,"℘","\\wp",!0),Ie(Re,ze,Ze,"♯","\\sharp",!0),Ie(Re,ze,Ze,"♢","\\diamondsuit",!0),Ie(Re,ze,Ze,"ℜ","\\Re",!0),Ie(Re,ze,Ze,"♡","\\heartsuit",!0),Ie(Re,ze,Ze,"ℑ","\\Im",!0),Ie(Re,ze,Ze,"♠","\\spadesuit",!0),Ie(Re,ze,Ze,"§","\\S",!0),Ie(Fe,ze,Ze,"§","\\S"),Ie(Re,ze,Ze,"¶","\\P",!0),Ie(Fe,ze,Ze,"¶","\\P"),Ie(Re,ze,Ze,"†","\\dag"),Ie(Fe,ze,Ze,"†","\\dag"),Ie(Fe,ze,Ze,"†","\\textdagger"),Ie(Re,ze,Ze,"‡","\\ddag"),Ie(Fe,ze,Ze,"‡","\\ddag"),Ie(Fe,ze,Ze,"‡","\\textdaggerdbl"),Ie(Re,ze,He,"⎱","\\rmoustache",!0),Ie(Re,ze,Ge,"⎰","\\lmoustache",!0),Ie(Re,ze,He,"⟯","\\rgroup",!0),Ie(Re,ze,Ge,"⟮","\\lgroup",!0),Ie(Re,ze,Ue,"∓","\\mp",!0),Ie(Re,ze,Ue,"⊖","\\ominus",!0),Ie(Re,ze,Ue,"⊎","\\uplus",!0),Ie(Re,ze,Ue,"⊓","\\sqcap",!0),Ie(Re,ze,Ue,"∗","\\ast"),Ie(Re,ze,Ue,"⊔","\\sqcup",!0),Ie(Re,ze,Ue,"◯","\\bigcirc",!0),Ie(Re,ze,Ue,"∙","\\bullet",!0),Ie(Re,ze,Ue,"‡","\\ddagger"),Ie(Re,ze,Ue,"≀","\\wr",!0),Ie(Re,ze,Ue,"⨿","\\amalg"),Ie(Re,ze,Ue,"&","\\And"),Ie(Re,ze,Ye,"⟵","\\longleftarrow",!0),Ie(Re,ze,Ye,"⇐","\\Leftarrow",!0),Ie(Re,ze,Ye,"⟸","\\Longleftarrow",!0),Ie(Re,ze,Ye,"⟶","\\longrightarrow",!0),Ie(Re,ze,Ye,"⇒","\\Rightarrow",!0),Ie(Re,ze,Ye,"⟹","\\Longrightarrow",!0),Ie(Re,ze,Ye,"↔","\\leftrightarrow",!0),Ie(Re,ze,Ye,"⟷","\\longleftrightarrow",!0),Ie(Re,ze,Ye,"⇔","\\Leftrightarrow",!0),Ie(Re,ze,Ye,"⟺","\\Longleftrightarrow",!0),Ie(Re,ze,Ye,"↦","\\mapsto",!0),Ie(Re,ze,Ye,"⟼","\\longmapsto",!0),Ie(Re,ze,Ye,"↗","\\nearrow",!0),Ie(Re,ze,Ye,"↩","\\hookleftarrow",!0),Ie(Re,ze,Ye,"↪","\\hookrightarrow",!0),Ie(Re,ze,Ye,"↘","\\searrow",!0),Ie(Re,ze,Ye,"↼","\\leftharpoonup",!0),Ie(Re,ze,Ye,"⇀","\\rightharpoonup",!0),Ie(Re,ze,Ye,"↙","\\swarrow",!0),Ie(Re,ze,Ye,"↽","\\leftharpoondown",!0),Ie(Re,ze,Ye,"⇁","\\rightharpoondown",!0),Ie(Re,ze,Ye,"↖","\\nwarrow",!0),Ie(Re,ze,Ye,"⇌","\\rightleftharpoons",!0),Ie(Re,je,Ye,"≮","\\nless",!0),Ie(Re,je,Ye,"","\\@nleqslant"),Ie(Re,je,Ye,"","\\@nleqq"),Ie(Re,je,Ye,"⪇","\\lneq",!0),Ie(Re,je,Ye,"≨","\\lneqq",!0),Ie(Re,je,Ye,"","\\@lvertneqq"),Ie(Re,je,Ye,"⋦","\\lnsim",!0),Ie(Re,je,Ye,"⪉","\\lnapprox",!0),Ie(Re,je,Ye,"⊀","\\nprec",!0),Ie(Re,je,Ye,"⋠","\\npreceq",!0),Ie(Re,je,Ye,"⋨","\\precnsim",!0),Ie(Re,je,Ye,"⪹","\\precnapprox",!0),Ie(Re,je,Ye,"≁","\\nsim",!0),Ie(Re,je,Ye,"","\\@nshortmid"),Ie(Re,je,Ye,"∤","\\nmid",!0),Ie(Re,je,Ye,"⊬","\\nvdash",!0),Ie(Re,je,Ye,"⊭","\\nvDash",!0),Ie(Re,je,Ye,"⋪","\\ntriangleleft"),Ie(Re,je,Ye,"⋬","\\ntrianglelefteq",!0),Ie(Re,je,Ye,"⊊","\\subsetneq",!0),Ie(Re,je,Ye,"","\\@varsubsetneq"),Ie(Re,je,Ye,"⫋","\\subsetneqq",!0),Ie(Re,je,Ye,"","\\@varsubsetneqq"),Ie(Re,je,Ye,"≯","\\ngtr",!0),Ie(Re,je,Ye,"","\\@ngeqslant"),Ie(Re,je,Ye,"","\\@ngeqq"),Ie(Re,je,Ye,"⪈","\\gneq",!0),Ie(Re,je,Ye,"≩","\\gneqq",!0),Ie(Re,je,Ye,"","\\@gvertneqq"),Ie(Re,je,Ye,"⋧","\\gnsim",!0),Ie(Re,je,Ye,"⪊","\\gnapprox",!0),Ie(Re,je,Ye,"⊁","\\nsucc",!0),Ie(Re,je,Ye,"⋡","\\nsucceq",!0),Ie(Re,je,Ye,"⋩","\\succnsim",!0),Ie(Re,je,Ye,"⪺","\\succnapprox",!0),Ie(Re,je,Ye,"≆","\\ncong",!0),Ie(Re,je,Ye,"","\\@nshortparallel"),Ie(Re,je,Ye,"∦","\\nparallel",!0),Ie(Re,je,Ye,"⊯","\\nVDash",!0),Ie(Re,je,Ye,"⋫","\\ntriangleright"),Ie(Re,je,Ye,"⋭","\\ntrianglerighteq",!0),Ie(Re,je,Ye,"","\\@nsupseteqq"),Ie(Re,je,Ye,"⊋","\\supsetneq",!0),Ie(Re,je,Ye,"","\\@varsupsetneq"),Ie(Re,je,Ye,"⫌","\\supsetneqq",!0),Ie(Re,je,Ye,"","\\@varsupsetneqq"),Ie(Re,je,Ye,"⊮","\\nVdash",!0),Ie(Re,je,Ye,"⪵","\\precneqq",!0),Ie(Re,je,Ye,"⪶","\\succneqq",!0),Ie(Re,je,Ye,"","\\@nsubseteqq"),Ie(Re,je,Ue,"⊴","\\unlhd"),Ie(Re,je,Ue,"⊵","\\unrhd"),Ie(Re,je,Ye,"↚","\\nleftarrow",!0),Ie(Re,je,Ye,"↛","\\nrightarrow",!0),Ie(Re,je,Ye,"⇍","\\nLeftarrow",!0),Ie(Re,je,Ye,"⇏","\\nRightarrow",!0),Ie(Re,je,Ye,"↮","\\nleftrightarrow",!0),Ie(Re,je,Ye,"⇎","\\nLeftrightarrow",!0),Ie(Re,je,Ye,"△","\\vartriangle"),Ie(Re,je,Ze,"ℏ","\\hslash"),Ie(Re,je,Ze,"▽","\\triangledown"),Ie(Re,je,Ze,"◊","\\lozenge"),Ie(Re,je,Ze,"Ⓢ","\\circledS"),Ie(Re,je,Ze,"®","\\circledR"),Ie(Fe,je,Ze,"®","\\circledR"),Ie(Re,je,Ze,"∡","\\measuredangle",!0),Ie(Re,je,Ze,"∄","\\nexists"),Ie(Re,je,Ze,"℧","\\mho"),Ie(Re,je,Ze,"Ⅎ","\\Finv",!0),Ie(Re,je,Ze,"⅁","\\Game",!0),Ie(Re,je,Ze,"‵","\\backprime"),Ie(Re,je,Ze,"▲","\\blacktriangle"),Ie(Re,je,Ze,"▼","\\blacktriangledown"),Ie(Re,je,Ze,"■","\\blacksquare"),Ie(Re,je,Ze,"⧫","\\blacklozenge"),Ie(Re,je,Ze,"★","\\bigstar"),Ie(Re,je,Ze,"∢","\\sphericalangle",!0),Ie(Re,je,Ze,"∁","\\complement",!0),Ie(Re,je,Ze,"ð","\\eth",!0),Ie(Fe,ze,Ze,"ð","ð"),Ie(Re,je,Ze,"╱","\\diagup"),Ie(Re,je,Ze,"╲","\\diagdown"),Ie(Re,je,Ze,"□","\\square"),Ie(Re,je,Ze,"□","\\Box"),Ie(Re,je,Ze,"◊","\\Diamond"),Ie(Re,je,Ze,"¥","\\yen",!0),Ie(Fe,je,Ze,"¥","\\yen",!0),Ie(Re,je,Ze,"✓","\\checkmark",!0),Ie(Fe,je,Ze,"✓","\\checkmark"),Ie(Re,je,Ze,"ℶ","\\beth",!0),Ie(Re,je,Ze,"ℸ","\\daleth",!0),Ie(Re,je,Ze,"ℷ","\\gimel",!0),Ie(Re,je,Ze,"ϝ","\\digamma",!0),Ie(Re,je,Ze,"ϰ","\\varkappa"),Ie(Re,je,Ge,"┌","\\@ulcorner",!0),Ie(Re,je,He,"┐","\\@urcorner",!0),Ie(Re,je,Ge,"└","\\@llcorner",!0),Ie(Re,je,He,"┘","\\@lrcorner",!0),Ie(Re,je,Ye,"≦","\\leqq",!0),Ie(Re,je,Ye,"⩽","\\leqslant",!0),Ie(Re,je,Ye,"⪕","\\eqslantless",!0),Ie(Re,je,Ye,"≲","\\lesssim",!0),Ie(Re,je,Ye,"⪅","\\lessapprox",!0),Ie(Re,je,Ye,"≊","\\approxeq",!0),Ie(Re,je,Ue,"⋖","\\lessdot"),Ie(Re,je,Ye,"⋘","\\lll",!0),Ie(Re,je,Ye,"≶","\\lessgtr",!0),Ie(Re,je,Ye,"⋚","\\lesseqgtr",!0),Ie(Re,je,Ye,"⪋","\\lesseqqgtr",!0),Ie(Re,je,Ye,"≑","\\doteqdot"),Ie(Re,je,Ye,"≓","\\risingdotseq",!0),Ie(Re,je,Ye,"≒","\\fallingdotseq",!0),Ie(Re,je,Ye,"∽","\\backsim",!0),Ie(Re,je,Ye,"⋍","\\backsimeq",!0),Ie(Re,je,Ye,"⫅","\\subseteqq",!0),Ie(Re,je,Ye,"⋐","\\Subset",!0),Ie(Re,je,Ye,"⊏","\\sqsubset",!0),Ie(Re,je,Ye,"≼","\\preccurlyeq",!0),Ie(Re,je,Ye,"⋞","\\curlyeqprec",!0),Ie(Re,je,Ye,"≾","\\precsim",!0),Ie(Re,je,Ye,"⪷","\\precapprox",!0),Ie(Re,je,Ye,"⊲","\\vartriangleleft"),Ie(Re,je,Ye,"⊴","\\trianglelefteq"),Ie(Re,je,Ye,"⊨","\\vDash",!0),Ie(Re,je,Ye,"⊪","\\Vvdash",!0),Ie(Re,je,Ye,"⌣","\\smallsmile"),Ie(Re,je,Ye,"⌢","\\smallfrown"),Ie(Re,je,Ye,"≏","\\bumpeq",!0),Ie(Re,je,Ye,"≎","\\Bumpeq",!0),Ie(Re,je,Ye,"≧","\\geqq",!0),Ie(Re,je,Ye,"⩾","\\geqslant",!0),Ie(Re,je,Ye,"⪖","\\eqslantgtr",!0),Ie(Re,je,Ye,"≳","\\gtrsim",!0),Ie(Re,je,Ye,"⪆","\\gtrapprox",!0),Ie(Re,je,Ue,"⋗","\\gtrdot"),Ie(Re,je,Ye,"⋙","\\ggg",!0),Ie(Re,je,Ye,"≷","\\gtrless",!0),Ie(Re,je,Ye,"⋛","\\gtreqless",!0),Ie(Re,je,Ye,"⪌","\\gtreqqless",!0),Ie(Re,je,Ye,"≖","\\eqcirc",!0),Ie(Re,je,Ye,"≗","\\circeq",!0),Ie(Re,je,Ye,"≜","\\triangleq",!0),Ie(Re,je,Ye,"∼","\\thicksim"),Ie(Re,je,Ye,"≈","\\thickapprox"),Ie(Re,je,Ye,"⫆","\\supseteqq",!0),Ie(Re,je,Ye,"⋑","\\Supset",!0),Ie(Re,je,Ye,"⊐","\\sqsupset",!0),Ie(Re,je,Ye,"≽","\\succcurlyeq",!0),Ie(Re,je,Ye,"⋟","\\curlyeqsucc",!0),Ie(Re,je,Ye,"≿","\\succsim",!0),Ie(Re,je,Ye,"⪸","\\succapprox",!0),Ie(Re,je,Ye,"⊳","\\vartriangleright"),Ie(Re,je,Ye,"⊵","\\trianglerighteq"),Ie(Re,je,Ye,"⊩","\\Vdash",!0),Ie(Re,je,Ye,"∣","\\shortmid"),Ie(Re,je,Ye,"∥","\\shortparallel"),Ie(Re,je,Ye,"≬","\\between",!0),Ie(Re,je,Ye,"⋔","\\pitchfork",!0),Ie(Re,je,Ye,"∝","\\varpropto"),Ie(Re,je,Ye,"◀","\\blacktriangleleft"),Ie(Re,je,Ye,"∴","\\therefore",!0),Ie(Re,je,Ye,"∍","\\backepsilon"),Ie(Re,je,Ye,"▶","\\blacktriangleright"),Ie(Re,je,Ye,"∵","\\because",!0),Ie(Re,je,Ye,"⋘","\\llless"),Ie(Re,je,Ye,"⋙","\\gggtr"),Ie(Re,je,Ue,"⊲","\\lhd"),Ie(Re,je,Ue,"⊳","\\rhd"),Ie(Re,je,Ye,"≂","\\eqsim",!0),Ie(Re,ze,Ye,"⋈","\\Join"),Ie(Re,je,Ye,"≑","\\Doteq",!0),Ie(Re,je,Ue,"∔","\\dotplus",!0),Ie(Re,je,Ue,"∖","\\smallsetminus"),Ie(Re,je,Ue,"⋒","\\Cap",!0),Ie(Re,je,Ue,"⋓","\\Cup",!0),Ie(Re,je,Ue,"⩞","\\doublebarwedge",!0),Ie(Re,je,Ue,"⊟","\\boxminus",!0),Ie(Re,je,Ue,"⊞","\\boxplus",!0),Ie(Re,je,Ue,"⋇","\\divideontimes",!0),Ie(Re,je,Ue,"⋉","\\ltimes",!0),Ie(Re,je,Ue,"⋊","\\rtimes",!0),Ie(Re,je,Ue,"⋋","\\leftthreetimes",!0),Ie(Re,je,Ue,"⋌","\\rightthreetimes",!0),Ie(Re,je,Ue,"⋏","\\curlywedge",!0),Ie(Re,je,Ue,"⋎","\\curlyvee",!0),Ie(Re,je,Ue,"⊝","\\circleddash",!0),Ie(Re,je,Ue,"⊛","\\circledast",!0),Ie(Re,je,Ue,"⋅","\\centerdot"),Ie(Re,je,Ue,"⊺","\\intercal",!0),Ie(Re,je,Ue,"⋒","\\doublecap"),Ie(Re,je,Ue,"⋓","\\doublecup"),Ie(Re,je,Ue,"⊠","\\boxtimes",!0),Ie(Re,je,Ye,"⇢","\\dashrightarrow",!0),Ie(Re,je,Ye,"⇠","\\dashleftarrow",!0),Ie(Re,je,Ye,"⇇","\\leftleftarrows",!0),Ie(Re,je,Ye,"⇆","\\leftrightarrows",!0),Ie(Re,je,Ye,"⇚","\\Lleftarrow",!0),Ie(Re,je,Ye,"↞","\\twoheadleftarrow",!0),Ie(Re,je,Ye,"↢","\\leftarrowtail",!0),Ie(Re,je,Ye,"↫","\\looparrowleft",!0),Ie(Re,je,Ye,"⇋","\\leftrightharpoons",!0),Ie(Re,je,Ye,"↶","\\curvearrowleft",!0),Ie(Re,je,Ye,"↺","\\circlearrowleft",!0),Ie(Re,je,Ye,"↰","\\Lsh",!0),Ie(Re,je,Ye,"⇈","\\upuparrows",!0),Ie(Re,je,Ye,"↿","\\upharpoonleft",!0),Ie(Re,je,Ye,"⇃","\\downharpoonleft",!0),Ie(Re,ze,Ye,"⊶","\\origof",!0),Ie(Re,ze,Ye,"⊷","\\imageof",!0),Ie(Re,je,Ye,"⊸","\\multimap",!0),Ie(Re,je,Ye,"↭","\\leftrightsquigarrow",!0),Ie(Re,je,Ye,"⇉","\\rightrightarrows",!0),Ie(Re,je,Ye,"⇄","\\rightleftarrows",!0),Ie(Re,je,Ye,"↠","\\twoheadrightarrow",!0),Ie(Re,je,Ye,"↣","\\rightarrowtail",!0),Ie(Re,je,Ye,"↬","\\looparrowright",!0),Ie(Re,je,Ye,"↷","\\curvearrowright",!0),Ie(Re,je,Ye,"↻","\\circlearrowright",!0),Ie(Re,je,Ye,"↱","\\Rsh",!0),Ie(Re,je,Ye,"⇊","\\downdownarrows",!0),Ie(Re,je,Ye,"↾","\\upharpoonright",!0),Ie(Re,je,Ye,"⇂","\\downharpoonright",!0),Ie(Re,je,Ye,"⇝","\\rightsquigarrow",!0),Ie(Re,je,Ye,"⇝","\\leadsto"),Ie(Re,je,Ye,"⇛","\\Rrightarrow",!0),Ie(Re,je,Ye,"↾","\\restriction"),Ie(Re,ze,Ze,"‘","`"),Ie(Re,ze,Ze,"$","\\$"),Ie(Fe,ze,Ze,"$","\\$"),Ie(Fe,ze,Ze,"$","\\textdollar"),Ie(Re,ze,Ze,"%","\\%"),Ie(Fe,ze,Ze,"%","\\%"),Ie(Re,ze,Ze,"_","\\_"),Ie(Fe,ze,Ze,"_","\\_"),Ie(Fe,ze,Ze,"_","\\textunderscore"),Ie(Re,ze,Ze,"∠","\\angle",!0),Ie(Re,ze,Ze,"∞","\\infty",!0),Ie(Re,ze,Ze,"′","\\prime"),Ie(Re,ze,Ze,"△","\\triangle"),Ie(Re,ze,Ze,"Γ","\\Gamma",!0),Ie(Re,ze,Ze,"Δ","\\Delta",!0),Ie(Re,ze,Ze,"Θ","\\Theta",!0),Ie(Re,ze,Ze,"Λ","\\Lambda",!0),Ie(Re,ze,Ze,"Ξ","\\Xi",!0),Ie(Re,ze,Ze,"Π","\\Pi",!0),Ie(Re,ze,Ze,"Σ","\\Sigma",!0),Ie(Re,ze,Ze,"Υ","\\Upsilon",!0),Ie(Re,ze,Ze,"Φ","\\Phi",!0),Ie(Re,ze,Ze,"Ψ","\\Psi",!0),Ie(Re,ze,Ze,"Ω","\\Omega",!0),Ie(Re,ze,Ze,"A","Α"),Ie(Re,ze,Ze,"B","Β"),Ie(Re,ze,Ze,"E","Ε"),Ie(Re,ze,Ze,"Z","Ζ"),Ie(Re,ze,Ze,"H","Η"),Ie(Re,ze,Ze,"I","Ι"),Ie(Re,ze,Ze,"K","Κ"),Ie(Re,ze,Ze,"M","Μ"),Ie(Re,ze,Ze,"N","Ν"),Ie(Re,ze,Ze,"O","Ο"),Ie(Re,ze,Ze,"P","Ρ"),Ie(Re,ze,Ze,"T","Τ"),Ie(Re,ze,Ze,"X","Χ"),Ie(Re,ze,Ze,"¬","\\neg",!0),Ie(Re,ze,Ze,"¬","\\lnot"),Ie(Re,ze,Ze,"⊤","\\top"),Ie(Re,ze,Ze,"⊥","\\bot"),Ie(Re,ze,Ze,"∅","\\emptyset"),Ie(Re,je,Ze,"∅","\\varnothing"),Ie(Re,ze,_e,"α","\\alpha",!0),Ie(Re,ze,_e,"β","\\beta",!0),Ie(Re,ze,_e,"γ","\\gamma",!0),Ie(Re,ze,_e,"δ","\\delta",!0),Ie(Re,ze,_e,"ϵ","\\epsilon",!0),Ie(Re,ze,_e,"ζ","\\zeta",!0),Ie(Re,ze,_e,"η","\\eta",!0),Ie(Re,ze,_e,"θ","\\theta",!0),Ie(Re,ze,_e,"ι","\\iota",!0),Ie(Re,ze,_e,"κ","\\kappa",!0),Ie(Re,ze,_e,"λ","\\lambda",!0),Ie(Re,ze,_e,"μ","\\mu",!0),Ie(Re,ze,_e,"ν","\\nu",!0),Ie(Re,ze,_e,"ξ","\\xi",!0),Ie(Re,ze,_e,"ο","\\omicron",!0),Ie(Re,ze,_e,"π","\\pi",!0),Ie(Re,ze,_e,"ρ","\\rho",!0),Ie(Re,ze,_e,"σ","\\sigma",!0),Ie(Re,ze,_e,"τ","\\tau",!0),Ie(Re,ze,_e,"υ","\\upsilon",!0),Ie(Re,ze,_e,"ϕ","\\phi",!0),Ie(Re,ze,_e,"χ","\\chi",!0),Ie(Re,ze,_e,"ψ","\\psi",!0),Ie(Re,ze,_e,"ω","\\omega",!0),Ie(Re,ze,_e,"ε","\\varepsilon",!0),Ie(Re,ze,_e,"ϑ","\\vartheta",!0),Ie(Re,ze,_e,"ϖ","\\varpi",!0),Ie(Re,ze,_e,"ϱ","\\varrho",!0),Ie(Re,ze,_e,"ς","\\varsigma",!0),Ie(Re,ze,_e,"φ","\\varphi",!0),Ie(Re,ze,Ue,"∗","*",!0),Ie(Re,ze,Ue,"+","+"),Ie(Re,ze,Ue,"−","-",!0),Ie(Re,ze,Ue,"⋅","\\cdot",!0),Ie(Re,ze,Ue,"∘","\\circ",!0),Ie(Re,ze,Ue,"÷","\\div",!0),Ie(Re,ze,Ue,"±","\\pm",!0),Ie(Re,ze,Ue,"×","\\times",!0),Ie(Re,ze,Ue,"∩","\\cap",!0),Ie(Re,ze,Ue,"∪","\\cup",!0),Ie(Re,ze,Ue,"∖","\\setminus",!0),Ie(Re,ze,Ue,"∧","\\land"),Ie(Re,ze,Ue,"∨","\\lor"),Ie(Re,ze,Ue,"∧","\\wedge",!0),Ie(Re,ze,Ue,"∨","\\vee",!0),Ie(Re,ze,Ze,"√","\\surd"),Ie(Re,ze,Ge,"⟨","\\langle",!0),Ie(Re,ze,Ge,"∣","\\lvert"),Ie(Re,ze,Ge,"∥","\\lVert"),Ie(Re,ze,He,"?","?"),Ie(Re,ze,He,"!","!"),Ie(Re,ze,He,"⟩","\\rangle",!0),Ie(Re,ze,He,"∣","\\rvert"),Ie(Re,ze,He,"∥","\\rVert"),Ie(Re,ze,Ye,"=","="),Ie(Re,ze,Ye,":",":"),Ie(Re,ze,Ye,"≈","\\approx",!0),Ie(Re,ze,Ye,"≅","\\cong",!0),Ie(Re,ze,Ye,"≥","\\ge"),Ie(Re,ze,Ye,"≥","\\geq",!0),Ie(Re,ze,Ye,"←","\\gets"),Ie(Re,ze,Ye,">","\\gt",!0),Ie(Re,ze,Ye,"∈","\\in",!0),Ie(Re,ze,Ye,"","\\@not"),Ie(Re,ze,Ye,"⊂","\\subset",!0),Ie(Re,ze,Ye,"⊃","\\supset",!0),Ie(Re,ze,Ye,"⊆","\\subseteq",!0),Ie(Re,ze,Ye,"⊇","\\supseteq",!0),Ie(Re,je,Ye,"⊈","\\nsubseteq",!0),Ie(Re,je,Ye,"⊉","\\nsupseteq",!0),Ie(Re,ze,Ye,"⊨","\\models"),Ie(Re,ze,Ye,"←","\\leftarrow",!0),Ie(Re,ze,Ye,"≤","\\le"),Ie(Re,ze,Ye,"≤","\\leq",!0),Ie(Re,ze,Ye,"<","\\lt",!0),Ie(Re,ze,Ye,"→","\\rightarrow",!0),Ie(Re,ze,Ye,"→","\\to"),Ie(Re,je,Ye,"≱","\\ngeq",!0),Ie(Re,je,Ye,"≰","\\nleq",!0),Ie(Re,ze,Ke," ","\\ "),Ie(Re,ze,Ke," ","\\space"),Ie(Re,ze,Ke," ","\\nobreakspace"),Ie(Fe,ze,Ke," ","\\ "),Ie(Fe,ze,Ke," "," "),Ie(Fe,ze,Ke," ","\\space"),Ie(Fe,ze,Ke," ","\\nobreakspace"),Ie(Re,ze,Ke,null,"\\nobreak"),Ie(Re,ze,Ke,null,"\\allowbreak"),Ie(Re,ze,Ve,",",","),Ie(Re,ze,Ve,";",";"),Ie(Re,je,Ue,"⊼","\\barwedge",!0),Ie(Re,je,Ue,"⊻","\\veebar",!0),Ie(Re,ze,Ue,"⊙","\\odot",!0),Ie(Re,ze,Ue,"⊕","\\oplus",!0),Ie(Re,ze,Ue,"⊗","\\otimes",!0),Ie(Re,ze,Ze,"∂","\\partial",!0),Ie(Re,ze,Ue,"⊘","\\oslash",!0),Ie(Re,je,Ue,"⊚","\\circledcirc",!0),Ie(Re,je,Ue,"⊡","\\boxdot",!0),Ie(Re,ze,Ue,"△","\\bigtriangleup"),Ie(Re,ze,Ue,"▽","\\bigtriangledown"),Ie(Re,ze,Ue,"†","\\dagger"),Ie(Re,ze,Ue,"⋄","\\diamond"),Ie(Re,ze,Ue,"⋆","\\star"),Ie(Re,ze,Ue,"◃","\\triangleleft"),Ie(Re,ze,Ue,"▹","\\triangleright"),Ie(Re,ze,Ge,"{","\\{"),Ie(Fe,ze,Ze,"{","\\{"),Ie(Fe,ze,Ze,"{","\\textbraceleft"),Ie(Re,ze,He,"}","\\}"),Ie(Fe,ze,Ze,"}","\\}"),Ie(Fe,ze,Ze,"}","\\textbraceright"),Ie(Re,ze,Ge,"{","\\lbrace"),Ie(Re,ze,He,"}","\\rbrace"),Ie(Re,ze,Ge,"[","\\lbrack",!0),Ie(Fe,ze,Ze,"[","\\lbrack",!0),Ie(Re,ze,He,"]","\\rbrack",!0),Ie(Fe,ze,Ze,"]","\\rbrack",!0),Ie(Re,ze,Ge,"(","\\lparen",!0),Ie(Re,ze,He,")","\\rparen",!0),Ie(Fe,ze,Ze,"<","\\textless",!0),Ie(Fe,ze,Ze,">","\\textgreater",!0),Ie(Re,ze,Ge,"⌊","\\lfloor",!0),Ie(Re,ze,He,"⌋","\\rfloor",!0),Ie(Re,ze,Ge,"⌈","\\lceil",!0),Ie(Re,ze,He,"⌉","\\rceil",!0),Ie(Re,ze,Ze,"\\","\\backslash"),Ie(Re,ze,Ze,"∣","|"),Ie(Re,ze,Ze,"∣","\\vert"),Ie(Fe,ze,Ze,"|","\\textbar",!0),Ie(Re,ze,Ze,"∥","\\|"),Ie(Re,ze,Ze,"∥","\\Vert"),Ie(Fe,ze,Ze,"∥","\\textbardbl"),Ie(Fe,ze,Ze,"~","\\textasciitilde"),Ie(Fe,ze,Ze,"\\","\\textbackslash"),Ie(Fe,ze,Ze,"^","\\textasciicircum"),Ie(Re,ze,Ye,"↑","\\uparrow",!0),Ie(Re,ze,Ye,"⇑","\\Uparrow",!0),Ie(Re,ze,Ye,"↓","\\downarrow",!0),Ie(Re,ze,Ye,"⇓","\\Downarrow",!0),Ie(Re,ze,Ye,"↕","\\updownarrow",!0),Ie(Re,ze,Ye,"⇕","\\Updownarrow",!0),Ie(Re,ze,We,"∐","\\coprod"),Ie(Re,ze,We,"⋁","\\bigvee"),Ie(Re,ze,We,"⋀","\\bigwedge"),Ie(Re,ze,We,"⨄","\\biguplus"),Ie(Re,ze,We,"⋂","\\bigcap"),Ie(Re,ze,We,"⋃","\\bigcup"),Ie(Re,ze,We,"∫","\\int"),Ie(Re,ze,We,"∫","\\intop"),Ie(Re,ze,We,"∬","\\iint"),Ie(Re,ze,We,"∭","\\iiint"),Ie(Re,ze,We,"∏","\\prod"),Ie(Re,ze,We,"∑","\\sum"),Ie(Re,ze,We,"⨂","\\bigotimes"),Ie(Re,ze,We,"⨁","\\bigoplus"),Ie(Re,ze,We,"⨀","\\bigodot"),Ie(Re,ze,We,"∮","\\oint"),Ie(Re,ze,We,"∯","\\oiint"),Ie(Re,ze,We,"∰","\\oiiint"),Ie(Re,ze,We,"⨆","\\bigsqcup"),Ie(Re,ze,We,"∫","\\smallint"),Ie(Fe,ze,qe,"…","\\textellipsis"),Ie(Re,ze,qe,"…","\\mathellipsis"),Ie(Fe,ze,qe,"…","\\ldots",!0),Ie(Re,ze,qe,"…","\\ldots",!0),Ie(Re,ze,qe,"⋯","\\@cdots",!0),Ie(Re,ze,qe,"⋱","\\ddots",!0),Ie(Re,ze,Ze,"⋮","\\varvdots"),Ie(Re,ze,Be,"ˊ","\\acute"),Ie(Re,ze,Be,"ˋ","\\grave"),Ie(Re,ze,Be,"¨","\\ddot"),Ie(Re,ze,Be,"~","\\tilde"),Ie(Re,ze,Be,"ˉ","\\bar"),Ie(Re,ze,Be,"˘","\\breve"),Ie(Re,ze,Be,"ˇ","\\check"),Ie(Re,ze,Be,"^","\\hat"),Ie(Re,ze,Be,"⃗","\\vec"),Ie(Re,ze,Be,"˙","\\dot"),Ie(Re,ze,Be,"˚","\\mathring"),Ie(Re,ze,_e,"","\\@imath"),Ie(Re,ze,_e,"","\\@jmath"),Ie(Re,ze,Ze,"ı","ı"),Ie(Re,ze,Ze,"ȷ","ȷ"),Ie(Fe,ze,Ze,"ı","\\i",!0),Ie(Fe,ze,Ze,"ȷ","\\j",!0),Ie(Fe,ze,Ze,"ß","\\ss",!0),Ie(Fe,ze,Ze,"æ","\\ae",!0),Ie(Fe,ze,Ze,"œ","\\oe",!0),Ie(Fe,ze,Ze,"ø","\\o",!0),Ie(Fe,ze,Ze,"Æ","\\AE",!0),Ie(Fe,ze,Ze,"Œ","\\OE",!0),Ie(Fe,ze,Ze,"Ø","\\O",!0),Ie(Fe,ze,Be,"ˊ","\\'"),Ie(Fe,ze,Be,"ˋ","\\`"),Ie(Fe,ze,Be,"ˆ","\\^"),Ie(Fe,ze,Be,"˜","\\~"),Ie(Fe,ze,Be,"ˉ","\\="),Ie(Fe,ze,Be,"˘","\\u"),Ie(Fe,ze,Be,"˙","\\."),Ie(Fe,ze,Be,"¸","\\c"),Ie(Fe,ze,Be,"˚","\\r"),Ie(Fe,ze,Be,"ˇ","\\v"),Ie(Fe,ze,Be,"¨",'\\"'),Ie(Fe,ze,Be,"˝","\\H"),Ie(Fe,ze,Be,"◯","\\textcircled");var Xe={"--":!0,"---":!0,"``":!0,"''":!0};Ie(Fe,ze,Ze,"–","--",!0),Ie(Fe,ze,Ze,"–","\\textendash"),Ie(Fe,ze,Ze,"—","---",!0),Ie(Fe,ze,Ze,"—","\\textemdash"),Ie(Fe,ze,Ze,"‘","`",!0),Ie(Fe,ze,Ze,"‘","\\textquoteleft"),Ie(Fe,ze,Ze,"’","'",!0),Ie(Fe,ze,Ze,"’","\\textquoteright"),Ie(Fe,ze,Ze,"“","``",!0),Ie(Fe,ze,Ze,"“","\\textquotedblleft"),Ie(Fe,ze,Ze,"”","''",!0),Ie(Fe,ze,Ze,"”","\\textquotedblright"),Ie(Re,ze,Ze,"°","\\degree",!0),Ie(Fe,ze,Ze,"°","\\degree"),Ie(Fe,ze,Ze,"°","\\textdegree",!0),Ie(Re,ze,Ze,"£","\\pounds"),Ie(Re,ze,Ze,"£","\\mathsterling",!0),Ie(Fe,ze,Ze,"£","\\pounds"),Ie(Fe,ze,Ze,"£","\\textsterling",!0),Ie(Re,je,Ze,"✠","\\maltese"),Ie(Fe,je,Ze,"✠","\\maltese");for(var Je='0123456789/@."',Qe=0;Qet&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>r&&(r=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Et=function(e,t,n,r){var i=new we(e,t,n,r);return At(i),i},Tt=function(e,t,n,r){return new we(e,t,n,r)},St=function(e,t,n){var r=Et([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=me(r.height),r.maxFontSize=1,r},Mt=function(e,t,n,r){var i=new xe(e,t,n,r);return At(i),i},Ot=function(e){var t=new Q(e);return At(t),t},Nt=function(e,t){return e instanceof Q?Et([],[e],t):e},Dt=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,o=1;o0&&(a.push(un(s,t)),s=[]),a.push(i[l]));s.length>0&&a.push(un(s,t)),n?(o=un(nn(n,t,!0)),o.classes=["tag"],a.push(o)):r&&a.push(r);var u=Jt(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),o){var h=o.children[0];h.style.height=me(u.height+u.depth),u.depth&&(h.style.verticalAlign=me(-u.depth))}return u}function dn(e){return new Q(e)}var fn=function(){function e(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=ge(this.classes));for(var n=0;n0&&(e+=' class ="'+m.escape(ge(this.classes))+'"'),e+=">";for(var n=0;n",e},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),pn=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return m.escape(this.toText())},t.toText=function(){return this.text},e}(),mn=function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",me(this.width)),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),gn={MathNode:fn,TextNode:pn,SpaceNode:mn,newDocumentFragment:dn},vn=function(e,t,n){return!Pe[t][e]||!Pe[t][e].replace||55349===e.charCodeAt(0)||Xe.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=Pe[t][e].replace),new gn.TextNode(e)},bn=function(e){return 1===e.length?e[0]:new gn.MathNode("mrow",e)},yn=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var i=e.text;if(m.contains(["\\imath","\\jmath"],i))return null;Pe[r][i]&&Pe[r][i].replace&&(i=Pe[r][i].replace);var o=jt.fontMap[n].fontName;return re(i,o,r)?jt.fontMap[n].variant:null},wn=function(e,t,n){if(1===e.length){var r=kn(e[0],t);return n&&r instanceof fn&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,o=[],a=0;a0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),o.pop())}}}o.push(s),i=s}return o},xn=function(e,t,n){return bn(wn(e,t,n))},kn=function(e,t){if(!e)return new gn.MathNode("mrow");if(Vt[e.type]){var n=Vt[e.type](e,t);return n}throw new r("Got group of unknown type: '"+e.type+"'")};function Cn(e,t,n,r,i){var o,a=wn(e,n);o=1===a.length&&a[0]instanceof fn&&m.contains(["mrow","mtable"],a[0].type)?a[0]:new gn.MathNode("mrow",a);var s=new gn.MathNode("annotation",[new gn.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new gn.MathNode("semantics",[o,s]),c=new gn.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return jt.makeSpan([u],[c])}var An=function(e){return new ue({style:e.displayMode?R.DISPLAY:R.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},En=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=jt.makeSpan(n,[e])}return e},Tn=function(e,t,n){var r,i=An(n);if("mathml"===n.output)return Cn(e,t,i,n.displayMode,!0);if("html"===n.output){var o=hn(e,i);r=jt.makeSpan(["katex"],[o])}else{var a=Cn(e,t,i,n.displayMode,!1),s=hn(e,i);r=jt.makeSpan(["katex"],[a,s])}return En(r,n)},Sn=function(e,t,n){var r=An(n),i=hn(e,r),o=jt.makeSpan(["katex"],[i]);return En(o,n)},Mn={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},On=function(e){var t=new gn.MathNode("mo",[new gn.TextNode(Mn[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Nn={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Dn=function(e){return"ordgroup"===e.type?e.body.length:1},Ln=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(m.contains(["widehat","widecheck","widetilde","utilde"],r)){var i,o,a,s=e,l=Dn(s.base);if(l>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,a=.42,o=r+"4"):(i=312,n=2340,a=.34,o="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],i=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],i=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],o="tilde"+c)}var u=new Te(o),h=new Ee([u],{width:"100%",height:me(a),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:jt.makeSvgSpan([],[h],t),minWidth:0,height:a}}var d,f,p=[],g=Nn[r],v=g[0],b=g[1],y=g[2],w=y/1e3,x=v.length;if(1===x){var k=g[3];d=["hide-tail"],f=[k]}else if(2===x)d=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");d=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var C=0;C0&&(i.style.minWidth=me(o)),i},Pn=function(e,t,n,r,i){var o,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(o=jt.makeSpan(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(o.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Se({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Se({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Ee(l,{width:"100%",height:me(a)});o=jt.makeSvgSpan([],[c],i)}return o.height=a,o.style.height=me(a),o},In={encloseSpan:Pn,mathMLnode:On,svgSpan:Ln};function Rn(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Fn(e){var t=zn(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function zn(e){return e&&("atom"===e.type||De.hasOwnProperty(e.type))?e:null}var jn=function(e,t){var n,r,i;e&&"supsub"===e.type?(r=Rn(e.base,"accent"),n=r.base,e.base=n,i=Oe(cn(e,t)),e.base=r):(r=Rn(e,"accent"),n=r.base);var o=cn(n,t.havingCrampedStyle()),a=r.isShifty&&m.isCharacterBox(n),s=0;if(a){var l=m.getBaseElem(n),c=cn(l,t.havingCrampedStyle());s=Me(c).skew}var u,h="\\c"===r.label,d=h?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight);if(r.isStretchy)u=In.svgSpan(r,t),u=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+me(2*s)+")",marginLeft:me(2*s)}:void 0}]},t);else{var f,p;"\\vec"===r.label?(f=jt.staticSvg("vec",t),p=jt.svgData.vec[1]):(f=jt.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=Me(f),f.italic=0,p=f.width,h&&(d+=f.depth)),u=jt.makeSpan(["accent-body"],[f]);var g="\\textcircled"===r.label;g&&(u.classes.push("accent-full"),d=o.height);var v=s;g||(v-=p/2),u.style.left=me(v),"\\textcircled"===r.label&&(u.style.top=".2em"),u=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-d},{type:"elem",elem:u}]},t)}var b=jt.makeSpan(["mord","accent"],[u],t);return i?(i.children[0]=b,i.height=Math.max(b.height,i.height),i.classes[0]="mord",i):b},Bn=function(e,t){var n=e.isStretchy?In.mathMLnode(e.label):new gn.MathNode("mo",[vn(e.label,e.mode)]),r=new gn.MathNode("mover",[kn(e.base,t),n]);return r.setAttribute("accent","true"),r},Un=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));Yt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=Zt(t[0]),r=!Un.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:jn,mathmlBuilder:Bn}),Yt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:jn,mathmlBuilder:Bn}),Yt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:function(e,t){var n=cn(e.base,t),r=In.svgSpan(e,t),i="\\utilde"===e.label?.12:0,o=jt.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return jt.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:function(e,t){var n=In.mathMLnode(e.label),r=new gn.MathNode("munder",[kn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Hn=function(e){var t=new gn.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Yt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,i=e.funcName;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),o=jt.wrapFragment(cn(e.body,i,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(a+"-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),n=jt.wrapFragment(cn(e.below,i,t),t),n.classes.push(a+"-arrow-pad"));var s,l=In.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=o.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:h}]},t)}else s=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),jt.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var n,r=In.mathMLnode(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=Hn(kn(e.body,t));if(e.below){var o=Hn(kn(e.below,t));n=new gn.MathNode("munderover",[r,o,i])}else n=new gn.MathNode("mover",[r,i])}else if(e.below){var a=Hn(kn(e.below,t));n=new gn.MathNode("munder",[r,a])}else n=Hn(),n=new gn.MathNode("mover",[r,n]);return n}});var qn=jt.makeSpan;function _n(e,t){var n=nn(e.body,t,!0);return qn([e.mclass],n,t)}function Wn(e,t){var n,r=wn(e.body,t);return"minner"===e.mclass?n=new gn.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0],n.type="mi"):n=new gn.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new gn.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Yt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Xt(i),isCharacterBox:m.isCharacterBox(i)}},htmlBuilder:_n,mathmlBuilder:Wn});var Gn=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Yt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){var n=e.parser;return{type:"mclass",mode:n.mode,mclass:Gn(t[0]),body:Xt(t[1]),isCharacterBox:m.isCharacterBox(t[1])}}}),Yt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,r=e.parser,i=e.funcName,o=t[1],a=t[0];n="\\stackrel"!==i?Gn(o):"mrel";var s={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:Xt(o)},l={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===i?null:a,sub:"\\underset"===i?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:m.isCharacterBox(l)}},htmlBuilder:_n,mathmlBuilder:Wn}),Yt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"pmb",mode:n.mode,mclass:Gn(t[0]),body:Xt(t[0])}},htmlBuilder:function(e,t){var n=nn(e.body,t,!0),r=jt.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder:function(e,t){var n=wn(e.body,t),r=new gn.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Vn={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Yn=function(){return{type:"styling",body:[],mode:"math",style:"display"}},Kn=function(e){return"textord"===e.type&&"@"===e.text},Zn=function(e,t){return("mathord"===e.type||"atom"===e.type)&&e.text===t};function Xn(e,t,n){var r=Vn[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i=n.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:r,mode:"math",family:"rel"},a=n.callFunction("\\Big",[o],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,a,s]};return n.callFunction("\\\\cdparent",[l],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[]);default:return{type:"textord",text:" ",mode:"math"}}}function Jn(e){var t=[];e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();while(1){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new r("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var i=[],o=[i],a=0;a-1);else{if(!("<>AV".indexOf(u)>-1))throw new r('Expected one of "<>AV=|." after @',s[c]);for(var d=0;d<2;d++){for(var f=!0,p=c+1;p=1114111)throw new r("\\@char with invalid code point "+a);return u<=65535?c=String.fromCharCode(u):(u-=65536,c=String.fromCharCode(55296+(u>>10),56320+(1023&u))),{type:"textord",mode:n.mode,text:c}}});var Qn=function(e,t){var n=nn(e.body,t.withColor(e.color),!1);return jt.makeFragment(n)},$n=function(e,t){var n=wn(e.body,t.withColor(e.color)),r=new gn.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Yt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,r=Rn(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:Xt(i)}},htmlBuilder:Qn,mathmlBuilder:$n}),Yt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,i=Rn(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:o}},htmlBuilder:Qn,mathmlBuilder:$n}),Yt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler:function(e,t,n){var r=e.parser,i="["===r.gullet.future().text?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:i&&Rn(i,"size").value}},htmlBuilder:function(e,t){var n=jt.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=me(pe(e.size,t)))),n},mathmlBuilder:function(e,t){var n=new gn.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",me(pe(e.size,t)))),n}});var er={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},tr=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new r("Expected a control sequence",e);return t},nr=function(e){var t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t},rr=function(e,t,n,r){var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};Yt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var i=t.fetch();if(er[i.text])return"\\global"!==n&&"\\\\globallong"!==n||(i.text=er[i.text]),Rn(t.parseFunction(),"internal");throw new r("Invalid token after macro prefix",i)}}),Yt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new r("Expected a control sequence",i);var a,s=0,l=[[]];while("{"!==t.gullet.future().text)if(i=t.gullet.popToken(),"#"===i.text){if("{"===t.gullet.future().text){a=t.gullet.future(),l[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new r('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new r('Argument number "'+i.text+'" out of order');s++,l.push([])}else{if("EOF"===i.text)throw new r("Expected a macro definition");l[s].push(i.text)}var c=t.gullet.consumeArg(),u=c.tokens;return a&&u.unshift(a),"\\edef"!==n&&"\\xdef"!==n||(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(o,{tokens:u,numArgs:s,delimiters:l},n===er[n]),{type:"internal",mode:t.mode}}}),Yt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=tr(t.gullet.popToken());t.gullet.consumeSpaces();var i=nr(t);return rr(t,r,i,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),Yt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=tr(t.gullet.popToken()),i=t.gullet.popToken(),o=t.gullet.popToken();return rr(t,r,o,"\\\\globalfuture"===n),t.gullet.pushToken(o),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ir=function(e,t,n){var r=Pe.math[e]&&Pe.math[e].replace,i=re(r||e,t,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return i},or=function(e,t,n,r){var i=n.havingBaseStyle(t),o=jt.makeSpan(r.concat(i.sizingClasses(n)),[e],n),a=i.sizeMultiplier/n.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=i.sizeMultiplier,o},ar=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=me(i),e.height-=i,e.depth+=i},sr=function(e,t,n,r,i,o){var a=jt.makeSymbol(e,"Main-Regular",i,r),s=or(a,t,r,o);return n&&ar(s,r,t),s},lr=function(e,t,n,r){return jt.makeSymbol(e,"Size"+t+"-Regular",n,r)},cr=function(e,t,n,r,i,o){var a=lr(e,t,i,r),s=or(jt.makeSpan(["delimsizing","size"+t],[a],r),R.TEXT,r,o);return n&&ar(s,r,R.TEXT),s},ur=function(e,t,n){var r;r="Size1-Regular"===t?"delim-size1":"delim-size4";var i=jt.makeSpan(["delimsizinginner",r],[jt.makeSpan([],[jt.makeSymbol(e,t,n)])]);return{type:"elem",elem:i}},hr=function(e,t,n){var r=$["Size4-Regular"][e.charCodeAt(0)]?$["Size4-Regular"][e.charCodeAt(0)][4]:$["Size1-Regular"][e.charCodeAt(0)][4],i=new Te("inner",Z(e,Math.round(1e3*t))),o=new Ee([i],{width:me(r),height:me(t),style:"width:"+me(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=jt.makeSvgSpan([],[o],n);return a.height=t,a.style.height=me(t),a.style.width=me(r),{type:"elem",elem:a}},dr=.008,fr={type:"kern",size:-1*dr},pr=["|","\\lvert","\\rvert","\\vert"],mr=["\\|","\\lVert","\\rVert","\\Vert"],gr=function(e,t,n,r,i,o){var a,s,l,c,u="",h=0;a=l=c=e,s=null;var d="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?a=l="⏐":"\\Downarrow"===e?a=l="‖":"\\updownarrow"===e?(a="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",l="‖",c="\\Downarrow"):m.contains(pr,e)?(l="∣",u="vert",h=333):m.contains(mr,e)?(l="∥",u="doublevert",h=556):"["===e||"\\lbrack"===e?(a="⎡",l="⎢",c="⎣",d="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(a="⎤",l="⎥",c="⎦",d="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(l=a="⎢",c="⎣",d="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"⌈"===e?(a="⎡",l=c="⎢",d="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"⌋"===e?(l=a="⎥",c="⎦",d="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"⌉"===e?(a="⎤",l=c="⎥",d="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(a="⎛",l="⎜",c="⎝",d="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(a="⎞",l="⎟",c="⎠",d="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",c="⎩",l="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",c="⎭",l="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",c="⎩",l="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",c="⎭",l="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",c="⎭",l="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",c="⎩",l="⎪",d="Size4-Regular");var f=ir(a,d,i),p=f.height+f.depth,g=ir(l,d,i),v=g.height+g.depth,b=ir(c,d,i),y=b.height+b.depth,w=0,x=1;if(null!==s){var k=ir(s,d,i);w=k.height+k.depth,x=2}var C=p+y+w,A=Math.max(0,Math.ceil((t-C)/(x*v))),E=C+A*x*v,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var S=E/2-T,M=[];if(u.length>0){var O=E-p-y,N=Math.round(1e3*E),D=J(u,Math.round(1e3*O)),L=new Te(u,D),P=(h/1e3).toFixed(3)+"em",I=(N/1e3).toFixed(3)+"em",F=new Ee([L],{width:P,height:I,viewBox:"0 0 "+h+" "+N}),z=jt.makeSvgSpan([],[F],r);z.height=N/1e3,z.style.width=P,z.style.height=I,M.push({type:"elem",elem:z})}else{if(M.push(ur(c,d,i)),M.push(fr),null===s){var j=E-p-y+2*dr;M.push(hr(l,j,r))}else{var B=(E-p-y-w)/2+2*dr;M.push(hr(l,B,r)),M.push(fr),M.push(ur(s,d,i)),M.push(fr),M.push(hr(l,B,r))}M.push(fr),M.push(ur(a,d,i))}var U=r.havingBaseStyle(R.TEXT),H=jt.makeVList({positionType:"bottom",positionData:S,children:M},U);return or(jt.makeSpan(["delimsizing","mult"],[H],U),R.TEXT,r,o)},vr=80,br=.08,yr=function(e,t,n,r,i){var o=K(e,r,n),a=new Te(e,o),s=new Ee([a],{width:"400em",height:me(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return jt.makeSvgSpan(["hide-tail"],[s],i)},wr=function(e,t){var n,r,i=t.havingBaseSizing(),o=Nr("\\surd",e*i.sizeMultiplier,Mr,i),a=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===o.type?(u=1e3+1e3*s+vr,e<1?a=1:e<1.4&&(a=.7),l=(1+s+br)/a,c=(1+s)/a,n=yr("sqrtMain",l,u,s,t),n.style.minWidth="0.853em",r=.833/a):"large"===o.type?(u=(1e3+vr)*Ar[o.size],c=(Ar[o.size]+s)/a,l=(Ar[o.size]+s+br)/a,n=yr("sqrtSize"+o.size,l,u,s,t),n.style.minWidth="1.02em",r=1/a):(l=e+s+br,c=e+s,u=Math.floor(1e3*e+s)+vr,n=yr("sqrtTall",l,u,s,t),n.style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=me(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},xr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],kr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Cr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ar=[0,1.2,1.8,2.4,3],Er=function(e,t,n,i,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),m.contains(xr,e)||m.contains(Cr,e))return cr(e,t,!1,n,i,o);if(m.contains(kr,e))return gr(e,Ar[t],!1,n,i,o);throw new r("Illegal delimiter: '"+e+"'")},Tr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Sr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"stack"}],Mr=[{type:"small",style:R.SCRIPTSCRIPT},{type:"small",style:R.SCRIPT},{type:"small",style:R.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Or=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Nr=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),o=i;ot)return n[o]}return n[n.length-1]},Dr=function(e,t,n,r,i,o){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=m.contains(Cr,e)?Tr:m.contains(xr,e)?Mr:Sr;var s=Nr(e,t,a,r);return"small"===s.type?sr(e,s.style,n,r,i,o):"large"===s.type?cr(e,s.size,n,r,i,o):gr(e,t,n,r,i,o)},Lr=function(e,t,n,r,i,o){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),u=Math.max(c/500*s,2*c-l);return Dr(e,u,!0,r,i,o)},Pr={sqrtImage:wr,sizedDelim:Er,sizeToMaxHeight:Ar,customSizedDelim:Dr,leftRightDelim:Lr},Ir={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Rr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fr(e,t){var n=zn(e);if(n&&m.contains(Rr,n.text))return n;throw new r(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function zr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Yt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var n=Fr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Ir[e.funcName].size,mclass:Ir[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?jt.makeSpan([e.mclass]):Pr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(vn(e.delim,e.mode));var n=new gn.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=me(Pr.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),Yt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!==typeof n)throw new r("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Fr(t[0],e).text,color:n}}}),Yt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=Fr(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=Rn(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:function(e,t){zr(e);for(var n,r,i=nn(e.body,t,!0,["mopen","mclose"]),o=0,a=0,s=!1,l=0;l-1?"mpadded":"menclose",[kn(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Yt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,o=Rn(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,body:a}},htmlBuilder:jr,mathmlBuilder:Br}),Yt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,o=Rn(t[0],"color-token").color,a=Rn(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:jr,mathmlBuilder:Br}),Yt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),Yt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:jr,mathmlBuilder:Br}),Yt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){var n=e.parser;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Ur={};function Hr(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,o=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!h)&&g.pop(),b.length0&&(w+=.25),c.push({pos:w,isDashed:e[t]})}for(x(a[0]),n=0;n0&&(M+=y,A=s)){var G=void 0;(i>0||e.hskipBeforeAndAfter)&&(G=m.deflt(U.pregap,d),0!==G&&(O=jt.makeSpan(["arraycolsep"],[]),O.style.width=me(G),P.push(O)));var V=[];for(n=0;n0){var X=jt.makeLineSpan("hline",t,u),J=jt.makeLineSpan("hdashline",t,u),Q=[{type:"elem",elem:l,shift:0}];while(c.length>0){var $=c.pop(),ee=$.pos-D;$.isDashed?Q.push({type:"elem",elem:J,shift:ee}):Q.push({type:"elem",elem:X,shift:ee})}l=jt.makeVList({positionType:"individualShift",children:Q},t)}if(0===I.length)return jt.makeSpan(["mord"],[l],t);var te=jt.makeVList({positionType:"individualShift",children:I},t);return te=jt.makeSpan(["tag"],[te],t),jt.makeFragment([l,te])},Qr={c:"center ",l:"left ",r:"right "},$r=function(e,t){for(var n=[],r=new gn.MathNode("mtd",[],["mtr-glue"]),i=new gn.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var f=e.cols,p="",m=!1,g=0,v=f.length;"separator"===f[0].type&&(h+="top ",g=1),"separator"===f[f.length-1].type&&(h+="bottom ",v-=1);for(var b=g;b0?"left ":"",h+=C[C.length-1].length>0?"right ":"";for(var A=1;A-1?"alignat":"align",a="split"===e.envName,s=Zr(e.parser,{cols:i,addJot:!0,autoTag:a?void 0:Kr(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var u="",h=0;h0&&f&&(g=1),i[p]={type:"align",align:m,pregap:g,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Hr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n=zn(t[0]),i=n?[t[0]]:Rn(t[0],"ordgroup").body,o=i.map((function(e){var t=Fn(e),n=t.text;if(-1!=="lcr".indexOf(n))return{type:"align",align:n};if("|"===n)return{type:"separator",separator:"|"};if(":"===n)return{type:"separator",separator:":"};throw new r("Unknown column alignment: "+n,e)})),a={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return Zr(e.parser,a,Xr(e.envName))},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,-1==="lcr".indexOf(n))throw new r("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:n}]}}var a=Zr(e.parser,i,Xr(e.envName)),s=Math.max.apply(Math,[0].concat(a.body.map((function(e){return e.length}))));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t={arraystretch:.5},n=Zr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=zn(t[0]),i=n?[t[0]]:Rn(t[0],"ordgroup").body,o=i.map((function(e){var t=Fn(e),n=t.text;if(-1!=="lc".indexOf(n))return{type:"align",align:n};throw new r("Unknown column alignment: "+n,e)}));if(o.length>1)throw new r("{subarray} can contain only one column");var a={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Zr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new r("{subarray} can contain only one column");return a},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Zr(e.parser,t,Xr(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ei,htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){m.contains(["gather","gather*"],e.envName)&&Yr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Kr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Zr(e.parser,t,"display")},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ei,htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Yr(e);var t={autoTag:Kr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Zr(e.parser,t,"display")},htmlBuilder:Jr,mathmlBuilder:$r}),Hr({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Yr(e),Jn(e.parser)},htmlBuilder:Jr,mathmlBuilder:$r}),_r("\\nonumber","\\gdef\\@eqnsw{0}"),_r("\\notag","\\nonumber"),Yt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new r(e.funcName+" valid only within array environment")}});var ti=Ur,ni=ti;Yt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,i=e.funcName,o=t[0];if("ordgroup"!==o.type)throw new r("Invalid environment name",o);for(var a="",s=0;s=R.SCRIPT.id?n.text():R.DISPLAY:"text"===e&&n.size===R.DISPLAY.size?n=R.TEXT:"script"===e?n=R.SCRIPT:"scriptscript"===e&&(n=R.SCRIPTSCRIPT),n},si=function(e,t){var n,r=ai(e.size,t.style),i=r.fracNum(),o=r.fracDen();n=t.havingStyle(i);var a=cn(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*h:7*h,p=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,f=h):(d=t.fontMetrics().num3,f=3*h),p=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;d-a.depth-(w+.5*u)0&&(t=e,t="."===t?null:t),t};Yt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,r=e.parser,i=t[4],o=t[5],a=Zt(t[0]),s="atom"===a.type&&"open"===a.family?ui(a.text):null,l=Zt(t[1]),c="atom"===l.type&&"close"===l.family?ui(l.text):null,u=Rn(t[2],"size"),h=null;u.isBlank?n=!0:(h=u.value,n=h.number>0);var d="auto",f=t[3];if("ordgroup"===f.type){if(f.body.length>0){var p=Rn(f.body[0],"textord");d=ci[Number(p.text)]}}else f=Rn(f,"textord"),d=ci[Number(f.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:o,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:c,size:d}},htmlBuilder:si,mathmlBuilder:li}),Yt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Rn(t[0],"size").value,token:r}}}),Yt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),i=f(Rn(t[1],"infix").size),o=t[2],a=i.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:a,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:si,mathmlBuilder:li});var hi=function(e,t){var n,r,i=t.style;"supsub"===e.type?(n=e.sup?cn(e.sup,t.havingStyle(i.sup()),t):cn(e.sub,t.havingStyle(i.sub()),t),r=Rn(e.base,"horizBrace")):r=Rn(e,"horizBrace");var o,a=cn(r.base,t.havingBaseStyle(R.DISPLAY)),s=In.svgSpan(r,t);if(r.isOver?(o=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=jt.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=jt.makeSpan(["mord",r.isOver?"mover":"munder"],[o],t);o=r.isOver?jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):jt.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return jt.makeSpan(["mord",r.isOver?"mover":"munder"],[o],t)},di=function(e,t){var n=In.mathMLnode(e.label);return new gn.MathNode(e.isOver?"mover":"munder",[kn(e.base,t),n])};Yt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:hi,mathmlBuilder:di}),Yt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],i=Rn(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Xt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=nn(e.body,t,!1);return jt.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=xn(e.body,t);return n instanceof fn||(n=new fn("mrow",[n])),n.setAttribute("href",e.href),n}}),Yt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Rn(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],o=0;o0&&(r=pe(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pe(e.width,t));var o={height:me(n+r)};i>0&&(o.width=me(i)),r>0&&(o.verticalAlign=me(-r));var a=new ke(e.src,e.alt,o);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new gn.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pe(e.height,t),i=0;if(e.totalheight.number>0&&(i=pe(e.totalheight,t)-r,n.setAttribute("valign",me(-i))),n.setAttribute("height",me(r+i)),e.width.number>0){var o=pe(e.width,t);n.setAttribute("width",me(o))}return n.setAttribute("src",e.src),n}}),Yt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=Rn(t[0],"size");if(n.settings.strict){var o="m"===r[1],a="mu"===i.value.unit;o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:function(e,t){return jt.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=pe(e.dimension,t);return new gn.SpaceNode(n)}}),Yt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=jt.makeSpan([],[cn(e.body,t)]),n=jt.makeSpan(["inner"],[n],t)):n=jt.makeSpan(["inner"],[cn(e.body,t)]);var r=jt.makeSpan(["fix"],[]),i=jt.makeSpan([e.alignment],[n,r],t),o=jt.makeSpan(["strut"]);return o.style.height=me(i.height+i.depth),i.depth&&(o.style.verticalAlign=me(-i.depth)),i.children.unshift(o),i=jt.makeSpan(["thinbox"],[i],t),jt.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:function(e,t){var n=new gn.MathNode("mpadded",[kn(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),Yt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode("math");var o="\\("===n?"\\)":"$",a=r.parseExpression(!1,o);return r.expect(o),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:a}}}),Yt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new r("Mismatched "+e.funcName)}});var pi=function(e,t){switch(t.style.size){case R.DISPLAY.size:return e.display;case R.TEXT.size:return e.text;case R.SCRIPT.size:return e.script;case R.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Yt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){var n=e.parser;return{type:"mathchoice",mode:n.mode,display:Xt(t[0]),text:Xt(t[1]),script:Xt(t[2]),scriptscript:Xt(t[3])}},htmlBuilder:function(e,t){var n=pi(e,t),r=nn(n,t,!1);return jt.makeFragment(r)},mathmlBuilder:function(e,t){var n=pi(e,t);return xn(n,t)}});var mi=function(e,t,n,r,i,o,a){e=jt.makeSpan([],[e]);var s,l,c,u=n&&m.isCharacterBox(n);if(t){var h=cn(t,r.havingStyle(i.sup()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var d=cn(n,r.havingStyle(i.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var f=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=jt.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:me(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:me(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var p=e.height-a;c=jt.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:me(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var g=e.depth+a;c=jt.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:me(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var v=[c];if(s&&0!==o&&!u){var b=jt.makeSpan(["mspace"],[],r);b.style.marginRight=me(o),v.unshift(b)}return jt.makeSpan(["mop","op-limits"],v,r)},gi=["\\smallint"],vi=function(e,t){var n,r,i,o=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=Rn(e.base,"op"),o=!0):i=Rn(e,"op");var a,s=t.style,l=!1;if(s.size===R.DISPLAY.size&&i.symbol&&!m.contains(gi,i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),a=jt.makeSymbol(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var h=a.italic,d=jt.staticSvg(u+"Size"+(l?"2":"1"),t);a=jt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:d,shift:l?.08:0}]},t),i.name="\\"+u,a.classes.unshift("mop"),a.italic=h}}else if(i.body){var f=nn(i.body,t,!0);1===f.length&&f[0]instanceof Ae?(a=f[0],a.classes[0]="mop"):a=jt.makeSpan(["mop"],f,t)}else{for(var p=[],g=1;g0){for(var s=i.body.map((function(e){var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=nn(s,t.withFont("mathrm"),!0),c=0;c=0?s.setAttribute("height",me(i)):(s.setAttribute("height",me(i)),s.setAttribute("depth",me(-i))),s.setAttribute("voffset",me(i)),s}});var Ai=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ei=function(e,t){var n=t.havingSize(e.size);return Ci(e.body,n,t)};Yt({type:"sizing",names:Ai,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,o=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Ai.indexOf(r)+1,body:o}},htmlBuilder:Ei,mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=wn(e.body,n),i=new gn.MathNode("mstyle",r);return i.setAttribute("mathsize",me(n.sizeMultiplier)),i}}),Yt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,i=!1,o=!1,a=n[0]&&Rn(n[0],"ordgroup");if(a)for(var s="",l=0;ln.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=c.height-n.height-a-u;n.style.paddingLeft=me(h);var p=jt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:c},{type:"kern",size:u}]},t);if(e.index){var m=t.havingStyle(R.SCRIPTSCRIPT),g=cn(e.index,m,t),v=.6*(p.height-p.depth),b=jt.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:g}]},t),y=jt.makeSpan(["root"],[b]);return jt.makeSpan(["mord","sqrt"],[y,p],t)}return jt.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new gn.MathNode("mroot",[kn(n,t),kn(r,t)]):new gn.MathNode("msqrt",[kn(n,t)])}});var Ti={display:R.DISPLAY,text:R.TEXT,script:R.SCRIPT,scriptscript:R.SCRIPTSCRIPT};Yt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,o=i.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:a,body:o}},htmlBuilder:function(e,t){var n=Ti[e.style],r=t.havingStyle(n).withFont("");return Ci(e.body,r,t)},mathmlBuilder:function(e,t){var n=Ti[e.style],r=t.havingStyle(n),i=wn(e.body,r),o=new gn.MathNode("mstyle",i),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[e.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var Si=function(e,t){var n=e.base;if(n){if("op"===n.type){var r=n.limits&&(t.style.size===R.DISPLAY.size||n.alwaysHandleSupSub);return r?vi:null}if("operatorname"===n.type){var i=n.alwaysHandleSupSub&&(t.style.size===R.DISPLAY.size||n.limits);return i?xi:null}if("accent"===n.type)return m.isCharacterBox(n.base)?jn:null;if("horizBrace"===n.type){var o=!e.sub;return o===n.isOver?hi:null}return null}return null};Kt({type:"supsub",htmlBuilder:function(e,t){var n=Si(e,t);if(n)return n(e,t);var r,i,o,a=e.base,s=e.sup,l=e.sub,c=cn(a,t),u=t.fontMetrics(),h=0,d=0,f=a&&m.isCharacterBox(a);if(s){var p=t.havingStyle(t.style.sup());r=cn(s,p,t),f||(h=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(l){var g=t.havingStyle(t.style.sub());i=cn(l,g,t),f||(d=c.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}o=t.style===R.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var v,b=t.sizeMultiplier,y=me(.5/u.ptPerEm/b),w=null;if(i){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof Ae||x)&&(w=me(-c.italic))}if(r&&i){h=Math.max(h,o,r.depth+.25*u.xHeight),d=Math.max(d,u.sub2);var k=u.defaultRuleThickness,C=4*k;if(h-r.depth-(i.height-d)0&&(h+=A,d-=A)}var E=[{type:"elem",elem:i,shift:d,marginRight:y,marginLeft:w},{type:"elem",elem:r,shift:-h,marginRight:y}];v=jt.makeVList({positionType:"individualShift",children:E},t)}else if(i){d=Math.max(d,u.sub1,i.height-.8*u.xHeight);var T=[{type:"elem",elem:i,marginLeft:w,marginRight:y}];v=jt.makeVList({positionType:"shift",positionData:d,children:T},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");h=Math.max(h,o,r.depth+.25*u.xHeight),v=jt.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:r,marginRight:y}]},t)}var S=sn(c,"right")||"mord";return jt.makeSpan([S],[c,jt.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var n,r,i=!1;e.base&&"horizBrace"===e.base.type&&(r=!!e.sup,r===e.base.isOver&&(i=!0,n=e.base.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,a=[kn(e.base,t)];if(e.sub&&a.push(kn(e.sub,t)),e.sup&&a.push(kn(e.sup,t)),i)o=n?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;o=s&&"op"===s.type&&s.limits&&t.style===R.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===R.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===R.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===R.DISPLAY)?"munder":"msub"}else{var c=e.base;o=c&&"op"===c.type&&c.limits&&(t.style===R.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===R.DISPLAY)?"mover":"msup"}return new gn.MathNode(o,a)}}),Kt({type:"atom",htmlBuilder:function(e,t){return jt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new gn.MathNode("mo",[vn(e.text,e.mode)]);if("bin"===e.family){var r=yn(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var Mi={mi:"italic",mn:"normal",mtext:"normal"};Kt({type:"mathord",htmlBuilder:function(e,t){return jt.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new gn.MathNode("mi",[vn(e.text,e.mode,t)]),r=yn(e,t)||"italic";return r!==Mi[n.type]&&n.setAttribute("mathvariant",r),n}}),Kt({type:"textord",htmlBuilder:function(e,t){return jt.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=vn(e.text,e.mode,t),i=yn(e,t)||"normal";return n="text"===e.mode?new gn.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new gn.MathNode("mn",[r]):"\\prime"===e.text?new gn.MathNode("mo",[r]):new gn.MathNode("mi",[r]),i!==Mi[n.type]&&n.setAttribute("mathvariant",i),n}});var Oi={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ni={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Kt({type:"spacing",htmlBuilder:function(e,t){if(Ni.hasOwnProperty(e.text)){var n=Ni[e.text].className||"";if("text"===e.mode){var i=jt.makeOrd(e,t,"textord");return i.classes.push(n),i}return jt.makeSpan(["mspace",n],[jt.mathsym(e.text,e.mode,t)],t)}if(Oi.hasOwnProperty(e.text))return jt.makeSpan(["mspace",Oi[e.text]],[],t);throw new r('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){var n;if(!Ni.hasOwnProperty(e.text)){if(Oi.hasOwnProperty(e.text))return new gn.MathNode("mspace");throw new r('Unknown type of space "'+e.text+'"')}return n=new gn.MathNode("mtext",[new gn.TextNode(" ")]),n}});var Di=function(){var e=new gn.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Kt({type:"tag",mathmlBuilder:function(e,t){var n=new gn.MathNode("mtable",[new gn.MathNode("mtr",[Di(),new gn.MathNode("mtd",[xn(e.body,t)]),Di(),new gn.MathNode("mtd",[xn(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Li={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Pi={"\\textbf":"textbf","\\textmd":"textmd"},Ii={"\\textit":"textit","\\textup":"textup"},Ri=function(e,t){var n=e.font;return n?Li[n]?t.withTextFontFamily(Li[n]):Pi[n]?t.withTextFontWeight(Pi[n]):t.withTextFontShape(Ii[n]):t};Yt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"text",mode:n.mode,body:Xt(i),font:r}},htmlBuilder:function(e,t){var n=Ri(e,t),r=nn(e.body,n,!0);return jt.makeSpan(["mord","text"],r,n)},mathmlBuilder:function(e,t){var n=Ri(e,t);return xn(e.body,n)}}),Yt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder:function(e,t){var n=cn(e.body,t),r=jt.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,o=jt.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return jt.makeSpan(["mord","underline"],[o],t)},mathmlBuilder:function(e,t){var n=new gn.MathNode("mo",[new gn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new gn.MathNode("munder",[kn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),Yt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){var n=e.parser;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder:function(e,t){var n=cn(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return jt.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){return new gn.MathNode("mpadded",[kn(e.body,t)],["vcenter"])}}),Yt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new r("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=Fi(e),r=[],i=t.havingStyle(t.style.text()),o=0;o0)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t},e}(),Zi=qr,Xi=Zi;_r("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),_r("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),_r("\\@firstoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}})),_r("\\@secondoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}})),_r("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),_r("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),_r("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Ji={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};_r("\\char",(function(e){var t,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new r("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(i=Ji[n.text],null==i||i>=t)throw new r("Invalid base-"+t+" digit "+n.text);var o;while(null!=(o=Ji[e.future().text])&&o":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};_r("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in $i?t=$i[n]:("\\not"===n.slice(0,4)||n in Pe.math&&m.contains(["bin","rel"],Pe.math[n].group))&&(t="\\dotsb"),t}));var eo={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};_r("\\dotso",(function(e){var t=e.future().text;return t in eo?"\\ldots\\,":"\\ldots"})),_r("\\dotsc",(function(e){var t=e.future().text;return t in eo&&","!==t?"\\ldots\\,":"\\ldots"})),_r("\\cdots",(function(e){var t=e.future().text;return t in eo?"\\@cdots\\,":"\\@cdots"})),_r("\\dotsb","\\cdots"),_r("\\dotsm","\\cdots"),_r("\\dotsi","\\!\\cdots"),_r("\\dotsx","\\ldots\\,"),_r("\\DOTSI","\\relax"),_r("\\DOTSB","\\relax"),_r("\\DOTSX","\\relax"),_r("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),_r("\\,","\\tmspace+{3mu}{.1667em}"),_r("\\thinspace","\\,"),_r("\\>","\\mskip{4mu}"),_r("\\:","\\tmspace+{4mu}{.2222em}"),_r("\\medspace","\\:"),_r("\\;","\\tmspace+{5mu}{.2777em}"),_r("\\thickspace","\\;"),_r("\\!","\\tmspace-{3mu}{.1667em}"),_r("\\negthinspace","\\!"),_r("\\negmedspace","\\tmspace-{4mu}{.2222em}"),_r("\\negthickspace","\\tmspace-{5mu}{.277em}"),_r("\\enspace","\\kern.5em "),_r("\\enskip","\\hskip.5em\\relax"),_r("\\quad","\\hskip1em\\relax"),_r("\\qquad","\\hskip2em\\relax"),_r("\\tag","\\@ifstar\\tag@literal\\tag@paren"),_r("\\tag@paren","\\tag@literal{({#1})}"),_r("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new r("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),_r("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),_r("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),_r("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),_r("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),_r("\\newline","\\\\\\relax"),_r("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var to=me($["Main-Regular"]["T".charCodeAt(0)][1]-.7*$["Main-Regular"]["A".charCodeAt(0)][1]);_r("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+to+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),_r("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+to+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),_r("\\hspace","\\@ifstar\\@hspacer\\@hspace"),_r("\\@hspace","\\hskip #1\\relax"),_r("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),_r("\\ordinarycolon",":"),_r("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),_r("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),_r("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),_r("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),_r("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),_r("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),_r("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),_r("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),_r("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),_r("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),_r("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),_r("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),_r("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),_r("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),_r("∷","\\dblcolon"),_r("∹","\\eqcolon"),_r("≔","\\coloneqq"),_r("≕","\\eqqcolon"),_r("⩴","\\Coloneqq"),_r("\\ratio","\\vcentcolon"),_r("\\coloncolon","\\dblcolon"),_r("\\colonequals","\\coloneqq"),_r("\\coloncolonequals","\\Coloneqq"),_r("\\equalscolon","\\eqqcolon"),_r("\\equalscoloncolon","\\Eqqcolon"),_r("\\colonminus","\\coloneq"),_r("\\coloncolonminus","\\Coloneq"),_r("\\minuscolon","\\eqcolon"),_r("\\minuscoloncolon","\\Eqcolon"),_r("\\coloncolonapprox","\\Colonapprox"),_r("\\coloncolonsim","\\Colonsim"),_r("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),_r("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),_r("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),_r("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),_r("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),_r("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),_r("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),_r("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),_r("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),_r("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),_r("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),_r("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),_r("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),_r("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),_r("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),_r("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),_r("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),_r("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),_r("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),_r("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),_r("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),_r("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),_r("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),_r("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),_r("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),_r("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),_r("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),_r("\\imath","\\html@mathml{\\@imath}{ı}"),_r("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),_r("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),_r("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),_r("⟦","\\llbracket"),_r("⟧","\\rrbracket"),_r("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),_r("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),_r("⦃","\\lBrace"),_r("⦄","\\rBrace"),_r("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),_r("⦵","\\minuso"),_r("\\darr","\\downarrow"),_r("\\dArr","\\Downarrow"),_r("\\Darr","\\Downarrow"),_r("\\lang","\\langle"),_r("\\rang","\\rangle"),_r("\\uarr","\\uparrow"),_r("\\uArr","\\Uparrow"),_r("\\Uarr","\\Uparrow"),_r("\\N","\\mathbb{N}"),_r("\\R","\\mathbb{R}"),_r("\\Z","\\mathbb{Z}"),_r("\\alef","\\aleph"),_r("\\alefsym","\\aleph"),_r("\\Alpha","\\mathrm{A}"),_r("\\Beta","\\mathrm{B}"),_r("\\bull","\\bullet"),_r("\\Chi","\\mathrm{X}"),_r("\\clubs","\\clubsuit"),_r("\\cnums","\\mathbb{C}"),_r("\\Complex","\\mathbb{C}"),_r("\\Dagger","\\ddagger"),_r("\\diamonds","\\diamondsuit"),_r("\\empty","\\emptyset"),_r("\\Epsilon","\\mathrm{E}"),_r("\\Eta","\\mathrm{H}"),_r("\\exist","\\exists"),_r("\\harr","\\leftrightarrow"),_r("\\hArr","\\Leftrightarrow"),_r("\\Harr","\\Leftrightarrow"),_r("\\hearts","\\heartsuit"),_r("\\image","\\Im"),_r("\\infin","\\infty"),_r("\\Iota","\\mathrm{I}"),_r("\\isin","\\in"),_r("\\Kappa","\\mathrm{K}"),_r("\\larr","\\leftarrow"),_r("\\lArr","\\Leftarrow"),_r("\\Larr","\\Leftarrow"),_r("\\lrarr","\\leftrightarrow"),_r("\\lrArr","\\Leftrightarrow"),_r("\\Lrarr","\\Leftrightarrow"),_r("\\Mu","\\mathrm{M}"),_r("\\natnums","\\mathbb{N}"),_r("\\Nu","\\mathrm{N}"),_r("\\Omicron","\\mathrm{O}"),_r("\\plusmn","\\pm"),_r("\\rarr","\\rightarrow"),_r("\\rArr","\\Rightarrow"),_r("\\Rarr","\\Rightarrow"),_r("\\real","\\Re"),_r("\\reals","\\mathbb{R}"),_r("\\Reals","\\mathbb{R}"),_r("\\Rho","\\mathrm{P}"),_r("\\sdot","\\cdot"),_r("\\sect","\\S"),_r("\\spades","\\spadesuit"),_r("\\sub","\\subset"),_r("\\sube","\\subseteq"),_r("\\supe","\\supseteq"),_r("\\Tau","\\mathrm{T}"),_r("\\thetasym","\\vartheta"),_r("\\weierp","\\wp"),_r("\\Zeta","\\mathrm{Z}"),_r("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),_r("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),_r("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),_r("\\bra","\\mathinner{\\langle{#1}|}"),_r("\\ket","\\mathinner{|{#1}\\rangle}"),_r("\\braket","\\mathinner{\\langle{#1}\\rangle}"),_r("\\Bra","\\left\\langle#1\\right|"),_r("\\Ket","\\left|#1\\right\\rangle");var no=function(e){return function(t){var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=function(t){return function(n){e&&(n.macros.set("|",a),i.length&&n.macros.set("\\|",s));var o=t;if(!t&&i.length){var l=n.future();"|"===l.text&&(n.popToken(),o=!0)}return{tokens:o?i:r,numArgs:0}}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([].concat(o,c,n));return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}}};_r("\\bra@ket",no(!1)),_r("\\bra@set",no(!0)),_r("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),_r("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),_r("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),_r("\\angln","{\\angl n}"),_r("\\blue","\\textcolor{##6495ed}{#1}"),_r("\\orange","\\textcolor{##ffa500}{#1}"),_r("\\pink","\\textcolor{##ff00af}{#1}"),_r("\\red","\\textcolor{##df0030}{#1}"),_r("\\green","\\textcolor{##28ae7b}{#1}"),_r("\\gray","\\textcolor{gray}{#1}"),_r("\\purple","\\textcolor{##9d38bd}{#1}"),_r("\\blueA","\\textcolor{##ccfaff}{#1}"),_r("\\blueB","\\textcolor{##80f6ff}{#1}"),_r("\\blueC","\\textcolor{##63d9ea}{#1}"),_r("\\blueD","\\textcolor{##11accd}{#1}"),_r("\\blueE","\\textcolor{##0c7f99}{#1}"),_r("\\tealA","\\textcolor{##94fff5}{#1}"),_r("\\tealB","\\textcolor{##26edd5}{#1}"),_r("\\tealC","\\textcolor{##01d1c1}{#1}"),_r("\\tealD","\\textcolor{##01a995}{#1}"),_r("\\tealE","\\textcolor{##208170}{#1}"),_r("\\greenA","\\textcolor{##b6ffb0}{#1}"),_r("\\greenB","\\textcolor{##8af281}{#1}"),_r("\\greenC","\\textcolor{##74cf70}{#1}"),_r("\\greenD","\\textcolor{##1fab54}{#1}"),_r("\\greenE","\\textcolor{##0d923f}{#1}"),_r("\\goldA","\\textcolor{##ffd0a9}{#1}"),_r("\\goldB","\\textcolor{##ffbb71}{#1}"),_r("\\goldC","\\textcolor{##ff9c39}{#1}"),_r("\\goldD","\\textcolor{##e07d10}{#1}"),_r("\\goldE","\\textcolor{##a75a05}{#1}"),_r("\\redA","\\textcolor{##fca9a9}{#1}"),_r("\\redB","\\textcolor{##ff8482}{#1}"),_r("\\redC","\\textcolor{##f9685d}{#1}"),_r("\\redD","\\textcolor{##e84d39}{#1}"),_r("\\redE","\\textcolor{##bc2612}{#1}"),_r("\\maroonA","\\textcolor{##ffbde0}{#1}"),_r("\\maroonB","\\textcolor{##ff92c6}{#1}"),_r("\\maroonC","\\textcolor{##ed5fa6}{#1}"),_r("\\maroonD","\\textcolor{##ca337c}{#1}"),_r("\\maroonE","\\textcolor{##9e034e}{#1}"),_r("\\purpleA","\\textcolor{##ddd7ff}{#1}"),_r("\\purpleB","\\textcolor{##c6b9fc}{#1}"),_r("\\purpleC","\\textcolor{##aa87ff}{#1}"),_r("\\purpleD","\\textcolor{##7854ab}{#1}"),_r("\\purpleE","\\textcolor{##543b78}{#1}"),_r("\\mintA","\\textcolor{##f5f9e8}{#1}"),_r("\\mintB","\\textcolor{##edf2df}{#1}"),_r("\\mintC","\\textcolor{##e0e5cc}{#1}"),_r("\\grayA","\\textcolor{##f6f7f7}{#1}"),_r("\\grayB","\\textcolor{##f0f1f2}{#1}"),_r("\\grayC","\\textcolor{##e3e5e6}{#1}"),_r("\\grayD","\\textcolor{##d6d8da}{#1}"),_r("\\grayE","\\textcolor{##babec2}{#1}"),_r("\\grayF","\\textcolor{##888d93}{#1}"),_r("\\grayG","\\textcolor{##626569}{#1}"),_r("\\grayH","\\textcolor{##3b3e40}{#1}"),_r("\\grayI","\\textcolor{##21242c}{#1}"),_r("\\kaBlue","\\textcolor{##314453}{#1}"),_r("\\kaGreen","\\textcolor{##71B307}{#1}");var ro={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},io=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Ki(Xi,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Yi(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var i=this.consumeArg(["]"]);r=i.tokens,n=i.end}else{var o=this.consumeArg();r=o.tokens,t=o.start,n=o.end}return this.pushToken(new Gr("EOF",n.loc)),this.pushTokens(r),t.range(n,"")},t.consumeSpaces=function(){for(;;){var e=this.future();if(" "!==e.text)break;this.stack.pop()}},t.consumeArg=function(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var i,o=this.future(),a=0,s=0;do{if(i=this.popToken(),t.push(i),"{"===i.text)++a;else if("}"===i.text){if(--a,-1===a)throw new r("Extra }",i)}else if("EOF"===i.text)throw new r("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",i);if(e&&n)if((0===a||1===a&&"{"===e[s])&&i.text===e[s]){if(++s,s===e.length){t.splice(-s,s);break}}else s=0}while(0!==a||n);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:i}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new r("The length of delimiters doesn't match the number of args!");for(var n=t[0],i=0;ithis.settings.maxExpand)throw new r("Too many expansions: infinite loop or need to increase maxExpand setting");var o=i.tokens,a=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){o=o.slice();for(var s=o.length-1;s>=0;--s){var l=o[s];if("#"===l.text){if(0===s)throw new r("Incomplete placeholder at end of macro body",l);if(l=o[--s],"#"===l.text)o.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new r("Not a valid argument number",l);var c;(c=o).splice.apply(c,[s,2].concat(a[+l.text-1]))}}}}return this.pushTokens(o),o.length},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Gr(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;this.pushTokens(e);while(this.stack.length>n)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"===typeof t?t(this):t;if("string"===typeof r){var i=0;if(-1!==r.indexOf("#")){var o=r.replace(/##/g,"");while(-1!==o.indexOf("#"+(i+1)))++i}var a=new Yi(r,this.settings),s=[],l=a.lex();while("EOF"!==l.text)s.push(l),l=a.lex();s.reverse();var c={tokens:s,numArgs:i};return c}return r},t.isDefined=function(e){return this.macros.has(e)||ji.hasOwnProperty(e)||Pe.math.hasOwnProperty(e)||Pe.text.hasOwnProperty(e)||ro.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:ji.hasOwnProperty(e)&&!ji[e].primitive},e}(),oo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ao=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),so={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},lo={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},co=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new io(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new r("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.subparse=function(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Gr("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n},t.parseExpression=function(t,n){var r=[];while(1){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==e.endOfExpression.indexOf(i.text))break;if(n&&i.text===n)break;if(t&&ji[i.text]&&ji[i.text].infix)break;var o=this.parseAtom(n);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=Pe[this.mode][t].group,c=Wr.range(e);if(Ne.hasOwnProperty(l)){var u=l;s={type:"atom",mode:this.mode,family:u,loc:c,text:t}}else s={type:l,mode:this.mode,loc:c,text:t};o=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(B(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:Wr.range(e),text:t}}if(this.consume(),a)for(var h=0;h0&&"number"!==typeof e[0]))}function f(e,t,n){var o,f;if(typeof e!==typeof t)return!1;if(h(e)||h(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var p=a(e),m=a(t);if(p!==m)return!1;if(p||m)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var g=d(e),v=d(t);if(g!==v)return!1;if(g||v){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(b[o]!=y[o])return!1;for(o=b.length-1;o>=0;o--)if(f=b[o],!u(e[f],t[f],n))return!1;return!0}e.exports=u},5843:function(e,t,n){e.exports=n.p+"img/romanticPurple.jpg"},5865:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p5}));var r=n("6f27"),i=n("703f"),o=n("b923"),a=n("6ffb"),s=n("e3da"),l=n("442c"),c=n("72a8"),u=n("f201"),h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},h(e,t)};function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&rpe}function ge(e,t){var n="https://www.google-analytics.com/collect",r=location.hostname,i="event",o="use",a="TOAST UI "+e+" for "+r+": Statistics",s=window.localStorage.getItem(a);(de(window.tui)||!1!==window.tui.usageStatistics)&&(s&&!me(s)||(window.localStorage.setItem(a,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||fe(n,{v:1,t:i,tid:t,cid:r,dp:r,dh:e,el:e,ec:o})}),1e3)))}var ve=ge;/Mac/.test(navigator.platform);var be=/[\u0020]+/g,ye=/[>(){}[\]+-.!#|]/g,we=/<([a-zA-Z_][a-zA-Z0-9\-._]*)(\s|[^\\>])*\/?>|<(\/)([a-zA-Z_][a-zA-Z0-9\-._]*)\s*\/?>||<([a-zA-Z_][a-zA-Z0-9\-.:/]*)>/g,xe=/\\[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\\]/g,ke=/[*_~`]/g,Ce=/!\[.*\]\(.*\)/g,Ae=/[[\]]/g,Ee=/(?:^|[^\\])\\(?!\\)/g,Te='[&<>"]',Se=new RegExp(Te,"g");function Me(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}}function Oe(e){return Se.test(e)?e.replace(Se,Me):e}function Ne(){ve("editor","UA-129966929-1")}function De(e,t){return-1!==e.indexOf(t)}var Le=["rel","target","hreflang","type"],Pe={codeblock:/(^ {4}[^\n]+\n*)+/,thematicBreak:/^ *((\* *){3,}|(- *){3,} *|(_ *){3,}) */,atxHeading:/^(#{1,6}) +[\s\S]+/,seTextheading:/^([^\n]+)\n *(=|-){2,} */,blockquote:/^( *>[^\n]+.*)+/,list:/^ *(\*+|-+|\d+\.) [\s\S]+/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? */,link:/!?\[.*\]\(.*\)/,reflink:/!?\[.*\]\s*\[([^\]]*)\]/,verticalBar:/\u007C/,fencedCodeblock:/^((`|~){3,})/};function Ie(e){if(!e)return null;var t={};return Le.forEach((function(n){B(e[n])||(t[n]=e[n])})),t}function Re(e,t){for(var n="",r=0;re[0]&&n=t&&e<=n}function We(e){return"object"===typeof e&&null!==e}function Ge(e,t){var n=f({},e);return e&&t&&Object.keys(t).forEach((function(e){We(n[e])?Array.isArray(t[e])?n[e]=Ve(t[e]):n.hasOwnProperty(e)?n[e]=Ge(n[e],t[e]):n[e]=Ye(t[e]):n[e]=t[e]})),n}function Ve(e){return e.map((function(e){return We(e)?Array.isArray(e)?Ve(e):Ye(e):e}))}function Ye(e){var t=Object.keys(e);return t.length?t.reduce((function(t,n){return We(e[n])?t[n]=Array.isArray(e[n])?Ve(e[n]):Ye(e[n]):t[n]=e[n],t}),{}):e}function Ke(e,t){return void 0===t&&(t={}),Object.keys(t).forEach((function(n){e.hasOwnProperty(n)&&"object"===typeof e[n]?Array.isArray(t[n])?e[n]=t[n]:Ke(e[n],t[n]):e[n]=t[n]})),e}function Ze(e,t){return e>t?[t,e]:[e,t]}function Xe(e){var t=/^\s(\S*)/g;return t.test(e)}function Je(e){var t=/(\S*)\s$/g;return t.test(e)}var Qe=E;function $e(e){var t;try{t=Array.prototype.slice.call(e)}catch(n){t=[],Qe(e,(function(e){t.push(e)}))}return t}var et=$e;function tt(e,t){var n=e.nodes.paragraph;return t?n.create(null,x(t)?e.text(t):t):n.createAndFill()}function nt(e,t,n){return e.text(t,n)}function rt(e,t,n){void 0===n&&(n=t);var r=e.doc.content.size,i=r>0?r-1:1;return a["TextSelection"].create(e.doc,Math.min(t,i),Math.min(n,i))}function it(e,t,n){var r=t.pos;return e.replaceWith(r,r,tt(n)),e.setSelection(rt(e,r+1))}function ot(e){for(var t=e.state,n=e.from,i=e.startIndex,o=e.endIndex,a=e.createText,s=t.tr,l=t.doc,c=t.schema,u=i;u<=o;u+=1){var h=l.child(u),d=h.nodeSize,f=h.textContent,p=h.content,m=a(f),g=m?nt(c,m):r["Fragment"].empty,v=s.mapping.map(n),b=v+p.size;s.replaceWith(v,b,g),n+=d}return s}function at(e,t,n,r){var i=n.length;e.split(t).delete(t-i,t).insert(e.mapping.map(t),r).setSelection(rt(e,e.mapping.map(t)-i))}function st(e){return e.sourcepos[0][0]}function lt(e){return e.sourcepos[1][0]}function ct(e){return e.sourcepos[0][1]}function ut(e){return e.sourcepos[1][1]}function ht(e){var t=e.type;return"htmlBlock"===t||"htmlInline"===t}function dt(e){var t=e.type;return"strike"===t||"strong"===t||"emph"===t||"code"===t||"link"===t||"image"===t}function ft(e){return e&&"codeBlock"===e.type}function pt(e){return e&&("item"===e.type||"list"===e.type)}function mt(e){return pt(e)&&"ordered"===e.listData.type}function gt(e){return pt(e)&&"ordered"!==e.listData.type}function vt(e){return e&&("tableCell"===e.type||"tableDelimCell"===e.type)}function bt(e){switch(e.type){case"code":case"text":case"emph":case"strong":case"strike":case"link":case"image":case"htmlInline":case"linebreak":case"softbreak":case"customInline":return!0;default:return!1}}function yt(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type){if(t(e))return e;e=e.parent}return null}function wt(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type)t(e),e=e.parent}function xt(e,t){return[e[0],e[1]+t]}function kt(e,t){return[e[0],t]}function Ct(e){var t=e.firstChild.literal;switch(e.type){case"emph":return"*"+t+"*";case"strong":return"**"+t+"**";case"strike":return"~~"+t+"~~";case"code":return"`"+t+"`";case"link":case"image":var n=e,r=n.destination,i=n.title,o="link"===e.type?"":"!";return o+"["+t+"]("+r+(i?' "'+i+'"':"")+")";default:return null}}function At(e){switch(e.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":case"customInline":return!0;default:return!1}}function Et(e){var t=[],n=e.walker(),r=null;while(r=n.next()){var i=r.node;"text"===i.type&&t.push(i.literal)}return t.join("")}var Tt=[],St={},Mt=/\$\$widget\d+\s/;function Ot(e){var t=e.search(Mt);if(-1!==t){var n=e.substring(t),r=n.replace(Mt,"").replace("$$","");e=e.substring(0,t),e+=Ot(r)}return e}function Nt(e,t){return"$$"+e+" "+t+"$$"}function Dt(e,t){var n=St[e],r=n.rule,i=n.toDOM,o=Ot(t).match(r);return o&&(t=o[0]),i(t)}function Lt(){return Tt}function Pt(e){Tt=e,Tt.forEach((function(e,t){St["widget"+t]=e}))}function It(e,t,n,r){return e.concat(Rt(t,n,r))}function Rt(e,t,n){void 0===n&&(n=0);var r=[],i=(Tt[n]||{}).rule,o=n+1;if(e=Ot(e),i&&i.test(e)){var a=void 0;while(-1!==(a=e.search(i))){var s=e.substring(0,a);s&&(r=It(r,s,t,o)),e=e.substring(a);var l=e.match(i)[0],c="widget"+n;r.push(t.nodes.widget.create({info:c},t.text(Nt(c,l)))),e=e.substring(l.length)}e&&(r=It(r,e,t,o))}else e&&(r=n-1)}var qt=Ht,_t=z,Wt=et,Gt=Element.prototype,Vt=Gt.matches||Gt.webkitMatchesSelector||Gt.mozMatchesSelector||Gt.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return _t(this,Wt(t.querySelectorAll(e)))>-1};function Yt(e,t){return Vt.call(e,t)}var Kt=Yt,Zt="[A-Za-z][A-Za-z0-9-]*",Xt="[a-zA-Z_:][a-zA-Z0-9:._-]*",Jt="[^\"'=<>`\\x00-\\x20]+",Qt="'[^']*'",$t='"[^"]*"',en="(?:"+Jt+"|"+Qt+"|"+$t+")",tn="(?:\\s*=\\s*"+en+")",nn="(?:\\s+"+Xt+tn+"?)",rn="<("+Zt+")("+nn+")*\\s*/?>",on="]",an="(?:"+rn+"|"+on+")",sn=new RegExp("^"+an,"i"),ln=//i,cn=/|/,un="

",hn="a";function dn(e,t,n){var r=parseInt(e.left,10),i=parseInt(e.top,10),o=parseInt(e.width,10)+parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10),a=parseInt(e.height,10)+parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10);return t>=r&&t<=r+o&&n>=i&&n<=i+a}var fn="toastui-editor-";function pn(){for(var e=[],t=0;t<\/p>/gi,"

"),n=new RegExp(an,"ig"),r=t.match(n);return null===r||void 0===r||r.forEach((function(e,n){if(ln.test(e)){var i=un;if(n){var o=r[n-1],a=o.match(rn);if(a&&!/br/i.test(a[1])){var s=a[1];i="<"+s+">"}}t=t.replace(ln,i)}})),t}function Nn(e){var t=//g,n=/ class="ProseMirror-trailingBreak"/g,r=e;return r=r.replace(t,""),r=r.replace(n,""),r}var Dn=new a["PluginKey"]("widget"),Ln=5,Pn=function(){function e(e,t){var n=this;this.popup=null,this.removeWidget=function(){n.popup&&(n.rootEl.removeChild(n.popup),n.popup=null)},this.rootEl=e.dom.parentElement,this.eventEmitter=t,this.eventEmitter.listen("blur",this.removeWidget),this.eventEmitter.listen("loadUI",(function(){n.rootEl=Tn(e.dom.parentElement,"."+pn("defaultUI"))})),this.eventEmitter.listen("removePopupWidget",this.removeWidget)}return e.prototype.update=function(e){var t=Dn.getState(e.state);if(this.removeWidget(),t){var n=t.node,r=t.style,i=e.coordsAtPos(t.pos),o=i.top,a=i.left,s=i.bottom,l=s-o,c=this.rootEl.getBoundingClientRect(),u=o-c.top;I(n,{opacity:"0"}),this.rootEl.appendChild(n),I(n,{position:"absolute",left:a-c.left+Ln+"px",top:("bottom"===r?u+l-Ln:u-l)+"px",opacity:"1"}),this.popup=n,e.focus()}},e.prototype.destroy=function(){this.eventEmitter.removeEventHandler("blur",this.removeWidget)},e}();function In(e){return new a["Plugin"]({key:Dn,state:{init:function(){return null},apply:function(e){return e.getMeta("widget")}},view:function(t){return new Pn(t,e)}})}function Rn(e){e.listen("addImageBlobHook",(function(e,t){var n=new FileReader;n.onload=function(e){var n=e.target;return t(n.result)},n.readAsDataURL(e)}))}function Fn(e,t,n){var r=function(n,r){e.emit("command","addImage",{imageUrl:n,altText:r||t.name||"image"})};e.emit("addImageBlobHook",t,r,n)}function zn(e){var t=et(e).filter((function(e){var t=e.type;return-1!==t.indexOf("image")}));if(1===t.length){var n=t[0];if(n)return n.getAsFile()}return null}function jn(e){var t=e.eventEmitter;return new a["Plugin"]({props:{handleDOMEvents:{drop:function(e,n){var r,i=null===(r=n.dataTransfer)||void 0===r?void 0:r.files;return i&&E(i,(function(e){return-1===e.type.indexOf("image")||(n.preventDefault(),n.stopPropagation(),Fn(t,e,n.type),!1)})),!0}}}})}var Bn=function(){function e(){}return Object.defineProperty(e.prototype,"type",{get:function(){return"node"},enumerable:!1,configurable:!0}),e.prototype.setContext=function(e){this.context=e},e}();function Un(e){var t=document.createElement("span"),n=Dt(e.attrs.info,e.textContent);return t.className="tui-widget",t.appendChild(n),{dom:t}}function Hn(e){return"widget"===e.type.name}var qn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"widget"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{info:{default:null}},group:"inline",inline:!0,content:"text*",selectable:!1,atom:!0,toDOM:function(){return["span",{class:"tui-widget"},0]},parseDOM:[{tag:"span.tui-widget",getAttrs:function(e){var t=e.textContent,n=t.match(/\$\$(widget\d+)/),r=n[1];return{info:r}}}]}},enumerable:!1,configurable:!0}),t}(Bn),_n=function(){function e(e){this.timer=null,this.el=document.createElement("div"),this.el.className="toastui-editor",this.eventEmitter=e,this.placeholder={text:""}}return e.prototype.createState=function(){return a["EditorState"].create({schema:this.schema,plugins:this.createPlugins()})},e.prototype.initEvent=function(){var e=this,t=e.eventEmitter,n=e.view,r=e.editorType;n.dom.addEventListener("focus",(function(){return t.emit("focus",r)})),n.dom.addEventListener("blur",(function(){return t.emit("blur",r)}))},e.prototype.emitChangeEvent=function(e){this.eventEmitter.emit("caretChange",this.editorType),e.docChanged&&this.eventEmitter.emit("change",this.editorType)},Object.defineProperty(e.prototype,"defaultPlugins",{get:function(){var e=this.createInputRules(),t=p(p([],this.keymaps),[Object(s["keymap"])(f({"Shift-Enter":l["a"].Enter},l["a"])),Object(u["a"])(),jt(this.placeholder),In(this.eventEmitter),jn(this.context)]);return e?t.concat(e):t},enumerable:!1,configurable:!0}),e.prototype.createInputRules=function(){var e=Lt(),t=e.map((function(e){var t=e.rule;return new c["InputRule"](t,(function(e,n,r,i){var o=e.schema,a=e.tr,s=e.doc,l=n.input.match(new RegExp(t,"g")),c=s.resolve(r),u=c.parent,h=0;if(Hn(u)&&(u=c.node(c.depth-1)),u.forEach((function(e){return Hn(e)&&(h+=1)})),l.length>h){var d=qe(l),f=Rt(d,o);return a.replaceWith(i-d.length+1,i,f)}return null}))}));return t.length?Object(c["inputRules"])({rules:t}):null},e.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.createSchema=function(){return new r["Schema"]({nodes:this.specs.nodes,marks:this.specs.marks})},e.prototype.createKeymaps=function(e){var t=zt(),n=t.undo,r=t.redo,i=this.specs.keymaps(e),o={"Mod-z":n(),"Shift-Mod-z":r()};return e?i.concat(Object(s["keymap"])(o)):i},e.prototype.createCommands=function(){return this.specs.commands(this.view)},e.prototype.createPluginProps=function(){var e=this;return this.extraPlugins.map((function(t){return t(e.eventEmitter)}))},e.prototype.focus=function(){var e=this;this.clearTimer(),this.timer=setTimeout((function(){e.view.focus(),e.view.dispatch(e.view.state.tr.scrollIntoView())}))},e.prototype.blur=function(){this.view.dom.blur()},e.prototype.destroy=function(){var e=this;this.clearTimer(),this.view.destroy(),Object.keys(this).forEach((function(t){delete e[t]}))},e.prototype.moveCursorToStart=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(rt(t,1)).scrollIntoView()),e&&this.focus()},e.prototype.moveCursorToEnd=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(rt(t,t.doc.content.size-1)).scrollIntoView()),e&&this.focus()},e.prototype.setScrollTop=function(e){this.view.dom.scrollTop=e},e.prototype.getScrollTop=function(){return this.view.dom.scrollTop},e.prototype.setPlaceholder=function(e){this.placeholder.text=e,this.view.dispatch(this.view.state.tr.scrollIntoView())},e.prototype.setHeight=function(e){I(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){I(this.el,{minHeight:e+"px"})},e.prototype.getElement=function(){return this.el},e}();function Wn(e){return e instanceof Function}var Gn=Wn,Vn=["Enter","Shift-Enter","Mod-Enter","Tab","Shift-Tab","Delete","Backspace","Mod-Delete","Mod-Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Mod-d","Mod-D","Alt-ArrowUp","Alt-ArrowDown"];function Yn(e,t,n){return e.focus(),t(n)(e.state,e.dispatch,e)}var Kn=function(){function e(e){this.specs=e}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this.specs.filter((function(e){return"node"===e.type})).reduce((function(e,t){var n,r=t.name,i=t.schema;return f(f({},e),(n={},n[r]=i,n))}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"marks",{get:function(){return this.specs.filter((function(e){return"mark"===e.type})).reduce((function(e,t){var n,r=t.name,i=t.schema;return f(f({},e),(n={},n[r]=i,n))}),{})},enumerable:!1,configurable:!0}),e.prototype.commands=function(e,t){var n=this.specs.filter((function(e){var t=e.commands;return t})).reduce((function(t,n){var r={},i=n.commands();return Gn(i)?r[n.name]=function(t){return Yn(e,i,t)}:Object.keys(i).forEach((function(t){r[t]=function(n){return Yn(e,i[t],n)}})),f(f({},t),r)}),{}),r=zt();return Object.keys(r).forEach((function(t){n[t]=function(n){return Yn(e,r[t],n)}})),t&&Object.keys(t).forEach((function(r){n[r]=function(n){return Yn(e,t[r],n)}})),n},e.prototype.keymaps=function(e){var t=this.specs.filter((function(e){return e.keymaps})).map((function(e){return e.keymaps()}));return t.map((function(t){return e||Object.keys(t).forEach((function(e){De(Vn,e)||delete t[e]})),Object(s["keymap"])(t)}))},e.prototype.setContext=function(e){this.specs.forEach((function(t){t.setContext(e)}))},e}();function Zn(e){var t=e.from,n=e.to;return e instanceof a["AllSelection"]?[t+1,n-1]:[t,n]}function Xn(e){return e.index(0)+1}function Jn(e,t,n){void 0===n&&(n=1);var r=0;return e.forEach((function(e,i){Hn(e)&&i+2 ?/,ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:mn("block-quote")},0]}}},enumerable:!1,configurable:!0}),t.prototype.createBlockQuoteText=function(e,t){return t?e.replace(ei,"").trim():"> "+e.trim()},t.prototype.extendBlockQuote=function(){var e=this;return function(t,n){var r=t.selection,i=t.doc,o=t.tr,a=t.schema,s=tr(r),l=s.endFromOffset,c=s.endToOffset,u=s.endIndex,h=s.to,d=$r(i,u),f=ei.test(d);if(f&&h>l&&r.empty){var p=!d.replace(ei,"").trim();if(p)o.deleteRange(l,c).split(o.mapping.map(c));else{var m=d.slice(h-l).trim(),g=nt(a,e.createBlockQuoteText(m));at(o,c,m,g)}return n(o),!0}return!1}},t.prototype.commands=function(){var e=this;return function(){return function(t,n){var r=t.selection,i=t.doc,o=tr(r),a=o.startFromOffset,s=o.endToOffset,l=o.startIndex,c=o.endIndex,u=ei.test($r(i,l)),h=ot({state:t,startIndex:l,endIndex:c,from:a,createText:function(t){return e.createBlockQuoteText(t,u)}});return n(h.setSelection(rt(h,h.mapping.map(s)))),!0}}},t.prototype.keymaps=function(){var e=this.commands()();return{"alt-q":e,"alt-Q":e,Enter:this.extendBlockQuote()}},t}(Jr),ni=/(^\s*)([-*+] |[\d]+\. )/,ri=/(^\s*)([\d])+\.( \[[ xX]])? /,ii=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/,oi=/(^\s*)([-*+]|[\d]+\.)( \[[ xX]])? /,ai=/^(\s*)([-*+]+(\s(?:\[(?:x|\s)\]\s)?))(.*)/,si=/(^\s*)([-*+] |[\d]+\. )(\[[ xX]] )/,li=/(^\s*)([-*+])( \[[ xX]]) /;function ci(e){return ri.test(e)?"ordered":"bullet"}function ui(e){var t=0;while(e&&"document"!==e.type)"list"===e.type&&(t+=1),e=e.parent;return t}function hi(e,t,n,r){var i=e.getLineTexts(),o=i.length,a=[],s=t;while(r?s1){s=r?s+1:s-1;var l=e.findFirstNodeAtLine(s),c=ui(l);if(c===n)a.push({line:s,depth:n,mdNode:l});else if(c0;c-=1){var u=t.findFirstNodeAtLine(c),h=Qr(n,c),d=h&&!!yt(u,(function(e){return pt(e)})),f=ii.exec(Qr(n,c));if(!f&&!d)break;if(f||!d){var p=f,m=p[1],g=p[3];if(!m){a=Number(g),s=c;break}}else l+=1}var v=a+r-s-l,b=[{text:v+". "+o,line:r}];return{changedResults:b}},task:function(e){var t=e.doc,n=e.line,r=Qr(t,n),i=[{text:"* [ ] "+r,line:n}];return{changedResults:i}}},yi={bullet:function(e){var t=e.line,n=e.doc,r=Qr(n,t),i=ai.exec(r),o=i[1],a=i[2];return{listSyntax:""+o+a}},ordered:function(e){var t=e.toastMark,n=e.line,r=e.mdNode,i=e.doc,o=ui(r),a=Qr(i,n),s=ii.exec(a),l=s[1],c=s[3],u=s[4],h=Number(c)+1,d=""+l+h+u,p=hi(t,n,o,!0),m=p.filter((function(e){var t=ii.exec(Qr(i,e.line));return t&&t[1].length===l.length&&!!yt(e.mdNode,(function(e){return mt(e)}))}));return f({listSyntax:d},mi(i,m,"ordered",h))}};function wi(e,t,n,r,i){var o=[],a=Qr(e,n),s=ii.exec(a);while(s){var l=s[1],c=s[4],u=s[5],h=l.length;if(h===i)o.push(nt(t,""+l+r+c+u)),r+=1,n+=1;else if(h>i){var d=wi(e,t,n,1,h);n=d.line,o=o.concat(d.nodes)}if(he.childCount)break;a=Qr(e,n),s=ii.exec(a)}return{nodes:o,line:n}}var xi=/(^\s{1,4})(.*)/;function ki(e,t,n){return e0){var u=r.child(c-1),h=u.nodeSize,d=u.textContent;return n.delete(s-h,s).split(n.mapping.map(l)).insert(n.mapping.map(l),nt(o,d)),t(n),!0}return!1}},t.prototype.commands=function(){return{indent:this.indent(),outdent:this.outdent()}},t.prototype.keymaps=function(){return{Tab:this.indent(!0)(),"Shift-Tab":this.outdent(!0)(),"Mod-d":this.deleteLines(),"Mod-D":this.deleteLines(),"Alt-ArrowUp":this.moveUp(),"Alt-ArrowDown":this.moveDown()}},t}(Bn),Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),t}(Bn),Si=/^#{1,6}\s/,Mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{level:{default:1},seText:{default:!1}},toDOM:function(e){var t=e.attrs,n=t.level,r=t.seText,i="heading|heading"+n;return r&&(i+="|delimiter|setext"),["span",{class:mn.apply(void 0,i.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.createHeadingText=function(e,t,n){var r=t.replace(n,"").trim(),i="";while(e>0)i+="#",e-=1;return i+" "+r},t.prototype.commands=function(){var e=this;return function(t){return function(n,r){var i=t.level,o=tr(n.selection),a=o.startFromOffset,s=o.endToOffset,l=o.startIndex,c=o.endIndex,u=ot({state:n,from:a,startIndex:l,endIndex:c,createText:function(t){var n=t.match(Si),r=n?n[0]:"";return e.createHeadingText(i,t,r)}});return r(u.setSelection(rt(u,u.mapping.map(s)))),!0}}},t}(Jr),Oi="```",Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:mn("code-block")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){var n=e.selection,r=e.schema,i=e.tr,o=tr(n),a=o.startFromOffset,s=o.endToOffset,l=nt(r,Oi);return i.insert(a,l).split(a+Oi.length),i.split(i.mapping.map(s)).insert(i.mapping.map(s),l),t(i.setSelection(rt(i,i.mapping.map(s)-(Oi.length+2)))),!0}}},t.prototype.keepIndentation=function(){var e=this;return function(t,n){var r=t.selection,i=t.tr,o=t.doc,a=t.schema,s=e.context.toastMark,l=tr(r),c=l.startFromOffset,u=l.endToOffset,h=l.endIndex,d=l.from,f=l.to,p=$r(o,h);if(d===f&&p.trim()){var m=p.match(/^\s+/),g=s.findFirstNodeAtLine(h+1);if(ft(g)&&m){var v=m[0],b=p.slice(f-c),y=nt(a,v+b);return at(i,u,b,y),n(i),!0}}return!1}},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-p":e,"Shift-Mod-P":e,Enter:this.keepIndentation()}},t}(Jr),Di=/\||\s/g;function Li(e){return[Ii(e),Ii(e,!0)]}function Pi(e,t){for(var n=[],r=0;r0&&(t+="\n")})),t},t.prototype.setSelection=function(e,t){void 0===t&&(t=e);var n=this.view.state.tr,r=er(n.doc,e,t),i=r[0],o=r[1];this.view.dispatch(n.setSelection(rt(n,i,o)).scrollIntoView())},t.prototype.replaceSelection=function(e,t,n){var i,o=this.view.state,a=o.tr,s=o.schema,l=o.doc,c=e.split(po),u=c.map((function(e){return tt(s,Rt(e,s))})),h=new r["Slice"](r["Fragment"].from(u),1,1);if(this.focus(),t&&n){var d=er(l,t,n),f=d[0],p=d[1];i=a.replaceRange(f,p,h)}else i=a.replaceSelection(h);this.view.dispatch(i.scrollIntoView())},t.prototype.deleteSelection=function(e,t){var n,r=this.view.state,i=r.tr,o=r.doc;if(e&&t){var a=er(o,e,t),s=a[0],l=a[1];n=i.deleteRange(s,l)}else n=i.deleteSelection();this.view.dispatch(n.scrollIntoView())},t.prototype.getSelectedText=function(e,t){var n=this.view.state,r=n.doc,i=n.selection,o=i.from,a=i.to;if(e&&t){var s=er(r,e,t);o=s[0],a=s[1]}return r.textBetween(o,a,"\n")},t.prototype.getSelection=function(){var e=this.view.state.selection,t=e.from,n=e.to;return Qn(this.view.state.tr.doc,t,n)},t.prototype.setMarkdown=function(e,t){void 0===t&&(t=!0);var n=e.split(po),r=this.view.state,i=r.tr,o=r.doc,a=r.schema,s=n.map((function(e){return tt(a,Rt(e,a))}));this.view.dispatch(i.replaceWith(0,o.content.size,s)),t&&this.moveCursorToEnd(!0)},t.prototype.addWidget=function(e,t,n){var r=this.view.state,i=r.tr,o=r.doc,a=r.selection,s=n?er(o,n,n)[0]:a.to;this.view.dispatch(i.setMeta("widget",{pos:s,node:e,style:t}))},t.prototype.replaceWithWidget=function(e,t,n){var r=this.view.state,i=r.tr,o=r.schema,a=r.doc,s=er(a,e,t),l=Rt(n,o);this.view.dispatch(i.replaceWith(s[0],s[1],l))},t.prototype.getRangeInfoOfNode=function(e){var t=this.view.state,n=t.doc,r=t.selection,i=e||Qn(n,r.from)[0],o=this.toastMark.findNodeAtPosition(i);return"text"===o.type&&"paragraph"!==o.parent.type&&(o=o.parent),o.sourcepos[1][1]+=1,{range:o.sourcepos,type:o.type}},t.prototype.getMarkdown=function(){return this.toastMark.getLineTexts().map((function(e){return Ot(e)})).join("\n")},t.prototype.getToastMark=function(){return this.toastMark},t}(_n),go="_feEventKey";function vo(e,t){var n,r=e[go];return r||(r=e[go]={}),n=r[t],n||(n=r[t]=[]),n}var bo=vo,yo=x,wo=N,xo=bo;function ko(e,t,n){yo(t)?wo(t.split(/\s+/g),(function(t){Co(e,t,n)})):wo(t,(function(t,n){Co(e,n,t)}))}function Co(e,t,n){var r,i=xo(e,t);n?(wo(i,(function(i,o){return n!==i.handler||(Ao(e,t,i.wrappedHandler),r=o,!1)})),i.splice(r,1)):(wo(i,(function(n){Ao(e,t,n.wrappedHandler)})),i.splice(0,i.length))}function Ao(e,t,n){"removeEventListener"in e?e.removeEventListener(t,n):"detachEvent"in e&&e.detachEvent("on"+t,n)}var Eo=ko,To=x,So=N,Mo=bo;function Oo(e,t,n,r){To(t)?So(t.split(/\s+/g),(function(t){No(e,t,n,r)})):So(t,(function(t,r){No(e,r,t,n)}))}function No(e,t,n,r){function i(t){n.call(r||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,i):"attachEvent"in e&&e.attachEvent("on"+t,i),Do(e,t,n,i)}function Do(e,t,n,r){var i=Mo(e,t),o=!1;So(i,(function(e){return e.handler!==n||(o=!0,!1)})),o||i.push({handler:n,wrappedHandler:r})}var Lo=Oo,Po=function(e,t){return Po=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Po(e,t)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -23,18 +23,18 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function Io(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Po(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ro=function(){return Ro=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&a<=57343)){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}Uo.defaultChars=";/?:@&=+$,-_.!~*'()#",Uo.componentChars="-_.!~*'()";var Ho=Uo,qo={},Wo={},_o="Á",Go="á",Vo="Ă",Yo="ă",Ko="∾",Zo="∿",Xo="∾̳",Jo="Â",Qo="â",$o="´",ea="А",ta="а",na="Æ",ra="æ",ia="⁡",oa="𝔄",aa="𝔞",sa="À",la="à",ca="ℵ",ua="ℵ",ha="Α",da="α",fa="Ā",pa="ā",ma="⨿",ga="&",va="&",ba="⩕",ya="⩓",wa="∧",xa="⩜",ka="⩘",Ca="⩚",Aa="∠",Ea="⦤",Ta="∠",Sa="⦨",Ma="⦩",Oa="⦪",Na="⦫",Da="⦬",La="⦭",Pa="⦮",Ia="⦯",Ra="∡",Fa="∟",za="⊾",ja="⦝",Ba="∢",Ua="Å",Ha="⍼",qa="Ą",Wa="ą",_a="𝔸",Ga="𝕒",Va="⩯",Ya="≈",Ka="⩰",Za="≊",Xa="≋",Ja="'",Qa="⁡",$a="≈",es="≊",ts="Å",ns="å",rs="𝒜",is="𝒶",os="≔",as="*",ss="≈",ls="≍",cs="Ã",us="ã",hs="Ä",ds="ä",fs="∳",ps="⨑",ms="≌",gs="϶",vs="‵",bs="∽",ys="⋍",ws="∖",xs="⫧",ks="⊽",Cs="⌅",As="⌆",Es="⌅",Ts="⎵",Ss="⎶",Ms="≌",Os="Б",Ns="б",Ds="„",Ls="∵",Ps="∵",Is="∵",Rs="⦰",Fs="϶",zs="ℬ",js="ℬ",Bs="Β",Us="β",Hs="ℶ",qs="≬",Ws="𝔅",_s="𝔟",Gs="⋂",Vs="◯",Ys="⋃",Ks="⨀",Zs="⨁",Xs="⨂",Js="⨆",Qs="★",$s="▽",el="△",tl="⨄",nl="⋁",rl="⋀",il="⤍",ol="⧫",al="▪",sl="▴",ll="▾",cl="◂",ul="▸",hl="␣",dl="▒",fl="░",pl="▓",ml="█",gl="=⃥",vl="≡⃥",bl="⫭",yl="⌐",wl="𝔹",xl="𝕓",kl="⊥",Cl="⊥",Al="⋈",El="⧉",Tl="┐",Sl="╕",Ml="╖",Ol="╗",Nl="┌",Dl="╒",Ll="╓",Pl="╔",Il="─",Rl="═",Fl="┬",zl="╤",jl="╥",Bl="╦",Ul="┴",Hl="╧",ql="╨",Wl="╩",_l="⊟",Gl="⊞",Vl="⊠",Yl="┘",Kl="╛",Zl="╜",Xl="╝",Jl="└",Ql="╘",$l="╙",ec="╚",tc="│",nc="║",rc="┼",ic="╪",oc="╫",ac="╬",sc="┤",lc="╡",cc="╢",uc="╣",hc="├",dc="╞",fc="╟",pc="╠",mc="‵",gc="˘",vc="˘",bc="¦",yc="𝒷",wc="ℬ",xc="⁏",kc="∽",Cc="⋍",Ac="⧅",Ec="\\",Tc="⟈",Sc="•",Mc="•",Oc="≎",Nc="⪮",Dc="≏",Lc="≎",Pc="≏",Ic="Ć",Rc="ć",Fc="⩄",zc="⩉",jc="⩋",Bc="∩",Uc="⋒",Hc="⩇",qc="⩀",Wc="ⅅ",_c="∩︀",Gc="⁁",Vc="ˇ",Yc="ℭ",Kc="⩍",Zc="Č",Xc="č",Jc="Ç",Qc="ç",$c="Ĉ",eu="ĉ",tu="∰",nu="⩌",ru="⩐",iu="Ċ",ou="ċ",au="¸",su="¸",lu="⦲",cu="¢",uu="·",hu="·",du="𝔠",fu="ℭ",pu="Ч",mu="ч",gu="✓",vu="✓",bu="Χ",yu="χ",wu="ˆ",xu="≗",ku="↺",Cu="↻",Au="⊛",Eu="⊚",Tu="⊝",Su="⊙",Mu="®",Ou="Ⓢ",Nu="⊖",Du="⊕",Lu="⊗",Pu="○",Iu="⧃",Ru="≗",Fu="⨐",zu="⫯",ju="⧂",Bu="∲",Uu="”",Hu="’",qu="♣",Wu="♣",_u=":",Gu="∷",Vu="⩴",Yu="≔",Ku="≔",Zu=",",Xu="@",Ju="∁",Qu="∘",$u="∁",eh="ℂ",th="≅",nh="⩭",rh="≡",ih="∮",oh="∯",ah="∮",sh="𝕔",lh="ℂ",ch="∐",uh="∐",hh="©",dh="©",fh="℗",ph="∳",mh="↵",gh="✗",vh="⨯",bh="𝒞",yh="𝒸",wh="⫏",xh="⫑",kh="⫐",Ch="⫒",Ah="⋯",Eh="⤸",Th="⤵",Sh="⋞",Mh="⋟",Oh="↶",Nh="⤽",Dh="⩈",Lh="⩆",Ph="≍",Ih="∪",Rh="⋓",Fh="⩊",zh="⊍",jh="⩅",Bh="∪︀",Uh="↷",Hh="⤼",qh="⋞",Wh="⋟",_h="⋎",Gh="⋏",Vh="¤",Yh="↶",Kh="↷",Zh="⋎",Xh="⋏",Jh="∲",Qh="∱",$h="⌭",ed="†",td="‡",nd="ℸ",rd="↓",id="↡",od="⇓",ad="‐",sd="⫤",ld="⊣",cd="⤏",ud="˝",hd="Ď",dd="ď",fd="Д",pd="д",md="‡",gd="⇊",vd="ⅅ",bd="ⅆ",yd="⤑",wd="⩷",xd="°",kd="∇",Cd="Δ",Ad="δ",Ed="⦱",Td="⥿",Sd="𝔇",Md="𝔡",Od="⥥",Nd="⇃",Dd="⇂",Ld="´",Pd="˙",Id="˝",Rd="`",Fd="˜",zd="⋄",jd="⋄",Bd="⋄",Ud="♦",Hd="♦",qd="¨",Wd="ⅆ",_d="ϝ",Gd="⋲",Vd="÷",Yd="÷",Kd="⋇",Zd="⋇",Xd="Ђ",Jd="ђ",Qd="⌞",$d="⌍",ef="$",tf="𝔻",nf="𝕕",rf="¨",of="˙",af="⃜",sf="≐",lf="≑",cf="≐",uf="∸",hf="∔",df="⊡",ff="⌆",pf="∯",mf="¨",gf="⇓",vf="⇐",bf="⇔",yf="⫤",wf="⟸",xf="⟺",kf="⟹",Cf="⇒",Af="⊨",Ef="⇑",Tf="⇕",Sf="∥",Mf="⤓",Of="↓",Nf="↓",Df="⇓",Lf="⇵",Pf="̑",If="⇊",Rf="⇃",Ff="⇂",zf="⥐",jf="⥞",Bf="⥖",Uf="↽",Hf="⥟",qf="⥗",Wf="⇁",_f="↧",Gf="⊤",Vf="⤐",Yf="⌟",Kf="⌌",Zf="𝒟",Xf="𝒹",Jf="Ѕ",Qf="ѕ",$f="⧶",ep="Đ",tp="đ",np="⋱",rp="▿",ip="▾",op="⇵",ap="⥯",sp="⦦",lp="Џ",cp="џ",up="⟿",hp="É",dp="é",fp="⩮",pp="Ě",mp="ě",gp="Ê",vp="ê",bp="≖",yp="≕",wp="Э",xp="э",kp="⩷",Cp="Ė",Ap="ė",Ep="≑",Tp="ⅇ",Sp="≒",Mp="𝔈",Op="𝔢",Np="⪚",Dp="È",Lp="è",Pp="⪖",Ip="⪘",Rp="⪙",Fp="∈",zp="⏧",jp="ℓ",Bp="⪕",Up="⪗",Hp="Ē",qp="ē",Wp="∅",_p="∅",Gp="◻",Vp="∅",Yp="▫",Kp=" ",Zp=" ",Xp=" ",Jp="Ŋ",Qp="ŋ",$p=" ",em="Ę",tm="ę",nm="𝔼",rm="𝕖",im="⋕",om="⧣",am="⩱",sm="ε",lm="Ε",cm="ε",um="ϵ",hm="≖",dm="≕",fm="≂",pm="⪖",mm="⪕",gm="⩵",vm="=",bm="≂",ym="≟",wm="⇌",xm="≡",km="⩸",Cm="⧥",Am="⥱",Em="≓",Tm="ℯ",Sm="ℰ",Mm="≐",Om="⩳",Nm="≂",Dm="Η",Lm="η",Pm="Ð",Im="ð",Rm="Ë",Fm="ë",zm="€",jm="!",Bm="∃",Um="∃",Hm="ℰ",qm="ⅇ",Wm="ⅇ",_m="≒",Gm="Ф",Vm="ф",Ym="♀",Km="ffi",Zm="ff",Xm="ffl",Jm="𝔉",Qm="𝔣",$m="fi",eg="◼",tg="▪",ng="fj",rg="♭",ig="fl",og="▱",ag="ƒ",sg="𝔽",lg="𝕗",cg="∀",ug="∀",hg="⋔",dg="⫙",fg="ℱ",pg="⨍",mg="½",gg="⅓",vg="¼",bg="⅕",yg="⅙",wg="⅛",xg="⅔",kg="⅖",Cg="¾",Ag="⅗",Eg="⅜",Tg="⅘",Sg="⅚",Mg="⅝",Og="⅞",Ng="⁄",Dg="⌢",Lg="𝒻",Pg="ℱ",Ig="ǵ",Rg="Γ",Fg="γ",zg="Ϝ",jg="ϝ",Bg="⪆",Ug="Ğ",Hg="ğ",qg="Ģ",Wg="Ĝ",_g="ĝ",Gg="Г",Vg="г",Yg="Ġ",Kg="ġ",Zg="≥",Xg="≧",Jg="⪌",Qg="⋛",$g="≥",ev="≧",tv="⩾",nv="⪩",rv="⩾",iv="⪀",ov="⪂",av="⪄",sv="⋛︀",lv="⪔",cv="𝔊",uv="𝔤",hv="≫",dv="⋙",fv="⋙",pv="ℷ",mv="Ѓ",gv="ѓ",vv="⪥",bv="≷",yv="⪒",wv="⪤",xv="⪊",kv="⪊",Cv="⪈",Av="≩",Ev="⪈",Tv="≩",Sv="⋧",Mv="𝔾",Ov="𝕘",Nv="`",Dv="≥",Lv="⋛",Pv="≧",Iv="⪢",Rv="≷",Fv="⩾",zv="≳",jv="𝒢",Bv="ℊ",Uv="≳",Hv="⪎",qv="⪐",Wv="⪧",_v="⩺",Gv=">",Vv=">",Yv="≫",Kv="⋗",Zv="⦕",Xv="⩼",Jv="⪆",Qv="⥸",$v="⋗",eb="⋛",tb="⪌",nb="≷",rb="≳",ib="≩︀",ob="≩︀",ab="ˇ",sb=" ",lb="½",cb="ℋ",ub="Ъ",hb="ъ",db="⥈",fb="↔",pb="⇔",mb="↭",gb="^",vb="ℏ",bb="Ĥ",yb="ĥ",wb="♥",xb="♥",kb="…",Cb="⊹",Ab="𝔥",Eb="ℌ",Tb="ℋ",Sb="⤥",Mb="⤦",Ob="⇿",Nb="∻",Db="↩",Lb="↪",Pb="𝕙",Ib="ℍ",Rb="―",Fb="─",zb="𝒽",jb="ℋ",Bb="ℏ",Ub="Ħ",Hb="ħ",qb="≎",Wb="≏",_b="⁃",Gb="‐",Vb="Í",Yb="í",Kb="⁣",Zb="Î",Xb="î",Jb="И",Qb="и",$b="İ",ey="Е",ty="е",ny="¡",ry="⇔",iy="𝔦",oy="ℑ",ay="Ì",sy="ì",ly="ⅈ",cy="⨌",uy="∭",hy="⧜",dy="℩",fy="IJ",py="ij",my="Ī",gy="ī",vy="ℑ",by="ⅈ",yy="ℐ",wy="ℑ",xy="ı",ky="ℑ",Cy="⊷",Ay="Ƶ",Ey="⇒",Ty="℅",Sy="∞",My="⧝",Oy="ı",Ny="⊺",Dy="∫",Ly="∬",Py="ℤ",Iy="∫",Ry="⊺",Fy="⋂",zy="⨗",jy="⨼",By="⁣",Uy="⁢",Hy="Ё",qy="ё",Wy="Į",_y="į",Gy="𝕀",Vy="𝕚",Yy="Ι",Ky="ι",Zy="⨼",Xy="¿",Jy="𝒾",Qy="ℐ",$y="∈",ew="⋵",tw="⋹",nw="⋴",rw="⋳",iw="∈",ow="⁢",aw="Ĩ",sw="ĩ",lw="І",cw="і",uw="Ï",hw="ï",dw="Ĵ",fw="ĵ",pw="Й",mw="й",gw="𝔍",vw="𝔧",bw="ȷ",yw="𝕁",ww="𝕛",xw="𝒥",kw="𝒿",Cw="Ј",Aw="ј",Ew="Є",Tw="є",Sw="Κ",Mw="κ",Ow="ϰ",Nw="Ķ",Dw="ķ",Lw="К",Pw="к",Iw="𝔎",Rw="𝔨",Fw="ĸ",zw="Х",jw="х",Bw="Ќ",Uw="ќ",Hw="𝕂",qw="𝕜",Ww="𝒦",_w="𝓀",Gw="⇚",Vw="Ĺ",Yw="ĺ",Kw="⦴",Zw="ℒ",Xw="Λ",Jw="λ",Qw="⟨",$w="⟪",ex="⦑",tx="⟨",nx="⪅",rx="ℒ",ix="«",ox="⇤",ax="⤟",sx="←",lx="↞",cx="⇐",ux="⤝",hx="↩",dx="↫",fx="⤹",px="⥳",mx="↢",gx="⤙",vx="⤛",bx="⪫",yx="⪭",wx="⪭︀",xx="⤌",kx="⤎",Cx="❲",Ax="{",Ex="[",Tx="⦋",Sx="⦏",Mx="⦍",Ox="Ľ",Nx="ľ",Dx="Ļ",Lx="ļ",Px="⌈",Ix="{",Rx="Л",Fx="л",zx="⤶",jx="“",Bx="„",Ux="⥧",Hx="⥋",qx="↲",Wx="≤",_x="≦",Gx="⟨",Vx="⇤",Yx="←",Kx="←",Zx="⇐",Xx="⇆",Jx="↢",Qx="⌈",$x="⟦",ek="⥡",tk="⥙",nk="⇃",rk="⌊",ik="↽",ok="↼",ak="⇇",sk="↔",lk="↔",ck="⇔",uk="⇆",hk="⇋",dk="↭",fk="⥎",pk="↤",mk="⊣",gk="⥚",vk="⋋",bk="⧏",yk="⊲",wk="⊴",xk="⥑",kk="⥠",Ck="⥘",Ak="↿",Ek="⥒",Tk="↼",Sk="⪋",Mk="⋚",Ok="≤",Nk="≦",Dk="⩽",Lk="⪨",Pk="⩽",Ik="⩿",Rk="⪁",Fk="⪃",zk="⋚︀",jk="⪓",Bk="⪅",Uk="⋖",Hk="⋚",qk="⪋",Wk="⋚",_k="≦",Gk="≶",Vk="≶",Yk="⪡",Kk="≲",Zk="⩽",Xk="≲",Jk="⥼",Qk="⌊",$k="𝔏",eC="𝔩",tC="≶",nC="⪑",rC="⥢",iC="↽",oC="↼",aC="⥪",sC="▄",lC="Љ",cC="љ",uC="⇇",hC="≪",dC="⋘",fC="⌞",pC="⇚",mC="⥫",gC="◺",vC="Ŀ",bC="ŀ",yC="⎰",wC="⎰",xC="⪉",kC="⪉",CC="⪇",AC="≨",EC="⪇",TC="≨",SC="⋦",MC="⟬",OC="⇽",NC="⟦",DC="⟵",LC="⟵",PC="⟸",IC="⟷",RC="⟷",FC="⟺",zC="⟼",jC="⟶",BC="⟶",UC="⟹",HC="↫",qC="↬",WC="⦅",_C="𝕃",GC="𝕝",VC="⨭",YC="⨴",KC="∗",ZC="_",XC="↙",JC="↘",QC="◊",$C="◊",eA="⧫",tA="(",nA="⦓",rA="⇆",iA="⌟",oA="⇋",aA="⥭",sA="‎",lA="⊿",cA="‹",uA="𝓁",hA="ℒ",dA="↰",fA="↰",pA="≲",mA="⪍",gA="⪏",vA="[",bA="‘",yA="‚",wA="Ł",xA="ł",kA="⪦",CA="⩹",AA="<",EA="<",TA="≪",SA="⋖",MA="⋋",OA="⋉",NA="⥶",DA="⩻",LA="◃",PA="⊴",IA="◂",RA="⦖",FA="⥊",zA="⥦",jA="≨︀",BA="≨︀",UA="¯",HA="♂",qA="✠",WA="✠",_A="↦",GA="↦",VA="↧",YA="↤",KA="↥",ZA="▮",XA="⨩",JA="М",QA="м",$A="—",eE="∺",tE="∡",nE=" ",rE="ℳ",iE="𝔐",oE="𝔪",aE="℧",sE="µ",lE="*",cE="⫰",uE="∣",hE="·",dE="⊟",fE="−",pE="∸",mE="⨪",gE="∓",vE="⫛",bE="…",yE="∓",wE="⊧",xE="𝕄",kE="𝕞",CE="∓",AE="𝓂",EE="ℳ",TE="∾",SE="Μ",ME="μ",OE="⊸",NE="⊸",DE="∇",LE="Ń",PE="ń",IE="∠⃒",RE="≉",FE="⩰̸",zE="≋̸",jE="ʼn",BE="≉",UE="♮",HE="ℕ",qE="♮",WE=" ",_E="≎̸",GE="≏̸",VE="⩃",YE="Ň",KE="ň",ZE="Ņ",XE="ņ",JE="≇",QE="⩭̸",$E="⩂",eT="Н",tT="н",nT="–",rT="⤤",iT="↗",oT="⇗",aT="↗",sT="≠",lT="≐̸",cT="​",uT="​",hT="​",dT="​",fT="≢",pT="⤨",mT="≂̸",gT="≫",vT="≪",bT="\n",yT="∄",wT="∄",xT="𝔑",kT="𝔫",CT="≧̸",AT="≱",ET="≱",TT="≧̸",ST="⩾̸",MT="⩾̸",OT="⋙̸",NT="≵",DT="≫⃒",LT="≯",PT="≯",IT="≫̸",RT="↮",FT="⇎",zT="⫲",jT="∋",BT="⋼",UT="⋺",HT="∋",qT="Њ",WT="њ",_T="↚",GT="⇍",VT="‥",YT="≦̸",KT="≰",ZT="↚",XT="⇍",JT="↮",QT="⇎",$T="≰",eS="≦̸",tS="⩽̸",nS="⩽̸",rS="≮",iS="⋘̸",oS="≴",aS="≪⃒",sS="≮",lS="⋪",cS="⋬",uS="≪̸",hS="∤",dS="⁠",fS=" ",pS="𝕟",mS="ℕ",gS="⫬",vS="¬",bS="≢",yS="≭",wS="∦",xS="∉",kS="≠",CS="≂̸",AS="∄",ES="≯",TS="≱",SS="≧̸",MS="≫̸",OS="≹",NS="⩾̸",DS="≵",LS="≎̸",PS="≏̸",IS="∉",RS="⋵̸",FS="⋹̸",zS="∉",jS="⋷",BS="⋶",US="⧏̸",HS="⋪",qS="⋬",WS="≮",_S="≰",GS="≸",VS="≪̸",YS="⩽̸",KS="≴",ZS="⪢̸",XS="⪡̸",JS="∌",QS="∌",$S="⋾",eM="⋽",tM="⊀",nM="⪯̸",rM="⋠",iM="∌",oM="⧐̸",aM="⋫",sM="⋭",lM="⊏̸",cM="⋢",uM="⊐̸",hM="⋣",dM="⊂⃒",fM="⊈",pM="⊁",mM="⪰̸",gM="⋡",vM="≿̸",bM="⊃⃒",yM="⊉",wM="≁",xM="≄",kM="≇",CM="≉",AM="∤",EM="∦",TM="∦",SM="⫽⃥",MM="∂̸",OM="⨔",NM="⊀",DM="⋠",LM="⊀",PM="⪯̸",IM="⪯̸",RM="⤳̸",FM="↛",zM="⇏",jM="↝̸",BM="↛",UM="⇏",HM="⋫",qM="⋭",WM="⊁",_M="⋡",GM="⪰̸",VM="𝒩",YM="𝓃",KM="∤",ZM="∦",XM="≁",JM="≄",QM="≄",$M="∤",eO="∦",tO="⋢",nO="⋣",rO="⊄",iO="⫅̸",oO="⊈",aO="⊂⃒",sO="⊈",lO="⫅̸",cO="⊁",uO="⪰̸",hO="⊅",dO="⫆̸",fO="⊉",pO="⊃⃒",mO="⊉",gO="⫆̸",vO="≹",bO="Ñ",yO="ñ",wO="≸",xO="⋪",kO="⋬",CO="⋫",AO="⋭",EO="Ν",TO="ν",SO="#",MO="№",OO=" ",NO="≍⃒",DO="⊬",LO="⊭",PO="⊮",IO="⊯",RO="≥⃒",FO=">⃒",zO="⤄",jO="⧞",BO="⤂",UO="≤⃒",HO="<⃒",qO="⊴⃒",WO="⤃",_O="⊵⃒",GO="∼⃒",VO="⤣",YO="↖",KO="⇖",ZO="↖",XO="⤧",JO="Ó",QO="ó",$O="⊛",eN="Ô",tN="ô",nN="⊚",rN="О",iN="о",oN="⊝",aN="Ő",sN="ő",lN="⨸",cN="⊙",uN="⦼",hN="Œ",dN="œ",fN="⦿",pN="𝔒",mN="𝔬",gN="˛",vN="Ò",bN="ò",yN="⧁",wN="⦵",xN="Ω",kN="∮",CN="↺",AN="⦾",EN="⦻",TN="‾",SN="⧀",MN="Ō",ON="ō",NN="Ω",DN="ω",LN="Ο",PN="ο",IN="⦶",RN="⊖",FN="𝕆",zN="𝕠",jN="⦷",BN="“",UN="‘",HN="⦹",qN="⊕",WN="↻",_N="⩔",GN="∨",VN="⩝",YN="ℴ",KN="ℴ",ZN="ª",XN="º",JN="⊶",QN="⩖",$N="⩗",eD="⩛",tD="Ⓢ",nD="𝒪",rD="ℴ",iD="Ø",oD="ø",aD="⊘",sD="Õ",lD="õ",cD="⨶",uD="⨷",hD="⊗",dD="Ö",fD="ö",pD="⌽",mD="‾",gD="⏞",vD="⎴",bD="⏜",yD="¶",wD="∥",xD="∥",kD="⫳",CD="⫽",AD="∂",ED="∂",TD="П",SD="п",MD="%",OD=".",ND="‰",DD="⊥",LD="‱",PD="𝔓",ID="𝔭",RD="Φ",FD="φ",zD="ϕ",jD="ℳ",BD="☎",UD="Π",HD="π",qD="⋔",WD="ϖ",_D="ℏ",GD="ℎ",VD="ℏ",YD="⨣",KD="⊞",ZD="⨢",XD="+",JD="∔",QD="⨥",$D="⩲",eL="±",tL="±",nL="⨦",rL="⨧",iL="±",oL="ℌ",aL="⨕",sL="𝕡",lL="ℙ",cL="£",uL="⪷",hL="⪻",dL="≺",fL="≼",pL="⪷",mL="≺",gL="≼",vL="≺",bL="⪯",yL="≼",wL="≾",xL="⪯",kL="⪹",CL="⪵",AL="⋨",EL="⪯",TL="⪳",SL="≾",ML="′",OL="″",NL="ℙ",DL="⪹",LL="⪵",PL="⋨",IL="∏",RL="∏",FL="⌮",zL="⌒",jL="⌓",BL="∝",UL="∝",HL="∷",qL="∝",WL="≾",_L="⊰",GL="𝒫",VL="𝓅",YL="Ψ",KL="ψ",ZL=" ",XL="𝔔",JL="𝔮",QL="⨌",$L="𝕢",eP="ℚ",tP="⁗",nP="𝒬",rP="𝓆",iP="ℍ",oP="⨖",aP="?",sP="≟",lP='"',cP='"',uP="⇛",hP="∽̱",dP="Ŕ",fP="ŕ",pP="√",mP="⦳",gP="⟩",vP="⟫",bP="⦒",yP="⦥",wP="⟩",xP="»",kP="⥵",CP="⇥",AP="⤠",EP="⤳",TP="→",SP="↠",MP="⇒",OP="⤞",NP="↪",DP="↬",LP="⥅",PP="⥴",IP="⤖",RP="↣",FP="↝",zP="⤚",jP="⤜",BP="∶",UP="ℚ",HP="⤍",qP="⤏",WP="⤐",_P="❳",GP="}",VP="]",YP="⦌",KP="⦎",ZP="⦐",XP="Ř",JP="ř",QP="Ŗ",$P="ŗ",eI="⌉",tI="}",nI="Р",rI="р",iI="⤷",oI="⥩",aI="”",sI="”",lI="↳",cI="ℜ",uI="ℛ",hI="ℜ",dI="ℝ",fI="ℜ",pI="▭",mI="®",gI="®",vI="∋",bI="⇋",yI="⥯",wI="⥽",xI="⌋",kI="𝔯",CI="ℜ",AI="⥤",EI="⇁",TI="⇀",SI="⥬",MI="Ρ",OI="ρ",NI="ϱ",DI="⟩",LI="⇥",PI="→",II="→",RI="⇒",FI="⇄",zI="↣",jI="⌉",BI="⟧",UI="⥝",HI="⥕",qI="⇂",WI="⌋",_I="⇁",GI="⇀",VI="⇄",YI="⇌",KI="⇉",ZI="↝",XI="↦",JI="⊢",QI="⥛",$I="⋌",eR="⧐",tR="⊳",nR="⊵",rR="⥏",iR="⥜",oR="⥔",aR="↾",sR="⥓",lR="⇀",cR="˚",uR="≓",hR="⇄",dR="⇌",fR="‏",pR="⎱",mR="⎱",gR="⫮",vR="⟭",bR="⇾",yR="⟧",wR="⦆",xR="𝕣",kR="ℝ",CR="⨮",AR="⨵",ER="⥰",TR=")",SR="⦔",MR="⨒",OR="⇉",NR="⇛",DR="›",LR="𝓇",PR="ℛ",IR="↱",RR="↱",FR="]",zR="’",jR="’",BR="⋌",UR="⋊",HR="▹",qR="⊵",WR="▸",_R="⧎",GR="⧴",VR="⥨",YR="℞",KR="Ś",ZR="ś",XR="‚",JR="⪸",QR="Š",$R="š",eF="⪼",tF="≻",nF="≽",rF="⪰",iF="⪴",oF="Ş",aF="ş",sF="Ŝ",lF="ŝ",cF="⪺",uF="⪶",hF="⋩",dF="⨓",fF="≿",pF="С",mF="с",gF="⊡",vF="⋅",bF="⩦",yF="⤥",wF="↘",xF="⇘",kF="↘",CF="§",AF=";",EF="⤩",TF="∖",SF="∖",MF="✶",OF="𝔖",NF="𝔰",DF="⌢",LF="♯",PF="Щ",IF="щ",RF="Ш",FF="ш",zF="↓",jF="←",BF="∣",UF="∥",HF="→",qF="↑",WF="­",_F="Σ",GF="σ",VF="ς",YF="ς",KF="∼",ZF="⩪",XF="≃",JF="≃",QF="⪞",$F="⪠",ez="⪝",tz="⪟",nz="≆",rz="⨤",iz="⥲",oz="←",az="∘",sz="∖",lz="⨳",cz="⧤",uz="∣",hz="⌣",dz="⪪",fz="⪬",pz="⪬︀",mz="Ь",gz="ь",vz="⌿",bz="⧄",yz="/",wz="𝕊",xz="𝕤",kz="♠",Cz="♠",Az="∥",Ez="⊓",Tz="⊓︀",Sz="⊔",Mz="⊔︀",Oz="√",Nz="⊏",Dz="⊑",Lz="⊏",Pz="⊑",Iz="⊐",Rz="⊒",Fz="⊐",zz="⊒",jz="□",Bz="□",Uz="⊓",Hz="⊏",qz="⊑",Wz="⊐",_z="⊒",Gz="⊔",Vz="▪",Yz="□",Kz="▪",Zz="→",Xz="𝒮",Jz="𝓈",Qz="∖",$z="⌣",ej="⋆",tj="⋆",nj="☆",rj="★",ij="ϵ",oj="ϕ",aj="¯",sj="⊂",lj="⋐",cj="⪽",uj="⫅",hj="⊆",dj="⫃",fj="⫁",pj="⫋",mj="⊊",gj="⪿",vj="⥹",bj="⊂",yj="⋐",wj="⊆",xj="⫅",kj="⊆",Cj="⊊",Aj="⫋",Ej="⫇",Tj="⫕",Sj="⫓",Mj="⪸",Oj="≻",Nj="≽",Dj="≻",Lj="⪰",Pj="≽",Ij="≿",Rj="⪰",Fj="⪺",zj="⪶",jj="⋩",Bj="≿",Uj="∋",Hj="∑",qj="∑",Wj="♪",_j="¹",Gj="²",Vj="³",Yj="⊃",Kj="⋑",Zj="⪾",Xj="⫘",Jj="⫆",Qj="⊇",$j="⫄",eB="⊃",tB="⊇",nB="⟉",rB="⫗",iB="⥻",oB="⫂",aB="⫌",sB="⊋",lB="⫀",cB="⊃",uB="⋑",hB="⊇",dB="⫆",fB="⊋",pB="⫌",mB="⫈",gB="⫔",vB="⫖",bB="⤦",yB="↙",wB="⇙",xB="↙",kB="⤪",CB="ß",AB="\t",EB="⌖",TB="Τ",SB="τ",MB="⎴",OB="Ť",NB="ť",DB="Ţ",LB="ţ",PB="Т",IB="т",RB="⃛",FB="⌕",zB="𝔗",jB="𝔱",BB="∴",UB="∴",HB="∴",qB="Θ",WB="θ",_B="ϑ",GB="ϑ",VB="≈",YB="∼",KB="  ",ZB=" ",XB=" ",JB="≈",QB="∼",$B="Þ",eU="þ",tU="˜",nU="∼",rU="≃",iU="≅",oU="≈",aU="⨱",sU="⊠",lU="×",cU="⨰",uU="∭",hU="⤨",dU="⌶",fU="⫱",pU="⊤",mU="𝕋",gU="𝕥",vU="⫚",bU="⤩",yU="‴",wU="™",xU="™",kU="▵",CU="▿",AU="◃",EU="⊴",TU="≜",SU="▹",MU="⊵",OU="◬",NU="≜",DU="⨺",LU="⃛",PU="⨹",IU="⧍",RU="⨻",FU="⏢",zU="𝒯",jU="𝓉",BU="Ц",UU="ц",HU="Ћ",qU="ћ",WU="Ŧ",_U="ŧ",GU="≬",VU="↞",YU="↠",KU="Ú",ZU="ú",XU="↑",JU="↟",QU="⇑",$U="⥉",eH="Ў",tH="ў",nH="Ŭ",rH="ŭ",iH="Û",oH="û",aH="У",sH="у",lH="⇅",cH="Ű",uH="ű",hH="⥮",dH="⥾",fH="𝔘",pH="𝔲",mH="Ù",gH="ù",vH="⥣",bH="↿",yH="↾",wH="▀",xH="⌜",kH="⌜",CH="⌏",AH="◸",EH="Ū",TH="ū",SH="¨",MH="_",OH="⏟",NH="⎵",DH="⏝",LH="⋃",PH="⊎",IH="Ų",RH="ų",FH="𝕌",zH="𝕦",jH="⤒",BH="↑",UH="↑",HH="⇑",qH="⇅",WH="↕",_H="↕",GH="⇕",VH="⥮",YH="↿",KH="↾",ZH="⊎",XH="↖",JH="↗",QH="υ",$H="ϒ",eq="ϒ",tq="Υ",nq="υ",rq="↥",iq="⊥",oq="⇈",aq="⌝",sq="⌝",lq="⌎",cq="Ů",uq="ů",hq="◹",dq="𝒰",fq="𝓊",pq="⋰",mq="Ũ",gq="ũ",vq="▵",bq="▴",yq="⇈",wq="Ü",xq="ü",kq="⦧",Cq="⦜",Aq="ϵ",Eq="ϰ",Tq="∅",Sq="ϕ",Mq="ϖ",Oq="∝",Nq="↕",Dq="⇕",Lq="ϱ",Pq="ς",Iq="⊊︀",Rq="⫋︀",Fq="⊋︀",zq="⫌︀",jq="ϑ",Bq="⊲",Uq="⊳",Hq="⫨",qq="⫫",Wq="⫩",_q="В",Gq="в",Vq="⊢",Yq="⊨",Kq="⊩",Zq="⊫",Xq="⫦",Jq="⊻",Qq="∨",$q="⋁",eW="≚",tW="⋮",nW="|",rW="‖",iW="|",oW="‖",aW="∣",sW="|",lW="❘",cW="≀",uW=" ",hW="𝔙",dW="𝔳",fW="⊲",pW="⊂⃒",mW="⊃⃒",gW="𝕍",vW="𝕧",bW="∝",yW="⊳",wW="𝒱",xW="𝓋",kW="⫋︀",CW="⊊︀",AW="⫌︀",EW="⊋︀",TW="⊪",SW="⦚",MW="Ŵ",OW="ŵ",NW="⩟",DW="∧",LW="⋀",PW="≙",IW="℘",RW="𝔚",FW="𝔴",zW="𝕎",jW="𝕨",BW="℘",UW="≀",HW="≀",qW="𝒲",WW="𝓌",_W="⋂",GW="◯",VW="⋃",YW="▽",KW="𝔛",ZW="𝔵",XW="⟷",JW="⟺",QW="Ξ",$W="ξ",e_="⟵",t_="⟸",n_="⟼",r_="⋻",i_="⨀",o_="𝕏",a_="𝕩",s_="⨁",l_="⨂",c_="⟶",u_="⟹",h_="𝒳",d_="𝓍",f_="⨆",p_="⨄",m_="△",g_="⋁",v_="⋀",b_="Ý",y_="ý",w_="Я",x_="я",k_="Ŷ",C_="ŷ",A_="Ы",E_="ы",T_="¥",S_="𝔜",M_="𝔶",O_="Ї",N_="ї",D_="𝕐",L_="𝕪",P_="𝒴",I_="𝓎",R_="Ю",F_="ю",z_="ÿ",j_="Ÿ",B_="Ź",U_="ź",H_="Ž",q_="ž",W_="З",__="з",G_="Ż",V_="ż",Y_="ℨ",K_="​",Z_="Ζ",X_="ζ",J_="𝔷",Q_="ℨ",$_="Ж",eG="ж",tG="⇝",nG="𝕫",rG="ℤ",iG="𝒵",oG="𝓏",aG="‍",sG="‌",lG={Aacute:_o,aacute:Go,Abreve:Vo,abreve:Yo,ac:Ko,acd:Zo,acE:Xo,Acirc:Jo,acirc:Qo,acute:$o,Acy:ea,acy:ta,AElig:na,aelig:ra,af:ia,Afr:oa,afr:aa,Agrave:sa,agrave:la,alefsym:ca,aleph:ua,Alpha:ha,alpha:da,Amacr:fa,amacr:pa,amalg:ma,amp:ga,AMP:va,andand:ba,And:ya,and:wa,andd:xa,andslope:ka,andv:Ca,ang:Aa,ange:Ea,angle:Ta,angmsdaa:Sa,angmsdab:Ma,angmsdac:Oa,angmsdad:Na,angmsdae:Da,angmsdaf:La,angmsdag:Pa,angmsdah:Ia,angmsd:Ra,angrt:Fa,angrtvb:za,angrtvbd:ja,angsph:Ba,angst:Ua,angzarr:Ha,Aogon:qa,aogon:Wa,Aopf:_a,aopf:Ga,apacir:Va,ap:Ya,apE:Ka,ape:Za,apid:Xa,apos:Ja,ApplyFunction:Qa,approx:$a,approxeq:es,Aring:ts,aring:ns,Ascr:rs,ascr:is,Assign:os,ast:as,asymp:ss,asympeq:ls,Atilde:cs,atilde:us,Auml:hs,auml:ds,awconint:fs,awint:ps,backcong:ms,backepsilon:gs,backprime:vs,backsim:bs,backsimeq:ys,Backslash:ws,Barv:xs,barvee:ks,barwed:Cs,Barwed:As,barwedge:Es,bbrk:Ts,bbrktbrk:Ss,bcong:Ms,Bcy:Os,bcy:Ns,bdquo:Ds,becaus:Ls,because:Ps,Because:Is,bemptyv:Rs,bepsi:Fs,bernou:zs,Bernoullis:js,Beta:Bs,beta:Us,beth:Hs,between:qs,Bfr:Ws,bfr:_s,bigcap:Gs,bigcirc:Vs,bigcup:Ys,bigodot:Ks,bigoplus:Zs,bigotimes:Xs,bigsqcup:Js,bigstar:Qs,bigtriangledown:$s,bigtriangleup:el,biguplus:tl,bigvee:nl,bigwedge:rl,bkarow:il,blacklozenge:ol,blacksquare:al,blacktriangle:sl,blacktriangledown:ll,blacktriangleleft:cl,blacktriangleright:ul,blank:hl,blk12:dl,blk14:fl,blk34:pl,block:ml,bne:gl,bnequiv:vl,bNot:bl,bnot:yl,Bopf:wl,bopf:xl,bot:kl,bottom:Cl,bowtie:Al,boxbox:El,boxdl:Tl,boxdL:Sl,boxDl:Ml,boxDL:Ol,boxdr:Nl,boxdR:Dl,boxDr:Ll,boxDR:Pl,boxh:Il,boxH:Rl,boxhd:Fl,boxHd:zl,boxhD:jl,boxHD:Bl,boxhu:Ul,boxHu:Hl,boxhU:ql,boxHU:Wl,boxminus:_l,boxplus:Gl,boxtimes:Vl,boxul:Yl,boxuL:Kl,boxUl:Zl,boxUL:Xl,boxur:Jl,boxuR:Ql,boxUr:$l,boxUR:ec,boxv:tc,boxV:nc,boxvh:rc,boxvH:ic,boxVh:oc,boxVH:ac,boxvl:sc,boxvL:lc,boxVl:cc,boxVL:uc,boxvr:hc,boxvR:dc,boxVr:fc,boxVR:pc,bprime:mc,breve:gc,Breve:vc,brvbar:bc,bscr:yc,Bscr:wc,bsemi:xc,bsim:kc,bsime:Cc,bsolb:Ac,bsol:Ec,bsolhsub:Tc,bull:Sc,bullet:Mc,bump:Oc,bumpE:Nc,bumpe:Dc,Bumpeq:Lc,bumpeq:Pc,Cacute:Ic,cacute:Rc,capand:Fc,capbrcup:zc,capcap:jc,cap:Bc,Cap:Uc,capcup:Hc,capdot:qc,CapitalDifferentialD:Wc,caps:_c,caret:Gc,caron:Vc,Cayleys:Yc,ccaps:Kc,Ccaron:Zc,ccaron:Xc,Ccedil:Jc,ccedil:Qc,Ccirc:$c,ccirc:eu,Cconint:tu,ccups:nu,ccupssm:ru,Cdot:iu,cdot:ou,cedil:au,Cedilla:su,cemptyv:lu,cent:cu,centerdot:uu,CenterDot:hu,cfr:du,Cfr:fu,CHcy:pu,chcy:mu,check:gu,checkmark:vu,Chi:bu,chi:yu,circ:wu,circeq:xu,circlearrowleft:ku,circlearrowright:Cu,circledast:Au,circledcirc:Eu,circleddash:Tu,CircleDot:Su,circledR:Mu,circledS:Ou,CircleMinus:Nu,CirclePlus:Du,CircleTimes:Lu,cir:Pu,cirE:Iu,cire:Ru,cirfnint:Fu,cirmid:zu,cirscir:ju,ClockwiseContourIntegral:Bu,CloseCurlyDoubleQuote:Uu,CloseCurlyQuote:Hu,clubs:qu,clubsuit:Wu,colon:_u,Colon:Gu,Colone:Vu,colone:Yu,coloneq:Ku,comma:Zu,commat:Xu,comp:Ju,compfn:Qu,complement:$u,complexes:eh,cong:th,congdot:nh,Congruent:rh,conint:ih,Conint:oh,ContourIntegral:ah,copf:sh,Copf:lh,coprod:ch,Coproduct:uh,copy:hh,COPY:dh,copysr:fh,CounterClockwiseContourIntegral:ph,crarr:mh,cross:gh,Cross:vh,Cscr:bh,cscr:yh,csub:wh,csube:xh,csup:kh,csupe:Ch,ctdot:Ah,cudarrl:Eh,cudarrr:Th,cuepr:Sh,cuesc:Mh,cularr:Oh,cularrp:Nh,cupbrcap:Dh,cupcap:Lh,CupCap:Ph,cup:Ih,Cup:Rh,cupcup:Fh,cupdot:zh,cupor:jh,cups:Bh,curarr:Uh,curarrm:Hh,curlyeqprec:qh,curlyeqsucc:Wh,curlyvee:_h,curlywedge:Gh,curren:Vh,curvearrowleft:Yh,curvearrowright:Kh,cuvee:Zh,cuwed:Xh,cwconint:Jh,cwint:Qh,cylcty:$h,dagger:ed,Dagger:td,daleth:nd,darr:rd,Darr:id,dArr:od,dash:ad,Dashv:sd,dashv:ld,dbkarow:cd,dblac:ud,Dcaron:hd,dcaron:dd,Dcy:fd,dcy:pd,ddagger:md,ddarr:gd,DD:vd,dd:bd,DDotrahd:yd,ddotseq:wd,deg:xd,Del:kd,Delta:Cd,delta:Ad,demptyv:Ed,dfisht:Td,Dfr:Sd,dfr:Md,dHar:Od,dharl:Nd,dharr:Dd,DiacriticalAcute:Ld,DiacriticalDot:Pd,DiacriticalDoubleAcute:Id,DiacriticalGrave:Rd,DiacriticalTilde:Fd,diam:zd,diamond:jd,Diamond:Bd,diamondsuit:Ud,diams:Hd,die:qd,DifferentialD:Wd,digamma:_d,disin:Gd,div:Vd,divide:Yd,divideontimes:Kd,divonx:Zd,DJcy:Xd,djcy:Jd,dlcorn:Qd,dlcrop:$d,dollar:ef,Dopf:tf,dopf:nf,Dot:rf,dot:of,DotDot:af,doteq:sf,doteqdot:lf,DotEqual:cf,dotminus:uf,dotplus:hf,dotsquare:df,doublebarwedge:ff,DoubleContourIntegral:pf,DoubleDot:mf,DoubleDownArrow:gf,DoubleLeftArrow:vf,DoubleLeftRightArrow:bf,DoubleLeftTee:yf,DoubleLongLeftArrow:wf,DoubleLongLeftRightArrow:xf,DoubleLongRightArrow:kf,DoubleRightArrow:Cf,DoubleRightTee:Af,DoubleUpArrow:Ef,DoubleUpDownArrow:Tf,DoubleVerticalBar:Sf,DownArrowBar:Mf,downarrow:Of,DownArrow:Nf,Downarrow:Df,DownArrowUpArrow:Lf,DownBreve:Pf,downdownarrows:If,downharpoonleft:Rf,downharpoonright:Ff,DownLeftRightVector:zf,DownLeftTeeVector:jf,DownLeftVectorBar:Bf,DownLeftVector:Uf,DownRightTeeVector:Hf,DownRightVectorBar:qf,DownRightVector:Wf,DownTeeArrow:_f,DownTee:Gf,drbkarow:Vf,drcorn:Yf,drcrop:Kf,Dscr:Zf,dscr:Xf,DScy:Jf,dscy:Qf,dsol:$f,Dstrok:ep,dstrok:tp,dtdot:np,dtri:rp,dtrif:ip,duarr:op,duhar:ap,dwangle:sp,DZcy:lp,dzcy:cp,dzigrarr:up,Eacute:hp,eacute:dp,easter:fp,Ecaron:pp,ecaron:mp,Ecirc:gp,ecirc:vp,ecir:bp,ecolon:yp,Ecy:wp,ecy:xp,eDDot:kp,Edot:Cp,edot:Ap,eDot:Ep,ee:Tp,efDot:Sp,Efr:Mp,efr:Op,eg:Np,Egrave:Dp,egrave:Lp,egs:Pp,egsdot:Ip,el:Rp,Element:Fp,elinters:zp,ell:jp,els:Bp,elsdot:Up,Emacr:Hp,emacr:qp,empty:Wp,emptyset:_p,EmptySmallSquare:Gp,emptyv:Vp,EmptyVerySmallSquare:Yp,emsp13:Kp,emsp14:Zp,emsp:Xp,ENG:Jp,eng:Qp,ensp:$p,Eogon:em,eogon:tm,Eopf:nm,eopf:rm,epar:im,eparsl:om,eplus:am,epsi:sm,Epsilon:lm,epsilon:cm,epsiv:um,eqcirc:hm,eqcolon:dm,eqsim:fm,eqslantgtr:pm,eqslantless:mm,Equal:gm,equals:vm,EqualTilde:bm,equest:ym,Equilibrium:wm,equiv:xm,equivDD:km,eqvparsl:Cm,erarr:Am,erDot:Em,escr:Tm,Escr:Sm,esdot:Mm,Esim:Om,esim:Nm,Eta:Dm,eta:Lm,ETH:Pm,eth:Im,Euml:Rm,euml:Fm,euro:zm,excl:jm,exist:Bm,Exists:Um,expectation:Hm,exponentiale:qm,ExponentialE:Wm,fallingdotseq:_m,Fcy:Gm,fcy:Vm,female:Ym,ffilig:Km,fflig:Zm,ffllig:Xm,Ffr:Jm,ffr:Qm,filig:$m,FilledSmallSquare:eg,FilledVerySmallSquare:tg,fjlig:ng,flat:rg,fllig:ig,fltns:og,fnof:ag,Fopf:sg,fopf:lg,forall:cg,ForAll:ug,fork:hg,forkv:dg,Fouriertrf:fg,fpartint:pg,frac12:mg,frac13:gg,frac14:vg,frac15:bg,frac16:yg,frac18:wg,frac23:xg,frac25:kg,frac34:Cg,frac35:Ag,frac38:Eg,frac45:Tg,frac56:Sg,frac58:Mg,frac78:Og,frasl:Ng,frown:Dg,fscr:Lg,Fscr:Pg,gacute:Ig,Gamma:Rg,gamma:Fg,Gammad:zg,gammad:jg,gap:Bg,Gbreve:Ug,gbreve:Hg,Gcedil:qg,Gcirc:Wg,gcirc:_g,Gcy:Gg,gcy:Vg,Gdot:Yg,gdot:Kg,ge:Zg,gE:Xg,gEl:Jg,gel:Qg,geq:$g,geqq:ev,geqslant:tv,gescc:nv,ges:rv,gesdot:iv,gesdoto:ov,gesdotol:av,gesl:sv,gesles:lv,Gfr:cv,gfr:uv,gg:hv,Gg:dv,ggg:fv,gimel:pv,GJcy:mv,gjcy:gv,gla:vv,gl:bv,glE:yv,glj:wv,gnap:xv,gnapprox:kv,gne:Cv,gnE:Av,gneq:Ev,gneqq:Tv,gnsim:Sv,Gopf:Mv,gopf:Ov,grave:Nv,GreaterEqual:Dv,GreaterEqualLess:Lv,GreaterFullEqual:Pv,GreaterGreater:Iv,GreaterLess:Rv,GreaterSlantEqual:Fv,GreaterTilde:zv,Gscr:jv,gscr:Bv,gsim:Uv,gsime:Hv,gsiml:qv,gtcc:Wv,gtcir:_v,gt:Gv,GT:Vv,Gt:Yv,gtdot:Kv,gtlPar:Zv,gtquest:Xv,gtrapprox:Jv,gtrarr:Qv,gtrdot:$v,gtreqless:eb,gtreqqless:tb,gtrless:nb,gtrsim:rb,gvertneqq:ib,gvnE:ob,Hacek:ab,hairsp:sb,half:lb,hamilt:cb,HARDcy:ub,hardcy:hb,harrcir:db,harr:fb,hArr:pb,harrw:mb,Hat:gb,hbar:vb,Hcirc:bb,hcirc:yb,hearts:wb,heartsuit:xb,hellip:kb,hercon:Cb,hfr:Ab,Hfr:Eb,HilbertSpace:Tb,hksearow:Sb,hkswarow:Mb,hoarr:Ob,homtht:Nb,hookleftarrow:Db,hookrightarrow:Lb,hopf:Pb,Hopf:Ib,horbar:Rb,HorizontalLine:Fb,hscr:zb,Hscr:jb,hslash:Bb,Hstrok:Ub,hstrok:Hb,HumpDownHump:qb,HumpEqual:Wb,hybull:_b,hyphen:Gb,Iacute:Vb,iacute:Yb,ic:Kb,Icirc:Zb,icirc:Xb,Icy:Jb,icy:Qb,Idot:$b,IEcy:ey,iecy:ty,iexcl:ny,iff:ry,ifr:iy,Ifr:oy,Igrave:ay,igrave:sy,ii:ly,iiiint:cy,iiint:uy,iinfin:hy,iiota:dy,IJlig:fy,ijlig:py,Imacr:my,imacr:gy,image:vy,ImaginaryI:by,imagline:yy,imagpart:wy,imath:xy,Im:ky,imof:Cy,imped:Ay,Implies:Ey,incare:Ty,in:"∈",infin:Sy,infintie:My,inodot:Oy,intcal:Ny,int:Dy,Int:Ly,integers:Py,Integral:Iy,intercal:Ry,Intersection:Fy,intlarhk:zy,intprod:jy,InvisibleComma:By,InvisibleTimes:Uy,IOcy:Hy,iocy:qy,Iogon:Wy,iogon:_y,Iopf:Gy,iopf:Vy,Iota:Yy,iota:Ky,iprod:Zy,iquest:Xy,iscr:Jy,Iscr:Qy,isin:$y,isindot:ew,isinE:tw,isins:nw,isinsv:rw,isinv:iw,it:ow,Itilde:aw,itilde:sw,Iukcy:lw,iukcy:cw,Iuml:uw,iuml:hw,Jcirc:dw,jcirc:fw,Jcy:pw,jcy:mw,Jfr:gw,jfr:vw,jmath:bw,Jopf:yw,jopf:ww,Jscr:xw,jscr:kw,Jsercy:Cw,jsercy:Aw,Jukcy:Ew,jukcy:Tw,Kappa:Sw,kappa:Mw,kappav:Ow,Kcedil:Nw,kcedil:Dw,Kcy:Lw,kcy:Pw,Kfr:Iw,kfr:Rw,kgreen:Fw,KHcy:zw,khcy:jw,KJcy:Bw,kjcy:Uw,Kopf:Hw,kopf:qw,Kscr:Ww,kscr:_w,lAarr:Gw,Lacute:Vw,lacute:Yw,laemptyv:Kw,lagran:Zw,Lambda:Xw,lambda:Jw,lang:Qw,Lang:$w,langd:ex,langle:tx,lap:nx,Laplacetrf:rx,laquo:ix,larrb:ox,larrbfs:ax,larr:sx,Larr:lx,lArr:cx,larrfs:ux,larrhk:hx,larrlp:dx,larrpl:fx,larrsim:px,larrtl:mx,latail:gx,lAtail:vx,lat:bx,late:yx,lates:wx,lbarr:xx,lBarr:kx,lbbrk:Cx,lbrace:Ax,lbrack:Ex,lbrke:Tx,lbrksld:Sx,lbrkslu:Mx,Lcaron:Ox,lcaron:Nx,Lcedil:Dx,lcedil:Lx,lceil:Px,lcub:Ix,Lcy:Rx,lcy:Fx,ldca:zx,ldquo:jx,ldquor:Bx,ldrdhar:Ux,ldrushar:Hx,ldsh:qx,le:Wx,lE:_x,LeftAngleBracket:Gx,LeftArrowBar:Vx,leftarrow:Yx,LeftArrow:Kx,Leftarrow:Zx,LeftArrowRightArrow:Xx,leftarrowtail:Jx,LeftCeiling:Qx,LeftDoubleBracket:$x,LeftDownTeeVector:ek,LeftDownVectorBar:tk,LeftDownVector:nk,LeftFloor:rk,leftharpoondown:ik,leftharpoonup:ok,leftleftarrows:ak,leftrightarrow:sk,LeftRightArrow:lk,Leftrightarrow:ck,leftrightarrows:uk,leftrightharpoons:hk,leftrightsquigarrow:dk,LeftRightVector:fk,LeftTeeArrow:pk,LeftTee:mk,LeftTeeVector:gk,leftthreetimes:vk,LeftTriangleBar:bk,LeftTriangle:yk,LeftTriangleEqual:wk,LeftUpDownVector:xk,LeftUpTeeVector:kk,LeftUpVectorBar:Ck,LeftUpVector:Ak,LeftVectorBar:Ek,LeftVector:Tk,lEg:Sk,leg:Mk,leq:Ok,leqq:Nk,leqslant:Dk,lescc:Lk,les:Pk,lesdot:Ik,lesdoto:Rk,lesdotor:Fk,lesg:zk,lesges:jk,lessapprox:Bk,lessdot:Uk,lesseqgtr:Hk,lesseqqgtr:qk,LessEqualGreater:Wk,LessFullEqual:_k,LessGreater:Gk,lessgtr:Vk,LessLess:Yk,lesssim:Kk,LessSlantEqual:Zk,LessTilde:Xk,lfisht:Jk,lfloor:Qk,Lfr:$k,lfr:eC,lg:tC,lgE:nC,lHar:rC,lhard:iC,lharu:oC,lharul:aC,lhblk:sC,LJcy:lC,ljcy:cC,llarr:uC,ll:hC,Ll:dC,llcorner:fC,Lleftarrow:pC,llhard:mC,lltri:gC,Lmidot:vC,lmidot:bC,lmoustache:yC,lmoust:wC,lnap:xC,lnapprox:kC,lne:CC,lnE:AC,lneq:EC,lneqq:TC,lnsim:SC,loang:MC,loarr:OC,lobrk:NC,longleftarrow:DC,LongLeftArrow:LC,Longleftarrow:PC,longleftrightarrow:IC,LongLeftRightArrow:RC,Longleftrightarrow:FC,longmapsto:zC,longrightarrow:jC,LongRightArrow:BC,Longrightarrow:UC,looparrowleft:HC,looparrowright:qC,lopar:WC,Lopf:_C,lopf:GC,loplus:VC,lotimes:YC,lowast:KC,lowbar:ZC,LowerLeftArrow:XC,LowerRightArrow:JC,loz:QC,lozenge:$C,lozf:eA,lpar:tA,lparlt:nA,lrarr:rA,lrcorner:iA,lrhar:oA,lrhard:aA,lrm:sA,lrtri:lA,lsaquo:cA,lscr:uA,Lscr:hA,lsh:dA,Lsh:fA,lsim:pA,lsime:mA,lsimg:gA,lsqb:vA,lsquo:bA,lsquor:yA,Lstrok:wA,lstrok:xA,ltcc:kA,ltcir:CA,lt:AA,LT:EA,Lt:TA,ltdot:SA,lthree:MA,ltimes:OA,ltlarr:NA,ltquest:DA,ltri:LA,ltrie:PA,ltrif:IA,ltrPar:RA,lurdshar:FA,luruhar:zA,lvertneqq:jA,lvnE:BA,macr:UA,male:HA,malt:qA,maltese:WA,Map:"⤅",map:_A,mapsto:GA,mapstodown:VA,mapstoleft:YA,mapstoup:KA,marker:ZA,mcomma:XA,Mcy:JA,mcy:QA,mdash:$A,mDDot:eE,measuredangle:tE,MediumSpace:nE,Mellintrf:rE,Mfr:iE,mfr:oE,mho:aE,micro:sE,midast:lE,midcir:cE,mid:uE,middot:hE,minusb:dE,minus:fE,minusd:pE,minusdu:mE,MinusPlus:gE,mlcp:vE,mldr:bE,mnplus:yE,models:wE,Mopf:xE,mopf:kE,mp:CE,mscr:AE,Mscr:EE,mstpos:TE,Mu:SE,mu:ME,multimap:OE,mumap:NE,nabla:DE,Nacute:LE,nacute:PE,nang:IE,nap:RE,napE:FE,napid:zE,napos:jE,napprox:BE,natural:UE,naturals:HE,natur:qE,nbsp:WE,nbump:_E,nbumpe:GE,ncap:VE,Ncaron:YE,ncaron:KE,Ncedil:ZE,ncedil:XE,ncong:JE,ncongdot:QE,ncup:$E,Ncy:eT,ncy:tT,ndash:nT,nearhk:rT,nearr:iT,neArr:oT,nearrow:aT,ne:sT,nedot:lT,NegativeMediumSpace:cT,NegativeThickSpace:uT,NegativeThinSpace:hT,NegativeVeryThinSpace:dT,nequiv:fT,nesear:pT,nesim:mT,NestedGreaterGreater:gT,NestedLessLess:vT,NewLine:bT,nexist:yT,nexists:wT,Nfr:xT,nfr:kT,ngE:CT,nge:AT,ngeq:ET,ngeqq:TT,ngeqslant:ST,nges:MT,nGg:OT,ngsim:NT,nGt:DT,ngt:LT,ngtr:PT,nGtv:IT,nharr:RT,nhArr:FT,nhpar:zT,ni:jT,nis:BT,nisd:UT,niv:HT,NJcy:qT,njcy:WT,nlarr:_T,nlArr:GT,nldr:VT,nlE:YT,nle:KT,nleftarrow:ZT,nLeftarrow:XT,nleftrightarrow:JT,nLeftrightarrow:QT,nleq:$T,nleqq:eS,nleqslant:tS,nles:nS,nless:rS,nLl:iS,nlsim:oS,nLt:aS,nlt:sS,nltri:lS,nltrie:cS,nLtv:uS,nmid:hS,NoBreak:dS,NonBreakingSpace:fS,nopf:pS,Nopf:mS,Not:gS,not:vS,NotCongruent:bS,NotCupCap:yS,NotDoubleVerticalBar:wS,NotElement:xS,NotEqual:kS,NotEqualTilde:CS,NotExists:AS,NotGreater:ES,NotGreaterEqual:TS,NotGreaterFullEqual:SS,NotGreaterGreater:MS,NotGreaterLess:OS,NotGreaterSlantEqual:NS,NotGreaterTilde:DS,NotHumpDownHump:LS,NotHumpEqual:PS,notin:IS,notindot:RS,notinE:FS,notinva:zS,notinvb:jS,notinvc:BS,NotLeftTriangleBar:US,NotLeftTriangle:HS,NotLeftTriangleEqual:qS,NotLess:WS,NotLessEqual:_S,NotLessGreater:GS,NotLessLess:VS,NotLessSlantEqual:YS,NotLessTilde:KS,NotNestedGreaterGreater:ZS,NotNestedLessLess:XS,notni:JS,notniva:QS,notnivb:$S,notnivc:eM,NotPrecedes:tM,NotPrecedesEqual:nM,NotPrecedesSlantEqual:rM,NotReverseElement:iM,NotRightTriangleBar:oM,NotRightTriangle:aM,NotRightTriangleEqual:sM,NotSquareSubset:lM,NotSquareSubsetEqual:cM,NotSquareSuperset:uM,NotSquareSupersetEqual:hM,NotSubset:dM,NotSubsetEqual:fM,NotSucceeds:pM,NotSucceedsEqual:mM,NotSucceedsSlantEqual:gM,NotSucceedsTilde:vM,NotSuperset:bM,NotSupersetEqual:yM,NotTilde:wM,NotTildeEqual:xM,NotTildeFullEqual:kM,NotTildeTilde:CM,NotVerticalBar:AM,nparallel:EM,npar:TM,nparsl:SM,npart:MM,npolint:OM,npr:NM,nprcue:DM,nprec:LM,npreceq:PM,npre:IM,nrarrc:RM,nrarr:FM,nrArr:zM,nrarrw:jM,nrightarrow:BM,nRightarrow:UM,nrtri:HM,nrtrie:qM,nsc:WM,nsccue:_M,nsce:GM,Nscr:VM,nscr:YM,nshortmid:KM,nshortparallel:ZM,nsim:XM,nsime:JM,nsimeq:QM,nsmid:$M,nspar:eO,nsqsube:tO,nsqsupe:nO,nsub:rO,nsubE:iO,nsube:oO,nsubset:aO,nsubseteq:sO,nsubseteqq:lO,nsucc:cO,nsucceq:uO,nsup:hO,nsupE:dO,nsupe:fO,nsupset:pO,nsupseteq:mO,nsupseteqq:gO,ntgl:vO,Ntilde:bO,ntilde:yO,ntlg:wO,ntriangleleft:xO,ntrianglelefteq:kO,ntriangleright:CO,ntrianglerighteq:AO,Nu:EO,nu:TO,num:SO,numero:MO,numsp:OO,nvap:NO,nvdash:DO,nvDash:LO,nVdash:PO,nVDash:IO,nvge:RO,nvgt:FO,nvHarr:zO,nvinfin:jO,nvlArr:BO,nvle:UO,nvlt:HO,nvltrie:qO,nvrArr:WO,nvrtrie:_O,nvsim:GO,nwarhk:VO,nwarr:YO,nwArr:KO,nwarrow:ZO,nwnear:XO,Oacute:JO,oacute:QO,oast:$O,Ocirc:eN,ocirc:tN,ocir:nN,Ocy:rN,ocy:iN,odash:oN,Odblac:aN,odblac:sN,odiv:lN,odot:cN,odsold:uN,OElig:hN,oelig:dN,ofcir:fN,Ofr:pN,ofr:mN,ogon:gN,Ograve:vN,ograve:bN,ogt:yN,ohbar:wN,ohm:xN,oint:kN,olarr:CN,olcir:AN,olcross:EN,oline:TN,olt:SN,Omacr:MN,omacr:ON,Omega:NN,omega:DN,Omicron:LN,omicron:PN,omid:IN,ominus:RN,Oopf:FN,oopf:zN,opar:jN,OpenCurlyDoubleQuote:BN,OpenCurlyQuote:UN,operp:HN,oplus:qN,orarr:WN,Or:_N,or:GN,ord:VN,order:YN,orderof:KN,ordf:ZN,ordm:XN,origof:JN,oror:QN,orslope:$N,orv:eD,oS:tD,Oscr:nD,oscr:rD,Oslash:iD,oslash:oD,osol:aD,Otilde:sD,otilde:lD,otimesas:cD,Otimes:uD,otimes:hD,Ouml:dD,ouml:fD,ovbar:pD,OverBar:mD,OverBrace:gD,OverBracket:vD,OverParenthesis:bD,para:yD,parallel:wD,par:xD,parsim:kD,parsl:CD,part:AD,PartialD:ED,Pcy:TD,pcy:SD,percnt:MD,period:OD,permil:ND,perp:DD,pertenk:LD,Pfr:PD,pfr:ID,Phi:RD,phi:FD,phiv:zD,phmmat:jD,phone:BD,Pi:UD,pi:HD,pitchfork:qD,piv:WD,planck:_D,planckh:GD,plankv:VD,plusacir:YD,plusb:KD,pluscir:ZD,plus:XD,plusdo:JD,plusdu:QD,pluse:$D,PlusMinus:eL,plusmn:tL,plussim:nL,plustwo:rL,pm:iL,Poincareplane:oL,pointint:aL,popf:sL,Popf:lL,pound:cL,prap:uL,Pr:hL,pr:dL,prcue:fL,precapprox:pL,prec:mL,preccurlyeq:gL,Precedes:vL,PrecedesEqual:bL,PrecedesSlantEqual:yL,PrecedesTilde:wL,preceq:xL,precnapprox:kL,precneqq:CL,precnsim:AL,pre:EL,prE:TL,precsim:SL,prime:ML,Prime:OL,primes:NL,prnap:DL,prnE:LL,prnsim:PL,prod:IL,Product:RL,profalar:FL,profline:zL,profsurf:jL,prop:BL,Proportional:UL,Proportion:HL,propto:qL,prsim:WL,prurel:_L,Pscr:GL,pscr:VL,Psi:YL,psi:KL,puncsp:ZL,Qfr:XL,qfr:JL,qint:QL,qopf:$L,Qopf:eP,qprime:tP,Qscr:nP,qscr:rP,quaternions:iP,quatint:oP,quest:aP,questeq:sP,quot:lP,QUOT:cP,rAarr:uP,race:hP,Racute:dP,racute:fP,radic:pP,raemptyv:mP,rang:gP,Rang:vP,rangd:bP,range:yP,rangle:wP,raquo:xP,rarrap:kP,rarrb:CP,rarrbfs:AP,rarrc:EP,rarr:TP,Rarr:SP,rArr:MP,rarrfs:OP,rarrhk:NP,rarrlp:DP,rarrpl:LP,rarrsim:PP,Rarrtl:IP,rarrtl:RP,rarrw:FP,ratail:zP,rAtail:jP,ratio:BP,rationals:UP,rbarr:HP,rBarr:qP,RBarr:WP,rbbrk:_P,rbrace:GP,rbrack:VP,rbrke:YP,rbrksld:KP,rbrkslu:ZP,Rcaron:XP,rcaron:JP,Rcedil:QP,rcedil:$P,rceil:eI,rcub:tI,Rcy:nI,rcy:rI,rdca:iI,rdldhar:oI,rdquo:aI,rdquor:sI,rdsh:lI,real:cI,realine:uI,realpart:hI,reals:dI,Re:fI,rect:pI,reg:mI,REG:gI,ReverseElement:vI,ReverseEquilibrium:bI,ReverseUpEquilibrium:yI,rfisht:wI,rfloor:xI,rfr:kI,Rfr:CI,rHar:AI,rhard:EI,rharu:TI,rharul:SI,Rho:MI,rho:OI,rhov:NI,RightAngleBracket:DI,RightArrowBar:LI,rightarrow:PI,RightArrow:II,Rightarrow:RI,RightArrowLeftArrow:FI,rightarrowtail:zI,RightCeiling:jI,RightDoubleBracket:BI,RightDownTeeVector:UI,RightDownVectorBar:HI,RightDownVector:qI,RightFloor:WI,rightharpoondown:_I,rightharpoonup:GI,rightleftarrows:VI,rightleftharpoons:YI,rightrightarrows:KI,rightsquigarrow:ZI,RightTeeArrow:XI,RightTee:JI,RightTeeVector:QI,rightthreetimes:$I,RightTriangleBar:eR,RightTriangle:tR,RightTriangleEqual:nR,RightUpDownVector:rR,RightUpTeeVector:iR,RightUpVectorBar:oR,RightUpVector:aR,RightVectorBar:sR,RightVector:lR,ring:cR,risingdotseq:uR,rlarr:hR,rlhar:dR,rlm:fR,rmoustache:pR,rmoust:mR,rnmid:gR,roang:vR,roarr:bR,robrk:yR,ropar:wR,ropf:xR,Ropf:kR,roplus:CR,rotimes:AR,RoundImplies:ER,rpar:TR,rpargt:SR,rppolint:MR,rrarr:OR,Rrightarrow:NR,rsaquo:DR,rscr:LR,Rscr:PR,rsh:IR,Rsh:RR,rsqb:FR,rsquo:zR,rsquor:jR,rthree:BR,rtimes:UR,rtri:HR,rtrie:qR,rtrif:WR,rtriltri:_R,RuleDelayed:GR,ruluhar:VR,rx:YR,Sacute:KR,sacute:ZR,sbquo:XR,scap:JR,Scaron:QR,scaron:$R,Sc:eF,sc:tF,sccue:nF,sce:rF,scE:iF,Scedil:oF,scedil:aF,Scirc:sF,scirc:lF,scnap:cF,scnE:uF,scnsim:hF,scpolint:dF,scsim:fF,Scy:pF,scy:mF,sdotb:gF,sdot:vF,sdote:bF,searhk:yF,searr:wF,seArr:xF,searrow:kF,sect:CF,semi:AF,seswar:EF,setminus:TF,setmn:SF,sext:MF,Sfr:OF,sfr:NF,sfrown:DF,sharp:LF,SHCHcy:PF,shchcy:IF,SHcy:RF,shcy:FF,ShortDownArrow:zF,ShortLeftArrow:jF,shortmid:BF,shortparallel:UF,ShortRightArrow:HF,ShortUpArrow:qF,shy:WF,Sigma:_F,sigma:GF,sigmaf:VF,sigmav:YF,sim:KF,simdot:ZF,sime:XF,simeq:JF,simg:QF,simgE:$F,siml:ez,simlE:tz,simne:nz,simplus:rz,simrarr:iz,slarr:oz,SmallCircle:az,smallsetminus:sz,smashp:lz,smeparsl:cz,smid:uz,smile:hz,smt:dz,smte:fz,smtes:pz,SOFTcy:mz,softcy:gz,solbar:vz,solb:bz,sol:yz,Sopf:wz,sopf:xz,spades:kz,spadesuit:Cz,spar:Az,sqcap:Ez,sqcaps:Tz,sqcup:Sz,sqcups:Mz,Sqrt:Oz,sqsub:Nz,sqsube:Dz,sqsubset:Lz,sqsubseteq:Pz,sqsup:Iz,sqsupe:Rz,sqsupset:Fz,sqsupseteq:zz,square:jz,Square:Bz,SquareIntersection:Uz,SquareSubset:Hz,SquareSubsetEqual:qz,SquareSuperset:Wz,SquareSupersetEqual:_z,SquareUnion:Gz,squarf:Vz,squ:Yz,squf:Kz,srarr:Zz,Sscr:Xz,sscr:Jz,ssetmn:Qz,ssmile:$z,sstarf:ej,Star:tj,star:nj,starf:rj,straightepsilon:ij,straightphi:oj,strns:aj,sub:sj,Sub:lj,subdot:cj,subE:uj,sube:hj,subedot:dj,submult:fj,subnE:pj,subne:mj,subplus:gj,subrarr:vj,subset:bj,Subset:yj,subseteq:wj,subseteqq:xj,SubsetEqual:kj,subsetneq:Cj,subsetneqq:Aj,subsim:Ej,subsub:Tj,subsup:Sj,succapprox:Mj,succ:Oj,succcurlyeq:Nj,Succeeds:Dj,SucceedsEqual:Lj,SucceedsSlantEqual:Pj,SucceedsTilde:Ij,succeq:Rj,succnapprox:Fj,succneqq:zj,succnsim:jj,succsim:Bj,SuchThat:Uj,sum:Hj,Sum:qj,sung:Wj,sup1:_j,sup2:Gj,sup3:Vj,sup:Yj,Sup:Kj,supdot:Zj,supdsub:Xj,supE:Jj,supe:Qj,supedot:$j,Superset:eB,SupersetEqual:tB,suphsol:nB,suphsub:rB,suplarr:iB,supmult:oB,supnE:aB,supne:sB,supplus:lB,supset:cB,Supset:uB,supseteq:hB,supseteqq:dB,supsetneq:fB,supsetneqq:pB,supsim:mB,supsub:gB,supsup:vB,swarhk:bB,swarr:yB,swArr:wB,swarrow:xB,swnwar:kB,szlig:CB,Tab:AB,target:EB,Tau:TB,tau:SB,tbrk:MB,Tcaron:OB,tcaron:NB,Tcedil:DB,tcedil:LB,Tcy:PB,tcy:IB,tdot:RB,telrec:FB,Tfr:zB,tfr:jB,there4:BB,therefore:UB,Therefore:HB,Theta:qB,theta:WB,thetasym:_B,thetav:GB,thickapprox:VB,thicksim:YB,ThickSpace:KB,ThinSpace:ZB,thinsp:XB,thkap:JB,thksim:QB,THORN:$B,thorn:eU,tilde:tU,Tilde:nU,TildeEqual:rU,TildeFullEqual:iU,TildeTilde:oU,timesbar:aU,timesb:sU,times:lU,timesd:cU,tint:uU,toea:hU,topbot:dU,topcir:fU,top:pU,Topf:mU,topf:gU,topfork:vU,tosa:bU,tprime:yU,trade:wU,TRADE:xU,triangle:kU,triangledown:CU,triangleleft:AU,trianglelefteq:EU,triangleq:TU,triangleright:SU,trianglerighteq:MU,tridot:OU,trie:NU,triminus:DU,TripleDot:LU,triplus:PU,trisb:IU,tritime:RU,trpezium:FU,Tscr:zU,tscr:jU,TScy:BU,tscy:UU,TSHcy:HU,tshcy:qU,Tstrok:WU,tstrok:_U,twixt:GU,twoheadleftarrow:VU,twoheadrightarrow:YU,Uacute:KU,uacute:ZU,uarr:XU,Uarr:JU,uArr:QU,Uarrocir:$U,Ubrcy:eH,ubrcy:tH,Ubreve:nH,ubreve:rH,Ucirc:iH,ucirc:oH,Ucy:aH,ucy:sH,udarr:lH,Udblac:cH,udblac:uH,udhar:hH,ufisht:dH,Ufr:fH,ufr:pH,Ugrave:mH,ugrave:gH,uHar:vH,uharl:bH,uharr:yH,uhblk:wH,ulcorn:xH,ulcorner:kH,ulcrop:CH,ultri:AH,Umacr:EH,umacr:TH,uml:SH,UnderBar:MH,UnderBrace:OH,UnderBracket:NH,UnderParenthesis:DH,Union:LH,UnionPlus:PH,Uogon:IH,uogon:RH,Uopf:FH,uopf:zH,UpArrowBar:jH,uparrow:BH,UpArrow:UH,Uparrow:HH,UpArrowDownArrow:qH,updownarrow:WH,UpDownArrow:_H,Updownarrow:GH,UpEquilibrium:VH,upharpoonleft:YH,upharpoonright:KH,uplus:ZH,UpperLeftArrow:XH,UpperRightArrow:JH,upsi:QH,Upsi:$H,upsih:eq,Upsilon:tq,upsilon:nq,UpTeeArrow:rq,UpTee:iq,upuparrows:oq,urcorn:aq,urcorner:sq,urcrop:lq,Uring:cq,uring:uq,urtri:hq,Uscr:dq,uscr:fq,utdot:pq,Utilde:mq,utilde:gq,utri:vq,utrif:bq,uuarr:yq,Uuml:wq,uuml:xq,uwangle:kq,vangrt:Cq,varepsilon:Aq,varkappa:Eq,varnothing:Tq,varphi:Sq,varpi:Mq,varpropto:Oq,varr:Nq,vArr:Dq,varrho:Lq,varsigma:Pq,varsubsetneq:Iq,varsubsetneqq:Rq,varsupsetneq:Fq,varsupsetneqq:zq,vartheta:jq,vartriangleleft:Bq,vartriangleright:Uq,vBar:Hq,Vbar:qq,vBarv:Wq,Vcy:_q,vcy:Gq,vdash:Vq,vDash:Yq,Vdash:Kq,VDash:Zq,Vdashl:Xq,veebar:Jq,vee:Qq,Vee:$q,veeeq:eW,vellip:tW,verbar:nW,Verbar:rW,vert:iW,Vert:oW,VerticalBar:aW,VerticalLine:sW,VerticalSeparator:lW,VerticalTilde:cW,VeryThinSpace:uW,Vfr:hW,vfr:dW,vltri:fW,vnsub:pW,vnsup:mW,Vopf:gW,vopf:vW,vprop:bW,vrtri:yW,Vscr:wW,vscr:xW,vsubnE:kW,vsubne:CW,vsupnE:AW,vsupne:EW,Vvdash:TW,vzigzag:SW,Wcirc:MW,wcirc:OW,wedbar:NW,wedge:DW,Wedge:LW,wedgeq:PW,weierp:IW,Wfr:RW,wfr:FW,Wopf:zW,wopf:jW,wp:BW,wr:UW,wreath:HW,Wscr:qW,wscr:WW,xcap:_W,xcirc:GW,xcup:VW,xdtri:YW,Xfr:KW,xfr:ZW,xharr:XW,xhArr:JW,Xi:QW,xi:$W,xlarr:e_,xlArr:t_,xmap:n_,xnis:r_,xodot:i_,Xopf:o_,xopf:a_,xoplus:s_,xotime:l_,xrarr:c_,xrArr:u_,Xscr:h_,xscr:d_,xsqcup:f_,xuplus:p_,xutri:m_,xvee:g_,xwedge:v_,Yacute:b_,yacute:y_,YAcy:w_,yacy:x_,Ycirc:k_,ycirc:C_,Ycy:A_,ycy:E_,yen:T_,Yfr:S_,yfr:M_,YIcy:O_,yicy:N_,Yopf:D_,yopf:L_,Yscr:P_,yscr:I_,YUcy:R_,yucy:F_,yuml:z_,Yuml:j_,Zacute:B_,zacute:U_,Zcaron:H_,zcaron:q_,Zcy:W_,zcy:__,Zdot:G_,zdot:V_,zeetrf:Y_,ZeroWidthSpace:K_,Zeta:Z_,zeta:X_,zfr:J_,Zfr:Q_,ZHcy:$_,zhcy:eG,zigrarr:tG,zopf:nG,Zopf:rG,Zscr:iG,zscr:oG,zwj:aG,zwnj:sG},cG="Á",uG="á",hG="Â",dG="â",fG="´",pG="Æ",mG="æ",gG="À",vG="à",bG="&",yG="&",wG="Å",xG="å",kG="Ã",CG="ã",AG="Ä",EG="ä",TG="¦",SG="Ç",MG="ç",OG="¸",NG="¢",DG="©",LG="©",PG="¤",IG="°",RG="÷",FG="É",zG="é",jG="Ê",BG="ê",UG="È",HG="è",qG="Ð",WG="ð",_G="Ë",GG="ë",VG="½",YG="¼",KG="¾",ZG=">",XG=">",JG="Í",QG="í",$G="Î",eV="î",tV="¡",nV="Ì",rV="ì",iV="¿",oV="Ï",aV="ï",sV="«",lV="<",cV="<",uV="¯",hV="µ",dV="·",fV=" ",pV="¬",mV="Ñ",gV="ñ",vV="Ó",bV="ó",yV="Ô",wV="ô",xV="Ò",kV="ò",CV="ª",AV="º",EV="Ø",TV="ø",SV="Õ",MV="õ",OV="Ö",NV="ö",DV="¶",LV="±",PV="£",IV='"',RV='"',FV="»",zV="®",jV="®",BV="§",UV="­",HV="¹",qV="²",WV="³",_V="ß",GV="Þ",VV="þ",YV="×",KV="Ú",ZV="ú",XV="Û",JV="û",QV="Ù",$V="ù",eY="¨",tY="Ü",nY="ü",rY="Ý",iY="ý",oY="¥",aY="ÿ",sY={Aacute:cG,aacute:uG,Acirc:hG,acirc:dG,acute:fG,AElig:pG,aelig:mG,Agrave:gG,agrave:vG,amp:bG,AMP:yG,Aring:wG,aring:xG,Atilde:kG,atilde:CG,Auml:AG,auml:EG,brvbar:TG,Ccedil:SG,ccedil:MG,cedil:OG,cent:NG,copy:DG,COPY:LG,curren:PG,deg:IG,divide:RG,Eacute:FG,eacute:zG,Ecirc:jG,ecirc:BG,Egrave:UG,egrave:HG,ETH:qG,eth:WG,Euml:_G,euml:GG,frac12:VG,frac14:YG,frac34:KG,gt:ZG,GT:XG,Iacute:JG,iacute:QG,Icirc:$G,icirc:eV,iexcl:tV,Igrave:nV,igrave:rV,iquest:iV,Iuml:oV,iuml:aV,laquo:sV,lt:lV,LT:cV,macr:uV,micro:hV,middot:dV,nbsp:fV,not:pV,Ntilde:mV,ntilde:gV,Oacute:vV,oacute:bV,Ocirc:yV,ocirc:wV,Ograve:xV,ograve:kV,ordf:CV,ordm:AV,Oslash:EV,oslash:TV,Otilde:SV,otilde:MV,Ouml:OV,ouml:NV,para:DV,plusmn:LV,pound:PV,quot:IV,QUOT:RV,raquo:FV,reg:zV,REG:jV,sect:BV,shy:UV,sup1:HV,sup2:qV,sup3:WV,szlig:_V,THORN:GV,thorn:VV,times:YV,Uacute:KV,uacute:ZV,Ucirc:XV,ucirc:JV,Ugrave:QV,ugrave:$V,uml:eY,Uuml:tY,uuml:nY,Yacute:rY,yacute:iY,yen:oY,yuml:aY},lY="&",cY="'",uY=">",hY="<",dY='"',fY={amp:lY,apos:cY,gt:uY,lt:hY,quot:dY},pY={},mY={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},gY=zo&&zo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pY,"__esModule",{value:!0});var vY=gY(mY),bY=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function yY(e){return e>=55296&&e<=57343||e>1114111?"�":(e in vY.default&&(e=vY.default[e]),bY(e))}pY.default=yY;var wY=zo&&zo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.decodeHTML=Wo.decodeHTMLStrict=Wo.decodeXML=void 0;var xY=wY(lG),kY=wY(sY),CY=wY(fY),AY=wY(pY),EY=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function TY(e){var t=MY(e);return function(e){return String(e).replace(EY,t)}}Wo.decodeXML=TY(CY.default),Wo.decodeHTMLStrict=TY(xY.default);var SY=function(e,t){return e1?UY(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function qY(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(BY,HY)}}var WY=new RegExp(PY.source+"|"+BY.source,"g");function _Y(e){return e.replace(WY,HY)}function GY(e){return e.replace(PY,HY)}function VY(e){return function(t){return t.replace(WY,(function(t){return e[t]||HY(t)}))}}OY.escape=_Y,OY.escapeUTF8=GY,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Wo,n=OY;function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}function o(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.decode=r,e.decodeStrict=i,e.encode=o;var a=OY;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=Wo;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}(qo);var YY="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",KY=92,ZY=/[\\&]/,XY="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",JY=new RegExp("\\\\"+XY+"|"+YY,"gi"),QY='[&<>"]',$Y=new RegExp(QY,"g"),eK=function(e){return e.charCodeAt(0)===KY?e.charAt(1):qo.decodeHTML(e)};function tK(e){return ZY.test(e)?e.replace(JY,eK):e}function nK(e){try{return Ho(e)}catch(t){return e}}function rK(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}}function iK(e){return $Y.test(e)?e.replace($Y,rK):e}function oK(e,t){for(var n=[],r=0;r`\\x00-\\x20]+",HK="'[^']*'",qK='"[^"]*"',WK="(?:"+UK+"|"+HK+"|"+qK+")",_K="(?:\\s*=\\s*"+WK+")",GK="(?:\\s+"+BK+_K+"?)",VK="<"+jK+GK+"*\\s*/?>",YK="]",KK="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",ZK="[<][?].*?[?][>]",XK="]*>",JK="",QK="(?:"+VK+"|"+YK+"|"+KK+"|"+ZK+"|"+XK+"|"+JK+")",$K=new RegExp("^"+QK,"i");if(String.fromCodePoint)zK=function(e){try{return String.fromCodePoint(e)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t}};else{var eZ=String.fromCharCode,tZ=Math.floor;zK=function(){for(var e=[],t=0;t1114111||tZ(c)!==c)return String.fromCharCode(65533);c<=65535?o.push(c):(c-=65536,n=55296+(c>>10),r=c%1024+56320,o.push(n,r)),(a+1===s||o.length>i)&&(l+=eZ.apply(void 0,o),o.length=0)}return l}}var nZ=zK,rZ="(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+",iZ="[^<\\s]*[^a&&h.push(FK(i.substring(a,m[0]),u(a,m[0]-1)));var b=SK("link",u.apply(void 0,m));b.appendChild(FK(v,u.apply(void 0,m))),b.destination=g,b.extendedAutolink=!0,h.push(b),a=m[1]+1}a?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),zZ=new RegExp('^(?:"('+RZ+'|[^"\\x00])*"|\'('+RZ+"|[^'\\x00])*'|\\(("+RZ+"|[^()\\x00])*\\))"),jZ=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,BZ=new RegExp("^"+XY),UZ=new RegExp("^"+YY,"i"),HZ=/`+/,qZ=/^`+/,WZ=/\.\.\./g,_Z=/--+/g,GZ=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,VZ=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,YZ=/^ *(?:\n *)?/,KZ=/^[ \t\n\x0b\x0c\x0d]/,ZZ=/^\s/,XZ=/ *$/,JZ=/^ */,QZ=/^ *(?:\n|$)/,$Z=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,eX=/^[^\n`\[\]\\!<&*_'"~$]+/m,tX=function(){function e(e){this.subject="",this.delimiters=null,this.brackets=null,this.pos=0,this.lineStartNum=0,this.lineIdx=0,this.lineOffsets=[0],this.linePosOffset=0,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.options=e}return e.prototype.sourcepos=function(e,t){var n=this.linePosOffset+this.lineOffsets[this.lineIdx],r=this.lineStartNum+this.lineIdx,i=[r,e+n];return"number"===typeof t?[i,[r,t+n]]:i},e.prototype.nextLine=function(){this.lineIdx+=1,this.linePosOffset=-this.pos},e.prototype.match=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},e.prototype.peek=function(){return this.pos1){var l=dZ(s);this.lineIdx+=s.length-1,this.linePosOffset=-(this.pos-l.length-n.length),a[1]=this.sourcepos(this.pos),o=s.join(" ")}var c=SK("code",a);return o.length>0&&null!==o.match(/[^ ]/)&&" "==o[0]&&" "==o[o.length-1]?c.literal=o.slice(1,o.length-1):c.literal=o,c.tickCount=n.length,e.appendChild(c),!0}return this.pos=i,e.appendChild(FK(n,this.sourcepos(t,this.pos-1))),!0},e.prototype.parseBackslash=function(e){var t,n=this.subject;this.pos+=1;var r=this.pos;return this.peek()===bZ?(this.pos+=1,t=SK("linebreak",this.sourcepos(this.pos-1,this.pos)),e.appendChild(t),this.nextLine()):BZ.test(n.charAt(this.pos))?(e.appendChild(FK(n.charAt(this.pos),this.sourcepos(r,this.pos))),this.pos+=1):e.appendChild(FK("\\",this.sourcepos(r,r))),!0},e.prototype.parseAutolink=function(e){var t,n,r,i=this.pos+1;return(t=this.match(GZ))?(n=t.slice(1,t.length-1),r=SK("link",this.sourcepos(i,this.pos)),r.destination=nK("mailto:"+n),r.title="",r.appendChild(FK(n,this.sourcepos(i+1,this.pos-1))),e.appendChild(r),!0):!!(t=this.match(VZ))&&(n=t.slice(1,t.length-1),r=SK("link",this.sourcepos(i,this.pos)),r.destination=nK(n),r.title="",r.appendChild(FK(n,this.sourcepos(i+1,this.pos-1))),e.appendChild(r),!0)},e.prototype.parseHtmlTag=function(e){var t=this.pos+1,n=this.match($K);if(null===n)return!1;var r=SK("htmlInline",this.sourcepos(t,this.pos));return r.literal=n,e.appendChild(r),!0},e.prototype.scanDelims=function(e){var t=0,n=this.pos;if(e===LZ||e===PZ)t++,this.pos++;else while(this.peek()===e)t++,this.pos++;if(0===t||t<2&&(e===AZ||e===IZ))return this.pos=n,null;var r,i=0===n?"\n":this.subject.charAt(n-1),o=this.peek();r=-1===o?"\n":nZ(o);var a,s,l=ZZ.test(r),c=FZ.test(r),u=ZZ.test(i),h=FZ.test(i),d=!l&&(!c||u||h),f=!u&&(!h||l||c);return e===wZ?(a=d&&(!f||h),s=f&&(!d||c)):e===LZ||e===PZ?(a=d&&!f,s=f):e===IZ?(a=!l,s=!u):(a=d,s=f),this.pos=n,{numdelims:t,canOpen:a,canClose:s}},e.prototype.handleDelim=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var r,i=n.numdelims,o=this.pos+1;this.pos+=i,r=e===LZ?"’":e===PZ?"“":this.subject.slice(o-1,this.pos);var a=FK(r,this.sourcepos(o,this.pos));return t.appendChild(a),(n.canOpen||n.canClose)&&(this.options.smart||e!==LZ&&e!==PZ)&&(this.delimiters={cc:e,numdelims:i,origdelims:i,node:a,previous:this.delimiters,next:null,canOpen:n.canOpen,canClose:n.canClose},this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},e.prototype.removeDelimiter=function(e){null!==e.previous&&(e.previous.next=e.next),null===e.next?this.delimiters=e.previous:e.next.previous=e.previous},e.prototype.removeDelimitersBetween=function(e,t){e.next!==t&&(e.next=t,t.previous=e)},e.prototype.processEmphasis=function(e){var t,n,r,i,o,a,s,l=!1,c=(t={},t[wZ]=[e,e,e],t[yZ]=[e,e,e],t[LZ]=[e],t[PZ]=[e],t[AZ]=[e],t[IZ]=[e],t);r=this.delimiters;while(null!==r&&r.previous!==e)r=r.previous;while(null!==r){var u=r.cc,h=u===wZ||u===yZ;if(r.canClose){n=r.previous,s=!1;while(null!==n&&n!==e&&n!==c[u][h?r.origdelims%3:0]){if(l=h&&(r.canOpen||n.canClose)&&r.origdelims%3!==0&&(n.origdelims+r.origdelims)%3===0,n.cc===r.cc&&n.canOpen&&!l){s=!0;break}n=n.previous}if(i=r,h||u===AZ||u===IZ)if(s){if(n){var d=r.numdelims>=2&&n.numdelims>=2?2:1,f=h?0:1;o=n.node,a=r.node;var p=h?1===d?"emph":"strong":"strike";u===IZ&&(p="customInline");var m=SK(p),g=o.sourcepos[1],v=a.sourcepos[0];m.sourcepos=[[g[0],g[1]-d+1],[v[0],v[1]+d-1]],o.sourcepos[1][1]-=d,a.sourcepos[0][1]+=d,o.literal=o.literal.slice(d),a.literal=a.literal.slice(d),n.numdelims-=d,r.numdelims-=d;var b=o.next,y=void 0;while(b&&b!==a)y=b.next,b.unlink(),m.appendChild(b),b=y;if(u===IZ){var w=m.firstChild,x=w.literal||"",k=x.split(/\s/)[0];m.info=k,x.length<=k.length?w.unlink():(w.sourcepos[0][1]+=k.length,w.literal=x.replace(k+" ",""))}if(o.insertAfter(m),this.removeDelimitersBetween(n,r),n.numdelims<=f&&(0===n.numdelims&&o.unlink(),this.removeDelimiter(n)),r.numdelims<=f){0===r.numdelims&&a.unlink();var C=r.next;this.removeDelimiter(r),r=C}}}else r=r.next;else u===LZ?(r.node.literal="’",s&&(n.node.literal="‘"),r=r.next):u===PZ&&(r.node.literal="”",s&&(n.node.literal="“"),r=r.next);s||(c[u][h?i.origdelims%3:0]=i.previous,i.canOpen||this.removeDelimiter(i))}else r=r.next}while(null!==this.delimiters&&this.delimiters!==e)this.removeDelimiter(this.delimiters)},e.prototype.parseLinkTitle=function(){var e=this.match(zZ);return null===e?null:tK(e.substr(1,e.length-2))},e.prototype.parseLinkDestination=function(){var e=this.match(jZ);if(null===e){if(this.peek()===EZ)return null;var t=this.pos,n=0,r=void 0;while(-1!==(r=this.peek()))if(r===SZ&&BZ.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(r===OZ)this.pos+=1,n+=1;else if(r===NZ){if(n<1)break;this.pos+=1,n-=1}else{if(null!==KZ.exec(nZ(r)))break;this.pos+=1}return this.pos===t&&r!==NZ||0!==n?null:(e=this.subject.substr(t,this.pos-t),nK(tK(e)))}return nK(tK(e.substr(1,e.length-2)))},e.prototype.parseLinkLabel=function(){var e=this.match($Z);return null===e||e.length>1001?0:e.length},e.prototype.parseOpenBracket=function(e){var t=this.pos;this.pos+=1;var n=FK("[",this.sourcepos(this.pos,this.pos));return e.appendChild(n),this.addBracket(n,t,!1),!0},e.prototype.parseBang=function(e){var t=this.pos;if(this.pos+=1,this.peek()===kZ){this.pos+=1;var n=FK("![",this.sourcepos(this.pos-1,this.pos));e.appendChild(n),this.addBracket(n,t+1,!0)}else{n=FK("!",this.sourcepos(this.pos,this.pos));e.appendChild(n)}return!0},e.prototype.parseCloseBracket=function(e){var t=null,n=null,r=!1;this.pos+=1;var i=this.pos,o=this.brackets;if(null===o)return e.appendChild(FK("]",this.sourcepos(i,i))),!0;if(!o.active)return e.appendChild(FK("]",this.sourcepos(i,i))),this.removeBracket(),!0;var a=o.image,s=this.pos;this.peek()===OZ&&(this.pos++,this.spnl()&&null!==(t=this.parseLinkDestination())&&this.spnl()&&(KZ.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle()),1)&&this.spnl()&&this.peek()===NZ?(this.pos+=1,r=!0):this.pos=s);var l="";if(!r){var c=this.pos,u=this.parseLinkLabel();if(u>2?l=this.subject.slice(c,c+u):o.bracketAfter||(l=this.subject.slice(o.index,i)),0===u&&(this.pos=s),l){l=fZ(l);var h=this.refMap[l];h&&(t=h.destination,n=h.title,r=!0)}}if(r){var d=SK(a?"image":"link");d.destination=t,d.title=n||"",d.sourcepos=[o.startpos,this.sourcepos(this.pos)];var f=o.node.next,p=void 0;while(f)p=f.next,f.unlink(),d.appendChild(f),f=p;if(e.appendChild(d),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!a){o=this.brackets;while(null!==o)o.image||(o.active=!1),o=o.previous}return this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:l}),!0}return this.removeBracket(),this.pos=i,e.appendChild(FK("]",this.sourcepos(i,i))),this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:l}),!0},e.prototype.addBracket=function(e,t,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:e,startpos:this.sourcepos(t+(n?0:1)),previous:this.brackets,previousDelimiter:this.delimiters,index:t,image:n,active:!0}},e.prototype.removeBracket=function(){this.brackets&&(this.brackets=this.brackets.previous)},e.prototype.parseEntity=function(e){var t,n=this.pos+1;return!!(t=this.match(UZ))&&(e.appendChild(FK(qo.decodeHTML(t),this.sourcepos(n,this.pos))),!0)},e.prototype.parseString=function(e){var t,n=this.pos+1;if(t=this.match(eX)){if(this.options.smart){var r=t.replace(WZ,"…").replace(_Z,(function(e){var t=0,n=0;return e.length%3===0?n=e.length/3:e.length%2===0?t=e.length/2:e.length%3===2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),oK("—",n)+oK("–",t)}));e.appendChild(FK(r,this.sourcepos(n,this.pos)))}else{var i=FK(t,this.sourcepos(n,this.pos));e.appendChild(i)}return!0}return!1},e.prototype.parseNewline=function(e){this.pos+=1;var t=e.lastChild;if(t&&"text"===t.type&&" "===t.literal[t.literal.length-1]){var n=" "===t.literal[t.literal.length-2],r=t.literal.length;t.literal=t.literal.replace(XZ,"");var i=r-t.literal.length;t.sourcepos[1][1]-=i,e.appendChild(SK(n?"linebreak":"softbreak",this.sourcepos(this.pos-i,this.pos)))}else e.appendChild(SK("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(JZ),!0},e.prototype.parseReference=function(e,t){if(!this.options.referenceDefinition)return 0;this.subject=e.stringContent,this.pos=0;var n=null,r=this.pos,i=this.parseLinkLabel();if(0===i)return 0;var o=this.subject.substr(0,i);if(this.peek()!==DZ)return this.pos=r,0;this.pos++,this.spnl();var a=this.parseLinkDestination();if(null===a)return this.pos=r,0;var s=this.pos;this.spnl(),this.pos!==s&&(n=this.parseLinkTitle()),null===n&&(n="",this.pos=s);var l=!0;if(null===this.match(QZ)&&(""===n?l=!1:(n="",this.pos=s,l=null!==this.match(QZ))),!l)return this.pos=r,0;var c=fZ(o);if(""===c)return this.pos=r,0;var u=this.getReferenceDefSourcepos(e);e.sourcepos[0][0]=u[1][0]+1;var h=SK("refDef",u);return h.title=n,h.dest=a,h.label=c,e.insertBefore(h),t[c]?this.refDefCandidateMap[h.id]=h:t[c]=BJ(h),this.pos-r},e.prototype.mergeTextNodes=function(e){var t,n=[];while(t=e.next()){var r=t.entering,i=t.node;if(r&&"text"===i.type)n.push(i);else if(1===n.length)n=[];else if(n.length>1){var o=n[0],a=n[n.length-1];o.sourcepos&&a.sourcepos&&(o.sourcepos[1]=a.sourcepos[1]),o.next=a.next,o.next&&(o.next.prev=o);for(var s=1;s0&&kX(wX(n,e.offset)))e.advanceOffset(1,!0),i--;return 0},finalize:function(e,t){if(null!==t.stringContent){var n=t.stringContent,r=n.indexOf("\n"),i=n.slice(0,r),o=n.slice(r+1),a=i.match(/^(\s*)(.*)/);t.info=tK(a[2].trim()),t.literal=o,t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},EX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0},TX={continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},SX={continue:function(){return 0},finalize:function(e,t){var n=t.firstChild;while(n){if(yX(n)&&n.next){t.listData.tight=!1;break}var r=n.firstChild;while(r){if(yX(r)&&(n.next||r.next)){t.listData.tight=!1;break}r=r.next}n=n.next}},canContain:function(e){return"item"===e},acceptsLines:!1},MX={continue:function(e){var t=e.currentLine;return e.indented||wX(t,e.nextNonspace)!==fX?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),kX(wX(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},OX={continue:function(e,t){if(e.blank){if(null===t.firstChild)return 1;e.advanceNextNonspace()}else{if(!(e.indent>=t.listData.markerOffset+t.listData.padding))return 1;e.advanceOffset(t.listData.markerOffset+t.listData.padding,!0)}return 0},finalize:rX,canContain:function(e){return"item"!==e},acceptsLines:!1},NX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},DX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},LX={continue:function(e,t){var n=e.currentLine,r=e.indent;if(t.isFenced){var i=r<=3&&n.charAt(e.nextNonspace)===t.fenceChar&&n.slice(e.nextNonspace).match(bX);if(i&&i[0].length>=t.fenceLength)return e.lastLineLength=e.offset+r+i[0].length,e.finalize(t,e.lineNumber),2;var o=t.fenceOffset;while(o>0&&kX(wX(n,e.offset)))e.advanceOffset(1,!0),o--}else if(r>=hX)e.advanceOffset(hX,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){var n;if(null!==t.stringContent){if(t.isFenced){var r=t.stringContent,i=r.indexOf("\n"),o=r.slice(0,i),a=r.slice(i+1),s=o.match(/^(\s*)(.*)/);t.infoPadding=s[1].length,t.info=tK(s[2].trim()),t.literal=a}else t.literal=null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,"\n");t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},PX={continue:function(e,t){return!e.blank||6!==t.htmlBlockType&&7!==t.htmlBlockType?0:1},finalize:function(e,t){var n;t.literal=(null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,""))||null,t.stringContent=null},canContain:function(){return!1},acceptsLines:!0},IX={continue:function(e){return e.blank?1:0},finalize:function(e,t){if(null!==t.stringContent){var n,r=!1;while(wX(t.stringContent,0)===gX&&(n=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(n),r=!0;r&&xX(t.stringContent)&&t.unlink()}},canContain:function(){return!1},acceptsLines:!0},RX=EX,FX=EX,zX={document:TX,list:SX,blockQuote:MX,item:OX,heading:NX,thematicBreak:DX,codeBlock:LX,htmlBlock:PX,paragraph:IX,table:iX,tableBody:oX,tableHead:aX,tableRow:cX,tableCell:uX,tableDelimRow:sX,tableDelimCell:lX,refDef:RX,customBlock:AX,frontMatter:FX};function jX(e){for(var t=0,n=0,r=[],i=0;i=o.columns.length&&(e.ignored=!0),i.appendChild(e)})),2},WX=/^(\$\$)(\s*[a-zA-Z])+/,_X=/^(\$\$)(\s*[a-zA-Z])+.*(\$\$)/,GX=function(e){var t;if(!e.indented&&!_X.test(e.currentLine)&&(t=e.currentLine.match(WX))){var n=t[1].length;e.closeUnmatchedBlocks();var r=e.addChild("customBlock",e.nextNonspace);return r.syntaxLength=n,r.offset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},VX=/^`{3,}(?!.*`)|^~{3,}/,YX=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^/,/\?>/,/>/,/\]\]>/],mJ=/^[#`~*+_=<>0-9-;$]/,gJ=/\r\n|\n|\r/;function vJ(){return SK("document",[[1,1],[0,0]])}var bJ={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null,frontMatter:!1},yJ=function(){function e(e){this.options=Ro(Ro({},bJ),e),this.doc=vJ(),this.tip=this.doc,this.oldtip=this.doc,this.lineNumber=0,this.offset=0,this.column=0,this.nextNonspace=0,this.nextNonspaceColumn=0,this.indent=0,this.currentLine="",this.indented=!1,this.blank=!1,this.partiallyConsumedTab=!1,this.allClosed=!0,this.lastMatchedContainer=this.doc,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.lastLineLength=0,this.lines=[],this.options.frontMatter&&(zX.frontMatter=fJ,uJ.unshift(dJ)),this.inlineParser=new tX(this.options)}return e.prototype.advanceOffset=function(e,t){void 0===t&&(t=!1);var n,r,i,o=this.currentLine;while(e>0&&(i=o[this.offset]))"\t"===i?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,r=n>e?e:n,this.column+=r,this.offset+=this.partiallyConsumedTab?0:1,e-=r):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},e.prototype.advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},e.prototype.findNextNonspace=function(){var e,t=this.currentLine,n=this.offset,r=this.column;while(""!==(e=t.charAt(n)))if(" "===e)n++,r++;else{if("\t"!==e)break;n++,r+=4-r%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=r,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=hX},e.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip.stringContent+=oK(" ",e)}this.tip.lineOffsets?this.tip.lineOffsets.push(this.offset):this.tip.lineOffsets=[this.offset],this.tip.stringContent+=this.currentLine.slice(this.offset)+"\n"},e.prototype.addChild=function(e,t){while(!zX[this.tip.type].canContain(e))this.finalize(this.tip,this.lineNumber-1);var n=t+1,r=SK(e,[[this.lineNumber,n],[0,0]]);return r.stringContent="",this.tip.appendChild(r),this.tip=r,r},e.prototype.closeUnmatchedBlocks=function(){if(!this.allClosed){while(this.oldtip!==this.lastMatchedContainer){var e=this.oldtip.parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},e.prototype.finalize=function(e,t){var n=e.parent;e.open=!1,e.sourcepos[1]=[t,this.lastLineLength],zX[e.type].finalize(this,e),this.tip=n},e.prototype.processInlines=function(e){var t,n=this.options.customParser,r=e.walker();this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;while(t=r.next()){var i=t.node,o=t.entering,a=i.type;n&&n[a]&&n[a](i,{entering:o,options:this.options}),o||"paragraph"!==a&&"heading"!==a&&("tableCell"!==a||i.ignored)||this.inlineParser.parse(i)}},e.prototype.incorporateLine=function(e){var t=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==e.indexOf("\0")&&(e=e.replace(/\0/g,"�")),this.currentLine=e;var n,r=!0;while((n=t.lastChild)&&n.open){switch(t=n,this.findNextNonspace(),zX[t.type]["continue"](this,t)){case 0:break;case 1:r=!1;break;case 2:return void(this.lastLineLength=e.length);default:throw new Error("continue returned illegal value, must be 0, 1, or 2")}if(!r){t=t.parent;break}}this.allClosed=t===this.oldtip,this.lastMatchedContainer=t;var i="paragraph"!==t.type&&zX[t.type].acceptsLines,o=uJ.length;while(!i){if(this.findNextNonspace(),"table"!==t.type&&"tableBody"!==t.type&&"paragraph"!==t.type&&!this.indented&&!mJ.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}var a=0;while(a=1&&t.htmlBlockType<=5&&pJ[t.htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(t,this.lineNumber))):this.offsett[0]?-1:e[1]t[1]?-1:0}function xJ(e,t){var n=e[0],r=e[1];return 1===wJ(r,t)?1:-1===wJ(n,t)?-1:0}function kJ(e,t){if(e.parent===t.parent&&e!==t){var n=e.next;while(n&&n!==t){for(var r=n.next,i=0,o=["parent","prev","next"];i=0;n-=1)e.prependChild(t[n])}function TJ(e,t){if(e&&e.parent&&0!==t){var n,r=e.parent.walker();r.resumeAt(e,!0);while(n=r.next()){var i=n.node,o=n.entering;o&&(i.sourcepos[0][0]+=t,i.sourcepos[1][0]+=t)}}}function SJ(e,t){var n=e[0],r=e[1];return r[0]t?-1:0}function MJ(e,t){var n=e.firstChild;while(n){var r=SJ(n.sourcepos,t);if(0===r)return n;if(-1===r)return n.prev||n;n=n.next}return e.lastChild}function OJ(e){while(e.lastChild)e=e.lastChild;return e}function NJ(e){while(e.parent&&"document"!==e.parent.type&&e.parent.sourcepos[0][0]===e.sourcepos[0][0])e=e.parent;return e}function DJ(e,t){var n=e.firstChild,r=null;while(n){var i=SJ(n.sourcepos,t);if(0===i){if(n.sourcepos[0][0]===t||!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)break;r=n,n=n.next}}return r?NJ(OJ(r)):null}function LJ(e,t){var n=e,r=null;while(n){var i=xJ(n.sourcepos,t);if(0===i){if(!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)return r;if(!n.next)return r;n=n.next}}return n}function PJ(e){return hK(e)||null}function IJ(e,t,n){if(void 0===n&&(n=null),t){var r=t.walker();while(t&&t!==n){e(t);var i=r.next();if(!i)break;t=i.node}}}function RJ(e){var t=PJ(e);if(!t)return!0;while(t&&"document"!==t.type){if(!t.parent&&!t.prev&&!t.next)return!0;t=t.parent}return!1}var FJ=/\r\n|\n|\r/;function zJ(e){var t=e.match(/^[ \t]+/);if(t&&(t[0].length>=2||/\t/.test(t[0])))return!0;var n=t?e.slice(t.length):e;return JX.test(n)||QX.test(n)}function jJ(e){return!xX(e)&&-1!==e.indexOf("|")}function BJ(e){var t=e.id,n=e.title,r=e.sourcepos,i=e.dest;return{id:t,title:n,sourcepos:r,unlinked:!1,destination:i}}var UJ=function(){function e(e,t){this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.referenceDefinition=!!(null===t||void 0===t?void 0:t.referenceDefinition),this.parser=new yJ(t),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},e=e||"",this.lineTexts=e.split(FJ),this.root=this.parser.parse(e,this.lineTexts)}return e.prototype.updateLineTexts=function(e,t,n){var r,i=e[0],o=e[1],a=t[0],s=t[1],l=n.split(FJ),c=l.length,u=this.lineTexts[i-1],h=this.lineTexts[a-1];l[0]=u.slice(0,o-1)+l[0],l[c-1]=l[c-1]+h.slice(s-1);var d=a-i+1;return(r=this.lineTexts).splice.apply(r,Fo([i-1,d],l)),c-d},e.prototype.updateRootNodeState=function(){if(1===this.lineTexts.length&&""===this.lineTexts[0])return this.root.lastLineBlank=!0,void(this.root.sourcepos=[[1,1],[1,0]]);this.root.lastChild&&(this.root.lastLineBlank=this.root.lastChild.lastLineBlank);var e=this.lineTexts,t=e.length-1;while(""===e[t])t-=1;e.length-2>t&&(t+=1),this.root.sourcepos[1]=[t+1,e[t].length]},e.prototype.replaceRangeNodes=function(e,t,n){e?(AJ(e,n),kJ(e,t),[e.id,t.id].forEach((function(e){return dK(e)})),e.unlink()):t?(AJ(t,n),dK(t.id),t.unlink()):EJ(this.root,n)},e.prototype.getNodeRange=function(e,t){var n=MJ(this.root,e[0]),r=MJ(this.root,t[0]);return r&&r.next&&t[0]+1===r.next.sourcepos[0][0]&&(r=r.next),[n,r]},e.prototype.trigger=function(e,t){this.eventHandlerMap[e].forEach((function(e){e(t)}))},e.prototype.extendEndLine=function(e){while(""===this.lineTexts[e])e+=1;return e},e.prototype.parseRange=function(e,t,n,r){e&&e.prev&&(DK(e.prev)&&zJ(this.lineTexts[n-1])||LK(e.prev)&&jJ(this.lineTexts[n-1]))&&(e=e.prev,n=e.sourcepos[0][0]);var i=this.lineTexts.slice(n-1,r),o=this.parser.partialParseStart(n,i),a=t?t.next:this.root.firstChild,s=o.lastChild,l=s&&MK(s)&&s.open,c=s&&IK(s)&&s.open,u=s&&DK(s);while((l||c)&&a||u&&a&&("list"===a.type||a.sourcepos[0][1]>=2)){var h=this.extendEndLine(a.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(r,h)),e||(e=t),t=a,r=h,a=a.next}this.parser.partialParseFinish();var d=CJ(o);return{newNodes:d,extStartNode:e,extEndNode:t}},e.prototype.getRemovedNodeRange=function(e,t){return!e||e&&PK(e)||t&&PK(t)?null:{id:[e.id,t.id],line:[e.sourcepos[0][0]-1,t.sourcepos[1][0]-1]}},e.prototype.markDeletedRefMap=function(e,t){var n=this;if(!gZ(this.refMap)){var r=function(e){if(PK(e)){var t=n.refMap[e.label];t&&e.id===t.id&&(t.unlinked=!0)}};e&&IJ(r,e.parent,t),t&&IJ(r,t)}},e.prototype.replaceWithNewRefDefState=function(e){var t=this;if(!gZ(this.refMap)){var n=function(e){if(PK(e)){var n=e.label,r=t.refMap[n];r&&!r.unlinked||(t.refMap[n]=BJ(e))}};e.forEach((function(e){IJ(n,e)}))}},e.prototype.replaceWithRefDefCandidate=function(){var e=this;gZ(this.refDefCandidateMap)||pZ(this.refDefCandidateMap,(function(t,n){var r=n.label,i=n.sourcepos,o=e.refMap[r];(!o||o.unlinked||o.sourcepos[0][0]>i[0][0])&&(e.refMap[r]=BJ(n))}))},e.prototype.getRangeWithRefDef=function(e,t,n,r,i){if(this.referenceDefinition&&!gZ(this.refMap)){var o=MJ(this.root,e-1),a=MJ(this.root,t+1);o&&PK(o)&&o!==n&&o!==r&&(n=o,e=n.sourcepos[0][0]),a&&PK(a)&&a!==n&&a!==r&&(r=a,t=this.extendEndLine(r.sourcepos[1][0]+i))}return[n,r,e,t]},e.prototype.parse=function(e,t,n){void 0===n&&(n=0);var r=this.getNodeRange(e,t),i=r[0],o=r[1],a=i?Math.min(i.sourcepos[0][0],e[0]):e[0],s=this.extendEndLine((o?Math.max(o.sourcepos[1][0],t[0]):t[0])+n),l=this.parseRange.apply(this,this.getRangeWithRefDef(a,s,i,o,n)),c=l.newNodes,u=l.extStartNode,h=l.extEndNode,d=this.getRemovedNodeRange(u,h),f=h?h.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(u,h),this.replaceRangeNodes(u,h,c),this.replaceWithNewRefDefState(c)):this.replaceRangeNodes(u,h,c),{nodes:c,removedNodeRange:d,nextNode:f}},e.prototype.parseRefLink=function(){var e=this,t=[];return gZ(this.refMap)||pZ(this.refMap,(function(n,r){r.unlinked&&delete e.refMap[n],pZ(e.refLinkCandidateMap,(function(r,i){var o=i.node,a=i.refLabel;a===n&&t.push(e.parse(o.sourcepos[0],o.sourcepos[1]))}))})),t},e.prototype.removeUnlinkedCandidate=function(){gZ(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){pZ(e,(function(t){RJ(t)&&delete e[t]}))}))},e.prototype.editMarkdown=function(e,t,n){var r=this.updateLineTexts(e,t,n),i=this.parse(e,t,r),o=mZ(i,"nextNode");TJ(i.nextNode,r),this.updateRootNodeState();var a=[o];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),a=a.concat(this.parseRefLink())),this.trigger("change",a),a},e.prototype.getLineTexts=function(){return this.lineTexts},e.prototype.getRootNode=function(){return this.root},e.prototype.findNodeAtPosition=function(e){var t=LJ(this.root,e);return t&&t!==this.root?t:null},e.prototype.findFirstNodeAtLine=function(e){return DJ(this.root,e)},e.prototype.on=function(e,t){this.eventHandlerMap[e].push(t)},e.prototype.off=function(e,t){var n=this.eventHandlerMap[e],r=n.indexOf(t);n.splice(r,1)},e.prototype.findNodeById=function(e){return PJ(e)},e.prototype.removeAllNode=function(){fK()},e}(),HJ=["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"],qJ=new RegExp("<(/?(?:"+HJ.join("|")+")[^>]*>)","ig");function WJ(e){return qJ.test(e)?e.replace(qJ,(function(e,t){return"<"+t})):e}var _J={heading:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"h"+e.level,outerNewLine:!0}},text:function(e){return{type:"text",content:e.literal}},softbreak:function(e,t){var n=t.options;return{type:"html",content:n.softbreak}},linebreak:function(){return{type:"html",content:"
\n"}},emph:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"em"}},strong:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"strong"}},paragraph:function(e,t){var n,r=t.entering,i=null===(n=e.parent)||void 0===n?void 0:n.parent;return i&&"list"===i.type&&i.listData.tight?null:{type:r?"openTag":"closeTag",tagName:"p",outerNewLine:!0}},thematicBreak:function(){return{type:"openTag",tagName:"hr",outerNewLine:!0,selfClose:!0}},blockQuote:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"blockquote",outerNewLine:!0,innerNewLine:!0}},list:function(e,t){var n=t.entering,r=e.listData,i=r.type,o=r.start,a="bullet"===i?"ul":"ol",s={};return"ol"===a&&null!==o&&1!==o&&(s.start=o.toString()),{type:n?"openTag":"closeTag",tagName:a,attributes:s,outerNewLine:!0}},item:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"li",outerNewLine:!0}},htmlInline:function(e,t){var n=t.options,r=n.tagFilter?WJ(e.literal):e.literal;return{type:"html",content:r}},htmlBlock:function(e,t){var n=t.options,r=n.tagFilter?WJ(e.literal):e.literal;return n.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:r},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:r,outerNewLine:!0}},code:function(e){return[{type:"openTag",tagName:"code"},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e.info,n=t?t.split(/\s+/):[],r=[];return n.length>0&&n[0].length>0&&r.push("language-"+iK(n[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:r},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre",outerNewLine:!0}]},link:function(e,t){var n=t.entering;if(n){var r=e,i=r.title,o=r.destination;return{type:"openTag",tagName:"a",attributes:Ro({href:iK(o)},i&&{title:iK(i)})}}return{type:"closeTag",tagName:"a"}},image:function(e,t){var n=t.getChildrenText,r=t.skipChildren,i=e,o=i.title,a=i.destination;return r(),{type:"openTag",tagName:"img",selfClose:!0,attributes:Ro({src:iK(a),alt:n(e)},o&&{title:iK(o)})}},customBlock:function(e,t,n){var r=e.info.trim().toLowerCase(),i=n[r];if(i)try{return i(e,t)}catch(o){console.warn("[@toast-ui/editor] - The error occurred when "+r+" block node was parsed in markdown renderer: "+o)}return[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},frontMatter:function(e){return[{type:"openTag",tagName:"div",outerNewLine:!0,attributes:{style:"white-space: pre; display: none;"}},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},customInline:function(e,t,n){var r=e,i=r.info,o=r.firstChild,a=i.trim().toLowerCase(),s=n[a],l=t.entering;if(s)try{return s(e,t)}catch(c){console.warn("[@toast-ui/editor] - The error occurred when "+a+" inline node was parsed in markdown renderer: "+c)}return l?[{type:"openTag",tagName:"span"},{type:"text",content:"$$"+i+(o?" ":"")}]:[{type:"text",content:"$$"},{type:"closeTag",tagName:"span"}]}},GJ={strike:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"del"}},item:function(e,t){var n=t.entering,r=e.listData,i=r.checked,o=r.task;if(n){var a={type:"openTag",tagName:"li",outerNewLine:!0};return o?[a,{type:"openTag",tagName:"input",selfClose:!0,attributes:Ro(Ro({},i&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:a}return{type:"closeTag",tagName:"li",outerNewLine:!0}},table:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"table",outerNewLine:!0}},tableHead:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"thead",outerNewLine:!0}},tableBody:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"tbody",outerNewLine:!0}},tableRow:function(e,t){var n=t.entering;if(n)return{type:"openTag",tagName:"tr",outerNewLine:!0};var r=[];if(e.lastChild)for(var i=e.parent.parent.columns.length,o=e.lastChild.endIdx,a=o+1;a0&&this.buffer.push(' class="'+r.join(" ")+'"'),i&&Object.keys(i).forEach((function(e){var n=i[e];t.buffer.push(" "+e+'="'+n+'"')})),e.selfClose&&this.buffer.push(" /"),this.buffer.push(">")},e.prototype.generateCloseTagString=function(e){var t=e.tagName;this.buffer.push("")},e.prototype.addNewLine=function(){this.buffer.length&&"\n"!==dZ(dZ(this.buffer))&&this.buffer.push("\n")},e.prototype.addOuterNewLine=function(e){e.outerNewLine&&this.addNewLine()},e.prototype.addInnerNewLine=function(e){e.innerNewLine&&this.addNewLine()},e.prototype.renderTextNode=function(e){this.buffer.push(iK(e.content))},e.prototype.renderRawHtmlNode=function(e){this.addOuterNewLine(e),this.buffer.push(e.content),this.addOuterNewLine(e)},e.prototype.renderElementNode=function(e){"openTag"===e.type?(this.addOuterNewLine(e),this.generateOpenTagString(e),e.selfClose?this.addOuterNewLine(e):this.addInnerNewLine(e)):(this.addInnerNewLine(e),this.generateCloseTagString(e),this.addOuterNewLine(e))},e}(); -/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */function ZJ(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),i=1;i/gm),RQ=nQ(/^data-[\-\w.\u00B7-\uFFFF]/),FQ=nQ(/^aria-[\-\w]+$/),zQ=nQ(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jQ=nQ(/^(?:\w+script|data):/i),BQ=nQ(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UQ="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function HQ(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:qQ(),t=function(e){return _Q(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,a=e.Node,s=e.Element,l=e.NodeFilter,c=e.NamedNodeMap,u=void 0===c?e.NamedNodeMap||e.MozNamedAttrMap:c,h=e.Text,d=e.Comment,f=e.DOMParser,p=e.trustedTypes,m=s.prototype,g=xQ(m,"cloneNode"),v=xQ(m,"nextSibling"),b=xQ(m,"childNodes"),y=xQ(m,"parentNode");if("function"===typeof o){var w=r.createElement("template");w.content&&w.content.ownerDocument&&(r=w.content.ownerDocument)}var x=WQ(p,n),k=x&&ee?x.createHTML(""):"",C=r,A=C.implementation,E=C.createNodeIterator,T=C.createDocumentFragment,S=C.getElementsByTagName,M=n.importNode,O={};try{O=wQ(r).documentMode?r.documentMode:{}}catch(Be){}var N={};t.isSupported="function"===typeof y&&A&&"undefined"!==typeof A.createHTMLDocument&&9!==O;var D=PQ,L=IQ,P=RQ,I=FQ,R=jQ,F=BQ,z=zQ,j=null,B=yQ({},[].concat(HQ(kQ),HQ(CQ),HQ(AQ),HQ(TQ),HQ(MQ))),U=null,H=yQ({},[].concat(HQ(OQ),HQ(NQ),HQ(DQ),HQ(LQ))),q=null,W=null,_=!0,G=!0,V=!1,Y=!1,K=!1,Z=!1,X=!1,J=!1,Q=!1,$=!0,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,ae=yQ({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),se=null,le=yQ({},["audio","video","img","source","image","track"]),ce=null,ue=yQ({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",de="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml",pe=fe,me=!1,ge=void 0,ve=["application/xhtml+xml","text/html"],be="text/html",ye=void 0,we=null,xe=r.createElement("form"),ke=function(e){we&&we===e||(e&&"object"===("undefined"===typeof e?"undefined":UQ(e))||(e={}),e=wQ(e),j="ALLOWED_TAGS"in e?yQ({},e.ALLOWED_TAGS):B,U="ALLOWED_ATTR"in e?yQ({},e.ALLOWED_ATTR):H,ce="ADD_URI_SAFE_ATTR"in e?yQ(wQ(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?yQ(wQ(le),e.ADD_DATA_URI_TAGS):le,oe="FORBID_CONTENTS"in e?yQ({},e.FORBID_CONTENTS):ae,q="FORBID_TAGS"in e?yQ({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?yQ({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,_=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,$=!1!==e.RETURN_DOM_IMPORT,ee=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,z=e.ALLOWED_URI_REGEXP||z,pe=e.NAMESPACE||fe,ge=ge=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?be:e.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ge?function(e){return e}:uQ,Y&&(G=!1),Q&&(J=!0),ie&&(j=yQ({},[].concat(HQ(MQ))),U=[],!0===ie.html&&(yQ(j,kQ),yQ(U,OQ)),!0===ie.svg&&(yQ(j,CQ),yQ(U,NQ),yQ(U,LQ)),!0===ie.svgFilters&&(yQ(j,AQ),yQ(U,NQ),yQ(U,LQ)),!0===ie.mathMl&&(yQ(j,TQ),yQ(U,DQ),yQ(U,LQ))),e.ADD_TAGS&&(j===B&&(j=wQ(j)),yQ(j,e.ADD_TAGS)),e.ADD_ATTR&&(U===H&&(U=wQ(U)),yQ(U,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&yQ(ce,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=wQ(oe)),yQ(oe,e.FORBID_CONTENTS)),ne&&(j["#text"]=!0),K&&yQ(j,["html","head","body"]),j.table&&(yQ(j,["tbody"]),delete q.tbody),tQ&&tQ(e),we=e)},Ce=yQ({},["mi","mo","mn","ms","mtext"]),Ae=yQ({},["foreignobject","desc","title","annotation-xml"]),Ee=yQ({},CQ);yQ(Ee,AQ),yQ(Ee,EQ);var Te=yQ({},TQ);yQ(Te,SQ);var Se=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:fe,tagName:"template"});var n=uQ(e.tagName),r=uQ(t.tagName);if(e.namespaceURI===de)return t.namespaceURI===fe?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||Ce[r]):Boolean(Ee[n]);if(e.namespaceURI===he)return t.namespaceURI===fe?"math"===n:t.namespaceURI===de?"math"===n&&Ae[r]:Boolean(Te[n]);if(e.namespaceURI===fe){if(t.namespaceURI===de&&!Ae[r])return!1;if(t.namespaceURI===he&&!Ce[r])return!1;var i=yQ({},["title","style","font","a","script"]);return!Te[n]&&(i[n]||!Ee[n])}return!1},Me=function(e){cQ(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Be){try{e.outerHTML=k}catch(Be){e.remove()}}},Oe=function(e,n){try{cQ(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(Be){cQ(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!U[e])if(J||Q)try{Me(n)}catch(Be){}else try{n.setAttribute(e,"")}catch(Be){}},Ne=function(e){var t=void 0,n=void 0;if(X)e=""+e;else{var i=hQ(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&(e=''+e+"");var o=x?x.createHTML(e):e;if(pe===fe)try{t=(new f).parseFromString(o,ge)}catch(Be){}if(!t||!t.documentElement){t=A.createDocument(pe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(Be){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),pe===fe?S.call(t,K?"html":"body")[0]:K?t.documentElement:a},De=function(e){return E.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Le=function(e){return!(e instanceof h||e instanceof d)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof u&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},Pe=function(e){return"object"===("undefined"===typeof a?"undefined":UQ(a))?e instanceof a:e&&"object"===("undefined"===typeof e?"undefined":UQ(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Ie=function(e,n,r){N[e]&&sQ(N[e],(function(e){e.call(t,n,r,we)}))},Re=function(e){var n=void 0;if(Ie("beforeSanitizeElements",e,null),Le(e))return Me(e),!0;if(hQ(e.nodeName,/[\u0080-\uFFFF]/))return Me(e),!0;var r=ye(e.nodeName);if(Ie("uponSanitizeElement",e,{tagName:r,allowedTags:j}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&mQ(/<[/\w]/g,e.innerHTML)&&mQ(/<[/\w]/g,e.textContent))return Me(e),!0;if("select"===r&&mQ(/