tenghui-ui 2.2.13 → 2.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- var Gu=Object.defineProperty,Ku=Object.defineProperties;var Vu=Object.getOwnPropertyDescriptors;var co=Object.getOwnPropertySymbols;var Yu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable;var ho=(Pe,we,Me)=>we in Pe?Gu(Pe,we,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Pe[we]=Me,Ne=(Pe,we)=>{for(var Me in we||(we={}))Yu.call(we,Me)&&ho(Pe,Me,we[Me]);if(co)for(var Me of co(we))Xu.call(we,Me)&&ho(Pe,Me,we[Me]);return Pe},yt=(Pe,we)=>Ku(Pe,Vu(we));(function(Pe,we){typeof exports=="object"&&typeof module!="undefined"?module.exports=we(require("vue")):typeof define=="function"&&define.amd?define(["vue"],we):(Pe=typeof globalThis!="undefined"?globalThis:Pe||self,Pe["tenghui-ui"]=we(Pe.Vue))})(this,function(Pe){"use strict";function we(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Me=we(Pe),Zu="",po=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},vo=[],Ju="";function Ae(e,r,n,t,o,i,s,c){var f=typeof e=="function"?e.options:e;r&&(f.render=r,f.staticRenderFns=n,f._compiled=!0),t&&(f.functional=!0),i&&(f._scopeId="data-v-"+i);var h;if(s?(h=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!a&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(a=__VUE_SSR_CONTEXT__),o&&o.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(s)},f._ssrRegister=h):o&&(h=c?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(f.functional){f._injectStyles=h;var d=f.render;f.render=function(l,m){return h.call(m),d(l,m)}}else{var u=f.beforeCreate;f.beforeCreate=u?[].concat(u,h):[h]}return{exports:e,options:f}}const yo={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},Ar={};var mo=Ae(yo,po,vo,!1,go,"183fe45a",null,null);function go(e){for(let r in Ar)this[r]=Ar[r]}var Yt=function(){return mo.exports}();Yt.install=e=>{e.component(Yt.name,Yt)};const Tr=Yt;var bo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(t){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(t){e.activePath=t},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(t,o){return[t.children?n("el-submenu",{attrs:{index:t.path||t.name}},[n("template",{slot:"title"},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(t.name))])]),e._l(t.children,function(i,s){return[i.children?n("el-submenu",{attrs:{index:i.path||i.name}},[n("template",{slot:"title"},[e._v(e._s(i.name))]),e._l(i.children,function(c,f){return n("el-menu-item",{key:c.name,attrs:{index:c.path||c.name}},[e._v(e._s(c.name))])})],2):n("el-menu-item",{attrs:{index:i.path||i.name}},[e._v(e._s(i.name))])]})],2):n("el-menu-item",{attrs:{index:t.path||t.name}},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.name))])])]})],2)],1)],1)},_o=[],Qu="";const Oo={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},Nr={};var So=Ae(Oo,bo,_o,!1,Eo,"0c59bf82",null,null);function Eo(e){for(let r in Nr)this[r]=Nr[r]}var Xt=function(){return So.exports}();Xt.install=e=>{e.component(Xt.name,Xt)};const kr=Xt;var xo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(t,o){return n("div",{key:t.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===t.path,"admin-tab__chrome-tab--hover":e.hoverItem==t.path},on:{click:function(i){return e.handleToggle(t.path)},mouseenter:function(i){return e.itemEnter(t.path)},mouseleave:function(i){return e.itemLeave(t.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(t.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(t.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:t.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(t.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(i){return i.stopPropagation(),e.handleDeleteTab(t.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==t.path||e.currentTab.path===t.path}})])}),0)])])},wo=[],ef="";const Ao={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const r="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?r:this.hoverItem==e?n:"#FFFFFF"}}},Cr={};var To=Ae(Ao,xo,wo,!1,No,"355ab970",null,null);function No(e){for(let r in Cr)this[r]=Cr[r]}var Zt=function(){return To.exports}();Zt.install=e=>{e.component(Zt.name,Zt)};const Pr=Zt;var ko=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(t){return e.handleOperation("theme",t)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(t){return n("el-dropdown-item",{key:t.value,attrs:{command:t.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:t.theme["@theme-color"]}}),n("span",[e._v(e._s(t.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],1)],1)],1)},Co=[],tf="";const Po={name:"ComTool",props:{themes:{type:Array,default(){return[]}}},methods:{handleOperation(e,r){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,r);break}}}},Ir={};var Io=Ae(Po,ko,Co,!1,Lo,"236d5a2a",null,null);function Lo(e){for(let r in Ir)this[r]=Ir[r]}var Jt=function(){return Io.exports}();Jt.install=e=>{e.component(Jt.name,Jt)};const Lr=Jt;var Do=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"",top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},Ro=[],nf="";const Mo={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)}}},Dr={};var $o=Ae(Mo,Do,Ro,!1,jo,"26b67942",null,null);function jo(e){for(let r in Dr)this[r]=Dr[r]}var Qt=function(){return $o.exports}();Qt.install=e=>{e.component(Qt.name,Qt)};const Rr=Qt,Mr={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},Fo=yt(Ne({},Mr),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",size:"small"}),Bo=yt(Ne({},Mr),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),qo={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:Bo,datetimerange:Fo,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",size:"small"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",size:"small"}};var Ho=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"||e.type=="password"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":e.multiple?"ui-select__popper--"+e.itemFlag:""},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},on:{"visible-change":e.visibleChange},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,"filter-method":e.filterMethod,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:["date","month"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="tree"?[n("el-select",{ref:"TreeSelect",attrs:{filterable:"","filter-method":e.handleTreeFilter},model:{value:e.treeCheck.value,callback:function(t){e.$set(e.treeCheck,"value",t)},expression:"treeCheck.value"}},[n("el-option",{staticStyle:{display:"none"},attrs:{label:e.treeCheck.label,value:e.treeCheck.value}}),n("el-tree",e._g(e._b({ref:"Tree",attrs:{data:e.options,"filter-node-method":e.handleTreeFilterNode},on:{"node-click":e.handleTreeClick},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,i=t.data;return[n("span",{staticClass:"custom-tree-node",class:{active:i.value==e.treeCheck.value}},[n("span",[e._v(e._s(o.label))])])]}}])},"el-tree",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="checkbox"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-checkbox-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-checkbox-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e._e()],2)])},Uo=[],af="";const zo={inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteMethod:{type:Function},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""},filterMethod:{type:Function},defaultTime:[Array,String]},data(){return{modelForm:this.model,bigOptions:[],staticOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[],modifyTime:0,treeCheck:{label:"",value:""}}},computed:{staticStyle(){return Ne({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:r,value:n}=this.props;e=this.options.map((t,o)=>{const i={label:t,value:o};return{label:i[r],value:Number.isFinite(Number(i[n]))?i[n].toString():i[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([r,n])=>({label:n,value:Number.isFinite(Number(r))?r.toString():r}));else{let r=[];r.push(...this.options),e=r.map(n=>({label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,150),this.filterOptions=this.selectOption.slice(0)},methods:{bigFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,150):n=JSON.parse(JSON.stringify(this.selectOption.slice(0,150))),this.bigOptions=n},visibleChange(e){if(!e)this.bigFilterMethod("");else{const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=150&&this.bigOptions.unshift(this.selectOption[r])}},getComponentSlots(e){const r=["label"],n={};return Object.entries(e).forEach(([t,o])=>{r.includes(t)||(n[t]=o)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return yt(Ne({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:r}=this,t=this.getformItemConfig()[r]||qo[r]||{};return Ne(Ne({},t),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const r=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=r&&r.querySelector(".ui-select__ope");n&&(n.style.width=`${r.offsetWidth-2}px`)},handleSelectCheck(e){e?this.modelForm=this.filterOptions.map(r=>r.value):this.modelForm=this.filterOptions.reduce((r,n)=>this.modelForm.includes(n.value)?r:[...r,n.value],[])},checkFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1):n=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=n},handleTreeClick(e,r){r.isLeaf&&(this.modelForm=e.value,this.treeCheck=e,this.$refs.TreeSelect.blur())},handleTreeFilter(e){console.log(e,"value"),console.log(this.$refs.Tree),this.$refs.Tree.filter(e)},handleTreeFilterNode(e,r){return e?r.label.toLowerCase().indexOf(e.toLowerCase())!==-1:!0}},watch:{modelForm(e){this.modifyTime=new Date().getTime(),this.$emit("changes",e)},model(e){this.modelForm=e},selectOption(e){this.bigOptions=e.slice(0,150),this.filterOptions=e.slice(0)}}},$r={};var Wo=Ae(zo,Ho,Uo,!1,Go,"4fefdbfc",null,null);function Go(e){for(let r in $r)this[r]=$r[r]}var en=function(){return Wo.exports}();en.install=e=>{e.component(en.name,en)};const jr=en;var Ko=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[e._l(e.showItems,function(t,o){return[n(t.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:t.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:t.type=="text"?"primary":t.type,icon:t.icon}},"component",e.$attrs,!1),t.$listeners),[e._v(" "+e._s(t.$slots.default[0].text)+" ")])]})],2)},Vo=[],lf="";const Yo={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},Fr={};var Xo=Ae(Yo,Ko,Vo,!1,Zo,"c24a1f4c",null,null);function Zo(e){for(let r in Fr)this[r]=Fr[r]}var Jo=function(){return Xo.exports}(),Qo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},ea=[],sf="";const ta={name:"ComOperation",components:{Items:Jo},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},Br={};var na=Ae(ta,Qo,ea,!1,ra,"3592f4b8",null,null);function ra(e){for(let r in Br)this[r]=Br[r]}var tn=function(){return na.exports}();tn.install=e=>{e.component(tn.name,tn)};const qr=tn;var Hr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zr(e){if(e.__esModule)return e;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),r}var Wr={exports:{}};/**!
1
+ var Gu=Object.defineProperty,Ku=Object.defineProperties;var Vu=Object.getOwnPropertyDescriptors;var co=Object.getOwnPropertySymbols;var Yu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable;var ho=(Pe,we,$e)=>we in Pe?Gu(Pe,we,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Pe[we]=$e,Ne=(Pe,we)=>{for(var $e in we||(we={}))Yu.call(we,$e)&&ho(Pe,$e,we[$e]);if(co)for(var $e of co(we))Xu.call(we,$e)&&ho(Pe,$e,we[$e]);return Pe},yt=(Pe,we)=>Ku(Pe,Vu(we));(function(Pe,we){typeof exports=="object"&&typeof module!="undefined"?module.exports=we(require("vue")):typeof define=="function"&&define.amd?define(["vue"],we):(Pe=typeof globalThis!="undefined"?globalThis:Pe||self,Pe["tenghui-ui"]=we(Pe.Vue))})(this,function(Pe){"use strict";function we(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var $e=we(Pe),Zu="",po=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},vo=[],Ju="";function Ae(e,r,n,t,o,i,s,c){var f=typeof e=="function"?e.options:e;r&&(f.render=r,f.staticRenderFns=n,f._compiled=!0),t&&(f.functional=!0),i&&(f._scopeId="data-v-"+i);var h;if(s?(h=function(a){a=a||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!a&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(a=__VUE_SSR_CONTEXT__),o&&o.call(this,a),a&&a._registeredComponents&&a._registeredComponents.add(s)},f._ssrRegister=h):o&&(h=c?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(f.functional){f._injectStyles=h;var d=f.render;f.render=function(l,m){return h.call(m),d(l,m)}}else{var u=f.beforeCreate;f.beforeCreate=u?[].concat(u,h):[h]}return{exports:e,options:f}}const yo={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},Ar={};var mo=Ae(yo,po,vo,!1,go,"183fe45a",null,null);function go(e){for(let r in Ar)this[r]=Ar[r]}var Yt=function(){return mo.exports}();Yt.install=e=>{e.component(Yt.name,Yt)};const Tr=Yt;var bo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(t){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(t){e.activePath=t},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(t,o){return[t.children?n("el-submenu",{attrs:{index:t.path||t.name}},[n("template",{slot:"title"},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(t.name))])]),e._l(t.children,function(i,s){return[i.children?n("el-submenu",{attrs:{index:i.path||i.name}},[n("template",{slot:"title"},[e._v(e._s(i.name))]),e._l(i.children,function(c,f){return n("el-menu-item",{key:c.name,attrs:{index:c.path||c.name}},[e._v(e._s(c.name))])})],2):n("el-menu-item",{attrs:{index:i.path||i.name}},[e._v(e._s(i.name))])]})],2):n("el-menu-item",{attrs:{index:t.path||t.name}},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.name))])])]})],2)],1)],1)},_o=[],Qu="";const Oo={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},Nr={};var So=Ae(Oo,bo,_o,!1,Eo,"0c59bf82",null,null);function Eo(e){for(let r in Nr)this[r]=Nr[r]}var Xt=function(){return So.exports}();Xt.install=e=>{e.component(Xt.name,Xt)};const kr=Xt;var xo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(t,o){return n("div",{key:t.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===t.path,"admin-tab__chrome-tab--hover":e.hoverItem==t.path},on:{click:function(i){return e.handleToggle(t.path)},mouseenter:function(i){return e.itemEnter(t.path)},mouseleave:function(i){return e.itemLeave(t.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(t.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(t.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:t.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(t.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(i){return i.stopPropagation(),e.handleDeleteTab(t.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==t.path||e.currentTab.path===t.path}})])}),0)])])},wo=[],ef="";const Ao={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const r="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?r:this.hoverItem==e?n:"#FFFFFF"}}},Cr={};var To=Ae(Ao,xo,wo,!1,No,"355ab970",null,null);function No(e){for(let r in Cr)this[r]=Cr[r]}var Zt=function(){return To.exports}();Zt.install=e=>{e.component(Zt.name,Zt)};const Pr=Zt;var ko=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(t){return e.handleOperation("theme",t)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(t){return n("el-dropdown-item",{key:t.value,attrs:{command:t.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:t.theme["@theme-color"]}}),n("span",[e._v(e._s(t.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],1)],1)],1)},Co=[],tf="";const Po={name:"ComTool",props:{themes:{type:Array,default(){return[]}}},methods:{handleOperation(e,r){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,r);break}}}},Ir={};var Io=Ae(Po,ko,Co,!1,Lo,"236d5a2a",null,null);function Lo(e){for(let r in Ir)this[r]=Ir[r]}var Jt=function(){return Io.exports}();Jt.install=e=>{e.component(Jt.name,Jt)};const Lr=Jt;var Do=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"",top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},Ro=[],nf="";const $o={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)}}},Dr={};var Mo=Ae($o,Do,Ro,!1,jo,"26b67942",null,null);function jo(e){for(let r in Dr)this[r]=Dr[r]}var Qt=function(){return Mo.exports}();Qt.install=e=>{e.component(Qt.name,Qt)};const Rr=Qt,$r={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},Fo=yt(Ne({},$r),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",size:"small"}),Bo=yt(Ne({},$r),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),qo={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:Bo,datetimerange:Fo,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",size:"small"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",size:"small"}};var Ho=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"||e.type=="password"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":e.multiple?"ui-select__popper--"+e.itemFlag:""},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},on:{"visible-change":e.visibleChange},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,"filter-method":e.filterMethod,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:["date","month"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="tree"?[n("el-select",{ref:"TreeSelect",attrs:{filterable:"","filter-method":e.handleTreeFilter},model:{value:e.treeCheck.value,callback:function(t){e.$set(e.treeCheck,"value",t)},expression:"treeCheck.value"}},[n("el-option",{staticStyle:{display:"none"},attrs:{label:e.treeCheck.label,value:e.treeCheck.value}}),n("el-tree",e._g(e._b({ref:"Tree",attrs:{data:e.options,"filter-node-method":e.handleTreeFilterNode},on:{"node-click":e.handleTreeClick},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,i=t.data;return[n("span",{staticClass:"custom-tree-node",class:{active:i.value==e.treeCheck.value}},[n("span",[e._v(e._s(o.label))])])]}}])},"el-tree",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="checkbox"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-checkbox-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-checkbox-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e._e()],2)])},Uo=[],af="";const zo={inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteMethod:{type:Function},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""},filterMethod:{type:Function},defaultTime:[Array,String]},data(){return{modelForm:this.model,bigOptions:[],staticOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[],modifyTime:0,treeCheck:{label:"",value:""}}},computed:{staticStyle(){return Ne({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:r,value:n}=this.props;e=this.options.map((t,o)=>{const i={label:t,value:o};return{label:i[r],value:Number.isFinite(Number(i[n]))?i[n].toString():i[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([r,n])=>({label:n,value:Number.isFinite(Number(r))?r.toString():r}));else{let r=[];r.push(...this.options),e=r.map(n=>({label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,150),this.filterOptions=this.selectOption.slice(0)},methods:{bigFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,150):n=JSON.parse(JSON.stringify(this.selectOption.slice(0,150))),this.bigOptions=n},visibleChange(e){if(!e)this.bigFilterMethod("");else{const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=150&&this.bigOptions.unshift(this.selectOption[r])}},getComponentSlots(e){const r=["label"],n={};return Object.entries(e).forEach(([t,o])=>{r.includes(t)||(n[t]=o)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return yt(Ne({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:r}=this,t=this.getformItemConfig()[r]||qo[r]||{};return Ne(Ne({},t),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const r=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=r&&r.querySelector(".ui-select__ope");n&&(n.style.width=`${r.offsetWidth-2}px`)},handleSelectCheck(e){e?this.modelForm=this.filterOptions.map(r=>r.value):this.modelForm=this.filterOptions.reduce((r,n)=>this.modelForm.includes(n.value)?r:[...r,n.value],[])},checkFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1):n=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=n},handleTreeClick(e,r){r.isLeaf&&(this.modelForm=e.value,this.treeCheck=e,this.$refs.TreeSelect.blur())},handleTreeFilter(e){console.log(e,"value"),console.log(this.$refs.Tree),this.$refs.Tree.filter(e)},handleTreeFilterNode(e,r){return e?r.label.toLowerCase().indexOf(e.toLowerCase())!==-1:!0}},watch:{modelForm(e){this.modifyTime=new Date().getTime(),this.$emit("changes",e)},model(e){this.modelForm=e},selectOption(e){this.bigOptions=e.slice(0,150),this.filterOptions=e.slice(0)}}},Mr={};var Wo=Ae(zo,Ho,Uo,!1,Go,"4fefdbfc",null,null);function Go(e){for(let r in Mr)this[r]=Mr[r]}var en=function(){return Wo.exports}();en.install=e=>{e.component(en.name,en)};const jr=en;var Ko=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[e._l(e.showItems,function(t,o){return[n(t.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:t.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:t.type=="text"?"primary":t.type,icon:t.icon}},"component",e.$attrs,!1),t.$listeners),[e._v(" "+e._s(t.$slots.default[0].text)+" ")])]})],2)},Vo=[],lf="";const Yo={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},Fr={};var Xo=Ae(Yo,Ko,Vo,!1,Zo,"c24a1f4c",null,null);function Zo(e){for(let r in Fr)this[r]=Fr[r]}var Jo=function(){return Xo.exports}(),Qo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},ea=[],sf="";const ta={name:"ComOperation",components:{Items:Jo},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},Br={};var na=Ae(ta,Qo,ea,!1,ra,"3592f4b8",null,null);function ra(e){for(let r in Br)this[r]=Br[r]}var tn=function(){return na.exports}();tn.install=e=>{e.component(tn.name,tn)};const qr=tn;var Hr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zr(e){if(e.__esModule)return e;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),r}var Wr={exports:{}};/**!
2
2
  * Sortable 1.10.2
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
5
5
  * @license MIT
6
- */function nn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nn=function(r){return typeof r}:nn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nn(e)}function ia(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function He(){return He=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},He.apply(this,arguments)}function tt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{},t=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),t.forEach(function(o){ia(e,o,n[o])})}return e}function oa(e,r){if(e==null)return{};var n={},t=Object.keys(e),o,i;for(i=0;i<t.length;i++)o=t[i],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function aa(e,r){if(e==null)return{};var n=oa(e,r),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(n[t]=e[t]))}return n}function la(e){return sa(e)||ua(e)||fa()}function sa(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function ua(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function fa(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var ca="1.10.2";function Ze(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Je=Ze(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Nt=Ze(/Edge/i),Gr=Ze(/firefox/i),Ln=Ze(/safari/i)&&!Ze(/chrome/i)&&!Ze(/android/i),Kr=Ze(/iP(ad|od|hone)/i),da=Ze(/chrome/i)&&Ze(/android/i),Vr={capture:!1,passive:!1};function fe(e,r,n){e.addEventListener(r,n,!Je&&Vr)}function ae(e,r,n){e.removeEventListener(r,n,!Je&&Vr)}function rn(e,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch{return!1}return!1}}function ha(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function We(e,r,n,t){if(e){n=n||document;do{if(r!=null&&(r[0]===">"?e.parentNode===n&&rn(e,r):rn(e,r))||t&&e===n)return e;if(e===n)break}while(e=ha(e))}return null}var Yr=/\s+/g;function ve(e,r,n){if(e&&r)if(e.classList)e.classList[n?"add":"remove"](r);else{var t=(" "+e.className+" ").replace(Yr," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(Yr," ")}}function ee(e,r,n){var t=e&&e.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function ft(e,r){var n="";if(typeof e=="string")n=e;else do{var t=ee(e,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Xr(e,r,n){if(e){var t=e.getElementsByTagName(r),o=0,i=t.length;if(n)for(;o<i;o++)n(t[o],o);return t}return[]}function Ve(){var e=document.scrollingElement;return e||document.documentElement}function ge(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,c,f,h,d,u;if(e!==window&&e!==Ve()?(i=e.getBoundingClientRect(),s=i.top,c=i.left,f=i.bottom,h=i.right,d=i.height,u=i.width):(s=0,c=0,f=window.innerHeight,h=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(r||n)&&e!==window&&(o=o||e.parentNode,!Je))do if(o&&o.getBoundingClientRect&&(ee(o,"transform")!=="none"||n&&ee(o,"position")!=="static")){var a=o.getBoundingClientRect();s-=a.top+parseInt(ee(o,"border-top-width")),c-=a.left+parseInt(ee(o,"border-left-width")),f=s+i.height,h=c+i.width;break}while(o=o.parentNode);if(t&&e!==window){var l=ft(o||e),m=l&&l.a,p=l&&l.d;l&&(s/=p,c/=m,u/=m,d/=p,f=s+d,h=c+u)}return{top:s,left:c,bottom:f,right:h,width:u,height:d}}}function Zr(e,r,n){for(var t=nt(e,!0),o=ge(e)[r];t;){var i=ge(t)[n],s=void 0;if(n==="top"||n==="left"?s=o>=i:s=o<=i,!s)return t;if(t===Ve())break;t=nt(t,!1)}return!1}function on(e,r,n){for(var t=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==te.ghost&&i[o]!==te.dragged&&We(i[o],n.draggable,e,!1)){if(t===r)return i[o];t++}o++}return null}function Dn(e,r){for(var n=e.lastElementChild;n&&(n===te.ghost||ee(n,"display")==="none"||r&&!rn(n,r));)n=n.previousElementSibling;return n||null}function be(e,r){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==te.clone&&(!r||rn(e,r))&&n++;return n}function Jr(e){var r=0,n=0,t=Ve();if(e)do{var o=ft(e),i=o.a,s=o.d;r+=e.scrollLeft*i,n+=e.scrollTop*s}while(e!==t&&(e=e.parentNode));return[r,n]}function pa(e,r){for(var n in e)if(!!e.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===e[n][t])return Number(n)}return-1}function nt(e,r){if(!e||!e.getBoundingClientRect)return Ve();var n=e,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=ee(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ve();if(t||r)return n;t=!0}}while(n=n.parentNode);return Ve()}function va(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function Rn(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}var kt;function Qr(e,r){return function(){if(!kt){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),kt=setTimeout(function(){kt=void 0},r)}}}function ya(){clearTimeout(kt),kt=void 0}function ei(e,r,n){e.scrollLeft+=r,e.scrollTop+=n}function Mn(e){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function ti(e,r){ee(e,"position","absolute"),ee(e,"top",r.top),ee(e,"left",r.left),ee(e,"width",r.width),ee(e,"height",r.height)}function $n(e){ee(e,"position",""),ee(e,"top",""),ee(e,"left",""),ee(e,"width",""),ee(e,"height","")}var Ie="Sortable"+new Date().getTime();function ma(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(ee(o,"display")==="none"||o===te.ghost)){e.push({target:o,rect:ge(o)});var i=tt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=ft(o,!0);s&&(i.top-=s.f,i.left-=s.e)}o.fromRect=i}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(pa(e,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var i=!1,s=0;e.forEach(function(c){var f=0,h=c.target,d=h.fromRect,u=ge(h),a=h.prevFromRect,l=h.prevToRect,m=c.rect,p=ft(h,!0);p&&(u.top-=p.f,u.left-=p.e),h.toRect=u,h.thisAnimationDuration&&Rn(a,u)&&!Rn(d,u)&&(m.top-u.top)/(m.left-u.left)==(d.top-u.top)/(d.left-u.left)&&(f=ba(m,a,l,o.options)),Rn(u,d)||(h.prevFromRect=d,h.prevToRect=u,f||(f=o.options.animation),o.animate(h,m,u,f)),f&&(i=!0,s=Math.max(s,f),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},f),h.thisAnimationDuration=f)}),clearTimeout(r),i?r=setTimeout(function(){typeof t=="function"&&t()},s):typeof t=="function"&&t(),e=[]},animate:function(t,o,i,s){if(s){ee(t,"transition",""),ee(t,"transform","");var c=ft(this.el),f=c&&c.a,h=c&&c.d,d=(o.left-i.left)/(f||1),u=(o.top-i.top)/(h||1);t.animatingX=!!d,t.animatingY=!!u,ee(t,"transform","translate3d("+d+"px,"+u+"px,0)"),ga(t),ee(t,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),ee(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){ee(t,"transition",""),ee(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},s)}}}}function ga(e){return e.offsetWidth}function ba(e,r,n,t){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var Ct=[],jn={initializeByDefault:!0},Pt={mount:function(r){for(var n in jn)jn.hasOwnProperty(n)&&!(n in r)&&(r[n]=jn[n]);Ct.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";Ct.forEach(function(s){!n[s.pluginName]||(n[s.pluginName][i]&&n[s.pluginName][i](tt({sortable:n},t)),n.options[s.pluginName]&&n[s.pluginName][r]&&n[s.pluginName][r](tt({sortable:n},t)))})},initializePlugins:function(r,n,t,o){Ct.forEach(function(c){var f=c.pluginName;if(!(!r.options[f]&&!c.initializeByDefault)){var h=new c(r,n,r.options);h.sortable=r,h.options=r.options,r[f]=h,He(t,h.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var s=this.modifyOption(r,i,r.options[i]);typeof s!="undefined"&&(r.options[i]=s)}},getEventProperties:function(r,n){var t={};return Ct.forEach(function(o){typeof o.eventProperties=="function"&&He(t,o.eventProperties.call(n[o.pluginName],r))}),t},modifyOption:function(r,n,t){var o;return Ct.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function It(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,c=e.fromEl,f=e.oldIndex,h=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,a=e.originalEvent,l=e.putSortable,m=e.extraEventProperties;if(r=r||n&&n[Ie],!!r){var p,b=r.options,y="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Je&&!Nt?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=s||n,p.from=c||n,p.item=o||n,p.clone=i,p.oldIndex=f,p.newIndex=h,p.oldDraggableIndex=d,p.newDraggableIndex=u,p.originalEvent=a,p.pullMode=l?l.lastPutMode:void 0;var g=tt({},m,Pt.getEventProperties(t,r));for(var _ in g)p[_]=g[_];n&&n.dispatchEvent(p),b[y]&&b[y].call(r,p)}}var $e=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=aa(t,["evt"]);Pt.pluginEvent.bind(te)(r,n,tt({dragEl:X,parentEl:Oe,ghostEl:ie,rootEl:ye,nextEl:ct,lastDownEl:an,cloneEl:_e,cloneHidden:rt,dragStarted:Dt,putSortable:ke,activeSortable:te.active,originalEvent:o,oldIndex:mt,oldDraggableIndex:Lt,newIndex:Fe,newDraggableIndex:it,hideGhostForTarget:si,unhideGhostForTarget:ui,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(c){Re({sortable:n,name:c,originalEvent:o})}},i))};function Re(e){It(tt({putSortable:ke,cloneEl:_e,targetEl:X,rootEl:ye,oldIndex:mt,oldDraggableIndex:Lt,newIndex:Fe,newDraggableIndex:it},e))}var X,Oe,ie,ye,ct,an,_e,rt,mt,Fe,Lt,it,ln,ke,gt=!1,sn=!1,un=[],dt,Ge,Fn,Bn,ni,ri,Dt,bt,Rt,Mt=!1,fn=!1,cn,Le,qn=[],Hn=!1,dn=[],hn=typeof document!="undefined",pn=Kr,ii=Nt||Je?"cssFloat":"float",_a=hn&&!da&&!Kr&&"draggable"in document.createElement("div"),oi=function(){if(!!hn){if(Je)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),ai=function(r,n){var t=ee(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=on(r,0,n),s=on(r,1,n),c=i&&ee(i),f=s&&ee(s),h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+ge(i).width,d=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+ge(s).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&c.float&&c.float!=="none"){var u=c.float==="left"?"left":"right";return s&&(f.clear==="both"||f.clear===u)?"vertical":"horizontal"}return i&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||h>=o&&t[ii]==="none"||s&&t[ii]==="none"&&h+d>o)?"vertical":"horizontal"},Oa=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,s=t?r.width:r.height,c=t?n.left:n.top,f=t?n.right:n.bottom,h=t?n.width:n.height;return o===c||i===f||o+s/2===c+h/2},Sa=function(r,n){var t;return un.some(function(o){if(!Dn(o)){var i=ge(o),s=o[Ie].options.emptyInsertThreshold,c=r>=i.left-s&&r<=i.right+s,f=n>=i.top-s&&n<=i.bottom+s;if(s&&c&&f)return t=o}}),t},li=function(r){function n(i,s){return function(c,f,h,d){var u=c.options.group.name&&f.options.group.name&&c.options.group.name===f.options.group.name;if(i==null&&(s||u))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(c,f,h,d),s)(c,f,h,d);var a=(s?c:f).options.group.name;return i===!0||typeof i=="string"&&i===a||i.join&&i.indexOf(a)>-1}}var t={},o=r.group;(!o||nn(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,r.group=t},si=function(){!oi&&ie&&ee(ie,"display","none")},ui=function(){!oi&&ie&&ee(ie,"display","")};hn&&document.addEventListener("click",function(e){if(sn)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),sn=!1,!1},!0);var ht=function(r){if(X){r=r.touches?r.touches[0]:r;var n=Sa(r.clientX,r.clientY);if(n){var t={};for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[Ie]._onDragOver(t)}}},Ea=function(r){X&&X.parentNode[Ie]._isOutsideThisEl(r.target)};function te(e,r){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=He({},r),e[Ie]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ai(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,c){s.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:te.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Pt.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);li(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:_a,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?fe(e,"pointerdown",this._onTapStart):(fe(e,"mousedown",this._onTapStart),fe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(fe(e,"dragover",this),fe(e,"dragenter",this)),un.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),He(this,ma())}te.prototype={constructor:te,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(bt=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,X):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,o=this.options,i=o.preventOnFilter,s=r.type,c=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,f=(c||r).target,h=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||f,d=o.filter;if(Ca(t),!X&&!(/mousedown|pointerdown/.test(s)&&r.button!==0||o.disabled)&&!h.isContentEditable&&(f=We(f,o.draggable,t,!1),!(f&&f.animated)&&an!==f)){if(mt=be(f),Lt=be(f,o.draggable),typeof d=="function"){if(d.call(this,r,f,this)){Re({sortable:n,rootEl:h,name:"filter",targetEl:f,toEl:t,fromEl:t}),$e("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(d&&(d=d.split(",").some(function(u){if(u=We(h,u.trim(),t,!1),u)return Re({sortable:n,rootEl:u,name:"filter",targetEl:f,fromEl:t,toEl:t}),$e("filter",n,{evt:r}),!0}),d)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!We(h,o.handle,t,!1)||this._prepareDragStart(r,c,f)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,s=o.options,c=i.ownerDocument,f;if(t&&!X&&t.parentNode===i){var h=ge(t);if(ye=i,X=t,Oe=X.parentNode,ct=X.nextSibling,an=t,ln=s.group,te.dragged=X,dt={target:X,clientX:(n||r).clientX,clientY:(n||r).clientY},ni=dt.clientX-h.left,ri=dt.clientY-h.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,X.style["will-change"]="all",f=function(){if($e("delayEnded",o,{evt:r}),te.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Gr&&o.nativeDraggable&&(X.draggable=!0),o._triggerDragStart(r,n),Re({sortable:o,name:"choose",originalEvent:r}),ve(X,s.chosenClass,!0)},s.ignore.split(",").forEach(function(d){Xr(X,d.trim(),zn)}),fe(c,"dragover",ht),fe(c,"mousemove",ht),fe(c,"touchmove",ht),fe(c,"mouseup",o._onDrop),fe(c,"touchend",o._onDrop),fe(c,"touchcancel",o._onDrop),Gr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),$e("delayStart",this,{evt:r}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Nt||Je))){if(te.eventCanceled){this._onDrop();return}fe(c,"mouseup",o._disableDelayedDrag),fe(c,"touchend",o._disableDelayedDrag),fe(c,"touchcancel",o._disableDelayedDrag),fe(c,"mousemove",o._delayedDragTouchMoveHandler),fe(c,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&fe(c,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(f,s.delay)}else f()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&zn(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._disableDelayedDrag),ae(r,"touchend",this._disableDelayedDrag),ae(r,"touchcancel",this._disableDelayedDrag),ae(r,"mousemove",this._delayedDragTouchMoveHandler),ae(r,"touchmove",this._delayedDragTouchMoveHandler),ae(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?fe(document,"pointermove",this._onTouchMove):n?fe(document,"touchmove",this._onTouchMove):fe(document,"mousemove",this._onTouchMove):(fe(X,"dragend",this),fe(ye,"dragstart",this._onDragStart));try{document.selection?vn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(gt=!1,ye&&X){$e("dragStarted",this,{evt:n}),this.nativeDraggable&&fe(document,"dragover",Ea);var t=this.options;!r&&ve(X,t.dragClass,!1),ve(X,t.ghostClass,!0),te.active=this,r&&this._appendGhost(),Re({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ge){this._lastX=Ge.clientX,this._lastY=Ge.clientY,si();for(var r=document.elementFromPoint(Ge.clientX,Ge.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Ge.clientX,Ge.clientY),r!==n);)n=r;if(X.parentNode[Ie]._isOutsideThisEl(r),n)do{if(n[Ie]){var t=void 0;if(t=n[Ie]._onDragOver({clientX:Ge.clientX,clientY:Ge.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);ui()}},_onTouchMove:function(r){if(dt){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,i=r.touches?r.touches[0]:r,s=ie&&ft(ie,!0),c=ie&&s&&s.a,f=ie&&s&&s.d,h=pn&&Le&&Jr(Le),d=(i.clientX-dt.clientX+o.x)/(c||1)+(h?h[0]-qn[0]:0)/(c||1),u=(i.clientY-dt.clientY+o.y)/(f||1)+(h?h[1]-qn[1]:0)/(f||1);if(!te.active&&!gt){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(ie){s?(s.e+=d-(Fn||0),s.f+=u-(Bn||0)):s={a:1,b:0,c:0,d:1,e:d,f:u};var a="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ee(ie,"webkitTransform",a),ee(ie,"mozTransform",a),ee(ie,"msTransform",a),ee(ie,"transform",a),Fn=d,Bn=u,Ge=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!ie){var r=this.options.fallbackOnBody?document.body:ye,n=ge(X,!0,pn,!0,r),t=this.options;if(pn){for(Le=r;ee(Le,"position")==="static"&&ee(Le,"transform")==="none"&&Le!==document;)Le=Le.parentNode;Le!==document.body&&Le!==document.documentElement?(Le===document&&(Le=Ve()),n.top+=Le.scrollTop,n.left+=Le.scrollLeft):Le=Ve(),qn=Jr(Le)}ie=X.cloneNode(!0),ve(ie,t.ghostClass,!1),ve(ie,t.fallbackClass,!0),ve(ie,t.dragClass,!0),ee(ie,"transition",""),ee(ie,"transform",""),ee(ie,"box-sizing","border-box"),ee(ie,"margin",0),ee(ie,"top",n.top),ee(ie,"left",n.left),ee(ie,"width",n.width),ee(ie,"height",n.height),ee(ie,"opacity","0.8"),ee(ie,"position",pn?"absolute":"fixed"),ee(ie,"zIndex","100000"),ee(ie,"pointerEvents","none"),te.ghost=ie,r.appendChild(ie),ee(ie,"transform-origin",ni/parseInt(ie.style.width)*100+"% "+ri/parseInt(ie.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,o=r.dataTransfer,i=t.options;if($e("dragStart",this,{evt:r}),te.eventCanceled){this._onDrop();return}$e("setupClone",this),te.eventCanceled||(_e=Mn(X),_e.draggable=!1,_e.style["will-change"]="",this._hideClone(),ve(_e,this.options.chosenClass,!1),te.clone=_e),t.cloneId=vn(function(){$e("clone",t),!te.eventCanceled&&(t.options.removeCloneOnHide||ye.insertBefore(_e,X),t._hideClone(),Re({sortable:t,name:"clone"}))}),!n&&ve(X,i.dragClass,!0),n?(sn=!0,t._loopId=setInterval(t._emulateDragOver,50)):(ae(document,"mouseup",t._onDrop),ae(document,"touchend",t._onDrop),ae(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,X)),fe(document,"drop",t),ee(X,"transform","translateZ(0)")),gt=!0,t._dragStartId=vn(t._dragStarted.bind(t,n,r)),fe(document,"selectstart",t),Dt=!0,Ln&&ee(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,s,c=this.options,f=c.group,h=te.active,d=ln===f,u=c.sort,a=ke||h,l,m=this,p=!1;if(Hn)return;function b(H,G){$e(H,m,tt({evt:r,isOwner:d,axis:l?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:u,fromSortable:a,target:t,completed:g,onMove:function(M,E){return Un(ye,n,X,o,M,ge(M),r,E)},changed:_},G))}function y(){b("dragOverAnimationCapture"),m.captureAnimationState(),m!==a&&a.captureAnimationState()}function g(H){return b("dragOverCompleted",{insertion:H}),H&&(d?h._hideClone():h._showClone(m),m!==a&&(ve(X,ke?ke.options.ghostClass:h.options.ghostClass,!1),ve(X,c.ghostClass,!0)),ke!==m&&m!==te.active?ke=m:m===te.active&&ke&&(ke=null),a===m&&(m._ignoreWhileAnimating=t),m.animateAll(function(){b("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==a&&(a.animateAll(),a._ignoreWhileAnimating=null)),(t===X&&!X.animated||t===n&&!t.animated)&&(bt=null),!c.dragoverBubble&&!r.rootEl&&t!==document&&(X.parentNode[Ie]._isOutsideThisEl(r.target),!H&&ht(r)),!c.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function _(){Fe=be(X),it=be(X,c.draggable),Re({sortable:m,name:"change",toEl:n,newIndex:Fe,newDraggableIndex:it,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=We(t,c.draggable,n,!0),b("dragOver"),te.eventCanceled)return p;if(X.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||m._ignoreWhileAnimating===t)return g(!1);if(sn=!1,h&&!c.disabled&&(d?u||(s=!ye.contains(X)):ke===this||(this.lastPutMode=ln.checkPull(this,h,X,r))&&f.checkPut(this,h,X,r))){if(l=this._getDirection(r,t)==="vertical",o=ge(X),b("dragOverValid"),te.eventCanceled)return p;if(s)return Oe=ye,y(),this._hideClone(),b("revert"),te.eventCanceled||(ct?ye.insertBefore(X,ct):ye.appendChild(X)),g(!0);var v=Dn(n,c.draggable);if(!v||Aa(r,l,this)&&!v.animated){if(v===X)return g(!1);if(v&&n===r.target&&(t=v),t&&(i=ge(t)),Un(ye,n,X,o,t,i,r,!!t)!==!1)return y(),n.appendChild(X),Oe=n,_(),g(!0)}else if(t.parentNode===n){i=ge(t);var O=0,k,T=X.parentNode!==n,A=!Oa(X.animated&&X.toRect||o,t.animated&&t.toRect||i,l),I=l?"top":"left",x=Zr(t,"top","top")||Zr(X,"top","top"),S=x?x.scrollTop:void 0;bt!==t&&(k=i[I],Mt=!1,fn=!A&&c.invertSwap||T),O=Ta(r,t,i,l,A?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,fn,bt===t);var w;if(O!==0){var C=be(X);do C-=O,w=Oe.children[C];while(w&&(ee(w,"display")==="none"||w===ie))}if(O===0||w===t)return g(!1);bt=t,Rt=O;var D=t.nextElementSibling,R=!1;R=O===1;var B=Un(ye,n,X,o,t,i,r,R);if(B!==!1)return(B===1||B===-1)&&(R=B===1),Hn=!0,setTimeout(wa,30),y(),R&&!D?n.appendChild(X):t.parentNode.insertBefore(X,R?D:t),x&&ei(x,0,S-x.scrollTop),Oe=X.parentNode,k!==void 0&&!fn&&(cn=Math.abs(k-ge(t)[I])),_(),g(!0)}if(n.contains(X))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ae(document,"mousemove",this._onTouchMove),ae(document,"touchmove",this._onTouchMove),ae(document,"pointermove",this._onTouchMove),ae(document,"dragover",ht),ae(document,"mousemove",ht),ae(document,"touchmove",ht)},_offUpEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._onDrop),ae(r,"touchend",this._onDrop),ae(r,"pointerup",this._onDrop),ae(r,"touchcancel",this._onDrop),ae(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(Fe=be(X),it=be(X,t.draggable),$e("drop",this,{evt:r}),Oe=X&&X.parentNode,Fe=be(X),it=be(X,t.draggable),te.eventCanceled){this._nulling();return}gt=!1,fn=!1,Mt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wn(this.cloneId),Wn(this._dragStartId),this.nativeDraggable&&(ae(document,"drop",this),ae(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ln&&ee(document.body,"user-select",""),ee(X,"transform",""),r&&(Dt&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),ie&&ie.parentNode&&ie.parentNode.removeChild(ie),(ye===Oe||ke&&ke.lastPutMode!=="clone")&&_e&&_e.parentNode&&_e.parentNode.removeChild(_e),X&&(this.nativeDraggable&&ae(X,"dragend",this),zn(X),X.style["will-change"]="",Dt&&!gt&&ve(X,ke?ke.options.ghostClass:this.options.ghostClass,!1),ve(X,this.options.chosenClass,!1),Re({sortable:this,name:"unchoose",toEl:Oe,newIndex:null,newDraggableIndex:null,originalEvent:r}),ye!==Oe?(Fe>=0&&(Re({rootEl:Oe,name:"add",toEl:Oe,fromEl:ye,originalEvent:r}),Re({sortable:this,name:"remove",toEl:Oe,originalEvent:r}),Re({rootEl:Oe,name:"sort",toEl:Oe,fromEl:ye,originalEvent:r}),Re({sortable:this,name:"sort",toEl:Oe,originalEvent:r})),ke&&ke.save()):Fe!==mt&&Fe>=0&&(Re({sortable:this,name:"update",toEl:Oe,originalEvent:r}),Re({sortable:this,name:"sort",toEl:Oe,originalEvent:r})),te.active&&((Fe==null||Fe===-1)&&(Fe=mt,it=Lt),Re({sortable:this,name:"end",toEl:Oe,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){$e("nulling",this),ye=X=Oe=ie=ct=_e=an=rt=dt=Ge=Dt=Fe=it=mt=Lt=bt=Rt=ke=ln=te.dragged=te.ghost=te.clone=te.active=null,dn.forEach(function(r){r.checked=!0}),dn.length=Fn=Bn=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":X&&(this._onDragOver(r),xa(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,o=0,i=t.length,s=this.options;o<i;o++)n=t[o],We(n,s.draggable,this.el,!1)&&r.push(n.getAttribute(s.dataIdAttr)||ka(n));return r},sort:function(r){var n={},t=this.el;this.toArray().forEach(function(o,i){var s=t.children[i];We(s,this.options.draggable,t,!1)&&(n[o]=s)},this),r.forEach(function(o){n[o]&&(t.removeChild(n[o]),t.appendChild(n[o]))})},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return We(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var o=Pt.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&li(t)},destroy:function(){$e("destroy",this);var r=this.el;r[Ie]=null,ae(r,"mousedown",this._onTapStart),ae(r,"touchstart",this._onTapStart),ae(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(ae(r,"dragover",this),ae(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),un.splice(un.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!rt){if($e("hideClone",this),te.eventCanceled)return;ee(_e,"display","none"),this.options.removeCloneOnHide&&_e.parentNode&&_e.parentNode.removeChild(_e),rt=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(rt){if($e("showClone",this),te.eventCanceled)return;ye.contains(X)&&!this.options.group.revertClone?ye.insertBefore(_e,X):ct?ye.insertBefore(_e,ct):ye.appendChild(_e),this.options.group.revertClone&&this.animate(X,_e),ee(_e,"display",""),rt=!1}}};function xa(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Un(e,r,n,t,o,i,s,c){var f,h=e[Ie],d=h.options.onMove,u;return window.CustomEvent&&!Je&&!Nt?f=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(f=document.createEvent("Event"),f.initEvent("move",!0,!0)),f.to=r,f.from=e,f.dragged=n,f.draggedRect=t,f.related=o||r,f.relatedRect=i||ge(r),f.willInsertAfter=c,f.originalEvent=s,e.dispatchEvent(f),d&&(u=d.call(h,f,s)),u}function zn(e){e.draggable=!1}function wa(){Hn=!1}function Aa(e,r,n){var t=ge(Dn(n.el,n.options.draggable)),o=10;return r?e.clientX>t.right+o||e.clientX<=t.right&&e.clientY>t.bottom&&e.clientX>=t.left:e.clientX>t.right&&e.clientY>t.top||e.clientX<=t.right&&e.clientY>t.bottom+o}function Ta(e,r,n,t,o,i,s,c){var f=t?e.clientY:e.clientX,h=t?n.height:n.width,d=t?n.top:n.left,u=t?n.bottom:n.right,a=!1;if(!s){if(c&&cn<h*o){if(!Mt&&(Rt===1?f>d+h*i/2:f<u-h*i/2)&&(Mt=!0),Mt)a=!0;else if(Rt===1?f<d+cn:f>u-cn)return-Rt}else if(f>d+h*(1-o)/2&&f<u-h*(1-o)/2)return Na(r)}return a=a||s,a&&(f<d+h*i/2||f>u-h*i/2)?f>d+h/2?1:-1:0}function Na(e){return be(X)<be(e)?1:-1}function ka(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function Ca(e){dn.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&dn.push(t)}}function vn(e){return setTimeout(e,0)}function Wn(e){return clearTimeout(e)}hn&&fe(document,"touchmove",function(e){(te.active||gt)&&e.cancelable&&e.preventDefault()}),te.utils={on:fe,off:ae,css:ee,find:Xr,is:function(r,n){return!!We(r,n,r,!1)},extend:va,throttle:Qr,closest:We,toggleClass:ve,clone:Mn,index:be,nextTick:vn,cancelNextTick:Wn,detectDirection:ai,getChild:on},te.get=function(e){return e[Ie]},te.mount=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(te.utils=tt({},te.utils,t.utils)),Pt.mount(t)})},te.create=function(e,r){return new te(e,r)},te.version=ca;var Se=[],$t,Gn,Kn=!1,Vn,Yn,yn,jt;function Pa(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return e.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?fe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?fe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?fe(document,"touchmove",this._handleFallbackAutoScroll):fe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ae(document,"dragover",this._handleAutoScroll):(ae(document,"pointermove",this._handleFallbackAutoScroll),ae(document,"touchmove",this._handleFallbackAutoScroll),ae(document,"mousemove",this._handleFallbackAutoScroll)),fi(),mn(),ya()},nulling:function(){yn=Gn=$t=Kn=jt=Vn=Yn=null,Se.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,c=document.elementFromPoint(i,s);if(yn=n,t||Nt||Je||Ln){Xn(n,this.options,c,t);var f=nt(c,!0);Kn&&(!jt||i!==Vn||s!==Yn)&&(jt&&fi(),jt=setInterval(function(){var h=nt(document.elementFromPoint(i,s),!0);h!==f&&(f=h,mn()),Xn(n,o.options,h,t)},10),Vn=i,Yn=s)}else{if(!this.options.bubbleScroll||nt(c,!0)===Ve()){mn();return}Xn(n,this.options,nt(c,!1),!1)}}},He(e,{pluginName:"scroll",initializeByDefault:!0})}function mn(){Se.forEach(function(e){clearInterval(e.pid)}),Se=[]}function fi(){clearInterval(jt)}var Xn=Qr(function(e,r,n,t){if(!!r.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=r.scrollSensitivity,c=r.scrollSpeed,f=Ve(),h=!1,d;Gn!==n&&(Gn=n,mn(),$t=r.scroll,d=r.scrollFn,$t===!0&&($t=nt(n,!0)));var u=0,a=$t;do{var l=a,m=ge(l),p=m.top,b=m.bottom,y=m.left,g=m.right,_=m.width,v=m.height,O=void 0,k=void 0,T=l.scrollWidth,A=l.scrollHeight,I=ee(l),x=l.scrollLeft,S=l.scrollTop;l===f?(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),k=v<A&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"),k=v<A&&(I.overflowY==="auto"||I.overflowY==="scroll"));var w=O&&(Math.abs(g-o)<=s&&x+_<T)-(Math.abs(y-o)<=s&&!!x),C=k&&(Math.abs(b-i)<=s&&S+v<A)-(Math.abs(p-i)<=s&&!!S);if(!Se[u])for(var D=0;D<=u;D++)Se[D]||(Se[D]={});(Se[u].vx!=w||Se[u].vy!=C||Se[u].el!==l)&&(Se[u].el=l,Se[u].vx=w,Se[u].vy=C,clearInterval(Se[u].pid),(w!=0||C!=0)&&(h=!0,Se[u].pid=setInterval(function(){t&&this.layer===0&&te.active._onTouchMove(yn);var R=Se[this.layer].vy?Se[this.layer].vy*c:0,B=Se[this.layer].vx?Se[this.layer].vx*c:0;typeof d=="function"&&d.call(te.dragged.parentNode[Ie],B,R,e,yn,Se[this.layer].el)!=="continue"||ei(Se[this.layer].el,B,R)}.bind({layer:u}),24))),u++}while(r.bubbleScroll&&a!==f&&(a=nt(a,!1)));Kn=h}},30),ci=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,s=r.dispatchSortableEvent,c=r.hideGhostForTarget,f=r.unhideGhostForTarget;if(!!n){var h=t||i;c();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(d.clientX,d.clientY);f(),h&&!h.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function Zn(){}Zn.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=on(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:ci},He(Zn,{pluginName:"revertOnSpill"});function Jn(){}Jn.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,o=t||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:ci},He(Jn,{pluginName:"removeOnSpill"});var Ue;function Ia(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var t=n.dragEl;Ue=t},dragOverValid:function(n){var t=n.completed,o=n.target,i=n.onMove,s=n.activeSortable,c=n.changed,f=n.cancel;if(!!s.options.swap){var h=this.sortable.el,d=this.options;if(o&&o!==h){var u=Ue;i(o)!==!1?(ve(o,d.swapClass,!0),Ue=o):Ue=null,u&&u!==Ue&&ve(u,d.swapClass,!1)}c(),t(!0),f()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,s=o||this.sortable,c=this.options;Ue&&ve(Ue,c.swapClass,!1),Ue&&(c.swap||o&&o.options.swap)&&i!==Ue&&(s.captureAnimationState(),s!==t&&t.captureAnimationState(),La(i,Ue),s.animateAll(),s!==t&&t.animateAll())},nulling:function(){Ue=null}},He(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ue}}})}function La(e,r){var n=e.parentNode,t=r.parentNode,o,i;!n||!t||n.isEqualNode(r)||t.isEqualNode(e)||(o=be(e),i=be(r),n.isEqualNode(t)&&o<i&&i++,n.insertBefore(r,n.children[o]),t.insertBefore(e,t.children[i]))}var re=[],Be=[],Ft,Ke,Bt=!1,qe=!1,_t=!1,pe,qt,gn;function Da(){function e(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?fe(document,"pointerup",this._deselectMultiDrag):(fe(document,"mouseup",this._deselectMultiDrag),fe(document,"touchend",this._deselectMultiDrag)),fe(document,"keydown",this._checkKeyDown),fe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,i){var s="";re.length&&Ke===r?re.forEach(function(c,f){s+=(f?", ":"")+c.textContent}):s=i.textContent,o.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;pe=t},delayEnded:function(){this.isMultiDrag=~re.indexOf(pe)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(!!this.isMultiDrag){for(var i=0;i<re.length;i++)Be.push(Mn(re[i])),Be[i].sortableIndex=re[i].sortableIndex,Be[i].draggable=!1,Be[i].style["will-change"]="",ve(Be[i],this.options.selectedClass,!1),re[i]===pe&&ve(Be[i],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,i=n.dispatchSortableEvent,s=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||re.length&&Ke===t&&(di(!0,o),i("clone"),s())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(di(!1,o),Be.forEach(function(s){ee(s,"display","")}),t(),gn=!1,i())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,i=n.cancel;!this.isMultiDrag||(Be.forEach(function(s){ee(s,"display","none"),t.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),o(),gn=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ke&&Ke.multiDrag._deselectMultiDrag(),re.forEach(function(t){t.sortableIndex=be(t)}),re=re.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),_t=!0},dragStarted:function(n){var t=this,o=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){re.forEach(function(s){s!==pe&&ee(s,"position","absolute")});var i=ge(pe,!1,!0,!0);re.forEach(function(s){s!==pe&&ti(s,i)}),qe=!0,Bt=!0}o.animateAll(function(){qe=!1,Bt=!1,t.options.animation&&re.forEach(function(s){$n(s)}),t.options.sort&&bn()})}},dragOver:function(n){var t=n.target,o=n.completed,i=n.cancel;qe&&~re.indexOf(t)&&(o(!1),i())},revert:function(n){var t=n.fromSortable,o=n.rootEl,i=n.sortable,s=n.dragRect;re.length>1&&(re.forEach(function(c){i.addAnimationState({target:c,rect:qe?ge(c):s}),$n(c),c.fromRect=s,t.removeAnimationState(c)}),qe=!1,Ra(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,s=n.activeSortable,c=n.parentEl,f=n.putSortable,h=this.options;if(i){if(o&&s._hideClone(),Bt=!1,h.animation&&re.length>1&&(qe||!o&&!s.options.sort&&!f)){var d=ge(pe,!1,!0,!0);re.forEach(function(a){a!==pe&&(ti(a,d),c.appendChild(a))}),qe=!0}if(!o)if(qe||bn(),re.length>1){var u=gn;s._showClone(t),s.options.animation&&!gn&&u&&Be.forEach(function(a){s.addAnimationState({target:a,rect:qt}),a.fromRect=qt,a.thisAnimationDuration=null})}else s._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(re.forEach(function(c){c.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){qt=He({},t);var s=ft(pe,!0);qt.top-=s.f,qt.left-=s.e}},dragOverAnimationComplete:function(){qe&&(qe=!1,bn())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,s=n.sortable,c=n.dispatchSortableEvent,f=n.oldIndex,h=n.putSortable,d=h||this.sortable;if(!!t){var u=this.options,a=i.children;if(!_t)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ve(pe,u.selectedClass,!~re.indexOf(pe)),~re.indexOf(pe))re.splice(re.indexOf(pe),1),Ft=null,It({sortable:s,rootEl:o,name:"deselect",targetEl:pe,originalEvt:t});else{if(re.push(pe),It({sortable:s,rootEl:o,name:"select",targetEl:pe,originalEvt:t}),t.shiftKey&&Ft&&s.el.contains(Ft)){var l=be(Ft),m=be(pe);if(~l&&~m&&l!==m){var p,b;for(m>l?(b=l,p=m):(b=m,p=l+1);b<p;b++)~re.indexOf(a[b])||(ve(a[b],u.selectedClass,!0),re.push(a[b]),It({sortable:s,rootEl:o,name:"select",targetEl:a[b],originalEvt:t}))}}else Ft=pe;Ke=d}if(_t&&this.isMultiDrag){if((i[Ie].options.sort||i!==o)&&re.length>1){var y=ge(pe),g=be(pe,":not(."+this.options.selectedClass+")");if(!Bt&&u.animation&&(pe.thisAnimationDuration=null),d.captureAnimationState(),!Bt&&(u.animation&&(pe.fromRect=y,re.forEach(function(v){if(v.thisAnimationDuration=null,v!==pe){var O=qe?ge(v):y;v.fromRect=O,d.addAnimationState({target:v,rect:O})}})),bn(),re.forEach(function(v){a[g]?i.insertBefore(v,a[g]):i.appendChild(v),g++}),f===be(pe))){var _=!1;re.forEach(function(v){if(v.sortableIndex!==be(v)){_=!0;return}}),_&&c("update")}re.forEach(function(v){$n(v)}),d.animateAll()}Ke=d}(o===i||h&&h.lastPutMode!=="clone")&&Be.forEach(function(v){v.parentNode&&v.parentNode.removeChild(v)})}},nullingGlobal:function(){this.isMultiDrag=_t=!1,Be.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ae(document,"pointerup",this._deselectMultiDrag),ae(document,"mouseup",this._deselectMultiDrag),ae(document,"touchend",this._deselectMultiDrag),ae(document,"keydown",this._checkKeyDown),ae(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof _t!="undefined"&&_t)&&Ke===this.sortable&&!(n&&We(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;re.length;){var t=re[0];ve(t,this.options.selectedClass,!1),re.shift(),It({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},He(e,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[Ie];!t||!t.options.multiDrag||~re.indexOf(n)||(Ke&&Ke!==t&&(Ke.multiDrag._deselectMultiDrag(),Ke=t),ve(n,t.options.selectedClass,!0),re.push(n))},deselect:function(n){var t=n.parentNode[Ie],o=re.indexOf(n);!t||!t.options.multiDrag||!~o||(ve(n,t.options.selectedClass,!1),re.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return re.forEach(function(i){t.push({multiDragElement:i,index:i.sortableIndex});var s;qe&&i!==pe?s=-1:qe?s=be(i,":not(."+n.options.selectedClass+")"):s=be(i),o.push({multiDragElement:i,index:s})}),{items:la(re),clones:[].concat(Be),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Ra(e,r){re.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function di(e,r){Be.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function bn(){re.forEach(function(e){e!==pe&&e.parentNode&&e.parentNode.removeChild(e)})}te.mount(new Pa),te.mount(Jn,Zn);var Ma=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:te,MultiDrag:Da,Sortable:te,Swap:Ia}),$a=zr(Ma);(function(e,r){(function(t,o){e.exports=o($a)})(typeof self!="undefined"?self:Hr,function(n){return function(t){var o={};function i(s){if(o[s])return o[s].exports;var c=o[s]={i:s,l:!1,exports:{}};return t[s].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return i.m=t,i.c=o,i.d=function(s,c,f){i.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:f})},i.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,c){if(c&1&&(s=i(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(i.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var h in s)i.d(f,h,function(d){return s[d]}.bind(null,h));return f},i.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(c,"a",c),c},i.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var s=i("2d00"),c=i("5ca1"),f=i("2aba"),h=i("32e9"),d=i("84f2"),u=i("41a0"),a=i("7f20"),l=i("38fd"),m=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),b="@@iterator",y="keys",g="values",_=function(){return this};t.exports=function(v,O,k,T,A,I,x){u(k,O,T);var S=function(P){if(!p&&P in R)return R[P];switch(P){case y:return function(){return new k(this,P)};case g:return function(){return new k(this,P)}}return function(){return new k(this,P)}},w=O+" Iterator",C=A==g,D=!1,R=v.prototype,B=R[m]||R[b]||A&&R[A],H=B||S(A),G=A?C?S("entries"):H:void 0,q=O=="Array"&&R.entries||B,M,E,N;if(q&&(N=l(q.call(new v)),N!==Object.prototype&&N.next&&(a(N,w,!0),!s&&typeof N[m]!="function"&&h(N,m,_))),C&&B&&B.name!==g&&(D=!0,H=function(){return B.call(this)}),(!s||x)&&(p||D||!R[m])&&h(R,m,H),d[O]=H,d[w]=_,A)if(M={values:C?H:S(g),keys:I?H:S(y),entries:G},x)for(E in M)E in R||f(R,E,M[E]);else c(c.P+c.F*(p||D),O,M);return M}},"02f4":function(t,o,i){var s=i("4588"),c=i("be13");t.exports=function(f){return function(h,d){var u=String(c(h)),a=s(d),l=u.length,m,p;return a<0||a>=l?f?"":void 0:(m=u.charCodeAt(a),m<55296||m>56319||a+1===l||(p=u.charCodeAt(a+1))<56320||p>57343?f?u.charAt(a):m:f?u.slice(a,a+2):(m-55296<<10)+(p-56320)+65536)}}},"0390":function(t,o,i){var s=i("02f4")(!0);t.exports=function(c,f,h){return f+(h?s(c,f).length:1)}},"0bfb":function(t,o,i){var s=i("cb7c");t.exports=function(){var c=s(this),f="";return c.global&&(f+="g"),c.ignoreCase&&(f+="i"),c.multiline&&(f+="m"),c.unicode&&(f+="u"),c.sticky&&(f+="y"),f}},"0d58":function(t,o,i){var s=i("ce10"),c=i("e11e");t.exports=Object.keys||function(h){return s(h,c)}},"1495":function(t,o,i){var s=i("86cc"),c=i("cb7c"),f=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(d,u){c(d);for(var a=f(u),l=a.length,m=0,p;l>m;)s.f(d,p=a[m++],u[p]);return d}},"214f":function(t,o,i){i("b0c5");var s=i("2aba"),c=i("32e9"),f=i("79e5"),h=i("be13"),d=i("2b4c"),u=i("520a"),a=d("species"),l=!f(function(){var p=/./;return p.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(p,"$<a>")!=="7"}),m=function(){var p=/(?:)/,b=p.exec;p.exec=function(){return b.apply(this,arguments)};var y="ab".split(p);return y.length===2&&y[0]==="a"&&y[1]==="b"}();t.exports=function(p,b,y){var g=d(p),_=!f(function(){var I={};return I[g]=function(){return 7},""[p](I)!=7}),v=_?!f(function(){var I=!1,x=/a/;return x.exec=function(){return I=!0,null},p==="split"&&(x.constructor={},x.constructor[a]=function(){return x}),x[g](""),!I}):void 0;if(!_||!v||p==="replace"&&!l||p==="split"&&!m){var O=/./[g],k=y(h,g,""[p],function(x,S,w,C,D){return S.exec===u?_&&!D?{done:!0,value:O.call(S,w,C)}:{done:!0,value:x.call(w,S,C)}:{done:!1}}),T=k[0],A=k[1];s(String.prototype,p,T),c(RegExp.prototype,g,b==2?function(I,x){return A.call(I,this,x)}:function(I){return A.call(I,this)})}}},"230e":function(t,o,i){var s=i("d3f4"),c=i("7726").document,f=s(c)&&s(c.createElement);t.exports=function(h){return f?c.createElement(h):{}}},"23c6":function(t,o,i){var s=i("2d95"),c=i("2b4c")("toStringTag"),f=s(function(){return arguments}())=="Arguments",h=function(d,u){try{return d[u]}catch{}};t.exports=function(d){var u,a,l;return d===void 0?"Undefined":d===null?"Null":typeof(a=h(u=Object(d),c))=="string"?a:f?s(u):(l=s(u))=="Object"&&typeof u.callee=="function"?"Arguments":l}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var s=i("7726"),c=i("32e9"),f=i("69a8"),h=i("ca5a")("src"),d=i("fa5b"),u="toString",a=(""+d).split(u);i("8378").inspectSource=function(l){return d.call(l)},(t.exports=function(l,m,p,b){var y=typeof p=="function";y&&(f(p,"name")||c(p,"name",m)),l[m]!==p&&(y&&(f(p,h)||c(p,h,l[m]?""+l[m]:a.join(String(m)))),l===s?l[m]=p:b?l[m]?l[m]=p:c(l,m,p):(delete l[m],c(l,m,p)))})(Function.prototype,u,function(){return typeof this=="function"&&this[h]||d.call(this)})},"2aeb":function(t,o,i){var s=i("cb7c"),c=i("1495"),f=i("e11e"),h=i("613b")("IE_PROTO"),d=function(){},u="prototype",a=function(){var l=i("230e")("iframe"),m=f.length,p="<",b=">",y;for(l.style.display="none",i("fab2").appendChild(l),l.src="javascript:",y=l.contentWindow.document,y.open(),y.write(p+"script"+b+"document.F=Object"+p+"/script"+b),y.close(),a=y.F;m--;)delete a[u][f[m]];return a()};t.exports=Object.create||function(m,p){var b;return m!==null?(d[u]=s(m),b=new d,d[u]=null,b[h]=m):b=a(),p===void 0?b:c(b,p)}},"2b4c":function(t,o,i){var s=i("5537")("wks"),c=i("ca5a"),f=i("7726").Symbol,h=typeof f=="function",d=t.exports=function(u){return s[u]||(s[u]=h&&f[u]||(h?f:c)("Symbol."+u))};d.store=s},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var i={}.toString;t.exports=function(s){return i.call(s).slice(8,-1)}},"2fdb":function(t,o,i){var s=i("5ca1"),c=i("d2c8"),f="includes";s(s.P+s.F*i("5147")(f),"String",{includes:function(d){return!!~c(this,d,f).indexOf(d,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var s=i("86cc"),c=i("4630");t.exports=i("9e1e")?function(f,h,d){return s.f(f,h,c(1,d))}:function(f,h,d){return f[h]=d,f}},"38fd":function(t,o,i){var s=i("69a8"),c=i("4bf8"),f=i("613b")("IE_PROTO"),h=Object.prototype;t.exports=Object.getPrototypeOf||function(d){return d=c(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?h:null}},"41a0":function(t,o,i){var s=i("2aeb"),c=i("4630"),f=i("7f20"),h={};i("32e9")(h,i("2b4c")("iterator"),function(){return this}),t.exports=function(d,u,a){d.prototype=s(h,{next:c(1,a)}),f(d,u+" Iterator")}},"456d":function(t,o,i){var s=i("4bf8"),c=i("0d58");i("5eda")("keys",function(){return function(h){return c(s(h))}})},"4588":function(t,o){var i=Math.ceil,s=Math.floor;t.exports=function(c){return isNaN(c=+c)?0:(c>0?s:i)(c)}},"4630":function(t,o){t.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"4bf8":function(t,o,i){var s=i("be13");t.exports=function(c){return Object(s(c))}},"5147":function(t,o,i){var s=i("2b4c")("match");t.exports=function(c){var f=/./;try{"/./"[c](f)}catch{try{return f[s]=!1,!"/./"[c](f)}catch{}}return!0}},"520a":function(t,o,i){var s=i("0bfb"),c=RegExp.prototype.exec,f=String.prototype.replace,h=c,d="lastIndex",u=function(){var m=/a/,p=/b*/g;return c.call(m,"a"),c.call(p,"a"),m[d]!==0||p[d]!==0}(),a=/()??/.exec("")[1]!==void 0,l=u||a;l&&(h=function(p){var b=this,y,g,_,v;return a&&(g=new RegExp("^"+b.source+"$(?!\\s)",s.call(b))),u&&(y=b[d]),_=c.call(b,p),u&&_&&(b[d]=b.global?_.index+_[0].length:y),a&&_&&_.length>1&&f.call(_[0],g,function(){for(v=1;v<arguments.length-2;v++)arguments[v]===void 0&&(_[v]=void 0)}),_}),t.exports=h},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var s=i("8378"),c=i("7726"),f="__core-js_shared__",h=c[f]||(c[f]={});(t.exports=function(d,u){return h[d]||(h[d]=u!==void 0?u:{})})("versions",[]).push({version:s.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,i){var s=i("7726"),c=i("8378"),f=i("32e9"),h=i("2aba"),d=i("9b43"),u="prototype",a=function(l,m,p){var b=l&a.F,y=l&a.G,g=l&a.S,_=l&a.P,v=l&a.B,O=y?s:g?s[m]||(s[m]={}):(s[m]||{})[u],k=y?c:c[m]||(c[m]={}),T=k[u]||(k[u]={}),A,I,x,S;y&&(p=m);for(A in p)I=!b&&O&&O[A]!==void 0,x=(I?O:p)[A],S=v&&I?d(x,s):_&&typeof x=="function"?d(Function.call,x):x,O&&h(O,A,x,l&a.U),k[A]!=x&&f(k,A,S),_&&T[A]!=x&&(T[A]=x)};s.core=c,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"5eda":function(t,o,i){var s=i("5ca1"),c=i("8378"),f=i("79e5");t.exports=function(h,d){var u=(c.Object||{})[h]||Object[h],a={};a[h]=d(u),s(s.S+s.F*f(function(){u(1)}),"Object",a)}},"5f1b":function(t,o,i){var s=i("23c6"),c=RegExp.prototype.exec;t.exports=function(f,h){var d=f.exec;if(typeof d=="function"){var u=d.call(f,h);if(typeof u!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return u}if(s(f)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return c.call(f,h)}},"613b":function(t,o,i){var s=i("5537")("keys"),c=i("ca5a");t.exports=function(f){return s[f]||(s[f]=c(f))}},"626a":function(t,o,i){var s=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(c){return s(c)=="String"?c.split(""):Object(c)}},"6762":function(t,o,i){var s=i("5ca1"),c=i("c366")(!0);s(s.P,"Array",{includes:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var s=i("626a"),c=i("be13");t.exports=function(f){return s(c(f))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(s,c){return i.call(s,c)}},"6a99":function(t,o,i){var s=i("d3f4");t.exports=function(c,f){if(!s(c))return c;var h,d;if(f&&typeof(h=c.toString)=="function"&&!s(d=h.call(c))||typeof(h=c.valueOf)=="function"&&!s(d=h.call(c))||!f&&typeof(h=c.toString)=="function"&&!s(d=h.call(c)))return d;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var s=i("0d58"),c=i("2621"),f=i("52a7"),h=i("4bf8"),d=i("626a"),u=Object.assign;t.exports=!u||i("79e5")(function(){var a={},l={},m=Symbol(),p="abcdefghijklmnopqrst";return a[m]=7,p.split("").forEach(function(b){l[b]=b}),u({},a)[m]!=7||Object.keys(u({},l)).join("")!=p})?function(l,m){for(var p=h(l),b=arguments.length,y=1,g=c.f,_=f.f;b>y;)for(var v=d(arguments[y++]),O=g?s(v).concat(g(v)):s(v),k=O.length,T=0,A;k>T;)_.call(v,A=O[T++])&&(p[A]=v[A]);return p}:u},"7726":function(t,o){var i=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(t,o,i){var s=i("4588"),c=Math.max,f=Math.min;t.exports=function(h,d){return h=s(h),h<0?c(h+d,0):f(h,d)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var s=i("86cc").f,c=i("69a8"),f=i("2b4c")("toStringTag");t.exports=function(h,d,u){h&&!c(h=u?h:h.prototype,f)&&s(h,f,{configurable:!0,value:d})}},"8378":function(t,o){var i=t.exports={version:"2.6.5"};typeof __e=="number"&&(__e=i)},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,i){var s=i("cb7c"),c=i("c69a"),f=i("6a99"),h=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(u,a,l){if(s(u),a=f(a,!0),s(l),c)try{return h(u,a,l)}catch{}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(u[a]=l.value),u}},"9b43":function(t,o,i){var s=i("d8e8");t.exports=function(c,f,h){if(s(c),f===void 0)return c;switch(h){case 1:return function(d){return c.call(f,d)};case 2:return function(d,u){return c.call(f,d,u)};case 3:return function(d,u,a){return c.call(f,d,u,a)}}return function(){return c.apply(f,arguments)}}},"9c6c":function(t,o,i){var s=i("2b4c")("unscopables"),c=Array.prototype;c[s]==null&&i("32e9")(c,s,{}),t.exports=function(f){c[s][f]=!0}},"9def":function(t,o,i){var s=i("4588"),c=Math.min;t.exports=function(f){return f>0?c(s(f),9007199254740991):0}},"9e1e":function(t,o,i){t.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(t,o){t.exports=n},a481:function(t,o,i){var s=i("cb7c"),c=i("4bf8"),f=i("9def"),h=i("4588"),d=i("0390"),u=i("5f1b"),a=Math.max,l=Math.min,m=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,y=function(g){return g===void 0?g:String(g)};i("214f")("replace",2,function(g,_,v,O){return[function(A,I){var x=g(this),S=A==null?void 0:A[_];return S!==void 0?S.call(A,x,I):v.call(String(x),A,I)},function(T,A){var I=O(v,T,this,A);if(I.done)return I.value;var x=s(T),S=String(this),w=typeof A=="function";w||(A=String(A));var C=x.global;if(C){var D=x.unicode;x.lastIndex=0}for(var R=[];;){var B=u(x,S);if(B===null||(R.push(B),!C))break;var H=String(B[0]);H===""&&(x.lastIndex=d(S,f(x.lastIndex),D))}for(var G="",q=0,M=0;M<R.length;M++){B=R[M];for(var E=String(B[0]),N=a(l(h(B.index),S.length),0),P=[],j=1;j<B.length;j++)P.push(y(B[j]));var F=B.groups;if(w){var L=[E].concat(P,N,S);F!==void 0&&L.push(F);var $=String(A.apply(void 0,L))}else $=k(E,S,N,P,F,A);N>=q&&(G+=S.slice(q,N)+$,q=N+E.length)}return G+S.slice(q)}];function k(T,A,I,x,S,w){var C=I+T.length,D=x.length,R=b;return S!==void 0&&(S=c(S),R=p),v.call(w,R,function(B,H){var G;switch(H.charAt(0)){case"$":return"$";case"&":return T;case"`":return A.slice(0,I);case"'":return A.slice(C);case"<":G=S[H.slice(1,-1)];break;default:var q=+H;if(q===0)return B;if(q>D){var M=m(q/10);return M===0?B:M<=D?x[M-1]===void 0?H.charAt(1):x[M-1]+H.charAt(1):B}G=x[q-1]}return G===void 0?"":G})}})},aae3:function(t,o,i){var s=i("d3f4"),c=i("2d95"),f=i("2b4c")("match");t.exports=function(h){var d;return s(h)&&((d=h[f])!==void 0?!!d:c(h)=="RegExp")}},ac6a:function(t,o,i){for(var s=i("cadf"),c=i("0d58"),f=i("2aba"),h=i("7726"),d=i("32e9"),u=i("84f2"),a=i("2b4c"),l=a("iterator"),m=a("toStringTag"),p=u.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=c(b),g=0;g<y.length;g++){var _=y[g],v=b[_],O=h[_],k=O&&O.prototype,T;if(k&&(k[l]||d(k,l,p),k[m]||d(k,m,_),u[_]=p,v))for(T in s)k[T]||f(k,T,s[T],!0)}},b0c5:function(t,o,i){var s=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(t,o){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(t,o,i){var s=i("6821"),c=i("9def"),f=i("77f1");t.exports=function(h){return function(d,u,a){var l=s(d),m=c(l.length),p=f(a,m),b;if(h&&u!=u){for(;m>p;)if(b=l[p++],b!=b)return!0}else for(;m>p;p++)if((h||p in l)&&l[p]===u)return h||p||0;return!h&&-1}}},c649:function(t,o,i){(function(s){i.d(o,"c",function(){return l}),i.d(o,"a",function(){return u}),i.d(o,"b",function(){return f}),i.d(o,"d",function(){return a}),i("a481");function c(){return typeof window!="undefined"?window.console:s.console}var f=c();function h(m){var p=Object.create(null);return function(y){var g=p[y];return g||(p[y]=m(y))}}var d=/-(\w)/g,u=h(function(m){return m.replace(d,function(p,b){return b?b.toUpperCase():""})});function a(m){m.parentElement!==null&&m.parentElement.removeChild(m)}function l(m,p,b){var y=b===0?m.children[0]:m.children[b-1].nextSibling;m.insertBefore(p,y)}}).call(this,i("c8ba"))},c69a:function(t,o,i){t.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(t,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},ca5a:function(t,o){var i=0,s=Math.random();t.exports=function(c){return"Symbol(".concat(c===void 0?"":c,")_",(++i+s).toString(36))}},cadf:function(t,o,i){var s=i("9c6c"),c=i("d53b"),f=i("84f2"),h=i("6821");t.exports=i("01f9")(Array,"Array",function(d,u){this._t=h(d),this._i=0,this._k=u},function(){var d=this._t,u=this._k,a=this._i++;return!d||a>=d.length?(this._t=void 0,c(1)):u=="keys"?c(0,a):u=="values"?c(0,d[a]):c(0,[a,d[a]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},cb7c:function(t,o,i){var s=i("d3f4");t.exports=function(c){if(!s(c))throw TypeError(c+" is not an object!");return c}},ce10:function(t,o,i){var s=i("69a8"),c=i("6821"),f=i("c366")(!1),h=i("613b")("IE_PROTO");t.exports=function(d,u){var a=c(d),l=0,m=[],p;for(p in a)p!=h&&s(a,p)&&m.push(p);for(;u.length>l;)s(a,p=u[l++])&&(~f(m,p)||m.push(p));return m}},d2c8:function(t,o,i){var s=i("aae3"),c=i("be13");t.exports=function(f,h,d){if(s(h))throw TypeError("String#"+d+" doesn't accept regex!");return String(c(f))}},d3f4:function(t,o){t.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(t,o){t.exports=function(i,s){return{value:s,done:!!i}}},d8e8:function(t,o){t.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(t,o){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,o,i){var s=i("5ca1"),c=i("9def"),f=i("d2c8"),h="startsWith",d=""[h];s(s.P+s.F*i("5147")(h),"String",{startsWith:function(a){var l=f(this,a,h),m=c(Math.min(arguments.length>1?arguments[1]:void 0,l.length)),p=String(a);return d?d.call(l,p,m):l.slice(m,m+p.length)===p}})},f6fd:function(t,o){(function(i){var s="currentScript",c=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(d){var f,h=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(d.stack)||[!1])[1];for(f in c)if(c[f].src==h||c[f].readyState=="interactive")return c[f];return null}}})})(document)},f751:function(t,o,i){var s=i("5ca1");s(s.S+s.F,"Object",{assign:i("7333")})},fa5b:function(t,o,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,o,i){var s=i("7726").document;t.exports=s&&s.documentElement},fb15:function(t,o,i){if(i.r(o),typeof window!="undefined"){i("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=s[1])}i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function c(E){if(Array.isArray(E))return E}function f(E,N){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(E)))){var P=[],j=!0,F=!1,L=void 0;try{for(var $=E[Symbol.iterator](),U;!(j=(U=$.next()).done)&&(P.push(U.value),!(N&&P.length===N));j=!0);}catch(z){F=!0,L=z}finally{try{!j&&$.return!=null&&$.return()}finally{if(F)throw L}}return P}}function h(E,N){(N==null||N>E.length)&&(N=E.length);for(var P=0,j=new Array(N);P<N;P++)j[P]=E[P];return j}function d(E,N){if(!!E){if(typeof E=="string")return h(E,N);var P=Object.prototype.toString.call(E).slice(8,-1);if(P==="Object"&&E.constructor&&(P=E.constructor.name),P==="Map"||P==="Set")return Array.from(E);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return h(E,N)}}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ */function nn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nn=function(r){return typeof r}:nn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nn(e)}function ia(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function He(){return He=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},He.apply(this,arguments)}function tt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{},t=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),t.forEach(function(o){ia(e,o,n[o])})}return e}function oa(e,r){if(e==null)return{};var n={},t=Object.keys(e),o,i;for(i=0;i<t.length;i++)o=t[i],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function aa(e,r){if(e==null)return{};var n=oa(e,r),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(n[t]=e[t]))}return n}function la(e){return sa(e)||ua(e)||fa()}function sa(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function ua(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function fa(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var ca="1.10.2";function Ze(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Je=Ze(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Nt=Ze(/Edge/i),Gr=Ze(/firefox/i),Ln=Ze(/safari/i)&&!Ze(/chrome/i)&&!Ze(/android/i),Kr=Ze(/iP(ad|od|hone)/i),da=Ze(/chrome/i)&&Ze(/android/i),Vr={capture:!1,passive:!1};function fe(e,r,n){e.addEventListener(r,n,!Je&&Vr)}function ae(e,r,n){e.removeEventListener(r,n,!Je&&Vr)}function rn(e,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch{return!1}return!1}}function ha(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function We(e,r,n,t){if(e){n=n||document;do{if(r!=null&&(r[0]===">"?e.parentNode===n&&rn(e,r):rn(e,r))||t&&e===n)return e;if(e===n)break}while(e=ha(e))}return null}var Yr=/\s+/g;function ve(e,r,n){if(e&&r)if(e.classList)e.classList[n?"add":"remove"](r);else{var t=(" "+e.className+" ").replace(Yr," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(Yr," ")}}function ee(e,r,n){var t=e&&e.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function ft(e,r){var n="";if(typeof e=="string")n=e;else do{var t=ee(e,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Xr(e,r,n){if(e){var t=e.getElementsByTagName(r),o=0,i=t.length;if(n)for(;o<i;o++)n(t[o],o);return t}return[]}function Ve(){var e=document.scrollingElement;return e||document.documentElement}function ge(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,c,f,h,d,u;if(e!==window&&e!==Ve()?(i=e.getBoundingClientRect(),s=i.top,c=i.left,f=i.bottom,h=i.right,d=i.height,u=i.width):(s=0,c=0,f=window.innerHeight,h=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(r||n)&&e!==window&&(o=o||e.parentNode,!Je))do if(o&&o.getBoundingClientRect&&(ee(o,"transform")!=="none"||n&&ee(o,"position")!=="static")){var a=o.getBoundingClientRect();s-=a.top+parseInt(ee(o,"border-top-width")),c-=a.left+parseInt(ee(o,"border-left-width")),f=s+i.height,h=c+i.width;break}while(o=o.parentNode);if(t&&e!==window){var l=ft(o||e),m=l&&l.a,p=l&&l.d;l&&(s/=p,c/=m,u/=m,d/=p,f=s+d,h=c+u)}return{top:s,left:c,bottom:f,right:h,width:u,height:d}}}function Zr(e,r,n){for(var t=nt(e,!0),o=ge(e)[r];t;){var i=ge(t)[n],s=void 0;if(n==="top"||n==="left"?s=o>=i:s=o<=i,!s)return t;if(t===Ve())break;t=nt(t,!1)}return!1}function on(e,r,n){for(var t=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==te.ghost&&i[o]!==te.dragged&&We(i[o],n.draggable,e,!1)){if(t===r)return i[o];t++}o++}return null}function Dn(e,r){for(var n=e.lastElementChild;n&&(n===te.ghost||ee(n,"display")==="none"||r&&!rn(n,r));)n=n.previousElementSibling;return n||null}function be(e,r){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==te.clone&&(!r||rn(e,r))&&n++;return n}function Jr(e){var r=0,n=0,t=Ve();if(e)do{var o=ft(e),i=o.a,s=o.d;r+=e.scrollLeft*i,n+=e.scrollTop*s}while(e!==t&&(e=e.parentNode));return[r,n]}function pa(e,r){for(var n in e)if(!!e.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===e[n][t])return Number(n)}return-1}function nt(e,r){if(!e||!e.getBoundingClientRect)return Ve();var n=e,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=ee(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ve();if(t||r)return n;t=!0}}while(n=n.parentNode);return Ve()}function va(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function Rn(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}var kt;function Qr(e,r){return function(){if(!kt){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),kt=setTimeout(function(){kt=void 0},r)}}}function ya(){clearTimeout(kt),kt=void 0}function ei(e,r,n){e.scrollLeft+=r,e.scrollTop+=n}function $n(e){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function ti(e,r){ee(e,"position","absolute"),ee(e,"top",r.top),ee(e,"left",r.left),ee(e,"width",r.width),ee(e,"height",r.height)}function Mn(e){ee(e,"position",""),ee(e,"top",""),ee(e,"left",""),ee(e,"width",""),ee(e,"height","")}var Ie="Sortable"+new Date().getTime();function ma(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(ee(o,"display")==="none"||o===te.ghost)){e.push({target:o,rect:ge(o)});var i=tt({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=ft(o,!0);s&&(i.top-=s.f,i.left-=s.e)}o.fromRect=i}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(pa(e,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var i=!1,s=0;e.forEach(function(c){var f=0,h=c.target,d=h.fromRect,u=ge(h),a=h.prevFromRect,l=h.prevToRect,m=c.rect,p=ft(h,!0);p&&(u.top-=p.f,u.left-=p.e),h.toRect=u,h.thisAnimationDuration&&Rn(a,u)&&!Rn(d,u)&&(m.top-u.top)/(m.left-u.left)==(d.top-u.top)/(d.left-u.left)&&(f=ba(m,a,l,o.options)),Rn(u,d)||(h.prevFromRect=d,h.prevToRect=u,f||(f=o.options.animation),o.animate(h,m,u,f)),f&&(i=!0,s=Math.max(s,f),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},f),h.thisAnimationDuration=f)}),clearTimeout(r),i?r=setTimeout(function(){typeof t=="function"&&t()},s):typeof t=="function"&&t(),e=[]},animate:function(t,o,i,s){if(s){ee(t,"transition",""),ee(t,"transform","");var c=ft(this.el),f=c&&c.a,h=c&&c.d,d=(o.left-i.left)/(f||1),u=(o.top-i.top)/(h||1);t.animatingX=!!d,t.animatingY=!!u,ee(t,"transform","translate3d("+d+"px,"+u+"px,0)"),ga(t),ee(t,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),ee(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){ee(t,"transition",""),ee(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},s)}}}}function ga(e){return e.offsetWidth}function ba(e,r,n,t){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var Ct=[],jn={initializeByDefault:!0},Pt={mount:function(r){for(var n in jn)jn.hasOwnProperty(n)&&!(n in r)&&(r[n]=jn[n]);Ct.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";Ct.forEach(function(s){!n[s.pluginName]||(n[s.pluginName][i]&&n[s.pluginName][i](tt({sortable:n},t)),n.options[s.pluginName]&&n[s.pluginName][r]&&n[s.pluginName][r](tt({sortable:n},t)))})},initializePlugins:function(r,n,t,o){Ct.forEach(function(c){var f=c.pluginName;if(!(!r.options[f]&&!c.initializeByDefault)){var h=new c(r,n,r.options);h.sortable=r,h.options=r.options,r[f]=h,He(t,h.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var s=this.modifyOption(r,i,r.options[i]);typeof s!="undefined"&&(r.options[i]=s)}},getEventProperties:function(r,n){var t={};return Ct.forEach(function(o){typeof o.eventProperties=="function"&&He(t,o.eventProperties.call(n[o.pluginName],r))}),t},modifyOption:function(r,n,t){var o;return Ct.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function It(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,c=e.fromEl,f=e.oldIndex,h=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,a=e.originalEvent,l=e.putSortable,m=e.extraEventProperties;if(r=r||n&&n[Ie],!!r){var p,b=r.options,y="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Je&&!Nt?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=s||n,p.from=c||n,p.item=o||n,p.clone=i,p.oldIndex=f,p.newIndex=h,p.oldDraggableIndex=d,p.newDraggableIndex=u,p.originalEvent=a,p.pullMode=l?l.lastPutMode:void 0;var g=tt({},m,Pt.getEventProperties(t,r));for(var _ in g)p[_]=g[_];n&&n.dispatchEvent(p),b[y]&&b[y].call(r,p)}}var Me=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=aa(t,["evt"]);Pt.pluginEvent.bind(te)(r,n,tt({dragEl:X,parentEl:Oe,ghostEl:ie,rootEl:ye,nextEl:ct,lastDownEl:an,cloneEl:_e,cloneHidden:rt,dragStarted:Dt,putSortable:ke,activeSortable:te.active,originalEvent:o,oldIndex:mt,oldDraggableIndex:Lt,newIndex:Fe,newDraggableIndex:it,hideGhostForTarget:si,unhideGhostForTarget:ui,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(c){Re({sortable:n,name:c,originalEvent:o})}},i))};function Re(e){It(tt({putSortable:ke,cloneEl:_e,targetEl:X,rootEl:ye,oldIndex:mt,oldDraggableIndex:Lt,newIndex:Fe,newDraggableIndex:it},e))}var X,Oe,ie,ye,ct,an,_e,rt,mt,Fe,Lt,it,ln,ke,gt=!1,sn=!1,un=[],dt,Ge,Fn,Bn,ni,ri,Dt,bt,Rt,$t=!1,fn=!1,cn,Le,qn=[],Hn=!1,dn=[],hn=typeof document!="undefined",pn=Kr,ii=Nt||Je?"cssFloat":"float",_a=hn&&!da&&!Kr&&"draggable"in document.createElement("div"),oi=function(){if(!!hn){if(Je)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),ai=function(r,n){var t=ee(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=on(r,0,n),s=on(r,1,n),c=i&&ee(i),f=s&&ee(s),h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+ge(i).width,d=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+ge(s).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&c.float&&c.float!=="none"){var u=c.float==="left"?"left":"right";return s&&(f.clear==="both"||f.clear===u)?"vertical":"horizontal"}return i&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||h>=o&&t[ii]==="none"||s&&t[ii]==="none"&&h+d>o)?"vertical":"horizontal"},Oa=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,s=t?r.width:r.height,c=t?n.left:n.top,f=t?n.right:n.bottom,h=t?n.width:n.height;return o===c||i===f||o+s/2===c+h/2},Sa=function(r,n){var t;return un.some(function(o){if(!Dn(o)){var i=ge(o),s=o[Ie].options.emptyInsertThreshold,c=r>=i.left-s&&r<=i.right+s,f=n>=i.top-s&&n<=i.bottom+s;if(s&&c&&f)return t=o}}),t},li=function(r){function n(i,s){return function(c,f,h,d){var u=c.options.group.name&&f.options.group.name&&c.options.group.name===f.options.group.name;if(i==null&&(s||u))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(c,f,h,d),s)(c,f,h,d);var a=(s?c:f).options.group.name;return i===!0||typeof i=="string"&&i===a||i.join&&i.indexOf(a)>-1}}var t={},o=r.group;(!o||nn(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,r.group=t},si=function(){!oi&&ie&&ee(ie,"display","none")},ui=function(){!oi&&ie&&ee(ie,"display","")};hn&&document.addEventListener("click",function(e){if(sn)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),sn=!1,!1},!0);var ht=function(r){if(X){r=r.touches?r.touches[0]:r;var n=Sa(r.clientX,r.clientY);if(n){var t={};for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[Ie]._onDragOver(t)}}},Ea=function(r){X&&X.parentNode[Ie]._isOutsideThisEl(r.target)};function te(e,r){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=He({},r),e[Ie]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ai(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,c){s.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:te.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Pt.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);li(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:_a,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?fe(e,"pointerdown",this._onTapStart):(fe(e,"mousedown",this._onTapStart),fe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(fe(e,"dragover",this),fe(e,"dragenter",this)),un.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),He(this,ma())}te.prototype={constructor:te,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(bt=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,X):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,o=this.options,i=o.preventOnFilter,s=r.type,c=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,f=(c||r).target,h=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||f,d=o.filter;if(Ca(t),!X&&!(/mousedown|pointerdown/.test(s)&&r.button!==0||o.disabled)&&!h.isContentEditable&&(f=We(f,o.draggable,t,!1),!(f&&f.animated)&&an!==f)){if(mt=be(f),Lt=be(f,o.draggable),typeof d=="function"){if(d.call(this,r,f,this)){Re({sortable:n,rootEl:h,name:"filter",targetEl:f,toEl:t,fromEl:t}),Me("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(d&&(d=d.split(",").some(function(u){if(u=We(h,u.trim(),t,!1),u)return Re({sortable:n,rootEl:u,name:"filter",targetEl:f,fromEl:t,toEl:t}),Me("filter",n,{evt:r}),!0}),d)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!We(h,o.handle,t,!1)||this._prepareDragStart(r,c,f)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,s=o.options,c=i.ownerDocument,f;if(t&&!X&&t.parentNode===i){var h=ge(t);if(ye=i,X=t,Oe=X.parentNode,ct=X.nextSibling,an=t,ln=s.group,te.dragged=X,dt={target:X,clientX:(n||r).clientX,clientY:(n||r).clientY},ni=dt.clientX-h.left,ri=dt.clientY-h.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,X.style["will-change"]="all",f=function(){if(Me("delayEnded",o,{evt:r}),te.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Gr&&o.nativeDraggable&&(X.draggable=!0),o._triggerDragStart(r,n),Re({sortable:o,name:"choose",originalEvent:r}),ve(X,s.chosenClass,!0)},s.ignore.split(",").forEach(function(d){Xr(X,d.trim(),zn)}),fe(c,"dragover",ht),fe(c,"mousemove",ht),fe(c,"touchmove",ht),fe(c,"mouseup",o._onDrop),fe(c,"touchend",o._onDrop),fe(c,"touchcancel",o._onDrop),Gr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),Me("delayStart",this,{evt:r}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Nt||Je))){if(te.eventCanceled){this._onDrop();return}fe(c,"mouseup",o._disableDelayedDrag),fe(c,"touchend",o._disableDelayedDrag),fe(c,"touchcancel",o._disableDelayedDrag),fe(c,"mousemove",o._delayedDragTouchMoveHandler),fe(c,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&fe(c,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(f,s.delay)}else f()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&zn(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._disableDelayedDrag),ae(r,"touchend",this._disableDelayedDrag),ae(r,"touchcancel",this._disableDelayedDrag),ae(r,"mousemove",this._delayedDragTouchMoveHandler),ae(r,"touchmove",this._delayedDragTouchMoveHandler),ae(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?fe(document,"pointermove",this._onTouchMove):n?fe(document,"touchmove",this._onTouchMove):fe(document,"mousemove",this._onTouchMove):(fe(X,"dragend",this),fe(ye,"dragstart",this._onDragStart));try{document.selection?vn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(gt=!1,ye&&X){Me("dragStarted",this,{evt:n}),this.nativeDraggable&&fe(document,"dragover",Ea);var t=this.options;!r&&ve(X,t.dragClass,!1),ve(X,t.ghostClass,!0),te.active=this,r&&this._appendGhost(),Re({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ge){this._lastX=Ge.clientX,this._lastY=Ge.clientY,si();for(var r=document.elementFromPoint(Ge.clientX,Ge.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Ge.clientX,Ge.clientY),r!==n);)n=r;if(X.parentNode[Ie]._isOutsideThisEl(r),n)do{if(n[Ie]){var t=void 0;if(t=n[Ie]._onDragOver({clientX:Ge.clientX,clientY:Ge.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);ui()}},_onTouchMove:function(r){if(dt){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,i=r.touches?r.touches[0]:r,s=ie&&ft(ie,!0),c=ie&&s&&s.a,f=ie&&s&&s.d,h=pn&&Le&&Jr(Le),d=(i.clientX-dt.clientX+o.x)/(c||1)+(h?h[0]-qn[0]:0)/(c||1),u=(i.clientY-dt.clientY+o.y)/(f||1)+(h?h[1]-qn[1]:0)/(f||1);if(!te.active&&!gt){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(ie){s?(s.e+=d-(Fn||0),s.f+=u-(Bn||0)):s={a:1,b:0,c:0,d:1,e:d,f:u};var a="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ee(ie,"webkitTransform",a),ee(ie,"mozTransform",a),ee(ie,"msTransform",a),ee(ie,"transform",a),Fn=d,Bn=u,Ge=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!ie){var r=this.options.fallbackOnBody?document.body:ye,n=ge(X,!0,pn,!0,r),t=this.options;if(pn){for(Le=r;ee(Le,"position")==="static"&&ee(Le,"transform")==="none"&&Le!==document;)Le=Le.parentNode;Le!==document.body&&Le!==document.documentElement?(Le===document&&(Le=Ve()),n.top+=Le.scrollTop,n.left+=Le.scrollLeft):Le=Ve(),qn=Jr(Le)}ie=X.cloneNode(!0),ve(ie,t.ghostClass,!1),ve(ie,t.fallbackClass,!0),ve(ie,t.dragClass,!0),ee(ie,"transition",""),ee(ie,"transform",""),ee(ie,"box-sizing","border-box"),ee(ie,"margin",0),ee(ie,"top",n.top),ee(ie,"left",n.left),ee(ie,"width",n.width),ee(ie,"height",n.height),ee(ie,"opacity","0.8"),ee(ie,"position",pn?"absolute":"fixed"),ee(ie,"zIndex","100000"),ee(ie,"pointerEvents","none"),te.ghost=ie,r.appendChild(ie),ee(ie,"transform-origin",ni/parseInt(ie.style.width)*100+"% "+ri/parseInt(ie.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,o=r.dataTransfer,i=t.options;if(Me("dragStart",this,{evt:r}),te.eventCanceled){this._onDrop();return}Me("setupClone",this),te.eventCanceled||(_e=$n(X),_e.draggable=!1,_e.style["will-change"]="",this._hideClone(),ve(_e,this.options.chosenClass,!1),te.clone=_e),t.cloneId=vn(function(){Me("clone",t),!te.eventCanceled&&(t.options.removeCloneOnHide||ye.insertBefore(_e,X),t._hideClone(),Re({sortable:t,name:"clone"}))}),!n&&ve(X,i.dragClass,!0),n?(sn=!0,t._loopId=setInterval(t._emulateDragOver,50)):(ae(document,"mouseup",t._onDrop),ae(document,"touchend",t._onDrop),ae(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,X)),fe(document,"drop",t),ee(X,"transform","translateZ(0)")),gt=!0,t._dragStartId=vn(t._dragStarted.bind(t,n,r)),fe(document,"selectstart",t),Dt=!0,Ln&&ee(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,s,c=this.options,f=c.group,h=te.active,d=ln===f,u=c.sort,a=ke||h,l,m=this,p=!1;if(Hn)return;function b(H,G){Me(H,m,tt({evt:r,isOwner:d,axis:l?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:u,fromSortable:a,target:t,completed:g,onMove:function($,E){return Un(ye,n,X,o,$,ge($),r,E)},changed:_},G))}function y(){b("dragOverAnimationCapture"),m.captureAnimationState(),m!==a&&a.captureAnimationState()}function g(H){return b("dragOverCompleted",{insertion:H}),H&&(d?h._hideClone():h._showClone(m),m!==a&&(ve(X,ke?ke.options.ghostClass:h.options.ghostClass,!1),ve(X,c.ghostClass,!0)),ke!==m&&m!==te.active?ke=m:m===te.active&&ke&&(ke=null),a===m&&(m._ignoreWhileAnimating=t),m.animateAll(function(){b("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==a&&(a.animateAll(),a._ignoreWhileAnimating=null)),(t===X&&!X.animated||t===n&&!t.animated)&&(bt=null),!c.dragoverBubble&&!r.rootEl&&t!==document&&(X.parentNode[Ie]._isOutsideThisEl(r.target),!H&&ht(r)),!c.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function _(){Fe=be(X),it=be(X,c.draggable),Re({sortable:m,name:"change",toEl:n,newIndex:Fe,newDraggableIndex:it,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=We(t,c.draggable,n,!0),b("dragOver"),te.eventCanceled)return p;if(X.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||m._ignoreWhileAnimating===t)return g(!1);if(sn=!1,h&&!c.disabled&&(d?u||(s=!ye.contains(X)):ke===this||(this.lastPutMode=ln.checkPull(this,h,X,r))&&f.checkPut(this,h,X,r))){if(l=this._getDirection(r,t)==="vertical",o=ge(X),b("dragOverValid"),te.eventCanceled)return p;if(s)return Oe=ye,y(),this._hideClone(),b("revert"),te.eventCanceled||(ct?ye.insertBefore(X,ct):ye.appendChild(X)),g(!0);var v=Dn(n,c.draggable);if(!v||Aa(r,l,this)&&!v.animated){if(v===X)return g(!1);if(v&&n===r.target&&(t=v),t&&(i=ge(t)),Un(ye,n,X,o,t,i,r,!!t)!==!1)return y(),n.appendChild(X),Oe=n,_(),g(!0)}else if(t.parentNode===n){i=ge(t);var O=0,k,T=X.parentNode!==n,A=!Oa(X.animated&&X.toRect||o,t.animated&&t.toRect||i,l),I=l?"top":"left",x=Zr(t,"top","top")||Zr(X,"top","top"),S=x?x.scrollTop:void 0;bt!==t&&(k=i[I],$t=!1,fn=!A&&c.invertSwap||T),O=Ta(r,t,i,l,A?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,fn,bt===t);var w;if(O!==0){var C=be(X);do C-=O,w=Oe.children[C];while(w&&(ee(w,"display")==="none"||w===ie))}if(O===0||w===t)return g(!1);bt=t,Rt=O;var D=t.nextElementSibling,R=!1;R=O===1;var B=Un(ye,n,X,o,t,i,r,R);if(B!==!1)return(B===1||B===-1)&&(R=B===1),Hn=!0,setTimeout(wa,30),y(),R&&!D?n.appendChild(X):t.parentNode.insertBefore(X,R?D:t),x&&ei(x,0,S-x.scrollTop),Oe=X.parentNode,k!==void 0&&!fn&&(cn=Math.abs(k-ge(t)[I])),_(),g(!0)}if(n.contains(X))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ae(document,"mousemove",this._onTouchMove),ae(document,"touchmove",this._onTouchMove),ae(document,"pointermove",this._onTouchMove),ae(document,"dragover",ht),ae(document,"mousemove",ht),ae(document,"touchmove",ht)},_offUpEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._onDrop),ae(r,"touchend",this._onDrop),ae(r,"pointerup",this._onDrop),ae(r,"touchcancel",this._onDrop),ae(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(Fe=be(X),it=be(X,t.draggable),Me("drop",this,{evt:r}),Oe=X&&X.parentNode,Fe=be(X),it=be(X,t.draggable),te.eventCanceled){this._nulling();return}gt=!1,fn=!1,$t=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Wn(this.cloneId),Wn(this._dragStartId),this.nativeDraggable&&(ae(document,"drop",this),ae(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ln&&ee(document.body,"user-select",""),ee(X,"transform",""),r&&(Dt&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),ie&&ie.parentNode&&ie.parentNode.removeChild(ie),(ye===Oe||ke&&ke.lastPutMode!=="clone")&&_e&&_e.parentNode&&_e.parentNode.removeChild(_e),X&&(this.nativeDraggable&&ae(X,"dragend",this),zn(X),X.style["will-change"]="",Dt&&!gt&&ve(X,ke?ke.options.ghostClass:this.options.ghostClass,!1),ve(X,this.options.chosenClass,!1),Re({sortable:this,name:"unchoose",toEl:Oe,newIndex:null,newDraggableIndex:null,originalEvent:r}),ye!==Oe?(Fe>=0&&(Re({rootEl:Oe,name:"add",toEl:Oe,fromEl:ye,originalEvent:r}),Re({sortable:this,name:"remove",toEl:Oe,originalEvent:r}),Re({rootEl:Oe,name:"sort",toEl:Oe,fromEl:ye,originalEvent:r}),Re({sortable:this,name:"sort",toEl:Oe,originalEvent:r})),ke&&ke.save()):Fe!==mt&&Fe>=0&&(Re({sortable:this,name:"update",toEl:Oe,originalEvent:r}),Re({sortable:this,name:"sort",toEl:Oe,originalEvent:r})),te.active&&((Fe==null||Fe===-1)&&(Fe=mt,it=Lt),Re({sortable:this,name:"end",toEl:Oe,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Me("nulling",this),ye=X=Oe=ie=ct=_e=an=rt=dt=Ge=Dt=Fe=it=mt=Lt=bt=Rt=ke=ln=te.dragged=te.ghost=te.clone=te.active=null,dn.forEach(function(r){r.checked=!0}),dn.length=Fn=Bn=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":X&&(this._onDragOver(r),xa(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,o=0,i=t.length,s=this.options;o<i;o++)n=t[o],We(n,s.draggable,this.el,!1)&&r.push(n.getAttribute(s.dataIdAttr)||ka(n));return r},sort:function(r){var n={},t=this.el;this.toArray().forEach(function(o,i){var s=t.children[i];We(s,this.options.draggable,t,!1)&&(n[o]=s)},this),r.forEach(function(o){n[o]&&(t.removeChild(n[o]),t.appendChild(n[o]))})},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return We(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var o=Pt.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&li(t)},destroy:function(){Me("destroy",this);var r=this.el;r[Ie]=null,ae(r,"mousedown",this._onTapStart),ae(r,"touchstart",this._onTapStart),ae(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(ae(r,"dragover",this),ae(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),un.splice(un.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!rt){if(Me("hideClone",this),te.eventCanceled)return;ee(_e,"display","none"),this.options.removeCloneOnHide&&_e.parentNode&&_e.parentNode.removeChild(_e),rt=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(rt){if(Me("showClone",this),te.eventCanceled)return;ye.contains(X)&&!this.options.group.revertClone?ye.insertBefore(_e,X):ct?ye.insertBefore(_e,ct):ye.appendChild(_e),this.options.group.revertClone&&this.animate(X,_e),ee(_e,"display",""),rt=!1}}};function xa(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Un(e,r,n,t,o,i,s,c){var f,h=e[Ie],d=h.options.onMove,u;return window.CustomEvent&&!Je&&!Nt?f=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(f=document.createEvent("Event"),f.initEvent("move",!0,!0)),f.to=r,f.from=e,f.dragged=n,f.draggedRect=t,f.related=o||r,f.relatedRect=i||ge(r),f.willInsertAfter=c,f.originalEvent=s,e.dispatchEvent(f),d&&(u=d.call(h,f,s)),u}function zn(e){e.draggable=!1}function wa(){Hn=!1}function Aa(e,r,n){var t=ge(Dn(n.el,n.options.draggable)),o=10;return r?e.clientX>t.right+o||e.clientX<=t.right&&e.clientY>t.bottom&&e.clientX>=t.left:e.clientX>t.right&&e.clientY>t.top||e.clientX<=t.right&&e.clientY>t.bottom+o}function Ta(e,r,n,t,o,i,s,c){var f=t?e.clientY:e.clientX,h=t?n.height:n.width,d=t?n.top:n.left,u=t?n.bottom:n.right,a=!1;if(!s){if(c&&cn<h*o){if(!$t&&(Rt===1?f>d+h*i/2:f<u-h*i/2)&&($t=!0),$t)a=!0;else if(Rt===1?f<d+cn:f>u-cn)return-Rt}else if(f>d+h*(1-o)/2&&f<u-h*(1-o)/2)return Na(r)}return a=a||s,a&&(f<d+h*i/2||f>u-h*i/2)?f>d+h/2?1:-1:0}function Na(e){return be(X)<be(e)?1:-1}function ka(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function Ca(e){dn.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&dn.push(t)}}function vn(e){return setTimeout(e,0)}function Wn(e){return clearTimeout(e)}hn&&fe(document,"touchmove",function(e){(te.active||gt)&&e.cancelable&&e.preventDefault()}),te.utils={on:fe,off:ae,css:ee,find:Xr,is:function(r,n){return!!We(r,n,r,!1)},extend:va,throttle:Qr,closest:We,toggleClass:ve,clone:$n,index:be,nextTick:vn,cancelNextTick:Wn,detectDirection:ai,getChild:on},te.get=function(e){return e[Ie]},te.mount=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(te.utils=tt({},te.utils,t.utils)),Pt.mount(t)})},te.create=function(e,r){return new te(e,r)},te.version=ca;var Se=[],Mt,Gn,Kn=!1,Vn,Yn,yn,jt;function Pa(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return e.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?fe(document,"dragover",this._handleAutoScroll):this.options.supportPointer?fe(document,"pointermove",this._handleFallbackAutoScroll):t.touches?fe(document,"touchmove",this._handleFallbackAutoScroll):fe(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ae(document,"dragover",this._handleAutoScroll):(ae(document,"pointermove",this._handleFallbackAutoScroll),ae(document,"touchmove",this._handleFallbackAutoScroll),ae(document,"mousemove",this._handleFallbackAutoScroll)),fi(),mn(),ya()},nulling:function(){yn=Gn=Mt=Kn=jt=Vn=Yn=null,Se.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,c=document.elementFromPoint(i,s);if(yn=n,t||Nt||Je||Ln){Xn(n,this.options,c,t);var f=nt(c,!0);Kn&&(!jt||i!==Vn||s!==Yn)&&(jt&&fi(),jt=setInterval(function(){var h=nt(document.elementFromPoint(i,s),!0);h!==f&&(f=h,mn()),Xn(n,o.options,h,t)},10),Vn=i,Yn=s)}else{if(!this.options.bubbleScroll||nt(c,!0)===Ve()){mn();return}Xn(n,this.options,nt(c,!1),!1)}}},He(e,{pluginName:"scroll",initializeByDefault:!0})}function mn(){Se.forEach(function(e){clearInterval(e.pid)}),Se=[]}function fi(){clearInterval(jt)}var Xn=Qr(function(e,r,n,t){if(!!r.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=r.scrollSensitivity,c=r.scrollSpeed,f=Ve(),h=!1,d;Gn!==n&&(Gn=n,mn(),Mt=r.scroll,d=r.scrollFn,Mt===!0&&(Mt=nt(n,!0)));var u=0,a=Mt;do{var l=a,m=ge(l),p=m.top,b=m.bottom,y=m.left,g=m.right,_=m.width,v=m.height,O=void 0,k=void 0,T=l.scrollWidth,A=l.scrollHeight,I=ee(l),x=l.scrollLeft,S=l.scrollTop;l===f?(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),k=v<A&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"),k=v<A&&(I.overflowY==="auto"||I.overflowY==="scroll"));var w=O&&(Math.abs(g-o)<=s&&x+_<T)-(Math.abs(y-o)<=s&&!!x),C=k&&(Math.abs(b-i)<=s&&S+v<A)-(Math.abs(p-i)<=s&&!!S);if(!Se[u])for(var D=0;D<=u;D++)Se[D]||(Se[D]={});(Se[u].vx!=w||Se[u].vy!=C||Se[u].el!==l)&&(Se[u].el=l,Se[u].vx=w,Se[u].vy=C,clearInterval(Se[u].pid),(w!=0||C!=0)&&(h=!0,Se[u].pid=setInterval(function(){t&&this.layer===0&&te.active._onTouchMove(yn);var R=Se[this.layer].vy?Se[this.layer].vy*c:0,B=Se[this.layer].vx?Se[this.layer].vx*c:0;typeof d=="function"&&d.call(te.dragged.parentNode[Ie],B,R,e,yn,Se[this.layer].el)!=="continue"||ei(Se[this.layer].el,B,R)}.bind({layer:u}),24))),u++}while(r.bubbleScroll&&a!==f&&(a=nt(a,!1)));Kn=h}},30),ci=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,s=r.dispatchSortableEvent,c=r.hideGhostForTarget,f=r.unhideGhostForTarget;if(!!n){var h=t||i;c();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(d.clientX,d.clientY);f(),h&&!h.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function Zn(){}Zn.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=on(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:ci},He(Zn,{pluginName:"revertOnSpill"});function Jn(){}Jn.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,o=t||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:ci},He(Jn,{pluginName:"removeOnSpill"});var Ue;function Ia(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var t=n.dragEl;Ue=t},dragOverValid:function(n){var t=n.completed,o=n.target,i=n.onMove,s=n.activeSortable,c=n.changed,f=n.cancel;if(!!s.options.swap){var h=this.sortable.el,d=this.options;if(o&&o!==h){var u=Ue;i(o)!==!1?(ve(o,d.swapClass,!0),Ue=o):Ue=null,u&&u!==Ue&&ve(u,d.swapClass,!1)}c(),t(!0),f()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,s=o||this.sortable,c=this.options;Ue&&ve(Ue,c.swapClass,!1),Ue&&(c.swap||o&&o.options.swap)&&i!==Ue&&(s.captureAnimationState(),s!==t&&t.captureAnimationState(),La(i,Ue),s.animateAll(),s!==t&&t.animateAll())},nulling:function(){Ue=null}},He(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ue}}})}function La(e,r){var n=e.parentNode,t=r.parentNode,o,i;!n||!t||n.isEqualNode(r)||t.isEqualNode(e)||(o=be(e),i=be(r),n.isEqualNode(t)&&o<i&&i++,n.insertBefore(r,n.children[o]),t.insertBefore(e,t.children[i]))}var re=[],Be=[],Ft,Ke,Bt=!1,qe=!1,_t=!1,pe,qt,gn;function Da(){function e(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?fe(document,"pointerup",this._deselectMultiDrag):(fe(document,"mouseup",this._deselectMultiDrag),fe(document,"touchend",this._deselectMultiDrag)),fe(document,"keydown",this._checkKeyDown),fe(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,i){var s="";re.length&&Ke===r?re.forEach(function(c,f){s+=(f?", ":"")+c.textContent}):s=i.textContent,o.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;pe=t},delayEnded:function(){this.isMultiDrag=~re.indexOf(pe)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(!!this.isMultiDrag){for(var i=0;i<re.length;i++)Be.push($n(re[i])),Be[i].sortableIndex=re[i].sortableIndex,Be[i].draggable=!1,Be[i].style["will-change"]="",ve(Be[i],this.options.selectedClass,!1),re[i]===pe&&ve(Be[i],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,i=n.dispatchSortableEvent,s=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||re.length&&Ke===t&&(di(!0,o),i("clone"),s())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(di(!1,o),Be.forEach(function(s){ee(s,"display","")}),t(),gn=!1,i())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,i=n.cancel;!this.isMultiDrag||(Be.forEach(function(s){ee(s,"display","none"),t.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),o(),gn=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ke&&Ke.multiDrag._deselectMultiDrag(),re.forEach(function(t){t.sortableIndex=be(t)}),re=re.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),_t=!0},dragStarted:function(n){var t=this,o=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){re.forEach(function(s){s!==pe&&ee(s,"position","absolute")});var i=ge(pe,!1,!0,!0);re.forEach(function(s){s!==pe&&ti(s,i)}),qe=!0,Bt=!0}o.animateAll(function(){qe=!1,Bt=!1,t.options.animation&&re.forEach(function(s){Mn(s)}),t.options.sort&&bn()})}},dragOver:function(n){var t=n.target,o=n.completed,i=n.cancel;qe&&~re.indexOf(t)&&(o(!1),i())},revert:function(n){var t=n.fromSortable,o=n.rootEl,i=n.sortable,s=n.dragRect;re.length>1&&(re.forEach(function(c){i.addAnimationState({target:c,rect:qe?ge(c):s}),Mn(c),c.fromRect=s,t.removeAnimationState(c)}),qe=!1,Ra(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,s=n.activeSortable,c=n.parentEl,f=n.putSortable,h=this.options;if(i){if(o&&s._hideClone(),Bt=!1,h.animation&&re.length>1&&(qe||!o&&!s.options.sort&&!f)){var d=ge(pe,!1,!0,!0);re.forEach(function(a){a!==pe&&(ti(a,d),c.appendChild(a))}),qe=!0}if(!o)if(qe||bn(),re.length>1){var u=gn;s._showClone(t),s.options.animation&&!gn&&u&&Be.forEach(function(a){s.addAnimationState({target:a,rect:qt}),a.fromRect=qt,a.thisAnimationDuration=null})}else s._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(re.forEach(function(c){c.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){qt=He({},t);var s=ft(pe,!0);qt.top-=s.f,qt.left-=s.e}},dragOverAnimationComplete:function(){qe&&(qe=!1,bn())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,s=n.sortable,c=n.dispatchSortableEvent,f=n.oldIndex,h=n.putSortable,d=h||this.sortable;if(!!t){var u=this.options,a=i.children;if(!_t)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ve(pe,u.selectedClass,!~re.indexOf(pe)),~re.indexOf(pe))re.splice(re.indexOf(pe),1),Ft=null,It({sortable:s,rootEl:o,name:"deselect",targetEl:pe,originalEvt:t});else{if(re.push(pe),It({sortable:s,rootEl:o,name:"select",targetEl:pe,originalEvt:t}),t.shiftKey&&Ft&&s.el.contains(Ft)){var l=be(Ft),m=be(pe);if(~l&&~m&&l!==m){var p,b;for(m>l?(b=l,p=m):(b=m,p=l+1);b<p;b++)~re.indexOf(a[b])||(ve(a[b],u.selectedClass,!0),re.push(a[b]),It({sortable:s,rootEl:o,name:"select",targetEl:a[b],originalEvt:t}))}}else Ft=pe;Ke=d}if(_t&&this.isMultiDrag){if((i[Ie].options.sort||i!==o)&&re.length>1){var y=ge(pe),g=be(pe,":not(."+this.options.selectedClass+")");if(!Bt&&u.animation&&(pe.thisAnimationDuration=null),d.captureAnimationState(),!Bt&&(u.animation&&(pe.fromRect=y,re.forEach(function(v){if(v.thisAnimationDuration=null,v!==pe){var O=qe?ge(v):y;v.fromRect=O,d.addAnimationState({target:v,rect:O})}})),bn(),re.forEach(function(v){a[g]?i.insertBefore(v,a[g]):i.appendChild(v),g++}),f===be(pe))){var _=!1;re.forEach(function(v){if(v.sortableIndex!==be(v)){_=!0;return}}),_&&c("update")}re.forEach(function(v){Mn(v)}),d.animateAll()}Ke=d}(o===i||h&&h.lastPutMode!=="clone")&&Be.forEach(function(v){v.parentNode&&v.parentNode.removeChild(v)})}},nullingGlobal:function(){this.isMultiDrag=_t=!1,Be.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ae(document,"pointerup",this._deselectMultiDrag),ae(document,"mouseup",this._deselectMultiDrag),ae(document,"touchend",this._deselectMultiDrag),ae(document,"keydown",this._checkKeyDown),ae(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof _t!="undefined"&&_t)&&Ke===this.sortable&&!(n&&We(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;re.length;){var t=re[0];ve(t,this.options.selectedClass,!1),re.shift(),It({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},He(e,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[Ie];!t||!t.options.multiDrag||~re.indexOf(n)||(Ke&&Ke!==t&&(Ke.multiDrag._deselectMultiDrag(),Ke=t),ve(n,t.options.selectedClass,!0),re.push(n))},deselect:function(n){var t=n.parentNode[Ie],o=re.indexOf(n);!t||!t.options.multiDrag||!~o||(ve(n,t.options.selectedClass,!1),re.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return re.forEach(function(i){t.push({multiDragElement:i,index:i.sortableIndex});var s;qe&&i!==pe?s=-1:qe?s=be(i,":not(."+n.options.selectedClass+")"):s=be(i),o.push({multiDragElement:i,index:s})}),{items:la(re),clones:[].concat(Be),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Ra(e,r){re.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function di(e,r){Be.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function bn(){re.forEach(function(e){e!==pe&&e.parentNode&&e.parentNode.removeChild(e)})}te.mount(new Pa),te.mount(Jn,Zn);var $a=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:te,MultiDrag:Da,Sortable:te,Swap:Ia}),Ma=zr($a);(function(e,r){(function(t,o){e.exports=o(Ma)})(typeof self!="undefined"?self:Hr,function(n){return function(t){var o={};function i(s){if(o[s])return o[s].exports;var c=o[s]={i:s,l:!1,exports:{}};return t[s].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return i.m=t,i.c=o,i.d=function(s,c,f){i.o(s,c)||Object.defineProperty(s,c,{enumerable:!0,get:f})},i.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,c){if(c&1&&(s=i(s)),c&8||c&4&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(i.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),c&2&&typeof s!="string")for(var h in s)i.d(f,h,function(d){return s[d]}.bind(null,h));return f},i.n=function(s){var c=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(c,"a",c),c},i.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var s=i("2d00"),c=i("5ca1"),f=i("2aba"),h=i("32e9"),d=i("84f2"),u=i("41a0"),a=i("7f20"),l=i("38fd"),m=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),b="@@iterator",y="keys",g="values",_=function(){return this};t.exports=function(v,O,k,T,A,I,x){u(k,O,T);var S=function(P){if(!p&&P in R)return R[P];switch(P){case y:return function(){return new k(this,P)};case g:return function(){return new k(this,P)}}return function(){return new k(this,P)}},w=O+" Iterator",C=A==g,D=!1,R=v.prototype,B=R[m]||R[b]||A&&R[A],H=B||S(A),G=A?C?S("entries"):H:void 0,q=O=="Array"&&R.entries||B,$,E,N;if(q&&(N=l(q.call(new v)),N!==Object.prototype&&N.next&&(a(N,w,!0),!s&&typeof N[m]!="function"&&h(N,m,_))),C&&B&&B.name!==g&&(D=!0,H=function(){return B.call(this)}),(!s||x)&&(p||D||!R[m])&&h(R,m,H),d[O]=H,d[w]=_,A)if($={values:C?H:S(g),keys:I?H:S(y),entries:G},x)for(E in $)E in R||f(R,E,$[E]);else c(c.P+c.F*(p||D),O,$);return $}},"02f4":function(t,o,i){var s=i("4588"),c=i("be13");t.exports=function(f){return function(h,d){var u=String(c(h)),a=s(d),l=u.length,m,p;return a<0||a>=l?f?"":void 0:(m=u.charCodeAt(a),m<55296||m>56319||a+1===l||(p=u.charCodeAt(a+1))<56320||p>57343?f?u.charAt(a):m:f?u.slice(a,a+2):(m-55296<<10)+(p-56320)+65536)}}},"0390":function(t,o,i){var s=i("02f4")(!0);t.exports=function(c,f,h){return f+(h?s(c,f).length:1)}},"0bfb":function(t,o,i){var s=i("cb7c");t.exports=function(){var c=s(this),f="";return c.global&&(f+="g"),c.ignoreCase&&(f+="i"),c.multiline&&(f+="m"),c.unicode&&(f+="u"),c.sticky&&(f+="y"),f}},"0d58":function(t,o,i){var s=i("ce10"),c=i("e11e");t.exports=Object.keys||function(h){return s(h,c)}},"1495":function(t,o,i){var s=i("86cc"),c=i("cb7c"),f=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(d,u){c(d);for(var a=f(u),l=a.length,m=0,p;l>m;)s.f(d,p=a[m++],u[p]);return d}},"214f":function(t,o,i){i("b0c5");var s=i("2aba"),c=i("32e9"),f=i("79e5"),h=i("be13"),d=i("2b4c"),u=i("520a"),a=d("species"),l=!f(function(){var p=/./;return p.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(p,"$<a>")!=="7"}),m=function(){var p=/(?:)/,b=p.exec;p.exec=function(){return b.apply(this,arguments)};var y="ab".split(p);return y.length===2&&y[0]==="a"&&y[1]==="b"}();t.exports=function(p,b,y){var g=d(p),_=!f(function(){var I={};return I[g]=function(){return 7},""[p](I)!=7}),v=_?!f(function(){var I=!1,x=/a/;return x.exec=function(){return I=!0,null},p==="split"&&(x.constructor={},x.constructor[a]=function(){return x}),x[g](""),!I}):void 0;if(!_||!v||p==="replace"&&!l||p==="split"&&!m){var O=/./[g],k=y(h,g,""[p],function(x,S,w,C,D){return S.exec===u?_&&!D?{done:!0,value:O.call(S,w,C)}:{done:!0,value:x.call(w,S,C)}:{done:!1}}),T=k[0],A=k[1];s(String.prototype,p,T),c(RegExp.prototype,g,b==2?function(I,x){return A.call(I,this,x)}:function(I){return A.call(I,this)})}}},"230e":function(t,o,i){var s=i("d3f4"),c=i("7726").document,f=s(c)&&s(c.createElement);t.exports=function(h){return f?c.createElement(h):{}}},"23c6":function(t,o,i){var s=i("2d95"),c=i("2b4c")("toStringTag"),f=s(function(){return arguments}())=="Arguments",h=function(d,u){try{return d[u]}catch{}};t.exports=function(d){var u,a,l;return d===void 0?"Undefined":d===null?"Null":typeof(a=h(u=Object(d),c))=="string"?a:f?s(u):(l=s(u))=="Object"&&typeof u.callee=="function"?"Arguments":l}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var s=i("7726"),c=i("32e9"),f=i("69a8"),h=i("ca5a")("src"),d=i("fa5b"),u="toString",a=(""+d).split(u);i("8378").inspectSource=function(l){return d.call(l)},(t.exports=function(l,m,p,b){var y=typeof p=="function";y&&(f(p,"name")||c(p,"name",m)),l[m]!==p&&(y&&(f(p,h)||c(p,h,l[m]?""+l[m]:a.join(String(m)))),l===s?l[m]=p:b?l[m]?l[m]=p:c(l,m,p):(delete l[m],c(l,m,p)))})(Function.prototype,u,function(){return typeof this=="function"&&this[h]||d.call(this)})},"2aeb":function(t,o,i){var s=i("cb7c"),c=i("1495"),f=i("e11e"),h=i("613b")("IE_PROTO"),d=function(){},u="prototype",a=function(){var l=i("230e")("iframe"),m=f.length,p="<",b=">",y;for(l.style.display="none",i("fab2").appendChild(l),l.src="javascript:",y=l.contentWindow.document,y.open(),y.write(p+"script"+b+"document.F=Object"+p+"/script"+b),y.close(),a=y.F;m--;)delete a[u][f[m]];return a()};t.exports=Object.create||function(m,p){var b;return m!==null?(d[u]=s(m),b=new d,d[u]=null,b[h]=m):b=a(),p===void 0?b:c(b,p)}},"2b4c":function(t,o,i){var s=i("5537")("wks"),c=i("ca5a"),f=i("7726").Symbol,h=typeof f=="function",d=t.exports=function(u){return s[u]||(s[u]=h&&f[u]||(h?f:c)("Symbol."+u))};d.store=s},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var i={}.toString;t.exports=function(s){return i.call(s).slice(8,-1)}},"2fdb":function(t,o,i){var s=i("5ca1"),c=i("d2c8"),f="includes";s(s.P+s.F*i("5147")(f),"String",{includes:function(d){return!!~c(this,d,f).indexOf(d,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var s=i("86cc"),c=i("4630");t.exports=i("9e1e")?function(f,h,d){return s.f(f,h,c(1,d))}:function(f,h,d){return f[h]=d,f}},"38fd":function(t,o,i){var s=i("69a8"),c=i("4bf8"),f=i("613b")("IE_PROTO"),h=Object.prototype;t.exports=Object.getPrototypeOf||function(d){return d=c(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?h:null}},"41a0":function(t,o,i){var s=i("2aeb"),c=i("4630"),f=i("7f20"),h={};i("32e9")(h,i("2b4c")("iterator"),function(){return this}),t.exports=function(d,u,a){d.prototype=s(h,{next:c(1,a)}),f(d,u+" Iterator")}},"456d":function(t,o,i){var s=i("4bf8"),c=i("0d58");i("5eda")("keys",function(){return function(h){return c(s(h))}})},"4588":function(t,o){var i=Math.ceil,s=Math.floor;t.exports=function(c){return isNaN(c=+c)?0:(c>0?s:i)(c)}},"4630":function(t,o){t.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"4bf8":function(t,o,i){var s=i("be13");t.exports=function(c){return Object(s(c))}},"5147":function(t,o,i){var s=i("2b4c")("match");t.exports=function(c){var f=/./;try{"/./"[c](f)}catch{try{return f[s]=!1,!"/./"[c](f)}catch{}}return!0}},"520a":function(t,o,i){var s=i("0bfb"),c=RegExp.prototype.exec,f=String.prototype.replace,h=c,d="lastIndex",u=function(){var m=/a/,p=/b*/g;return c.call(m,"a"),c.call(p,"a"),m[d]!==0||p[d]!==0}(),a=/()??/.exec("")[1]!==void 0,l=u||a;l&&(h=function(p){var b=this,y,g,_,v;return a&&(g=new RegExp("^"+b.source+"$(?!\\s)",s.call(b))),u&&(y=b[d]),_=c.call(b,p),u&&_&&(b[d]=b.global?_.index+_[0].length:y),a&&_&&_.length>1&&f.call(_[0],g,function(){for(v=1;v<arguments.length-2;v++)arguments[v]===void 0&&(_[v]=void 0)}),_}),t.exports=h},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var s=i("8378"),c=i("7726"),f="__core-js_shared__",h=c[f]||(c[f]={});(t.exports=function(d,u){return h[d]||(h[d]=u!==void 0?u:{})})("versions",[]).push({version:s.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,i){var s=i("7726"),c=i("8378"),f=i("32e9"),h=i("2aba"),d=i("9b43"),u="prototype",a=function(l,m,p){var b=l&a.F,y=l&a.G,g=l&a.S,_=l&a.P,v=l&a.B,O=y?s:g?s[m]||(s[m]={}):(s[m]||{})[u],k=y?c:c[m]||(c[m]={}),T=k[u]||(k[u]={}),A,I,x,S;y&&(p=m);for(A in p)I=!b&&O&&O[A]!==void 0,x=(I?O:p)[A],S=v&&I?d(x,s):_&&typeof x=="function"?d(Function.call,x):x,O&&h(O,A,x,l&a.U),k[A]!=x&&f(k,A,S),_&&T[A]!=x&&(T[A]=x)};s.core=c,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"5eda":function(t,o,i){var s=i("5ca1"),c=i("8378"),f=i("79e5");t.exports=function(h,d){var u=(c.Object||{})[h]||Object[h],a={};a[h]=d(u),s(s.S+s.F*f(function(){u(1)}),"Object",a)}},"5f1b":function(t,o,i){var s=i("23c6"),c=RegExp.prototype.exec;t.exports=function(f,h){var d=f.exec;if(typeof d=="function"){var u=d.call(f,h);if(typeof u!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return u}if(s(f)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return c.call(f,h)}},"613b":function(t,o,i){var s=i("5537")("keys"),c=i("ca5a");t.exports=function(f){return s[f]||(s[f]=c(f))}},"626a":function(t,o,i){var s=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(c){return s(c)=="String"?c.split(""):Object(c)}},"6762":function(t,o,i){var s=i("5ca1"),c=i("c366")(!0);s(s.P,"Array",{includes:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var s=i("626a"),c=i("be13");t.exports=function(f){return s(c(f))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(s,c){return i.call(s,c)}},"6a99":function(t,o,i){var s=i("d3f4");t.exports=function(c,f){if(!s(c))return c;var h,d;if(f&&typeof(h=c.toString)=="function"&&!s(d=h.call(c))||typeof(h=c.valueOf)=="function"&&!s(d=h.call(c))||!f&&typeof(h=c.toString)=="function"&&!s(d=h.call(c)))return d;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var s=i("0d58"),c=i("2621"),f=i("52a7"),h=i("4bf8"),d=i("626a"),u=Object.assign;t.exports=!u||i("79e5")(function(){var a={},l={},m=Symbol(),p="abcdefghijklmnopqrst";return a[m]=7,p.split("").forEach(function(b){l[b]=b}),u({},a)[m]!=7||Object.keys(u({},l)).join("")!=p})?function(l,m){for(var p=h(l),b=arguments.length,y=1,g=c.f,_=f.f;b>y;)for(var v=d(arguments[y++]),O=g?s(v).concat(g(v)):s(v),k=O.length,T=0,A;k>T;)_.call(v,A=O[T++])&&(p[A]=v[A]);return p}:u},"7726":function(t,o){var i=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(t,o,i){var s=i("4588"),c=Math.max,f=Math.min;t.exports=function(h,d){return h=s(h),h<0?c(h+d,0):f(h,d)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var s=i("86cc").f,c=i("69a8"),f=i("2b4c")("toStringTag");t.exports=function(h,d,u){h&&!c(h=u?h:h.prototype,f)&&s(h,f,{configurable:!0,value:d})}},"8378":function(t,o){var i=t.exports={version:"2.6.5"};typeof __e=="number"&&(__e=i)},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,i){var s=i("cb7c"),c=i("c69a"),f=i("6a99"),h=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(u,a,l){if(s(u),a=f(a,!0),s(l),c)try{return h(u,a,l)}catch{}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(u[a]=l.value),u}},"9b43":function(t,o,i){var s=i("d8e8");t.exports=function(c,f,h){if(s(c),f===void 0)return c;switch(h){case 1:return function(d){return c.call(f,d)};case 2:return function(d,u){return c.call(f,d,u)};case 3:return function(d,u,a){return c.call(f,d,u,a)}}return function(){return c.apply(f,arguments)}}},"9c6c":function(t,o,i){var s=i("2b4c")("unscopables"),c=Array.prototype;c[s]==null&&i("32e9")(c,s,{}),t.exports=function(f){c[s][f]=!0}},"9def":function(t,o,i){var s=i("4588"),c=Math.min;t.exports=function(f){return f>0?c(s(f),9007199254740991):0}},"9e1e":function(t,o,i){t.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(t,o){t.exports=n},a481:function(t,o,i){var s=i("cb7c"),c=i("4bf8"),f=i("9def"),h=i("4588"),d=i("0390"),u=i("5f1b"),a=Math.max,l=Math.min,m=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,y=function(g){return g===void 0?g:String(g)};i("214f")("replace",2,function(g,_,v,O){return[function(A,I){var x=g(this),S=A==null?void 0:A[_];return S!==void 0?S.call(A,x,I):v.call(String(x),A,I)},function(T,A){var I=O(v,T,this,A);if(I.done)return I.value;var x=s(T),S=String(this),w=typeof A=="function";w||(A=String(A));var C=x.global;if(C){var D=x.unicode;x.lastIndex=0}for(var R=[];;){var B=u(x,S);if(B===null||(R.push(B),!C))break;var H=String(B[0]);H===""&&(x.lastIndex=d(S,f(x.lastIndex),D))}for(var G="",q=0,$=0;$<R.length;$++){B=R[$];for(var E=String(B[0]),N=a(l(h(B.index),S.length),0),P=[],j=1;j<B.length;j++)P.push(y(B[j]));var F=B.groups;if(w){var L=[E].concat(P,N,S);F!==void 0&&L.push(F);var M=String(A.apply(void 0,L))}else M=k(E,S,N,P,F,A);N>=q&&(G+=S.slice(q,N)+M,q=N+E.length)}return G+S.slice(q)}];function k(T,A,I,x,S,w){var C=I+T.length,D=x.length,R=b;return S!==void 0&&(S=c(S),R=p),v.call(w,R,function(B,H){var G;switch(H.charAt(0)){case"$":return"$";case"&":return T;case"`":return A.slice(0,I);case"'":return A.slice(C);case"<":G=S[H.slice(1,-1)];break;default:var q=+H;if(q===0)return B;if(q>D){var $=m(q/10);return $===0?B:$<=D?x[$-1]===void 0?H.charAt(1):x[$-1]+H.charAt(1):B}G=x[q-1]}return G===void 0?"":G})}})},aae3:function(t,o,i){var s=i("d3f4"),c=i("2d95"),f=i("2b4c")("match");t.exports=function(h){var d;return s(h)&&((d=h[f])!==void 0?!!d:c(h)=="RegExp")}},ac6a:function(t,o,i){for(var s=i("cadf"),c=i("0d58"),f=i("2aba"),h=i("7726"),d=i("32e9"),u=i("84f2"),a=i("2b4c"),l=a("iterator"),m=a("toStringTag"),p=u.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=c(b),g=0;g<y.length;g++){var _=y[g],v=b[_],O=h[_],k=O&&O.prototype,T;if(k&&(k[l]||d(k,l,p),k[m]||d(k,m,_),u[_]=p,v))for(T in s)k[T]||f(k,T,s[T],!0)}},b0c5:function(t,o,i){var s=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(t,o){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(t,o,i){var s=i("6821"),c=i("9def"),f=i("77f1");t.exports=function(h){return function(d,u,a){var l=s(d),m=c(l.length),p=f(a,m),b;if(h&&u!=u){for(;m>p;)if(b=l[p++],b!=b)return!0}else for(;m>p;p++)if((h||p in l)&&l[p]===u)return h||p||0;return!h&&-1}}},c649:function(t,o,i){(function(s){i.d(o,"c",function(){return l}),i.d(o,"a",function(){return u}),i.d(o,"b",function(){return f}),i.d(o,"d",function(){return a}),i("a481");function c(){return typeof window!="undefined"?window.console:s.console}var f=c();function h(m){var p=Object.create(null);return function(y){var g=p[y];return g||(p[y]=m(y))}}var d=/-(\w)/g,u=h(function(m){return m.replace(d,function(p,b){return b?b.toUpperCase():""})});function a(m){m.parentElement!==null&&m.parentElement.removeChild(m)}function l(m,p,b){var y=b===0?m.children[0]:m.children[b-1].nextSibling;m.insertBefore(p,y)}}).call(this,i("c8ba"))},c69a:function(t,o,i){t.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(t,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},ca5a:function(t,o){var i=0,s=Math.random();t.exports=function(c){return"Symbol(".concat(c===void 0?"":c,")_",(++i+s).toString(36))}},cadf:function(t,o,i){var s=i("9c6c"),c=i("d53b"),f=i("84f2"),h=i("6821");t.exports=i("01f9")(Array,"Array",function(d,u){this._t=h(d),this._i=0,this._k=u},function(){var d=this._t,u=this._k,a=this._i++;return!d||a>=d.length?(this._t=void 0,c(1)):u=="keys"?c(0,a):u=="values"?c(0,d[a]):c(0,[a,d[a]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},cb7c:function(t,o,i){var s=i("d3f4");t.exports=function(c){if(!s(c))throw TypeError(c+" is not an object!");return c}},ce10:function(t,o,i){var s=i("69a8"),c=i("6821"),f=i("c366")(!1),h=i("613b")("IE_PROTO");t.exports=function(d,u){var a=c(d),l=0,m=[],p;for(p in a)p!=h&&s(a,p)&&m.push(p);for(;u.length>l;)s(a,p=u[l++])&&(~f(m,p)||m.push(p));return m}},d2c8:function(t,o,i){var s=i("aae3"),c=i("be13");t.exports=function(f,h,d){if(s(h))throw TypeError("String#"+d+" doesn't accept regex!");return String(c(f))}},d3f4:function(t,o){t.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(t,o){t.exports=function(i,s){return{value:s,done:!!i}}},d8e8:function(t,o){t.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(t,o){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,o,i){var s=i("5ca1"),c=i("9def"),f=i("d2c8"),h="startsWith",d=""[h];s(s.P+s.F*i("5147")(h),"String",{startsWith:function(a){var l=f(this,a,h),m=c(Math.min(arguments.length>1?arguments[1]:void 0,l.length)),p=String(a);return d?d.call(l,p,m):l.slice(m,m+p.length)===p}})},f6fd:function(t,o){(function(i){var s="currentScript",c=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(d){var f,h=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(d.stack)||[!1])[1];for(f in c)if(c[f].src==h||c[f].readyState=="interactive")return c[f];return null}}})})(document)},f751:function(t,o,i){var s=i("5ca1");s(s.S+s.F,"Object",{assign:i("7333")})},fa5b:function(t,o,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,o,i){var s=i("7726").document;t.exports=s&&s.documentElement},fb15:function(t,o,i){if(i.r(o),typeof window!="undefined"){i("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=s[1])}i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function c(E){if(Array.isArray(E))return E}function f(E,N){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(E)))){var P=[],j=!0,F=!1,L=void 0;try{for(var M=E[Symbol.iterator](),U;!(j=(U=M.next()).done)&&(P.push(U.value),!(N&&P.length===N));j=!0);}catch(z){F=!0,L=z}finally{try{!j&&M.return!=null&&M.return()}finally{if(F)throw L}}return P}}function h(E,N){(N==null||N>E.length)&&(N=E.length);for(var P=0,j=new Array(N);P<N;P++)j[P]=E[P];return j}function d(E,N){if(!!E){if(typeof E=="string")return h(E,N);var P=Object.prototype.toString.call(E).slice(8,-1);if(P==="Object"&&E.constructor&&(P=E.constructor.name),P==="Map"||P==="Set")return Array.from(E);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return h(E,N)}}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
7
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(E,N){return c(E)||f(E,N)||d(E,N)||u()}i("6762"),i("2fdb");function l(E){if(Array.isArray(E))return h(E)}function m(E){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(E))return Array.from(E)}function p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(E){return l(E)||m(E)||d(E)||p()}var y=i("a352"),g=i.n(y),_=i("c649");function v(E,N,P){return P===void 0||(E=E||{},E[N]=P),E}function O(E,N){return E.map(function(P){return P.elm}).indexOf(N)}function k(E,N,P,j){if(!E)return[];var F=E.map(function(U){return U.elm}),L=N.length-j,$=b(N).map(function(U,z){return z>=L?F.length:F.indexOf(U)});return P?$.filter(function(U){return U!==-1}):$}function T(E,N){var P=this;this.$nextTick(function(){return P.$emit(E.toLowerCase(),N)})}function A(E){var N=this;return function(P){N.realList!==null&&N["onDrag"+E](P),T.call(N,E,P)}}function I(E){return["transition-group","TransitionGroup"].includes(E)}function x(E){if(!E||E.length!==1)return!1;var N=a(E,1),P=N[0].componentOptions;return P?I(P.tag):!1}function S(E,N,P){return E[P]||(N[P]?N[P]():void 0)}function w(E,N,P){var j=0,F=0,L=S(N,P,"header");L&&(j=L.length,E=E?[].concat(b(L),b(E)):b(L));var $=S(N,P,"footer");return $&&(F=$.length,E=E?[].concat(b(E),b($)):b($)),{children:E,headerOffset:j,footerOffset:F}}function C(E,N){var P=null,j=function(V,Q){P=v(P,V,Q)},F=Object.keys(E).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,V){return z[V]=E[V],z},{});if(j("attrs",F),!N)return P;var L=N.on,$=N.props,U=N.attrs;return j("on",L),j("props",$),Object.assign(P.attrs,U),P}var D=["Start","Add","Remove","Update","End"],R=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(D,R).map(function(E){return"on"+E}),H=null,G={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(N){return N}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},q={name:"draggable",inheritAttrs:!1,props:G,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(N){var P=this.$slots.default;this.transitionMode=x(P);var j=w(P,this.$slots,this.$scopedSlots),F=j.children,L=j.headerOffset,$=j.footerOffset;this.headerOffset=L,this.footerOffset=$;var U=C(this.$attrs,this.componentData);return N(this.getTag(),U,F)},created:function(){this.list!==null&&this.value!==null&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var N=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var P={};D.forEach(function(L){P["on"+L]=A.call(N,L)}),R.forEach(function(L){P["on"+L]=T.bind(N,L)});var j=Object.keys(this.$attrs).reduce(function(L,$){return L[Object(_.a)($)]=N.$attrs[$],L},{}),F=Object.assign({},this.options,j,P,{onMove:function($,U){return N.onDragMove($,U)}});!("draggable"in F)&&(F.draggable=">*"),this._sortable=new g.a(this.rootContainer,F),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(N){this.updateOptions(N)},deep:!0},$attrs:{handler:function(N){this.updateOptions(N)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var N=this._vnode.fnOptions;return N&&N.functional},getTag:function(){return this.tag||this.element},updateOptions:function(N){for(var P in N){var j=Object(_.a)(P);B.indexOf(j)===-1&&this._sortable.option(j,N[P])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var N=this.$slots.default;return this.transitionMode?N[0].child.$slots.default:N},computeIndexes:function(){var N=this;this.$nextTick(function(){N.visibleIndexes=k(N.getChildrenNodes(),N.rootContainer.children,N.transitionMode,N.footerOffset)})},getUnderlyingVm:function(N){var P=O(this.getChildrenNodes()||[],N);if(P===-1)return null;var j=this.realList[P];return{index:P,element:j}},getUnderlyingPotencialDraggableComponent:function(N){var P=N.__vue__;return!P||!P.$options||!I(P.$options._componentTag)?!("realList"in P)&&P.$children.length===1&&"realList"in P.$children[0]?P.$children[0]:P:P.$parent},emitChanges:function(N){var P=this;this.$nextTick(function(){P.$emit("change",N)})},alterList:function(N){if(this.list){N(this.list);return}var P=b(this.value);N(P),this.$emit("input",P)},spliceList:function(){var N=arguments,P=function(F){return F.splice.apply(F,b(N))};this.alterList(P)},updatePosition:function(N,P){var j=function(L){return L.splice(P,0,L.splice(N,1)[0])};this.alterList(j)},getRelatedContextFromMoveEvent:function(N){var P=N.to,j=N.related,F=this.getUnderlyingPotencialDraggableComponent(P);if(!F)return{component:F};var L=F.realList,$={list:L,component:F};if(P!==j&&L&&F.getUnderlyingVm){var U=F.getUnderlyingVm(j);if(U)return Object.assign(U,$)}return $},getVmIndex:function(N){var P=this.visibleIndexes,j=P.length;return N>j-1?j:P[N]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(N){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var P=this.getChildrenNodes();P[N].data=null;var j=this.getComponent();j.children=[],j.kept=void 0}},onDragStart:function(N){this.context=this.getUnderlyingVm(N.item),N.item._underlying_vm_=this.clone(this.context.element),H=N.item},onDragAdd:function(N){var P=N.item._underlying_vm_;if(P!==void 0){Object(_.d)(N.item);var j=this.getVmIndex(N.newIndex);this.spliceList(j,0,P),this.computeIndexes();var F={element:P,newIndex:j};this.emitChanges({added:F})}},onDragRemove:function(N){if(Object(_.c)(this.rootContainer,N.item,N.oldIndex),N.pullMode==="clone"){Object(_.d)(N.clone);return}var P=this.context.index;this.spliceList(P,1);var j={element:this.context.element,oldIndex:P};this.resetTransitionData(P),this.emitChanges({removed:j})},onDragUpdate:function(N){Object(_.d)(N.item),Object(_.c)(N.from,N.item,N.oldIndex);var P=this.context.index,j=this.getVmIndex(N.newIndex);this.updatePosition(P,j);var F={element:this.context.element,oldIndex:P,newIndex:j};this.emitChanges({moved:F})},updateProperty:function(N,P){N.hasOwnProperty(P)&&(N[P]+=this.headerOffset)},computeFutureIndex:function(N,P){if(!N.element)return 0;var j=b(P.to.children).filter(function(U){return U.style.display!=="none"}),F=j.indexOf(P.related),L=N.component.getVmIndex(F),$=j.indexOf(H)!==-1;return $||!P.willInsertAfter?L:L+1},onDragMove:function(N,P){var j=this.move;if(!j||!this.realList)return!0;var F=this.getRelatedContextFromMoveEvent(N),L=this.context,$=this.computeFutureIndex(F,N);Object.assign(L,{futureIndex:$});var U=Object.assign({},N,{relatedContext:F,draggedContext:L});return j(U,P)},onDragEnd:function(){this.computeIndexes(),H=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var M=q;o.default=M}}).default})})(Wr);var hi=Ur(Wr.exports),ja=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-record"},[n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",width:"600",offset:-172},model:{value:e.showPropover,callback:function(t){e.showPropover=t},expression:"showPropover"}},[n("div",{staticClass:"ui-record__list"},[n("div",{staticClass:"ui-record__saves"},e._l(e.recordData.saves,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.labels.map(function(i){return i.label+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t)}}},[n("div",{staticStyle:{position:"absolute","z-index":"-1"}},[e.$refs["EditLabelTitle_"+o]&&e.$refs["EditLabelTitle_"+o][0]?n("el-popover",{ref:"EditLabelTitlePopover_"+o,refInFor:!0,attrs:{reference:e.$refs["EditLabelTitle_"+o][0],placement:"top",width:"160"}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",placeholder:"\u8BF7\u8F93\u5165\u7B5B\u9009\u6807\u9898"},model:{value:e.changeLabelTitleVal,callback:function(i){e.changeLabelTitleVal=i},expression:"changeLabelTitleVal"}}),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){e.$refs["EditLabelTitlePopover_"+o][0].doClose()}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfirmChangeLabelTitle(o)}}},[e._v("\u786E\u5B9A")])],1)],1):e._e()],1),n("div",[t.title?n("div",[n("span",[e._v(e._s(t.title))])]):n("div",e._l(t.labels,function(i,s){return n("span",{key:s},[e._v(e._s(i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0)]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u4FEE\u6539\u7B5B\u9009\u6807\u9898",placement:"top-start"}},[n("i",{ref:"EditLabelTitle_"+o,refInFor:!0,staticClass:"el-icon-edit ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleShowChangeLabelTitle(t)}}})]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u79FB\u9664\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-remove ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"saves")}}})])],1)}),0),n("div",{staticClass:"ui-record__temps"},e._l(e.recordData.temps,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.map(function(i){return i.label+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o)}}},[e._l(t,function(i,s){return n("span",{key:s},[e._v(e._s(i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u6DFB\u52A0\u5230\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-circle-plus ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"temps")}}})])],2)}),0)]),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u7B5B\u9009\u5386\u53F2 "),n("i",{staticClass:"el-icon-caret-right"})])],1)],1)},Fa=[],uf="";const Ba={props:{configKey:{type:String,default:""},current:{type:Array,default(){return[]}}},data(){return{showPropover:!1,recordData:{saves:[],temps:[]},changeLabelTitleShow:!1,changeLabelTitleVal:"",changeLabelTitleItem:{}}},created(){let e=localStorage.getItem(`SaveRecord_${this.configKey}`);const r=e?JSON.parse(e):{saves:[],temps:[]};r.saves[0]&&Array.isArray(r.saves[0])&&(r.saves=r.saves.map(n=>({labels:n,title:""}))),this.recordData=r},methods:{handleOperation(e,r){if(r=="temps"){const n=this.recordData.temps[e];this.recordData.saves.unshift({labels:n,title:""}),this.$nextTick().then(()=>{this.$forceUpdate()})}else this.recordData.saves.splice(e,1);this.handelSaveRecord()},async handleShortcut(e,r){this.$parent.$children.forEach(t=>{const o=(e.labels||e).find(i=>i.label==t.label);o?(Array.isArray(o.value)?t.staticOptions.splice(0,t.staticOptions.length,...o.value.map((i,s)=>({label:o.valueLabel[s],value:i}))):t.staticOptions.splice(0,t.staticOptions.length,{label:o.valueLabel,value:o.value}),t.modelForm=o.value):t.label&&t.$el.style.display!=="none"&&(Array.isArray(t.modelForm)?t.modelForm=[]:typeof t.modelForm=="number"?t.modelForm=void 0:t.modelForm="")});const n=this.recordData.temps.splice(r,1);this.recordData.temps.unshift(...n),this.handelSaveRecord(),this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(n[0])},handelSaveRecord(){this.recordData.temps.length>10&&this.recordData.temps.splice(10),localStorage.setItem(`SaveRecord_${this.configKey}`,JSON.stringify(this.recordData))},handleShowChangeLabelTitle(e){this.changeLabelTitleShow=!0,this.changeLabelTitleItem=e},handleConfirmChangeLabelTitle(e){this.changeLabelTitleItem.title=this.changeLabelTitleVal,this.changeLabelTitleVal="",this.$refs[`EditLabelTitlePopover_${e}`][0].doClose(),localStorage.setItem(`SaveRecord_${this.configKey}`,JSON.stringify(this.recordData))}},watch:{current:{handler(e){e.length&&this.recordData.temps.findIndex(n=>{const t=JSON.parse(JSON.stringify(n)).sort((i,s)=>i.label.localeCompare(s.label)),o=JSON.parse(JSON.stringify(e)).sort((i,s)=>i.label.localeCompare(s.label));return JSON.stringify(t)==JSON.stringify(o)})<0&&(this.recordData.temps.unshift(e),this.handelSaveRecord())},deep:!0}}},pi={};var qa=Ae(Ba,ja,Fa,!1,Ha,"80770e96",null,null);function Ha(e){for(let r in pi)this[r]=pi[r]}var Ua=function(){return qa.exports}();const za={props:{vnode:{type:[Object,Function],default:()=>{}}},data(){return{}},render(e){const r=this._props.vnode,n=r.$slots.prepend,t=r.$slots.append,o=r.$slots.label;return e(this._props.vnode.constructor,{on:r.$listeners,props:r.$options.propsData,attrs:r.$attrs,staticStyle:r.staticStyle,ref:r.ref},[n?[e("div",{slot:"prepend"},n)]:[],t?[e("div",{slot:"append"},t)]:[],o?[e("div",{slot:"label",class:"ui-item__label"},o)]:[]])}};let Wa,Ga;const vi={};var Ka=Ae(za,Wa,Ga,!1,Va,null,null,null);function Va(e){for(let r in vi)this[r]=vi[r]}var Ya=function(){return Ka.exports}();function Xa(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,s=t.noLeading,c=s===void 0?!1:s,f=t.debounceMode,h=f===void 0?void 0:f,d,u=!1,a=0;function l(){d&&clearTimeout(d)}function m(b){var y=b||{},g=y.upcomingOnly,_=g===void 0?!1:g;l(),u=!_}function p(){for(var b=arguments.length,y=new Array(b),g=0;g<b;g++)y[g]=arguments[g];var _=this,v=Date.now()-a;if(u)return;function O(){a=Date.now(),r.apply(_,y)}function k(){d=void 0}!c&&h&&!d&&O(),l(),h===void 0&&v>e?c?(a=Date.now(),i||(d=setTimeout(h?k:O,e))):O():i!==!0&&(d=setTimeout(h?k:O,h===void 0?e-v:e))}return p.cancel=m,p}function Qn(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return Xa(e,r,{debounceMode:i!==!1})}function yi(e=0,r=!0,n=null){var c;const t=n?n.map(f=>document.querySelector(f)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const f=document.querySelector(".ui-pagination"),h=document.querySelector(".ui-container__header"),d=(h==null?void 0:h.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),u=document.querySelector(".ui-table__tab");o.push(...[(f==null?void 0:f.offsetHeight)||0,(h==null?void 0:h.offsetHeight)||0,(d==null?void 0:d.offsetHeight)||0,(u==null?void 0:u.offsetHeight)||0].filter(a=>!!a))}let i=e+o.reduce((f,h)=>f+h,0),s=navigator.userAgent;for(let f=0;f<t.length;f++){let h=t[f];if(!h||h.className.indexOf("ui-table")>-1)continue;i+=h.offsetHeight;let d,u,a=(c=document==null?void 0:document.defaultView)==null?void 0:c.getComputedStyle(h);if(s.indexOf("Firefox")>-1)u=parseInt(a["margin-top"])+parseInt(a["margin-bottom"]);else if(s.indexOf("compatible")>-1&&s.indexOf("MSIE")>-1&&!(s.indexOf("Opera")>-1)){let l=h.currentStyle;u=parseInt(l.marginTop)+parseInt(l.marginBottom)}else if(d=a.margin.split(" "),d.length==1)u=parseInt(d[0])*2;else{const[l,m,p,b]=d;u=parseInt(p)?parseInt(l)+parseInt(p):parseInt(l)}i=u+i}return i=window.innerHeight-i,i}function Za(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var Ja=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSearch,expression:"loadSearch"}],ref:"Search",staticClass:"ui-search"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__main"},[e.useConfig?n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2):e._t("default"),!e.loadSearch&&e.useConfig?e._l(e.childItems,function(t,o){return n("DefaultItem",{key:o,ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})}):e._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__footer"},[n("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")]),n("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small",icon:"el-icon-search",type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("\u67E5\u8BE2")]),n("div",{staticStyle:{"align-self":"flex-end"}},[e.showMore?n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",offset:-172,width:e.containerWidth}},[n("div",{staticClass:"ui-more__select"},[n("el-row",e._l(e.hideItems,function(t,o){return n("el-col",e._b({key:o},"el-col",Object.assign({},{span:4},t.$attrs,t.$options.propsData),!1),[!e.loadSearch&&e.useConfig?[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]:e.loadSearch?e._e():[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]],2)}),1)],1),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u66F4\u591A\u7B5B\u9009 "),n("i",{staticClass:"el-icon-caret-right"})])],1):e._e()],1),e.useConfig?n("el-button",{staticClass:"ui-search__button--more",attrs:{type:"text"},on:{click:e.handleShowConfig}},[e._v("\u7B5B\u9009\u914D\u7F6E "),n("i",{staticClass:"el-icon-setting"})]):e._e(),n("Record",{attrs:{"config-key":e.configKey,current:e.searchLoc}}),e._t("footer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache",attrs:{title:e.searchLoc.map(function(t){return t.label+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")}},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collspase,expression:"!collspase"}],staticClass:"ui-collspase--cache"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark","popper-class":"ui-search__cache__popper",placement:"bottom-start"},scopedSlots:e._u([{key:"content",fn:function(){return[n("p",{staticStyle:{"line-height":"18px"}},[e._v(e._s(e.searchLoc.map(function(t){return t.label+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")))])]},proxy:!0}])},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache"},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)])],1),n("div",{staticClass:"ui-collspase",class:{"ui-collspase--open":e.collspase},on:{click:function(t){e.collspase=!e.collspase}}},[n("span",{class:e.collspase?"el-icon-caret-top":"el-icon-caret-bottom"})]),n("el-drawer",{attrs:{title:"\u7B5B\u9009\u914D\u7F6E",direction:"btt",size:"100%",withHeader:!1,modal:!1,"modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content"},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t,o){return n("el-checkbox",{key:o,attrs:{border:"",label:t}})}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")])],1)])])],1)},Qa=[],ff="";const el={name:"ComSearch",components:{draggable:hi,Record:Ua,DefaultItem:Ya},props:{searchCfg:{type:Array,default(){return[]}},flagId:{type:String,default:""},useConfig:{type:Boolean,default:!0}},data(){return{containerWidth:"200px",hideItems:[],defaultVNode:[],defaultItems:[],showConfig:!1,checkItems:[],sortItems:[],loadSearch:!1,searchLoc:[],childItems:[],initLoad:!1,configKey:this.flagId||this.$route.path,handleWindowResize:null,waitTimeout:"",searchHeight:"",listenerSearchTimes:"",collspase:!0,showTip:!1}},computed:{showMore(){return!!this.hideItems.length},ConfigRefs(){return Object.entries(this.$refs).reduce((e,[r,n])=>{if(r.indexOf("Config_")>-1){const t=r.replace("Config_",""),o=n[0].$refs[t];return Ne(Ne({},e),o?{[t]:o.$refs[o.type]}:{})}},{})}},methods:{handleQuery(e){const r=(o,i)=>o?o instanceof Date?!1:Array.isArray(o)&&i=="inputrange"?!o[0]&&!o[1]:o instanceof Object?!Object.entries(o).length:!1:typeof o!="boolean";this.searchLoc=Array.isArray(e)?e:this.$children.reduce((o,i)=>{var s,c;if(i.label&&!r(i.modelForm,i.type)){let f;return i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?f=i.modelForm.map(h=>{var d;return((d=[...i.selectOption,...i.staticOptions].find(u=>u.value==h))==null?void 0:d.label)||h}):f=((s=[...i.selectOption,...i.staticOptions].find(h=>h.value==i.modelForm))==null?void 0:s.label)||i.modelForm:Array.isArray(i.modelForm)?f=i.modelForm.map(h=>{var d;return((d=i.staticOptions.find(u=>u.value==h))==null?void 0:d.label)||h}):f=((c=i.staticOptions.find(h=>h.value==i.modelForm))==null?void 0:c.label)||i.modelForm,[...o,{label:i.label,value:i.modelForm,valueLabel:f}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(Ne({},t.defaultParams||{})):this.$emit("query")},handleReset(){const e=this.$parent.handleReset;e?e():this.$emit("reset")},waitRenderItem(){return new Promise(e=>{clearTimeout(this.waitTimeout);const r=this.$refs.Search.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");for(let n=0;n<r.length;n++)if(r[n].getBoundingClientRect().right>0)return e(!0);this.waitTimeout=setTimeout(async()=>{e(await this.waitRenderItem())},100)})},async handleLayoutItem(e=!1){await this.waitRenderItem();const r=this.$refs.Search,n=r.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");n.forEach(i=>i.className=i.className.replace("ui-form__item--hide",""));const{right:t}=r.getBoundingClientRect();this.containerWidth=r.offsetWidth-80,this.useConfig&&n.forEach(i=>{try{const s=i.__vue__.label||i.__vue__.$children[0].label;this.checkItems.includes(s)?i.style.display="block":i.style.display="none"}catch{console.log(i.__vue__,i)}});const o=[];n.forEach(i=>{const{right:s}=i.getBoundingClientRect();s>t&&(i.className=`${i.className} ui-form__item--hide`,o.push(i))}),e!==!0&&(this.useConfig?this.hideItems=o.map(i=>this.childItems.find((s,c)=>{const f=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return s.$options.propsData.label==f.propsData.label})).filter(i=>!!i):this.hideItems=this.$children.filter(i=>i.$el.className.indexOf("ui-form__item--hide")>-1),this.loadSearch=!1)},changeOptions(e){this.$parent.changeOptions(e)},handleShowConfig(){this.showConfig=!0},async handleRenderConfig(){const e={checkItems:this.checkItems,sortItems:this.sortItems};localStorage.setItem(`SearchCfg__${this.configKey}`,JSON.stringify(e));const r=this.sortItems.map(n=>this.childItems.find(o=>o.$options.propsData.label==n));this.childItems=r,await this.$nextTick(),this.showConfig=!1,this.handleLayoutItem()},listenerSearchHeight(){this.searchHeight=this.$refs.Search.offsetHeight,this.listenerSearchTimes=setInterval(()=>{if(this.searchHeight!=this.$refs.Search.offsetHeight){this.searchHeight=this.$refs.Search.offsetHeight;const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}},200)}},async mounted(){if(this.childItems=this.$slots.default.map(e=>({componentOptions:e.componentOptions,$attrs:e.componentInstance.$attrs,constructor:e.componentInstance.constructor,$listeners:e.componentInstance.$listeners,$options:e.componentInstance.$options,$scopedSlots:e.componentInstance.$scopedSlots,$slots:e.componentInstance.$slots,staticStyle:e.data.staticStyle,ref:e.data.ref})),this.initLoad=!0,await this.$nextTick(),this.useConfig){this.checkItems=this.childItems.map(r=>r.$options.propsData.label),this.sortItems=this.childItems.map(r=>r.$options.propsData.label),this.handleLayoutItem();const e=JSON.parse(localStorage.getItem(`SearchCfg__${this.configKey}`)||"{}");e.checkItems&&(await this.$nextTick(),this.checkItems=e.checkItems,this.sortItems=e.sortItems,this.handleRenderConfig())}else this.loadSearch=!1,this.handleLayoutItem();this.handleWindowResize=Qn(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await Za(300),this.listenerSearchHeight()},activated(){this.handleLayoutItem()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),clearInterval(this.listenerSearchTimes)},watch:{childItems(){this.loadSearch=!0,this.$nextTick().then(()=>{this.loadSearch=!1})},hideItems(e,r){r.length==e.length&&r.length==0||(this.loadSearch=!0,this.$nextTick().then(async()=>{this.loadSearch=!1,await this.$nextTick(),this.handleLayoutItem(!0)}))},collspase(){const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}}},mi={};var tl=Ae(el,Ja,Qa,!1,nl,"67e5d4dc",null,null);function nl(e){for(let r in mi)this[r]=mi[r]}var _n=function(){return tl.exports}();_n.install=e=>{e.component(_n.name,_n)};const gi=_n;var rl=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),t=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},bi=typeof Symbol!="undefined"&&Symbol,il=rl,ol=function(){return typeof bi!="function"||typeof Symbol!="function"||typeof bi("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:il()},al="Function.prototype.bind called on incompatible ",er=Array.prototype.slice,ll=Object.prototype.toString,sl="[object Function]",ul=function(r){var n=this;if(typeof n!="function"||ll.call(n)!==sl)throw new TypeError(al+n);for(var t=er.call(arguments,1),o,i=function(){if(this instanceof o){var d=n.apply(this,t.concat(er.call(arguments)));return Object(d)===d?d:this}else return n.apply(r,t.concat(er.call(arguments)))},s=Math.max(0,n.length-t.length),c=[],f=0;f<s;f++)c.push("$"+f);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var h=function(){};h.prototype=n.prototype,o.prototype=new h,h.prototype=null}return o},fl=ul,tr=Function.prototype.bind||fl,cl=tr,dl=cl.call(Function.call,Object.prototype.hasOwnProperty),de,Ht=SyntaxError,_i=Function,Ot=TypeError,nr=function(e){try{return _i('"use strict"; return ('+e+").constructor;")()}catch{}},pt=Object.getOwnPropertyDescriptor;if(pt)try{pt({},"")}catch{pt=null}var rr=function(){throw new Ot},hl=pt?function(){try{return arguments.callee,rr}catch{try{return pt(arguments,"callee").get}catch{return rr}}}():rr,St=ol(),ot=Object.getPrototypeOf||function(e){return e.__proto__},Et={},pl=typeof Uint8Array=="undefined"?de:ot(Uint8Array),xt={"%AggregateError%":typeof AggregateError=="undefined"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?de:ArrayBuffer,"%ArrayIteratorPrototype%":St?ot([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":Et,"%AsyncGenerator%":Et,"%AsyncGeneratorFunction%":Et,"%AsyncIteratorPrototype%":Et,"%Atomics%":typeof Atomics=="undefined"?de:Atomics,"%BigInt%":typeof BigInt=="undefined"?de:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?de:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?de:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?de:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?de:FinalizationRegistry,"%Function%":_i,"%GeneratorFunction%":Et,"%Int8Array%":typeof Int8Array=="undefined"?de:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?de:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":St?ot(ot([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map=="undefined"?de:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!St?de:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?de:Promise,"%Proxy%":typeof Proxy=="undefined"?de:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?de:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?de:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!St?de:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":St?ot(""[Symbol.iterator]()):de,"%Symbol%":St?Symbol:de,"%SyntaxError%":Ht,"%ThrowTypeError%":hl,"%TypedArray%":pl,"%TypeError%":Ot,"%Uint8Array%":typeof Uint8Array=="undefined"?de:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?de:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?de:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?de:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?de:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?de:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?de:WeakSet},vl=function e(r){var n;if(r==="%AsyncFunction%")n=nr("async function () {}");else if(r==="%GeneratorFunction%")n=nr("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=nr("async function* () {}");else if(r==="%AsyncGenerator%"){var t=e("%AsyncGeneratorFunction%");t&&(n=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(n=ot(o.prototype))}return xt[r]=n,n},Oi={"%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"]},On=tr,Sn=dl,yl=On.call(Function.call,Array.prototype.concat),ml=On.call(Function.apply,Array.prototype.splice),Si=On.call(Function.call,String.prototype.replace),En=On.call(Function.call,String.prototype.slice),gl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bl=/\\(\\)?/g,_l=function(r){var n=En(r,0,1),t=En(r,-1);if(n==="%"&&t!=="%")throw new Ht("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new Ht("invalid intrinsic syntax, expected opening `%`");var o=[];return Si(r,gl,function(i,s,c,f){o[o.length]=c?Si(f,bl,"$1"):s||i}),o},Ol=function(r,n){var t=r,o;if(Sn(Oi,t)&&(o=Oi[t],t="%"+o[0]+"%"),Sn(xt,t)){var i=xt[t];if(i===Et&&(i=vl(t)),typeof i=="undefined"&&!n)throw new Ot("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:i}}throw new Ht("intrinsic "+r+" does not exist!")},ir=function(r,n){if(typeof r!="string"||r.length===0)throw new Ot("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ot('"allowMissing" argument must be a boolean');var t=_l(r),o=t.length>0?t[0]:"",i=Ol("%"+o+"%",n),s=i.name,c=i.value,f=!1,h=i.alias;h&&(o=h[0],ml(t,yl([0,1],h)));for(var d=1,u=!0;d<t.length;d+=1){var a=t[d],l=En(a,0,1),m=En(a,-1);if((l==='"'||l==="'"||l==="`"||m==='"'||m==="'"||m==="`")&&l!==m)throw new Ht("property names with quotes must have matching quotes");if((a==="constructor"||!u)&&(f=!0),o+="."+a,s="%"+o+"%",Sn(xt,s))c=xt[s];else if(c!=null){if(!(a in c)){if(!n)throw new Ot("base intrinsic for "+r+" exists, but the property is not available.");return}if(pt&&d+1>=t.length){var p=pt(c,a);u=!!p,u&&"get"in p&&!("originalValue"in p.get)?c=p.get:c=c[a]}else u=Sn(c,a),c=c[a];u&&!f&&(xt[s]=c)}}return c},Ei={exports:{}};(function(e){var r=tr,n=ir,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),f=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(u){var a=i(r,o,arguments);if(s&&c){var l=s(a,"length");l.configurable&&c(a,"length",{value:1+f(0,u.length-(arguments.length-1))})}return a};var h=function(){return i(r,t,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h})(Ei);var xi=ir,wi=Ei.exports,Sl=wi(xi("String.prototype.indexOf")),El=function(r,n){var t=xi(r,!!n);return typeof t=="function"&&Sl(r,".prototype.")>-1?wi(t):t},xl={},wl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:xl}),Al=zr(wl),or=typeof Map=="function"&&Map.prototype,ar=Object.getOwnPropertyDescriptor&&or?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,xn=or&&ar&&typeof ar.get=="function"?ar.get:null,Tl=or&&Map.prototype.forEach,lr=typeof Set=="function"&&Set.prototype,sr=Object.getOwnPropertyDescriptor&&lr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,wn=lr&&sr&&typeof sr.get=="function"?sr.get:null,Nl=lr&&Set.prototype.forEach,kl=typeof WeakMap=="function"&&WeakMap.prototype,Ut=kl?WeakMap.prototype.has:null,Cl=typeof WeakSet=="function"&&WeakSet.prototype,zt=Cl?WeakSet.prototype.has:null,Pl=typeof WeakRef=="function"&&WeakRef.prototype,Ai=Pl?WeakRef.prototype.deref:null,Il=Boolean.prototype.valueOf,Ll=Object.prototype.toString,Dl=Function.prototype.toString,Rl=String.prototype.match,ur=String.prototype.slice,at=String.prototype.replace,Ml=String.prototype.toUpperCase,Ti=String.prototype.toLowerCase,Ni=RegExp.prototype.test,ki=Array.prototype.concat,Ye=Array.prototype.join,$l=Array.prototype.slice,Ci=Math.floor,fr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,cr=Object.getOwnPropertySymbols,dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,wt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",De=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wt?"object":"symbol")?Symbol.toStringTag:null,Pi=Object.prototype.propertyIsEnumerable,Ii=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Li(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ni.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Ci(-e):Ci(e);if(t!==e){var o=String(t),i=ur.call(r,o.length+1);return at.call(o,n,"$&_")+"."+at.call(at.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return at.call(r,n,"$&_")}var hr=Al,Di=hr.custom,Ri=ji(Di)?Di:null,jl=function e(r,n,t,o){var i=n||{};if(lt(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=lt(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=i.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Bi(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var f=String(r);return c?Li(r,f):f}if(typeof r=="bigint"){var h=String(r)+"n";return c?Li(r,h):h}var d=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=d&&d>0&&typeof r=="object")return pr(r)?"[Array]":"[Object]";var u=ns(i,t);if(typeof o=="undefined")o=[];else if(Fi(o,r)>=0)return"[Circular]";function a(C,D,R){if(D&&(o=$l.call(o),o.push(D)),R){var B={depth:i.depth};return lt(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(C,B,t+1,o)}return e(C,i,t+1,o)}if(typeof r=="function"&&!$i(r)){var l=Kl(r),m=An(r,a);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(m.length>0?" { "+Ye.call(m,", ")+" }":"")}if(ji(r)){var p=wt?at.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):dr.call(r);return typeof r=="object"&&!wt?Wt(p):p}if(Ql(r)){for(var b="<"+Ti.call(String(r.nodeName)),y=r.attributes||[],g=0;g<y.length;g++)b+=" "+y[g].name+"="+Mi(Fl(y[g].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Ti.call(String(r.nodeName))+">",b}if(pr(r)){if(r.length===0)return"[]";var _=An(r,a);return u&&!ts(_)?"["+yr(_,u)+"]":"[ "+Ye.call(_,", ")+" ]"}if(ql(r)){var v=An(r,a);return!("cause"in Error.prototype)&&"cause"in r&&!Pi.call(r,"cause")?"{ ["+String(r)+"] "+Ye.call(ki.call("[cause]: "+a(r.cause),v),", ")+" }":v.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Ye.call(v,", ")+" }"}if(typeof r=="object"&&s){if(Ri&&typeof r[Ri]=="function"&&hr)return hr(r,{depth:d-t});if(s!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Vl(r)){var O=[];return Tl.call(r,function(C,D){O.push(a(D,r,!0)+" => "+a(C,r))}),qi("Map",xn.call(r),O,u)}if(Zl(r)){var k=[];return Nl.call(r,function(C){k.push(a(C,r))}),qi("Set",wn.call(r),k,u)}if(Yl(r))return vr("WeakMap");if(Jl(r))return vr("WeakSet");if(Xl(r))return vr("WeakRef");if(Ul(r))return Wt(a(Number(r)));if(Wl(r))return Wt(a(fr.call(r)));if(zl(r))return Wt(Il.call(r));if(Hl(r))return Wt(a(String(r)));if(!Bl(r)&&!$i(r)){var T=An(r,a),A=Ii?Ii(r)===Object.prototype:r instanceof Object||r.constructor===Object,I=r instanceof Object?"":"null prototype",x=!A&&De&&Object(r)===r&&De in r?ur.call(st(r),8,-1):I?"Object":"",S=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",w=S+(x||I?"["+Ye.call(ki.call([],x||[],I||[]),": ")+"] ":"");return T.length===0?w+"{}":u?w+"{"+yr(T,u)+"}":w+"{ "+Ye.call(T,", ")+" }"}return String(r)};function Mi(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function Fl(e){return at.call(String(e),/"/g,"&quot;")}function pr(e){return st(e)==="[object Array]"&&(!De||!(typeof e=="object"&&De in e))}function Bl(e){return st(e)==="[object Date]"&&(!De||!(typeof e=="object"&&De in e))}function $i(e){return st(e)==="[object RegExp]"&&(!De||!(typeof e=="object"&&De in e))}function ql(e){return st(e)==="[object Error]"&&(!De||!(typeof e=="object"&&De in e))}function Hl(e){return st(e)==="[object String]"&&(!De||!(typeof e=="object"&&De in e))}function Ul(e){return st(e)==="[object Number]"&&(!De||!(typeof e=="object"&&De in e))}function zl(e){return st(e)==="[object Boolean]"&&(!De||!(typeof e=="object"&&De in e))}function ji(e){if(wt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!dr)return!1;try{return dr.call(e),!0}catch{}return!1}function Wl(e){if(!e||typeof e!="object"||!fr)return!1;try{return fr.call(e),!0}catch{}return!1}var Gl=Object.prototype.hasOwnProperty||function(e){return e in this};function lt(e,r){return Gl.call(e,r)}function st(e){return Ll.call(e)}function Kl(e){if(e.name)return e.name;var r=Rl.call(Dl.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function Fi(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,t=e.length;n<t;n++)if(e[n]===r)return n;return-1}function Vl(e){if(!xn||!e||typeof e!="object")return!1;try{xn.call(e);try{wn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Yl(e){if(!Ut||!e||typeof e!="object")return!1;try{Ut.call(e,Ut);try{zt.call(e,zt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Xl(e){if(!Ai||!e||typeof e!="object")return!1;try{return Ai.call(e),!0}catch{}return!1}function Zl(e){if(!wn||!e||typeof e!="object")return!1;try{wn.call(e);try{xn.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Jl(e){if(!zt||!e||typeof e!="object")return!1;try{zt.call(e,zt);try{Ut.call(e,Ut)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Ql(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bi(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return Bi(ur.call(e,0,r.maxStringLength),r)+t}var o=at.call(at.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,es);return Mi(o,"single",r)}function es(e){var r=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return n?"\\"+n:"\\x"+(r<16?"0":"")+Ml.call(r.toString(16))}function Wt(e){return"Object("+e+")"}function vr(e){return e+" { ? }"}function qi(e,r,n,t){var o=t?yr(n,t):Ye.call(n,", ");return e+" ("+r+") {"+o+"}"}function ts(e){for(var r=0;r<e.length;r++)if(Fi(e[r],`
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(E){return l(E)||m(E)||d(E)||p()}var y=i("a352"),g=i.n(y),_=i("c649");function v(E,N,P){return P===void 0||(E=E||{},E[N]=P),E}function O(E,N){return E.map(function(P){return P.elm}).indexOf(N)}function k(E,N,P,j){if(!E)return[];var F=E.map(function(U){return U.elm}),L=N.length-j,M=b(N).map(function(U,z){return z>=L?F.length:F.indexOf(U)});return P?M.filter(function(U){return U!==-1}):M}function T(E,N){var P=this;this.$nextTick(function(){return P.$emit(E.toLowerCase(),N)})}function A(E){var N=this;return function(P){N.realList!==null&&N["onDrag"+E](P),T.call(N,E,P)}}function I(E){return["transition-group","TransitionGroup"].includes(E)}function x(E){if(!E||E.length!==1)return!1;var N=a(E,1),P=N[0].componentOptions;return P?I(P.tag):!1}function S(E,N,P){return E[P]||(N[P]?N[P]():void 0)}function w(E,N,P){var j=0,F=0,L=S(N,P,"header");L&&(j=L.length,E=E?[].concat(b(L),b(E)):b(L));var M=S(N,P,"footer");return M&&(F=M.length,E=E?[].concat(b(E),b(M)):b(M)),{children:E,headerOffset:j,footerOffset:F}}function C(E,N){var P=null,j=function(V,Q){P=v(P,V,Q)},F=Object.keys(E).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,V){return z[V]=E[V],z},{});if(j("attrs",F),!N)return P;var L=N.on,M=N.props,U=N.attrs;return j("on",L),j("props",M),Object.assign(P.attrs,U),P}var D=["Start","Add","Remove","Update","End"],R=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(D,R).map(function(E){return"on"+E}),H=null,G={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(N){return N}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},q={name:"draggable",inheritAttrs:!1,props:G,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(N){var P=this.$slots.default;this.transitionMode=x(P);var j=w(P,this.$slots,this.$scopedSlots),F=j.children,L=j.headerOffset,M=j.footerOffset;this.headerOffset=L,this.footerOffset=M;var U=C(this.$attrs,this.componentData);return N(this.getTag(),U,F)},created:function(){this.list!==null&&this.value!==null&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var N=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var P={};D.forEach(function(L){P["on"+L]=A.call(N,L)}),R.forEach(function(L){P["on"+L]=T.bind(N,L)});var j=Object.keys(this.$attrs).reduce(function(L,M){return L[Object(_.a)(M)]=N.$attrs[M],L},{}),F=Object.assign({},this.options,j,P,{onMove:function(M,U){return N.onDragMove(M,U)}});!("draggable"in F)&&(F.draggable=">*"),this._sortable=new g.a(this.rootContainer,F),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(N){this.updateOptions(N)},deep:!0},$attrs:{handler:function(N){this.updateOptions(N)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var N=this._vnode.fnOptions;return N&&N.functional},getTag:function(){return this.tag||this.element},updateOptions:function(N){for(var P in N){var j=Object(_.a)(P);B.indexOf(j)===-1&&this._sortable.option(j,N[P])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var N=this.$slots.default;return this.transitionMode?N[0].child.$slots.default:N},computeIndexes:function(){var N=this;this.$nextTick(function(){N.visibleIndexes=k(N.getChildrenNodes(),N.rootContainer.children,N.transitionMode,N.footerOffset)})},getUnderlyingVm:function(N){var P=O(this.getChildrenNodes()||[],N);if(P===-1)return null;var j=this.realList[P];return{index:P,element:j}},getUnderlyingPotencialDraggableComponent:function(N){var P=N.__vue__;return!P||!P.$options||!I(P.$options._componentTag)?!("realList"in P)&&P.$children.length===1&&"realList"in P.$children[0]?P.$children[0]:P:P.$parent},emitChanges:function(N){var P=this;this.$nextTick(function(){P.$emit("change",N)})},alterList:function(N){if(this.list){N(this.list);return}var P=b(this.value);N(P),this.$emit("input",P)},spliceList:function(){var N=arguments,P=function(F){return F.splice.apply(F,b(N))};this.alterList(P)},updatePosition:function(N,P){var j=function(L){return L.splice(P,0,L.splice(N,1)[0])};this.alterList(j)},getRelatedContextFromMoveEvent:function(N){var P=N.to,j=N.related,F=this.getUnderlyingPotencialDraggableComponent(P);if(!F)return{component:F};var L=F.realList,M={list:L,component:F};if(P!==j&&L&&F.getUnderlyingVm){var U=F.getUnderlyingVm(j);if(U)return Object.assign(U,M)}return M},getVmIndex:function(N){var P=this.visibleIndexes,j=P.length;return N>j-1?j:P[N]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(N){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var P=this.getChildrenNodes();P[N].data=null;var j=this.getComponent();j.children=[],j.kept=void 0}},onDragStart:function(N){this.context=this.getUnderlyingVm(N.item),N.item._underlying_vm_=this.clone(this.context.element),H=N.item},onDragAdd:function(N){var P=N.item._underlying_vm_;if(P!==void 0){Object(_.d)(N.item);var j=this.getVmIndex(N.newIndex);this.spliceList(j,0,P),this.computeIndexes();var F={element:P,newIndex:j};this.emitChanges({added:F})}},onDragRemove:function(N){if(Object(_.c)(this.rootContainer,N.item,N.oldIndex),N.pullMode==="clone"){Object(_.d)(N.clone);return}var P=this.context.index;this.spliceList(P,1);var j={element:this.context.element,oldIndex:P};this.resetTransitionData(P),this.emitChanges({removed:j})},onDragUpdate:function(N){Object(_.d)(N.item),Object(_.c)(N.from,N.item,N.oldIndex);var P=this.context.index,j=this.getVmIndex(N.newIndex);this.updatePosition(P,j);var F={element:this.context.element,oldIndex:P,newIndex:j};this.emitChanges({moved:F})},updateProperty:function(N,P){N.hasOwnProperty(P)&&(N[P]+=this.headerOffset)},computeFutureIndex:function(N,P){if(!N.element)return 0;var j=b(P.to.children).filter(function(U){return U.style.display!=="none"}),F=j.indexOf(P.related),L=N.component.getVmIndex(F),M=j.indexOf(H)!==-1;return M||!P.willInsertAfter?L:L+1},onDragMove:function(N,P){var j=this.move;if(!j||!this.realList)return!0;var F=this.getRelatedContextFromMoveEvent(N),L=this.context,M=this.computeFutureIndex(F,N);Object.assign(L,{futureIndex:M});var U=Object.assign({},N,{relatedContext:F,draggedContext:L});return j(U,P)},onDragEnd:function(){this.computeIndexes(),H=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var $=q;o.default=$}}).default})})(Wr);var hi=Ur(Wr.exports),ja=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-record"},[n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",width:"600",offset:-172},model:{value:e.showPropover,callback:function(t){e.showPropover=t},expression:"showPropover"}},[n("div",{staticClass:"ui-record__list"},[n("div",{staticClass:"ui-record__saves"},e._l(e.recordData.saves,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.labels.map(function(i){return i.label+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t)}}},[n("div",{staticStyle:{position:"absolute","z-index":"-1"}},[e.$refs["EditLabelTitle_"+o]&&e.$refs["EditLabelTitle_"+o][0]?n("el-popover",{ref:"EditLabelTitlePopover_"+o,refInFor:!0,attrs:{reference:e.$refs["EditLabelTitle_"+o][0],placement:"top",width:"160"}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",placeholder:"\u8BF7\u8F93\u5165\u7B5B\u9009\u6807\u9898"},model:{value:e.changeLabelTitleVal,callback:function(i){e.changeLabelTitleVal=i},expression:"changeLabelTitleVal"}}),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){e.$refs["EditLabelTitlePopover_"+o][0].doClose()}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfirmChangeLabelTitle(o)}}},[e._v("\u786E\u5B9A")])],1)],1):e._e()],1),n("div",[t.title?n("div",[n("span",[e._v(e._s(t.title))])]):n("div",e._l(t.labels,function(i,s){return n("span",{key:s},[e._v(e._s(i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0)]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u4FEE\u6539\u7B5B\u9009\u6807\u9898",placement:"top-start"}},[n("i",{ref:"EditLabelTitle_"+o,refInFor:!0,staticClass:"el-icon-edit ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleShowChangeLabelTitle(t)}}})]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u79FB\u9664\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-remove ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"saves")}}})])],1)}),0),n("div",{staticClass:"ui-record__temps"},e._l(e.recordData.temps,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.map(function(i){return i.label+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o)}}},[e._l(t,function(i,s){return n("span",{key:s},[e._v(e._s(i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u6DFB\u52A0\u5230\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-circle-plus ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"temps")}}})])],2)}),0)]),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u7B5B\u9009\u5386\u53F2 "),n("i",{staticClass:"el-icon-caret-right"})])],1)],1)},Fa=[],uf="";const Ba={props:{configKey:{type:String,default:""},current:{type:Array,default(){return[]}}},data(){return{showPropover:!1,recordData:{saves:[],temps:[]},changeLabelTitleShow:!1,changeLabelTitleVal:"",changeLabelTitleItem:{}}},created(){let e=localStorage.getItem(`SaveRecord_${this.configKey}`);const r=e?JSON.parse(e):{saves:[],temps:[]};r.saves[0]&&Array.isArray(r.saves[0])&&(r.saves=r.saves.map(n=>({labels:n,title:""}))),this.recordData=r},methods:{handleOperation(e,r){if(r=="temps"){const n=this.recordData.temps[e];this.recordData.saves.unshift({labels:n,title:""}),this.$nextTick().then(()=>{this.$forceUpdate()})}else this.recordData.saves.splice(e,1);this.handelSaveRecord()},async handleShortcut(e,r){this.$parent.$children.forEach(t=>{const o=(e.labels||e).find(i=>i.label==t.label);if(console.log(o,"findItem",t),o){Array.isArray(o.value)?t.staticOptions.splice(0,t.staticOptions.length,...o.value.map((i,s)=>({label:o.valueLabel[s],value:i}))):t.staticOptions.splice(0,t.staticOptions.length,{label:o.valueLabel,value:o.value}),t.modelForm=o.value;try{if(o.prependValue&&t.$slots.prepend){const i=t.$options.propsData.type&&["input","password"].includes(t.$options.propsData.type)?t.$children[0]:t.$children[0].$children[0];i.$options._componentTag=="com-form-item"?i.$emit("changes",o.prependValue):i.$emit("input",o.prependValue)}}catch(i){console.log(i)}}else t.label&&t.$el.style.display!=="none"&&(Array.isArray(t.modelForm)?t.modelForm=[]:typeof t.modelForm=="number"?t.modelForm=void 0:t.modelForm="")});const n=this.recordData.temps.splice(r,1);this.recordData.temps.unshift(...n),this.handelSaveRecord(),this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(n[0])},handelSaveRecord(){this.recordData.temps.length>10&&this.recordData.temps.splice(10),localStorage.setItem(`SaveRecord_${this.configKey}`,JSON.stringify(this.recordData))},handleShowChangeLabelTitle(e){this.changeLabelTitleShow=!0,this.changeLabelTitleItem=e},handleConfirmChangeLabelTitle(e){this.changeLabelTitleItem.title=this.changeLabelTitleVal,this.changeLabelTitleVal="",this.$refs[`EditLabelTitlePopover_${e}`][0].doClose(),localStorage.setItem(`SaveRecord_${this.configKey}`,JSON.stringify(this.recordData))}},watch:{current:{handler(e){e.length&&this.recordData.temps.findIndex(n=>{const t=JSON.parse(JSON.stringify(n)).sort((i,s)=>i.label.localeCompare(s.label)),o=JSON.parse(JSON.stringify(e)).sort((i,s)=>i.label.localeCompare(s.label));return JSON.stringify(t)==JSON.stringify(o)})<0&&(this.recordData.temps.unshift(e),this.handelSaveRecord())},deep:!0}}},pi={};var qa=Ae(Ba,ja,Fa,!1,Ha,"7fb8f17a",null,null);function Ha(e){for(let r in pi)this[r]=pi[r]}var Ua=function(){return qa.exports}();const za={props:{vnode:{type:[Object,Function],default:()=>{}}},data(){return{}},render(e){const r=this._props.vnode,n=r.$slots.prepend,t=r.$slots.append,o=r.$slots.label;return e(this._props.vnode.constructor,{on:r.$listeners,props:r.$options.propsData,attrs:r.$attrs,staticStyle:r.staticStyle,ref:r.ref},[n?[e("div",{slot:"prepend"},n)]:[],t?[e("div",{slot:"append"},t)]:[],o?[e("div",{slot:"label",class:"ui-item__label"},o)]:[]])}};let Wa,Ga;const vi={};var Ka=Ae(za,Wa,Ga,!1,Va,null,null,null);function Va(e){for(let r in vi)this[r]=vi[r]}var Ya=function(){return Ka.exports}();function Xa(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,s=t.noLeading,c=s===void 0?!1:s,f=t.debounceMode,h=f===void 0?void 0:f,d,u=!1,a=0;function l(){d&&clearTimeout(d)}function m(b){var y=b||{},g=y.upcomingOnly,_=g===void 0?!1:g;l(),u=!_}function p(){for(var b=arguments.length,y=new Array(b),g=0;g<b;g++)y[g]=arguments[g];var _=this,v=Date.now()-a;if(u)return;function O(){a=Date.now(),r.apply(_,y)}function k(){d=void 0}!c&&h&&!d&&O(),l(),h===void 0&&v>e?c?(a=Date.now(),i||(d=setTimeout(h?k:O,e))):O():i!==!0&&(d=setTimeout(h?k:O,h===void 0?e-v:e))}return p.cancel=m,p}function Qn(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return Xa(e,r,{debounceMode:i!==!1})}function yi(e=0,r=!0,n=null){var c;const t=n?n.map(f=>document.querySelector(f)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const f=document.querySelector(".ui-pagination"),h=document.querySelector(".ui-container__header"),d=(h==null?void 0:h.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),u=document.querySelector(".ui-table__tab");o.push(...[(f==null?void 0:f.offsetHeight)||0,(h==null?void 0:h.offsetHeight)||0,(d==null?void 0:d.offsetHeight)||0,(u==null?void 0:u.offsetHeight)||0].filter(a=>!!a))}let i=e+o.reduce((f,h)=>f+h,0),s=navigator.userAgent;for(let f=0;f<t.length;f++){let h=t[f];if(!h||h.className.indexOf("ui-table")>-1)continue;i+=h.offsetHeight;let d,u,a=(c=document==null?void 0:document.defaultView)==null?void 0:c.getComputedStyle(h);if(s.indexOf("Firefox")>-1)u=parseInt(a["margin-top"])+parseInt(a["margin-bottom"]);else if(s.indexOf("compatible")>-1&&s.indexOf("MSIE")>-1&&!(s.indexOf("Opera")>-1)){let l=h.currentStyle;u=parseInt(l.marginTop)+parseInt(l.marginBottom)}else if(d=a.margin.split(" "),d.length==1)u=parseInt(d[0])*2;else{const[l,m,p,b]=d;u=parseInt(p)?parseInt(l)+parseInt(p):parseInt(l)}i=u+i}return i=window.innerHeight-i,i}function Za(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var Ja=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSearch,expression:"loadSearch"}],ref:"Search",staticClass:"ui-search"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__main"},[e.useConfig?n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2):e._t("default"),!e.loadSearch&&e.useConfig?e._l(e.childItems,function(t,o){return n("DefaultItem",{key:o,ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})}):e._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__footer"},[n("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")]),n("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small",icon:"el-icon-search",type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("\u67E5\u8BE2")]),n("div",{staticStyle:{"align-self":"flex-end"}},[e.showMore?n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",offset:-172,width:e.containerWidth}},[n("div",{staticClass:"ui-more__select"},[n("el-row",e._l(e.hideItems,function(t,o){return n("el-col",e._b({key:o},"el-col",Object.assign({},{span:4},t.$attrs,t.$options.propsData),!1),[!e.loadSearch&&e.useConfig?[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]:e.loadSearch?e._e():[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]],2)}),1)],1),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u66F4\u591A\u7B5B\u9009 "),n("i",{staticClass:"el-icon-caret-right"})])],1):e._e()],1),e.useConfig?n("el-button",{staticClass:"ui-search__button--more",attrs:{type:"text"},on:{click:e.handleShowConfig}},[e._v("\u7B5B\u9009\u914D\u7F6E "),n("i",{staticClass:"el-icon-setting"})]):e._e(),n("Record",{attrs:{"config-key":e.configKey,current:e.searchLoc}}),e._t("footer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache",attrs:{title:e.searchLoc.map(function(t){return t.label+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")}},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collspase,expression:"!collspase"}],staticClass:"ui-collspase--cache"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark","popper-class":"ui-search__cache__popper",placement:"bottom-start"},scopedSlots:e._u([{key:"content",fn:function(){return[n("p",{staticStyle:{"line-height":"18px"}},[e._v(e._s(e.searchLoc.map(function(t){return t.label+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")))])]},proxy:!0}])},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache"},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)])],1),n("div",{staticClass:"ui-collspase",class:{"ui-collspase--open":e.collspase},on:{click:function(t){e.collspase=!e.collspase}}},[n("span",{class:e.collspase?"el-icon-caret-top":"el-icon-caret-bottom"})]),n("el-drawer",{attrs:{title:"\u7B5B\u9009\u914D\u7F6E",direction:"btt",size:"100%",withHeader:!1,modal:!1,"modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content"},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t,o){return n("el-checkbox",{key:o,attrs:{border:"",label:t}})}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")])],1)])])],1)},Qa=[],ff="";const el={name:"ComSearch",components:{draggable:hi,Record:Ua,DefaultItem:Ya},props:{searchCfg:{type:Array,default(){return[]}},flagId:{type:String,default:""},useConfig:{type:Boolean,default:!0}},data(){return{containerWidth:"200px",hideItems:[],defaultVNode:[],defaultItems:[],showConfig:!1,checkItems:[],sortItems:[],loadSearch:!1,searchLoc:[],childItems:[],initLoad:!1,configKey:this.flagId||this.$route.path,handleWindowResize:null,waitTimeout:"",searchHeight:"",listenerSearchTimes:"",collspase:!0,showTip:!1}},computed:{showMore(){return!!this.hideItems.length},ConfigRefs(){return Object.entries(this.$refs).reduce((e,[r,n])=>{if(r.indexOf("Config_")>-1){const t=r.replace("Config_",""),o=n[0].$refs[t];return Ne(Ne({},e),o?{[t]:o.$refs[o.type]}:{})}},{})}},methods:{handleQuery(e){const r=(o,i)=>o?o instanceof Date?!1:Array.isArray(o)&&i=="inputrange"?!o[0]&&!o[1]:o instanceof Object?!Object.entries(o).length:!1:typeof o!="boolean";this.searchLoc=Array.isArray(e)?e:this.$children.reduce((o,i)=>{var s,c;if(i.label&&!r(i.modelForm,i.type)){let f;i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?f=i.modelForm.map(d=>{var u;return((u=[...i.selectOption,...i.staticOptions].find(a=>a.value==d))==null?void 0:u.label)||d}):f=((s=[...i.selectOption,...i.staticOptions].find(d=>d.value==i.modelForm))==null?void 0:s.label)||i.modelForm:Array.isArray(i.modelForm)?f=i.modelForm.map(d=>{var u;return((u=i.staticOptions.find(a=>a.value==d))==null?void 0:u.label)||d}):f=((c=i.staticOptions.find(d=>d.value==i.modelForm))==null?void 0:c.label)||i.modelForm,console.log(i,"item");let h;if(i.$slots.prepend){const d=i.$slots.prepend[0].componentOptions.propsData;h=d.value||d.model}return[...o,{label:i.label,value:i.modelForm,valueLabel:f,prependValue:h}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(Ne({},t.defaultParams||{})):this.$emit("query")},handleReset(){const e=this.$parent.handleReset;e?e():this.$emit("reset")},waitRenderItem(){return new Promise(e=>{clearTimeout(this.waitTimeout);const r=this.$refs.Search.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");for(let n=0;n<r.length;n++)if(r[n].getBoundingClientRect().right>0)return e(!0);this.waitTimeout=setTimeout(async()=>{e(await this.waitRenderItem())},100)})},async handleLayoutItem(e=!1){await this.waitRenderItem();const r=this.$refs.Search,n=r.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");n.forEach(i=>i.className=i.className.replace("ui-form__item--hide",""));const{right:t}=r.getBoundingClientRect();this.containerWidth=r.offsetWidth-80,this.useConfig&&n.forEach(i=>{try{const s=i.__vue__.label||i.__vue__.$children[0].label;this.checkItems.includes(s)?i.style.display="block":i.style.display="none"}catch{console.log(i.__vue__,i)}});const o=[];n.forEach(i=>{const{right:s}=i.getBoundingClientRect();s>t&&(i.className=`${i.className} ui-form__item--hide`,o.push(i))}),e!==!0&&(this.useConfig?this.hideItems=o.map(i=>this.childItems.find((s,c)=>{const f=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return s.$options.propsData.label==f.propsData.label})).filter(i=>!!i):this.hideItems=this.$children.filter(i=>i.$el.className.indexOf("ui-form__item--hide")>-1),this.loadSearch=!1)},changeOptions(e){this.$parent.changeOptions(e)},handleShowConfig(){this.showConfig=!0},async handleRenderConfig(){const e={checkItems:this.checkItems,sortItems:this.sortItems};localStorage.setItem(`SearchCfg__${this.configKey}`,JSON.stringify(e));const r=this.sortItems.map(n=>this.childItems.find(o=>o.$options.propsData.label==n));this.childItems=r,await this.$nextTick(),this.showConfig=!1,this.handleLayoutItem()},listenerSearchHeight(){this.searchHeight=this.$refs.Search.offsetHeight,this.listenerSearchTimes=setInterval(()=>{if(this.searchHeight!=this.$refs.Search.offsetHeight){this.searchHeight=this.$refs.Search.offsetHeight;const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}},200)}},async mounted(){if(this.childItems=this.$slots.default.map(e=>({componentOptions:e.componentOptions,$attrs:e.componentInstance.$attrs,constructor:e.componentInstance.constructor,$listeners:e.componentInstance.$listeners,$options:e.componentInstance.$options,$scopedSlots:e.componentInstance.$scopedSlots,$slots:e.componentInstance.$slots,staticStyle:e.data.staticStyle,ref:e.data.ref})),this.initLoad=!0,await this.$nextTick(),this.useConfig){this.checkItems=this.childItems.map(r=>r.$options.propsData.label),this.sortItems=this.childItems.map(r=>r.$options.propsData.label),this.handleLayoutItem();const e=JSON.parse(localStorage.getItem(`SearchCfg__${this.configKey}`)||"{}");e.checkItems&&(await this.$nextTick(),this.checkItems=e.checkItems,this.sortItems=e.sortItems,this.handleRenderConfig())}else this.loadSearch=!1,this.handleLayoutItem();this.handleWindowResize=Qn(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await Za(300),this.listenerSearchHeight()},activated(){this.handleLayoutItem()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),clearInterval(this.listenerSearchTimes)},watch:{childItems(){this.loadSearch=!0,this.$nextTick().then(()=>{this.loadSearch=!1})},hideItems(e,r){r.length==e.length&&r.length==0||(this.loadSearch=!0,this.$nextTick().then(async()=>{this.loadSearch=!1,await this.$nextTick(),this.handleLayoutItem(!0)}))},collspase(){const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}}},mi={};var tl=Ae(el,Ja,Qa,!1,nl,"72bf633f",null,null);function nl(e){for(let r in mi)this[r]=mi[r]}var _n=function(){return tl.exports}();_n.install=e=>{e.component(_n.name,_n)};const gi=_n;var rl=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),t=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},bi=typeof Symbol!="undefined"&&Symbol,il=rl,ol=function(){return typeof bi!="function"||typeof Symbol!="function"||typeof bi("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:il()},al="Function.prototype.bind called on incompatible ",er=Array.prototype.slice,ll=Object.prototype.toString,sl="[object Function]",ul=function(r){var n=this;if(typeof n!="function"||ll.call(n)!==sl)throw new TypeError(al+n);for(var t=er.call(arguments,1),o,i=function(){if(this instanceof o){var d=n.apply(this,t.concat(er.call(arguments)));return Object(d)===d?d:this}else return n.apply(r,t.concat(er.call(arguments)))},s=Math.max(0,n.length-t.length),c=[],f=0;f<s;f++)c.push("$"+f);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var h=function(){};h.prototype=n.prototype,o.prototype=new h,h.prototype=null}return o},fl=ul,tr=Function.prototype.bind||fl,cl=tr,dl=cl.call(Function.call,Object.prototype.hasOwnProperty),de,Ht=SyntaxError,_i=Function,Ot=TypeError,nr=function(e){try{return _i('"use strict"; return ('+e+").constructor;")()}catch{}},pt=Object.getOwnPropertyDescriptor;if(pt)try{pt({},"")}catch{pt=null}var rr=function(){throw new Ot},hl=pt?function(){try{return arguments.callee,rr}catch{try{return pt(arguments,"callee").get}catch{return rr}}}():rr,St=ol(),ot=Object.getPrototypeOf||function(e){return e.__proto__},Et={},pl=typeof Uint8Array=="undefined"?de:ot(Uint8Array),xt={"%AggregateError%":typeof AggregateError=="undefined"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?de:ArrayBuffer,"%ArrayIteratorPrototype%":St?ot([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":Et,"%AsyncGenerator%":Et,"%AsyncGeneratorFunction%":Et,"%AsyncIteratorPrototype%":Et,"%Atomics%":typeof Atomics=="undefined"?de:Atomics,"%BigInt%":typeof BigInt=="undefined"?de:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?de:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?de:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?de:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?de:FinalizationRegistry,"%Function%":_i,"%GeneratorFunction%":Et,"%Int8Array%":typeof Int8Array=="undefined"?de:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?de:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":St?ot(ot([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map=="undefined"?de:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!St?de:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?de:Promise,"%Proxy%":typeof Proxy=="undefined"?de:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?de:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?de:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!St?de:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":St?ot(""[Symbol.iterator]()):de,"%Symbol%":St?Symbol:de,"%SyntaxError%":Ht,"%ThrowTypeError%":hl,"%TypedArray%":pl,"%TypeError%":Ot,"%Uint8Array%":typeof Uint8Array=="undefined"?de:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?de:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?de:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?de:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?de:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?de:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?de:WeakSet},vl=function e(r){var n;if(r==="%AsyncFunction%")n=nr("async function () {}");else if(r==="%GeneratorFunction%")n=nr("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=nr("async function* () {}");else if(r==="%AsyncGenerator%"){var t=e("%AsyncGeneratorFunction%");t&&(n=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(n=ot(o.prototype))}return xt[r]=n,n},Oi={"%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"]},On=tr,Sn=dl,yl=On.call(Function.call,Array.prototype.concat),ml=On.call(Function.apply,Array.prototype.splice),Si=On.call(Function.call,String.prototype.replace),En=On.call(Function.call,String.prototype.slice),gl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bl=/\\(\\)?/g,_l=function(r){var n=En(r,0,1),t=En(r,-1);if(n==="%"&&t!=="%")throw new Ht("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new Ht("invalid intrinsic syntax, expected opening `%`");var o=[];return Si(r,gl,function(i,s,c,f){o[o.length]=c?Si(f,bl,"$1"):s||i}),o},Ol=function(r,n){var t=r,o;if(Sn(Oi,t)&&(o=Oi[t],t="%"+o[0]+"%"),Sn(xt,t)){var i=xt[t];if(i===Et&&(i=vl(t)),typeof i=="undefined"&&!n)throw new Ot("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:i}}throw new Ht("intrinsic "+r+" does not exist!")},ir=function(r,n){if(typeof r!="string"||r.length===0)throw new Ot("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ot('"allowMissing" argument must be a boolean');var t=_l(r),o=t.length>0?t[0]:"",i=Ol("%"+o+"%",n),s=i.name,c=i.value,f=!1,h=i.alias;h&&(o=h[0],ml(t,yl([0,1],h)));for(var d=1,u=!0;d<t.length;d+=1){var a=t[d],l=En(a,0,1),m=En(a,-1);if((l==='"'||l==="'"||l==="`"||m==='"'||m==="'"||m==="`")&&l!==m)throw new Ht("property names with quotes must have matching quotes");if((a==="constructor"||!u)&&(f=!0),o+="."+a,s="%"+o+"%",Sn(xt,s))c=xt[s];else if(c!=null){if(!(a in c)){if(!n)throw new Ot("base intrinsic for "+r+" exists, but the property is not available.");return}if(pt&&d+1>=t.length){var p=pt(c,a);u=!!p,u&&"get"in p&&!("originalValue"in p.get)?c=p.get:c=c[a]}else u=Sn(c,a),c=c[a];u&&!f&&(xt[s]=c)}}return c},Ei={exports:{}};(function(e){var r=tr,n=ir,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),s=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),f=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(u){var a=i(r,o,arguments);if(s&&c){var l=s(a,"length");l.configurable&&c(a,"length",{value:1+f(0,u.length-(arguments.length-1))})}return a};var h=function(){return i(r,t,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h})(Ei);var xi=ir,wi=Ei.exports,Sl=wi(xi("String.prototype.indexOf")),El=function(r,n){var t=xi(r,!!n);return typeof t=="function"&&Sl(r,".prototype.")>-1?wi(t):t},xl={},wl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:xl}),Al=zr(wl),or=typeof Map=="function"&&Map.prototype,ar=Object.getOwnPropertyDescriptor&&or?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,xn=or&&ar&&typeof ar.get=="function"?ar.get:null,Tl=or&&Map.prototype.forEach,lr=typeof Set=="function"&&Set.prototype,sr=Object.getOwnPropertyDescriptor&&lr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,wn=lr&&sr&&typeof sr.get=="function"?sr.get:null,Nl=lr&&Set.prototype.forEach,kl=typeof WeakMap=="function"&&WeakMap.prototype,Ut=kl?WeakMap.prototype.has:null,Cl=typeof WeakSet=="function"&&WeakSet.prototype,zt=Cl?WeakSet.prototype.has:null,Pl=typeof WeakRef=="function"&&WeakRef.prototype,Ai=Pl?WeakRef.prototype.deref:null,Il=Boolean.prototype.valueOf,Ll=Object.prototype.toString,Dl=Function.prototype.toString,Rl=String.prototype.match,ur=String.prototype.slice,at=String.prototype.replace,$l=String.prototype.toUpperCase,Ti=String.prototype.toLowerCase,Ni=RegExp.prototype.test,ki=Array.prototype.concat,Ye=Array.prototype.join,Ml=Array.prototype.slice,Ci=Math.floor,fr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,cr=Object.getOwnPropertySymbols,dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,wt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",De=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wt?"object":"symbol")?Symbol.toStringTag:null,Pi=Object.prototype.propertyIsEnumerable,Ii=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Li(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ni.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Ci(-e):Ci(e);if(t!==e){var o=String(t),i=ur.call(r,o.length+1);return at.call(o,n,"$&_")+"."+at.call(at.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return at.call(r,n,"$&_")}var hr=Al,Di=hr.custom,Ri=ji(Di)?Di:null,jl=function e(r,n,t,o){var i=n||{};if(lt(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=lt(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=i.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Bi(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var f=String(r);return c?Li(r,f):f}if(typeof r=="bigint"){var h=String(r)+"n";return c?Li(r,h):h}var d=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=d&&d>0&&typeof r=="object")return pr(r)?"[Array]":"[Object]";var u=ns(i,t);if(typeof o=="undefined")o=[];else if(Fi(o,r)>=0)return"[Circular]";function a(C,D,R){if(D&&(o=Ml.call(o),o.push(D)),R){var B={depth:i.depth};return lt(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(C,B,t+1,o)}return e(C,i,t+1,o)}if(typeof r=="function"&&!Mi(r)){var l=Kl(r),m=An(r,a);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(m.length>0?" { "+Ye.call(m,", ")+" }":"")}if(ji(r)){var p=wt?at.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):dr.call(r);return typeof r=="object"&&!wt?Wt(p):p}if(Ql(r)){for(var b="<"+Ti.call(String(r.nodeName)),y=r.attributes||[],g=0;g<y.length;g++)b+=" "+y[g].name+"="+$i(Fl(y[g].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Ti.call(String(r.nodeName))+">",b}if(pr(r)){if(r.length===0)return"[]";var _=An(r,a);return u&&!ts(_)?"["+yr(_,u)+"]":"[ "+Ye.call(_,", ")+" ]"}if(ql(r)){var v=An(r,a);return!("cause"in Error.prototype)&&"cause"in r&&!Pi.call(r,"cause")?"{ ["+String(r)+"] "+Ye.call(ki.call("[cause]: "+a(r.cause),v),", ")+" }":v.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Ye.call(v,", ")+" }"}if(typeof r=="object"&&s){if(Ri&&typeof r[Ri]=="function"&&hr)return hr(r,{depth:d-t});if(s!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Vl(r)){var O=[];return Tl.call(r,function(C,D){O.push(a(D,r,!0)+" => "+a(C,r))}),qi("Map",xn.call(r),O,u)}if(Zl(r)){var k=[];return Nl.call(r,function(C){k.push(a(C,r))}),qi("Set",wn.call(r),k,u)}if(Yl(r))return vr("WeakMap");if(Jl(r))return vr("WeakSet");if(Xl(r))return vr("WeakRef");if(Ul(r))return Wt(a(Number(r)));if(Wl(r))return Wt(a(fr.call(r)));if(zl(r))return Wt(Il.call(r));if(Hl(r))return Wt(a(String(r)));if(!Bl(r)&&!Mi(r)){var T=An(r,a),A=Ii?Ii(r)===Object.prototype:r instanceof Object||r.constructor===Object,I=r instanceof Object?"":"null prototype",x=!A&&De&&Object(r)===r&&De in r?ur.call(st(r),8,-1):I?"Object":"",S=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",w=S+(x||I?"["+Ye.call(ki.call([],x||[],I||[]),": ")+"] ":"");return T.length===0?w+"{}":u?w+"{"+yr(T,u)+"}":w+"{ "+Ye.call(T,", ")+" }"}return String(r)};function $i(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function Fl(e){return at.call(String(e),/"/g,"&quot;")}function pr(e){return st(e)==="[object Array]"&&(!De||!(typeof e=="object"&&De in e))}function Bl(e){return st(e)==="[object Date]"&&(!De||!(typeof e=="object"&&De in e))}function Mi(e){return st(e)==="[object RegExp]"&&(!De||!(typeof e=="object"&&De in e))}function ql(e){return st(e)==="[object Error]"&&(!De||!(typeof e=="object"&&De in e))}function Hl(e){return st(e)==="[object String]"&&(!De||!(typeof e=="object"&&De in e))}function Ul(e){return st(e)==="[object Number]"&&(!De||!(typeof e=="object"&&De in e))}function zl(e){return st(e)==="[object Boolean]"&&(!De||!(typeof e=="object"&&De in e))}function ji(e){if(wt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!dr)return!1;try{return dr.call(e),!0}catch{}return!1}function Wl(e){if(!e||typeof e!="object"||!fr)return!1;try{return fr.call(e),!0}catch{}return!1}var Gl=Object.prototype.hasOwnProperty||function(e){return e in this};function lt(e,r){return Gl.call(e,r)}function st(e){return Ll.call(e)}function Kl(e){if(e.name)return e.name;var r=Rl.call(Dl.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function Fi(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,t=e.length;n<t;n++)if(e[n]===r)return n;return-1}function Vl(e){if(!xn||!e||typeof e!="object")return!1;try{xn.call(e);try{wn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Yl(e){if(!Ut||!e||typeof e!="object")return!1;try{Ut.call(e,Ut);try{zt.call(e,zt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Xl(e){if(!Ai||!e||typeof e!="object")return!1;try{return Ai.call(e),!0}catch{}return!1}function Zl(e){if(!wn||!e||typeof e!="object")return!1;try{wn.call(e);try{xn.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Jl(e){if(!zt||!e||typeof e!="object")return!1;try{zt.call(e,zt);try{Ut.call(e,Ut)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Ql(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bi(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return Bi(ur.call(e,0,r.maxStringLength),r)+t}var o=at.call(at.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,es);return $i(o,"single",r)}function es(e){var r=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return n?"\\"+n:"\\x"+(r<16?"0":"")+$l.call(r.toString(16))}function Wt(e){return"Object("+e+")"}function vr(e){return e+" { ? }"}function qi(e,r,n,t){var o=t?yr(n,t):Ye.call(n,", ");return e+" ("+r+") {"+o+"}"}function ts(e){for(var r=0;r<e.length;r++)if(Fi(e[r],`
9
9
  `)>=0)return!1;return!0}function ns(e,r){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ye.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ye.call(Array(r+1),n)}}function yr(e,r){if(e.length===0)return"";var n=`
10
10
  `+r.prev+r.base;return n+Ye.call(e,","+n)+`
11
- `+r.prev}function An(e,r){var n=pr(e),t=[];if(n){t.length=e.length;for(var o=0;o<e.length;o++)t[o]=lt(e,o)?r(e[o],e):""}var i=typeof cr=="function"?cr(e):[],s;if(wt){s={};for(var c=0;c<i.length;c++)s["$"+i[c]]=i[c]}for(var f in e)!lt(e,f)||n&&String(Number(f))===f&&f<e.length||wt&&s["$"+f]instanceof Symbol||(Ni.call(/[^\w$]/,f)?t.push(r(f,e)+": "+r(e[f],e)):t.push(f+": "+r(e[f],e)));if(typeof cr=="function")for(var h=0;h<i.length;h++)Pi.call(e,i[h])&&t.push("["+r(i[h])+"]: "+r(e[i[h]],e));return t}var mr=ir,At=El,rs=jl,is=mr("%TypeError%"),Tn=mr("%WeakMap%",!0),Nn=mr("%Map%",!0),os=At("WeakMap.prototype.get",!0),as=At("WeakMap.prototype.set",!0),ls=At("WeakMap.prototype.has",!0),ss=At("Map.prototype.get",!0),us=At("Map.prototype.set",!0),fs=At("Map.prototype.has",!0),gr=function(e,r){for(var n=e,t;(t=n.next)!==null;n=t)if(t.key===r)return n.next=t.next,t.next=e.next,e.next=t,t},cs=function(e,r){var n=gr(e,r);return n&&n.value},ds=function(e,r,n){var t=gr(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},hs=function(e,r){return!!gr(e,r)},ps=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new is("Side channel does not contain "+rs(i))},get:function(i){if(Tn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return os(r,i)}else if(Nn){if(n)return ss(n,i)}else if(t)return cs(t,i)},has:function(i){if(Tn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return ls(r,i)}else if(Nn){if(n)return fs(n,i)}else if(t)return hs(t,i);return!1},set:function(i,s){Tn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new Tn),as(r,i,s)):Nn?(n||(n=new Nn),us(n,i,s)):(t||(t={key:{},next:null}),ds(t,i,s))}};return o},vs=String.prototype.replace,ys=/%20/g,br={RFC1738:"RFC1738",RFC3986:"RFC3986"},_r={default:br.RFC3986,formatters:{RFC1738:function(e){return vs.call(e,ys,"+")},RFC3986:function(e){return String(e)}},RFC1738:br.RFC1738,RFC3986:br.RFC3986},ms=_r,Or=Object.prototype.hasOwnProperty,vt=Array.isArray,Xe=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),gs=function(r){for(;r.length>1;){var n=r.pop(),t=n.obj[n.prop];if(vt(t)){for(var o=[],i=0;i<t.length;++i)typeof t[i]!="undefined"&&o.push(t[i]);n.obj[n.prop]=o}}},Hi=function(r,n){for(var t=n&&n.plainObjects?Object.create(null):{},o=0;o<r.length;++o)typeof r[o]!="undefined"&&(t[o]=r[o]);return t},bs=function e(r,n,t){if(!n)return r;if(typeof n!="object"){if(vt(r))r.push(n);else if(r&&typeof r=="object")(t&&(t.plainObjects||t.allowPrototypes)||!Or.call(Object.prototype,n))&&(r[n]=!0);else return[r,n];return r}if(!r||typeof r!="object")return[r].concat(n);var o=r;return vt(r)&&!vt(n)&&(o=Hi(r,t)),vt(r)&&vt(n)?(n.forEach(function(i,s){if(Or.call(r,s)){var c=r[s];c&&typeof c=="object"&&i&&typeof i=="object"?r[s]=e(c,i,t):r.push(i)}else r[s]=i}),r):Object.keys(n).reduce(function(i,s){var c=n[s];return Or.call(i,s)?i[s]=e(i[s],c,t):i[s]=c,i},o)},_s=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},Os=function(e,r,n){var t=e.replace(/\+/g," ");if(n==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},Ss=function(r,n,t,o,i){if(r.length===0)return r;var s=r;if(typeof r=="symbol"?s=Symbol.prototype.toString.call(r):typeof r!="string"&&(s=String(r)),t==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var c="",f=0;f<s.length;++f){var h=s.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===ms.RFC1738&&(h===40||h===41)){c+=s.charAt(f);continue}if(h<128){c=c+Xe[h];continue}if(h<2048){c=c+(Xe[192|h>>6]+Xe[128|h&63]);continue}if(h<55296||h>=57344){c=c+(Xe[224|h>>12]+Xe[128|h>>6&63]+Xe[128|h&63]);continue}f+=1,h=65536+((h&1023)<<10|s.charCodeAt(f)&1023),c+=Xe[240|h>>18]+Xe[128|h>>12&63]+Xe[128|h>>6&63]+Xe[128|h&63]}return c},Es=function(r){for(var n=[{obj:{o:r},prop:"o"}],t=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],c=Object.keys(s),f=0;f<c.length;++f){var h=c[f],d=s[h];typeof d=="object"&&d!==null&&t.indexOf(d)===-1&&(n.push({obj:s,prop:h}),t.push(d))}return gs(n),r},xs=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},ws=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},As=function(r,n){return[].concat(r,n)},Ts=function(r,n){if(vt(r)){for(var t=[],o=0;o<r.length;o+=1)t.push(n(r[o]));return t}return n(r)},Ui={arrayToObject:Hi,assign:_s,combine:As,compact:Es,decode:Os,encode:Ss,isBuffer:ws,isRegExp:xs,maybeMap:Ts,merge:bs},zi=ps,Sr=Ui,Gt=_r,Ns=Object.prototype.hasOwnProperty,Wi={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},Qe=Array.isArray,ks=String.prototype.split,Cs=Array.prototype.push,Gi=function(e,r){Cs.apply(e,Qe(r)?r:[r])},Ps=Date.prototype.toISOString,Ki=Gt.default,Ce={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Sr.encode,encodeValuesOnly:!1,format:Ki,formatter:Gt.formatters[Ki],indices:!1,serializeDate:function(r){return Ps.call(r)},skipNulls:!1,strictNullHandling:!1},Is=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},Er={},Ls=function e(r,n,t,o,i,s,c,f,h,d,u,a,l,m,p,b){for(var y=r,g=b,_=0,v=!1;(g=g.get(Er))!==void 0&&!v;){var O=g.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");v=!0}typeof g.get(Er)=="undefined"&&(_=0)}if(typeof f=="function"?y=f(n,y):y instanceof Date?y=u(y):t==="comma"&&Qe(y)&&(y=Sr.maybeMap(y,function(q){return q instanceof Date?u(q):q})),y===null){if(i)return c&&!m?c(n,Ce.encoder,p,"key",a):n;y=""}if(Is(y)||Sr.isBuffer(y)){if(c){var k=m?n:c(n,Ce.encoder,p,"key",a);if(t==="comma"&&m){for(var T=ks.call(String(y),","),A="",I=0;I<T.length;++I)A+=(I===0?"":",")+l(c(T[I],Ce.encoder,p,"value",a));return[l(k)+(o&&Qe(y)&&T.length===1?"[]":"")+"="+A]}return[l(k)+"="+l(c(y,Ce.encoder,p,"value",a))]}return[l(n)+"="+l(String(y))]}var x=[];if(typeof y=="undefined")return x;var S;if(t==="comma"&&Qe(y))S=[{value:y.length>0?y.join(",")||null:void 0}];else if(Qe(f))S=f;else{var w=Object.keys(y);S=h?w.sort(h):w}for(var C=o&&Qe(y)&&y.length===1?n+"[]":n,D=0;D<S.length;++D){var R=S[D],B=typeof R=="object"&&typeof R.value!="undefined"?R.value:y[R];if(!(s&&B===null)){var H=Qe(y)?typeof t=="function"?t(C,R):C:C+(d?"."+R:"["+R+"]");b.set(r,_);var G=zi();G.set(Er,b),Gi(x,e(B,H,t,o,i,s,c,f,h,d,u,a,l,m,p,G))}}return x},Ds=function(r){if(!r)return Ce;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=r.charset||Ce.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=Gt.default;if(typeof r.format!="undefined"){if(!Ns.call(Gt.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=Gt.formatters[t],i=Ce.filter;return(typeof r.filter=="function"||Qe(r.filter))&&(i=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Ce.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Ce.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ce.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Ce.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Ce.encode,encoder:typeof r.encoder=="function"?r.encoder:Ce.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Ce.encodeValuesOnly,filter:i,format:t,formatter:o,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Ce.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Ce.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ce.strictNullHandling}},Rs=function(e,r){var n=e,t=Ds(r),o,i;typeof t.filter=="function"?(i=t.filter,n=i("",n)):Qe(t.filter)&&(i=t.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var c;r&&r.arrayFormat in Wi?c=r.arrayFormat:r&&"indices"in r?c=r.indices?"indices":"repeat":c="indices";var f=Wi[c];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=f==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var d=zi(),u=0;u<o.length;++u){var a=o[u];t.skipNulls&&n[a]===null||Gi(s,Ls(n[a],a,f,h,t.strictNullHandling,t.skipNulls,t.encode?t.encoder:null,t.filter,t.sort,t.allowDots,t.serializeDate,t.format,t.formatter,t.encodeValuesOnly,t.charset,d))}var l=s.join(t.delimiter),m=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),l.length>0?m+l:""},Tt=Ui,xr=Object.prototype.hasOwnProperty,Ms=Array.isArray,Te={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Tt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},$s=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},Vi=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},js="utf8=%26%2310003%3B",Fs="utf8=%E2%9C%93",Bs=function(r,n){var t={},o=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),c=-1,f,h=n.charset;if(n.charsetSentinel)for(f=0;f<s.length;++f)s[f].indexOf("utf8=")===0&&(s[f]===Fs?h="utf-8":s[f]===js&&(h="iso-8859-1"),c=f,f=s.length);for(f=0;f<s.length;++f)if(f!==c){var d=s[f],u=d.indexOf("]="),a=u===-1?d.indexOf("="):u+1,l,m;a===-1?(l=n.decoder(d,Te.decoder,h,"key"),m=n.strictNullHandling?null:""):(l=n.decoder(d.slice(0,a),Te.decoder,h,"key"),m=Tt.maybeMap(Vi(d.slice(a+1),n),function(p){return n.decoder(p,Te.decoder,h,"value")})),m&&n.interpretNumericEntities&&h==="iso-8859-1"&&(m=$s(m)),d.indexOf("[]=")>-1&&(m=Ms(m)?[m]:m),xr.call(t,l)?t[l]=Tt.combine(t[l],m):t[l]=m}return t},qs=function(e,r,n,t){for(var o=t?r:Vi(r,n),i=e.length-1;i>=0;--i){var s,c=e[i];if(c==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var f=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,h=parseInt(f,10);!n.parseArrays&&f===""?s={0:o}:!isNaN(h)&&c!==f&&String(h)===f&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=o):f!=="__proto__"&&(s[f]=o)}o=s}return o},Hs=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,s=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,f=t.depth>0&&s.exec(i),h=f?i.slice(0,f.index):i,d=[];if(h){if(!t.plainObjects&&xr.call(Object.prototype,h)&&!t.allowPrototypes)return;d.push(h)}for(var u=0;t.depth>0&&(f=c.exec(i))!==null&&u<t.depth;){if(u+=1,!t.plainObjects&&xr.call(Object.prototype,f[1].slice(1,-1))&&!t.allowPrototypes)return;d.push(f[1])}return f&&d.push("["+i.slice(f.index)+"]"),qs(d,n,t,o)}},Us=function(r){if(!r)return Te;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof r.charset=="undefined"?Te.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?Te.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Te.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Te.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Te.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Te.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Te.comma,decoder:typeof r.decoder=="function"?r.decoder:Te.decoder,delimiter:typeof r.delimiter=="string"||Tt.isRegExp(r.delimiter)?r.delimiter:Te.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Te.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Te.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Te.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Te.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Te.strictNullHandling}},zs=function(e,r){var n=Us(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?Bs(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),s=0;s<i.length;++s){var c=i[s],f=Hs(c,t[c],n,typeof e=="string");o=Tt.merge(o,f,n)}return n.allowSparse===!0?o:Tt.compact(o)},Ws=Rs,Gs=zs,Ks=_r,Vs={formats:Ks,parse:Gs,stringify:Ws};const Yi=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},Ys=(e,r)=>{if(!Yi(e,r))return{};const n=e.split(r),[t,o]=n,[i,s]=o.split("?");let c=s?Vs.parse(s):{};return{field:t,type:i,params:c}},Xs={functional:!0,props:{tableProp:{},row:{}},render:function(e,r){return e(...(t=>{const{tableProp:o,row:i}=t.props,{tablePreset:s}=t.parent.$UICONFIG,{separator:c,presetPropMap:f}=s,{field:h,type:d,params:u}=Ys(o,c);return f[d](i,{field:h,params:u,h:e})})(r))}};var Zs=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table_config"},[n("span",{staticClass:"el-icon-s-operation",on:{click:e.handleShowConfig}}),n("el-drawer",{attrs:{title:"\u5217\u8868\u914D\u7F6E",direction:"rtl",size:"188px","modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content",style:{maxHeight:e.height}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t){return n("el-checkbox",{key:t.value,attrs:{border:"",label:t.value}},[e._v(e._s(t.label))])}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")])],1)])])],1)},Js=[],cf="";const Qs={components:{draggable:hi},props:{tableName:{type:String,default:""},options:{type:Object,default(){return{}}}},data(){return{showConfig:!1,checkItems:[],sortItems:[],defaultOptions:{}}},computed:{configKey(){const e=document.querySelectorAll(".el-table");return`TableConfig_${this.tableName||this.$route.path}${e.length>1?"_child":""}`},height(){return`${parseInt(this.$parent.tableHeight)-30}px`},handleOptions(){const e=JSON.parse(JSON.stringify(this.options));return e.index&&delete e.index,e.rowLabelInx&&delete e.rowLabelInx,e}},methods:{handleInit(e=!0){let r=localStorage.getItem(this.configKey);r=r?JSON.parse(r):null,r?(this.sortItems=r.sortItems,this.checkItems=r.checkItems,e&&this.handleRenderConfig()):(this.sortItems=Object.entries(this.handleOptions).map(([n,t])=>({label:t,value:n})),this.checkItems=Object.keys(this.handleOptions))},handleShowConfig(){this.handleInit(!1),this.showConfig=!0},handleRenderConfig(){const e=this.sortItems.reduce((r,n)=>Ne(Ne({},r),this.checkItems.includes(n.value)?{[n.value]:n.label}:{}),{});this.$emit("change",e),this.showConfig=!1,localStorage.setItem(this.configKey,JSON.stringify({sortItems:this.sortItems,checkItems:this.checkItems}))},handleReset(){this.sortItems=Object.entries(this.defaultOptions).map(([e,r])=>({label:r,value:e})),this.checkItems=Object.keys(this.defaultOptions)}},created(){this.defaultOptions=JSON.parse(JSON.stringify(this.handleOptions)),this.handleInit()}},Xi={};var eu=Ae(Qs,Zs,Js,!1,tu,"34964627",null,null);function tu(e){for(let r in Xi)this[r]=Xi[r]}var nu=function(){return eu.exports}(),ru=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table",class:{"remove-hover-css":!e.hoverStyle}},[n("div",{staticClass:"ui-table__tab",style:{height:e.showTab?"32px":"unset"}},[e._t("default",[e.tabList.length?n("el-tabs",{attrs:{type:"card",size:"mini"},on:{"tab-click":function(t){return e.$emit("tabChange",t)}},model:{value:e.checkTab,callback:function(t){e.checkTab=t},expression:"checkTab"}},e._l(e.tabList,function(t){return n("el-tab-pane",{key:t.value,attrs:{name:t.value},scopedSlots:e._u([{key:"label",fn:function(){return[n("el-badge",{attrs:{value:t.num,max:999}},[n("span",[e._v(e._s(t.label))])])]},proxy:!0}],null,!0)})}),1):e._e(),e.showTab&&!e.tabList.length?n("div",{staticClass:"ui-tab--loading"},[n("i",{staticClass:"el-icon-loading"}),n("span",[e._v("\u52A0\u8F7D\u4E2D...")])]):e._e()]),n("div",{staticClass:"ui-top-right"},[e._t("top-right")],2),e.showConfig?n("ColumnConfig",{attrs:{tableName:e.tableName,options:e.useMaps},on:{change:e.handleMapChange}}):e._e()],2),n("el-table",e._g(e._b(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.renderLoading,expression:"renderLoading"}],ref:"myTable",attrs:{data:e.tableData,"span-method":e.spanMethod,"row-class-name":e.rowClassName},on:{select:e.manualSelectchange,"row-click":e.handleRowClick},scopedSlots:e._u([{key:"empty",fn:function(){return[e.autoHeight?e._e():n("div",[n("el-empty",{directives:[{name:"show",rawName:"v-show",value:!e.tableData.length,expression:"!tableData.length"}],attrs:{description:"\u6682\u65E0\u6570\u636E"}})],1)]},proxy:!0}])},"el-table",e._d({},[e.isBindHeight,e.tableHeight,e.isBindMaxHeight,e.maxHeight])),"el-table",Object.assign({},{highlightRow:!0,border:!0,stripe:!0},e.$attrs),!1),e.polyfillListeners(e.$listeners)),[e.showSelect?n("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectable}}):e._e(),e._t("column"),e._l(e.tableTitle,function(t,o){return n("el-table-column",{key:e.tableProps[o],attrs:{minWidth:e.tableColsMinWidth[o]||"60px",label:t,fixed:e.fixedMap[e.tableProps[o]],"render-header":typeof t=="function"?t:null,"show-overflow-tooltip":e.tooltips.includes(e.tableProps[o]),prop:e.tableProps[o],width:e.tableProps[o]==="index"?"60px":e.tableColsWidth[o]||"",sortable:e.getSortable(e.tableProps[o])},scopedSlots:e._u([{key:"header",fn:function(i){return[e._t(e.tableProps[o]+"Title",[n("span",[e._v(e._s(t))])],{row:t,$index:i.$index})]}},e.multiHeaderKey.includes(e.tableProps[o])?null:{key:"default",fn:function(i){return[e.isPresetProp(e.tableProps[o],e.$UICONFIG.tablePreset&&e.$UICONFIG.tablePreset.separator)?[n("table-preset-prop",{attrs:{tableProp:e.tableProps[o],row:i.row}})]:e._t(e.tableProps[o],[n("span",{class:{"text--number":e.tableProps[o]!="index"&&Number.isFinite(Number(i.row[e.tableProps[o]]))}},[e._v(e._s(e.tableProps[o]==="index"?e.changeTableInx(i.$index):i.row[e.tableProps[o]]))])],{row:i.row,$index:i.$index})]}}],null,!0)},[e.multiHeaderKey.includes(e.tableProps[o])?[e._t(e.tableProps[o])]:e._e()],2)})],2),e.showPage?n("div",{staticClass:"ui-pagination"},[n("div",{staticClass:"ui-summary--data"},[e._t("right_top"),e._t("summarydata")],2),n("el-pagination",{ref:"pageRef",attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":Number(e.pageData.offset),"page-sizes":e.defaultPageSizes,"page-size":Number(e.pageData.limit),total:Number(e.pageData.total)},on:{"size-change":function(t){return e.handlePageChange("limit",t)},"current-change":function(t){return e.handlePageChange("offset",t)}}})],1):e._e()],1)},iu=[],df="";const ou={name:"ComTable",components:{ColumnConfig:nu,TablePresetProp:Xs},props:{tableName:String,showSelect:{type:Boolean,default:!1},selectable:{type:Function,default(){return()=>{}}},isSingleSelection:{type:Boolean,default:!1},spanMethod:{type:Function},tableData:{type:Array,default(){return[]}},tableMap:{type:Object,default(){return{index:"\u5E8F\u53F7"}}},colsWidth:{type:[Array,Object],default(){return[]}},colsMinWidth:{type:[Array,Object],default(){return[]}},pageData:{type:Object,default(){return{}}},showPage:{type:Boolean,default:!0},height:{type:String,default:""},autoHeight:{type:Boolean,default:!1},maxHeight:{type:String,default:""},heightStatic:{type:Number,default:0},tabList:{type:Array,default(){return[]}},defaultTab:{type:[String,Number],default:""},showTab:{type:Boolean,default:!1},rowClassName:{type:Function,default({row:e}){}},tooltips:{type:Array,default(){return[]}},multiHeaderKey:{type:Array,default(){return[]}},showConfig:{type:Boolean,default:!0},sortables:{type:[Array,Object],default(){return[]}},fixedMap:{type:Object,default(){return{}}},hoverStyle:{type:Boolean,default:!0},pageSizes:{type:Array}},data(){return{isPresetProp:Yi,defaultPageSizes:[20,50,100,200,500,1e3],tableHeight:"",checkTab:"",useMaps:{},renderLoading:!1,handleWindowResize:null}},computed:{tableTitle(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.values(this.useMaps)},tableProps(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.keys(this.useMaps)},tableColsWidth(){return Array.isArray(this.colsWidth)?this.colsWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsWidth[e]?`${parseInt(this.colsWidth[e])}px`:"")},tableColsMinWidth(){return Array.isArray(this.colsMinWidth)?this.colsMinWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsMinWidth[e]?`${parseInt(this.colsMinWidth[e])}px`:"")},isBindHeight(){return this.tableHeight?"height":""},isBindMaxHeight(){return this.maxHeight?"max-height":""}},methods:{changeTableInx(e){let r=parseInt(e)+1+"";return"0".repeat(4-r.length)+r},handleRefreshHeight(){!this.autoHeight&&!this.height?this.$nextTick().then(()=>{this.tableHeight=`${yi()-this.heightStatic}px`,this.$refs.myTable&&this.$refs.myTable.doLayout()}):this.height&&(this.tableHeight=this.height,this.$refs.myTable&&this.$refs.myTable.doLayout())},handlePageChange(e="offset",r){if(e==="offset"){if(this.tempSize>this.pageData.total&&this.pageData.offset>1)return;this.$emit("pageChange",e,r)}else this.tempSize=r,this.$emit("pageChange",e,r)},polyfillListeners(e){const r={selectionChange:"selection-change"};return Object.entries(e).reduce((n,[t,o])=>{const i=r[t];return n[i||t]=o,n},{})},manualSelectchange(e,r){if(!this.isSingleSelection)return;const n=this.$refs.myTable;n.clearSelection(),this.$nextTick(()=>{n.toggleRowSelection(r,!0)})},handleMapChange(e){this.useMaps={},this.renderLoading=!0,this.$nextTick().then(()=>{this.useMaps=e,this.handleRefreshHeight(),setTimeout(()=>{this.renderLoading=!1},500)})},getSortable(e){const r=this.sortables;return Array.isArray(r)?r.includes(e):r[e]},handleRowClick(e,r,n){const t=n.target,o=t.parentElement.nodeName=="TR"?t.parentElement:t.parentElement.parentElement;this.showSelect&&o.firstChild.querySelector(".is-disabled")||t.className.indexOf("cell")>-1&&(this.isSingleSelection?this.manualSelectchange(null,e):this.$refs.myTable.toggleRowSelection(e))}},created(){var e;this.checkTab=this.defaultTab,this.defaultPageSizes=this.pageSizes||((e=this.$UICONFIG)==null?void 0:e.pageSizes)||[20,50,100,200,500,1e3],this.useMaps=JSON.parse(JSON.stringify(this.tableMap))},async mounted(){if(await this.$nextTick(),this.handleRefreshHeight(),this.isSingleSelection){const e=this.$refs.myTable.$el.querySelector(".el-table__header-wrapper .el-checkbox");e.style="display:none"}this.handleWindowResize=Qn(100,this.handleRefreshHeight),window.addEventListener("resize",this.handleWindowResize)},watch:{async useMaps(){await this.$nextTick(),this.handleRefreshHeight()},tableMap(e){this.useMaps=JSON.parse(JSON.stringify(e))},tableData(){this.handleRefreshHeight()}},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize)},async activated(){this.handleRefreshHeight()}},Zi={};var au=Ae(ou,ru,iu,!1,lu,"c96854b8",null,null);function lu(e){for(let r in Zi)this[r]=Zi[r]}var kn=function(){return au.exports}();kn.install=e=>{e.component(kn.name,kn)};const Ji=kn;var su=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.show?n("el-image",{ref:"imageRef",style:{width:e.sizeMain,height:e.sizeMain},attrs:{"scroll-container":".el-table__body-wrapper",fit:e.fit,src:e.srcMain,"preview-src-list":e.previewList,lazy:e.lazy},scopedSlots:e._u([{key:"placeholder",fn:function(){return[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-image--loading",style:{width:e.sizeMain,height:e.height}})]},proxy:!0},{key:"error",fn:function(){return[n("div",{staticClass:"ui-image--error",style:{width:e.sizeMain,height:e.height,lineHeight:e.height,fontSize:e.fontSize}},[n("i",{staticClass:"el-icon-picture-outline"})])]},proxy:!0}],null,!1,4245906892)}):e._e()},uu=[],hf="";const fu={name:"ComImage",props:{fit:{type:String,default:"contain"},size:{type:String,default:""},src:{type:[String,Array],default(){return""}},previewSrcList:{type:Array,default(){return[]}},lazy:{type:Boolean,default:!1}},data(){return{height:"",show:!1}},computed:{previewList(){return this.previewSrcList.length?this.previewSrcList:Array.isArray(this.src)?this.src:[]},srcMain(){return Array.isArray(this.src)?this.src[0]:this.src},fontSize(){return`${parseInt(this.height)-30}px`},sizeMain(){return this.size?Number(this.size)?`${this.size}px`:this.size:"100%"}},async mounted(){setTimeout(async()=>{this.show=!0,await this.$nextTick(),this.height=`${this.$refs.imageRef.$el.offsetWidth}px`},300)}},Qi={};var cu=Ae(fu,su,uu,!1,du,"52e1ecf6",null,null);function du(e){for(let r in Qi)this[r]=Qi[r]}var Cn=function(){return cu.exports}();Cn.install=e=>{e.component(Cn.name,Cn)};const eo=Cn;var hu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-scrollbar",{staticClass:"ui-scrollbar",style:{height:e.setHeight,width:"100%"}},[e._t("default")],2)},pu=[],pf="";const vu={name:"ComContainer",props:{staticClass:{type:Array,default(){return[]}},staticNum:{type:Number,default:0},height:{type:String,default:""}},data(){return{setHeight:"unset"}},methods:{handleRefreshHeight(){this.$nextTick().then(()=>{this.setHeight=this.height||`${yi(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:Qn(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},to={};var yu=Ae(vu,hu,pu,!1,mu,"c2fac2c4",null,null);function mu(e){for(let r in to)this[r]=to[r]}var Pn=function(){return yu.exports}();Pn.install=e=>{e.component(Pn.name,Pn)};const no=Pn;var ro={exports:{}};/*!
11
+ `+r.prev}function An(e,r){var n=pr(e),t=[];if(n){t.length=e.length;for(var o=0;o<e.length;o++)t[o]=lt(e,o)?r(e[o],e):""}var i=typeof cr=="function"?cr(e):[],s;if(wt){s={};for(var c=0;c<i.length;c++)s["$"+i[c]]=i[c]}for(var f in e)!lt(e,f)||n&&String(Number(f))===f&&f<e.length||wt&&s["$"+f]instanceof Symbol||(Ni.call(/[^\w$]/,f)?t.push(r(f,e)+": "+r(e[f],e)):t.push(f+": "+r(e[f],e)));if(typeof cr=="function")for(var h=0;h<i.length;h++)Pi.call(e,i[h])&&t.push("["+r(i[h])+"]: "+r(e[i[h]],e));return t}var mr=ir,At=El,rs=jl,is=mr("%TypeError%"),Tn=mr("%WeakMap%",!0),Nn=mr("%Map%",!0),os=At("WeakMap.prototype.get",!0),as=At("WeakMap.prototype.set",!0),ls=At("WeakMap.prototype.has",!0),ss=At("Map.prototype.get",!0),us=At("Map.prototype.set",!0),fs=At("Map.prototype.has",!0),gr=function(e,r){for(var n=e,t;(t=n.next)!==null;n=t)if(t.key===r)return n.next=t.next,t.next=e.next,e.next=t,t},cs=function(e,r){var n=gr(e,r);return n&&n.value},ds=function(e,r,n){var t=gr(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},hs=function(e,r){return!!gr(e,r)},ps=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new is("Side channel does not contain "+rs(i))},get:function(i){if(Tn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return os(r,i)}else if(Nn){if(n)return ss(n,i)}else if(t)return cs(t,i)},has:function(i){if(Tn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return ls(r,i)}else if(Nn){if(n)return fs(n,i)}else if(t)return hs(t,i);return!1},set:function(i,s){Tn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new Tn),as(r,i,s)):Nn?(n||(n=new Nn),us(n,i,s)):(t||(t={key:{},next:null}),ds(t,i,s))}};return o},vs=String.prototype.replace,ys=/%20/g,br={RFC1738:"RFC1738",RFC3986:"RFC3986"},_r={default:br.RFC3986,formatters:{RFC1738:function(e){return vs.call(e,ys,"+")},RFC3986:function(e){return String(e)}},RFC1738:br.RFC1738,RFC3986:br.RFC3986},ms=_r,Or=Object.prototype.hasOwnProperty,vt=Array.isArray,Xe=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),gs=function(r){for(;r.length>1;){var n=r.pop(),t=n.obj[n.prop];if(vt(t)){for(var o=[],i=0;i<t.length;++i)typeof t[i]!="undefined"&&o.push(t[i]);n.obj[n.prop]=o}}},Hi=function(r,n){for(var t=n&&n.plainObjects?Object.create(null):{},o=0;o<r.length;++o)typeof r[o]!="undefined"&&(t[o]=r[o]);return t},bs=function e(r,n,t){if(!n)return r;if(typeof n!="object"){if(vt(r))r.push(n);else if(r&&typeof r=="object")(t&&(t.plainObjects||t.allowPrototypes)||!Or.call(Object.prototype,n))&&(r[n]=!0);else return[r,n];return r}if(!r||typeof r!="object")return[r].concat(n);var o=r;return vt(r)&&!vt(n)&&(o=Hi(r,t)),vt(r)&&vt(n)?(n.forEach(function(i,s){if(Or.call(r,s)){var c=r[s];c&&typeof c=="object"&&i&&typeof i=="object"?r[s]=e(c,i,t):r.push(i)}else r[s]=i}),r):Object.keys(n).reduce(function(i,s){var c=n[s];return Or.call(i,s)?i[s]=e(i[s],c,t):i[s]=c,i},o)},_s=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},Os=function(e,r,n){var t=e.replace(/\+/g," ");if(n==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},Ss=function(r,n,t,o,i){if(r.length===0)return r;var s=r;if(typeof r=="symbol"?s=Symbol.prototype.toString.call(r):typeof r!="string"&&(s=String(r)),t==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var c="",f=0;f<s.length;++f){var h=s.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===ms.RFC1738&&(h===40||h===41)){c+=s.charAt(f);continue}if(h<128){c=c+Xe[h];continue}if(h<2048){c=c+(Xe[192|h>>6]+Xe[128|h&63]);continue}if(h<55296||h>=57344){c=c+(Xe[224|h>>12]+Xe[128|h>>6&63]+Xe[128|h&63]);continue}f+=1,h=65536+((h&1023)<<10|s.charCodeAt(f)&1023),c+=Xe[240|h>>18]+Xe[128|h>>12&63]+Xe[128|h>>6&63]+Xe[128|h&63]}return c},Es=function(r){for(var n=[{obj:{o:r},prop:"o"}],t=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],c=Object.keys(s),f=0;f<c.length;++f){var h=c[f],d=s[h];typeof d=="object"&&d!==null&&t.indexOf(d)===-1&&(n.push({obj:s,prop:h}),t.push(d))}return gs(n),r},xs=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},ws=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},As=function(r,n){return[].concat(r,n)},Ts=function(r,n){if(vt(r)){for(var t=[],o=0;o<r.length;o+=1)t.push(n(r[o]));return t}return n(r)},Ui={arrayToObject:Hi,assign:_s,combine:As,compact:Es,decode:Os,encode:Ss,isBuffer:ws,isRegExp:xs,maybeMap:Ts,merge:bs},zi=ps,Sr=Ui,Gt=_r,Ns=Object.prototype.hasOwnProperty,Wi={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},Qe=Array.isArray,ks=String.prototype.split,Cs=Array.prototype.push,Gi=function(e,r){Cs.apply(e,Qe(r)?r:[r])},Ps=Date.prototype.toISOString,Ki=Gt.default,Ce={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Sr.encode,encodeValuesOnly:!1,format:Ki,formatter:Gt.formatters[Ki],indices:!1,serializeDate:function(r){return Ps.call(r)},skipNulls:!1,strictNullHandling:!1},Is=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},Er={},Ls=function e(r,n,t,o,i,s,c,f,h,d,u,a,l,m,p,b){for(var y=r,g=b,_=0,v=!1;(g=g.get(Er))!==void 0&&!v;){var O=g.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");v=!0}typeof g.get(Er)=="undefined"&&(_=0)}if(typeof f=="function"?y=f(n,y):y instanceof Date?y=u(y):t==="comma"&&Qe(y)&&(y=Sr.maybeMap(y,function(q){return q instanceof Date?u(q):q})),y===null){if(i)return c&&!m?c(n,Ce.encoder,p,"key",a):n;y=""}if(Is(y)||Sr.isBuffer(y)){if(c){var k=m?n:c(n,Ce.encoder,p,"key",a);if(t==="comma"&&m){for(var T=ks.call(String(y),","),A="",I=0;I<T.length;++I)A+=(I===0?"":",")+l(c(T[I],Ce.encoder,p,"value",a));return[l(k)+(o&&Qe(y)&&T.length===1?"[]":"")+"="+A]}return[l(k)+"="+l(c(y,Ce.encoder,p,"value",a))]}return[l(n)+"="+l(String(y))]}var x=[];if(typeof y=="undefined")return x;var S;if(t==="comma"&&Qe(y))S=[{value:y.length>0?y.join(",")||null:void 0}];else if(Qe(f))S=f;else{var w=Object.keys(y);S=h?w.sort(h):w}for(var C=o&&Qe(y)&&y.length===1?n+"[]":n,D=0;D<S.length;++D){var R=S[D],B=typeof R=="object"&&typeof R.value!="undefined"?R.value:y[R];if(!(s&&B===null)){var H=Qe(y)?typeof t=="function"?t(C,R):C:C+(d?"."+R:"["+R+"]");b.set(r,_);var G=zi();G.set(Er,b),Gi(x,e(B,H,t,o,i,s,c,f,h,d,u,a,l,m,p,G))}}return x},Ds=function(r){if(!r)return Ce;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=r.charset||Ce.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=Gt.default;if(typeof r.format!="undefined"){if(!Ns.call(Gt.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=Gt.formatters[t],i=Ce.filter;return(typeof r.filter=="function"||Qe(r.filter))&&(i=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Ce.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Ce.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ce.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Ce.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Ce.encode,encoder:typeof r.encoder=="function"?r.encoder:Ce.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Ce.encodeValuesOnly,filter:i,format:t,formatter:o,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Ce.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Ce.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ce.strictNullHandling}},Rs=function(e,r){var n=e,t=Ds(r),o,i;typeof t.filter=="function"?(i=t.filter,n=i("",n)):Qe(t.filter)&&(i=t.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var c;r&&r.arrayFormat in Wi?c=r.arrayFormat:r&&"indices"in r?c=r.indices?"indices":"repeat":c="indices";var f=Wi[c];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=f==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var d=zi(),u=0;u<o.length;++u){var a=o[u];t.skipNulls&&n[a]===null||Gi(s,Ls(n[a],a,f,h,t.strictNullHandling,t.skipNulls,t.encode?t.encoder:null,t.filter,t.sort,t.allowDots,t.serializeDate,t.format,t.formatter,t.encodeValuesOnly,t.charset,d))}var l=s.join(t.delimiter),m=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),l.length>0?m+l:""},Tt=Ui,xr=Object.prototype.hasOwnProperty,$s=Array.isArray,Te={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Tt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ms=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},Vi=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},js="utf8=%26%2310003%3B",Fs="utf8=%E2%9C%93",Bs=function(r,n){var t={},o=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),c=-1,f,h=n.charset;if(n.charsetSentinel)for(f=0;f<s.length;++f)s[f].indexOf("utf8=")===0&&(s[f]===Fs?h="utf-8":s[f]===js&&(h="iso-8859-1"),c=f,f=s.length);for(f=0;f<s.length;++f)if(f!==c){var d=s[f],u=d.indexOf("]="),a=u===-1?d.indexOf("="):u+1,l,m;a===-1?(l=n.decoder(d,Te.decoder,h,"key"),m=n.strictNullHandling?null:""):(l=n.decoder(d.slice(0,a),Te.decoder,h,"key"),m=Tt.maybeMap(Vi(d.slice(a+1),n),function(p){return n.decoder(p,Te.decoder,h,"value")})),m&&n.interpretNumericEntities&&h==="iso-8859-1"&&(m=Ms(m)),d.indexOf("[]=")>-1&&(m=$s(m)?[m]:m),xr.call(t,l)?t[l]=Tt.combine(t[l],m):t[l]=m}return t},qs=function(e,r,n,t){for(var o=t?r:Vi(r,n),i=e.length-1;i>=0;--i){var s,c=e[i];if(c==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var f=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,h=parseInt(f,10);!n.parseArrays&&f===""?s={0:o}:!isNaN(h)&&c!==f&&String(h)===f&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=o):f!=="__proto__"&&(s[f]=o)}o=s}return o},Hs=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,s=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,f=t.depth>0&&s.exec(i),h=f?i.slice(0,f.index):i,d=[];if(h){if(!t.plainObjects&&xr.call(Object.prototype,h)&&!t.allowPrototypes)return;d.push(h)}for(var u=0;t.depth>0&&(f=c.exec(i))!==null&&u<t.depth;){if(u+=1,!t.plainObjects&&xr.call(Object.prototype,f[1].slice(1,-1))&&!t.allowPrototypes)return;d.push(f[1])}return f&&d.push("["+i.slice(f.index)+"]"),qs(d,n,t,o)}},Us=function(r){if(!r)return Te;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof r.charset=="undefined"?Te.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?Te.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Te.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Te.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Te.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Te.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Te.comma,decoder:typeof r.decoder=="function"?r.decoder:Te.decoder,delimiter:typeof r.delimiter=="string"||Tt.isRegExp(r.delimiter)?r.delimiter:Te.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Te.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Te.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Te.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Te.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Te.strictNullHandling}},zs=function(e,r){var n=Us(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?Bs(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),s=0;s<i.length;++s){var c=i[s],f=Hs(c,t[c],n,typeof e=="string");o=Tt.merge(o,f,n)}return n.allowSparse===!0?o:Tt.compact(o)},Ws=Rs,Gs=zs,Ks=_r,Vs={formats:Ks,parse:Gs,stringify:Ws};const Yi=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},Ys=(e,r)=>{if(!Yi(e,r))return{};const n=e.split(r),[t,o]=n,[i,s]=o.split("?");let c=s?Vs.parse(s):{};return{field:t,type:i,params:c}},Xs={functional:!0,props:{tableProp:{},row:{}},render:function(e,r){return e(...(t=>{const{tableProp:o,row:i}=t.props,{tablePreset:s}=t.parent.$UICONFIG,{separator:c,presetPropMap:f}=s,{field:h,type:d,params:u}=Ys(o,c);return f[d](i,{field:h,params:u,h:e})})(r))}};var Zs=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table_config"},[n("span",{staticClass:"el-icon-s-operation",on:{click:e.handleShowConfig}}),n("el-drawer",{attrs:{title:"\u5217\u8868\u914D\u7F6E",direction:"rtl",size:"188px","modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content",style:{maxHeight:e.height}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t){return n("el-checkbox",{key:t.value,attrs:{border:"",label:t.value}},[e._v(e._s(t.label))])}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")])],1)])])],1)},Js=[],cf="";const Qs={components:{draggable:hi},props:{tableName:{type:String,default:""},options:{type:Object,default(){return{}}}},data(){return{showConfig:!1,checkItems:[],sortItems:[],defaultOptions:{}}},computed:{configKey(){const e=document.querySelectorAll(".el-table");return`TableConfig_${this.tableName||this.$route.path}${e.length>1?"_child":""}`},height(){return`${parseInt(this.$parent.tableHeight)-30}px`},handleOptions(){const e=JSON.parse(JSON.stringify(this.options));return e.index&&delete e.index,e.rowLabelInx&&delete e.rowLabelInx,e}},methods:{handleInit(e=!0){let r=localStorage.getItem(this.configKey);r=r?JSON.parse(r):null,r?(this.sortItems=r.sortItems,this.checkItems=r.checkItems,e&&this.handleRenderConfig()):(this.sortItems=Object.entries(this.handleOptions).map(([n,t])=>({label:t,value:n})),this.checkItems=Object.keys(this.handleOptions))},handleShowConfig(){this.handleInit(!1),this.showConfig=!0},handleRenderConfig(){const e=this.sortItems.reduce((r,n)=>Ne(Ne({},r),this.checkItems.includes(n.value)?{[n.value]:n.label}:{}),{});this.$emit("change",e),this.showConfig=!1,localStorage.setItem(this.configKey,JSON.stringify({sortItems:this.sortItems,checkItems:this.checkItems}))},handleReset(){this.sortItems=Object.entries(this.defaultOptions).map(([e,r])=>({label:r,value:e})),this.checkItems=Object.keys(this.defaultOptions)}},created(){this.defaultOptions=JSON.parse(JSON.stringify(this.handleOptions)),this.handleInit()}},Xi={};var eu=Ae(Qs,Zs,Js,!1,tu,"34964627",null,null);function tu(e){for(let r in Xi)this[r]=Xi[r]}var nu=function(){return eu.exports}(),ru=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table",class:{"remove-hover-css":!e.hoverStyle}},[n("div",{staticClass:"ui-table__tab",style:{height:e.showTab?"32px":"unset"}},[e._t("default",[e.tabList.length?n("el-tabs",{attrs:{type:"card",size:"mini"},on:{"tab-click":function(t){return e.$emit("tabChange",t)}},model:{value:e.checkTab,callback:function(t){e.checkTab=t},expression:"checkTab"}},e._l(e.tabList,function(t){return n("el-tab-pane",{key:t.value,attrs:{name:t.value},scopedSlots:e._u([{key:"label",fn:function(){return[n("el-badge",{attrs:{value:t.num,max:999}},[n("span",[e._v(e._s(t.label))])])]},proxy:!0}],null,!0)})}),1):e._e(),e.showTab&&!e.tabList.length?n("div",{staticClass:"ui-tab--loading"},[n("i",{staticClass:"el-icon-loading"}),n("span",[e._v("\u52A0\u8F7D\u4E2D...")])]):e._e()]),n("div",{staticClass:"ui-top-right"},[e._t("top-right")],2),e.showConfig?n("ColumnConfig",{attrs:{tableName:e.tableName,options:e.useMaps},on:{change:e.handleMapChange}}):e._e()],2),n("el-table",e._g(e._b(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.renderLoading,expression:"renderLoading"}],ref:"myTable",attrs:{data:e.tableData,"span-method":e.spanMethod,"row-class-name":e.rowClassName},on:{select:e.manualSelectchange,"row-click":e.handleRowClick},scopedSlots:e._u([{key:"empty",fn:function(){return[e.autoHeight?e._e():n("div",[n("el-empty",{directives:[{name:"show",rawName:"v-show",value:!e.tableData.length,expression:"!tableData.length"}],attrs:{description:"\u6682\u65E0\u6570\u636E"}})],1)]},proxy:!0}])},"el-table",e._d({},[e.isBindHeight,e.tableHeight,e.isBindMaxHeight,e.maxHeight])),"el-table",Object.assign({},{highlightRow:!0,border:!0,stripe:!0},e.$attrs),!1),e.polyfillListeners(e.$listeners)),[e.showSelect?n("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectable}}):e._e(),e._t("column"),e._l(e.tableTitle,function(t,o){return n("el-table-column",{key:e.tableProps[o],attrs:{minWidth:e.tableColsMinWidth[o]||"60px",label:t,fixed:e.fixedMap[e.tableProps[o]],"render-header":typeof t=="function"?t:null,"show-overflow-tooltip":e.tooltips.includes(e.tableProps[o]),prop:e.tableProps[o],width:e.tableProps[o]==="index"?"60px":e.tableColsWidth[o]||"",sortable:e.getSortable(e.tableProps[o])},scopedSlots:e._u([{key:"header",fn:function(i){return[e._t(e.tableProps[o]+"Title",[n("span",[e._v(e._s(t))])],{row:t,$index:i.$index})]}},e.multiHeaderKey.includes(e.tableProps[o])?null:{key:"default",fn:function(i){return[e.isPresetProp(e.tableProps[o],e.$UICONFIG.tablePreset&&e.$UICONFIG.tablePreset.separator)?[n("table-preset-prop",{attrs:{tableProp:e.tableProps[o],row:i.row}})]:e._t(e.tableProps[o],[n("span",{class:{"text--number":e.tableProps[o]!="index"&&Number.isFinite(Number(i.row[e.tableProps[o]]))}},[e._v(e._s(e.tableProps[o]==="index"?e.changeTableInx(i.$index):i.row[e.tableProps[o]]))])],{row:i.row,$index:i.$index})]}}],null,!0)},[e.multiHeaderKey.includes(e.tableProps[o])?[e._t(e.tableProps[o])]:e._e()],2)})],2),e.showPage?n("div",{staticClass:"ui-pagination"},[n("div",{staticClass:"ui-summary--data"},[e._t("right_top"),e._t("summarydata")],2),n("el-pagination",{ref:"pageRef",attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":Number(e.pageData.offset),"page-sizes":e.defaultPageSizes,"page-size":Number(e.pageData.limit),total:Number(e.pageData.total)},on:{"size-change":function(t){return e.handlePageChange("limit",t)},"current-change":function(t){return e.handlePageChange("offset",t)}}})],1):e._e()],1)},iu=[],df="";const ou={name:"ComTable",components:{ColumnConfig:nu,TablePresetProp:Xs},props:{tableName:String,showSelect:{type:Boolean,default:!1},selectable:{type:Function,default(){return()=>{}}},isSingleSelection:{type:Boolean,default:!1},spanMethod:{type:Function},tableData:{type:Array,default(){return[]}},tableMap:{type:Object,default(){return{index:"\u5E8F\u53F7"}}},colsWidth:{type:[Array,Object],default(){return[]}},colsMinWidth:{type:[Array,Object],default(){return[]}},pageData:{type:Object,default(){return{}}},showPage:{type:Boolean,default:!0},height:{type:String,default:""},autoHeight:{type:Boolean,default:!1},maxHeight:{type:String,default:""},heightStatic:{type:Number,default:0},tabList:{type:Array,default(){return[]}},defaultTab:{type:[String,Number],default:""},showTab:{type:Boolean,default:!1},rowClassName:{type:Function,default({row:e}){}},tooltips:{type:Array,default(){return[]}},multiHeaderKey:{type:Array,default(){return[]}},showConfig:{type:Boolean,default:!0},sortables:{type:[Array,Object],default(){return[]}},fixedMap:{type:Object,default(){return{}}},hoverStyle:{type:Boolean,default:!0},pageSizes:{type:Array}},data(){return{isPresetProp:Yi,defaultPageSizes:[20,50,100,200,500,1e3],tableHeight:"",checkTab:"",useMaps:{},renderLoading:!1,handleWindowResize:null}},computed:{tableTitle(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.values(this.useMaps)},tableProps(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.keys(this.useMaps)},tableColsWidth(){return Array.isArray(this.colsWidth)?this.colsWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsWidth[e]?`${parseInt(this.colsWidth[e])}px`:"")},tableColsMinWidth(){return Array.isArray(this.colsMinWidth)?this.colsMinWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsMinWidth[e]?`${parseInt(this.colsMinWidth[e])}px`:"")},isBindHeight(){return this.tableHeight?"height":""},isBindMaxHeight(){return this.maxHeight?"max-height":""}},methods:{changeTableInx(e){let r=parseInt(e)+1+"";return"0".repeat(4-r.length)+r},handleRefreshHeight(){!this.autoHeight&&!this.height?this.$nextTick().then(()=>{this.tableHeight=`${yi()-this.heightStatic}px`,this.$refs.myTable&&this.$refs.myTable.doLayout()}):this.height&&(this.tableHeight=this.height,this.$refs.myTable&&this.$refs.myTable.doLayout())},handlePageChange(e="offset",r){if(e==="offset"){if(this.tempSize>this.pageData.total&&this.pageData.offset>1)return;this.$emit("pageChange",e,r)}else this.tempSize=r,this.$emit("pageChange",e,r)},polyfillListeners(e){const r={selectionChange:"selection-change"};return Object.entries(e).reduce((n,[t,o])=>{const i=r[t];return n[i||t]=o,n},{})},manualSelectchange(e,r){if(!this.isSingleSelection)return;const n=this.$refs.myTable;n.clearSelection(),this.$nextTick(()=>{n.toggleRowSelection(r,!0)})},handleMapChange(e){this.useMaps={},this.renderLoading=!0,this.$nextTick().then(()=>{this.useMaps=e,this.handleRefreshHeight(),setTimeout(()=>{this.renderLoading=!1},500)})},getSortable(e){const r=this.sortables;return Array.isArray(r)?r.includes(e):r[e]},handleRowClick(e,r,n){const t=n.target,o=t.parentElement.nodeName=="TR"?t.parentElement:t.parentElement.parentElement;this.showSelect&&o.firstChild.querySelector(".is-disabled")||t.className.indexOf("cell")>-1&&(this.isSingleSelection?this.manualSelectchange(null,e):this.$refs.myTable.toggleRowSelection(e))}},created(){var e;this.checkTab=this.defaultTab,this.defaultPageSizes=this.pageSizes||((e=this.$UICONFIG)==null?void 0:e.pageSizes)||[20,50,100,200,500,1e3],this.useMaps=JSON.parse(JSON.stringify(this.tableMap))},async mounted(){if(await this.$nextTick(),this.handleRefreshHeight(),this.isSingleSelection){const e=this.$refs.myTable.$el.querySelector(".el-table__header-wrapper .el-checkbox");e.style="display:none"}this.handleWindowResize=Qn(100,this.handleRefreshHeight),window.addEventListener("resize",this.handleWindowResize)},watch:{async useMaps(){await this.$nextTick(),this.handleRefreshHeight()},tableMap(e){this.useMaps=JSON.parse(JSON.stringify(e))},tableData(){this.handleRefreshHeight()}},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize)},async activated(){this.handleRefreshHeight()}},Zi={};var au=Ae(ou,ru,iu,!1,lu,"c96854b8",null,null);function lu(e){for(let r in Zi)this[r]=Zi[r]}var kn=function(){return au.exports}();kn.install=e=>{e.component(kn.name,kn)};const Ji=kn;var su=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.show?n("el-image",{ref:"imageRef",style:{width:e.sizeMain,height:e.sizeMain},attrs:{"scroll-container":".el-table__body-wrapper",fit:e.fit,src:e.srcMain,"preview-src-list":e.previewList,lazy:e.lazy},scopedSlots:e._u([{key:"placeholder",fn:function(){return[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-image--loading",style:{width:e.sizeMain,height:e.height}})]},proxy:!0},{key:"error",fn:function(){return[n("div",{staticClass:"ui-image--error",style:{width:e.sizeMain,height:e.height,lineHeight:e.height,fontSize:e.fontSize}},[n("i",{staticClass:"el-icon-picture-outline"})])]},proxy:!0}],null,!1,4245906892)}):e._e()},uu=[],hf="";const fu={name:"ComImage",props:{fit:{type:String,default:"contain"},size:{type:String,default:""},src:{type:[String,Array],default(){return""}},previewSrcList:{type:Array,default(){return[]}},lazy:{type:Boolean,default:!1}},data(){return{height:"",show:!1}},computed:{previewList(){return this.previewSrcList.length?this.previewSrcList:Array.isArray(this.src)?this.src:[]},srcMain(){return Array.isArray(this.src)?this.src[0]:this.src},fontSize(){return`${parseInt(this.height)-30}px`},sizeMain(){return this.size?Number(this.size)?`${this.size}px`:this.size:"100%"}},async mounted(){setTimeout(async()=>{this.show=!0,await this.$nextTick(),this.height=`${this.$refs.imageRef.$el.offsetWidth}px`},300)}},Qi={};var cu=Ae(fu,su,uu,!1,du,"52e1ecf6",null,null);function du(e){for(let r in Qi)this[r]=Qi[r]}var Cn=function(){return cu.exports}();Cn.install=e=>{e.component(Cn.name,Cn)};const eo=Cn;var hu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-scrollbar",{staticClass:"ui-scrollbar",style:{height:e.setHeight,width:"100%"}},[e._t("default")],2)},pu=[],pf="";const vu={name:"ComContainer",props:{staticClass:{type:Array,default(){return[]}},staticNum:{type:Number,default:0},height:{type:String,default:""}},data(){return{setHeight:"unset"}},methods:{handleRefreshHeight(){this.$nextTick().then(()=>{this.setHeight=this.height||`${yi(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:Qn(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},to={};var yu=Ae(vu,hu,pu,!1,mu,"c2fac2c4",null,null);function mu(e){for(let r in to)this[r]=to[r]}var Pn=function(){return yu.exports}();Pn.install=e=>{e.component(Pn.name,Pn)};const no=Pn;var ro={exports:{}};/*!
12
12
  * Quill Editor v1.3.7
13
13
  * https://quilljs.com/
14
14
  * Copyright (c) 2014, Jason Chen
@@ -17,8 +17,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17
17
  `;for(var l=f.iterator(this.ops),m=new d,p=0;l.hasNext();){if(l.peekType()!=="insert")return;var b=l.peek(),y=f.length(b)-l.peekLength(),g=typeof b.insert=="string"?b.insert.indexOf(a,y)-y:-1;if(g<0)m.push(l.next());else if(g>0)m.push(l.next(g));else{if(u(m,l.next(1).attributes||{},p)===!1)return;p+=1,m=new d}}m.length()>0&&u(m,{},p)},d.prototype.transform=function(u,a){if(a=!!a,typeof u=="number")return this.transformPosition(u,a);for(var l=f.iterator(this.ops),m=f.iterator(u.ops),p=new d;l.hasNext()||m.hasNext();)if(l.peekType()==="insert"&&(a||m.peekType()!=="insert"))p.retain(f.length(l.next()));else if(m.peekType()==="insert")p.push(m.next());else{var b=Math.min(l.peekLength(),m.peekLength()),y=l.next(b),g=m.next(b);if(y.delete)continue;g.delete?p.push(g):p.retain(b,f.attributes.transform(y.attributes,g.attributes,a))}return p.chop()},d.prototype.transformPosition=function(u,a){a=!!a;for(var l=f.iterator(this.ops),m=0;l.hasNext()&&m<=u;){var p=l.peekLength(),b=l.peekType();if(l.next(),b==="delete"){u-=Math.min(p,u-m);continue}else b==="insert"&&(m<u||!a)&&(u+=p);m+=p}return u},n.exports=d},function(n,t){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=function(l){return typeof Array.isArray=="function"?Array.isArray(l):i.call(l)==="[object Array]"},h=function(l){if(!l||i.call(l)!=="[object Object]")return!1;var m=o.call(l,"constructor"),p=l.constructor&&l.constructor.prototype&&o.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!m&&!p)return!1;var b;for(b in l);return typeof b=="undefined"||o.call(l,b)},d=function(l,m){s&&m.name==="__proto__"?s(l,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):l[m.name]=m.newValue},u=function(l,m){if(m==="__proto__")if(o.call(l,m)){if(c)return c(l,m).value}else return;return l[m]};n.exports=function a(){var l,m,p,b,y,g,_=arguments[0],v=1,O=arguments.length,k=!1;for(typeof _=="boolean"&&(k=_,_=arguments[1]||{},v=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});v<O;++v)if(l=arguments[v],l!=null)for(m in l)p=u(_,m),b=u(l,m),_!==b&&(k&&b&&(h(b)||(y=f(b)))?(y?(y=!1,g=p&&f(p)?p:[]):g=p&&h(p)?p:{},d(_,{name:m,newValue:a(k,g,b)})):typeof b!="undefined"&&d(_,{name:m,newValue:b}));return _}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function S(w,C){for(var D=0;D<C.length;D++){var R=C[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,C,D){return C&&S(w.prototype,C),D&&S(w,D),w}}(),s=function S(w,C,D){w===null&&(w=Function.prototype);var R=Object.getOwnPropertyDescriptor(w,C);if(R===void 0){var B=Object.getPrototypeOf(w);return B===null?void 0:S(B,C,D)}else{if("value"in R)return R.value;var H=R.get;return H===void 0?void 0:H.call(D)}},c=o(3),f=_(c),h=o(2),d=_(h),u=o(0),a=_(u),l=o(16),m=_(l),p=o(6),b=_(p),y=o(7),g=_(y);function _(S){return S&&S.__esModule?S:{default:S}}function v(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function O(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function k(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var T=1,A=function(S){k(w,S);function w(){return v(this,w),O(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return i(w,[{key:"attach",value:function(){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(D,R){var B=a.default.query(D,a.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,R)}},{key:"formatAt",value:function(D,R,B,H){this.format(B,H)}},{key:"insertAt",value:function(D,R,B){if(typeof R=="string"&&R.endsWith(`
18
18
  `)){var H=a.default.create(I.blotName);this.parent.insertBefore(H,D===0?this:this.next),H.insertAt(0,R.slice(0,-1))}else s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,D,R,B)}}]),w}(a.default.Embed);A.scope=a.default.Scope.BLOCK_BLOT;var I=function(S){k(w,S);function w(C){v(this,w);var D=O(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,C));return D.cache={},D}return i(w,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(D,R){return R.length()===0?D:D.insert(R.value(),x(R))},new d.default).insert(`
19
19
  `,x(this))),this.cache.delta}},{key:"deleteAt",value:function(D,R){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,D,R),this.cache={}}},{key:"formatAt",value:function(D,R,B,H){R<=0||(a.default.query(B,a.default.Scope.BLOCK)?D+R===this.length()&&this.format(B,H):s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,D,Math.min(R,this.length()-D-1),B,H),this.cache={})}},{key:"insertAt",value:function(D,R,B){if(B!=null)return s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,D,R,B);if(R.length!==0){var H=R.split(`
20
- `),G=H.shift();G.length>0&&(D<this.length()-1||this.children.tail==null?s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(D,this.length()-1),G):this.children.tail.insertAt(this.children.tail.length(),G),this.cache={});var q=this;H.reduce(function(M,E){return q=q.split(M,!0),q.insertAt(0,E),E.length},D+G.length)}}},{key:"insertBefore",value:function(D,R){var B=this.children.head;s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,D,R),B instanceof m.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(D,R){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,D,R),this.cache={}}},{key:"optimize",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,D),this.cache={}}},{key:"path",value:function(D){return s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,D,!0)}},{key:"removeChild",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,D),this.cache={}}},{key:"split",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(D===0||D>=this.length()-T)){var B=this.clone();return D===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var H=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,D,R);return this.cache={},H}}}]),w}(a.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[b.default,a.default.Embed,g.default];function x(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S==null||(typeof S.formats=="function"&&(w=(0,f.default)(w,S.formats())),S.parent==null||S.parent.blotName=="scroll"||S.parent.statics.scope!==S.statics.scope)?w:x(S.parent,w)}t.bubbleFormats=x,t.BlockEmbed=A,t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},s=function(){function q(M,E){var N=[],P=!0,j=!1,F=void 0;try{for(var L=M[Symbol.iterator](),$;!(P=($=L.next()).done)&&(N.push($.value),!(E&&N.length===E));P=!0);}catch(U){j=!0,F=U}finally{try{!P&&L.return&&L.return()}finally{if(j)throw F}}return N}return function(M,E){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return q(M,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function q(M,E){for(var N=0;N<E.length;N++){var P=E[N];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,P.key,P)}}return function(M,E,N){return E&&q(M.prototype,E),N&&q(M,N),M}}();o(50);var f=o(2),h=x(f),d=o(14),u=x(d),a=o(8),l=x(a),m=o(9),p=x(m),b=o(0),y=x(b),g=o(15),_=x(g),v=o(3),O=x(v),k=o(10),T=x(k),A=o(34),I=x(A);function x(q){return q&&q.__esModule?q:{default:q}}function S(q,M,E){return M in q?Object.defineProperty(q,M,{value:E,enumerable:!0,configurable:!0,writable:!0}):q[M]=E,q}function w(q,M){if(!(q instanceof M))throw new TypeError("Cannot call a class as a function")}var C=(0,T.default)("quill"),D=function(){c(q,null,[{key:"debug",value:function(E){E===!0&&(E="log"),T.default.level(E)}},{key:"find",value:function(E){return E.__quill||y.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&C.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var F=E.attrName||E.blotName;typeof F=="string"?this.register("formats/"+F,E,N):Object.keys(E).forEach(function(L){P.register(L,E[L],N)})}else this.imports[E]!=null&&!j&&C.warn("Overwriting "+E+" with",N),this.imports[E]=N,(E.startsWith("blots/")||E.startsWith("formats/"))&&N.blotName!=="abstract"?y.default.register(N):E.startsWith("modules")&&typeof N.register=="function"&&N.register()}}]);function q(M){var E=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,q),this.options=R(M,N),this.container=this.options.container,this.container==null)return C.error("Invalid Quill container",M);this.options.debug&&q.debug(this.options.debug);var P=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 l.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new _.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(l.default.events.EDITOR_CHANGE,function(F){F===l.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(l.default.events.SCROLL_UPDATE,function(F,L){var $=E.selection.lastRange,U=$&&$.length===0?$.index:void 0;B.call(E,function(){return E.editor.update(null,L,U)},F)});var j=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+P+"<p><br></p></div>");this.setContents(j),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return c(q,[{key:"addContainer",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var P=E;E=document.createElement("div"),E.classList.add(P)}return this.container.insertBefore(E,N),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,N,P){var j=this,F=H(E,N,P),L=s(F,4);return E=L[0],N=L[1],P=L[3],B.call(this,function(){return j.editor.deleteText(E,N)},P,E,-1*N)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!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,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;return B.call(this,function(){var F=P.getSelection(!0),L=new h.default;if(F==null)return L;if(y.default.query(E,y.default.Scope.BLOCK))L=P.editor.formatLine(F.index,F.length,S({},E,N));else{if(F.length===0)return P.selection.format(E,N),L;L=P.editor.formatText(F.index,F.length,S({},E,N))}return P.setSelection(F,l.default.sources.SILENT),L},j)}},{key:"formatLine",value:function(E,N,P,j,F){var L=this,$=void 0,U=H(E,N,P,j,F),z=s(U,4);return E=z[0],N=z[1],$=z[2],F=z[3],B.call(this,function(){return L.editor.formatLine(E,N,$)},F,E,0)}},{key:"formatText",value:function(E,N,P,j,F){var L=this,$=void 0,U=H(E,N,P,j,F),z=s(U,4);return E=z[0],N=z[1],$=z[2],F=z[3],B.call(this,function(){return L.editor.formatText(E,N,$)},F,E,0)}},{key:"getBounds",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=void 0;typeof E=="number"?P=this.selection.getBounds(E,N):P=this.selection.getBounds(E.index,E.length);var j=this.container.getBoundingClientRect();return{bottom:P.bottom-j.top,height:P.height,left:P.left-j.left,right:P.right-j.left,top:P.top-j.top,width:P.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,P=H(E,N),j=s(P,2);return E=j[0],N=j[1],this.editor.getContents(E,N)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,N):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&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,N)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,P=H(E,N),j=s(P,2);return E=j[0],N=j[1],this.editor.getText(E,N)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,N,P){var j=this,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return j.editor.insertEmbed(E,N,P)},F,E)}},{key:"insertText",value:function(E,N,P,j,F){var L=this,$=void 0,U=H(E,0,P,j,F),z=s(U,4);return E=z[0],$=z[2],F=z[3],B.call(this,function(){return L.editor.insertText(E,N,$)},F,E,N.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,N,P){this.clipboard.dangerouslyPasteHTML(E,N,P)}},{key:"removeFormat",value:function(E,N,P){var j=this,F=H(E,N,P),L=s(F,4);return E=L[0],N=L[1],P=L[3],B.call(this,function(){return j.editor.removeFormat(E,N)},P,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var N=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API;return B.call(this,function(){E=new h.default(E);var j=N.getLength(),F=N.editor.deleteText(0,j),L=N.editor.applyDelta(E),$=L.ops[L.ops.length-1];$!=null&&typeof $.insert=="string"&&$.insert[$.insert.length-1]===`
21
- `&&(N.editor.deleteText(N.getLength()-1,1),L.delete(1));var U=F.compose(L);return U},P)}},{key:"setSelection",value:function(E,N,P){if(E==null)this.selection.setRange(null,N||q.sources.API);else{var j=H(E,N,P),F=s(j,4);E=F[0],N=F[1],P=F[3],this.selection.setRange(new g.Range(E,N),P),P!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API,P=new h.default().insert(E);return this.setContents(P,N)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,N=this.scroll.update(E);return this.selection.update(E),N}},{key:"updateContents",value:function(E){var N=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API;return B.call(this,function(){return E=new h.default(E),N.editor.applyDelta(E,P)},P,!0)}}]),q}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=l.default.events,D.sources=l.default.sources,D.version="1.3.7",D.imports={delta:h.default,parchment:y.default,"core/module":p.default,"core/theme":I.default};function R(q,M){if(M=(0,O.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},M),!M.theme||M.theme===D.DEFAULTS.theme)M.theme=I.default;else if(M.theme=D.import("themes/"+M.theme),M.theme==null)throw new Error("Invalid theme "+M.theme+". Did you register it?");var E=(0,O.default)(!0,{},M.theme.DEFAULTS);[E,M].forEach(function(j){j.modules=j.modules||{},Object.keys(j.modules).forEach(function(F){j.modules[F]===!0&&(j.modules[F]={})})});var N=Object.keys(E.modules).concat(Object.keys(M.modules)),P=N.reduce(function(j,F){var L=D.import("modules/"+F);return L==null?C.error("Cannot load "+F+" module. Are you sure you registered it?"):j[F]=L.DEFAULTS||{},j},{});return M.modules!=null&&M.modules.toolbar&&M.modules.toolbar.constructor!==Object&&(M.modules.toolbar={container:M.modules.toolbar}),M=(0,O.default)(!0,{},D.DEFAULTS,{modules:P},E,M),["bounds","container","scrollingContainer"].forEach(function(j){typeof M[j]=="string"&&(M[j]=document.querySelector(M[j]))}),M.modules=Object.keys(M.modules).reduce(function(j,F){return M.modules[F]&&(j[F]=M.modules[F]),j},{}),M}function B(q,M,E,N){if(this.options.strict&&!this.isEnabled()&&M===l.default.sources.USER)return new h.default;var P=E==null?null:this.getSelection(),j=this.editor.delta,F=q();if(P!=null&&(E===!0&&(E=P.index),N==null?P=G(P,F,M):N!==0&&(P=G(P,E,N,M)),this.setSelection(P,l.default.sources.SILENT)),F.length()>0){var L,$=[l.default.events.TEXT_CHANGE,F,j,M];if((L=this.emitter).emit.apply(L,[l.default.events.EDITOR_CHANGE].concat($)),M!==l.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,$)}}return F}function H(q,M,E,N,P){var j={};return typeof q.index=="number"&&typeof q.length=="number"?typeof M!="number"?(P=N,N=E,E=M,M=q.length,q=q.index):(M=q.length,q=q.index):typeof M!="number"&&(P=N,N=E,E=M,M=0),(typeof E=="undefined"?"undefined":i(E))==="object"?(j=E,P=N):typeof E=="string"&&(N!=null?j[E]=N:P=E),P=P||l.default.sources.API,[q,M,j,P]}function G(q,M,E,N){if(q==null)return null;var P=void 0,j=void 0;if(M instanceof h.default){var F=[q.index,q.index+q.length].map(function(z){return M.transformPosition(z,N!==l.default.sources.USER)}),L=s(F,2);P=L[0],j=L[1]}else{var $=[q.index,q.index+q.length].map(function(z){return z<M||z===M&&N===l.default.sources.USER?z:E>=0?z+E:Math.max(M,z+E)}),U=s($,2);P=U[0],j=U[1]}return new g.Range(P,j-P)}t.expandConfig=R,t.overload=H,t.default=D},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),s=function b(y,g,_){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var O=Object.getPrototypeOf(y);return O===null?void 0:b(O,g,_)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(_)}},c=o(7),f=u(c),h=o(0),d=u(h);function u(b){return b&&b.__esModule?b:{default:b}}function a(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function l(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var p=function(b){m(y,b);function y(){return a(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"formatAt",value:function(_,v,O,k){if(y.compare(this.statics.blotName,O)<0&&d.default.query(O,d.default.Scope.BLOT)){var T=this.isolate(_,v);k&&T.wrap(O,k)}else s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,_,v,O,k)}},{key:"optimize",value:function(_){if(s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,_),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var v=this.parent.isolate(this.offset(),this.length());this.moveChildren(v),v.wrap(this)}}}],[{key:"compare",value:function(_,v){var O=y.order.indexOf(_),k=y.order.indexOf(v);return O>=0||k>=0?O-k:_===v?0:_<v?-1:1}}]),y}(d.default.Inline);p.allowedChildren=[p,d.default.Embed,f.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default.Text);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function g(_,v){for(var O=0;O<v.length;O++){var k=v[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}return function(_,v,O){return v&&g(_.prototype,v),O&&g(_,O),_}}(),s=function g(_,v,O){_===null&&(_=Function.prototype);var k=Object.getOwnPropertyDescriptor(_,v);if(k===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:g(T,v,O)}else{if("value"in k)return k.value;var A=k.get;return A===void 0?void 0:A.call(O)}},c=o(54),f=u(c),h=o(10),d=u(h);function u(g){return g&&g.__esModule?g:{default:g}}function a(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function l(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function m(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(g,_):g.__proto__=_)}var p=(0,d.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(g){document.addEventListener(g,function(){for(var _=arguments.length,v=Array(_),O=0;O<_;O++)v[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var T;(T=k.__quill.emitter).handleDOM.apply(T,v)}})})});var y=function(g){m(_,g);function _(){a(this,_);var v=l(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return v.listeners={},v.on("error",p.error),v}return i(_,[{key:"emit",value:function(){p.log.apply(p,arguments),s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var k=arguments.length,T=Array(k>1?k-1:0),A=1;A<k;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(I){var x=I.node,S=I.handler;(O.target===x||x.contains(O.target))&&S.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,k,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:k,handler:T})}}]),_}(f.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},t.default=y},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var s=function c(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,c),this.quill=f,this.options=h};s.DEFAULTS={},t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],s="warn";function c(h){if(i.indexOf(h)<=i.indexOf(s)){for(var d,u=arguments.length,a=Array(u>1?u-1:0),l=1;l<u;l++)a[l-1]=arguments[l];(d=console)[h].apply(d,a)}}function f(h){return i.reduce(function(d,u){return d[u]=c.bind(console,u,h),d},{})}c.level=f.level=function(h){s=h},t.default=f},function(n,t,o){var i=Array.prototype.slice,s=o(52),c=o(53),f=n.exports=function(a,l,m){return m||(m={}),a===l?!0:a instanceof Date&&l instanceof Date?a.getTime()===l.getTime():!a||!l||typeof a!="object"&&typeof l!="object"?m.strict?a===l:a==l:u(a,l,m)};function h(a){return a==null}function d(a){return!(!a||typeof a!="object"||typeof a.length!="number"||typeof a.copy!="function"||typeof a.slice!="function"||a.length>0&&typeof a[0]!="number")}function u(a,l,m){var p,b;if(h(a)||h(l)||a.prototype!==l.prototype)return!1;if(c(a))return c(l)?(a=i.call(a),l=i.call(l),f(a,l,m)):!1;if(d(a)){if(!d(l)||a.length!==l.length)return!1;for(p=0;p<a.length;p++)if(a[p]!==l[p])return!1;return!0}try{var y=s(a),g=s(l)}catch{return!1}if(y.length!=g.length)return!1;for(y.sort(),g.sort(),p=y.length-1;p>=0;p--)if(y[p]!=g[p])return!1;for(p=y.length-1;p>=0;p--)if(b=y[p],!f(a[b],l[b],m))return!1;return typeof a==typeof l}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function c(f,h,d){d===void 0&&(d={}),this.attrName=f,this.keyName=h;var u=i.Scope.TYPE&i.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&i.Scope.LEVEL|u:this.scope=i.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return c.keys=function(f){return[].map.call(f.attributes,function(h){return h.name})},c.prototype.add=function(f,h){return this.canAdd(f,h)?(f.setAttribute(this.keyName,h),!0):!1},c.prototype.canAdd=function(f,h){var d=i.query(f,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},c.prototype.remove=function(f){f.removeAttribute(this.keyName)},c.prototype.value=function(f){var h=f.getAttribute(this.keyName);return this.canAdd(f,h)&&h?h:""},c}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function A(I,x){var S=[],w=!0,C=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(w=(B=R.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(H){C=!0,D=H}finally{try{!w&&R.return&&R.return()}finally{if(C)throw D}}return S}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(I,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(I,w.key,w)}}return function(I,x,S){return x&&A(I.prototype,x),S&&A(I,S),I}}(),c=function A(I,x,S){I===null&&(I=Function.prototype);var w=Object.getOwnPropertyDescriptor(I,x);if(w===void 0){var C=Object.getPrototypeOf(I);return C===null?void 0:A(C,x,S)}else{if("value"in w)return w.value;var D=w.get;return D===void 0?void 0:D.call(S)}},f=o(2),h=g(f),d=o(0),u=g(d),a=o(4),l=g(a),m=o(6),p=g(m),b=o(7),y=g(b);function g(A){return A&&A.__esModule?A:{default:A}}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function v(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function O(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var k=function(A){O(I,A);function I(){return _(this,I),v(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I}(p.default);k.blotName="code",k.tagName="CODE";var T=function(A){O(I,A);function I(){return _(this,I),v(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return s(I,[{key:"delta",value:function(){var S=this,w=this.domNode.textContent;return w.endsWith(`
20
+ `),G=H.shift();G.length>0&&(D<this.length()-1||this.children.tail==null?s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(D,this.length()-1),G):this.children.tail.insertAt(this.children.tail.length(),G),this.cache={});var q=this;H.reduce(function($,E){return q=q.split($,!0),q.insertAt(0,E),E.length},D+G.length)}}},{key:"insertBefore",value:function(D,R){var B=this.children.head;s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,D,R),B instanceof m.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(D,R){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,D,R),this.cache={}}},{key:"optimize",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,D),this.cache={}}},{key:"path",value:function(D){return s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,D,!0)}},{key:"removeChild",value:function(D){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,D),this.cache={}}},{key:"split",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(D===0||D>=this.length()-T)){var B=this.clone();return D===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var H=s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,D,R);return this.cache={},H}}}]),w}(a.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[b.default,a.default.Embed,g.default];function x(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S==null||(typeof S.formats=="function"&&(w=(0,f.default)(w,S.formats())),S.parent==null||S.parent.blotName=="scroll"||S.parent.statics.scope!==S.statics.scope)?w:x(S.parent,w)}t.bubbleFormats=x,t.BlockEmbed=A,t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},s=function(){function q($,E){var N=[],P=!0,j=!1,F=void 0;try{for(var L=$[Symbol.iterator](),M;!(P=(M=L.next()).done)&&(N.push(M.value),!(E&&N.length===E));P=!0);}catch(U){j=!0,F=U}finally{try{!P&&L.return&&L.return()}finally{if(j)throw F}}return N}return function($,E){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function q($,E){for(var N=0;N<E.length;N++){var P=E[N];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty($,P.key,P)}}return function($,E,N){return E&&q($.prototype,E),N&&q($,N),$}}();o(50);var f=o(2),h=x(f),d=o(14),u=x(d),a=o(8),l=x(a),m=o(9),p=x(m),b=o(0),y=x(b),g=o(15),_=x(g),v=o(3),O=x(v),k=o(10),T=x(k),A=o(34),I=x(A);function x(q){return q&&q.__esModule?q:{default:q}}function S(q,$,E){return $ in q?Object.defineProperty(q,$,{value:E,enumerable:!0,configurable:!0,writable:!0}):q[$]=E,q}function w(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}var C=(0,T.default)("quill"),D=function(){c(q,null,[{key:"debug",value:function(E){E===!0&&(E="log"),T.default.level(E)}},{key:"find",value:function(E){return E.__quill||y.default.find(E)}},{key:"import",value:function(E){return this.imports[E]==null&&C.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof E!="string"){var F=E.attrName||E.blotName;typeof F=="string"?this.register("formats/"+F,E,N):Object.keys(E).forEach(function(L){P.register(L,E[L],N)})}else this.imports[E]!=null&&!j&&C.warn("Overwriting "+E+" with",N),this.imports[E]=N,(E.startsWith("blots/")||E.startsWith("formats/"))&&N.blotName!=="abstract"?y.default.register(N):E.startsWith("modules")&&typeof N.register=="function"&&N.register()}}]);function q($){var E=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,q),this.options=R($,N),this.container=this.options.container,this.container==null)return C.error("Invalid Quill container",$);this.options.debug&&q.debug(this.options.debug);var P=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 l.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new _.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(l.default.events.EDITOR_CHANGE,function(F){F===l.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(l.default.events.SCROLL_UPDATE,function(F,L){var M=E.selection.lastRange,U=M&&M.length===0?M.index:void 0;B.call(E,function(){return E.editor.update(null,L,U)},F)});var j=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+P+"<p><br></p></div>");this.setContents(j),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return c(q,[{key:"addContainer",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof E=="string"){var P=E;E=document.createElement("div"),E.classList.add(P)}return this.container.insertBefore(E,N),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,N,P){var j=this,F=H(E,N,P),L=s(F,4);return E=L[0],N=L[1],P=L[3],B.call(this,function(){return j.editor.deleteText(E,N)},P,E,-1*N)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!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,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;return B.call(this,function(){var F=P.getSelection(!0),L=new h.default;if(F==null)return L;if(y.default.query(E,y.default.Scope.BLOCK))L=P.editor.formatLine(F.index,F.length,S({},E,N));else{if(F.length===0)return P.selection.format(E,N),L;L=P.editor.formatText(F.index,F.length,S({},E,N))}return P.setSelection(F,l.default.sources.SILENT),L},j)}},{key:"formatLine",value:function(E,N,P,j,F){var L=this,M=void 0,U=H(E,N,P,j,F),z=s(U,4);return E=z[0],N=z[1],M=z[2],F=z[3],B.call(this,function(){return L.editor.formatLine(E,N,M)},F,E,0)}},{key:"formatText",value:function(E,N,P,j,F){var L=this,M=void 0,U=H(E,N,P,j,F),z=s(U,4);return E=z[0],N=z[1],M=z[2],F=z[3],B.call(this,function(){return L.editor.formatText(E,N,M)},F,E,0)}},{key:"getBounds",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=void 0;typeof E=="number"?P=this.selection.getBounds(E,N):P=this.selection.getBounds(E.index,E.length);var j=this.container.getBoundingClientRect();return{bottom:P.bottom-j.top,height:P.height,left:P.left-j.left,right:P.right-j.left,top:P.top-j.top,width:P.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,P=H(E,N),j=s(P,2);return E=j[0],N=j[1],this.editor.getContents(E,N)}},{key:"getFormat",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof E=="number"?this.editor.getFormat(E,N):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&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof E!="number"?this.scroll.lines(E.index,E.length):this.scroll.lines(E,N)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return E&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-E,P=H(E,N),j=s(P,2);return E=j[0],N=j[1],this.editor.getText(E,N)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,N,P){var j=this,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return j.editor.insertEmbed(E,N,P)},F,E)}},{key:"insertText",value:function(E,N,P,j,F){var L=this,M=void 0,U=H(E,0,P,j,F),z=s(U,4);return E=z[0],M=z[2],F=z[3],B.call(this,function(){return L.editor.insertText(E,N,M)},F,E,N.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,N,P){this.clipboard.dangerouslyPasteHTML(E,N,P)}},{key:"removeFormat",value:function(E,N,P){var j=this,F=H(E,N,P),L=s(F,4);return E=L[0],N=L[1],P=L[3],B.call(this,function(){return j.editor.removeFormat(E,N)},P,E)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var N=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API;return B.call(this,function(){E=new h.default(E);var j=N.getLength(),F=N.editor.deleteText(0,j),L=N.editor.applyDelta(E),M=L.ops[L.ops.length-1];M!=null&&typeof M.insert=="string"&&M.insert[M.insert.length-1]===`
21
+ `&&(N.editor.deleteText(N.getLength()-1,1),L.delete(1));var U=F.compose(L);return U},P)}},{key:"setSelection",value:function(E,N,P){if(E==null)this.selection.setRange(null,N||q.sources.API);else{var j=H(E,N,P),F=s(j,4);E=F[0],N=F[1],P=F[3],this.selection.setRange(new g.Range(E,N),P),P!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API,P=new h.default().insert(E);return this.setContents(P,N)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,N=this.scroll.update(E);return this.selection.update(E),N}},{key:"updateContents",value:function(E){var N=this,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API;return B.call(this,function(){return E=new h.default(E),N.editor.applyDelta(E,P)},P,!0)}}]),q}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=l.default.events,D.sources=l.default.sources,D.version="1.3.7",D.imports={delta:h.default,parchment:y.default,"core/module":p.default,"core/theme":I.default};function R(q,$){if($=(0,O.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},$),!$.theme||$.theme===D.DEFAULTS.theme)$.theme=I.default;else if($.theme=D.import("themes/"+$.theme),$.theme==null)throw new Error("Invalid theme "+$.theme+". Did you register it?");var E=(0,O.default)(!0,{},$.theme.DEFAULTS);[E,$].forEach(function(j){j.modules=j.modules||{},Object.keys(j.modules).forEach(function(F){j.modules[F]===!0&&(j.modules[F]={})})});var N=Object.keys(E.modules).concat(Object.keys($.modules)),P=N.reduce(function(j,F){var L=D.import("modules/"+F);return L==null?C.error("Cannot load "+F+" module. Are you sure you registered it?"):j[F]=L.DEFAULTS||{},j},{});return $.modules!=null&&$.modules.toolbar&&$.modules.toolbar.constructor!==Object&&($.modules.toolbar={container:$.modules.toolbar}),$=(0,O.default)(!0,{},D.DEFAULTS,{modules:P},E,$),["bounds","container","scrollingContainer"].forEach(function(j){typeof $[j]=="string"&&($[j]=document.querySelector($[j]))}),$.modules=Object.keys($.modules).reduce(function(j,F){return $.modules[F]&&(j[F]=$.modules[F]),j},{}),$}function B(q,$,E,N){if(this.options.strict&&!this.isEnabled()&&$===l.default.sources.USER)return new h.default;var P=E==null?null:this.getSelection(),j=this.editor.delta,F=q();if(P!=null&&(E===!0&&(E=P.index),N==null?P=G(P,F,$):N!==0&&(P=G(P,E,N,$)),this.setSelection(P,l.default.sources.SILENT)),F.length()>0){var L,M=[l.default.events.TEXT_CHANGE,F,j,$];if((L=this.emitter).emit.apply(L,[l.default.events.EDITOR_CHANGE].concat(M)),$!==l.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,M)}}return F}function H(q,$,E,N,P){var j={};return typeof q.index=="number"&&typeof q.length=="number"?typeof $!="number"?(P=N,N=E,E=$,$=q.length,q=q.index):($=q.length,q=q.index):typeof $!="number"&&(P=N,N=E,E=$,$=0),(typeof E=="undefined"?"undefined":i(E))==="object"?(j=E,P=N):typeof E=="string"&&(N!=null?j[E]=N:P=E),P=P||l.default.sources.API,[q,$,j,P]}function G(q,$,E,N){if(q==null)return null;var P=void 0,j=void 0;if($ instanceof h.default){var F=[q.index,q.index+q.length].map(function(z){return $.transformPosition(z,N!==l.default.sources.USER)}),L=s(F,2);P=L[0],j=L[1]}else{var M=[q.index,q.index+q.length].map(function(z){return z<$||z===$&&N===l.default.sources.USER?z:E>=0?z+E:Math.max($,z+E)}),U=s(M,2);P=U[0],j=U[1]}return new g.Range(P,j-P)}t.expandConfig=R,t.overload=H,t.default=D},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),s=function b(y,g,_){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var O=Object.getPrototypeOf(y);return O===null?void 0:b(O,g,_)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(_)}},c=o(7),f=u(c),h=o(0),d=u(h);function u(b){return b&&b.__esModule?b:{default:b}}function a(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function l(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var p=function(b){m(y,b);function y(){return a(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"formatAt",value:function(_,v,O,k){if(y.compare(this.statics.blotName,O)<0&&d.default.query(O,d.default.Scope.BLOT)){var T=this.isolate(_,v);k&&T.wrap(O,k)}else s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,_,v,O,k)}},{key:"optimize",value:function(_){if(s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,_),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var v=this.parent.isolate(this.offset(),this.length());this.moveChildren(v),v.wrap(this)}}}],[{key:"compare",value:function(_,v){var O=y.order.indexOf(_),k=y.order.indexOf(v);return O>=0||k>=0?O-k:_===v?0:_<v?-1:1}}]),y}(d.default.Inline);p.allowedChildren=[p,d.default.Embed,f.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default.Text);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function g(_,v){for(var O=0;O<v.length;O++){var k=v[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}return function(_,v,O){return v&&g(_.prototype,v),O&&g(_,O),_}}(),s=function g(_,v,O){_===null&&(_=Function.prototype);var k=Object.getOwnPropertyDescriptor(_,v);if(k===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:g(T,v,O)}else{if("value"in k)return k.value;var A=k.get;return A===void 0?void 0:A.call(O)}},c=o(54),f=u(c),h=o(10),d=u(h);function u(g){return g&&g.__esModule?g:{default:g}}function a(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function l(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function m(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(g,_):g.__proto__=_)}var p=(0,d.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(g){document.addEventListener(g,function(){for(var _=arguments.length,v=Array(_),O=0;O<_;O++)v[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var T;(T=k.__quill.emitter).handleDOM.apply(T,v)}})})});var y=function(g){m(_,g);function _(){a(this,_);var v=l(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return v.listeners={},v.on("error",p.error),v}return i(_,[{key:"emit",value:function(){p.log.apply(p,arguments),s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var k=arguments.length,T=Array(k>1?k-1:0),A=1;A<k;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(I){var x=I.node,S=I.handler;(O.target===x||x.contains(O.target))&&S.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,k,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:k,handler:T})}}]),_}(f.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},t.default=y},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var s=function c(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,c),this.quill=f,this.options=h};s.DEFAULTS={},t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],s="warn";function c(h){if(i.indexOf(h)<=i.indexOf(s)){for(var d,u=arguments.length,a=Array(u>1?u-1:0),l=1;l<u;l++)a[l-1]=arguments[l];(d=console)[h].apply(d,a)}}function f(h){return i.reduce(function(d,u){return d[u]=c.bind(console,u,h),d},{})}c.level=f.level=function(h){s=h},t.default=f},function(n,t,o){var i=Array.prototype.slice,s=o(52),c=o(53),f=n.exports=function(a,l,m){return m||(m={}),a===l?!0:a instanceof Date&&l instanceof Date?a.getTime()===l.getTime():!a||!l||typeof a!="object"&&typeof l!="object"?m.strict?a===l:a==l:u(a,l,m)};function h(a){return a==null}function d(a){return!(!a||typeof a!="object"||typeof a.length!="number"||typeof a.copy!="function"||typeof a.slice!="function"||a.length>0&&typeof a[0]!="number")}function u(a,l,m){var p,b;if(h(a)||h(l)||a.prototype!==l.prototype)return!1;if(c(a))return c(l)?(a=i.call(a),l=i.call(l),f(a,l,m)):!1;if(d(a)){if(!d(l)||a.length!==l.length)return!1;for(p=0;p<a.length;p++)if(a[p]!==l[p])return!1;return!0}try{var y=s(a),g=s(l)}catch{return!1}if(y.length!=g.length)return!1;for(y.sort(),g.sort(),p=y.length-1;p>=0;p--)if(y[p]!=g[p])return!1;for(p=y.length-1;p>=0;p--)if(b=y[p],!f(a[b],l[b],m))return!1;return typeof a==typeof l}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function c(f,h,d){d===void 0&&(d={}),this.attrName=f,this.keyName=h;var u=i.Scope.TYPE&i.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&i.Scope.LEVEL|u:this.scope=i.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return c.keys=function(f){return[].map.call(f.attributes,function(h){return h.name})},c.prototype.add=function(f,h){return this.canAdd(f,h)?(f.setAttribute(this.keyName,h),!0):!1},c.prototype.canAdd=function(f,h){var d=i.query(f,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},c.prototype.remove=function(f){f.removeAttribute(this.keyName)},c.prototype.value=function(f){var h=f.getAttribute(this.keyName);return this.canAdd(f,h)&&h?h:""},c}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function A(I,x){var S=[],w=!0,C=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(w=(B=R.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(H){C=!0,D=H}finally{try{!w&&R.return&&R.return()}finally{if(C)throw D}}return S}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(I,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(I,w.key,w)}}return function(I,x,S){return x&&A(I.prototype,x),S&&A(I,S),I}}(),c=function A(I,x,S){I===null&&(I=Function.prototype);var w=Object.getOwnPropertyDescriptor(I,x);if(w===void 0){var C=Object.getPrototypeOf(I);return C===null?void 0:A(C,x,S)}else{if("value"in w)return w.value;var D=w.get;return D===void 0?void 0:D.call(S)}},f=o(2),h=g(f),d=o(0),u=g(d),a=o(4),l=g(a),m=o(6),p=g(m),b=o(7),y=g(b);function g(A){return A&&A.__esModule?A:{default:A}}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function v(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function O(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var k=function(A){O(I,A);function I(){return _(this,I),v(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I}(p.default);k.blotName="code",k.tagName="CODE";var T=function(A){O(I,A);function I(){return _(this,I),v(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return s(I,[{key:"delta",value:function(){var S=this,w=this.domNode.textContent;return w.endsWith(`
22
22
  `)&&(w=w.slice(0,-1)),w.split(`
23
23
  `).reduce(function(C,D){return C.insert(D).insert(`
24
24
  `,S.formats())},new h.default)}},{key:"format",value:function(S,w){if(!(S===this.statics.blotName&&w)){var C=this.descendant(y.default,this.length()-1),D=i(C,1),R=D[0];R!=null&&R.deleteAt(R.length()-1,1),c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"format",this).call(this,S,w)}}},{key:"formatAt",value:function(S,w,C,D){if(w!==0&&!(u.default.query(C,u.default.Scope.BLOCK)==null||C===this.statics.blotName&&D===this.statics.formats(this.domNode))){var R=this.newlineIndex(S);if(!(R<0||R>=S+w)){var B=this.newlineIndex(S,!0)+1,H=R-B+1,G=this.isolate(B,H),q=G.next;G.format(C,D),q instanceof I&&q.formatAt(0,S-B+w-H,C,D)}}}},{key:"insertAt",value:function(S,w,C){if(C==null){var D=this.descendant(y.default,S),R=i(D,2),B=R[0],H=R[1];B.insertAt(H,w)}}},{key:"length",value:function(){var S=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
@@ -26,21 +26,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26
26
  `);var C=this.domNode.textContent.slice(S).indexOf(`
27
27
  `);return C>-1?S+C:-1}},{key:"optimize",value:function(S){this.domNode.textContent.endsWith(`
28
28
  `)||this.appendChild(u.default.create("text",`
29
- `)),c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,S);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(S),w.moveChildren(this),w.remove())}},{key:"replace",value:function(S){c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,S),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var C=u.default.find(w);C==null?w.parentNode.removeChild(w):C instanceof u.default.Embed?C.remove():C.unwrap()})}}],[{key:"create",value:function(S){var w=c(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,S);return w.setAttribute("spellcheck",!1),w}},{key:"formats",value:function(){return!0}}]),I}(l.default);T.blotName="code-block",T.tagName="PRE",T.TAB=" ",t.Code=k,t.default=T},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},s=function(){function q(M,E){var N=[],P=!0,j=!1,F=void 0;try{for(var L=M[Symbol.iterator](),$;!(P=($=L.next()).done)&&(N.push($.value),!(E&&N.length===E));P=!0);}catch(U){j=!0,F=U}finally{try{!P&&L.return&&L.return()}finally{if(j)throw F}}return N}return function(M,E){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return q(M,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function q(M,E){for(var N=0;N<E.length;N++){var P=E[N];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,P.key,P)}}return function(M,E,N){return E&&q(M.prototype,E),N&&q(M,N),M}}(),f=o(2),h=w(f),d=o(20),u=w(d),a=o(0),l=w(a),m=o(13),p=w(m),b=o(24),y=w(b),g=o(4),_=w(g),v=o(16),O=w(v),k=o(21),T=w(k),A=o(11),I=w(A),x=o(3),S=w(x);function w(q){return q&&q.__esModule?q:{default:q}}function C(q,M,E){return M in q?Object.defineProperty(q,M,{value:E,enumerable:!0,configurable:!0,writable:!0}):q[M]=E,q}function D(q,M){if(!(q instanceof M))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,B=function(){function q(M){D(this,q),this.scroll=M,this.delta=this.getDelta()}return c(q,[{key:"applyDelta",value:function(E){var N=this,P=!1;this.scroll.update();var j=this.scroll.length();return this.scroll.batchStart(),E=G(E),E.reduce(function(F,L){var $=L.retain||L.delete||L.insert.length||1,U=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
29
+ `)),c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,S);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(S),w.moveChildren(this),w.remove())}},{key:"replace",value:function(S){c(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,S),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var C=u.default.find(w);C==null?w.parentNode.removeChild(w):C instanceof u.default.Embed?C.remove():C.unwrap()})}}],[{key:"create",value:function(S){var w=c(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,S);return w.setAttribute("spellcheck",!1),w}},{key:"formats",value:function(){return!0}}]),I}(l.default);T.blotName="code-block",T.tagName="PRE",T.TAB=" ",t.Code=k,t.default=T},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},s=function(){function q($,E){var N=[],P=!0,j=!1,F=void 0;try{for(var L=$[Symbol.iterator](),M;!(P=(M=L.next()).done)&&(N.push(M.value),!(E&&N.length===E));P=!0);}catch(U){j=!0,F=U}finally{try{!P&&L.return&&L.return()}finally{if(j)throw F}}return N}return function($,E){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function q($,E){for(var N=0;N<E.length;N++){var P=E[N];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty($,P.key,P)}}return function($,E,N){return E&&q($.prototype,E),N&&q($,N),$}}(),f=o(2),h=w(f),d=o(20),u=w(d),a=o(0),l=w(a),m=o(13),p=w(m),b=o(24),y=w(b),g=o(4),_=w(g),v=o(16),O=w(v),k=o(21),T=w(k),A=o(11),I=w(A),x=o(3),S=w(x);function w(q){return q&&q.__esModule?q:{default:q}}function C(q,$,E){return $ in q?Object.defineProperty(q,$,{value:E,enumerable:!0,configurable:!0,writable:!0}):q[$]=E,q}function D(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,B=function(){function q($){D(this,q),this.scroll=$,this.delta=this.getDelta()}return c(q,[{key:"applyDelta",value:function(E){var N=this,P=!1;this.scroll.update();var j=this.scroll.length();return this.scroll.batchStart(),E=G(E),E.reduce(function(F,L){var M=L.retain||L.delete||L.insert.length||1,U=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
30
30
  `)&&P&&(P=!1,z=z.slice(0,-1)),F>=j&&!z.endsWith(`
31
- `)&&(P=!0),N.scroll.insertAt(F,z);var V=N.scroll.line(F),Q=s(V,2),ne=Q[0],oe=Q[1],ce=(0,S.default)({},(0,g.bubbleFormats)(ne));if(ne instanceof _.default){var he=ne.descendant(l.default.Leaf,oe),je=s(he,1),xe=je[0];ce=(0,S.default)(ce,(0,g.bubbleFormats)(xe))}U=u.default.attributes.diff(ce,U)||{}}else if(i(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return F;N.scroll.insertAt(F,W,L.insert[W])}j+=$}return Object.keys(U).forEach(function(K){N.scroll.formatAt(F,$,K,U[K])}),F+$},0),E.reduce(function(F,L){return typeof L.delete=="number"?(N.scroll.deleteAt(F,L.delete),F):F+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,N){return this.scroll.deleteAt(E,N),this.update(new h.default().retain(E).delete(N))}},{key:"formatLine",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(j).forEach(function(F){if(!(P.scroll.whitelist!=null&&!P.scroll.whitelist[F])){var L=P.scroll.lines(E,Math.max(N,1)),$=N;L.forEach(function(U){var z=U.length();if(!(U instanceof p.default))U.format(F,j[F]);else{var V=E-U.offset(P.scroll),Q=U.newlineIndex(V+$)-V+1;U.formatAt(V,Q,F,j[F])}$-=z})}}),this.scroll.optimize(),this.update(new h.default().retain(E).retain(N,(0,T.default)(j)))}},{key:"formatText",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(j).forEach(function(F){P.scroll.formatAt(E,N,F,j[F])}),this.update(new h.default().retain(E).retain(N,(0,T.default)(j)))}},{key:"getContents",value:function(E,N){return this.delta.slice(E,E+N)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,N){return E.concat(N.delta())},new h.default)}},{key:"getFormat",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=[],j=[];N===0?this.scroll.path(E).forEach(function(L){var $=s(L,1),U=$[0];U instanceof _.default?P.push(U):U instanceof l.default.Leaf&&j.push(U)}):(P=this.scroll.lines(E,N),j=this.scroll.descendants(l.default.Leaf,E,N));var F=[P,j].map(function(L){if(L.length===0)return{};for(var $=(0,g.bubbleFormats)(L.shift());Object.keys($).length>0;){var U=L.shift();if(U==null)return $;$=H((0,g.bubbleFormats)(U),$)}return $});return S.default.apply(S.default,F)}},{key:"getText",value:function(E,N){return this.getContents(E,N).filter(function(P){return typeof P.insert=="string"}).map(function(P){return P.insert}).join("")}},{key:"insertEmbed",value:function(E,N,P){return this.scroll.insertAt(E,N,P),this.update(new h.default().retain(E).insert(C({},N,P)))}},{key:"insertText",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return N=N.replace(/\r\n/g,`
31
+ `)&&(P=!0),N.scroll.insertAt(F,z);var V=N.scroll.line(F),Q=s(V,2),ne=Q[0],oe=Q[1],ce=(0,S.default)({},(0,g.bubbleFormats)(ne));if(ne instanceof _.default){var he=ne.descendant(l.default.Leaf,oe),je=s(he,1),xe=je[0];ce=(0,S.default)(ce,(0,g.bubbleFormats)(xe))}U=u.default.attributes.diff(ce,U)||{}}else if(i(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return F;N.scroll.insertAt(F,W,L.insert[W])}j+=M}return Object.keys(U).forEach(function(K){N.scroll.formatAt(F,M,K,U[K])}),F+M},0),E.reduce(function(F,L){return typeof L.delete=="number"?(N.scroll.deleteAt(F,L.delete),F):F+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,N){return this.scroll.deleteAt(E,N),this.update(new h.default().retain(E).delete(N))}},{key:"formatLine",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(j).forEach(function(F){if(!(P.scroll.whitelist!=null&&!P.scroll.whitelist[F])){var L=P.scroll.lines(E,Math.max(N,1)),M=N;L.forEach(function(U){var z=U.length();if(!(U instanceof p.default))U.format(F,j[F]);else{var V=E-U.offset(P.scroll),Q=U.newlineIndex(V+M)-V+1;U.formatAt(V,Q,F,j[F])}M-=z})}}),this.scroll.optimize(),this.update(new h.default().retain(E).retain(N,(0,T.default)(j)))}},{key:"formatText",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(j).forEach(function(F){P.scroll.formatAt(E,N,F,j[F])}),this.update(new h.default().retain(E).retain(N,(0,T.default)(j)))}},{key:"getContents",value:function(E,N){return this.delta.slice(E,E+N)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,N){return E.concat(N.delta())},new h.default)}},{key:"getFormat",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=[],j=[];N===0?this.scroll.path(E).forEach(function(L){var M=s(L,1),U=M[0];U instanceof _.default?P.push(U):U instanceof l.default.Leaf&&j.push(U)}):(P=this.scroll.lines(E,N),j=this.scroll.descendants(l.default.Leaf,E,N));var F=[P,j].map(function(L){if(L.length===0)return{};for(var M=(0,g.bubbleFormats)(L.shift());Object.keys(M).length>0;){var U=L.shift();if(U==null)return M;M=H((0,g.bubbleFormats)(U),M)}return M});return S.default.apply(S.default,F)}},{key:"getText",value:function(E,N){return this.getContents(E,N).filter(function(P){return typeof P.insert=="string"}).map(function(P){return P.insert}).join("")}},{key:"insertEmbed",value:function(E,N,P){return this.scroll.insertAt(E,N,P),this.update(new h.default().retain(E).insert(C({},N,P)))}},{key:"insertText",value:function(E,N){var P=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return N=N.replace(/\r\n/g,`
32
32
  `).replace(/\r/g,`
33
- `),this.scroll.insertAt(E,N),Object.keys(j).forEach(function(F){P.scroll.formatAt(E,N.length,F,j[F])}),this.update(new h.default().retain(E).insert(N,(0,T.default)(j)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return E.statics.blotName!==_.default.blotName||E.children.length>1?!1:E.children.head instanceof O.default}},{key:"removeFormat",value:function(E,N){var P=this.getText(E,N),j=this.scroll.line(E+N),F=s(j,2),L=F[0],$=F[1],U=0,z=new h.default;L!=null&&(L instanceof p.default?U=L.newlineIndex($)-$+1:U=L.length()-$,z=L.delta().slice($,$+U-1).insert(`
34
- `));var V=this.getContents(E,N+U),Q=V.diff(new h.default().insert(P).concat(z)),ne=new h.default().retain(E).concat(Q);return this.applyDelta(ne)}},{key:"update",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,j=this.delta;if(N.length===1&&N[0].type==="characterData"&&N[0].target.data.match(R)&&l.default.find(N[0].target)){var F=l.default.find(N[0].target),L=(0,g.bubbleFormats)(F),$=F.offset(this.scroll),U=N[0].oldValue.replace(y.default.CONTENTS,""),z=new h.default().insert(U),V=new h.default().insert(F.value()),Q=new h.default().retain($).concat(z.diff(V,P));E=Q.reduce(function(ne,oe){return oe.insert?ne.insert(oe.insert,L):ne.push(oe)},new h.default),this.delta=j.compose(E)}else this.delta=this.getDelta(),(!E||!(0,I.default)(j.compose(E),this.delta))&&(E=j.diff(this.delta,P));return E}}]),q}();function H(q,M){return Object.keys(M).reduce(function(E,N){return q[N]==null||(M[N]===q[N]?E[N]=M[N]:Array.isArray(M[N])?M[N].indexOf(q[N])<0&&(E[N]=M[N].concat([q[N]])):E[N]=[M[N],q[N]]),E},{})}function G(q){return q.reduce(function(M,E){if(E.insert===1){var N=(0,T.default)(E.attributes);return delete N.image,M.insert({image:E.attributes.image},N)}if(E.attributes!=null&&(E.attributes.list===!0||E.attributes.bullet===!0)&&(E=(0,T.default)(E),E.attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),typeof E.insert=="string"){var P=E.insert.replace(/\r\n/g,`
33
+ `),this.scroll.insertAt(E,N),Object.keys(j).forEach(function(F){P.scroll.formatAt(E,N.length,F,j[F])}),this.update(new h.default().retain(E).insert(N,(0,T.default)(j)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return E.statics.blotName!==_.default.blotName||E.children.length>1?!1:E.children.head instanceof O.default}},{key:"removeFormat",value:function(E,N){var P=this.getText(E,N),j=this.scroll.line(E+N),F=s(j,2),L=F[0],M=F[1],U=0,z=new h.default;L!=null&&(L instanceof p.default?U=L.newlineIndex(M)-M+1:U=L.length()-M,z=L.delta().slice(M,M+U-1).insert(`
34
+ `));var V=this.getContents(E,N+U),Q=V.diff(new h.default().insert(P).concat(z)),ne=new h.default().retain(E).concat(Q);return this.applyDelta(ne)}},{key:"update",value:function(E){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,j=this.delta;if(N.length===1&&N[0].type==="characterData"&&N[0].target.data.match(R)&&l.default.find(N[0].target)){var F=l.default.find(N[0].target),L=(0,g.bubbleFormats)(F),M=F.offset(this.scroll),U=N[0].oldValue.replace(y.default.CONTENTS,""),z=new h.default().insert(U),V=new h.default().insert(F.value()),Q=new h.default().retain(M).concat(z.diff(V,P));E=Q.reduce(function(ne,oe){return oe.insert?ne.insert(oe.insert,L):ne.push(oe)},new h.default),this.delta=j.compose(E)}else this.delta=this.getDelta(),(!E||!(0,I.default)(j.compose(E),this.delta))&&(E=j.diff(this.delta,P));return E}}]),q}();function H(q,$){return Object.keys($).reduce(function(E,N){return q[N]==null||($[N]===q[N]?E[N]=$[N]:Array.isArray($[N])?$[N].indexOf(q[N])<0&&(E[N]=$[N].concat([q[N]])):E[N]=[$[N],q[N]]),E},{})}function G(q){return q.reduce(function($,E){if(E.insert===1){var N=(0,T.default)(E.attributes);return delete N.image,$.insert({image:E.attributes.image},N)}if(E.attributes!=null&&(E.attributes.list===!0||E.attributes.bullet===!0)&&(E=(0,T.default)(E),E.attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),typeof E.insert=="string"){var P=E.insert.replace(/\r\n/g,`
35
35
  `).replace(/\r/g,`
36
- `);return M.insert(P,E.attributes)}return M.push(E)},new h.default)}t.default=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function A(I,x){var S=[],w=!0,C=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(w=(B=R.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(H){C=!0,D=H}finally{try{!w&&R.return&&R.return()}finally{if(C)throw D}}return S}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(I,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(I,w.key,w)}}return function(I,x,S){return x&&A(I.prototype,x),S&&A(I,S),I}}(),c=o(0),f=y(c),h=o(21),d=y(h),u=o(11),a=y(u),l=o(8),m=y(l),p=o(10),b=y(p);function y(A){return A&&A.__esModule?A:{default:A}}function g(A){if(Array.isArray(A)){for(var I=0,x=Array(A.length);I<A.length;I++)x[I]=A[I];return x}else return Array.from(A)}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}var v=(0,b.default)("quill:selection"),O=function A(I){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,A),this.index=I,this.length=x},k=function(){function A(I,x){var S=this;_(this,A),this.emitter=x,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(w,C){w===m.default.events.TEXT_CHANGE&&C.length()>0&&S.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!S.hasFocus()){var w=S.getNativeRange();w!=null&&w.start.node!==S.cursor.textNode&&S.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(w,C){if(C.range){var D=C.range,R=D.startNode,B=D.startOffset,H=D.endNode,G=D.endOffset;S.setNativeRange(R,B,H,G)}}),this.update(m.default.sources.SILENT)}return s(A,[{key:"handleComposition",value:function(){var x=this;this.root.addEventListener("compositionstart",function(){x.composing=!0}),this.root.addEventListener("compositionend",function(){if(x.composing=!1,x.cursor.parent){var S=x.cursor.restore();if(!S)return;setTimeout(function(){x.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var x=this;this.emitter.listenDOM("mousedown",document.body,function(){x.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){x.mouseDown=!1,x.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(x,S){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[x])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||f.default.query(x,f.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var C=f.default.find(w.start.node,!1);if(C==null)return;if(C instanceof f.default.Leaf){var D=C.split(w.start.offset);C.parent.insertBefore(this.cursor,D)}else C.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(x,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();x=Math.min(x,w-1),S=Math.min(x+S,w-1)-x;var C=void 0,D=this.scroll.leaf(x),R=i(D,2),B=R[0],H=R[1];if(B==null)return null;var G=B.position(H,!0),q=i(G,2);C=q[0],H=q[1];var M=document.createRange();if(S>0){M.setStart(C,H);var E=this.scroll.leaf(x+S),N=i(E,2);if(B=N[0],H=N[1],B==null)return null;var P=B.position(H,!0),j=i(P,2);return C=j[0],H=j[1],M.setEnd(C,H),M.getBoundingClientRect()}else{var F="left",L=void 0;return C instanceof Text?(H<C.data.length?(M.setStart(C,H),M.setEnd(C,H+1)):(M.setStart(C,H-1),M.setEnd(C,H),F="right"),L=M.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),H>0&&(F="right")),{bottom:L.top+L.height,height:L.height,left:L[F],right:L[F],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var x=document.getSelection();if(x==null||x.rangeCount<=0)return null;var S=x.getRangeAt(0);if(S==null)return null;var w=this.normalizeNative(S);return v.info("getNativeRange",w),w}},{key:"getRange",value:function(){var x=this.getNativeRange();if(x==null)return[null,null];var S=this.normalizedToRange(x);return[S,x]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(x){var S=this,w=[[x.start.node,x.start.offset]];x.native.collapsed||w.push([x.end.node,x.end.offset]);var C=w.map(function(B){var H=i(B,2),G=H[0],q=H[1],M=f.default.find(G,!0),E=M.offset(S.scroll);return q===0?E:M instanceof f.default.Container?E+M.length():E+M.index(G,q)}),D=Math.min(Math.max.apply(Math,g(C)),this.scroll.length()-1),R=Math.min.apply(Math,[D].concat(g(C)));return new O(R,D-R)}},{key:"normalizeNative",value:function(x){if(!T(this.root,x.startContainer)||!x.collapsed&&!T(this.root,x.endContainer))return null;var S={start:{node:x.startContainer,offset:x.startOffset},end:{node:x.endContainer,offset:x.endOffset},native:x};return[S.start,S.end].forEach(function(w){for(var C=w.node,D=w.offset;!(C instanceof Text)&&C.childNodes.length>0;)if(C.childNodes.length>D)C=C.childNodes[D],D=0;else if(C.childNodes.length===D)C=C.lastChild,D=C instanceof Text?C.data.length:C.childNodes.length+1;else break;w.node=C,w.offset=D}),S}},{key:"rangeToNative",value:function(x){var S=this,w=x.collapsed?[x.index]:[x.index,x.index+x.length],C=[],D=this.scroll.length();return w.forEach(function(R,B){R=Math.min(D-1,R);var H=void 0,G=S.scroll.leaf(R),q=i(G,2),M=q[0],E=q[1],N=M.position(E,B!==0),P=i(N,2);H=P[0],E=P[1],C.push(H,E)}),C.length<2&&(C=C.concat(C)),C}},{key:"scrollIntoView",value:function(x){var S=this.lastRange;if(S!=null){var w=this.getBounds(S.index,S.length);if(w!=null){var C=this.scroll.length()-1,D=this.scroll.line(Math.min(S.index,C)),R=i(D,1),B=R[0],H=B;if(S.length>0){var G=this.scroll.line(Math.min(S.index+S.length,C)),q=i(G,1);H=q[0]}if(!(B==null||H==null)){var M=x.getBoundingClientRect();w.top<M.top?x.scrollTop-=M.top-w.top:w.bottom>M.bottom&&(x.scrollTop+=w.bottom-M.bottom)}}}}},{key:"setNativeRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(v.info("setNativeRange",x,S,w,C),!(x!=null&&(this.root.parentNode==null||x.parentNode==null||w.parentNode==null))){var R=document.getSelection();if(R!=null)if(x!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||D||x!==B.startContainer||S!==B.startOffset||w!==B.endContainer||C!==B.endOffset){x.tagName=="BR"&&(S=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),w.tagName=="BR"&&(C=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var H=document.createRange();H.setStart(x,S),H.setEnd(w,C),R.removeAllRanges(),R.addRange(H)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof S=="string"&&(w=S,S=!1),v.info("setRange",x),x!=null){var C=this.rangeToNative(x);this.setNativeRange.apply(this,g(C).concat([S]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,S=this.lastRange,w=this.getRange(),C=i(w,2),D=C[0],R=C[1];if(this.lastRange=D,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,a.default)(S,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[m.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(S),x];if((B=this.emitter).emit.apply(B,[m.default.events.EDITOR_CHANGE].concat(H)),x!==m.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,H)}}}}]),A}();function T(A,I){try{I.parentNode}catch{return!1}return I instanceof Text&&(I=I.parentNode),A.contains(I)}t.Range=O,t.default=k},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(0),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(){return d(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(y,g){y.children.length===0?s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,y,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(f.default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var m in l)l.hasOwnProperty(m)&&(a[m]=l[m])};return function(a,l){u(a,l);function m(){this.constructor=a}a.prototype=l===null?Object.create(l):(m.prototype=l.prototype,new m)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(44),c=o(30),f=o(1),h=function(u){i(a,u);function a(l){var m=u.call(this,l)||this;return m.build(),m}return a.prototype.appendChild=function(l){this.insertBefore(l)},a.prototype.attach=function(){u.prototype.attach.call(this),this.children.forEach(function(l){l.attach()})},a.prototype.build=function(){var l=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var p=d(m);l.insertBefore(p,l.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},a.prototype.deleteAt=function(l,m){if(l===0&&m===this.length())return this.remove();this.children.forEachAt(l,m,function(p,b,y){p.deleteAt(b,y)})},a.prototype.descendant=function(l,m){var p=this.children.find(m),b=p[0],y=p[1];return l.blotName==null&&l(b)||l.blotName!=null&&b instanceof l?[b,y]:b instanceof a?b.descendant(l,y):[null,-1]},a.prototype.descendants=function(l,m,p){m===void 0&&(m=0),p===void 0&&(p=Number.MAX_VALUE);var b=[],y=p;return this.children.forEachAt(m,p,function(g,_,v){(l.blotName==null&&l(g)||l.blotName!=null&&g instanceof l)&&b.push(g),g instanceof a&&(b=b.concat(g.descendants(l,_,y))),y-=v}),b},a.prototype.detach=function(){this.children.forEach(function(l){l.detach()}),u.prototype.detach.call(this)},a.prototype.formatAt=function(l,m,p,b){this.children.forEachAt(l,m,function(y,g,_){y.formatAt(g,_,p,b)})},a.prototype.insertAt=function(l,m,p){var b=this.children.find(l),y=b[0],g=b[1];if(y)y.insertAt(g,m,p);else{var _=p==null?f.create("text",m):f.create(m,p);this.appendChild(_)}},a.prototype.insertBefore=function(l,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return l instanceof p}))throw new f.ParchmentError("Cannot insert "+l.statics.blotName+" into "+this.statics.blotName);l.insertInto(this,m)},a.prototype.length=function(){return this.children.reduce(function(l,m){return l+m.length()},0)},a.prototype.moveChildren=function(l,m){this.children.forEach(function(p){l.insertBefore(p,m)})},a.prototype.optimize=function(l){if(u.prototype.optimize.call(this,l),this.children.length===0)if(this.statics.defaultChild!=null){var m=f.create(this.statics.defaultChild);this.appendChild(m),m.optimize(l)}else this.remove()},a.prototype.path=function(l,m){m===void 0&&(m=!1);var p=this.children.find(l,m),b=p[0],y=p[1],g=[[this,l]];return b instanceof a?g.concat(b.path(y,m)):(b!=null&&g.push([b,y]),g)},a.prototype.removeChild=function(l){this.children.remove(l)},a.prototype.replace=function(l){l instanceof a&&l.moveChildren(this),u.prototype.replace.call(this,l)},a.prototype.split=function(l,m){if(m===void 0&&(m=!1),!m){if(l===0)return this;if(l===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(l,this.length(),function(b,y,g){b=b.split(y,m),p.appendChild(b)}),p},a.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},a.prototype.update=function(l,m){var p=this,b=[],y=[];l.forEach(function(g){g.target===p.domNode&&g.type==="childList"&&(b.push.apply(b,g.addedNodes),y.push.apply(y,g.removedNodes))}),y.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=f.find(g);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===p.domNode)&&_.detach()}}),b.filter(function(g){return g.parentNode==p.domNode}).sort(function(g,_){return g===_?0:g.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var _=null;g.nextSibling!=null&&(_=f.find(g.nextSibling));var v=d(g);(v.next!=_||v.next==null)&&(v.parent!=null&&v.parent.removeChild(p),p.insertBefore(v,_||void 0))})},a}(c.default);function d(u){var a=f.find(u);if(a==null)try{a=f.create(u)}catch{a=f.create(f.Scope.INLINE),[].slice.call(u.childNodes).forEach(function(m){a.domNode.appendChild(m)}),u.parentNode&&u.parentNode.replaceChild(a.domNode,u),a.attach()}return a}t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var m in l)l.hasOwnProperty(m)&&(a[m]=l[m])};return function(a,l){u(a,l);function m(){this.constructor=a}a.prototype=l===null?Object.create(l):(m.prototype=l.prototype,new m)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12),c=o(31),f=o(17),h=o(1),d=function(u){i(a,u);function a(l){var m=u.call(this,l)||this;return m.attributes=new c.default(m.domNode),m}return a.formats=function(l){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return l.tagName.toLowerCase()},a.prototype.format=function(l,m){var p=h.query(l);p instanceof s.default?this.attributes.attribute(p,m):m&&p!=null&&(l!==this.statics.blotName||this.formats()[l]!==m)&&this.replaceWith(l,m)},a.prototype.formats=function(){var l=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(l[this.statics.blotName]=m),l},a.prototype.replaceWith=function(l,m){var p=u.prototype.replaceWith.call(this,l,m);return this.attributes.copy(p),p},a.prototype.update=function(l,m){var p=this;u.prototype.update.call(this,l,m),l.some(function(b){return b.target===p.domNode&&b.type==="attributes"})&&this.attributes.build()},a.prototype.wrap=function(l,m){var p=u.prototype.wrap.call(this,l,m);return p instanceof a&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},a}(f.default);t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(30),c=o(1),f=function(h){i(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.value=function(u){return!0},d.prototype.index=function(u,a){return this.domNode===u||this.domNode.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(a,1):-1},d.prototype.position=function(u,a){var l=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return u>0&&(l+=1),[this.parent.domNode,l]},d.prototype.value=function(){var u;return u={},u[this.statics.blotName]=this.statics.value(this.domNode)||!0,u},d.scope=c.Scope.INLINE_BLOT,d}(s.default);t.default=f},function(n,t,o){var i=o(11),s=o(3),c={attributes:{compose:function(h,d,u){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var a=s(!0,{},d);u||(a=Object.keys(a).reduce(function(m,p){return a[p]!=null&&(m[p]=a[p]),m},{}));for(var l in h)h[l]!==void 0&&d[l]===void 0&&(a[l]=h[l]);return Object.keys(a).length>0?a:void 0},diff:function(h,d){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var u=Object.keys(h).concat(Object.keys(d)).reduce(function(a,l){return i(h[l],d[l])||(a[l]=d[l]===void 0?null:d[l]),a},{});return Object.keys(u).length>0?u:void 0},transform:function(h,d,u){if(typeof h!="object")return d;if(typeof d=="object"){if(!u)return d;var a=Object.keys(d).reduce(function(l,m){return h[m]===void 0&&(l[m]=d[m]),l},{});return Object.keys(a).length>0?a:void 0}}},iterator:function(h){return new f(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function f(h){this.ops=h,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(h){h||(h=1/0);var d=this.ops[this.index];if(d){var u=this.offset,a=c.length(d);if(h>=a-u?(h=a-u,this.index+=1,this.offset=0):this.offset+=h,typeof d.delete=="number")return{delete:h};var l={};return d.attributes&&(l.attributes=d.attributes),typeof d.retain=="number"?l.retain=h:typeof d.insert=="string"?l.insert=d.insert.substr(u,h):l.insert=d.insert,l}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,d=this.index,u=this.next(),a=this.ops.slice(this.index);return this.offset=h,this.index=d,[u].concat(a)}else return[]},n.exports=c},function(n,t){var o=function(){function i(p,b){return b!=null&&p instanceof b}var s;try{s=Map}catch{s=function(){}}var c;try{c=Set}catch{c=function(){}}var f;try{f=Promise}catch{f=function(){}}function h(p,b,y,g,_){typeof b=="object"&&(y=b.depth,g=b.prototype,_=b.includeNonEnumerable,b=b.circular);var v=[],O=[],k=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof y=="undefined"&&(y=1/0);function T(A,I){if(A===null)return null;if(I===0)return A;var x,S;if(typeof A!="object")return A;if(i(A,s))x=new s;else if(i(A,c))x=new c;else if(i(A,f))x=new f(function(M,E){A.then(function(N){M(T(N,I-1))},function(N){E(T(N,I-1))})});else if(h.__isArray(A))x=[];else if(h.__isRegExp(A))x=new RegExp(A.source,m(A)),A.lastIndex&&(x.lastIndex=A.lastIndex);else if(h.__isDate(A))x=new Date(A.getTime());else{if(k&&Buffer.isBuffer(A))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(A.length):x=new Buffer(A.length),A.copy(x),x;i(A,Error)?x=Object.create(A):typeof g=="undefined"?(S=Object.getPrototypeOf(A),x=Object.create(S)):(x=Object.create(g),S=g)}if(b){var w=v.indexOf(A);if(w!=-1)return O[w];v.push(A),O.push(x)}i(A,s)&&A.forEach(function(M,E){var N=T(E,I-1),P=T(M,I-1);x.set(N,P)}),i(A,c)&&A.forEach(function(M){var E=T(M,I-1);x.add(E)});for(var C in A){var D;S&&(D=Object.getOwnPropertyDescriptor(S,C)),!(D&&D.set==null)&&(x[C]=T(A[C],I-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(A),C=0;C<R.length;C++){var B=R[C],H=Object.getOwnPropertyDescriptor(A,B);H&&!H.enumerable&&!_||(x[B]=T(A[B],I-1),H.enumerable||Object.defineProperty(x,B,{enumerable:!1}))}if(_)for(var G=Object.getOwnPropertyNames(A),C=0;C<G.length;C++){var q=G[C],H=Object.getOwnPropertyDescriptor(A,q);H&&H.enumerable||(x[q]=T(A[q],I-1),Object.defineProperty(x,q,{enumerable:!1}))}return x}return T(p,y)}h.clonePrototype=function(b){if(b===null)return null;var y=function(){};return y.prototype=b,new y};function d(p){return Object.prototype.toString.call(p)}h.__objToStr=d;function u(p){return typeof p=="object"&&d(p)==="[object Date]"}h.__isDate=u;function a(p){return typeof p=="object"&&d(p)==="[object Array]"}h.__isArray=a;function l(p){return typeof p=="object"&&d(p)==="[object RegExp]"}h.__isRegExp=l;function m(p){var b="";return p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),b}return h.__getRegExpFlags=m,h}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var C=[],D=!0,R=!1,B=void 0;try{for(var H=S[Symbol.iterator](),G;!(D=(G=H.next()).done)&&(C.push(G.value),!(w&&C.length===w));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&H.return&&H.return()}finally{if(R)throw B}}return C}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function x(S,w){for(var C=0;C<w.length;C++){var D=w[C];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,C){return w&&x(S.prototype,w),C&&x(S,C),S}}(),c=function x(S,w,C){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var R=Object.getPrototypeOf(S);return R===null?void 0:x(R,w,C)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(C)}},f=o(0),h=v(f),d=o(8),u=v(d),a=o(4),l=v(a),m=o(16),p=v(m),b=o(13),y=v(b),g=o(25),_=v(g);function v(x){return x&&x.__esModule?x:{default:x}}function O(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function k(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function T(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}function A(x){return x instanceof l.default||x instanceof a.BlockEmbed}var I=function(x){T(S,x);function S(w,C){O(this,S);var D=k(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w));return D.emitter=C.emitter,Array.isArray(C.whitelist)&&(D.whitelist=C.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),D.domNode.addEventListener("DOMNodeInserted",function(){}),D.optimize(),D.enable(),D}return s(S,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(C,D){var R=this.line(C),B=i(R,2),H=B[0],G=B[1],q=this.line(C+D),M=i(q,1),E=M[0];if(c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"deleteAt",this).call(this,C,D),E!=null&&H!==E&&G>0){if(H instanceof a.BlockEmbed||E instanceof a.BlockEmbed){this.optimize();return}if(H instanceof y.default){var N=H.newlineIndex(H.length(),!0);if(N>-1&&(H=H.split(N+1),H===E)){this.optimize();return}}else if(E instanceof y.default){var P=E.newlineIndex(0);P>-1&&E.split(P+1)}var j=E.children.head instanceof p.default?null:E.children.head;H.moveChildren(E,j),H.remove()}this.optimize()}},{key:"enable",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",C)}},{key:"formatAt",value:function(C,D,R,B){this.whitelist!=null&&!this.whitelist[R]||(c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,C,D,R,B),this.optimize())}},{key:"insertAt",value:function(C,D,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[D])){if(C>=this.length())if(R==null||h.default.query(D,h.default.Scope.BLOCK)==null){var B=h.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&D.endsWith(`
37
- `)&&(D=D.slice(0,-1)),B.insertAt(0,D,R)}else{var H=h.default.create(D,R);this.appendChild(H)}else c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertAt",this).call(this,C,D,R);this.optimize()}}},{key:"insertBefore",value:function(C,D){if(C.statics.scope===h.default.Scope.INLINE_BLOT){var R=h.default.create(this.statics.defaultChild);R.appendChild(C),C=R}c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertBefore",this).call(this,C,D)}},{key:"leaf",value:function(C){return this.path(C).pop()||[null,-1]}},{key:"line",value:function(C){return C===this.length()?this.line(C-1):this.descendant(A,C)}},{key:"lines",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(H,G,q){var M=[],E=q;return H.children.forEachAt(G,q,function(N,P,j){A(N)?M.push(N):N instanceof h.default.Container&&(M=M.concat(B(N,P,E))),E-=j}),M};return R(this,C,D)}},{key:"optimize",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,C,D),C.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,C,D))}},{key:"path",value:function(C){return c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"path",this).call(this,C).slice(1)}},{key:"update",value:function(C){if(this.batch!==!0){var D=u.default.sources.USER;typeof C=="string"&&(D=C),Array.isArray(C)||(C=this.observer.takeRecords()),C.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,D,C),c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"update",this).call(this,C.concat([])),C.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,D,C)}}}]),S}(h.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[l.default,a.BlockEmbed,_.default],t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},s=function(){function L($,U){var z=[],V=!0,Q=!1,ne=void 0;try{for(var oe=$[Symbol.iterator](),ce;!(V=(ce=oe.next()).done)&&(z.push(ce.value),!(U&&z.length===U));V=!0);}catch(he){Q=!0,ne=he}finally{try{!V&&oe.return&&oe.return()}finally{if(Q)throw ne}}return z}return function($,U){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return L($,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function L($,U){for(var z=0;z<U.length;z++){var V=U[z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty($,V.key,V)}}return function($,U,z){return U&&L($.prototype,U),z&&L($,z),$}}(),f=o(21),h=x(f),d=o(11),u=x(d),a=o(3),l=x(a),m=o(2),p=x(m),b=o(20),y=x(b),g=o(0),_=x(g),v=o(5),O=x(v),k=o(10),T=x(k),A=o(9),I=x(A);function x(L){return L&&L.__esModule?L:{default:L}}function S(L,$,U){return $ in L?Object.defineProperty(L,$,{value:U,enumerable:!0,configurable:!0,writable:!0}):L[$]=U,L}function w(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}function C(L,$){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:L}function D(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);L.prototype=Object.create($&&$.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(L,$):L.__proto__=$)}var R=(0,T.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=function(L){D($,L),c($,null,[{key:"match",value:function(z,V){return V=F(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Q){return!!V[Q]!==z[Q]&&V[Q]!==null})?!1:V.key===(z.which||z.keyCode)}}]);function $(U,z){w(this,$);var V=C(this,($.__proto__||Object.getPrototypeOf($)).call(this,U,z));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Q){Q==="list autofill"&&U.scroll.whitelist!=null&&!U.scroll.whitelist.list||V.options.bindings[Q]&&V.addBinding(V.options.bindings[Q])}),V.addBinding({key:$.keys.ENTER,shiftKey:null},N),V.addBinding({key:$.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:$.keys.BACKSPACE},{collapsed:!0},q),V.addBinding({key:$.keys.DELETE},{collapsed:!0},M)):(V.addBinding({key:$.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),V.addBinding({key:$.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),V.addBinding({key:$.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:$.keys.DELETE},{collapsed:!1},E),V.addBinding({key:$.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),V.listen(),V}return c($,[{key:"addBinding",value:function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=F(z);if(ne==null||ne.key==null)return R.warn("Attempted to add invalid keyboard binding",ne);typeof V=="function"&&(V={handler:V}),typeof Q=="function"&&(Q={handler:Q}),ne=(0,l.default)(ne,V,Q),this.bindings[ne.key]=this.bindings[ne.key]||[],this.bindings[ne.key].push(ne)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var Q=V.which||V.keyCode,ne=(z.bindings[Q]||[]).filter(function(Ee){return $.match(V,Ee)});if(ne.length!==0){var oe=z.quill.getSelection();if(!(oe==null||!z.quill.hasFocus())){var ce=z.quill.getLine(oe.index),he=s(ce,2),je=he[0],xe=he[1],W=z.quill.getLeaf(oe.index),K=s(W,2),Z=K[0],J=K[1],Y=oe.length===0?[Z,J]:z.quill.getLeaf(oe.index+oe.length),le=s(Y,2),se=le[0],ue=le[1],ze=Z instanceof _.default.Text?Z.value().slice(0,J):"",et=se instanceof _.default.Text?se.value().slice(ue):"",me={collapsed:oe.length===0,empty:oe.length===0&&je.length()<=1,format:z.quill.getFormat(oe),offset:xe,prefix:ze,suffix:et},Wu=ne.some(function(Ee){if(Ee.collapsed!=null&&Ee.collapsed!==me.collapsed||Ee.empty!=null&&Ee.empty!==me.empty||Ee.offset!=null&&Ee.offset!==me.offset)return!1;if(Array.isArray(Ee.format)){if(Ee.format.every(function(ut){return me.format[ut]==null}))return!1}else if(i(Ee.format)==="object"&&!Object.keys(Ee.format).every(function(ut){return Ee.format[ut]===!0?me.format[ut]!=null:Ee.format[ut]===!1?me.format[ut]==null:(0,u.default)(Ee.format[ut],me.format[ut])}))return!1;return Ee.prefix!=null&&!Ee.prefix.test(me.prefix)||Ee.suffix!=null&&!Ee.suffix.test(me.suffix)?!1:Ee.handler.call(z,oe,me)!==!0});Wu&&V.preventDefault()}}}})}}]),$}(I.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function($,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function($,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function($,U){U.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":P(!0),"outdent code-block":P(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function($){this.quill.deleteText($.index-1,1,O.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function($){this.quill.history.cutoff();var U=new p.default().retain($.index).delete($.length).insert(" ");this.quill.updateContents(U,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection($.index+1,O.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function($,U){this.quill.format("list",!1,O.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function($){var U=this.quill.getLine($.index),z=s(U,2),V=z[0],Q=z[1],ne=(0,l.default)({},V.formats(),{list:"checked"}),oe=new p.default().retain($.index).insert(`
38
- `,ne).retain(V.length()-Q-1).retain(1,{list:"unchecked"});this.quill.updateContents(oe,O.default.sources.USER),this.quill.setSelection($.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function($,U){var z=this.quill.getLine($.index),V=s(z,2),Q=V[0],ne=V[1],oe=new p.default().retain($.index).insert(`
39
- `,U.format).retain(Q.length()-ne-1).retain(1,{header:null});this.quill.updateContents(oe,O.default.sources.USER),this.quill.setSelection($.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function($,U){var z=U.prefix.length,V=this.quill.getLine($.index),Q=s(V,2),ne=Q[0],oe=Q[1];if(oe>z)return!0;var ce=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":ce="unchecked";break;case"[x]":ce="checked";break;case"-":case"*":ce="bullet";break;default:ce="ordered"}this.quill.insertText($.index," ",O.default.sources.USER),this.quill.history.cutoff();var he=new p.default().retain($.index-oe).delete(z+1).retain(ne.length()-2-oe).retain(1,{list:ce});this.quill.updateContents(he,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection($.index-z,O.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function($){var U=this.quill.getLine($.index),z=s(U,2),V=z[0],Q=z[1],ne=new p.default().retain($.index+V.length()-Q-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,O.default.sources.USER)}},"embed left":G(H.keys.LEFT,!1),"embed left shift":G(H.keys.LEFT,!0),"embed right":G(H.keys.RIGHT,!1),"embed right shift":G(H.keys.RIGHT,!0)}};function G(L,$){var U,z=L===H.keys.LEFT?"prefix":"suffix";return U={key:L,shiftKey:$,altKey:null},S(U,z,/^$/),S(U,"handler",function(Q){var ne=Q.index;L===H.keys.RIGHT&&(ne+=Q.length+1);var oe=this.quill.getLeaf(ne),ce=s(oe,1),he=ce[0];return he instanceof _.default.Embed?(L===H.keys.LEFT?$?this.quill.setSelection(Q.index-1,Q.length+1,O.default.sources.USER):this.quill.setSelection(Q.index-1,O.default.sources.USER):$?this.quill.setSelection(Q.index,Q.length+1,O.default.sources.USER):this.quill.setSelection(Q.index+Q.length+1,O.default.sources.USER),!1):!0}),U}function q(L,$){if(!(L.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(L.index),z=s(U,1),V=z[0],Q={};if($.offset===0){var ne=this.quill.getLine(L.index-1),oe=s(ne,1),ce=oe[0];if(ce!=null&&ce.length()>1){var he=V.formats(),je=this.quill.getFormat(L.index-1,1);Q=y.default.attributes.diff(he,je)||{}}}var xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test($.prefix)?2:1;this.quill.deleteText(L.index-xe,xe,O.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(L.index-xe,xe,Q,O.default.sources.USER),this.quill.focus()}}function M(L,$){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test($.suffix)?2:1;if(!(L.index>=this.quill.getLength()-U)){var z={},V=0,Q=this.quill.getLine(L.index),ne=s(Q,1),oe=ne[0];if($.offset>=oe.length()-1){var ce=this.quill.getLine(L.index+1),he=s(ce,1),je=he[0];if(je){var xe=oe.formats(),W=this.quill.getFormat(L.index,1);z=y.default.attributes.diff(xe,W)||{},V=je.length()}}this.quill.deleteText(L.index,U,O.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+V-1,U,z,O.default.sources.USER)}}function E(L){var $=this.quill.getLines(L),U={};if($.length>1){var z=$[0].formats(),V=$[$.length-1].formats();U=y.default.attributes.diff(V,z)||{}}this.quill.deleteText(L,O.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(L.index,1,U,O.default.sources.USER),this.quill.setSelection(L.index,O.default.sources.SILENT),this.quill.focus()}function N(L,$){var U=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys($.format).reduce(function(V,Q){return _.default.query(Q,_.default.Scope.BLOCK)&&!Array.isArray($.format[Q])&&(V[Q]=$.format[Q]),V},{});this.quill.insertText(L.index,`
40
- `,z,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys($.format).forEach(function(V){z[V]==null&&(Array.isArray($.format[V])||V!=="link"&&U.quill.format(V,$.format[V],O.default.sources.USER))})}function P(L){return{key:H.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(U){var z=_.default.query("code-block"),V=U.index,Q=U.length,ne=this.quill.scroll.descendant(z,V),oe=s(ne,2),ce=oe[0],he=oe[1];if(ce!=null){var je=this.quill.getIndex(ce),xe=ce.newlineIndex(he,!0)+1,W=ce.newlineIndex(je+he+Q),K=ce.domNode.textContent.slice(xe,W).split(`
36
+ `);return $.insert(P,E.attributes)}return $.push(E)},new h.default)}t.default=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function A(I,x){var S=[],w=!0,C=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(w=(B=R.next()).done)&&(S.push(B.value),!(x&&S.length===x));w=!0);}catch(H){C=!0,D=H}finally{try{!w&&R.return&&R.return()}finally{if(C)throw D}}return S}return function(I,x){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function A(I,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(I,w.key,w)}}return function(I,x,S){return x&&A(I.prototype,x),S&&A(I,S),I}}(),c=o(0),f=y(c),h=o(21),d=y(h),u=o(11),a=y(u),l=o(8),m=y(l),p=o(10),b=y(p);function y(A){return A&&A.__esModule?A:{default:A}}function g(A){if(Array.isArray(A)){for(var I=0,x=Array(A.length);I<A.length;I++)x[I]=A[I];return x}else return Array.from(A)}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}var v=(0,b.default)("quill:selection"),O=function A(I){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,A),this.index=I,this.length=x},k=function(){function A(I,x){var S=this;_(this,A),this.emitter=x,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(w,C){w===m.default.events.TEXT_CHANGE&&C.length()>0&&S.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!S.hasFocus()){var w=S.getNativeRange();w!=null&&w.start.node!==S.cursor.textNode&&S.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(w,C){if(C.range){var D=C.range,R=D.startNode,B=D.startOffset,H=D.endNode,G=D.endOffset;S.setNativeRange(R,B,H,G)}}),this.update(m.default.sources.SILENT)}return s(A,[{key:"handleComposition",value:function(){var x=this;this.root.addEventListener("compositionstart",function(){x.composing=!0}),this.root.addEventListener("compositionend",function(){if(x.composing=!1,x.cursor.parent){var S=x.cursor.restore();if(!S)return;setTimeout(function(){x.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var x=this;this.emitter.listenDOM("mousedown",document.body,function(){x.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){x.mouseDown=!1,x.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(x,S){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[x])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||f.default.query(x,f.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var C=f.default.find(w.start.node,!1);if(C==null)return;if(C instanceof f.default.Leaf){var D=C.split(w.start.offset);C.parent.insertBefore(this.cursor,D)}else C.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(x,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();x=Math.min(x,w-1),S=Math.min(x+S,w-1)-x;var C=void 0,D=this.scroll.leaf(x),R=i(D,2),B=R[0],H=R[1];if(B==null)return null;var G=B.position(H,!0),q=i(G,2);C=q[0],H=q[1];var $=document.createRange();if(S>0){$.setStart(C,H);var E=this.scroll.leaf(x+S),N=i(E,2);if(B=N[0],H=N[1],B==null)return null;var P=B.position(H,!0),j=i(P,2);return C=j[0],H=j[1],$.setEnd(C,H),$.getBoundingClientRect()}else{var F="left",L=void 0;return C instanceof Text?(H<C.data.length?($.setStart(C,H),$.setEnd(C,H+1)):($.setStart(C,H-1),$.setEnd(C,H),F="right"),L=$.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),H>0&&(F="right")),{bottom:L.top+L.height,height:L.height,left:L[F],right:L[F],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var x=document.getSelection();if(x==null||x.rangeCount<=0)return null;var S=x.getRangeAt(0);if(S==null)return null;var w=this.normalizeNative(S);return v.info("getNativeRange",w),w}},{key:"getRange",value:function(){var x=this.getNativeRange();if(x==null)return[null,null];var S=this.normalizedToRange(x);return[S,x]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(x){var S=this,w=[[x.start.node,x.start.offset]];x.native.collapsed||w.push([x.end.node,x.end.offset]);var C=w.map(function(B){var H=i(B,2),G=H[0],q=H[1],$=f.default.find(G,!0),E=$.offset(S.scroll);return q===0?E:$ instanceof f.default.Container?E+$.length():E+$.index(G,q)}),D=Math.min(Math.max.apply(Math,g(C)),this.scroll.length()-1),R=Math.min.apply(Math,[D].concat(g(C)));return new O(R,D-R)}},{key:"normalizeNative",value:function(x){if(!T(this.root,x.startContainer)||!x.collapsed&&!T(this.root,x.endContainer))return null;var S={start:{node:x.startContainer,offset:x.startOffset},end:{node:x.endContainer,offset:x.endOffset},native:x};return[S.start,S.end].forEach(function(w){for(var C=w.node,D=w.offset;!(C instanceof Text)&&C.childNodes.length>0;)if(C.childNodes.length>D)C=C.childNodes[D],D=0;else if(C.childNodes.length===D)C=C.lastChild,D=C instanceof Text?C.data.length:C.childNodes.length+1;else break;w.node=C,w.offset=D}),S}},{key:"rangeToNative",value:function(x){var S=this,w=x.collapsed?[x.index]:[x.index,x.index+x.length],C=[],D=this.scroll.length();return w.forEach(function(R,B){R=Math.min(D-1,R);var H=void 0,G=S.scroll.leaf(R),q=i(G,2),$=q[0],E=q[1],N=$.position(E,B!==0),P=i(N,2);H=P[0],E=P[1],C.push(H,E)}),C.length<2&&(C=C.concat(C)),C}},{key:"scrollIntoView",value:function(x){var S=this.lastRange;if(S!=null){var w=this.getBounds(S.index,S.length);if(w!=null){var C=this.scroll.length()-1,D=this.scroll.line(Math.min(S.index,C)),R=i(D,1),B=R[0],H=B;if(S.length>0){var G=this.scroll.line(Math.min(S.index+S.length,C)),q=i(G,1);H=q[0]}if(!(B==null||H==null)){var $=x.getBoundingClientRect();w.top<$.top?x.scrollTop-=$.top-w.top:w.bottom>$.bottom&&(x.scrollTop+=w.bottom-$.bottom)}}}}},{key:"setNativeRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(v.info("setNativeRange",x,S,w,C),!(x!=null&&(this.root.parentNode==null||x.parentNode==null||w.parentNode==null))){var R=document.getSelection();if(R!=null)if(x!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||D||x!==B.startContainer||S!==B.startOffset||w!==B.endContainer||C!==B.endOffset){x.tagName=="BR"&&(S=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),w.tagName=="BR"&&(C=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var H=document.createRange();H.setStart(x,S),H.setEnd(w,C),R.removeAllRanges(),R.addRange(H)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof S=="string"&&(w=S,S=!1),v.info("setRange",x),x!=null){var C=this.rangeToNative(x);this.setNativeRange.apply(this,g(C).concat([S]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,S=this.lastRange,w=this.getRange(),C=i(w,2),D=C[0],R=C[1];if(this.lastRange=D,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,a.default)(S,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[m.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(S),x];if((B=this.emitter).emit.apply(B,[m.default.events.EDITOR_CHANGE].concat(H)),x!==m.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,H)}}}}]),A}();function T(A,I){try{I.parentNode}catch{return!1}return I instanceof Text&&(I=I.parentNode),A.contains(I)}t.Range=O,t.default=k},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(0),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(){return d(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(y,g){y.children.length===0?s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,y,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(f.default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var m in l)l.hasOwnProperty(m)&&(a[m]=l[m])};return function(a,l){u(a,l);function m(){this.constructor=a}a.prototype=l===null?Object.create(l):(m.prototype=l.prototype,new m)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(44),c=o(30),f=o(1),h=function(u){i(a,u);function a(l){var m=u.call(this,l)||this;return m.build(),m}return a.prototype.appendChild=function(l){this.insertBefore(l)},a.prototype.attach=function(){u.prototype.attach.call(this),this.children.forEach(function(l){l.attach()})},a.prototype.build=function(){var l=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var p=d(m);l.insertBefore(p,l.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},a.prototype.deleteAt=function(l,m){if(l===0&&m===this.length())return this.remove();this.children.forEachAt(l,m,function(p,b,y){p.deleteAt(b,y)})},a.prototype.descendant=function(l,m){var p=this.children.find(m),b=p[0],y=p[1];return l.blotName==null&&l(b)||l.blotName!=null&&b instanceof l?[b,y]:b instanceof a?b.descendant(l,y):[null,-1]},a.prototype.descendants=function(l,m,p){m===void 0&&(m=0),p===void 0&&(p=Number.MAX_VALUE);var b=[],y=p;return this.children.forEachAt(m,p,function(g,_,v){(l.blotName==null&&l(g)||l.blotName!=null&&g instanceof l)&&b.push(g),g instanceof a&&(b=b.concat(g.descendants(l,_,y))),y-=v}),b},a.prototype.detach=function(){this.children.forEach(function(l){l.detach()}),u.prototype.detach.call(this)},a.prototype.formatAt=function(l,m,p,b){this.children.forEachAt(l,m,function(y,g,_){y.formatAt(g,_,p,b)})},a.prototype.insertAt=function(l,m,p){var b=this.children.find(l),y=b[0],g=b[1];if(y)y.insertAt(g,m,p);else{var _=p==null?f.create("text",m):f.create(m,p);this.appendChild(_)}},a.prototype.insertBefore=function(l,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return l instanceof p}))throw new f.ParchmentError("Cannot insert "+l.statics.blotName+" into "+this.statics.blotName);l.insertInto(this,m)},a.prototype.length=function(){return this.children.reduce(function(l,m){return l+m.length()},0)},a.prototype.moveChildren=function(l,m){this.children.forEach(function(p){l.insertBefore(p,m)})},a.prototype.optimize=function(l){if(u.prototype.optimize.call(this,l),this.children.length===0)if(this.statics.defaultChild!=null){var m=f.create(this.statics.defaultChild);this.appendChild(m),m.optimize(l)}else this.remove()},a.prototype.path=function(l,m){m===void 0&&(m=!1);var p=this.children.find(l,m),b=p[0],y=p[1],g=[[this,l]];return b instanceof a?g.concat(b.path(y,m)):(b!=null&&g.push([b,y]),g)},a.prototype.removeChild=function(l){this.children.remove(l)},a.prototype.replace=function(l){l instanceof a&&l.moveChildren(this),u.prototype.replace.call(this,l)},a.prototype.split=function(l,m){if(m===void 0&&(m=!1),!m){if(l===0)return this;if(l===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(l,this.length(),function(b,y,g){b=b.split(y,m),p.appendChild(b)}),p},a.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},a.prototype.update=function(l,m){var p=this,b=[],y=[];l.forEach(function(g){g.target===p.domNode&&g.type==="childList"&&(b.push.apply(b,g.addedNodes),y.push.apply(y,g.removedNodes))}),y.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=f.find(g);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===p.domNode)&&_.detach()}}),b.filter(function(g){return g.parentNode==p.domNode}).sort(function(g,_){return g===_?0:g.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var _=null;g.nextSibling!=null&&(_=f.find(g.nextSibling));var v=d(g);(v.next!=_||v.next==null)&&(v.parent!=null&&v.parent.removeChild(p),p.insertBefore(v,_||void 0))})},a}(c.default);function d(u){var a=f.find(u);if(a==null)try{a=f.create(u)}catch{a=f.create(f.Scope.INLINE),[].slice.call(u.childNodes).forEach(function(m){a.domNode.appendChild(m)}),u.parentNode&&u.parentNode.replaceChild(a.domNode,u),a.attach()}return a}t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var m in l)l.hasOwnProperty(m)&&(a[m]=l[m])};return function(a,l){u(a,l);function m(){this.constructor=a}a.prototype=l===null?Object.create(l):(m.prototype=l.prototype,new m)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12),c=o(31),f=o(17),h=o(1),d=function(u){i(a,u);function a(l){var m=u.call(this,l)||this;return m.attributes=new c.default(m.domNode),m}return a.formats=function(l){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return l.tagName.toLowerCase()},a.prototype.format=function(l,m){var p=h.query(l);p instanceof s.default?this.attributes.attribute(p,m):m&&p!=null&&(l!==this.statics.blotName||this.formats()[l]!==m)&&this.replaceWith(l,m)},a.prototype.formats=function(){var l=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(l[this.statics.blotName]=m),l},a.prototype.replaceWith=function(l,m){var p=u.prototype.replaceWith.call(this,l,m);return this.attributes.copy(p),p},a.prototype.update=function(l,m){var p=this;u.prototype.update.call(this,l,m),l.some(function(b){return b.target===p.domNode&&b.type==="attributes"})&&this.attributes.build()},a.prototype.wrap=function(l,m){var p=u.prototype.wrap.call(this,l,m);return p instanceof a&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},a}(f.default);t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(30),c=o(1),f=function(h){i(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.value=function(u){return!0},d.prototype.index=function(u,a){return this.domNode===u||this.domNode.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(a,1):-1},d.prototype.position=function(u,a){var l=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return u>0&&(l+=1),[this.parent.domNode,l]},d.prototype.value=function(){var u;return u={},u[this.statics.blotName]=this.statics.value(this.domNode)||!0,u},d.scope=c.Scope.INLINE_BLOT,d}(s.default);t.default=f},function(n,t,o){var i=o(11),s=o(3),c={attributes:{compose:function(h,d,u){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var a=s(!0,{},d);u||(a=Object.keys(a).reduce(function(m,p){return a[p]!=null&&(m[p]=a[p]),m},{}));for(var l in h)h[l]!==void 0&&d[l]===void 0&&(a[l]=h[l]);return Object.keys(a).length>0?a:void 0},diff:function(h,d){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var u=Object.keys(h).concat(Object.keys(d)).reduce(function(a,l){return i(h[l],d[l])||(a[l]=d[l]===void 0?null:d[l]),a},{});return Object.keys(u).length>0?u:void 0},transform:function(h,d,u){if(typeof h!="object")return d;if(typeof d=="object"){if(!u)return d;var a=Object.keys(d).reduce(function(l,m){return h[m]===void 0&&(l[m]=d[m]),l},{});return Object.keys(a).length>0?a:void 0}}},iterator:function(h){return new f(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function f(h){this.ops=h,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(h){h||(h=1/0);var d=this.ops[this.index];if(d){var u=this.offset,a=c.length(d);if(h>=a-u?(h=a-u,this.index+=1,this.offset=0):this.offset+=h,typeof d.delete=="number")return{delete:h};var l={};return d.attributes&&(l.attributes=d.attributes),typeof d.retain=="number"?l.retain=h:typeof d.insert=="string"?l.insert=d.insert.substr(u,h):l.insert=d.insert,l}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,d=this.index,u=this.next(),a=this.ops.slice(this.index);return this.offset=h,this.index=d,[u].concat(a)}else return[]},n.exports=c},function(n,t){var o=function(){function i(p,b){return b!=null&&p instanceof b}var s;try{s=Map}catch{s=function(){}}var c;try{c=Set}catch{c=function(){}}var f;try{f=Promise}catch{f=function(){}}function h(p,b,y,g,_){typeof b=="object"&&(y=b.depth,g=b.prototype,_=b.includeNonEnumerable,b=b.circular);var v=[],O=[],k=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof y=="undefined"&&(y=1/0);function T(A,I){if(A===null)return null;if(I===0)return A;var x,S;if(typeof A!="object")return A;if(i(A,s))x=new s;else if(i(A,c))x=new c;else if(i(A,f))x=new f(function($,E){A.then(function(N){$(T(N,I-1))},function(N){E(T(N,I-1))})});else if(h.__isArray(A))x=[];else if(h.__isRegExp(A))x=new RegExp(A.source,m(A)),A.lastIndex&&(x.lastIndex=A.lastIndex);else if(h.__isDate(A))x=new Date(A.getTime());else{if(k&&Buffer.isBuffer(A))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(A.length):x=new Buffer(A.length),A.copy(x),x;i(A,Error)?x=Object.create(A):typeof g=="undefined"?(S=Object.getPrototypeOf(A),x=Object.create(S)):(x=Object.create(g),S=g)}if(b){var w=v.indexOf(A);if(w!=-1)return O[w];v.push(A),O.push(x)}i(A,s)&&A.forEach(function($,E){var N=T(E,I-1),P=T($,I-1);x.set(N,P)}),i(A,c)&&A.forEach(function($){var E=T($,I-1);x.add(E)});for(var C in A){var D;S&&(D=Object.getOwnPropertyDescriptor(S,C)),!(D&&D.set==null)&&(x[C]=T(A[C],I-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(A),C=0;C<R.length;C++){var B=R[C],H=Object.getOwnPropertyDescriptor(A,B);H&&!H.enumerable&&!_||(x[B]=T(A[B],I-1),H.enumerable||Object.defineProperty(x,B,{enumerable:!1}))}if(_)for(var G=Object.getOwnPropertyNames(A),C=0;C<G.length;C++){var q=G[C],H=Object.getOwnPropertyDescriptor(A,q);H&&H.enumerable||(x[q]=T(A[q],I-1),Object.defineProperty(x,q,{enumerable:!1}))}return x}return T(p,y)}h.clonePrototype=function(b){if(b===null)return null;var y=function(){};return y.prototype=b,new y};function d(p){return Object.prototype.toString.call(p)}h.__objToStr=d;function u(p){return typeof p=="object"&&d(p)==="[object Date]"}h.__isDate=u;function a(p){return typeof p=="object"&&d(p)==="[object Array]"}h.__isArray=a;function l(p){return typeof p=="object"&&d(p)==="[object RegExp]"}h.__isRegExp=l;function m(p){var b="";return p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),b}return h.__getRegExpFlags=m,h}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var C=[],D=!0,R=!1,B=void 0;try{for(var H=S[Symbol.iterator](),G;!(D=(G=H.next()).done)&&(C.push(G.value),!(w&&C.length===w));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&H.return&&H.return()}finally{if(R)throw B}}return C}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function x(S,w){for(var C=0;C<w.length;C++){var D=w[C];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,C){return w&&x(S.prototype,w),C&&x(S,C),S}}(),c=function x(S,w,C){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var R=Object.getPrototypeOf(S);return R===null?void 0:x(R,w,C)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(C)}},f=o(0),h=v(f),d=o(8),u=v(d),a=o(4),l=v(a),m=o(16),p=v(m),b=o(13),y=v(b),g=o(25),_=v(g);function v(x){return x&&x.__esModule?x:{default:x}}function O(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function k(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function T(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}function A(x){return x instanceof l.default||x instanceof a.BlockEmbed}var I=function(x){T(S,x);function S(w,C){O(this,S);var D=k(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w));return D.emitter=C.emitter,Array.isArray(C.whitelist)&&(D.whitelist=C.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),D.domNode.addEventListener("DOMNodeInserted",function(){}),D.optimize(),D.enable(),D}return s(S,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(C,D){var R=this.line(C),B=i(R,2),H=B[0],G=B[1],q=this.line(C+D),$=i(q,1),E=$[0];if(c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"deleteAt",this).call(this,C,D),E!=null&&H!==E&&G>0){if(H instanceof a.BlockEmbed||E instanceof a.BlockEmbed){this.optimize();return}if(H instanceof y.default){var N=H.newlineIndex(H.length(),!0);if(N>-1&&(H=H.split(N+1),H===E)){this.optimize();return}}else if(E instanceof y.default){var P=E.newlineIndex(0);P>-1&&E.split(P+1)}var j=E.children.head instanceof p.default?null:E.children.head;H.moveChildren(E,j),H.remove()}this.optimize()}},{key:"enable",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",C)}},{key:"formatAt",value:function(C,D,R,B){this.whitelist!=null&&!this.whitelist[R]||(c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,C,D,R,B),this.optimize())}},{key:"insertAt",value:function(C,D,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[D])){if(C>=this.length())if(R==null||h.default.query(D,h.default.Scope.BLOCK)==null){var B=h.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&D.endsWith(`
37
+ `)&&(D=D.slice(0,-1)),B.insertAt(0,D,R)}else{var H=h.default.create(D,R);this.appendChild(H)}else c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertAt",this).call(this,C,D,R);this.optimize()}}},{key:"insertBefore",value:function(C,D){if(C.statics.scope===h.default.Scope.INLINE_BLOT){var R=h.default.create(this.statics.defaultChild);R.appendChild(C),C=R}c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertBefore",this).call(this,C,D)}},{key:"leaf",value:function(C){return this.path(C).pop()||[null,-1]}},{key:"line",value:function(C){return C===this.length()?this.line(C-1):this.descendant(A,C)}},{key:"lines",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(H,G,q){var $=[],E=q;return H.children.forEachAt(G,q,function(N,P,j){A(N)?$.push(N):N instanceof h.default.Container&&($=$.concat(B(N,P,E))),E-=j}),$};return R(this,C,D)}},{key:"optimize",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,C,D),C.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,C,D))}},{key:"path",value:function(C){return c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"path",this).call(this,C).slice(1)}},{key:"update",value:function(C){if(this.batch!==!0){var D=u.default.sources.USER;typeof C=="string"&&(D=C),Array.isArray(C)||(C=this.observer.takeRecords()),C.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,D,C),c(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"update",this).call(this,C.concat([])),C.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,D,C)}}}]),S}(h.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[l.default,a.BlockEmbed,_.default],t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},s=function(){function L(M,U){var z=[],V=!0,Q=!1,ne=void 0;try{for(var oe=M[Symbol.iterator](),ce;!(V=(ce=oe.next()).done)&&(z.push(ce.value),!(U&&z.length===U));V=!0);}catch(he){Q=!0,ne=he}finally{try{!V&&oe.return&&oe.return()}finally{if(Q)throw ne}}return z}return function(M,U){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return L(M,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function L(M,U){for(var z=0;z<U.length;z++){var V=U[z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(M,V.key,V)}}return function(M,U,z){return U&&L(M.prototype,U),z&&L(M,z),M}}(),f=o(21),h=x(f),d=o(11),u=x(d),a=o(3),l=x(a),m=o(2),p=x(m),b=o(20),y=x(b),g=o(0),_=x(g),v=o(5),O=x(v),k=o(10),T=x(k),A=o(9),I=x(A);function x(L){return L&&L.__esModule?L:{default:L}}function S(L,M,U){return M in L?Object.defineProperty(L,M,{value:U,enumerable:!0,configurable:!0,writable:!0}):L[M]=U,L}function w(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function C(L,M){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:L}function D(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(L,M):L.__proto__=M)}var R=(0,T.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=function(L){D(M,L),c(M,null,[{key:"match",value:function(z,V){return V=F(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Q){return!!V[Q]!==z[Q]&&V[Q]!==null})?!1:V.key===(z.which||z.keyCode)}}]);function M(U,z){w(this,M);var V=C(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,U,z));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Q){Q==="list autofill"&&U.scroll.whitelist!=null&&!U.scroll.whitelist.list||V.options.bindings[Q]&&V.addBinding(V.options.bindings[Q])}),V.addBinding({key:M.keys.ENTER,shiftKey:null},N),V.addBinding({key:M.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:M.keys.BACKSPACE},{collapsed:!0},q),V.addBinding({key:M.keys.DELETE},{collapsed:!0},$)):(V.addBinding({key:M.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),V.addBinding({key:M.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),V.addBinding({key:M.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:M.keys.DELETE},{collapsed:!1},E),V.addBinding({key:M.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),V.listen(),V}return c(M,[{key:"addBinding",value:function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=F(z);if(ne==null||ne.key==null)return R.warn("Attempted to add invalid keyboard binding",ne);typeof V=="function"&&(V={handler:V}),typeof Q=="function"&&(Q={handler:Q}),ne=(0,l.default)(ne,V,Q),this.bindings[ne.key]=this.bindings[ne.key]||[],this.bindings[ne.key].push(ne)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var Q=V.which||V.keyCode,ne=(z.bindings[Q]||[]).filter(function(Ee){return M.match(V,Ee)});if(ne.length!==0){var oe=z.quill.getSelection();if(!(oe==null||!z.quill.hasFocus())){var ce=z.quill.getLine(oe.index),he=s(ce,2),je=he[0],xe=he[1],W=z.quill.getLeaf(oe.index),K=s(W,2),Z=K[0],J=K[1],Y=oe.length===0?[Z,J]:z.quill.getLeaf(oe.index+oe.length),le=s(Y,2),se=le[0],ue=le[1],ze=Z instanceof _.default.Text?Z.value().slice(0,J):"",et=se instanceof _.default.Text?se.value().slice(ue):"",me={collapsed:oe.length===0,empty:oe.length===0&&je.length()<=1,format:z.quill.getFormat(oe),offset:xe,prefix:ze,suffix:et},Wu=ne.some(function(Ee){if(Ee.collapsed!=null&&Ee.collapsed!==me.collapsed||Ee.empty!=null&&Ee.empty!==me.empty||Ee.offset!=null&&Ee.offset!==me.offset)return!1;if(Array.isArray(Ee.format)){if(Ee.format.every(function(ut){return me.format[ut]==null}))return!1}else if(i(Ee.format)==="object"&&!Object.keys(Ee.format).every(function(ut){return Ee.format[ut]===!0?me.format[ut]!=null:Ee.format[ut]===!1?me.format[ut]==null:(0,u.default)(Ee.format[ut],me.format[ut])}))return!1;return Ee.prefix!=null&&!Ee.prefix.test(me.prefix)||Ee.suffix!=null&&!Ee.suffix.test(me.suffix)?!1:Ee.handler.call(z,oe,me)!==!0});Wu&&V.preventDefault()}}}})}}]),M}(I.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(M,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(M,U){if(U.collapsed&&U.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(M,U){U.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":P(!0),"outdent code-block":P(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(M){this.quill.deleteText(M.index-1,1,O.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(M){this.quill.history.cutoff();var U=new p.default().retain(M.index).delete(M.length).insert(" ");this.quill.updateContents(U,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index+1,O.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(M,U){this.quill.format("list",!1,O.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(M){var U=this.quill.getLine(M.index),z=s(U,2),V=z[0],Q=z[1],ne=(0,l.default)({},V.formats(),{list:"checked"}),oe=new p.default().retain(M.index).insert(`
38
+ `,ne).retain(V.length()-Q-1).retain(1,{list:"unchecked"});this.quill.updateContents(oe,O.default.sources.USER),this.quill.setSelection(M.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(M,U){var z=this.quill.getLine(M.index),V=s(z,2),Q=V[0],ne=V[1],oe=new p.default().retain(M.index).insert(`
39
+ `,U.format).retain(Q.length()-ne-1).retain(1,{header:null});this.quill.updateContents(oe,O.default.sources.USER),this.quill.setSelection(M.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(M,U){var z=U.prefix.length,V=this.quill.getLine(M.index),Q=s(V,2),ne=Q[0],oe=Q[1];if(oe>z)return!0;var ce=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":ce="unchecked";break;case"[x]":ce="checked";break;case"-":case"*":ce="bullet";break;default:ce="ordered"}this.quill.insertText(M.index," ",O.default.sources.USER),this.quill.history.cutoff();var he=new p.default().retain(M.index-oe).delete(z+1).retain(ne.length()-2-oe).retain(1,{list:ce});this.quill.updateContents(he,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index-z,O.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(M){var U=this.quill.getLine(M.index),z=s(U,2),V=z[0],Q=z[1],ne=new p.default().retain(M.index+V.length()-Q-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,O.default.sources.USER)}},"embed left":G(H.keys.LEFT,!1),"embed left shift":G(H.keys.LEFT,!0),"embed right":G(H.keys.RIGHT,!1),"embed right shift":G(H.keys.RIGHT,!0)}};function G(L,M){var U,z=L===H.keys.LEFT?"prefix":"suffix";return U={key:L,shiftKey:M,altKey:null},S(U,z,/^$/),S(U,"handler",function(Q){var ne=Q.index;L===H.keys.RIGHT&&(ne+=Q.length+1);var oe=this.quill.getLeaf(ne),ce=s(oe,1),he=ce[0];return he instanceof _.default.Embed?(L===H.keys.LEFT?M?this.quill.setSelection(Q.index-1,Q.length+1,O.default.sources.USER):this.quill.setSelection(Q.index-1,O.default.sources.USER):M?this.quill.setSelection(Q.index,Q.length+1,O.default.sources.USER):this.quill.setSelection(Q.index+Q.length+1,O.default.sources.USER),!1):!0}),U}function q(L,M){if(!(L.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(L.index),z=s(U,1),V=z[0],Q={};if(M.offset===0){var ne=this.quill.getLine(L.index-1),oe=s(ne,1),ce=oe[0];if(ce!=null&&ce.length()>1){var he=V.formats(),je=this.quill.getFormat(L.index-1,1);Q=y.default.attributes.diff(he,je)||{}}}var xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(M.prefix)?2:1;this.quill.deleteText(L.index-xe,xe,O.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(L.index-xe,xe,Q,O.default.sources.USER),this.quill.focus()}}function $(L,M){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(M.suffix)?2:1;if(!(L.index>=this.quill.getLength()-U)){var z={},V=0,Q=this.quill.getLine(L.index),ne=s(Q,1),oe=ne[0];if(M.offset>=oe.length()-1){var ce=this.quill.getLine(L.index+1),he=s(ce,1),je=he[0];if(je){var xe=oe.formats(),W=this.quill.getFormat(L.index,1);z=y.default.attributes.diff(xe,W)||{},V=je.length()}}this.quill.deleteText(L.index,U,O.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+V-1,U,z,O.default.sources.USER)}}function E(L){var M=this.quill.getLines(L),U={};if(M.length>1){var z=M[0].formats(),V=M[M.length-1].formats();U=y.default.attributes.diff(V,z)||{}}this.quill.deleteText(L,O.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(L.index,1,U,O.default.sources.USER),this.quill.setSelection(L.index,O.default.sources.SILENT),this.quill.focus()}function N(L,M){var U=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys(M.format).reduce(function(V,Q){return _.default.query(Q,_.default.Scope.BLOCK)&&!Array.isArray(M.format[Q])&&(V[Q]=M.format[Q]),V},{});this.quill.insertText(L.index,`
40
+ `,z,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(M.format).forEach(function(V){z[V]==null&&(Array.isArray(M.format[V])||V!=="link"&&U.quill.format(V,M.format[V],O.default.sources.USER))})}function P(L){return{key:H.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(U){var z=_.default.query("code-block"),V=U.index,Q=U.length,ne=this.quill.scroll.descendant(z,V),oe=s(ne,2),ce=oe[0],he=oe[1];if(ce!=null){var je=this.quill.getIndex(ce),xe=ce.newlineIndex(he,!0)+1,W=ce.newlineIndex(je+he+Q),K=ce.domNode.textContent.slice(xe,W).split(`
41
41
  `);he=0,K.forEach(function(Z,J){L?(ce.insertAt(xe+he,z.TAB),he+=z.TAB.length,J===0?V+=z.TAB.length:Q+=z.TAB.length):Z.startsWith(z.TAB)&&(ce.deleteAt(xe+he,z.TAB.length),he-=z.TAB.length,J===0?V-=z.TAB.length:Q-=z.TAB.length),he+=Z.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(V,Q,O.default.sources.SILENT)}}}}function j(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(U,z){this.quill.format(L,!z.format[L],O.default.sources.USER)}}}function F(L){if(typeof L=="string"||typeof L=="number")return F({key:L});if((typeof L=="undefined"?"undefined":i(L))==="object"&&(L=(0,h.default)(L,!1)),typeof L.key=="string")if(H.keys[L.key.toUpperCase()]!=null)L.key=H.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[B]=L.shortKey,delete L.shortKey),L}t.default=H,t.SHORTKEY=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function y(g,_){var v=[],O=!0,k=!1,T=void 0;try{for(var A=g[Symbol.iterator](),I;!(O=(I=A.next()).done)&&(v.push(I.value),!(_&&v.length===_));O=!0);}catch(x){k=!0,T=x}finally{try{!O&&A.return&&A.return()}finally{if(k)throw T}}return v}return function(g,_){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return y(g,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function y(g,_,v){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:y(k,_,v)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(v)}},c=function(){function y(g,_){for(var v=0;v<_.length;v++){var O=_[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,v){return _&&y(g.prototype,_),v&&y(g,v),g}}(),f=o(0),h=a(f),d=o(7),u=a(d);function a(y){return y&&y.__esModule?y:{default:y}}function l(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function m(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var b=function(y){p(g,y),c(g,null,[{key:"value",value:function(){}}]);function g(_,v){l(this,g);var O=m(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return O.selection=v,O.textNode=document.createTextNode(g.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return c(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(v,O){if(this._length!==0)return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,v,O);for(var k=this,T=0;k!=null&&k.statics.scope!==h.default.Scope.BLOCK_BLOT;)T+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=g.CONTENTS.length,k.optimize(),k.formatAt(T,g.CONTENTS.length,v,O),this._length=0)}},{key:"index",value:function(v,O){return v===this.textNode?0:s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,v,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var v=this.textNode,O=this.selection.getNativeRange(),k=void 0,T=void 0,A=void 0;if(O!=null&&O.start.node===v&&O.end.node===v){var I=[v,O.start.offset,O.end.offset];k=I[0],T=I[1],A=I[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var x=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof u.default?(k=this.next.domNode,this.next.insertAt(0,x),this.textNode.data=g.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),T!=null){var S=[T,A].map(function(C){return Math.max(0,Math.min(k.data.length,C-1))}),w=i(S,2);return T=w[0],A=w[1],{startNode:k,startOffset:T,endNode:k,endOffset:A}}}}},{key:"update",value:function(v,O){var k=this;if(v.some(function(A){return A.type==="characterData"&&A.target===k.textNode})){var T=this.restore();T&&(O.range=T)}}},{key:"value",value:function(){return""}}]),g}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=h(i),c=o(4),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(){return d(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default.Container);l.allowedChildren=[f.default,c.BlockEmbed,l],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),s=function b(y,g,_){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var O=Object.getPrototypeOf(y);return O===null?void 0:b(O,g,_)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(_)}},c=o(0),f=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function u(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function a(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var l=function(b){a(y,b);function y(){return d(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"value",value:function(_){var v=s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,_);return v.startsWith("rgb(")?(v=v.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+v.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):v}}]),y}(f.default.Attributor.Style),m=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),p=new l("color","color",{scope:f.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=m,t.ColorStyle=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i=function(){function p(b,y){for(var g=0;g<y.length;g++){var _=y[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,y,g){return y&&p(b.prototype,y),g&&p(b,g),b}}(),s=function p(b,y,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,y);if(_===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:p(v,y,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},c=o(6),f=h(c);function h(p){return p&&p.__esModule?p:{default:p}}function d(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function u(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var l=function(p){a(b,p);function b(){return d(this,b),u(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"format",value:function(g,_){if(g!==this.statics.blotName||!_)return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,g,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(g){var _=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,g);return g=this.sanitize(g),_.setAttribute("href",g),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return m(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),b}(f.default);l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function m(p,b){var y=document.createElement("a");y.href=p;var g=y.href.slice(0,y.href.indexOf(":"));return b.indexOf(g)>-1}t.default=l,t.sanitize=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},s=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),c=o(23),f=u(c),h=o(107),d=u(h);function u(b){return b&&b.__esModule?b:{default:b}}function a(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}var l=0;function m(b,y){b.setAttribute(y,b.getAttribute(y)!=="true")}var p=function(){function b(y){var g=this;a(this,b),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){g.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case f.default.keys.ENTER:g.togglePicker();break;case f.default.keys.ESCAPE:g.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),m(this.label,"aria-expanded"),m(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var _=this,v=document.createElement("span");return v.tabIndex="0",v.setAttribute("role","button"),v.classList.add("ql-picker-item"),g.hasAttribute("value")&&v.setAttribute("data-value",g.getAttribute("value")),g.textContent&&v.setAttribute("data-label",g.textContent),v.addEventListener("click",function(){_.selectItem(v,!0)}),v.addEventListener("keydown",function(O){switch(O.keyCode){case f.default.keys.ENTER:_.selectItem(v,!0),O.preventDefault();break;case f.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),v}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=d.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(v){var O=g.buildItem(v);_.appendChild(O),v.selected===!0&&g.selectItem(O)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(_){g.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(g){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=this.container.querySelector(".ql-selected");if(g!==v&&(v!=null&&v.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),_))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":i(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var v=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",v)}}]),b}();t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=R(i),c=o(5),f=R(c),h=o(4),d=R(h),u=o(16),a=R(u),l=o(25),m=R(l),p=o(24),b=R(p),y=o(35),g=R(y),_=o(6),v=R(_),O=o(22),k=R(O),T=o(7),A=R(T),I=o(55),x=R(I),S=o(42),w=R(S),C=o(23),D=R(C);function R(B){return B&&B.__esModule?B:{default:B}}f.default.register({"blots/block":d.default,"blots/block/embed":h.BlockEmbed,"blots/break":a.default,"blots/container":m.default,"blots/cursor":b.default,"blots/embed":g.default,"blots/inline":v.default,"blots/scroll":k.default,"blots/text":A.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":D.default}),s.default.register(d.default,a.default,b.default,v.default,k.default,A.default),t.default=f.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function c(f){this.domNode=f,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(c.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),c.create=function(f){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?h=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?h=document.createElement(f):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},c.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},c.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return i.create(f)},c.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},c.prototype.deleteAt=function(f,h){var d=this.isolate(f,h);d.remove()},c.prototype.formatAt=function(f,h,d,u){var a=this.isolate(f,h);if(i.query(d,i.Scope.BLOT)!=null&&u)a.wrap(d,u);else if(i.query(d,i.Scope.ATTRIBUTE)!=null){var l=i.create(this.statics.scope);a.wrap(l),l.format(d,u)}},c.prototype.insertAt=function(f,h,d){var u=d==null?i.create("text",h):i.create(h,d),a=this.split(f);this.parent.insertBefore(u,a)},c.prototype.insertInto=function(f,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var d=null;f.children.insertBefore(this,h),h!=null&&(d=h.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=d)&&f.domNode.insertBefore(this.domNode,d),this.parent=f,this.attach()},c.prototype.isolate=function(f,h){var d=this.split(f);return d.split(h),d},c.prototype.length=function(){return 1},c.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},c.prototype.optimize=function(f){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},c.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},c.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},c.prototype.replaceWith=function(f,h){var d=typeof f=="string"?i.create(f,h):f;return d.replace(this),d},c.prototype.split=function(f,h){return f===0?this:this.next},c.prototype.update=function(f,h){},c.prototype.wrap=function(f,h){var d=typeof f=="string"?i.create(f,h):f;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},c.blotName="abstract",c}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),s=o(32),c=o(33),f=o(1),h=function(){function d(u){this.attributes={},this.domNode=u,this.build()}return d.prototype.attribute=function(u,a){a?u.add(this.domNode,a)&&(u.value(this.domNode)!=null?this.attributes[u.attrName]=u:delete this.attributes[u.attrName]):(u.remove(this.domNode),delete this.attributes[u.attrName])},d.prototype.build=function(){var u=this;this.attributes={};var a=i.default.keys(this.domNode),l=s.default.keys(this.domNode),m=c.default.keys(this.domNode);a.concat(l).concat(m).forEach(function(p){var b=f.query(p,f.Scope.ATTRIBUTE);b instanceof i.default&&(u.attributes[b.attrName]=b)})},d.prototype.copy=function(u){var a=this;Object.keys(this.attributes).forEach(function(l){var m=a.attributes[l].value(a.domNode);u.format(l,m)})},d.prototype.move=function(u){var a=this;this.copy(u),Object.keys(this.attributes).forEach(function(l){a.attributes[l].remove(a.domNode)}),this.attributes={}},d.prototype.values=function(){var u=this;return Object.keys(this.attributes).reduce(function(a,l){return a[l]=u.attributes[l].value(u.domNode),a},{})},d}();t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function c(h,d){var u=h.getAttribute("class")||"";return u.split(/\s+/).filter(function(a){return a.indexOf(d+"-")===0})}var f=function(h){i(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(u){return(u.getAttribute("class")||"").split(/\s+/).map(function(a){return a.split("-").slice(0,-1).join("-")})},d.prototype.add=function(u,a){return this.canAdd(u,a)?(this.remove(u),u.classList.add(this.keyName+"-"+a),!0):!1},d.prototype.remove=function(u){var a=c(u,this.keyName);a.forEach(function(l){u.classList.remove(l)}),u.classList.length===0&&u.removeAttribute("class")},d.prototype.value=function(u){var a=c(u,this.keyName)[0]||"",l=a.slice(this.keyName.length+1);return this.canAdd(u,l)?l:""},d}(s.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function c(h){var d=h.split("-"),u=d.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return d[0]+u}var f=function(h){i(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(u){return(u.getAttribute("style")||"").split(";").map(function(a){var l=a.split(":");return l[0].trim()})},d.prototype.add=function(u,a){return this.canAdd(u,a)?(u.style[c(this.keyName)]=a,!0):!1},d.prototype.remove=function(u){u.style[c(this.keyName)]="",u.getAttribute("style")||u.removeAttribute("style")},d.prototype.value=function(u){var a=u.style[c(this.keyName)];return this.canAdd(u,a)?a:""},d}(s.default);t.default=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function f(h,d){for(var u=0;u<d.length;u++){var a=d[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,d,u){return d&&f(h.prototype,d),u&&f(h,u),h}}();function s(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var c=function(){function f(h,d){s(this,f),this.quill=h,this.options=d,this.modules={}}return i(f,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(u){d.modules[u]==null&&d.addModule(u)})}},{key:"addModule",value:function(d){var u=this.quill.constructor.import("modules/"+d);return this.modules[d]=new u(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),f}();c.DEFAULTS={modules:{}},c.themes={default:c},t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function y(g,_){for(var v=0;v<_.length;v++){var O=_[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,v){return _&&y(g.prototype,_),v&&y(g,v),g}}(),s=function y(g,_,v){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:y(k,_,v)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(v)}},c=o(0),f=u(c),h=o(7),d=u(h);function u(y){return y&&y.__esModule?y:{default:y}}function a(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function l(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function m(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var p="\uFEFF",b=function(y){m(g,y);function g(_){a(this,g);var v=l(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return v.contentNode=document.createElement("span"),v.contentNode.setAttribute("contenteditable",!1),[].slice.call(v.domNode.childNodes).forEach(function(O){v.contentNode.appendChild(O)}),v.leftGuard=document.createTextNode(p),v.rightGuard=document.createTextNode(p),v.domNode.appendChild(v.leftGuard),v.domNode.appendChild(v.contentNode),v.domNode.appendChild(v.rightGuard),v}return i(g,[{key:"index",value:function(v,O){return v===this.leftGuard?0:v===this.rightGuard?1:s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,v,O)}},{key:"restore",value:function(v){var O=void 0,k=void 0,T=v.data.split(p).join("");if(v===this.leftGuard)if(this.prev instanceof d.default){var A=this.prev.length();this.prev.insertAt(A,T),O={startNode:this.prev.domNode,startOffset:A+T.length}}else k=document.createTextNode(T),this.parent.insertBefore(f.default.create(k),this),O={startNode:k,startOffset:T.length};else v===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,T),O={startNode:this.next.domNode,startOffset:T.length}):(k=document.createTextNode(T),this.parent.insertBefore(f.default.create(k),this.next),O={startNode:k,startOffset:T.length}));return v.data=p,O}},{key:"update",value:function(v,O){var k=this;v.forEach(function(T){if(T.type==="characterData"&&(T.target===k.leftGuard||T.target===k.rightGuard)){var A=k.restore(T.target);A&&(O.range=A)}})}}]),g}(f.default.Embed);t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i=o(0),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}var f={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new s.default.Attributor.Attribute("align","align",f),d=new s.default.Attributor.Class("align","ql-align",f),u=new s.default.Attributor.Style("align","text-align",f);t.AlignAttribute=h,t.AlignClass=d,t.AlignStyle=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=o(0),s=f(i),c=o(26);function f(u){return u&&u.__esModule?u:{default:u}}var h=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),d=new c.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});t.BackgroundClass=h,t.BackgroundStyle=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=o(0),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}var f={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},h=new s.default.Attributor.Attribute("direction","dir",f),d=new s.default.Attributor.Class("direction","ql-direction",f),u=new s.default.Attributor.Style("direction","direction",f);t.DirectionAttribute=h,t.DirectionClass=d,t.DirectionStyle=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function y(g,_){for(var v=0;v<_.length;v++){var O=_[v];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,v){return _&&y(g.prototype,_),v&&y(g,v),g}}(),s=function y(g,_,v){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var k=Object.getPrototypeOf(g);return k===null?void 0:y(k,_,v)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(v)}},c=o(0),f=h(c);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function u(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function a(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var l={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},m=new f.default.Attributor.Class("font","ql-font",l),p=function(y){a(g,y);function g(){return d(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"value",value:function(v){return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,v).replace(/["']/g,"")}}]),g}(f.default.Attributor.Style),b=new p("font","font-family",l);t.FontStyle=b,t.FontClass=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=o(0),s=c(i);function c(d){return d&&d.__esModule?d:{default:d}}var f=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=f,t.SizeStyle=h},function(n,t,o){n.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{"1":o(92),"2":o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function _(v,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}return function(v,O,k){return O&&_(v.prototype,O),k&&_(v,k),v}}(),s=o(0),c=a(s),f=o(5),h=a(f),d=o(9),u=a(d);function a(_){return _&&_.__esModule?_:{default:_}}function l(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function m(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function p(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var b=function(_){p(v,_);function v(O,k){l(this,v);var T=m(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,O,k));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(h.default.events.EDITOR_CHANGE,function(A,I,x,S){A!==h.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||S===h.default.sources.USER?T.record(I,x):T.transform(I))}),T.quill.keyboard.addBinding({key:"Z",shortKey:!0},T.undo.bind(T)),T.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},T.redo.bind(T)),/Win/i.test(navigator.platform)&&T.quill.keyboard.addBinding({key:"Y",shortKey:!0},T.redo.bind(T)),T}return i(v,[{key:"change",value:function(k,T){if(this.stack[k].length!==0){var A=this.stack[k].pop();this.stack[T].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[k],h.default.sources.USER),this.ignoreChange=!1;var I=g(A[k]);this.quill.setSelection(I)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,T){if(k.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(T),I=Date.now();if(this.lastRecorded+this.options.delay>I&&this.stack.undo.length>0){var x=this.stack.undo.pop();A=A.compose(x.undo),k=x.redo.compose(k)}else this.lastRecorded=I;this.stack.undo.push({redo:k,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(T){T.undo=k.transform(T.undo,!0),T.redo=k.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=k.transform(T.undo,!0),T.redo=k.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),v}(u.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(_){var v=_.ops[_.ops.length-1];return v==null?!1:v.insert!=null?typeof v.insert=="string"&&v.insert.endsWith(`
42
- `):v.attributes!=null?Object.keys(v.attributes).some(function(O){return c.default.query(O,c.default.Scope.BLOCK)!=null}):!1}function g(_){var v=_.reduce(function(k,T){return k+=T.delete||0,k},0),O=_.length()-v;return y(_)&&(O-=1),O}t.default=b,t.getLastChangeIndex=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function N(P,j){for(var F=0;F<j.length;F++){var L=j[F];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,j,F){return j&&N(P.prototype,j),F&&N(P,F),P}}(),s=function N(P,j,F){P===null&&(P=Function.prototype);var L=Object.getOwnPropertyDescriptor(P,j);if(L===void 0){var $=Object.getPrototypeOf(P);return $===null?void 0:N($,j,F)}else{if("value"in L)return L.value;var U=L.get;return U===void 0?void 0:U.call(F)}},c=o(3),f=I(c),h=o(2),d=I(h),u=o(8),a=I(u),l=o(23),m=I(l),p=o(34),b=I(p),y=o(59),g=I(y),_=o(60),v=I(_),O=o(28),k=I(O),T=o(61),A=I(T);function I(N){return N&&N.__esModule?N:{default:N}}function x(N,P){if(!(N instanceof P))throw new TypeError("Cannot call a class as a function")}function S(N,P){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:N}function w(N,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);N.prototype=Object.create(P&&P.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(N,P):N.__proto__=P)}var C=[!1,"center","right","justify"],D=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],R=[!1,"serif","monospace"],B=["1","2","3",!1],H=["small",!1,"large","huge"],G=function(N){w(P,N);function P(j,F){x(this,P);var L=S(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,j,F)),$=function U(z){if(!document.body.contains(j.root))return document.body.removeEventListener("click",U);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(V){V.container.contains(z.target)||V.close()})};return j.emitter.listenDOM("click",document.body,$),L}return i(P,[{key:"addModule",value:function(F){var L=s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"addModule",this).call(this,F);return F==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(F,L){F.forEach(function($){var U=$.getAttribute("class")||"";U.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),L[z]!=null))if(z==="direction")$.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")$.innerHTML=L[z];else{var V=$.value||"";V!=null&&L[z][V]&&($.innerHTML=L[z][V])}})})}},{key:"buildPickers",value:function(F,L){var $=this;this.pickers=F.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&E(z,C),new v.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var V=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&E(z,D,V==="background"?"#ffffff":"#000000"),new g.default(z,L[V])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?E(z,R):z.classList.contains("ql-header")?E(z,B):z.classList.contains("ql-size")&&E(z,H)),new k.default(z)});var U=function(){$.pickers.forEach(function(V){V.update()})};this.quill.on(a.default.events.EDITOR_CHANGE,U)}}]),P}(b.default);G.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var P=this,j=this.container.querySelector("input.ql-image[type=file]");j==null&&(j=document.createElement("input"),j.setAttribute("type","file"),j.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),j.classList.add("ql-image"),j.addEventListener("change",function(){if(j.files!=null&&j.files[0]!=null){var F=new FileReader;F.onload=function(L){var $=P.quill.getSelection(!0);P.quill.updateContents(new d.default().retain($.index).delete($.length).insert({image:L.target.result}),a.default.sources.USER),P.quill.setSelection($.index+1,a.default.sources.SILENT),j.value=""},F.readAsDataURL(j.files[0])}}),this.container.appendChild(j)),j.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(N){w(P,N);function P(j,F){x(this,P);var L=S(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,j,F));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(P,[{key:"listen",value:function(){var F=this;this.textbox.addEventListener("keydown",function(L){m.default.match(L,"enter")?(F.save(),L.preventDefault()):m.default.match(L,"escape")&&(F.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:F!==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-"+F)||""),this.root.setAttribute("data-mode",F)}},{key:"restoreFocus",value:function(){var F=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=F}},{key:"save",value:function(){var F=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",F,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",F,a.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":F=M(F);case"formula":{if(!F)break;var $=this.quill.getSelection(!0);if($!=null){var U=$.index+$.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),F,a.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",a.default.sources.USER),this.quill.setSelection(U+2,a.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),P}(A.default);function M(N){var P=N.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||N.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return P?(P[1]||"https")+"://www.youtube.com/embed/"+P[2]+"?showinfo=0":(P=N.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(P[1]||"https")+"://player.vimeo.com/video/"+P[2]+"/":N}function E(N,P){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;P.forEach(function(F){var L=document.createElement("option");F===j?L.setAttribute("selected","selected"):L.setAttribute("value",F),N.appendChild(L)})}t.BaseTooltip=q,t.default=G},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];this.insertBefore(c[0],null),c.length>1&&this.append.apply(this,c.slice(1))},s.prototype.contains=function(c){for(var f,h=this.iterator();f=h();)if(f===c)return!0;return!1},s.prototype.insertBefore=function(c,f){!c||(c.next=f,f!=null?(c.prev=f.prev,f.prev!=null&&(f.prev.next=c),f.prev=c,f===this.head&&(this.head=c)):this.tail!=null?(this.tail.next=c,c.prev=this.tail,this.tail=c):(c.prev=null,this.head=this.tail=c),this.length+=1)},s.prototype.offset=function(c){for(var f=0,h=this.head;h!=null;){if(h===c)return f;f+=h.length(),h=h.next}return-1},s.prototype.remove=function(c){!this.contains(c)||(c.prev!=null&&(c.prev.next=c.next),c.next!=null&&(c.next.prev=c.prev),c===this.head&&(this.head=c.next),c===this.tail&&(this.tail=c.prev),this.length-=1)},s.prototype.iterator=function(c){return c===void 0&&(c=this.head),function(){var f=c;return c!=null&&(c=c.next),f}},s.prototype.find=function(c,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var u=h.length();if(c<u||f&&c===u&&(h.next==null||h.next.length()!==0))return[h,c];c-=u}return[null,0]},s.prototype.forEach=function(c){for(var f,h=this.iterator();f=h();)c(f)},s.prototype.forEachAt=function(c,f,h){if(!(f<=0))for(var d=this.find(c),u=d[0],a=d[1],l,m=c-a,p=this.iterator(u);(l=p())&&m<c+f;){var b=l.length();c>m?h(l,c-m,Math.min(f,m+b-c)):h(l,0,Math.min(b,c+f-m)),m+=b}},s.prototype.map=function(c){return this.reduce(function(f,h){return f.push(c(h)),f},[])},s.prototype.reduce=function(c,f){for(var h,d=this.iterator();h=d();)f=c(f,h);return f},s}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var m in l)l.hasOwnProperty(m)&&(a[m]=l[m])};return function(a,l){u(a,l);function m(){this.constructor=a}a.prototype=l===null?Object.create(l):(m.prototype=l.prototype,new m)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(17),c=o(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(u){i(a,u);function a(l){var m=u.call(this,l)||this;return m.scroll=m,m.observer=new MutationObserver(function(p){m.update(p)}),m.observer.observe(m.domNode,f),m.attach(),m}return a.prototype.detach=function(){u.prototype.detach.call(this),this.observer.disconnect()},a.prototype.deleteAt=function(l,m){this.update(),l===0&&m===this.length()?this.children.forEach(function(p){p.remove()}):u.prototype.deleteAt.call(this,l,m)},a.prototype.formatAt=function(l,m,p,b){this.update(),u.prototype.formatAt.call(this,l,m,p,b)},a.prototype.insertAt=function(l,m,p){this.update(),u.prototype.insertAt.call(this,l,m,p)},a.prototype.optimize=function(l,m){var p=this;l===void 0&&(l=[]),m===void 0&&(m={}),u.prototype.optimize.call(this,m);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)l.push(b.pop());for(var y=function(O,k){k===void 0&&(k=!0),!(O==null||O===p)&&O.domNode.parentNode!=null&&(O.domNode[c.DATA_KEY].mutations==null&&(O.domNode[c.DATA_KEY].mutations=[]),k&&y(O.parent))},g=function(O){O.domNode[c.DATA_KEY]==null||O.domNode[c.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(g),O.optimize(m))},_=l,v=0;_.length>0;v+=1){if(v>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var k=c.find(O.target,!0);k!=null&&(k.domNode===O.target&&(O.type==="childList"?(y(c.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=c.find(T,!1);y(A,!1),A instanceof s.default&&A.children.forEach(function(I){y(I,!1)})})):O.type==="attributes"&&y(k.prev)),y(k))}),this.children.forEach(g),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)l.push(b.pop())}},a.prototype.update=function(l,m){var p=this;m===void 0&&(m={}),l=l||this.observer.takeRecords(),l.map(function(b){var y=c.find(b.target,!0);return y==null?null:y.domNode[c.DATA_KEY].mutations==null?(y.domNode[c.DATA_KEY].mutations=[b],y):(y.domNode[c.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===p||b.domNode[c.DATA_KEY]==null||b.update(b.domNode[c.DATA_KEY].mutations||[],m)}),this.domNode[c.DATA_KEY].mutations!=null&&u.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,m),this.optimize(l,m)},a.blotName="scroll",a.defaultChild="block",a.scope=c.Scope.BLOCK_BLOT,a.tagName="DIV",a}(s.default);t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l])};return function(u,a){d(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),c=o(1);function f(d,u){if(Object.keys(d).length!==Object.keys(u).length)return!1;for(var a in d)if(d[a]!==u[a])return!1;return!0}var h=function(d){i(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.formats=function(a){if(a.tagName!==u.tagName)return d.formats.call(this,a)},u.prototype.format=function(a,l){var m=this;a===this.statics.blotName&&!l?(this.children.forEach(function(p){p instanceof s.default||(p=p.wrap(u.blotName,!0)),m.attributes.copy(p)}),this.unwrap()):d.prototype.format.call(this,a,l)},u.prototype.formatAt=function(a,l,m,p){if(this.formats()[m]!=null||c.query(m,c.Scope.ATTRIBUTE)){var b=this.isolate(a,l);b.format(m,p)}else d.prototype.formatAt.call(this,a,l,m,p)},u.prototype.optimize=function(a){d.prototype.optimize.call(this,a);var l=this.formats();if(Object.keys(l).length===0)return this.unwrap();var m=this.next;m instanceof u&&m.prev===this&&f(l,m.formats())&&(m.moveChildren(this),m.remove())},u.blotName="inline",u.scope=c.Scope.INLINE_BLOT,u.tagName="SPAN",u}(s.default);t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),c=o(1),f=function(h){i(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(u){var a=c.query(d.blotName).tagName;if(u.tagName!==a)return h.formats.call(this,u)},d.prototype.format=function(u,a){c.query(u,c.Scope.BLOCK)!=null&&(u===this.statics.blotName&&!a?this.replaceWith(d.blotName):h.prototype.format.call(this,u,a))},d.prototype.formatAt=function(u,a,l,m){c.query(l,c.Scope.BLOCK)!=null?this.format(l,m):h.prototype.formatAt.call(this,u,a,l,m)},d.prototype.insertAt=function(u,a,l){if(l==null||c.query(a,c.Scope.INLINE)!=null)h.prototype.insertAt.call(this,u,a,l);else{var m=this.split(u),p=c.create(a,l);m.parent.insertBefore(p,m)}},d.prototype.update=function(u,a){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,u,a)},d.blotName="block",d.scope=c.Scope.BLOCK_BLOT,d.tagName="P",d}(s.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)d.hasOwnProperty(u)&&(h[u]=d[u])};return function(h,d){f(h,d);function u(){this.constructor=h}h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),c=function(f){i(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,u){f.prototype.formatAt.call(this,0,this.length(),d,u)},h.prototype.formatAt=function(d,u,a,l){d===0&&u===this.length()?this.format(a,l):f.prototype.formatAt.call(this,d,u,a,l)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),c=o(1),f=function(h){i(d,h);function d(u){var a=h.call(this,u)||this;return a.text=a.statics.value(a.domNode),a}return d.create=function(u){return document.createTextNode(u)},d.value=function(u){var a=u.data;return a.normalize&&(a=a.normalize()),a},d.prototype.deleteAt=function(u,a){this.domNode.data=this.text=this.text.slice(0,u)+this.text.slice(u+a)},d.prototype.index=function(u,a){return this.domNode===u?a:-1},d.prototype.insertAt=function(u,a,l){l==null?(this.text=this.text.slice(0,u)+a+this.text.slice(u),this.domNode.data=this.text):h.prototype.insertAt.call(this,u,a,l)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(u){h.prototype.optimize.call(this,u),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(u,a){return[this.domNode,u]},d.prototype.split=function(u,a){if(a===void 0&&(a=!1),!a){if(u===0)return this;if(u===this.length())return this.next}var l=c.create(this.domNode.splitText(u));return this.parent.insertBefore(l,this.next),this.text=this.statics.value(this.domNode),l},d.prototype.update=function(u,a){var l=this;u.some(function(m){return m.type==="characterData"&&m.target===l.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=c.Scope.INLINE_BLOT,d}(s.default);t.default=f},function(n,t,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(c,f){return arguments.length>1&&!this.contains(c)==!f?f:s.call(this,c)}}String.prototype.startsWith||(String.prototype.startsWith=function(c,f){return f=f||0,this.substr(f,c.length)===c}),String.prototype.endsWith||(String.prototype.endsWith=function(c,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=c.length;var d=h.indexOf(c,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,u=arguments[1],a,l=0;l<d;l++)if(a=h[l],f.call(u,a,l,h))return a}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,t){var o=-1,i=1,s=0;function c(v,O,k){if(v==O)return v?[[s,v]]:[];(k<0||v.length<k)&&(k=null);var T=u(v,O),A=v.substring(0,T);v=v.substring(T),O=O.substring(T),T=a(v,O);var I=v.substring(v.length-T);v=v.substring(0,v.length-T),O=O.substring(0,O.length-T);var x=f(v,O);return A&&x.unshift([s,A]),I&&x.push([s,I]),m(x),k!=null&&(x=y(x,k)),x=g(x),x}function f(v,O){var k;if(!v)return[[i,O]];if(!O)return[[o,v]];var T=v.length>O.length?v:O,A=v.length>O.length?O:v,I=T.indexOf(A);if(I!=-1)return k=[[i,T.substring(0,I)],[s,A],[i,T.substring(I+A.length)]],v.length>O.length&&(k[0][0]=k[2][0]=o),k;if(A.length==1)return[[o,v],[i,O]];var x=l(v,O);if(x){var S=x[0],w=x[1],C=x[2],D=x[3],R=x[4],B=c(S,C),H=c(w,D);return B.concat([[s,R]],H)}return h(v,O)}function h(v,O){for(var k=v.length,T=O.length,A=Math.ceil((k+T)/2),I=A,x=2*A,S=new Array(x),w=new Array(x),C=0;C<x;C++)S[C]=-1,w[C]=-1;S[I+1]=0,w[I+1]=0;for(var D=k-T,R=D%2!=0,B=0,H=0,G=0,q=0,M=0;M<A;M++){for(var E=-M+B;E<=M-H;E+=2){var N=I+E,P;E==-M||E!=M&&S[N-1]<S[N+1]?P=S[N+1]:P=S[N-1]+1;for(var j=P-E;P<k&&j<T&&v.charAt(P)==O.charAt(j);)P++,j++;if(S[N]=P,P>k)H+=2;else if(j>T)B+=2;else if(R){var F=I+D-E;if(F>=0&&F<x&&w[F]!=-1){var L=k-w[F];if(P>=L)return d(v,O,P,j)}}}for(var $=-M+G;$<=M-q;$+=2){var F=I+$,L;$==-M||$!=M&&w[F-1]<w[F+1]?L=w[F+1]:L=w[F-1]+1;for(var U=L-$;L<k&&U<T&&v.charAt(k-L-1)==O.charAt(T-U-1);)L++,U++;if(w[F]=L,L>k)q+=2;else if(U>T)G+=2;else if(!R){var N=I+D-$;if(N>=0&&N<x&&S[N]!=-1){var P=S[N],j=I+P-N;if(L=k-L,P>=L)return d(v,O,P,j)}}}}return[[o,v],[i,O]]}function d(v,O,k,T){var A=v.substring(0,k),I=O.substring(0,T),x=v.substring(k),S=O.substring(T),w=c(A,I),C=c(x,S);return w.concat(C)}function u(v,O){if(!v||!O||v.charAt(0)!=O.charAt(0))return 0;for(var k=0,T=Math.min(v.length,O.length),A=T,I=0;k<A;)v.substring(I,A)==O.substring(I,A)?(k=A,I=k):T=A,A=Math.floor((T-k)/2+k);return A}function a(v,O){if(!v||!O||v.charAt(v.length-1)!=O.charAt(O.length-1))return 0;for(var k=0,T=Math.min(v.length,O.length),A=T,I=0;k<A;)v.substring(v.length-A,v.length-I)==O.substring(O.length-A,O.length-I)?(k=A,I=k):T=A,A=Math.floor((T-k)/2+k);return A}function l(v,O){var k=v.length>O.length?v:O,T=v.length>O.length?O:v;if(k.length<4||T.length*2<k.length)return null;function A(H,G,q){for(var M=H.substring(q,q+Math.floor(H.length/4)),E=-1,N="",P,j,F,L;(E=G.indexOf(M,E+1))!=-1;){var $=u(H.substring(q),G.substring(E)),U=a(H.substring(0,q),G.substring(0,E));N.length<U+$&&(N=G.substring(E-U,E)+G.substring(E,E+$),P=H.substring(0,q-U),j=H.substring(q+$),F=G.substring(0,E-U),L=G.substring(E+$))}return N.length*2>=H.length?[P,j,F,L,N]:null}var I=A(k,T,Math.ceil(k.length/4)),x=A(k,T,Math.ceil(k.length/2)),S;if(!I&&!x)return null;x?I?S=I[4].length>x[4].length?I:x:S=x:S=I;var w,C,D,R;v.length>O.length?(w=S[0],C=S[1],D=S[2],R=S[3]):(D=S[0],R=S[1],w=S[2],C=S[3]);var B=S[4];return[w,C,D,R,B]}function m(v){v.push([s,""]);for(var O=0,k=0,T=0,A="",I="",x;O<v.length;)switch(v[O][0]){case i:T++,I+=v[O][1],O++;break;case o:k++,A+=v[O][1],O++;break;case s:k+T>1?(k!==0&&T!==0&&(x=u(I,A),x!==0&&(O-k-T>0&&v[O-k-T-1][0]==s?v[O-k-T-1][1]+=I.substring(0,x):(v.splice(0,0,[s,I.substring(0,x)]),O++),I=I.substring(x),A=A.substring(x)),x=a(I,A),x!==0&&(v[O][1]=I.substring(I.length-x)+v[O][1],I=I.substring(0,I.length-x),A=A.substring(0,A.length-x))),k===0?v.splice(O-T,k+T,[i,I]):T===0?v.splice(O-k,k+T,[o,A]):v.splice(O-k-T,k+T,[o,A],[i,I]),O=O-k-T+(k?1:0)+(T?1:0)+1):O!==0&&v[O-1][0]==s?(v[O-1][1]+=v[O][1],v.splice(O,1)):O++,T=0,k=0,A="",I="";break}v[v.length-1][1]===""&&v.pop();var S=!1;for(O=1;O<v.length-1;)v[O-1][0]==s&&v[O+1][0]==s&&(v[O][1].substring(v[O][1].length-v[O-1][1].length)==v[O-1][1]?(v[O][1]=v[O-1][1]+v[O][1].substring(0,v[O][1].length-v[O-1][1].length),v[O+1][1]=v[O-1][1]+v[O+1][1],v.splice(O-1,1),S=!0):v[O][1].substring(0,v[O+1][1].length)==v[O+1][1]&&(v[O-1][1]+=v[O+1][1],v[O][1]=v[O][1].substring(v[O+1][1].length)+v[O+1][1],v.splice(O+1,1),S=!0)),O++;S&&m(v)}var p=c;p.INSERT=i,p.DELETE=o,p.EQUAL=s,n.exports=p;function b(v,O){if(O===0)return[s,v];for(var k=0,T=0;T<v.length;T++){var A=v[T];if(A[0]===o||A[0]===s){var I=k+A[1].length;if(O===I)return[T+1,v];if(O<I){v=v.slice();var x=O-k,S=[A[0],A[1].slice(0,x)],w=[A[0],A[1].slice(x)];return v.splice(T,1,S,w),[T+1,v]}else k=I}}throw new Error("cursor_pos is out of bounds!")}function y(v,O){var k=b(v,O),T=k[1],A=k[0],I=T[A],x=T[A+1];if(I==null)return v;if(I[0]!==s)return v;if(x!=null&&I[1]+x[1]===x[1]+I[1])return T.splice(A,2,x,I),_(T,A,2);if(x!=null&&x[1].indexOf(I[1])===0){T.splice(A,2,[x[0],I[1]],[0,I[1]]);var S=x[1].slice(I[1].length);return S.length>0&&T.splice(A+2,0,[x[0],S]),_(T,A,3)}else return v}function g(v){for(var O=!1,k=function(x){return x.charCodeAt(0)>=56320&&x.charCodeAt(0)<=57343},T=function(x){return x.charCodeAt(x.length-1)>=55296&&x.charCodeAt(x.length-1)<=56319},A=2;A<v.length;A+=1)v[A-2][0]===s&&T(v[A-2][1])&&v[A-1][0]===o&&k(v[A-1][1])&&v[A][0]===i&&k(v[A][1])&&(O=!0,v[A-1][1]=v[A-2][1].slice(-1)+v[A-1][1],v[A][1]=v[A-2][1].slice(-1)+v[A][1],v[A-2][1]=v[A-2][1].slice(0,-1));if(!O)return v;for(var I=[],A=0;A<v.length;A+=1)v[A][1].length>0&&I.push(v[A]);return I}function _(v,O,k){for(var T=O+k-1;T>=0&&T>=O-1;T--)if(T+1<v.length){var A=v[T],I=v[T+1];A[0]===I[1]&&v.splice(T,2,[A[0],A[1]+I[1]])}return v}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var s=[];for(var c in i)s.push(c);return s}},function(n,t){var o=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=n.exports=o?i:s,t.supported=i;function i(c){return Object.prototype.toString.call(c)=="[object Arguments]"}t.unsupported=s;function s(c){return c&&typeof c=="object"&&typeof c.length=="number"&&Object.prototype.hasOwnProperty.call(c,"callee")&&!Object.prototype.propertyIsEnumerable.call(c,"callee")||!1}},function(n,t){var o=Object.prototype.hasOwnProperty,i="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(i=!1));function c(h,d,u){this.fn=h,this.context=d,this.once=u||!1}function f(){this._events=new s,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],u,a;if(this._eventsCount===0)return d;for(a in u=this._events)o.call(u,a)&&d.push(i?a.slice(1):a);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},f.prototype.listeners=function(d,u){var a=i?i+d:d,l=this._events[a];if(u)return!!l;if(!l)return[];if(l.fn)return[l.fn];for(var m=0,p=l.length,b=new Array(p);m<p;m++)b[m]=l[m].fn;return b},f.prototype.emit=function(d,u,a,l,m,p){var b=i?i+d:d;if(!this._events[b])return!1;var y=this._events[b],g=arguments.length,_,v;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,a),!0;case 4:return y.fn.call(y.context,u,a,l),!0;case 5:return y.fn.call(y.context,u,a,l,m),!0;case 6:return y.fn.call(y.context,u,a,l,m,p),!0}for(v=1,_=new Array(g-1);v<g;v++)_[v-1]=arguments[v];y.fn.apply(y.context,_)}else{var O=y.length,k;for(v=0;v<O;v++)switch(y[v].once&&this.removeListener(d,y[v].fn,void 0,!0),g){case 1:y[v].fn.call(y[v].context);break;case 2:y[v].fn.call(y[v].context,u);break;case 3:y[v].fn.call(y[v].context,u,a);break;case 4:y[v].fn.call(y[v].context,u,a,l);break;default:if(!_)for(k=1,_=new Array(g-1);k<g;k++)_[k-1]=arguments[k];y[v].fn.apply(y[v].context,_)}}return!0},f.prototype.on=function(d,u,a){var l=new c(u,a||this),m=i?i+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],l]:this._events[m].push(l):(this._events[m]=l,this._eventsCount++),this},f.prototype.once=function(d,u,a){var l=new c(u,a||this,!0),m=i?i+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],l]:this._events[m].push(l):(this._events[m]=l,this._eventsCount++),this},f.prototype.removeListener=function(d,u,a,l){var m=i?i+d:d;if(!this._events[m])return this;if(!u)return--this._eventsCount==0?this._events=new s:delete this._events[m],this;var p=this._events[m];if(p.fn)p.fn===u&&(!l||p.once)&&(!a||p.context===a)&&(--this._eventsCount==0?this._events=new s:delete this._events[m]);else{for(var b=0,y=[],g=p.length;b<g;b++)(p[b].fn!==u||l&&!p[b].once||a&&p[b].context!==a)&&y.push(p[b]);y.length?this._events[m]=y.length===1?y[0]:y:--this._eventsCount==0?this._events=new s:delete this._events[m]}return this},f.prototype.removeAllListeners=function(d){var u;return d?(u=i?i+d:d,this._events[u]&&(--this._eventsCount==0?this._events=new s:delete this._events[u])):(this._events=new s,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=i,f.EventEmitter=f,typeof n!="undefined"&&(n.exports=f)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},s=function(){function W(K,Z){var J=[],Y=!0,le=!1,se=void 0;try{for(var ue=K[Symbol.iterator](),ze;!(Y=(ze=ue.next()).done)&&(J.push(ze.value),!(Z&&J.length===Z));Y=!0);}catch(et){le=!0,se=et}finally{try{!Y&&ue.return&&ue.return()}finally{if(le)throw se}}return J}return function(K,Z){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return W(K,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function W(K,Z){for(var J=0;J<Z.length;J++){var Y=Z[J];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(K,Y.key,Y)}}return function(K,Z,J){return Z&&W(K.prototype,Z),J&&W(K,J),K}}(),f=o(3),h=w(f),d=o(2),u=w(d),a=o(0),l=w(a),m=o(5),p=w(m),b=o(10),y=w(b),g=o(9),_=w(g),v=o(36),O=o(37),k=o(13),T=w(k),A=o(26),I=o(38),x=o(39),S=o(40);function w(W){return W&&W.__esModule?W:{default:W}}function C(W,K,Z){return K in W?Object.defineProperty(W,K,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[K]=Z,W}function D(W,K){if(!(W instanceof K))throw new TypeError("Cannot call a class as a function")}function R(W,K){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:W}function B(W,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);W.prototype=Object.create(K&&K.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(W,K):W.__proto__=K)}var H=(0,y.default)("quill:clipboard"),G="__ql-matcher",q=[[Node.TEXT_NODE,xe],[Node.TEXT_NODE,ce],["br",Q],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,he],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,je],["li",oe],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",ne]],M=[v.AlignAttribute,I.DirectionAttribute].reduce(function(W,K){return W[K.keyName]=K,W},{}),E=[v.AlignStyle,O.BackgroundStyle,A.ColorStyle,I.DirectionStyle,x.FontStyle,S.SizeStyle].reduce(function(W,K){return W[K.keyName]=K,W},{}),N=function(W){B(K,W);function K(Z,J){D(this,K);var Y=R(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Z,J));return Y.quill.root.addEventListener("paste",Y.onPaste.bind(Y)),Y.container=Y.quill.addContainer("ql-clipboard"),Y.container.setAttribute("contenteditable",!0),Y.container.setAttribute("tabindex",-1),Y.matchers=[],q.concat(Y.options.matchers).forEach(function(le){var se=s(le,2),ue=se[0],ze=se[1];!J.matchVisual&&ze===he||Y.addMatcher(ue,ze)}),Y}return c(K,[{key:"addMatcher",value:function(J,Y){this.matchers.push([J,Y])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var Y=this.quill.getFormat(this.quill.selection.savedRange.index);if(Y[T.default.blotName]){var le=this.container.innerText;return this.container.innerHTML="",new u.default().insert(le,C({},T.default.blotName,Y[T.default.blotName]))}var se=this.prepareMatching(),ue=s(se,2),ze=ue[0],et=ue[1],me=$(this.container,ze,et);return F(me,`
43
- `)&&me.ops[me.ops.length-1].attributes==null&&(me=me.compose(new u.default().retain(me.length()-1).delete(1))),H.log("convert",this.container.innerHTML,me),this.container.innerHTML="",me}},{key:"dangerouslyPasteHTML",value:function(J,Y){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof J=="string")this.quill.setContents(this.convert(J),Y),this.quill.setSelection(0,p.default.sources.SILENT);else{var se=this.convert(Y);this.quill.updateContents(new u.default().retain(J).concat(se),le),this.quill.setSelection(J+se.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(J){var Y=this;if(!(J.defaultPrevented||!this.quill.isEnabled())){var le=this.quill.getSelection(),se=new u.default().retain(le.index),ue=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout(function(){se=se.concat(Y.convert()).delete(le.length),Y.quill.updateContents(se,p.default.sources.USER),Y.quill.setSelection(se.length()-le.length,p.default.sources.SILENT),Y.quill.scrollingContainer.scrollTop=ue,Y.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var J=this,Y=[],le=[];return this.matchers.forEach(function(se){var ue=s(se,2),ze=ue[0],et=ue[1];switch(ze){case Node.TEXT_NODE:le.push(et);break;case Node.ELEMENT_NODE:Y.push(et);break;default:[].forEach.call(J.container.querySelectorAll(ze),function(me){me[G]=me[G]||[],me[G].push(et)});break}}),[Y,le]}}]),K}(_.default);N.DEFAULTS={matchers:[],matchVisual:!0};function P(W,K,Z){return(typeof K=="undefined"?"undefined":i(K))==="object"?Object.keys(K).reduce(function(J,Y){return P(J,Y,K[Y])},W):W.reduce(function(J,Y){return Y.attributes&&Y.attributes[K]?J.push(Y):J.insert(Y.insert,(0,h.default)({},C({},K,Z),Y.attributes))},new u.default)}function j(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return W[K]||(W[K]=window.getComputedStyle(W))}function F(W,K){for(var Z="",J=W.ops.length-1;J>=0&&Z.length<K.length;--J){var Y=W.ops[J];if(typeof Y.insert!="string")break;Z=Y.insert+Z}return Z.slice(-1*K.length)===K}function L(W){if(W.childNodes.length===0)return!1;var K=j(W);return["block","list-item"].indexOf(K.display)>-1}function $(W,K,Z){return W.nodeType===W.TEXT_NODE?Z.reduce(function(J,Y){return Y(W,J)},new u.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(J,Y){var le=$(Y,K,Z);return Y.nodeType===W.ELEMENT_NODE&&(le=K.reduce(function(se,ue){return ue(Y,se)},le),le=(Y[G]||[]).reduce(function(se,ue){return ue(Y,se)},le)),J.concat(le)},new u.default):new u.default}function U(W,K,Z){return P(Z,W,!0)}function z(W,K){var Z=l.default.Attributor.Attribute.keys(W),J=l.default.Attributor.Class.keys(W),Y=l.default.Attributor.Style.keys(W),le={};return Z.concat(J).concat(Y).forEach(function(se){var ue=l.default.query(se,l.default.Scope.ATTRIBUTE);ue!=null&&(le[ue.attrName]=ue.value(W),le[ue.attrName])||(ue=M[se],ue!=null&&(ue.attrName===se||ue.keyName===se)&&(le[ue.attrName]=ue.value(W)||void 0),ue=E[se],ue!=null&&(ue.attrName===se||ue.keyName===se)&&(ue=E[se],le[ue.attrName]=ue.value(W)||void 0))}),Object.keys(le).length>0&&(K=P(K,le)),K}function V(W,K){var Z=l.default.query(W);if(Z==null)return K;if(Z.prototype instanceof l.default.Embed){var J={},Y=Z.value(W);Y!=null&&(J[Z.blotName]=Y,K=new u.default().insert(J,Z.formats(W)))}else typeof Z.formats=="function"&&(K=P(K,Z.blotName,Z.formats(W)));return K}function Q(W,K){return F(K,`
42
+ `):v.attributes!=null?Object.keys(v.attributes).some(function(O){return c.default.query(O,c.default.Scope.BLOCK)!=null}):!1}function g(_){var v=_.reduce(function(k,T){return k+=T.delete||0,k},0),O=_.length()-v;return y(_)&&(O-=1),O}t.default=b,t.getLastChangeIndex=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function N(P,j){for(var F=0;F<j.length;F++){var L=j[F];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,L.key,L)}}return function(P,j,F){return j&&N(P.prototype,j),F&&N(P,F),P}}(),s=function N(P,j,F){P===null&&(P=Function.prototype);var L=Object.getOwnPropertyDescriptor(P,j);if(L===void 0){var M=Object.getPrototypeOf(P);return M===null?void 0:N(M,j,F)}else{if("value"in L)return L.value;var U=L.get;return U===void 0?void 0:U.call(F)}},c=o(3),f=I(c),h=o(2),d=I(h),u=o(8),a=I(u),l=o(23),m=I(l),p=o(34),b=I(p),y=o(59),g=I(y),_=o(60),v=I(_),O=o(28),k=I(O),T=o(61),A=I(T);function I(N){return N&&N.__esModule?N:{default:N}}function x(N,P){if(!(N instanceof P))throw new TypeError("Cannot call a class as a function")}function S(N,P){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:N}function w(N,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);N.prototype=Object.create(P&&P.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(N,P):N.__proto__=P)}var C=[!1,"center","right","justify"],D=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],R=[!1,"serif","monospace"],B=["1","2","3",!1],H=["small",!1,"large","huge"],G=function(N){w(P,N);function P(j,F){x(this,P);var L=S(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,j,F)),M=function U(z){if(!document.body.contains(j.root))return document.body.removeEventListener("click",U);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(V){V.container.contains(z.target)||V.close()})};return j.emitter.listenDOM("click",document.body,M),L}return i(P,[{key:"addModule",value:function(F){var L=s(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"addModule",this).call(this,F);return F==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(F,L){F.forEach(function(M){var U=M.getAttribute("class")||"";U.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),L[z]!=null))if(z==="direction")M.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")M.innerHTML=L[z];else{var V=M.value||"";V!=null&&L[z][V]&&(M.innerHTML=L[z][V])}})})}},{key:"buildPickers",value:function(F,L){var M=this;this.pickers=F.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&E(z,C),new v.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var V=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&E(z,D,V==="background"?"#ffffff":"#000000"),new g.default(z,L[V])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?E(z,R):z.classList.contains("ql-header")?E(z,B):z.classList.contains("ql-size")&&E(z,H)),new k.default(z)});var U=function(){M.pickers.forEach(function(V){V.update()})};this.quill.on(a.default.events.EDITOR_CHANGE,U)}}]),P}(b.default);G.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var P=this,j=this.container.querySelector("input.ql-image[type=file]");j==null&&(j=document.createElement("input"),j.setAttribute("type","file"),j.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),j.classList.add("ql-image"),j.addEventListener("change",function(){if(j.files!=null&&j.files[0]!=null){var F=new FileReader;F.onload=function(L){var M=P.quill.getSelection(!0);P.quill.updateContents(new d.default().retain(M.index).delete(M.length).insert({image:L.target.result}),a.default.sources.USER),P.quill.setSelection(M.index+1,a.default.sources.SILENT),j.value=""},F.readAsDataURL(j.files[0])}}),this.container.appendChild(j)),j.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(N){w(P,N);function P(j,F){x(this,P);var L=S(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,j,F));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(P,[{key:"listen",value:function(){var F=this;this.textbox.addEventListener("keydown",function(L){m.default.match(L,"enter")?(F.save(),L.preventDefault()):m.default.match(L,"escape")&&(F.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:F!==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-"+F)||""),this.root.setAttribute("data-mode",F)}},{key:"restoreFocus",value:function(){var F=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=F}},{key:"save",value:function(){var F=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",F,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",F,a.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":F=$(F);case"formula":{if(!F)break;var M=this.quill.getSelection(!0);if(M!=null){var U=M.index+M.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),F,a.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",a.default.sources.USER),this.quill.setSelection(U+2,a.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),P}(A.default);function $(N){var P=N.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||N.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return P?(P[1]||"https")+"://www.youtube.com/embed/"+P[2]+"?showinfo=0":(P=N.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(P[1]||"https")+"://player.vimeo.com/video/"+P[2]+"/":N}function E(N,P){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;P.forEach(function(F){var L=document.createElement("option");F===j?L.setAttribute("selected","selected"):L.setAttribute("value",F),N.appendChild(L)})}t.BaseTooltip=q,t.default=G},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];this.insertBefore(c[0],null),c.length>1&&this.append.apply(this,c.slice(1))},s.prototype.contains=function(c){for(var f,h=this.iterator();f=h();)if(f===c)return!0;return!1},s.prototype.insertBefore=function(c,f){!c||(c.next=f,f!=null?(c.prev=f.prev,f.prev!=null&&(f.prev.next=c),f.prev=c,f===this.head&&(this.head=c)):this.tail!=null?(this.tail.next=c,c.prev=this.tail,this.tail=c):(c.prev=null,this.head=this.tail=c),this.length+=1)},s.prototype.offset=function(c){for(var f=0,h=this.head;h!=null;){if(h===c)return f;f+=h.length(),h=h.next}return-1},s.prototype.remove=function(c){!this.contains(c)||(c.prev!=null&&(c.prev.next=c.next),c.next!=null&&(c.next.prev=c.prev),c===this.head&&(this.head=c.next),c===this.tail&&(this.tail=c.prev),this.length-=1)},s.prototype.iterator=function(c){return c===void 0&&(c=this.head),function(){var f=c;return c!=null&&(c=c.next),f}},s.prototype.find=function(c,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var u=h.length();if(c<u||f&&c===u&&(h.next==null||h.next.length()!==0))return[h,c];c-=u}return[null,0]},s.prototype.forEach=function(c){for(var f,h=this.iterator();f=h();)c(f)},s.prototype.forEachAt=function(c,f,h){if(!(f<=0))for(var d=this.find(c),u=d[0],a=d[1],l,m=c-a,p=this.iterator(u);(l=p())&&m<c+f;){var b=l.length();c>m?h(l,c-m,Math.min(f,m+b-c)):h(l,0,Math.min(b,c+f-m)),m+=b}},s.prototype.map=function(c){return this.reduce(function(f,h){return f.push(c(h)),f},[])},s.prototype.reduce=function(c,f){for(var h,d=this.iterator();h=d();)f=c(f,h);return f},s}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var m in l)l.hasOwnProperty(m)&&(a[m]=l[m])};return function(a,l){u(a,l);function m(){this.constructor=a}a.prototype=l===null?Object.create(l):(m.prototype=l.prototype,new m)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(17),c=o(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(u){i(a,u);function a(l){var m=u.call(this,l)||this;return m.scroll=m,m.observer=new MutationObserver(function(p){m.update(p)}),m.observer.observe(m.domNode,f),m.attach(),m}return a.prototype.detach=function(){u.prototype.detach.call(this),this.observer.disconnect()},a.prototype.deleteAt=function(l,m){this.update(),l===0&&m===this.length()?this.children.forEach(function(p){p.remove()}):u.prototype.deleteAt.call(this,l,m)},a.prototype.formatAt=function(l,m,p,b){this.update(),u.prototype.formatAt.call(this,l,m,p,b)},a.prototype.insertAt=function(l,m,p){this.update(),u.prototype.insertAt.call(this,l,m,p)},a.prototype.optimize=function(l,m){var p=this;l===void 0&&(l=[]),m===void 0&&(m={}),u.prototype.optimize.call(this,m);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)l.push(b.pop());for(var y=function(O,k){k===void 0&&(k=!0),!(O==null||O===p)&&O.domNode.parentNode!=null&&(O.domNode[c.DATA_KEY].mutations==null&&(O.domNode[c.DATA_KEY].mutations=[]),k&&y(O.parent))},g=function(O){O.domNode[c.DATA_KEY]==null||O.domNode[c.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(g),O.optimize(m))},_=l,v=0;_.length>0;v+=1){if(v>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var k=c.find(O.target,!0);k!=null&&(k.domNode===O.target&&(O.type==="childList"?(y(c.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=c.find(T,!1);y(A,!1),A instanceof s.default&&A.children.forEach(function(I){y(I,!1)})})):O.type==="attributes"&&y(k.prev)),y(k))}),this.children.forEach(g),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)l.push(b.pop())}},a.prototype.update=function(l,m){var p=this;m===void 0&&(m={}),l=l||this.observer.takeRecords(),l.map(function(b){var y=c.find(b.target,!0);return y==null?null:y.domNode[c.DATA_KEY].mutations==null?(y.domNode[c.DATA_KEY].mutations=[b],y):(y.domNode[c.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===p||b.domNode[c.DATA_KEY]==null||b.update(b.domNode[c.DATA_KEY].mutations||[],m)}),this.domNode[c.DATA_KEY].mutations!=null&&u.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,m),this.optimize(l,m)},a.blotName="scroll",a.defaultChild="block",a.scope=c.Scope.BLOCK_BLOT,a.tagName="DIV",a}(s.default);t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l])};return function(u,a){d(u,a);function l(){this.constructor=u}u.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),c=o(1);function f(d,u){if(Object.keys(d).length!==Object.keys(u).length)return!1;for(var a in d)if(d[a]!==u[a])return!1;return!0}var h=function(d){i(u,d);function u(){return d!==null&&d.apply(this,arguments)||this}return u.formats=function(a){if(a.tagName!==u.tagName)return d.formats.call(this,a)},u.prototype.format=function(a,l){var m=this;a===this.statics.blotName&&!l?(this.children.forEach(function(p){p instanceof s.default||(p=p.wrap(u.blotName,!0)),m.attributes.copy(p)}),this.unwrap()):d.prototype.format.call(this,a,l)},u.prototype.formatAt=function(a,l,m,p){if(this.formats()[m]!=null||c.query(m,c.Scope.ATTRIBUTE)){var b=this.isolate(a,l);b.format(m,p)}else d.prototype.formatAt.call(this,a,l,m,p)},u.prototype.optimize=function(a){d.prototype.optimize.call(this,a);var l=this.formats();if(Object.keys(l).length===0)return this.unwrap();var m=this.next;m instanceof u&&m.prev===this&&f(l,m.formats())&&(m.moveChildren(this),m.remove())},u.blotName="inline",u.scope=c.Scope.INLINE_BLOT,u.tagName="SPAN",u}(s.default);t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),c=o(1),f=function(h){i(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(u){var a=c.query(d.blotName).tagName;if(u.tagName!==a)return h.formats.call(this,u)},d.prototype.format=function(u,a){c.query(u,c.Scope.BLOCK)!=null&&(u===this.statics.blotName&&!a?this.replaceWith(d.blotName):h.prototype.format.call(this,u,a))},d.prototype.formatAt=function(u,a,l,m){c.query(l,c.Scope.BLOCK)!=null?this.format(l,m):h.prototype.formatAt.call(this,u,a,l,m)},d.prototype.insertAt=function(u,a,l){if(l==null||c.query(a,c.Scope.INLINE)!=null)h.prototype.insertAt.call(this,u,a,l);else{var m=this.split(u),p=c.create(a,l);m.parent.insertBefore(p,m)}},d.prototype.update=function(u,a){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,u,a)},d.blotName="block",d.scope=c.Scope.BLOCK_BLOT,d.tagName="P",d}(s.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)d.hasOwnProperty(u)&&(h[u]=d[u])};return function(h,d){f(h,d);function u(){this.constructor=h}h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),c=function(f){i(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,u){f.prototype.formatAt.call(this,0,this.length(),d,u)},h.prototype.formatAt=function(d,u,a,l){d===0&&u===this.length()?this.format(a,l):f.prototype.formatAt.call(this,d,u,a,l)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var a in u)u.hasOwnProperty(a)&&(d[a]=u[a])};return function(d,u){h(d,u);function a(){this.constructor=d}d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),c=o(1),f=function(h){i(d,h);function d(u){var a=h.call(this,u)||this;return a.text=a.statics.value(a.domNode),a}return d.create=function(u){return document.createTextNode(u)},d.value=function(u){var a=u.data;return a.normalize&&(a=a.normalize()),a},d.prototype.deleteAt=function(u,a){this.domNode.data=this.text=this.text.slice(0,u)+this.text.slice(u+a)},d.prototype.index=function(u,a){return this.domNode===u?a:-1},d.prototype.insertAt=function(u,a,l){l==null?(this.text=this.text.slice(0,u)+a+this.text.slice(u),this.domNode.data=this.text):h.prototype.insertAt.call(this,u,a,l)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(u){h.prototype.optimize.call(this,u),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(u,a){return[this.domNode,u]},d.prototype.split=function(u,a){if(a===void 0&&(a=!1),!a){if(u===0)return this;if(u===this.length())return this.next}var l=c.create(this.domNode.splitText(u));return this.parent.insertBefore(l,this.next),this.text=this.statics.value(this.domNode),l},d.prototype.update=function(u,a){var l=this;u.some(function(m){return m.type==="characterData"&&m.target===l.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=c.Scope.INLINE_BLOT,d}(s.default);t.default=f},function(n,t,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(c,f){return arguments.length>1&&!this.contains(c)==!f?f:s.call(this,c)}}String.prototype.startsWith||(String.prototype.startsWith=function(c,f){return f=f||0,this.substr(f,c.length)===c}),String.prototype.endsWith||(String.prototype.endsWith=function(c,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=c.length;var d=h.indexOf(c,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,u=arguments[1],a,l=0;l<d;l++)if(a=h[l],f.call(u,a,l,h))return a}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,t){var o=-1,i=1,s=0;function c(v,O,k){if(v==O)return v?[[s,v]]:[];(k<0||v.length<k)&&(k=null);var T=u(v,O),A=v.substring(0,T);v=v.substring(T),O=O.substring(T),T=a(v,O);var I=v.substring(v.length-T);v=v.substring(0,v.length-T),O=O.substring(0,O.length-T);var x=f(v,O);return A&&x.unshift([s,A]),I&&x.push([s,I]),m(x),k!=null&&(x=y(x,k)),x=g(x),x}function f(v,O){var k;if(!v)return[[i,O]];if(!O)return[[o,v]];var T=v.length>O.length?v:O,A=v.length>O.length?O:v,I=T.indexOf(A);if(I!=-1)return k=[[i,T.substring(0,I)],[s,A],[i,T.substring(I+A.length)]],v.length>O.length&&(k[0][0]=k[2][0]=o),k;if(A.length==1)return[[o,v],[i,O]];var x=l(v,O);if(x){var S=x[0],w=x[1],C=x[2],D=x[3],R=x[4],B=c(S,C),H=c(w,D);return B.concat([[s,R]],H)}return h(v,O)}function h(v,O){for(var k=v.length,T=O.length,A=Math.ceil((k+T)/2),I=A,x=2*A,S=new Array(x),w=new Array(x),C=0;C<x;C++)S[C]=-1,w[C]=-1;S[I+1]=0,w[I+1]=0;for(var D=k-T,R=D%2!=0,B=0,H=0,G=0,q=0,$=0;$<A;$++){for(var E=-$+B;E<=$-H;E+=2){var N=I+E,P;E==-$||E!=$&&S[N-1]<S[N+1]?P=S[N+1]:P=S[N-1]+1;for(var j=P-E;P<k&&j<T&&v.charAt(P)==O.charAt(j);)P++,j++;if(S[N]=P,P>k)H+=2;else if(j>T)B+=2;else if(R){var F=I+D-E;if(F>=0&&F<x&&w[F]!=-1){var L=k-w[F];if(P>=L)return d(v,O,P,j)}}}for(var M=-$+G;M<=$-q;M+=2){var F=I+M,L;M==-$||M!=$&&w[F-1]<w[F+1]?L=w[F+1]:L=w[F-1]+1;for(var U=L-M;L<k&&U<T&&v.charAt(k-L-1)==O.charAt(T-U-1);)L++,U++;if(w[F]=L,L>k)q+=2;else if(U>T)G+=2;else if(!R){var N=I+D-M;if(N>=0&&N<x&&S[N]!=-1){var P=S[N],j=I+P-N;if(L=k-L,P>=L)return d(v,O,P,j)}}}}return[[o,v],[i,O]]}function d(v,O,k,T){var A=v.substring(0,k),I=O.substring(0,T),x=v.substring(k),S=O.substring(T),w=c(A,I),C=c(x,S);return w.concat(C)}function u(v,O){if(!v||!O||v.charAt(0)!=O.charAt(0))return 0;for(var k=0,T=Math.min(v.length,O.length),A=T,I=0;k<A;)v.substring(I,A)==O.substring(I,A)?(k=A,I=k):T=A,A=Math.floor((T-k)/2+k);return A}function a(v,O){if(!v||!O||v.charAt(v.length-1)!=O.charAt(O.length-1))return 0;for(var k=0,T=Math.min(v.length,O.length),A=T,I=0;k<A;)v.substring(v.length-A,v.length-I)==O.substring(O.length-A,O.length-I)?(k=A,I=k):T=A,A=Math.floor((T-k)/2+k);return A}function l(v,O){var k=v.length>O.length?v:O,T=v.length>O.length?O:v;if(k.length<4||T.length*2<k.length)return null;function A(H,G,q){for(var $=H.substring(q,q+Math.floor(H.length/4)),E=-1,N="",P,j,F,L;(E=G.indexOf($,E+1))!=-1;){var M=u(H.substring(q),G.substring(E)),U=a(H.substring(0,q),G.substring(0,E));N.length<U+M&&(N=G.substring(E-U,E)+G.substring(E,E+M),P=H.substring(0,q-U),j=H.substring(q+M),F=G.substring(0,E-U),L=G.substring(E+M))}return N.length*2>=H.length?[P,j,F,L,N]:null}var I=A(k,T,Math.ceil(k.length/4)),x=A(k,T,Math.ceil(k.length/2)),S;if(!I&&!x)return null;x?I?S=I[4].length>x[4].length?I:x:S=x:S=I;var w,C,D,R;v.length>O.length?(w=S[0],C=S[1],D=S[2],R=S[3]):(D=S[0],R=S[1],w=S[2],C=S[3]);var B=S[4];return[w,C,D,R,B]}function m(v){v.push([s,""]);for(var O=0,k=0,T=0,A="",I="",x;O<v.length;)switch(v[O][0]){case i:T++,I+=v[O][1],O++;break;case o:k++,A+=v[O][1],O++;break;case s:k+T>1?(k!==0&&T!==0&&(x=u(I,A),x!==0&&(O-k-T>0&&v[O-k-T-1][0]==s?v[O-k-T-1][1]+=I.substring(0,x):(v.splice(0,0,[s,I.substring(0,x)]),O++),I=I.substring(x),A=A.substring(x)),x=a(I,A),x!==0&&(v[O][1]=I.substring(I.length-x)+v[O][1],I=I.substring(0,I.length-x),A=A.substring(0,A.length-x))),k===0?v.splice(O-T,k+T,[i,I]):T===0?v.splice(O-k,k+T,[o,A]):v.splice(O-k-T,k+T,[o,A],[i,I]),O=O-k-T+(k?1:0)+(T?1:0)+1):O!==0&&v[O-1][0]==s?(v[O-1][1]+=v[O][1],v.splice(O,1)):O++,T=0,k=0,A="",I="";break}v[v.length-1][1]===""&&v.pop();var S=!1;for(O=1;O<v.length-1;)v[O-1][0]==s&&v[O+1][0]==s&&(v[O][1].substring(v[O][1].length-v[O-1][1].length)==v[O-1][1]?(v[O][1]=v[O-1][1]+v[O][1].substring(0,v[O][1].length-v[O-1][1].length),v[O+1][1]=v[O-1][1]+v[O+1][1],v.splice(O-1,1),S=!0):v[O][1].substring(0,v[O+1][1].length)==v[O+1][1]&&(v[O-1][1]+=v[O+1][1],v[O][1]=v[O][1].substring(v[O+1][1].length)+v[O+1][1],v.splice(O+1,1),S=!0)),O++;S&&m(v)}var p=c;p.INSERT=i,p.DELETE=o,p.EQUAL=s,n.exports=p;function b(v,O){if(O===0)return[s,v];for(var k=0,T=0;T<v.length;T++){var A=v[T];if(A[0]===o||A[0]===s){var I=k+A[1].length;if(O===I)return[T+1,v];if(O<I){v=v.slice();var x=O-k,S=[A[0],A[1].slice(0,x)],w=[A[0],A[1].slice(x)];return v.splice(T,1,S,w),[T+1,v]}else k=I}}throw new Error("cursor_pos is out of bounds!")}function y(v,O){var k=b(v,O),T=k[1],A=k[0],I=T[A],x=T[A+1];if(I==null)return v;if(I[0]!==s)return v;if(x!=null&&I[1]+x[1]===x[1]+I[1])return T.splice(A,2,x,I),_(T,A,2);if(x!=null&&x[1].indexOf(I[1])===0){T.splice(A,2,[x[0],I[1]],[0,I[1]]);var S=x[1].slice(I[1].length);return S.length>0&&T.splice(A+2,0,[x[0],S]),_(T,A,3)}else return v}function g(v){for(var O=!1,k=function(x){return x.charCodeAt(0)>=56320&&x.charCodeAt(0)<=57343},T=function(x){return x.charCodeAt(x.length-1)>=55296&&x.charCodeAt(x.length-1)<=56319},A=2;A<v.length;A+=1)v[A-2][0]===s&&T(v[A-2][1])&&v[A-1][0]===o&&k(v[A-1][1])&&v[A][0]===i&&k(v[A][1])&&(O=!0,v[A-1][1]=v[A-2][1].slice(-1)+v[A-1][1],v[A][1]=v[A-2][1].slice(-1)+v[A][1],v[A-2][1]=v[A-2][1].slice(0,-1));if(!O)return v;for(var I=[],A=0;A<v.length;A+=1)v[A][1].length>0&&I.push(v[A]);return I}function _(v,O,k){for(var T=O+k-1;T>=0&&T>=O-1;T--)if(T+1<v.length){var A=v[T],I=v[T+1];A[0]===I[1]&&v.splice(T,2,[A[0],A[1]+I[1]])}return v}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var s=[];for(var c in i)s.push(c);return s}},function(n,t){var o=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=n.exports=o?i:s,t.supported=i;function i(c){return Object.prototype.toString.call(c)=="[object Arguments]"}t.unsupported=s;function s(c){return c&&typeof c=="object"&&typeof c.length=="number"&&Object.prototype.hasOwnProperty.call(c,"callee")&&!Object.prototype.propertyIsEnumerable.call(c,"callee")||!1}},function(n,t){var o=Object.prototype.hasOwnProperty,i="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(i=!1));function c(h,d,u){this.fn=h,this.context=d,this.once=u||!1}function f(){this._events=new s,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],u,a;if(this._eventsCount===0)return d;for(a in u=this._events)o.call(u,a)&&d.push(i?a.slice(1):a);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},f.prototype.listeners=function(d,u){var a=i?i+d:d,l=this._events[a];if(u)return!!l;if(!l)return[];if(l.fn)return[l.fn];for(var m=0,p=l.length,b=new Array(p);m<p;m++)b[m]=l[m].fn;return b},f.prototype.emit=function(d,u,a,l,m,p){var b=i?i+d:d;if(!this._events[b])return!1;var y=this._events[b],g=arguments.length,_,v;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,a),!0;case 4:return y.fn.call(y.context,u,a,l),!0;case 5:return y.fn.call(y.context,u,a,l,m),!0;case 6:return y.fn.call(y.context,u,a,l,m,p),!0}for(v=1,_=new Array(g-1);v<g;v++)_[v-1]=arguments[v];y.fn.apply(y.context,_)}else{var O=y.length,k;for(v=0;v<O;v++)switch(y[v].once&&this.removeListener(d,y[v].fn,void 0,!0),g){case 1:y[v].fn.call(y[v].context);break;case 2:y[v].fn.call(y[v].context,u);break;case 3:y[v].fn.call(y[v].context,u,a);break;case 4:y[v].fn.call(y[v].context,u,a,l);break;default:if(!_)for(k=1,_=new Array(g-1);k<g;k++)_[k-1]=arguments[k];y[v].fn.apply(y[v].context,_)}}return!0},f.prototype.on=function(d,u,a){var l=new c(u,a||this),m=i?i+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],l]:this._events[m].push(l):(this._events[m]=l,this._eventsCount++),this},f.prototype.once=function(d,u,a){var l=new c(u,a||this,!0),m=i?i+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],l]:this._events[m].push(l):(this._events[m]=l,this._eventsCount++),this},f.prototype.removeListener=function(d,u,a,l){var m=i?i+d:d;if(!this._events[m])return this;if(!u)return--this._eventsCount==0?this._events=new s:delete this._events[m],this;var p=this._events[m];if(p.fn)p.fn===u&&(!l||p.once)&&(!a||p.context===a)&&(--this._eventsCount==0?this._events=new s:delete this._events[m]);else{for(var b=0,y=[],g=p.length;b<g;b++)(p[b].fn!==u||l&&!p[b].once||a&&p[b].context!==a)&&y.push(p[b]);y.length?this._events[m]=y.length===1?y[0]:y:--this._eventsCount==0?this._events=new s:delete this._events[m]}return this},f.prototype.removeAllListeners=function(d){var u;return d?(u=i?i+d:d,this._events[u]&&(--this._eventsCount==0?this._events=new s:delete this._events[u])):(this._events=new s,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=i,f.EventEmitter=f,typeof n!="undefined"&&(n.exports=f)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},s=function(){function W(K,Z){var J=[],Y=!0,le=!1,se=void 0;try{for(var ue=K[Symbol.iterator](),ze;!(Y=(ze=ue.next()).done)&&(J.push(ze.value),!(Z&&J.length===Z));Y=!0);}catch(et){le=!0,se=et}finally{try{!Y&&ue.return&&ue.return()}finally{if(le)throw se}}return J}return function(K,Z){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return W(K,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function W(K,Z){for(var J=0;J<Z.length;J++){var Y=Z[J];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(K,Y.key,Y)}}return function(K,Z,J){return Z&&W(K.prototype,Z),J&&W(K,J),K}}(),f=o(3),h=w(f),d=o(2),u=w(d),a=o(0),l=w(a),m=o(5),p=w(m),b=o(10),y=w(b),g=o(9),_=w(g),v=o(36),O=o(37),k=o(13),T=w(k),A=o(26),I=o(38),x=o(39),S=o(40);function w(W){return W&&W.__esModule?W:{default:W}}function C(W,K,Z){return K in W?Object.defineProperty(W,K,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[K]=Z,W}function D(W,K){if(!(W instanceof K))throw new TypeError("Cannot call a class as a function")}function R(W,K){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:W}function B(W,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);W.prototype=Object.create(K&&K.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(W,K):W.__proto__=K)}var H=(0,y.default)("quill:clipboard"),G="__ql-matcher",q=[[Node.TEXT_NODE,xe],[Node.TEXT_NODE,ce],["br",Q],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,he],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,je],["li",oe],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",ne]],$=[v.AlignAttribute,I.DirectionAttribute].reduce(function(W,K){return W[K.keyName]=K,W},{}),E=[v.AlignStyle,O.BackgroundStyle,A.ColorStyle,I.DirectionStyle,x.FontStyle,S.SizeStyle].reduce(function(W,K){return W[K.keyName]=K,W},{}),N=function(W){B(K,W);function K(Z,J){D(this,K);var Y=R(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Z,J));return Y.quill.root.addEventListener("paste",Y.onPaste.bind(Y)),Y.container=Y.quill.addContainer("ql-clipboard"),Y.container.setAttribute("contenteditable",!0),Y.container.setAttribute("tabindex",-1),Y.matchers=[],q.concat(Y.options.matchers).forEach(function(le){var se=s(le,2),ue=se[0],ze=se[1];!J.matchVisual&&ze===he||Y.addMatcher(ue,ze)}),Y}return c(K,[{key:"addMatcher",value:function(J,Y){this.matchers.push([J,Y])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var Y=this.quill.getFormat(this.quill.selection.savedRange.index);if(Y[T.default.blotName]){var le=this.container.innerText;return this.container.innerHTML="",new u.default().insert(le,C({},T.default.blotName,Y[T.default.blotName]))}var se=this.prepareMatching(),ue=s(se,2),ze=ue[0],et=ue[1],me=M(this.container,ze,et);return F(me,`
43
+ `)&&me.ops[me.ops.length-1].attributes==null&&(me=me.compose(new u.default().retain(me.length()-1).delete(1))),H.log("convert",this.container.innerHTML,me),this.container.innerHTML="",me}},{key:"dangerouslyPasteHTML",value:function(J,Y){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof J=="string")this.quill.setContents(this.convert(J),Y),this.quill.setSelection(0,p.default.sources.SILENT);else{var se=this.convert(Y);this.quill.updateContents(new u.default().retain(J).concat(se),le),this.quill.setSelection(J+se.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(J){var Y=this;if(!(J.defaultPrevented||!this.quill.isEnabled())){var le=this.quill.getSelection(),se=new u.default().retain(le.index),ue=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout(function(){se=se.concat(Y.convert()).delete(le.length),Y.quill.updateContents(se,p.default.sources.USER),Y.quill.setSelection(se.length()-le.length,p.default.sources.SILENT),Y.quill.scrollingContainer.scrollTop=ue,Y.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var J=this,Y=[],le=[];return this.matchers.forEach(function(se){var ue=s(se,2),ze=ue[0],et=ue[1];switch(ze){case Node.TEXT_NODE:le.push(et);break;case Node.ELEMENT_NODE:Y.push(et);break;default:[].forEach.call(J.container.querySelectorAll(ze),function(me){me[G]=me[G]||[],me[G].push(et)});break}}),[Y,le]}}]),K}(_.default);N.DEFAULTS={matchers:[],matchVisual:!0};function P(W,K,Z){return(typeof K=="undefined"?"undefined":i(K))==="object"?Object.keys(K).reduce(function(J,Y){return P(J,Y,K[Y])},W):W.reduce(function(J,Y){return Y.attributes&&Y.attributes[K]?J.push(Y):J.insert(Y.insert,(0,h.default)({},C({},K,Z),Y.attributes))},new u.default)}function j(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return W[K]||(W[K]=window.getComputedStyle(W))}function F(W,K){for(var Z="",J=W.ops.length-1;J>=0&&Z.length<K.length;--J){var Y=W.ops[J];if(typeof Y.insert!="string")break;Z=Y.insert+Z}return Z.slice(-1*K.length)===K}function L(W){if(W.childNodes.length===0)return!1;var K=j(W);return["block","list-item"].indexOf(K.display)>-1}function M(W,K,Z){return W.nodeType===W.TEXT_NODE?Z.reduce(function(J,Y){return Y(W,J)},new u.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(J,Y){var le=M(Y,K,Z);return Y.nodeType===W.ELEMENT_NODE&&(le=K.reduce(function(se,ue){return ue(Y,se)},le),le=(Y[G]||[]).reduce(function(se,ue){return ue(Y,se)},le)),J.concat(le)},new u.default):new u.default}function U(W,K,Z){return P(Z,W,!0)}function z(W,K){var Z=l.default.Attributor.Attribute.keys(W),J=l.default.Attributor.Class.keys(W),Y=l.default.Attributor.Style.keys(W),le={};return Z.concat(J).concat(Y).forEach(function(se){var ue=l.default.query(se,l.default.Scope.ATTRIBUTE);ue!=null&&(le[ue.attrName]=ue.value(W),le[ue.attrName])||(ue=$[se],ue!=null&&(ue.attrName===se||ue.keyName===se)&&(le[ue.attrName]=ue.value(W)||void 0),ue=E[se],ue!=null&&(ue.attrName===se||ue.keyName===se)&&(ue=E[se],le[ue.attrName]=ue.value(W)||void 0))}),Object.keys(le).length>0&&(K=P(K,le)),K}function V(W,K){var Z=l.default.query(W);if(Z==null)return K;if(Z.prototype instanceof l.default.Embed){var J={},Y=Z.value(W);Y!=null&&(J[Z.blotName]=Y,K=new u.default().insert(J,Z.formats(W)))}else typeof Z.formats=="function"&&(K=P(K,Z.blotName,Z.formats(W)));return K}function Q(W,K){return F(K,`
44
44
  `)||K.insert(`
45
45
  `),K}function ne(){return new u.default}function oe(W,K){var Z=l.default.query(W);if(Z==null||Z.blotName!=="list-item"||!F(K,`
46
46
  `))return K;for(var J=-1,Y=W.parentNode;!Y.classList.contains("ql-clipboard");)(l.default.query(Y)||{}).blotName==="list"&&(J+=1),Y=Y.parentNode;return J<=0?K:K.compose(new u.default().retain(K.length()-1).retain(1,{indent:J}))}function ce(W,K){return F(K,`
@@ -48,5 +48,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48
48
  `),K}function he(W,K){if(L(W)&&W.nextElementSibling!=null&&!F(K,`
49
49
 
50
50
  `)){var Z=W.offsetHeight+parseFloat(j(W).marginTop)+parseFloat(j(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+Z*1.5&&K.insert(`
51
- `)}return K}function je(W,K){var Z={},J=W.style||{};return J.fontStyle&&j(W).fontStyle==="italic"&&(Z.italic=!0),J.fontWeight&&(j(W).fontWeight.startsWith("bold")||parseInt(j(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=P(K,Z)),parseFloat(J.textIndent||0)>0&&(K=new u.default().insert(" ").concat(K)),K}function xe(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!j(W.parentNode).whiteSpace.startsWith("pre")){var J=function(le,se){return se=se.replace(/[^\u00a0]/g,""),se.length<1&&le?" ":se};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,J.bind(J,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,J.bind(J,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,J.bind(J,!1)))}return K.insert(Z)}t.default=N,t.matchAttributor=z,t.matchBlot=V,t.matchNewline=ce,t.matchSpacing=he,t.matchText=xe},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(6),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(){return d(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(f.default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function S(w,C){var D=[],R=!0,B=!1,H=void 0;try{for(var G=w[Symbol.iterator](),q;!(R=(q=G.next()).done)&&(D.push(q.value),!(C&&D.length===C));R=!0);}catch(M){B=!0,H=M}finally{try{!R&&G.return&&G.return()}finally{if(B)throw H}}return D}return function(w,C){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return S(w,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(w,C){for(var D=0;D<C.length;D++){var R=C[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,C,D){return C&&S(w.prototype,C),D&&S(w,D),w}}(),c=o(2),f=y(c),h=o(0),d=y(h),u=o(5),a=y(u),l=o(10),m=y(l),p=o(9),b=y(p);function y(S){return S&&S.__esModule?S:{default:S}}function g(S,w,C){return w in S?Object.defineProperty(S,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):S[w]=C,S}function _(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function v(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function O(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var k=(0,m.default)("quill:toolbar"),T=function(S){O(w,S);function w(C,D){_(this,w);var R=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,C,D));if(Array.isArray(R.options.container)){var B=document.createElement("div");I(B,R.options.container),C.container.parentNode.insertBefore(B,C.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var H;return H=k.error("Container required for toolbar",R.options),v(R,H)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(G){R.addHandler(G,R.options.handlers[G])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(G){R.attach(G)}),R.quill.on(a.default.events.EDITOR_CHANGE,function(G,q){G===a.default.events.SELECTION_CHANGE&&R.update(q)}),R.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var G=R.quill.selection.getRange(),q=i(G,1),M=q[0];R.update(M)}),R}return s(w,[{key:"addHandler",value:function(D,R){this.handlers[D]=R}},{key:"attach",value:function(D){var R=this,B=[].find.call(D.classList,function(G){return G.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),D.tagName==="BUTTON"&&D.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){k.warn("ignoring attaching to disabled format",B,D);return}if(d.default.query(B)==null){k.warn("ignoring attaching to nonexistent format",B,D);return}}var H=D.tagName==="SELECT"?"change":"click";D.addEventListener(H,function(G){var q=void 0;if(D.tagName==="SELECT"){if(D.selectedIndex<0)return;var M=D.options[D.selectedIndex];M.hasAttribute("selected")?q=!1:q=M.value||!1}else D.classList.contains("ql-active")?q=!1:q=D.value||!D.hasAttribute("value"),G.preventDefault();R.quill.focus();var E=R.quill.selection.getRange(),N=i(E,1),P=N[0];if(R.handlers[B]!=null)R.handlers[B].call(R,q);else if(d.default.query(B).prototype instanceof d.default.Embed){if(q=prompt("Enter "+B),!q)return;R.quill.updateContents(new f.default().retain(P.index).delete(P.length).insert(g({},B,q)),a.default.sources.USER)}else R.quill.format(B,q,a.default.sources.USER);R.update(P)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var R=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var H=i(B,2),G=H[0],q=H[1];if(q.tagName==="SELECT"){var M=void 0;if(D==null)M=null;else if(R[G]==null)M=q.querySelector("option[selected]");else if(!Array.isArray(R[G])){var E=R[G];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),M=q.querySelector('option[value="'+E+'"]')}M==null?(q.value="",q.selectedIndex=-1):M.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var N=R[G]===q.getAttribute("value")||R[G]!=null&&R[G].toString()===q.getAttribute("value")||R[G]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",N)}else q.classList.toggle("ql-active",R[G]!=null)})}}]),w}(b.default);T.DEFAULTS={};function A(S,w,C){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+w),C!=null&&(D.value=C),S.appendChild(D)}function I(S,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(C){var D=document.createElement("span");D.classList.add("ql-formats"),C.forEach(function(R){if(typeof R=="string")A(D,R);else{var B=Object.keys(R)[0],H=R[B];Array.isArray(H)?x(D,B,H):A(D,B,H)}}),S.appendChild(D)})}function x(S,w,C){var D=document.createElement("select");D.classList.add("ql-"+w),C.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),D.appendChild(B)}),S.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var w=this,C=this.quill.getSelection();if(C!=null)if(C.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function(R){d.default.query(R,d.default.Scope.INLINE)!=null&&w.quill.format(R,!1)})}else this.quill.removeFormat(C,a.default.sources.USER)},direction:function(w){var C=this.quill.getFormat().align;w==="rtl"&&C==null?this.quill.format("align","right",a.default.sources.USER):!w&&C==="right"&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",w,a.default.sources.USER)},indent:function(w){var C=this.quill.getSelection(),D=this.quill.getFormat(C),R=parseInt(D.indent||0);if(w==="+1"||w==="-1"){var B=w==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,a.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,a.default.sources.USER)},list:function(w){var C=this.quill.getSelection(),D=this.quill.getFormat(C);w==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",w,a.default.sources.USER)}}},t.default=T,t.addControls=I},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(28),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(b,y){d(this,p);var g=u(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.label.innerHTML=y,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),g}return i(p,[{key:"buildItem",value:function(y){var g=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,y);return g.style.backgroundColor=y.getAttribute("value")||"",g}},{key:"selectItem",value:function(y,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,g);var _=this.label.querySelector(".ql-color-label"),v=y&&y.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=v:_.style.fill=v)}}]),p}(f.default);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(28),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(b,y){d(this,p);var g=u(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=y[_.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(p,[{key:"selectItem",value:function(y,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,g),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),p}(f.default);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function f(h,d){for(var u=0;u<d.length;u++){var a=d[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,d,u){return d&&f(h.prototype,d),u&&f(h,u),h}}();function s(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var c=function(){function f(h,d){var u=this;s(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"}),this.hide()}return i(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var u=d.left+d.width/2-this.root.offsetWidth/2,a=d.bottom+this.quill.root.scrollTop;this.root.style.left=u+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var l=this.boundsContainer.getBoundingClientRect(),m=this.root.getBoundingClientRect(),p=0;if(m.right>l.right&&(p=l.right-m.right,this.root.style.left=u+p+"px"),m.left<l.left&&(p=l.left-m.left,this.root.style.left=u+p+"px"),m.bottom>l.bottom){var b=m.bottom-m.top,y=d.bottom-d.top+b;this.root.style.top=a-y+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var C=[],D=!0,R=!1,B=void 0;try{for(var H=S[Symbol.iterator](),G;!(D=(G=H.next()).done)&&(C.push(G.value),!(w&&C.length===w));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&H.return&&H.return()}finally{if(R)throw B}}return C}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function x(S,w,C){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var R=Object.getPrototypeOf(S);return R===null?void 0:x(R,w,C)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(C)}},c=function(){function x(S,w){for(var C=0;C<w.length;C++){var D=w[C];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,C){return w&&x(S.prototype,w),C&&x(S,C),S}}(),f=o(3),h=_(f),d=o(8),u=_(d),a=o(43),l=_(a),m=o(27),p=_(m),b=o(15),y=o(41),g=_(y);function _(x){return x&&x.__esModule?x:{default:x}}function v(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function O(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function k(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(x){k(S,x);function S(w,C){v(this,S),C.modules.toolbar!=null&&C.modules.toolbar.container==null&&(C.modules.toolbar.container=T);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,C));return D.quill.container.classList.add("ql-snow"),D}return c(S,[{key:"extendToolbar",value:function(C){C.container.classList.add("ql-snow"),this.buildButtons([].slice.call(C.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(C.container.querySelectorAll("select")),g.default),this.tooltip=new I(this.quill,this.options.bounds),C.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,R){C.handlers.link.call(C,!R.format.link)})}}]),S}(l.default);A.DEFAULTS=(0,h.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var w=this.quill.getSelection();if(w==null||w.length==0)return;var C=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(C)&&C.indexOf("mailto:")!==0&&(C="mailto:"+C);var D=this.quill.theme.tooltip;D.edit("link",C)}else this.quill.format("link",!1)}}}}});var I=function(x){k(S,x);function S(w,C){v(this,S);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,C));return D.preview=D.root.querySelector("a.ql-preview"),D}return c(S,[{key:"listen",value:function(){var C=this;s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){C.root.classList.contains("ql-editing")?C.save():C.edit("link",C.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(C.linkRange!=null){var R=C.linkRange;C.restoreFocus(),C.quill.formatText(R,"link",!1,u.default.sources.USER),delete C.linkRange}D.preventDefault(),C.hide()}),this.quill.on(u.default.events.SELECTION_CHANGE,function(D,R,B){if(D!=null){if(D.length===0&&B===u.default.sources.USER){var H=C.quill.scroll.descendant(p.default,D.index),G=i(H,2),q=G[0],M=G[1];if(q!=null){C.linkRange=new b.Range(D.index-M,q.length());var E=p.default.formats(q.domNode);C.preview.textContent=E,C.preview.setAttribute("href",E),C.show(),C.position(C.quill.getBounds(C.linkRange));return}}else delete C.linkRange;C.hide()}})}},{key:"show",value:function(){s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S}(a.BaseTooltip);I.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),s=Y(i),c=o(36),f=o(38),h=o(64),d=o(65),u=Y(d),a=o(66),l=Y(a),m=o(67),p=Y(m),b=o(37),y=o(26),g=o(39),_=o(40),v=o(56),O=Y(v),k=o(68),T=Y(k),A=o(27),I=Y(A),x=o(69),S=Y(x),w=o(70),C=Y(w),D=o(71),R=Y(D),B=o(72),H=Y(B),G=o(73),q=Y(G),M=o(13),E=Y(M),N=o(74),P=Y(N),j=o(75),F=Y(j),L=o(57),$=Y(L),U=o(41),z=Y(U),V=o(28),Q=Y(V),ne=o(59),oe=Y(ne),ce=o(60),he=Y(ce),je=o(61),xe=Y(je),W=o(108),K=Y(W),Z=o(62),J=Y(Z);function Y(le){return le&&le.__esModule?le:{default:le}}s.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":c.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":g.FontClass,"formats/size":_.SizeClass,"formats/blockquote":u.default,"formats/code-block":E.default,"formats/header":l.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":M.Code,"formats/italic":T.default,"formats/link":I.default,"formats/script":S.default,"formats/strike":C.default,"formats/underline":R.default,"formats/image":H.default,"formats/video":q.default,"formats/list/item":m.ListItem,"modules/formula":P.default,"modules/syntax":F.default,"modules/toolbar":$.default,"themes/bubble":K.default,"themes/snow":J.default,"ui/icons":z.default,"ui/picker":Q.default,"ui/icon-picker":he.default,"ui/color-picker":oe.default,"ui/tooltip":xe.default},!0),t.default=s.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,y){for(var g=0;g<y.length;g++){var _=y[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,y,g){return y&&p(b.prototype,y),g&&p(b,g),b}}(),s=function p(b,y,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,y);if(_===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:p(v,y,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},c=o(0),f=h(c);function h(p){return p&&p.__esModule?p:{default:p}}function d(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function u(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var l=function(p){a(b,p);function b(){return d(this,b),u(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(g,_){if(_==="+1"||_==="-1"){var v=this.value(g)||0;_=_==="+1"?v+1:v-1}return _===0?(this.remove(g),!0):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,g,_)}},{key:"canAdd",value:function(g,_){return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,_)||s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,parseInt(_))}},{key:"value",value:function(g){return parseInt(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,g))||void 0}}]),b}(f.default.Attributor.Class),m=new l("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="blockquote",u.tagName="blockquote",t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function l(m,p){for(var b=0;b<p.length;b++){var y=p[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,p,b){return p&&l(m.prototype,p),b&&l(m,b),m}}(),s=o(4),c=f(s);function f(l){return l&&l.__esModule?l:{default:l}}function h(l,m){if(!(l instanceof m))throw new TypeError("Cannot call a class as a function")}function d(l,m){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:l}function u(l,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);l.prototype=Object.create(m&&m.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(l,m):l.__proto__=m)}var a=function(l){u(m,l);function m(){return h(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),m}(c.default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function v(O,k){for(var T=0;T<k.length;T++){var A=k[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,k,T){return k&&v(O.prototype,k),T&&v(O,T),O}}(),s=function v(O,k,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,k);if(A===void 0){var I=Object.getPrototypeOf(O);return I===null?void 0:v(I,k,T)}else{if("value"in A)return A.value;var x=A.get;return x===void 0?void 0:x.call(T)}},c=o(0),f=l(c),h=o(4),d=l(h),u=o(25),a=l(u);function l(v){return v&&v.__esModule?v:{default:v}}function m(v,O,k){return O in v?Object.defineProperty(v,O,{value:k,enumerable:!0,configurable:!0,writable:!0}):v[O]=k,v}function p(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function b(v,O){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:v}function y(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(v,O):v.__proto__=O)}var g=function(v){y(O,v);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(f.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(d.default);g.blotName="list-item",g.tagName="LI";var _=function(v){y(O,v),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",I=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&I.setAttribute("data-checked",T==="checked"),I}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(k){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k)),A=function(x){if(x.target.parentNode===k){var S=T.statics.formats(k),w=f.default.find(x.target);S==="checked"?w.format("list","unchecked"):S==="unchecked"&&w.format("list","checked")}};return k.addEventListener("touchstart",A),k.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return m({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof g)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var I=A==null?this.length():A.offset(this),x=this.split(I);x.parent.insertBefore(T,x)}}},{key:"optimize",value:function(T){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=f.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(a.default);_.blotName="list",_.scope=f.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[g],t.ListItem=g,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="italic",u.tagName=["EM","I"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(6),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(){return d(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),p}(f.default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="strike",u.tagName="S",t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="underline",u.tagName="U",t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),s=function b(y,g,_){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var O=Object.getPrototypeOf(y);return O===null?void 0:b(O,g,_)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(_)}},c=o(0),f=d(c),h=o(27);function d(b){return b&&b.__esModule?b:{default:b}}function u(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function a(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function l(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["alt","height","width"],p=function(b){l(y,b);function y(){return u(this,y),a(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(_,v){m.indexOf(_)>-1?v?this.domNode.setAttribute(_,v):this.domNode.removeAttribute(_):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,_,v)}}],[{key:"create",value:function(_){var v=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_);return typeof _=="string"&&v.setAttribute("src",this.sanitize(_)),v}},{key:"formats",value:function(_){return m.reduce(function(v,O){return _.hasAttribute(O)&&(v[O]=_.getAttribute(O)),v},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),y}(f.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),s=function b(y,g,_){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var O=Object.getPrototypeOf(y);return O===null?void 0:b(O,g,_)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(_)}},c=o(4),f=o(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function u(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function a(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function l(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["height","width"],p=function(b){l(y,b);function y(){return u(this,y),a(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(_,v){m.indexOf(_)>-1?v?this.domNode.setAttribute(_,v):this.domNode.removeAttribute(_):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,_,v)}}],[{key:"create",value:function(_){var v=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_);return v.setAttribute("frameborder","0"),v.setAttribute("allowfullscreen",!0),v.setAttribute("src",this.sanitize(_)),v}},{key:"formats",value:function(_){return m.reduce(function(v,O){return _.hasAttribute(O)&&(v[O]=_.getAttribute(O)),v},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),y}(c.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(v,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}return function(v,O,k){return O&&_(v.prototype,O),k&&_(v,k),v}}(),s=function _(v,O,k){v===null&&(v=Function.prototype);var T=Object.getOwnPropertyDescriptor(v,O);if(T===void 0){var A=Object.getPrototypeOf(v);return A===null?void 0:_(A,O,k)}else{if("value"in T)return T.value;var I=T.get;return I===void 0?void 0:I.call(k)}},c=o(35),f=l(c),h=o(5),d=l(h),u=o(9),a=l(u);function l(_){return _&&_.__esModule?_:{default:_}}function m(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function p(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function b(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var y=function(_){b(v,_);function v(){return m(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"create",value:function(k){var T=s(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",k)),T}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),v}(f.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var g=function(_){b(v,_),i(v,null,[{key:"register",value:function(){d.default.register(y,!0)}}]);function v(){m(this,v);var O=p(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return v}(a.default);t.FormulaBlot=y,t.default=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function k(T,A){for(var I=0;I<A.length;I++){var x=A[I];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(T,x.key,x)}}return function(T,A,I){return A&&k(T.prototype,A),I&&k(T,I),T}}(),s=function k(T,A,I){T===null&&(T=Function.prototype);var x=Object.getOwnPropertyDescriptor(T,A);if(x===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:k(S,A,I)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(I)}},c=o(0),f=p(c),h=o(5),d=p(h),u=o(9),a=p(u),l=o(13),m=p(l);function p(k){return k&&k.__esModule?k:{default:k}}function b(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function y(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function g(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var _=function(k){g(T,k);function T(){return b(this,T),y(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(I){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var x=this.domNode.textContent;this.cachedText!==x&&((x.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(x),this.domNode.normalize(),this.attach()),this.cachedText=x)}}]),T}(m.default);_.className="ql-syntax";var v=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),O=function(k){g(T,k),i(T,null,[{key:"register",value:function(){d.default.register(v,!0),d.default.register(_,!0)}}]);function T(A,I){b(this,T);var x=y(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,I));if(typeof x.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return x.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){x.highlight(),S=null},x.options.interval)}),x.highlight(),x}return i(T,[{key:"highlight",value:function(){var I=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(S){S.highlight(I.options.highlight)}),this.quill.update(d.default.sources.SILENT),x!=null&&this.quill.setSelection(x,d.default.sources.SILENT)}}}]),T}(a.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var T=window.hljs.highlightAuto(k);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=v,t.default=O},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,I,x){A===null&&(A=Function.prototype);var S=Object.getOwnPropertyDescriptor(A,I);if(S===void 0){var w=Object.getPrototypeOf(A);return w===null?void 0:T(w,I,x)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(x)}},s=function(){function T(A,I){for(var x=0;x<I.length;x++){var S=I[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,I,x){return I&&T(A.prototype,I),x&&T(A,x),A}}(),c=o(3),f=b(c),h=o(8),d=b(h),u=o(43),a=b(u),l=o(15),m=o(41),p=b(m);function b(T){return T&&T.__esModule?T:{default:T}}function y(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function g(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(I,x){y(this,A),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=v);var S=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,x));return S.quill.container.classList.add("ql-bubble"),S}return s(A,[{key:"extendToolbar",value:function(x){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(x.container),this.buildButtons([].slice.call(x.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(x.container.querySelectorAll("select")),p.default)}}]),A}(a.default);O.DEFAULTS=(0,f.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(T){_(A,T);function A(I,x){y(this,A);var S=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,x));return S.quill.on(d.default.events.EDITOR_CHANGE,function(w,C,D,R){if(w===d.default.events.SELECTION_CHANGE)if(C!=null&&C.length>0&&R===d.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var B=S.quill.getLines(C.index,C.length);if(B.length===1)S.position(S.quill.getBounds(C));else{var H=B[B.length-1],G=S.quill.getIndex(H),q=Math.min(H.length()-1,C.index+C.length-G),M=S.quill.getBounds(new l.Range(G,q));S.position(M)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return s(A,[{key:"listen",value:function(){var x=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){x.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!x.root.classList.contains("ql-hidden")){var S=x.quill.getSelection();S!=null&&x.position(x.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(x){var S=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,x),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",S===0)return S;w.style.marginLeft=-1*S-w.offsetWidth/2+"px"}}]),A}(u.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=k,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(ro);var io=Ur(ro.exports),vf="",yf="",mf="",gu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},bu=[],gf="";const _u={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model}},methods:{handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new io(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("onBlur",r)}},handleInput(e,r,n){const t=this.handleGetVal();this.modelForm=t},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")}},mounted(){this.quillRef=new io(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e){this.modelForm=e},modelForm(e){this.$emit("inputtext",e)}}},oo={};var Ou=Ae(_u,gu,bu,!1,Su,"78c8d102",null,null);function Su(e){for(let r in oo)this[r]=oo[r]}var In=function(){return Ou.exports}();In.install=e=>{e.component(In.name,In)};const ao=In;var Eu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},xu=[];const wu={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},lo={};var Au=Ae(wu,Eu,xu,!1,Tu,null,null,null);function Tu(e){for(let r in lo)this[r]=lo[r]}var Nu=function(){return Au.exports}();const ku=Me.default.extend(Nu);var Cu={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),c=new ku({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:s,fullscreen:!1}});e.instance=c,e.mask=c.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},Pu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},Iu=[],_f="";const Kt={confirm:"confirm",cancel:"cancel"},Lu={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=yt(Ne({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(Kt.cancel)},triggerCallBack(e){const r={[Kt.confirm]:"beforeConfirm",[Kt.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===Kt.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(Kt.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},so={};var Du=Ae(Lu,Pu,Iu,!1,Ru,null,null,null);function Ru(e){for(let r in so)this[r]=so[r]}var Mu=function(){return Du.exports}();const $u={title:"",items:[]},ju=Me.default.extend(Mu);let uo,Vt,wr=[];const Fu=()=>{Vt=new ju({el:document.createElement("div")})},Bu=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},qu=e=>{const r=Bu(e.items);Object.entries(yt(Ne({},e),{formData:r})).forEach(([n,t])=>{Vt[n]=t}),document.body.appendChild(Vt.$el),Me.default.nextTick(()=>{Vt.visible=!0})},Hu=()=>{Vt||Fu(),wr.length>0&&(uo=wr.shift(),qu(uo))},Uu=e=>new Promise((r,n)=>{wr.push(yt(Ne(Ne({},$u),e),{resolve:r,reject:n})),Hu()}),zu=[Tr,kr,Pr,Lr,Rr,jr,qr,gi,Ji,eo,no,ao],fo={version:"dev",install:(e,r={config:{}})=>{zu.forEach(t=>e.component(t.name,t));const n={tablePreset:{separator:"@",presetPropMap:{image(t,{field:o,params:i}){const s=t[o].split("|"),c=i.size||59;return["com-image",{attrs:{src:s,size:c,lazy:!0}}]},link(t,{field:o,params:i}){const s=t[o];let{target:c,href:f,type:h,underline:d}=i;return c=c||"_blank",f=t[f]||s,h=h||"primary",d=!!d,["el-link",{attrs:{target:c,href:f,type:h,underline:d}},s]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=Ne(Ne({},n),r.config),Object.entries(Cu).forEach(([t,o])=>{e.directive(t,o)}),e.prototype.$formDialog=Uu,e.prototype.$jump=(t,o="_blank")=>{window.open(t,o)}},ComTemplate:Tr,ComMenu:kr,ComTabs:Pr,ComTool:Lr,ComDialog:Rr,ComFormItem:jr,ComOperation:qr,ComSearch:gi,ComTable:Ji,ComImage:eo,ComContainer:no,ComEditor:ao};try{fo.version=require("../package.json").version}catch{console.log("no require")}return fo});
51
+ `)}return K}function je(W,K){var Z={},J=W.style||{};return J.fontStyle&&j(W).fontStyle==="italic"&&(Z.italic=!0),J.fontWeight&&(j(W).fontWeight.startsWith("bold")||parseInt(j(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=P(K,Z)),parseFloat(J.textIndent||0)>0&&(K=new u.default().insert(" ").concat(K)),K}function xe(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!j(W.parentNode).whiteSpace.startsWith("pre")){var J=function(le,se){return se=se.replace(/[^\u00a0]/g,""),se.length<1&&le?" ":se};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,J.bind(J,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,J.bind(J,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,J.bind(J,!1)))}return K.insert(Z)}t.default=N,t.matchAttributor=z,t.matchBlot=V,t.matchNewline=ce,t.matchSpacing=he,t.matchText=xe},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(6),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(){return d(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(f.default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function S(w,C){var D=[],R=!0,B=!1,H=void 0;try{for(var G=w[Symbol.iterator](),q;!(R=(q=G.next()).done)&&(D.push(q.value),!(C&&D.length===C));R=!0);}catch($){B=!0,H=$}finally{try{!R&&G.return&&G.return()}finally{if(B)throw H}}return D}return function(w,C){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return S(w,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(w,C){for(var D=0;D<C.length;D++){var R=C[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,C,D){return C&&S(w.prototype,C),D&&S(w,D),w}}(),c=o(2),f=y(c),h=o(0),d=y(h),u=o(5),a=y(u),l=o(10),m=y(l),p=o(9),b=y(p);function y(S){return S&&S.__esModule?S:{default:S}}function g(S,w,C){return w in S?Object.defineProperty(S,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):S[w]=C,S}function _(S,w){if(!(S instanceof w))throw new TypeError("Cannot call a class as a function")}function v(S,w){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:S}function O(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(S,w):S.__proto__=w)}var k=(0,m.default)("quill:toolbar"),T=function(S){O(w,S);function w(C,D){_(this,w);var R=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,C,D));if(Array.isArray(R.options.container)){var B=document.createElement("div");I(B,R.options.container),C.container.parentNode.insertBefore(B,C.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var H;return H=k.error("Container required for toolbar",R.options),v(R,H)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(G){R.addHandler(G,R.options.handlers[G])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(G){R.attach(G)}),R.quill.on(a.default.events.EDITOR_CHANGE,function(G,q){G===a.default.events.SELECTION_CHANGE&&R.update(q)}),R.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var G=R.quill.selection.getRange(),q=i(G,1),$=q[0];R.update($)}),R}return s(w,[{key:"addHandler",value:function(D,R){this.handlers[D]=R}},{key:"attach",value:function(D){var R=this,B=[].find.call(D.classList,function(G){return G.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),D.tagName==="BUTTON"&&D.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){k.warn("ignoring attaching to disabled format",B,D);return}if(d.default.query(B)==null){k.warn("ignoring attaching to nonexistent format",B,D);return}}var H=D.tagName==="SELECT"?"change":"click";D.addEventListener(H,function(G){var q=void 0;if(D.tagName==="SELECT"){if(D.selectedIndex<0)return;var $=D.options[D.selectedIndex];$.hasAttribute("selected")?q=!1:q=$.value||!1}else D.classList.contains("ql-active")?q=!1:q=D.value||!D.hasAttribute("value"),G.preventDefault();R.quill.focus();var E=R.quill.selection.getRange(),N=i(E,1),P=N[0];if(R.handlers[B]!=null)R.handlers[B].call(R,q);else if(d.default.query(B).prototype instanceof d.default.Embed){if(q=prompt("Enter "+B),!q)return;R.quill.updateContents(new f.default().retain(P.index).delete(P.length).insert(g({},B,q)),a.default.sources.USER)}else R.quill.format(B,q,a.default.sources.USER);R.update(P)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var R=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var H=i(B,2),G=H[0],q=H[1];if(q.tagName==="SELECT"){var $=void 0;if(D==null)$=null;else if(R[G]==null)$=q.querySelector("option[selected]");else if(!Array.isArray(R[G])){var E=R[G];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),$=q.querySelector('option[value="'+E+'"]')}$==null?(q.value="",q.selectedIndex=-1):$.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var N=R[G]===q.getAttribute("value")||R[G]!=null&&R[G].toString()===q.getAttribute("value")||R[G]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",N)}else q.classList.toggle("ql-active",R[G]!=null)})}}]),w}(b.default);T.DEFAULTS={};function A(S,w,C){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+w),C!=null&&(D.value=C),S.appendChild(D)}function I(S,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(C){var D=document.createElement("span");D.classList.add("ql-formats"),C.forEach(function(R){if(typeof R=="string")A(D,R);else{var B=Object.keys(R)[0],H=R[B];Array.isArray(H)?x(D,B,H):A(D,B,H)}}),S.appendChild(D)})}function x(S,w,C){var D=document.createElement("select");D.classList.add("ql-"+w),C.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),D.appendChild(B)}),S.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var w=this,C=this.quill.getSelection();if(C!=null)if(C.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function(R){d.default.query(R,d.default.Scope.INLINE)!=null&&w.quill.format(R,!1)})}else this.quill.removeFormat(C,a.default.sources.USER)},direction:function(w){var C=this.quill.getFormat().align;w==="rtl"&&C==null?this.quill.format("align","right",a.default.sources.USER):!w&&C==="right"&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",w,a.default.sources.USER)},indent:function(w){var C=this.quill.getSelection(),D=this.quill.getFormat(C),R=parseInt(D.indent||0);if(w==="+1"||w==="-1"){var B=w==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,a.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,a.default.sources.USER)},list:function(w){var C=this.quill.getSelection(),D=this.quill.getFormat(C);w==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",w,a.default.sources.USER)}}},t.default=T,t.addControls=I},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(28),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(b,y){d(this,p);var g=u(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.label.innerHTML=y,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),g}return i(p,[{key:"buildItem",value:function(y){var g=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,y);return g.style.backgroundColor=y.getAttribute("value")||"",g}},{key:"selectItem",value:function(y,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,g);var _=this.label.querySelector(".ql-color-label"),v=y&&y.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=v:_.style.fill=v)}}]),p}(f.default);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(28),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(b,y){d(this,p);var g=u(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=y[_.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(p,[{key:"selectItem",value:function(y,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,y,g),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),p}(f.default);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function f(h,d){for(var u=0;u<d.length;u++){var a=d[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,d,u){return d&&f(h.prototype,d),u&&f(h,u),h}}();function s(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var c=function(){function f(h,d){var u=this;s(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"}),this.hide()}return i(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var u=d.left+d.width/2-this.root.offsetWidth/2,a=d.bottom+this.quill.root.scrollTop;this.root.style.left=u+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var l=this.boundsContainer.getBoundingClientRect(),m=this.root.getBoundingClientRect(),p=0;if(m.right>l.right&&(p=l.right-m.right,this.root.style.left=u+p+"px"),m.left<l.left&&(p=l.left-m.left,this.root.style.left=u+p+"px"),m.bottom>l.bottom){var b=m.bottom-m.top,y=d.bottom-d.top+b;this.root.style.top=a-y+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(S,w){var C=[],D=!0,R=!1,B=void 0;try{for(var H=S[Symbol.iterator](),G;!(D=(G=H.next()).done)&&(C.push(G.value),!(w&&C.length===w));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&H.return&&H.return()}finally{if(R)throw B}}return C}return function(S,w){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return x(S,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function x(S,w,C){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,w);if(D===void 0){var R=Object.getPrototypeOf(S);return R===null?void 0:x(R,w,C)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(C)}},c=function(){function x(S,w){for(var C=0;C<w.length;C++){var D=w[C];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,w,C){return w&&x(S.prototype,w),C&&x(S,C),S}}(),f=o(3),h=_(f),d=o(8),u=_(d),a=o(43),l=_(a),m=o(27),p=_(m),b=o(15),y=o(41),g=_(y);function _(x){return x&&x.__esModule?x:{default:x}}function v(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}function O(x,S){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:x}function k(x,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);x.prototype=Object.create(S&&S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(x,S):x.__proto__=S)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(x){k(S,x);function S(w,C){v(this,S),C.modules.toolbar!=null&&C.modules.toolbar.container==null&&(C.modules.toolbar.container=T);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,C));return D.quill.container.classList.add("ql-snow"),D}return c(S,[{key:"extendToolbar",value:function(C){C.container.classList.add("ql-snow"),this.buildButtons([].slice.call(C.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(C.container.querySelectorAll("select")),g.default),this.tooltip=new I(this.quill,this.options.bounds),C.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,R){C.handlers.link.call(C,!R.format.link)})}}]),S}(l.default);A.DEFAULTS=(0,h.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var w=this.quill.getSelection();if(w==null||w.length==0)return;var C=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(C)&&C.indexOf("mailto:")!==0&&(C="mailto:"+C);var D=this.quill.theme.tooltip;D.edit("link",C)}else this.quill.format("link",!1)}}}}});var I=function(x){k(S,x);function S(w,C){v(this,S);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,w,C));return D.preview=D.root.querySelector("a.ql-preview"),D}return c(S,[{key:"listen",value:function(){var C=this;s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){C.root.classList.contains("ql-editing")?C.save():C.edit("link",C.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(C.linkRange!=null){var R=C.linkRange;C.restoreFocus(),C.quill.formatText(R,"link",!1,u.default.sources.USER),delete C.linkRange}D.preventDefault(),C.hide()}),this.quill.on(u.default.events.SELECTION_CHANGE,function(D,R,B){if(D!=null){if(D.length===0&&B===u.default.sources.USER){var H=C.quill.scroll.descendant(p.default,D.index),G=i(H,2),q=G[0],$=G[1];if(q!=null){C.linkRange=new b.Range(D.index-$,q.length());var E=p.default.formats(q.domNode);C.preview.textContent=E,C.preview.setAttribute("href",E),C.show(),C.position(C.quill.getBounds(C.linkRange));return}}else delete C.linkRange;C.hide()}})}},{key:"show",value:function(){s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S}(a.BaseTooltip);I.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),s=Y(i),c=o(36),f=o(38),h=o(64),d=o(65),u=Y(d),a=o(66),l=Y(a),m=o(67),p=Y(m),b=o(37),y=o(26),g=o(39),_=o(40),v=o(56),O=Y(v),k=o(68),T=Y(k),A=o(27),I=Y(A),x=o(69),S=Y(x),w=o(70),C=Y(w),D=o(71),R=Y(D),B=o(72),H=Y(B),G=o(73),q=Y(G),$=o(13),E=Y($),N=o(74),P=Y(N),j=o(75),F=Y(j),L=o(57),M=Y(L),U=o(41),z=Y(U),V=o(28),Q=Y(V),ne=o(59),oe=Y(ne),ce=o(60),he=Y(ce),je=o(61),xe=Y(je),W=o(108),K=Y(W),Z=o(62),J=Y(Z);function Y(le){return le&&le.__esModule?le:{default:le}}s.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":c.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":g.FontClass,"formats/size":_.SizeClass,"formats/blockquote":u.default,"formats/code-block":E.default,"formats/header":l.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":$.Code,"formats/italic":T.default,"formats/link":I.default,"formats/script":S.default,"formats/strike":C.default,"formats/underline":R.default,"formats/image":H.default,"formats/video":q.default,"formats/list/item":m.ListItem,"modules/formula":P.default,"modules/syntax":F.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":J.default,"ui/icons":z.default,"ui/picker":Q.default,"ui/icon-picker":he.default,"ui/color-picker":oe.default,"ui/tooltip":xe.default},!0),t.default=s.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,y){for(var g=0;g<y.length;g++){var _=y[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,y,g){return y&&p(b.prototype,y),g&&p(b,g),b}}(),s=function p(b,y,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,y);if(_===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:p(v,y,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},c=o(0),f=h(c);function h(p){return p&&p.__esModule?p:{default:p}}function d(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function u(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var l=function(p){a(b,p);function b(){return d(this,b),u(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(g,_){if(_==="+1"||_==="-1"){var v=this.value(g)||0;_=_==="+1"?v+1:v-1}return _===0?(this.remove(g),!0):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,g,_)}},{key:"canAdd",value:function(g,_){return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,_)||s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,parseInt(_))}},{key:"value",value:function(g){return parseInt(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,g))||void 0}}]),b}(f.default.Attributor.Class),m=new l("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="blockquote",u.tagName="blockquote",t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function l(m,p){for(var b=0;b<p.length;b++){var y=p[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,p,b){return p&&l(m.prototype,p),b&&l(m,b),m}}(),s=o(4),c=f(s);function f(l){return l&&l.__esModule?l:{default:l}}function h(l,m){if(!(l instanceof m))throw new TypeError("Cannot call a class as a function")}function d(l,m){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:l}function u(l,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);l.prototype=Object.create(m&&m.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(l,m):l.__proto__=m)}var a=function(l){u(m,l);function m(){return h(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),m}(c.default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function v(O,k){for(var T=0;T<k.length;T++){var A=k[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,k,T){return k&&v(O.prototype,k),T&&v(O,T),O}}(),s=function v(O,k,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,k);if(A===void 0){var I=Object.getPrototypeOf(O);return I===null?void 0:v(I,k,T)}else{if("value"in A)return A.value;var x=A.get;return x===void 0?void 0:x.call(T)}},c=o(0),f=l(c),h=o(4),d=l(h),u=o(25),a=l(u);function l(v){return v&&v.__esModule?v:{default:v}}function m(v,O,k){return O in v?Object.defineProperty(v,O,{value:k,enumerable:!0,configurable:!0,writable:!0}):v[O]=k,v}function p(v,O){if(!(v instanceof O))throw new TypeError("Cannot call a class as a function")}function b(v,O){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:v}function y(v,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);v.prototype=Object.create(O&&O.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(v,O):v.__proto__=O)}var g=function(v){y(O,v);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(f.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(d.default);g.blotName="list-item",g.tagName="LI";var _=function(v){y(O,v),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",I=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&I.setAttribute("data-checked",T==="checked"),I}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(k){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k)),A=function(x){if(x.target.parentNode===k){var S=T.statics.formats(k),w=f.default.find(x.target);S==="checked"?w.format("list","unchecked"):S==="unchecked"&&w.format("list","checked")}};return k.addEventListener("touchstart",A),k.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return m({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof g)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var I=A==null?this.length():A.offset(this),x=this.split(I);x.parent.insertBefore(T,x)}}},{key:"optimize",value:function(T){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=f.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(a.default);_.blotName="list",_.scope=f.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[g],t.ListItem=g,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="italic",u.tagName=["EM","I"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(p,b){for(var y=0;y<b.length;y++){var g=b[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,y){return b&&m(p.prototype,b),y&&m(p,y),p}}(),s=function m(p,b,y){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:m(_,b,y)}else{if("value"in g)return g.value;var v=g.get;return v===void 0?void 0:v.call(y)}},c=o(6),f=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function a(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var l=function(m){a(p,m);function p(){return d(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),p}(f.default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="strike",u.tagName="S",t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=c(i);function c(a){return a&&a.__esModule?a:{default:a}}function f(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function h(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function d(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var u=function(a){d(l,a);function l(){return f(this,l),h(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(s.default);u.blotName="underline",u.tagName="U",t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),s=function b(y,g,_){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var O=Object.getPrototypeOf(y);return O===null?void 0:b(O,g,_)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(_)}},c=o(0),f=d(c),h=o(27);function d(b){return b&&b.__esModule?b:{default:b}}function u(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function a(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function l(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["alt","height","width"],p=function(b){l(y,b);function y(){return u(this,y),a(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(_,v){m.indexOf(_)>-1?v?this.domNode.setAttribute(_,v):this.domNode.removeAttribute(_):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,_,v)}}],[{key:"create",value:function(_){var v=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_);return typeof _=="string"&&v.setAttribute("src",this.sanitize(_)),v}},{key:"formats",value:function(_){return m.reduce(function(v,O){return _.hasAttribute(O)&&(v[O]=_.getAttribute(O)),v},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),y}(f.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(y,g){for(var _=0;_<g.length;_++){var v=g[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,g,_){return g&&b(y.prototype,g),_&&b(y,_),y}}(),s=function b(y,g,_){y===null&&(y=Function.prototype);var v=Object.getOwnPropertyDescriptor(y,g);if(v===void 0){var O=Object.getPrototypeOf(y);return O===null?void 0:b(O,g,_)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(_)}},c=o(4),f=o(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function u(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function a(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function l(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["height","width"],p=function(b){l(y,b);function y(){return u(this,y),a(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,[{key:"format",value:function(_,v){m.indexOf(_)>-1?v?this.domNode.setAttribute(_,v):this.domNode.removeAttribute(_):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,_,v)}}],[{key:"create",value:function(_){var v=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_);return v.setAttribute("frameborder","0"),v.setAttribute("allowfullscreen",!0),v.setAttribute("src",this.sanitize(_)),v}},{key:"formats",value:function(_){return m.reduce(function(v,O){return _.hasAttribute(O)&&(v[O]=_.getAttribute(O)),v},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),y}(c.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(v,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}return function(v,O,k){return O&&_(v.prototype,O),k&&_(v,k),v}}(),s=function _(v,O,k){v===null&&(v=Function.prototype);var T=Object.getOwnPropertyDescriptor(v,O);if(T===void 0){var A=Object.getPrototypeOf(v);return A===null?void 0:_(A,O,k)}else{if("value"in T)return T.value;var I=T.get;return I===void 0?void 0:I.call(k)}},c=o(35),f=l(c),h=o(5),d=l(h),u=o(9),a=l(u);function l(_){return _&&_.__esModule?_:{default:_}}function m(_,v){if(!(_ instanceof v))throw new TypeError("Cannot call a class as a function")}function p(_,v){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:_}function b(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);_.prototype=Object.create(v&&v.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(_,v):_.__proto__=v)}var y=function(_){b(v,_);function v(){return m(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"create",value:function(k){var T=s(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",k)),T}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),v}(f.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var g=function(_){b(v,_),i(v,null,[{key:"register",value:function(){d.default.register(y,!0)}}]);function v(){m(this,v);var O=p(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return v}(a.default);t.FormulaBlot=y,t.default=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function k(T,A){for(var I=0;I<A.length;I++){var x=A[I];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(T,x.key,x)}}return function(T,A,I){return A&&k(T.prototype,A),I&&k(T,I),T}}(),s=function k(T,A,I){T===null&&(T=Function.prototype);var x=Object.getOwnPropertyDescriptor(T,A);if(x===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:k(S,A,I)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(I)}},c=o(0),f=p(c),h=o(5),d=p(h),u=o(9),a=p(u),l=o(13),m=p(l);function p(k){return k&&k.__esModule?k:{default:k}}function b(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function y(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function g(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var _=function(k){g(T,k);function T(){return b(this,T),y(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(I){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var x=this.domNode.textContent;this.cachedText!==x&&((x.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(x),this.domNode.normalize(),this.attach()),this.cachedText=x)}}]),T}(m.default);_.className="ql-syntax";var v=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),O=function(k){g(T,k),i(T,null,[{key:"register",value:function(){d.default.register(v,!0),d.default.register(_,!0)}}]);function T(A,I){b(this,T);var x=y(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,I));if(typeof x.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return x.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){x.highlight(),S=null},x.options.interval)}),x.highlight(),x}return i(T,[{key:"highlight",value:function(){var I=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(S){S.highlight(I.options.highlight)}),this.quill.update(d.default.sources.SILENT),x!=null&&this.quill.setSelection(x,d.default.sources.SILENT)}}}]),T}(a.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var T=window.hljs.highlightAuto(k);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=v,t.default=O},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,I,x){A===null&&(A=Function.prototype);var S=Object.getOwnPropertyDescriptor(A,I);if(S===void 0){var w=Object.getPrototypeOf(A);return w===null?void 0:T(w,I,x)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(x)}},s=function(){function T(A,I){for(var x=0;x<I.length;x++){var S=I[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,I,x){return I&&T(A.prototype,I),x&&T(A,x),A}}(),c=o(3),f=b(c),h=o(8),d=b(h),u=o(43),a=b(u),l=o(15),m=o(41),p=b(m);function b(T){return T&&T.__esModule?T:{default:T}}function y(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function g(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(I,x){y(this,A),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=v);var S=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,x));return S.quill.container.classList.add("ql-bubble"),S}return s(A,[{key:"extendToolbar",value:function(x){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(x.container),this.buildButtons([].slice.call(x.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(x.container.querySelectorAll("select")),p.default)}}]),A}(a.default);O.DEFAULTS=(0,f.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(T){_(A,T);function A(I,x){y(this,A);var S=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,x));return S.quill.on(d.default.events.EDITOR_CHANGE,function(w,C,D,R){if(w===d.default.events.SELECTION_CHANGE)if(C!=null&&C.length>0&&R===d.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var B=S.quill.getLines(C.index,C.length);if(B.length===1)S.position(S.quill.getBounds(C));else{var H=B[B.length-1],G=S.quill.getIndex(H),q=Math.min(H.length()-1,C.index+C.length-G),$=S.quill.getBounds(new l.Range(G,q));S.position($)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return s(A,[{key:"listen",value:function(){var x=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){x.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!x.root.classList.contains("ql-hidden")){var S=x.quill.getSelection();S!=null&&x.position(x.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(x){var S=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,x),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",S===0)return S;w.style.marginLeft=-1*S-w.offsetWidth/2+"px"}}]),A}(u.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=k,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(ro);var io=Ur(ro.exports),vf="",yf="",mf="",gu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},bu=[],gf="";const _u={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model}},methods:{handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new io(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("onBlur",r)}},handleInput(e,r,n){const t=this.handleGetVal();this.modelForm=t},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")}},mounted(){this.quillRef=new io(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e){this.modelForm=e},modelForm(e){this.$emit("inputtext",e)}}},oo={};var Ou=Ae(_u,gu,bu,!1,Su,"78c8d102",null,null);function Su(e){for(let r in oo)this[r]=oo[r]}var In=function(){return Ou.exports}();In.install=e=>{e.component(In.name,In)};const ao=In;var Eu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},xu=[];const wu={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},lo={};var Au=Ae(wu,Eu,xu,!1,Tu,null,null,null);function Tu(e){for(let r in lo)this[r]=lo[r]}var Nu=function(){return Au.exports}();const ku=$e.default.extend(Nu);var Cu={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),c=new ku({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:s,fullscreen:!1}});e.instance=c,e.mask=c.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},Pu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},Iu=[],_f="";const Kt={confirm:"confirm",cancel:"cancel"},Lu={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=yt(Ne({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(Kt.cancel)},triggerCallBack(e){const r={[Kt.confirm]:"beforeConfirm",[Kt.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===Kt.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(Kt.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},so={};var Du=Ae(Lu,Pu,Iu,!1,Ru,null,null,null);function Ru(e){for(let r in so)this[r]=so[r]}var $u=function(){return Du.exports}();const Mu={title:"",items:[]},ju=$e.default.extend($u);let uo,Vt,wr=[];const Fu=()=>{Vt=new ju({el:document.createElement("div")})},Bu=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},qu=e=>{const r=Bu(e.items);Object.entries(yt(Ne({},e),{formData:r})).forEach(([n,t])=>{Vt[n]=t}),document.body.appendChild(Vt.$el),$e.default.nextTick(()=>{Vt.visible=!0})},Hu=()=>{Vt||Fu(),wr.length>0&&(uo=wr.shift(),qu(uo))},Uu=e=>new Promise((r,n)=>{wr.push(yt(Ne(Ne({},Mu),e),{resolve:r,reject:n})),Hu()}),zu=[Tr,kr,Pr,Lr,Rr,jr,qr,gi,Ji,eo,no,ao],fo={version:"dev",install:(e,r={config:{}})=>{zu.forEach(t=>e.component(t.name,t));const n={tablePreset:{separator:"@",presetPropMap:{image(t,{field:o,params:i}){const s=t[o].split("|"),c=i.size||59;return["com-image",{attrs:{src:s,size:c,lazy:!0}}]},link(t,{field:o,params:i}){const s=t[o];let{target:c,href:f,type:h,underline:d}=i;return c=c||"_blank",f=t[f]||s,h=h||"primary",d=!!d,["el-link",{attrs:{target:c,href:f,type:h,underline:d}},s]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=Ne(Ne({},n),r.config),Object.entries(Cu).forEach(([t,o])=>{e.directive(t,o)}),e.prototype.$formDialog=Uu,e.prototype.$jump=(t,o="_blank")=>{window.open(t,o)}},ComTemplate:Tr,ComMenu:kr,ComTabs:Pr,ComTool:Lr,ComDialog:Rr,ComFormItem:jr,ComOperation:qr,ComSearch:gi,ComTable:Ji,ComImage:eo,ComContainer:no,ComEditor:ao};try{fo.version=require("../package.json").version}catch{console.log("no require")}return fo});
52
52
  //# sourceMappingURL=tenghui-ui.umd.js.map