tenghui-ui 2.3.2 → 2.3.3
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.
- package/dist/style.css +1 -1
- package/dist/tenghui-ui.es.js +1985 -74
- package/dist/tenghui-ui.es.js.map +1 -1
- package/dist/tenghui-ui.umd.js +45 -41
- package/dist/tenghui-ui.umd.js.map +1 -1
- package/package.json +2 -1
- package/packages/search/src/Record.vue +23 -16
- package/packages/search/src/index.vue +68 -5
package/dist/tenghui-ui.umd.js
CHANGED
|
@@ -1,65 +1,69 @@
|
|
|
1
|
-
var Zu=Object.defineProperty,Ju=Object.defineProperties;var Qu=Object.getOwnPropertyDescriptors;var mo=Object.getOwnPropertySymbols;var ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable;var yo=(ke,Ae,Me)=>Ae in ke?Zu(ke,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Me}):ke[Ae]=Me,Oe=(ke,Ae)=>{for(var Me in Ae||(Ae={}))ef.call(Ae,Me)&&yo(ke,Me,Ae[Me]);if(mo)for(var Me of mo(Ae))tf.call(Ae,Me)&&yo(ke,Me,Ae[Me]);return ke},mt=(ke,Ae)=>Ju(ke,Qu(Ae));(function(ke,Ae){typeof exports=="object"&&typeof module!="undefined"?module.exports=Ae(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ae):(ke=typeof globalThis!="undefined"?globalThis:ke||self,ke["tenghui-ui"]=Ae(ke.Vue))})(this,function(ke){"use strict";function Ae(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Me=Ae(ke),nf="",go=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)},bo=[],rf="";function Te(e,r,n,t,o,i,s,d){var c=typeof e=="function"?e.options:e;r&&(c.render=r,c.staticRenderFns=n,c._compiled=!0),t&&(c.functional=!0),i&&(c._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)},c._ssrRegister=h):o&&(h=d?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(c.functional){c._injectStyles=h;var f=c.render;c.render=function(u,v){return h.call(v),f(u,v)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,h):[h]}return{exports:e,options:c}}const _o={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:{}},Tr={};var Oo=Te(_o,go,bo,!1,Eo,"183fe45a",null,null);function Eo(e){for(let r in Tr)this[r]=Tr[r]}var Xt=function(){return Oo.exports}();Xt.install=e=>{e.component(Xt.name,Xt)};const Nr=Xt;var So=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(d,c){return n("el-menu-item",{key:d.name,attrs:{index:d.path||d.name}},[e._v(e._s(d.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)},xo=[],of="";const wo={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)}}},Pr={};var Ao=Te(wo,So,xo,!1,To,"0c59bf82",null,null);function To(e){for(let r in Pr)this[r]=Pr[r]}var Zt=function(){return Ao.exports}();Zt.install=e=>{e.component(Zt.name,Zt)};const Cr=Zt;var No=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)])])},Po=[],af="";const Co={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"}}},kr={};var ko=Te(Co,No,Po,!1,Io,"355ab970",null,null);function Io(e){for(let r in kr)this[r]=kr[r]}var Jt=function(){return ko.exports}();Jt.install=e=>{e.component(Jt.name,Jt)};const Ir=Jt;var Lo=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)},Do=[],lf="";const Ro={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}}}},Lr={};var Mo=Te(Ro,Lo,Do,!1,$o,"236d5a2a",null,null);function $o(e){for(let r in Lr)this[r]=Lr[r]}var Qt=function(){return Mo.exports}();Qt.install=e=>{e.component(Qt.name,Qt)};const Dr=Qt;var Nt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mr(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 $r={exports:{}},Fr={exports:{}};/*!
|
|
1
|
+
var Pd=Object.defineProperty,kd=Object.defineProperties;var Id=Object.getOwnPropertyDescriptors;var Ia=Object.getOwnPropertySymbols;var Ld=Object.prototype.hasOwnProperty,Dd=Object.prototype.propertyIsEnumerable;var La=(De,Ne,je)=>Ne in De?Pd(De,Ne,{enumerable:!0,configurable:!0,writable:!0,value:je}):De[Ne]=je,_e=(De,Ne)=>{for(var je in Ne||(Ne={}))Ld.call(Ne,je)&&La(De,je,Ne[je]);if(Ia)for(var je of Ia(Ne))Dd.call(Ne,je)&&La(De,je,Ne[je]);return De},wt=(De,Ne)=>kd(De,Id(Ne));(function(De,Ne){typeof exports=="object"&&typeof module!="undefined"?module.exports=Ne(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ne):(De=typeof globalThis!="undefined"?globalThis:De||self,De["tenghui-ui"]=Ne(De.Vue))})(this,function(De){"use strict";function Ne(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var je=Ne(De),Rd="";function ci(e,r){return function(){return e.apply(r,arguments)}}const{toString:Da}=Object.prototype,{getPrototypeOf:rr}=Object,cn=(e=>r=>{const n=Da.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),r=>cn(r)===e),dn=e=>r=>typeof r===e,{isArray:xt}=Array,Ft=dn("undefined");function Ra(e){return e!==null&&!Ft(e)&&e.constructor!==null&&!Ft(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const di=Ze("ArrayBuffer");function $a(e){let r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&di(e.buffer),r}const Ma=dn("string"),We=dn("function"),hi=dn("number"),hn=e=>e!==null&&typeof e=="object",Fa=e=>e===!0||e===!1,pn=e=>{if(cn(e)!=="object")return!1;const r=rr(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ja=Ze("Date"),Ba=Ze("File"),qa=Ze("Blob"),Ua=Ze("FileList"),Ha=e=>hn(e)&&We(e.pipe),za=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((r=cn(e))==="formdata"||r==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Wa=Ze("URLSearchParams"),Va=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,r,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let t,o;if(typeof e!="object"&&(e=[e]),xt(e))for(t=0,o=e.length;t<o;t++)r.call(null,e[t],t,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let f;for(t=0;t<a;t++)f=i[t],r.call(null,e[f],f,e)}}function pi(e,r){r=r.toLowerCase();const n=Object.keys(e);let t=n.length,o;for(;t-- >0;)if(o=n[t],r===o.toLowerCase())return o;return null}const vi=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),mi=e=>!Ft(e)&&e!==vi;function ir(){const{caseless:e}=mi(this)&&this||{},r={},n=(t,o)=>{const i=e&&pi(r,o)||o;pn(r[i])&&pn(t)?r[i]=ir(r[i],t):pn(t)?r[i]=ir({},t):xt(t)?r[i]=t.slice():r[i]=t};for(let t=0,o=arguments.length;t<o;t++)arguments[t]&&jt(arguments[t],n);return r}const Ga=(e,r,n,{allOwnKeys:t}={})=>(jt(r,(o,i)=>{n&&We(o)?e[i]=ci(o,n):e[i]=o},{allOwnKeys:t}),e),Ka=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ya=(e,r,n,t)=>{e.prototype=Object.create(r.prototype,t),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),n&&Object.assign(e.prototype,n)},Xa=(e,r,n,t)=>{let o,i,a;const f={};if(r=r||{},e==null)return r;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!t||t(a,e,r))&&!f[a]&&(r[a]=e[a],f[a]=!0);e=n!==!1&&rr(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},Ja=(e,r,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=r.length;const t=e.indexOf(r,n);return t!==-1&&t===n},Za=e=>{if(!e)return null;if(xt(e))return e;let r=e.length;if(!hi(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=e[r];return n},Qa=(e=>r=>e&&r instanceof e)(typeof Uint8Array!="undefined"&&rr(Uint8Array)),el=(e,r)=>{const t=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=t.next())&&!o.done;){const i=o.value;r.call(e,i[0],i[1])}},tl=(e,r)=>{let n;const t=[];for(;(n=e.exec(r))!==null;)t.push(n);return t},nl=Ze("HTMLFormElement"),rl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,t,o){return t.toUpperCase()+o}),yi=(({hasOwnProperty:e})=>(r,n)=>e.call(r,n))(Object.prototype),il=Ze("RegExp"),gi=(e,r)=>{const n=Object.getOwnPropertyDescriptors(e),t={};jt(n,(o,i)=>{let a;(a=r(o,i,e))!==!1&&(t[i]=a||o)}),Object.defineProperties(e,t)},ol=e=>{gi(e,(r,n)=>{if(We(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const t=e[n];if(!!We(t)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},al=(e,r)=>{const n={},t=o=>{o.forEach(i=>{n[i]=!0})};return xt(e)?t(e):t(String(e).split(r)),n},ll=()=>{},sl=(e,r)=>(e=+e,Number.isFinite(e)?e:r),or="abcdefghijklmnopqrstuvwxyz",bi="0123456789",_i={DIGIT:bi,ALPHA:or,ALPHA_DIGIT:or+or.toUpperCase()+bi},ul=(e=16,r=_i.ALPHA_DIGIT)=>{let n="";const{length:t}=r;for(;e--;)n+=r[Math.random()*t|0];return n};function fl(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cl=e=>{const r=new Array(10),n=(t,o)=>{if(hn(t)){if(r.indexOf(t)>=0)return;if(!("toJSON"in t)){r[o]=t;const i=xt(t)?[]:{};return jt(t,(a,f)=>{const c=n(a,o+1);!Ft(c)&&(i[f]=c)}),r[o]=void 0,i}}return t};return n(e,0)},dl=Ze("AsyncFunction");var V={isArray:xt,isArrayBuffer:di,isBuffer:Ra,isFormData:za,isArrayBufferView:$a,isString:Ma,isNumber:hi,isBoolean:Fa,isObject:hn,isPlainObject:pn,isUndefined:Ft,isDate:ja,isFile:Ba,isBlob:qa,isRegExp:il,isFunction:We,isStream:Ha,isURLSearchParams:Wa,isTypedArray:Qa,isFileList:Ua,forEach:jt,merge:ir,extend:Ga,trim:Va,stripBOM:Ka,inherits:Ya,toFlatObject:Xa,kindOf:cn,kindOfTest:Ze,endsWith:Ja,toArray:Za,forEachEntry:el,matchAll:tl,isHTMLForm:nl,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:gi,freezeMethods:ol,toObjectSet:al,toCamelCase:rl,noop:ll,toFiniteNumber:sl,findKey:pi,global:vi,isContextDefined:mi,ALPHABET:_i,generateString:ul,isSpecCompliantForm:fl,toJSONObject:cl,isAsyncFn:dl,isThenable:e=>e&&(hn(e)||We(e))&&We(e.then)&&We(e.catch)};function he(e,r,n,t,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),t&&(this.request=t),o&&(this.response=o)}V.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oi=he.prototype,Ei={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ei[e]={value:e}}),Object.defineProperties(he,Ei),Object.defineProperty(Oi,"isAxiosError",{value:!0}),he.from=(e,r,n,t,o,i)=>{const a=Object.create(Oi);return V.toFlatObject(e,a,function(c){return c!==Error.prototype},f=>f!=="isAxiosError"),he.call(a,e.message,r,n,t,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var hl=null;function ar(e){return V.isPlainObject(e)||V.isArray(e)}function Si(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function wi(e,r,n){return e?e.concat(r).map(function(o,i){return o=Si(o),!n&&i?"["+o+"]":o}).join(n?".":""):r}function pl(e){return V.isArray(e)&&!e.some(ar)}const vl=V.toFlatObject(V,{},null,function(r){return/^is[A-Z]/.test(r)});function vn(e,r,n){if(!V.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!V.isUndefined(b[h])});const t=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&V.isSpecCompliantForm(r);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function p(v){if(v===null)return"";if(V.isDate(v))return v.toISOString();if(!c&&V.isBlob(v))throw new he("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(v)||V.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,h,b){let m=v;if(v&&!b&&typeof v=="object"){if(V.endsWith(h,"{}"))h=t?h:h.slice(0,-2),v=JSON.stringify(v);else if(V.isArray(v)&&pl(v)||(V.isFileList(v)||V.endsWith(h,"[]"))&&(m=V.toArray(v)))return h=Si(h),m.forEach(function(_,y){!(V.isUndefined(_)||_===null)&&r.append(a===!0?wi([h],y,i):a===null?h:h+"[]",p(_))}),!1}return ar(v)?!0:(r.append(wi(b,h,i),p(v)),!1)}const l=[],s=Object.assign(vl,{defaultVisitor:u,convertValue:p,isVisitable:ar});function d(v,h){if(!V.isUndefined(v)){if(l.indexOf(v)!==-1)throw Error("Circular reference detected in "+h.join("."));l.push(v),V.forEach(v,function(m,g){(!(V.isUndefined(m)||m===null)&&o.call(r,m,V.isString(g)?g.trim():g,h,s))===!0&&d(m,h?h.concat(g):[g])}),l.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return d(e),r}function xi(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return r[t]})}function lr(e,r){this._pairs=[],e&&vn(e,this,r)}const Ai=lr.prototype;Ai.append=function(r,n){this._pairs.push([r,n])},Ai.toString=function(r){const n=r?function(t){return r.call(this,t,xi)}:xi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ml(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ti(e,r,n){if(!r)return e;const t=n&&n.encode||ml,o=n&&n.serialize;let i;if(o?i=o(r,n):i=V.isURLSearchParams(r)?r.toString():new lr(r,n).toString(t),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class yl{constructor(){this.handlers=[]}use(r,n,t){return this.handlers.push({fulfilled:r,rejected:n,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){V.forEach(this.handlers,function(t){t!==null&&r(t)})}}var Ci=yl,Ni={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gl=typeof URLSearchParams!="undefined"?URLSearchParams:lr,bl=typeof FormData!="undefined"?FormData:null,_l=typeof Blob!="undefined"?Blob:null,Ol={isBrowser:!0,classes:{URLSearchParams:gl,FormData:bl,Blob:_l},protocols:["http","https","file","blob","url","data"]};const Pi=typeof window!="undefined"&&typeof document!="undefined",El=(e=>Pi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),Sl=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var wl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",hasBrowserEnv:Pi,hasStandardBrowserWebWorkerEnv:Sl,hasStandardBrowserEnv:El}),Qe=_e(_e({},wl),Ol);function xl(e,r){return vn(e,new Qe.classes.URLSearchParams,Object.assign({visitor:function(n,t,o,i){return Qe.isNode&&V.isBuffer(n)?(this.append(t,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))}function Al(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Tl(e){const r={},n=Object.keys(e);let t;const o=n.length;let i;for(t=0;t<o;t++)i=n[t],r[i]=e[i];return r}function ki(e){function r(n,t,o,i){let a=n[i++];const f=Number.isFinite(+a),c=i>=n.length;return a=!a&&V.isArray(o)?o.length:a,c?(V.hasOwnProp(o,a)?o[a]=[o[a],t]:o[a]=t,!f):((!o[a]||!V.isObject(o[a]))&&(o[a]=[]),r(n,t,o[a],i)&&V.isArray(o[a])&&(o[a]=Tl(o[a])),!f)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(t,o)=>{r(Al(t),o,n,0)}),n}return null}function Cl(e,r,n){if(V.isString(e))try{return(r||JSON.parse)(e),V.trim(e)}catch(t){if(t.name!=="SyntaxError")throw t}return(n||JSON.stringify)(e)}const sr={transitional:Ni,adapter:["xhr","http"],transformRequest:[function(r,n){const t=n.getContentType()||"",o=t.indexOf("application/json")>-1,i=V.isObject(r);if(i&&V.isHTMLForm(r)&&(r=new FormData(r)),V.isFormData(r))return o&&o?JSON.stringify(ki(r)):r;if(V.isArrayBuffer(r)||V.isBuffer(r)||V.isStream(r)||V.isFile(r)||V.isBlob(r))return r;if(V.isArrayBufferView(r))return r.buffer;if(V.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return xl(r,this.formSerializer).toString();if((f=V.isFileList(r))||t.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return vn(f?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Cl(r)):r}],transformResponse:[function(r){const n=this.transitional||sr.transitional,t=n&&n.forcedJSONParsing,o=this.responseType==="json";if(r&&V.isString(r)&&(t&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(f){if(a)throw f.name==="SyntaxError"?he.from(f,he.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{sr.headers[e]={}});var ur=sr;const Nl=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Pl=e=>{const r={};let n,t,o;return e&&e.split(`
|
|
2
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),t=a.substring(o+1).trim(),!(!n||r[n]&&Nl[n])&&(n==="set-cookie"?r[n]?r[n].push(t):r[n]=[t]:r[n]=r[n]?r[n]+", "+t:t)}),r};const Ii=Symbol("internals");function Bt(e){return e&&String(e).trim().toLowerCase()}function mn(e){return e===!1||e==null?e:V.isArray(e)?e.map(mn):String(e)}function kl(e){const r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(e);)r[t[1]]=t[2];return r}const Il=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fr(e,r,n,t,o){if(V.isFunction(t))return t.call(this,r,n);if(o&&(r=n),!!V.isString(r)){if(V.isString(t))return r.indexOf(t)!==-1;if(V.isRegExp(t))return t.test(r)}}function Ll(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,t)=>n.toUpperCase()+t)}function Dl(e,r){const n=V.toCamelCase(" "+r);["get","set","has"].forEach(t=>{Object.defineProperty(e,t+n,{value:function(o,i,a){return this[t].call(this,r,o,i,a)},configurable:!0})})}class yn{constructor(r){r&&this.set(r)}set(r,n,t){const o=this;function i(f,c,p){const u=Bt(c);if(!u)throw new Error("header name must be a non-empty string");const l=V.findKey(o,u);(!l||o[l]===void 0||p===!0||p===void 0&&o[l]!==!1)&&(o[l||c]=mn(f))}const a=(f,c)=>V.forEach(f,(p,u)=>i(p,u,c));return V.isPlainObject(r)||r instanceof this.constructor?a(r,n):V.isString(r)&&(r=r.trim())&&!Il(r)?a(Pl(r),n):r!=null&&i(n,r,t),this}get(r,n){if(r=Bt(r),r){const t=V.findKey(this,r);if(t){const o=this[t];if(!n)return o;if(n===!0)return kl(o);if(V.isFunction(n))return n.call(this,o,t);if(V.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=Bt(r),r){const t=V.findKey(this,r);return!!(t&&this[t]!==void 0&&(!n||fr(this,this[t],t,n)))}return!1}delete(r,n){const t=this;let o=!1;function i(a){if(a=Bt(a),a){const f=V.findKey(t,a);f&&(!n||fr(t,t[f],f,n))&&(delete t[f],o=!0)}}return V.isArray(r)?r.forEach(i):i(r),o}clear(r){const n=Object.keys(this);let t=n.length,o=!1;for(;t--;){const i=n[t];(!r||fr(this,this[i],i,r,!0))&&(delete this[i],o=!0)}return o}normalize(r){const n=this,t={};return V.forEach(this,(o,i)=>{const a=V.findKey(t,i);if(a){n[a]=mn(o),delete n[i];return}const f=r?Ll(i):String(i).trim();f!==i&&delete n[i],n[f]=mn(o),t[f]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const n=Object.create(null);return V.forEach(this,(t,o)=>{t!=null&&t!==!1&&(n[o]=r&&V.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const t=new this(r);return n.forEach(o=>t.set(o)),t}static accessor(r){const t=(this[Ii]=this[Ii]={accessors:{}}).accessors,o=this.prototype;function i(a){const f=Bt(a);t[f]||(Dl(o,a),t[f]=!0)}return V.isArray(r)?r.forEach(i):i(r),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(yn.prototype,({value:e},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(t){this[n]=t}}}),V.freezeMethods(yn);var rt=yn;function cr(e,r){const n=this||ur,t=r||n,o=rt.from(t.headers);let i=t.data;return V.forEach(e,function(f){i=f.call(n,i,o.normalize(),r?r.status:void 0)}),o.normalize(),i}function Li(e){return!!(e&&e.__CANCEL__)}function qt(e,r,n){he.call(this,e==null?"canceled":e,he.ERR_CANCELED,r,n),this.name="CanceledError"}V.inherits(qt,he,{__CANCEL__:!0});function Rl(e,r,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?e(n):r(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var $l=Qe.hasStandardBrowserEnv?{write(e,r,n,t,o,i){const a=[e+"="+encodeURIComponent(r)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(t)&&a.push("path="+t),V.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ml(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fl(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}function Di(e,r){return e&&!Ml(r)?Fl(e,r):r}var jl=Qe.hasStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let t;function o(i){let a=i;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(a){const f=V.isString(a)?o(a):a;return f.protocol===t.protocol&&f.host===t.host}}():function(){return function(){return!0}}();function Bl(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function ql(e,r){e=e||10;const n=new Array(e),t=new Array(e);let o=0,i=0,a;return r=r!==void 0?r:1e3,function(c){const p=Date.now(),u=t[i];a||(a=p),n[o]=c,t[o]=p;let l=i,s=0;for(;l!==o;)s+=n[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),p-a<r)return;const d=u&&p-u;return d?Math.round(s*1e3/d):void 0}}function Ri(e,r){let n=0;const t=ql(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,f=i-n,c=t(f),p=i<=a;n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:f,rate:c||void 0,estimated:c&&a&&p?(a-i)/c:void 0,event:o};u[r?"download":"upload"]=!0,e(u)}}var Ul=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,t){let o=e.data;const i=rt.from(e.headers).normalize();let{responseType:a,withXSRFToken:f}=e,c;function p(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let u;if(V.isFormData(o)){if(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[h,...b]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...b].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+b))}const s=Di(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ti(s,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const h=rt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};Rl(function(_){n(_),p()},function(_){t(_),p()},m),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){!l||(t(new he("Request aborted",he.ECONNABORTED,e,l)),l=null)},l.onerror=function(){t(new he("Network Error",he.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Ni;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),t(new he(b,m.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,l)),l=null},Qe.hasStandardBrowserEnv&&(f&&V.isFunction(f)&&(f=f(e)),f||f!==!1&&jl(s))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&$l.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&V.forEach(i.toJSON(),function(b,m){l.setRequestHeader(m,b)}),V.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ri(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ri(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=h=>{!l||(t(!h||h.type?new qt(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const v=Bl(s);if(v&&Qe.protocols.indexOf(v)===-1){t(new he("Unsupported protocol "+v+":",he.ERR_BAD_REQUEST,e));return}l.send(o||null)})};const dr={http:hl,xhr:Ul};V.forEach(dr,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const $i=e=>`- ${e}`,Hl=e=>V.isFunction(e)||e===null||e===!1;var Mi={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:r}=e;let n,t;const o={};for(let i=0;i<r;i++){n=e[i];let a;if(t=n,!Hl(n)&&(t=dr[(a=String(n)).toLowerCase()],t===void 0))throw new he(`Unknown adapter '${a}'`);if(t)break;o[a||"#"+i]=t}if(!t){const i=Object.entries(o).map(([f,c])=>`adapter ${f} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
|
|
4
|
+
`+i.map($i).join(`
|
|
5
|
+
`):" "+$i(i[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return t},adapters:dr};function hr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qt(null,e)}function Fi(e){return hr(e),e.headers=rt.from(e.headers),e.data=cr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mi.getAdapter(e.adapter||ur.adapter)(e).then(function(t){return hr(e),t.data=cr.call(e,e.transformResponse,t),t.headers=rt.from(t.headers),t},function(t){return Li(t)||(hr(e),t&&t.response&&(t.response.data=cr.call(e,e.transformResponse,t.response),t.response.headers=rt.from(t.response.headers))),Promise.reject(t)})}const ji=e=>e instanceof rt?e.toJSON():e;function At(e,r){r=r||{};const n={};function t(p,u,l){return V.isPlainObject(p)&&V.isPlainObject(u)?V.merge.call({caseless:l},p,u):V.isPlainObject(u)?V.merge({},u):V.isArray(u)?u.slice():u}function o(p,u,l){if(V.isUndefined(u)){if(!V.isUndefined(p))return t(void 0,p,l)}else return t(p,u,l)}function i(p,u){if(!V.isUndefined(u))return t(void 0,u)}function a(p,u){if(V.isUndefined(u)){if(!V.isUndefined(p))return t(void 0,p)}else return t(void 0,u)}function f(p,u,l){if(l in r)return t(p,u);if(l in e)return t(void 0,p)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:f,headers:(p,u)=>o(ji(p),ji(u),!0)};return V.forEach(Object.keys(Object.assign({},e,r)),function(u){const l=c[u]||o,s=l(e[u],r[u],u);V.isUndefined(s)&&l!==f||(n[u]=s)}),n}const Bi="1.6.2",pr={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{pr[e]=function(t){return typeof t===e||"a"+(r<1?"n ":" ")+e}});const qi={};pr.transitional=function(r,n,t){function o(i,a){return"[Axios v"+Bi+"] Transitional option '"+i+"'"+a+(t?". "+t:"")}return(i,a,f)=>{if(r===!1)throw new he(o(a," has been removed"+(n?" in "+n:"")),he.ERR_DEPRECATED);return n&&!qi[a]&&(qi[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(i,a,f):!0}};function zl(e,r,n){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const t=Object.keys(e);let o=t.length;for(;o-- >0;){const i=t[o],a=r[i];if(a){const f=e[i],c=f===void 0||a(f,i,e);if(c!==!0)throw new he("option "+i+" must be "+c,he.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new he("Unknown option "+i,he.ERR_BAD_OPTION)}}var vr={assertOptions:zl,validators:pr};const st=vr.validators;class gn{constructor(r){this.defaults=r,this.interceptors={request:new Ci,response:new Ci}}request(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=At(this.defaults,n);const{transitional:t,paramsSerializer:o,headers:i}=n;t!==void 0&&vr.assertOptions(t,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),o!=null&&(V.isFunction(o)?n.paramsSerializer={serialize:o}:vr.assertOptions(o,{encode:st.function,serialize:st.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&V.merge(i.common,i[n.method]);i&&V.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=rt.concat(a,i);const f=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,f.unshift(h.fulfilled,h.rejected))});const p=[];this.interceptors.response.forEach(function(h){p.push(h.fulfilled,h.rejected)});let u,l=0,s;if(!c){const v=[Fi.bind(this),void 0];for(v.unshift.apply(v,f),v.push.apply(v,p),s=v.length,u=Promise.resolve(n);l<s;)u=u.then(v[l++],v[l++]);return u}s=f.length;let d=n;for(l=0;l<s;){const v=f[l++],h=f[l++];try{d=v(d)}catch(b){h.call(this,b);break}}try{u=Fi.call(this,d)}catch(v){return Promise.reject(v)}for(l=0,s=p.length;l<s;)u=u.then(p[l++],p[l++]);return u}getUri(r){r=At(this.defaults,r);const n=Di(r.baseURL,r.url);return Ti(n,r.params,r.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(r){gn.prototype[r]=function(n,t){return this.request(At(t||{},{method:r,url:n,data:(t||{}).data}))}}),V.forEach(["post","put","patch"],function(r){function n(t){return function(i,a,f){return this.request(At(f||{},{method:r,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}gn.prototype[r]=n(),gn.prototype[r+"Form"]=n(!0)});var bn=gn;class mr{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const t=this;this.promise.then(o=>{if(!t._listeners)return;let i=t._listeners.length;for(;i-- >0;)t._listeners[i](o);t._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(f=>{t.subscribe(f),i=f}).then(o);return a.cancel=function(){t.unsubscribe(i)},a},r(function(i,a,f){t.reason||(t.reason=new qt(i,a,f),n(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}static source(){let r;return{token:new mr(function(o){r=o}),cancel:r}}}var Wl=mr;function Vl(e){return function(n){return e.apply(null,n)}}function Gl(e){return V.isObject(e)&&e.isAxiosError===!0}const yr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yr).forEach(([e,r])=>{yr[r]=e});var Kl=yr;function Ui(e){const r=new bn(e),n=ci(bn.prototype.request,r);return V.extend(n,bn.prototype,r,{allOwnKeys:!0}),V.extend(n,r,null,{allOwnKeys:!0}),n.create=function(o){return Ui(At(e,o))},n}const we=Ui(ur);we.Axios=bn,we.CanceledError=qt,we.CancelToken=Wl,we.isCancel=Li,we.VERSION=Bi,we.toFormData=vn,we.AxiosError=he,we.Cancel=we.CanceledError,we.all=function(r){return Promise.all(r)},we.spread=Vl,we.isAxiosError=Gl,we.mergeConfig=At,we.AxiosHeaders=rt,we.formToJSON=e=>ki(V.isHTMLForm(e)?new FormData(e):e),we.getAdapter=Mi.getAdapter,we.HttpStatusCode=Kl,we.default=we;var Yl=we,Xl=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)},Jl=[],Fd="";function Pe(e,r,n,t,o,i,a,f){var c=typeof e=="function"?e.options:e;r&&(c.render=r,c.staticRenderFns=n,c._compiled=!0),t&&(c.functional=!0),i&&(c._scopeId="data-v-"+i);var p;if(a?(p=function(s){s=s||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!s&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(s=__VUE_SSR_CONTEXT__),o&&o.call(this,s),s&&s._registeredComponents&&s._registeredComponents.add(a)},c._ssrRegister=p):o&&(p=f?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),p)if(c.functional){c._injectStyles=p;var u=c.render;c.render=function(d,v){return p.call(v),u(d,v)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,p):[p]}return{exports:e,options:c}}const Zl={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:{}},Hi={};var Ql=Pe(Zl,Xl,Jl,!1,es,"183fe45a",null,null);function es(e){for(let r in Hi)this[r]=Hi[r]}var _n=function(){return Ql.exports}();_n.install=e=>{e.component(_n.name,_n)};const zi=_n;var ts=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,a){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(f,c){return n("el-menu-item",{key:f.name,attrs:{index:f.path||f.name}},[e._v(e._s(f.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)},ns=[],jd="";const rs={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)}}},Wi={};var is=Pe(rs,ts,ns,!1,os,"0c59bf82",null,null);function os(e){for(let r in Wi)this[r]=Wi[r]}var On=function(){return is.exports}();On.install=e=>{e.component(On.name,On)};const Vi=On;var as=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)])])},ls=[],Bd="";const ss={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"}}},Gi={};var us=Pe(ss,as,ls,!1,fs,"355ab970",null,null);function fs(e){for(let r in Gi)this[r]=Gi[r]}var En=function(){return us.exports}();En.install=e=>{e.component(En.name,En)};const Ki=En;var cs=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)},ds=[],qd="";const hs={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}}}},Yi={};var ps=Pe(hs,cs,ds,!1,vs,"236d5a2a",null,null);function vs(e){for(let r in Yi)this[r]=Yi[r]}var Sn=function(){return ps.exports}();Sn.install=e=>{e.component(Sn.name,Sn)};const Xi=Sn;var Ut=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zi(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 Qi={exports:{}},eo={exports:{}};/*!
|
|
2
6
|
* Infinite Scroll v2.0.4
|
|
3
7
|
* measure size of elements
|
|
4
8
|
* MIT license
|
|
5
|
-
*/(function(e){(function(r,n){e.exports?e.exports=n():r.getSize=n()})(window,function(){function n(
|
|
9
|
+
*/(function(e){(function(r,n){e.exports?e.exports=n():r.getSize=n()})(window,function(){function n(a){let f=parseFloat(a);return a.indexOf("%")==-1&&!isNaN(f)&&f}let t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];function o(){let a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return t.forEach(f=>{a[f]=0}),a}function i(a){if(typeof a=="string"&&(a=document.querySelector(a)),!(a&&typeof a=="object"&&a.nodeType))return;let c=getComputedStyle(a);if(c.display=="none")return o();let p={};p.width=a.offsetWidth,p.height=a.offsetHeight;let u=p.isBorderBox=c.boxSizing=="border-box";t.forEach(_=>{let y=c[_],O=parseFloat(y);p[_]=isNaN(O)?0:O});let l=p.paddingLeft+p.paddingRight,s=p.paddingTop+p.paddingBottom,d=p.marginLeft+p.marginRight,v=p.marginTop+p.marginBottom,h=p.borderLeftWidth+p.borderRightWidth,b=p.borderTopWidth+p.borderBottomWidth,m=n(c.width);m!==!1&&(p.width=m+(u?0:l+h));let g=n(c.height);return g!==!1&&(p.height=g+(u?0:s+b)),p.innerWidth=p.width-(l+h),p.innerHeight=p.height-(s+b),p.outerWidth=p.width+d,p.outerHeight=p.height+v,p}return i})})(eo);var to={exports:{}},no={exports:{}};(function(e){(function(r,n){e.exports?e.exports=n():r.EvEmitter=n()})(typeof window!="undefined"?window:Ut,function(){function r(){}let n=r.prototype;return n.on=function(t,o){if(!t||!o)return this;let i=this._events=this._events||{},a=i[t]=i[t]||[];return a.includes(o)||a.push(o),this},n.once=function(t,o){if(!t||!o)return this;this.on(t,o);let i=this._onceEvents=this._onceEvents||{},a=i[t]=i[t]||{};return a[o]=!0,this},n.off=function(t,o){let i=this._events&&this._events[t];if(!i||!i.length)return this;let a=i.indexOf(o);return a!=-1&&i.splice(a,1),this},n.emitEvent=function(t,o){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),o=o||[];let a=this._onceEvents&&this._onceEvents[t];for(let f of i)a&&a[f]&&(this.off(t,f),delete a[f]),f.apply(this,o);return this},n.allOff=function(){return delete this._events,delete this._onceEvents,this},r})})(no);/*!
|
|
6
10
|
* Unidragger v3.0.1
|
|
7
11
|
* Draggable base class
|
|
8
12
|
* MIT license
|
|
9
|
-
*/(function(e){(function(r,n){e.exports?e.exports=n(r,
|
|
13
|
+
*/(function(e){(function(r,n){e.exports?e.exports=n(r,no.exports):r.Unidragger=n(r,r.EvEmitter)})(typeof window!="undefined"?window:Ut,function(n,t){function o(){}let i=o.prototype=Object.create(t.prototype);i.handleEvent=function(u){let l="on"+u.type;this[l]&&this[l](u)};let a,f;"ontouchstart"in n?(a="touchstart",f=["touchmove","touchend","touchcancel"]):n.PointerEvent?(a="pointerdown",f=["pointermove","pointerup","pointercancel"]):(a="mousedown",f=["mousemove","mouseup"]),i.touchActionValue="none",i.bindHandles=function(){this._bindHandles("addEventListener",this.touchActionValue)},i.unbindHandles=function(){this._bindHandles("removeEventListener","")},i._bindHandles=function(u,l){this.handles.forEach(s=>{s[u](a,this),s[u]("click",this),n.PointerEvent&&(s.style.touchAction=l)})},i.bindActivePointerEvents=function(){f.forEach(u=>{n.addEventListener(u,this)})},i.unbindActivePointerEvents=function(){f.forEach(u=>{n.removeEventListener(u,this)})},i.withPointer=function(u,l){l.pointerId===this.pointerIdentifier&&this[u](l,l)},i.withTouch=function(u,l){let s;for(let d of l.changedTouches)d.identifier===this.pointerIdentifier&&(s=d);s&&this[u](l,s)},i.onmousedown=function(u){this.pointerDown(u,u)},i.ontouchstart=function(u){this.pointerDown(u,u.changedTouches[0])},i.onpointerdown=function(u){this.pointerDown(u,u)};const c=["TEXTAREA","INPUT","SELECT","OPTION"],p=["radio","checkbox","button","submit","image","file"];return i.pointerDown=function(u,l){let s=c.includes(u.target.nodeName),d=p.includes(u.target.type),v=!s||d;!(!this.isPointerDown&&!u.button&&v)||(this.isPointerDown=!0,this.pointerIdentifier=l.pointerId!==void 0?l.pointerId:l.identifier,this.pointerDownPointer={pageX:l.pageX,pageY:l.pageY},this.bindActivePointerEvents(),this.emitEvent("pointerDown",[u,l]))},i.onmousemove=function(u){this.pointerMove(u,u)},i.onpointermove=function(u){this.withPointer("pointerMove",u)},i.ontouchmove=function(u){this.withTouch("pointerMove",u)},i.pointerMove=function(u,l){let s={x:l.pageX-this.pointerDownPointer.pageX,y:l.pageY-this.pointerDownPointer.pageY};this.emitEvent("pointerMove",[u,l,s]),!this.isDragging&&this.hasDragStarted(s)&&this.dragStart(u,l),this.isDragging&&this.dragMove(u,l,s)},i.hasDragStarted=function(u){return Math.abs(u.x)>3||Math.abs(u.y)>3},i.dragStart=function(u,l){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent("dragStart",[u,l])},i.dragMove=function(u,l,s){this.emitEvent("dragMove",[u,l,s])},i.onmouseup=function(u){this.pointerUp(u,u)},i.onpointerup=function(u){this.withPointer("pointerUp",u)},i.ontouchend=function(u){this.withTouch("pointerUp",u)},i.pointerUp=function(u,l){this.pointerDone(),this.emitEvent("pointerUp",[u,l]),this.isDragging?this.dragEnd(u,l):this.staticClick(u,l)},i.dragEnd=function(u,l){this.isDragging=!1,setTimeout(()=>delete this.isPreventingClicks),this.emitEvent("dragEnd",[u,l])},i.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent("pointerDone")},i.onpointercancel=function(u){this.withPointer("pointerCancel",u)},i.ontouchcancel=function(u){this.withTouch("pointerCancel",u)},i.pointerCancel=function(u,l){this.pointerDone(),this.emitEvent("pointerCancel",[u,l])},i.onclick=function(u){this.isPreventingClicks&&u.preventDefault()},i.staticClick=function(u,l){let s=u.type==="mouseup";s&&this.isIgnoringMouseUp||(this.emitEvent("staticClick",[u,l]),s&&(this.isIgnoringMouseUp=!0,setTimeout(()=>{delete this.isIgnoringMouseUp},400)))},o})})(to);/*!
|
|
10
14
|
* Draggabilly v3.0.0
|
|
11
15
|
* Make that shiz draggable
|
|
12
16
|
* https://draggabilly.desandro.com
|
|
13
17
|
* MIT license
|
|
14
|
-
*/(function(e){(function(r,n){e.exports?e.exports=n(r,Fr.exports,jr.exports):r.Draggabilly=n(r,r.getSize,r.Unidragger)})(typeof window!="undefined"?window:Nt,function(n,t,o){function i(){}let s=n.jQuery;function d(v,p){this.element=typeof v=="string"?document.querySelector(v):v,s&&(this.$element=s(this.element)),this.options={},this.option(p),this._create()}let c=d.prototype=Object.create(o.prototype);c.option=function(v){this.options=Oe(Oe({},this.options),v)};const h=["relative","absolute","fixed"];c._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=Oe({},this.position);let v=getComputedStyle(this.element);h.includes(v.position)||(this.element.style.position="relative"),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.setHandles(),this.enable()},c.setHandles=function(){let{handle:v}=this.options;typeof v=="string"?this.handles=this.element.querySelectorAll(v):typeof v=="object"&&v.length?this.handles=v:v instanceof HTMLElement?this.handles=[v]:this.handles=[this.element]};const f=["dragStart","dragMove","dragEnd"];let l=c.emitEvent;c.emitEvent=function(v,p){if(!this.isEnabled&&f.includes(v))return;l.call(this,v,p);let m=n.jQuery;if(!m||!this.$element)return;let g,_=p;p&&p[0]instanceof Event&&([g,..._]=p);let O=m.Event(g);O.type=v,this.$element.trigger(O,_)},c._getPosition=function(){let v=getComputedStyle(this.element),p=this._getPositionCoord(v.left,"width"),b=this._getPositionCoord(v.top,"height");this.position.x=isNaN(p)?0:p,this.position.y=isNaN(b)?0:b,this._addTransformPosition(v)},c._getPositionCoord=function(v,p){if(v.includes("%")){let b=t(this.element.parentNode);return b?parseFloat(v)/100*b[p]:0}return parseInt(v,10)},c._addTransformPosition=function(v){let p=v.transform;if(!p.startsWith("matrix"))return;let b=p.split(","),m=p.startsWith("matrix3d")?12:4,g=parseInt(b[m],10),_=parseInt(b[m+1],10);this.position.x+=g,this.position.y+=_},c.handlePointerDown=function(v,p){!this.isEnabled||(this.pointerDownPointer={pageX:p.pageX,pageY:p.pageY},v.preventDefault(),document.activeElement.blur(),this.bindActivePointerEvents(v),this.element.classList.add("is-pointer-down"))},c.handleDragStart=function(){!this.isEnabled||(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.animate())},c.measureContainment=function(){let v=this.getContainer();if(!v)return;let p=t(this.element),b=t(v),{borderLeftWidth:m,borderRightWidth:g,borderTopWidth:_,borderBottomWidth:y}=b,O=this.element.getBoundingClientRect(),P=v.getBoundingClientRect(),T=m+g,A=_+y,I=this.relativeStartPosition={x:O.left-(P.left+m),y:O.top-(P.top+_)};this.containSize={width:b.width-T-I.x-p.width,height:b.height-A-I.y-p.height}},c.getContainer=function(){let v=this.options.containment;return v?v instanceof HTMLElement?v:typeof v=="string"?document.querySelector(v):this.element.parentNode:void 0},c.handleDragMove=function(v,p,b){if(!this.isEnabled)return;let m=b.x,g=b.y,_=this.options.grid,y=_&&_[0],O=_&&_[1];m=a(m,y),g=a(g,O),m=this.containDrag("x",m,y),g=this.containDrag("y",g,O),m=this.options.axis=="y"?0:m,g=this.options.axis=="x"?0:g,this.position.x=this.startPosition.x+m,this.position.y=this.startPosition.y+g,this.dragPoint.x=m,this.dragPoint.y=g};function a(v,p,b){return p?(b=b||"round",Math[b](v/p)*p):v}c.containDrag=function(v,p,b){if(!this.options.containment)return p;let m=v=="x"?"width":"height",g=this.relativeStartPosition[v],_=a(-g,b,"ceil"),y=this.containSize[m];return y=a(y,b,"floor"),Math.max(_,Math.min(y,p))},c.handlePointerUp=function(){this.element.classList.remove("is-pointer-down")},c.handleDragEnd=function(){!this.isEnabled||(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"))},c.animate=function(){!this.isDragging||(this.positionDrag(),requestAnimationFrame(()=>this.animate()))},c.setLeftTop=function(){let{x:v,y:p}=this.position;this.element.style.left=`${v}px`,this.element.style.top=`${p}px`},c.positionDrag=function(){let{x:v,y:p}=this.dragPoint;this.element.style.transform=`translate3d(${v}px, ${p}px, 0)`},c.setPosition=function(v,p){this.position.x=v,this.position.y=p,this.setLeftTop()},c.enable=function(){this.isEnabled||(this.isEnabled=!0,this.bindHandles())},c.disable=function(){!this.isEnabled||(this.isEnabled=!1,this.isDragging&&this.dragEnd(),this.unbindHandles())};const u=["transform","left","top","position"];return c.destroy=function(){this.disable(),u.forEach(v=>{this.element.style[v]=""}),this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},c._init=i,s&&s.bridget&&s.bridget("draggabilly",d),d})})($r);var Fo=$r.exports,jo=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"","custom-class":"drag-dialog drag-dialog--"+e.dgFlagId,top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{"~opened":function(t){return e.handleBindDragEvent(t)},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)},Bo=[],sf="";const qo={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,dgFlagId:Math.ceil(Math.random()*1e3)}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},handleBindDragEvent(){new Fo(`.drag-dialog--${this.dgFlagId}`,{handle:".el-dialog__header"})}}},qr={};var Ho=Te(qo,jo,Bo,!1,Uo,"68b35a11",null,null);function Uo(e){for(let r in qr)this[r]=qr[r]}var en=function(){return Ho.exports}();en.install=e=>{e.component(en.name,en)};const Hr=en,Ur={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},zo=mt(Oe({},Ur),{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"}),Wo=mt(Oe({},Ur),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),Go={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:Wo,datetimerange:zo,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 Vo=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==="daterangesplit"?[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\u65E5\u671F"},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:"date",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\u65E5\u671F"},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:"date",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!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)])},Ko=[],cf="";const Yo={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 Oe({},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 mt(Oe({},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]||Go[r]||{};return Oe(Oe({},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)}}},zr={};var Xo=Te(Yo,Vo,Ko,!1,Zo,"3db69e08",null,null);function Zo(e){for(let r in zr)this[r]=zr[r]}var tn=function(){return Xo.exports}();tn.install=e=>{e.component(tn.name,tn)};const Wr=tn;var Jo=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)},Qo=[],df="";const ea={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},Gr={};var ta=Te(ea,Jo,Qo,!1,na,"c24a1f4c",null,null);function na(e){for(let r in Gr)this[r]=Gr[r]}var ra=function(){return ta.exports}(),ia=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},oa=[],hf="";const aa={name:"ComOperation",components:{Items:ra},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)}}},Vr={};var la=Te(aa,ia,oa,!1,sa,"3592f4b8",null,null);function sa(e){for(let r in Vr)this[r]=Vr[r]}var nn=function(){return la.exports}();nn.install=e=>{e.component(nn.name,nn)};const Kr=nn;var Yr={exports:{}};/**!
|
|
18
|
+
*/(function(e){(function(r,n){e.exports?e.exports=n(r,eo.exports,to.exports):r.Draggabilly=n(r,r.getSize,r.Unidragger)})(typeof window!="undefined"?window:Ut,function(n,t,o){function i(){}let a=n.jQuery;function f(v,h){this.element=typeof v=="string"?document.querySelector(v):v,a&&(this.$element=a(this.element)),this.options={},this.option(h),this._create()}let c=f.prototype=Object.create(o.prototype);c.option=function(v){this.options=_e(_e({},this.options),v)};const p=["relative","absolute","fixed"];c._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=_e({},this.position);let v=getComputedStyle(this.element);p.includes(v.position)||(this.element.style.position="relative"),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.setHandles(),this.enable()},c.setHandles=function(){let{handle:v}=this.options;typeof v=="string"?this.handles=this.element.querySelectorAll(v):typeof v=="object"&&v.length?this.handles=v:v instanceof HTMLElement?this.handles=[v]:this.handles=[this.element]};const u=["dragStart","dragMove","dragEnd"];let l=c.emitEvent;c.emitEvent=function(v,h){if(!this.isEnabled&&u.includes(v))return;l.call(this,v,h);let m=n.jQuery;if(!m||!this.$element)return;let g,_=h;h&&h[0]instanceof Event&&([g,..._]=h);let O=m.Event(g);O.type=v,this.$element.trigger(O,_)},c._getPosition=function(){let v=getComputedStyle(this.element),h=this._getPositionCoord(v.left,"width"),b=this._getPositionCoord(v.top,"height");this.position.x=isNaN(h)?0:h,this.position.y=isNaN(b)?0:b,this._addTransformPosition(v)},c._getPositionCoord=function(v,h){if(v.includes("%")){let b=t(this.element.parentNode);return b?parseFloat(v)/100*b[h]:0}return parseInt(v,10)},c._addTransformPosition=function(v){let h=v.transform;if(!h.startsWith("matrix"))return;let b=h.split(","),m=h.startsWith("matrix3d")?12:4,g=parseInt(b[m],10),_=parseInt(b[m+1],10);this.position.x+=g,this.position.y+=_},c.handlePointerDown=function(v,h){!this.isEnabled||(this.pointerDownPointer={pageX:h.pageX,pageY:h.pageY},v.preventDefault(),document.activeElement.blur(),this.bindActivePointerEvents(v),this.element.classList.add("is-pointer-down"))},c.handleDragStart=function(){!this.isEnabled||(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.animate())},c.measureContainment=function(){let v=this.getContainer();if(!v)return;let h=t(this.element),b=t(v),{borderLeftWidth:m,borderRightWidth:g,borderTopWidth:_,borderBottomWidth:y}=b,O=this.element.getBoundingClientRect(),N=v.getBoundingClientRect(),T=m+g,A=_+y,I=this.relativeStartPosition={x:O.left-(N.left+m),y:O.top-(N.top+_)};this.containSize={width:b.width-T-I.x-h.width,height:b.height-A-I.y-h.height}},c.getContainer=function(){let v=this.options.containment;return v?v instanceof HTMLElement?v:typeof v=="string"?document.querySelector(v):this.element.parentNode:void 0},c.handleDragMove=function(v,h,b){if(!this.isEnabled)return;let m=b.x,g=b.y,_=this.options.grid,y=_&&_[0],O=_&&_[1];m=s(m,y),g=s(g,O),m=this.containDrag("x",m,y),g=this.containDrag("y",g,O),m=this.options.axis=="y"?0:m,g=this.options.axis=="x"?0:g,this.position.x=this.startPosition.x+m,this.position.y=this.startPosition.y+g,this.dragPoint.x=m,this.dragPoint.y=g};function s(v,h,b){return h?(b=b||"round",Math[b](v/h)*h):v}c.containDrag=function(v,h,b){if(!this.options.containment)return h;let m=v=="x"?"width":"height",g=this.relativeStartPosition[v],_=s(-g,b,"ceil"),y=this.containSize[m];return y=s(y,b,"floor"),Math.max(_,Math.min(y,h))},c.handlePointerUp=function(){this.element.classList.remove("is-pointer-down")},c.handleDragEnd=function(){!this.isEnabled||(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"))},c.animate=function(){!this.isDragging||(this.positionDrag(),requestAnimationFrame(()=>this.animate()))},c.setLeftTop=function(){let{x:v,y:h}=this.position;this.element.style.left=`${v}px`,this.element.style.top=`${h}px`},c.positionDrag=function(){let{x:v,y:h}=this.dragPoint;this.element.style.transform=`translate3d(${v}px, ${h}px, 0)`},c.setPosition=function(v,h){this.position.x=v,this.position.y=h,this.setLeftTop()},c.enable=function(){this.isEnabled||(this.isEnabled=!0,this.bindHandles())},c.disable=function(){!this.isEnabled||(this.isEnabled=!1,this.isDragging&&this.dragEnd(),this.unbindHandles())};const d=["transform","left","top","position"];return c.destroy=function(){this.disable(),d.forEach(v=>{this.element.style[v]=""}),this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},c._init=i,a&&a.bridget&&a.bridget("draggabilly",f),f})})(Qi);var ms=Qi.exports,ys=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"","custom-class":"drag-dialog drag-dialog--"+e.dgFlagId,top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{"~opened":function(t){return e.handleBindDragEvent(t)},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)},gs=[],Ud="";const bs={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,dgFlagId:Math.ceil(Math.random()*1e3)}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},handleBindDragEvent(){new ms(`.drag-dialog--${this.dgFlagId}`,{handle:".el-dialog__header"})}}},ro={};var _s=Pe(bs,ys,gs,!1,Os,"68b35a11",null,null);function Os(e){for(let r in ro)this[r]=ro[r]}var wn=function(){return _s.exports}();wn.install=e=>{e.component(wn.name,wn)};const io=wn,oo={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},Es=wt(_e({},oo),{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"}),Ss=wt(_e({},oo),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),ws={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:Ss,datetimerange:Es,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 xs=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==="daterangesplit"?[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\u65E5\u671F"},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:"date",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\u65E5\u671F"},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:"date",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!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)])},As=[],Wd="";const Ts={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 _e({},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 wt(_e({},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]||ws[r]||{};return _e(_e({},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)}}},ao={};var Cs=Pe(Ts,xs,As,!1,Ns,"3db69e08",null,null);function Ns(e){for(let r in ao)this[r]=ao[r]}var xn=function(){return Cs.exports}();xn.install=e=>{e.component(xn.name,xn)};const lo=xn;var Ps=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)},ks=[],Vd="";const Is={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},so={};var Ls=Pe(Is,Ps,ks,!1,Ds,"c24a1f4c",null,null);function Ds(e){for(let r in so)this[r]=so[r]}var Rs=function(){return Ls.exports}(),$s=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},Ms=[],Gd="";const Fs={name:"ComOperation",components:{Items:Rs},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)}}},uo={};var js=Pe(Fs,$s,Ms,!1,Bs,"3592f4b8",null,null);function Bs(e){for(let r in uo)this[r]=uo[r]}var An=function(){return js.exports}();An.install=e=>{e.component(An.name,An)};const fo=An;var co={exports:{}};/**!
|
|
15
19
|
* Sortable 1.10.2
|
|
16
20
|
* @author RubaXa <trash@rubaxa.org>
|
|
17
21
|
* @author owenm <owen23355@gmail.com>
|
|
18
22
|
* @license MIT
|
|
19
|
-
*/function rn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rn=function(r){return typeof r}:rn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rn(e)}function ua(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){ua(e,o,n[o])})}return e}function fa(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 ca(e,r){if(e==null)return{};var n=fa(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 da(e){return ha(e)||pa(e)||va()}function ha(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 pa(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function va(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var ma="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),Pt=Ze(/Edge/i),Xr=Ze(/firefox/i),Dn=Ze(/safari/i)&&!Ze(/chrome/i)&&!Ze(/android/i),Zr=Ze(/iP(ad|od|hone)/i),ya=Ze(/chrome/i)&&Ze(/android/i),Jr={capture:!1,passive:!1};function fe(e,r,n){e.addEventListener(r,n,!Je&&Jr)}function ae(e,r,n){e.removeEventListener(r,n,!Je&&Jr)}function on(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 ga(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&&on(e,r):on(e,r))||t&&e===n)return e;if(e===n)break}while(e=ga(e))}return null}var Qr=/\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(Qr," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(Qr," ")}}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 ei(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 Ke(){var e=document.scrollingElement;return e||document.documentElement}function ge(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,d,c,h,f,l;if(e!==window&&e!==Ke()?(i=e.getBoundingClientRect(),s=i.top,d=i.left,c=i.bottom,h=i.right,f=i.height,l=i.width):(s=0,d=0,c=window.innerHeight,h=window.innerWidth,f=window.innerHeight,l=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")),d-=a.left+parseInt(ee(o,"border-left-width")),c=s+i.height,h=d+i.width;break}while(o=o.parentNode);if(t&&e!==window){var u=ft(o||e),v=u&&u.a,p=u&&u.d;u&&(s/=p,d/=v,l/=v,f/=p,c=s+f,h=d+l)}return{top:s,left:d,bottom:c,right:h,width:l,height:f}}}function ti(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===Ke())break;t=nt(t,!1)}return!1}function an(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 Rn(e,r){for(var n=e.lastElementChild;n&&(n===te.ghost||ee(n,"display")==="none"||r&&!on(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||on(e,r))&&n++;return n}function ni(e){var r=0,n=0,t=Ke();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 ba(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 Ke();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 Ke();if(t||r)return n;t=!0}}while(n=n.parentNode);return Ke()}function _a(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function Mn(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 Ct;function ri(e,r){return function(){if(!Ct){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),Ct=setTimeout(function(){Ct=void 0},r)}}}function Oa(){clearTimeout(Ct),Ct=void 0}function ii(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 oi(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 Fn(e){ee(e,"position",""),ee(e,"top",""),ee(e,"left",""),ee(e,"width",""),ee(e,"height","")}var Ie="Sortable"+new Date().getTime();function Ea(){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(ba(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(d){var c=0,h=d.target,f=h.fromRect,l=ge(h),a=h.prevFromRect,u=h.prevToRect,v=d.rect,p=ft(h,!0);p&&(l.top-=p.f,l.left-=p.e),h.toRect=l,h.thisAnimationDuration&&Mn(a,l)&&!Mn(f,l)&&(v.top-l.top)/(v.left-l.left)==(f.top-l.top)/(f.left-l.left)&&(c=xa(v,a,u,o.options)),Mn(l,f)||(h.prevFromRect=f,h.prevToRect=l,c||(c=o.options.animation),o.animate(h,v,l,c)),c&&(i=!0,s=Math.max(s,c),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},c),h.thisAnimationDuration=c)}),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 d=ft(this.el),c=d&&d.a,h=d&&d.d,f=(o.left-i.left)/(c||1),l=(o.top-i.top)/(h||1);t.animatingX=!!f,t.animatingY=!!l,ee(t,"transform","translate3d("+f+"px,"+l+"px,0)"),Sa(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 Sa(e){return e.offsetWidth}function xa(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 kt=[],jn={initializeByDefault:!0},It={mount:function(r){for(var n in jn)jn.hasOwnProperty(n)&&!(n in r)&&(r[n]=jn[n]);kt.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";kt.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){kt.forEach(function(d){var c=d.pluginName;if(!(!r.options[c]&&!d.initializeByDefault)){var h=new d(r,n,r.options);h.sortable=r,h.options=r.options,r[c]=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 kt.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 kt.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function Lt(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,d=e.fromEl,c=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,l=e.newDraggableIndex,a=e.originalEvent,u=e.putSortable,v=e.extraEventProperties;if(r=r||n&&n[Ie],!!r){var p,b=r.options,m="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Je&&!Pt?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=s||n,p.from=d||n,p.item=o||n,p.clone=i,p.oldIndex=c,p.newIndex=h,p.oldDraggableIndex=f,p.newDraggableIndex=l,p.originalEvent=a,p.pullMode=u?u.lastPutMode:void 0;var g=tt({},v,It.getEventProperties(t,r));for(var _ in g)p[_]=g[_];n&&n.dispatchEvent(p),b[m]&&b[m].call(r,p)}}var $e=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=ca(t,["evt"]);It.pluginEvent.bind(te)(r,n,tt({dragEl:X,parentEl:Ee,ghostEl:ie,rootEl:me,nextEl:ct,lastDownEl:ln,cloneEl:_e,cloneHidden:rt,dragStarted:Rt,putSortable:Pe,activeSortable:te.active,originalEvent:o,oldIndex:yt,oldDraggableIndex:Dt,newIndex:je,newDraggableIndex:it,hideGhostForTarget:di,unhideGhostForTarget:hi,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(d){Re({sortable:n,name:d,originalEvent:o})}},i))};function Re(e){Lt(tt({putSortable:Pe,cloneEl:_e,targetEl:X,rootEl:me,oldIndex:yt,oldDraggableIndex:Dt,newIndex:je,newDraggableIndex:it},e))}var X,Ee,ie,me,ct,ln,_e,rt,yt,je,Dt,it,sn,Pe,gt=!1,un=!1,fn=[],dt,Ge,Bn,qn,ai,li,Rt,bt,Mt,$t=!1,cn=!1,dn,Le,Hn=[],Un=!1,hn=[],pn=typeof document!="undefined",vn=Zr,si=Pt||Je?"cssFloat":"float",wa=pn&&!ya&&!Zr&&"draggable"in document.createElement("div"),ui=function(){if(!!pn){if(Je)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),fi=function(r,n){var t=ee(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=an(r,0,n),s=an(r,1,n),d=i&&ee(i),c=s&&ee(s),h=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+ge(i).width,f=c&&parseInt(c.marginLeft)+parseInt(c.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&&d.float&&d.float!=="none"){var l=d.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===l)?"vertical":"horizontal"}return i&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||h>=o&&t[si]==="none"||s&&t[si]==="none"&&h+f>o)?"vertical":"horizontal"},Aa=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,s=t?r.width:r.height,d=t?n.left:n.top,c=t?n.right:n.bottom,h=t?n.width:n.height;return o===d||i===c||o+s/2===d+h/2},Ta=function(r,n){var t;return fn.some(function(o){if(!Rn(o)){var i=ge(o),s=o[Ie].options.emptyInsertThreshold,d=r>=i.left-s&&r<=i.right+s,c=n>=i.top-s&&n<=i.bottom+s;if(s&&d&&c)return t=o}}),t},ci=function(r){function n(i,s){return function(d,c,h,f){var l=d.options.group.name&&c.options.group.name&&d.options.group.name===c.options.group.name;if(i==null&&(s||l))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(d,c,h,f),s)(d,c,h,f);var a=(s?d:c).options.group.name;return i===!0||typeof i=="string"&&i===a||i.join&&i.indexOf(a)>-1}}var t={},o=r.group;(!o||rn(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},di=function(){!ui&&ie&&ee(ie,"display","none")},hi=function(){!ui&&ie&&ee(ie,"display","")};pn&&document.addEventListener("click",function(e){if(un)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),un=!1,!1},!0);var ht=function(r){if(X){r=r.touches?r.touches[0]:r;var n=Ta(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)}}},Na=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 fi(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,d){s.setData("Text",d.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};It.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);ci(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:wa,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)),fn.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),He(this,Ea())}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,d=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(d||r).target,h=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,f=o.filter;if(Ra(t),!X&&!(/mousedown|pointerdown/.test(s)&&r.button!==0||o.disabled)&&!h.isContentEditable&&(c=We(c,o.draggable,t,!1),!(c&&c.animated)&&ln!==c)){if(yt=be(c),Dt=be(c,o.draggable),typeof f=="function"){if(f.call(this,r,c,this)){Re({sortable:n,rootEl:h,name:"filter",targetEl:c,toEl:t,fromEl:t}),$e("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(f&&(f=f.split(",").some(function(l){if(l=We(h,l.trim(),t,!1),l)return Re({sortable:n,rootEl:l,name:"filter",targetEl:c,fromEl:t,toEl:t}),$e("filter",n,{evt:r}),!0}),f)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!We(h,o.handle,t,!1)||this._prepareDragStart(r,d,c)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,s=o.options,d=i.ownerDocument,c;if(t&&!X&&t.parentNode===i){var h=ge(t);if(me=i,X=t,Ee=X.parentNode,ct=X.nextSibling,ln=t,sn=s.group,te.dragged=X,dt={target:X,clientX:(n||r).clientX,clientY:(n||r).clientY},ai=dt.clientX-h.left,li=dt.clientY-h.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,X.style["will-change"]="all",c=function(){if($e("delayEnded",o,{evt:r}),te.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Xr&&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(f){ei(X,f.trim(),Wn)}),fe(d,"dragover",ht),fe(d,"mousemove",ht),fe(d,"touchmove",ht),fe(d,"mouseup",o._onDrop),fe(d,"touchend",o._onDrop),fe(d,"touchcancel",o._onDrop),Xr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),$e("delayStart",this,{evt:r}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Pt||Je))){if(te.eventCanceled){this._onDrop();return}fe(d,"mouseup",o._disableDelayedDrag),fe(d,"touchend",o._disableDelayedDrag),fe(d,"touchcancel",o._disableDelayedDrag),fe(d,"mousemove",o._delayedDragTouchMoveHandler),fe(d,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&fe(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,s.delay)}else c()}},_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&&Wn(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(me,"dragstart",this._onDragStart));try{document.selection?mn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(gt=!1,me&&X){$e("dragStarted",this,{evt:n}),this.nativeDraggable&&fe(document,"dragover",Na);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,di();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);hi()}},_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),d=ie&&s&&s.a,c=ie&&s&&s.d,h=vn&&Le&&ni(Le),f=(i.clientX-dt.clientX+o.x)/(d||1)+(h?h[0]-Hn[0]:0)/(d||1),l=(i.clientY-dt.clientY+o.y)/(c||1)+(h?h[1]-Hn[1]:0)/(c||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+=f-(Bn||0),s.f+=l-(qn||0)):s={a:1,b:0,c:0,d:1,e:f,f:l};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),Bn=f,qn=l,Ge=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!ie){var r=this.options.fallbackOnBody?document.body:me,n=ge(X,!0,vn,!0,r),t=this.options;if(vn){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=Ke()),n.top+=Le.scrollTop,n.left+=Le.scrollLeft):Le=Ke(),Hn=ni(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",vn?"absolute":"fixed"),ee(ie,"zIndex","100000"),ee(ie,"pointerEvents","none"),te.ghost=ie,r.appendChild(ie),ee(ie,"transform-origin",ai/parseInt(ie.style.width)*100+"% "+li/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=$n(X),_e.draggable=!1,_e.style["will-change"]="",this._hideClone(),ve(_e,this.options.chosenClass,!1),te.clone=_e),t.cloneId=mn(function(){$e("clone",t),!te.eventCanceled&&(t.options.removeCloneOnHide||me.insertBefore(_e,X),t._hideClone(),Re({sortable:t,name:"clone"}))}),!n&&ve(X,i.dragClass,!0),n?(un=!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=mn(t._dragStarted.bind(t,n,r)),fe(document,"selectstart",t),Rt=!0,Dn&&ee(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,s,d=this.options,c=d.group,h=te.active,f=sn===c,l=d.sort,a=Pe||h,u,v=this,p=!1;if(Un)return;function b(H,G){$e(H,v,tt({evt:r,isOwner:f,axis:u?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:l,fromSortable:a,target:t,completed:g,onMove:function(M,S){return zn(me,n,X,o,M,ge(M),r,S)},changed:_},G))}function m(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==a&&a.captureAnimationState()}function g(H){return b("dragOverCompleted",{insertion:H}),H&&(f?h._hideClone():h._showClone(v),v!==a&&(ve(X,Pe?Pe.options.ghostClass:h.options.ghostClass,!1),ve(X,d.ghostClass,!0)),Pe!==v&&v!==te.active?Pe=v:v===te.active&&Pe&&(Pe=null),a===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==a&&(a.animateAll(),a._ignoreWhileAnimating=null)),(t===X&&!X.animated||t===n&&!t.animated)&&(bt=null),!d.dragoverBubble&&!r.rootEl&&t!==document&&(X.parentNode[Ie]._isOutsideThisEl(r.target),!H&&ht(r)),!d.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function _(){je=be(X),it=be(X,d.draggable),Re({sortable:v,name:"change",toEl:n,newIndex:je,newDraggableIndex:it,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=We(t,d.draggable,n,!0),b("dragOver"),te.eventCanceled)return p;if(X.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return g(!1);if(un=!1,h&&!d.disabled&&(f?l||(s=!me.contains(X)):Pe===this||(this.lastPutMode=sn.checkPull(this,h,X,r))&&c.checkPut(this,h,X,r))){if(u=this._getDirection(r,t)==="vertical",o=ge(X),b("dragOverValid"),te.eventCanceled)return p;if(s)return Ee=me,m(),this._hideClone(),b("revert"),te.eventCanceled||(ct?me.insertBefore(X,ct):me.appendChild(X)),g(!0);var y=Rn(n,d.draggable);if(!y||ka(r,u,this)&&!y.animated){if(y===X)return g(!1);if(y&&n===r.target&&(t=y),t&&(i=ge(t)),zn(me,n,X,o,t,i,r,!!t)!==!1)return m(),n.appendChild(X),Ee=n,_(),g(!0)}else if(t.parentNode===n){i=ge(t);var O=0,P,T=X.parentNode!==n,A=!Aa(X.animated&&X.toRect||o,t.animated&&t.toRect||i,u),I=u?"top":"left",x=ti(t,"top","top")||ti(X,"top","top"),E=x?x.scrollTop:void 0;bt!==t&&(P=i[I],$t=!1,cn=!A&&d.invertSwap||T),O=Ia(r,t,i,u,A?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,cn,bt===t);var w;if(O!==0){var C=be(X);do C-=O,w=Ee.children[C];while(w&&(ee(w,"display")==="none"||w===ie))}if(O===0||w===t)return g(!1);bt=t,Mt=O;var D=t.nextElementSibling,R=!1;R=O===1;var B=zn(me,n,X,o,t,i,r,R);if(B!==!1)return(B===1||B===-1)&&(R=B===1),Un=!0,setTimeout(Ca,30),m(),R&&!D?n.appendChild(X):t.parentNode.insertBefore(X,R?D:t),x&&ii(x,0,E-x.scrollTop),Ee=X.parentNode,P!==void 0&&!cn&&(dn=Math.abs(P-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(je=be(X),it=be(X,t.draggable),$e("drop",this,{evt:r}),Ee=X&&X.parentNode,je=be(X),it=be(X,t.draggable),te.eventCanceled){this._nulling();return}gt=!1,cn=!1,$t=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Gn(this.cloneId),Gn(this._dragStartId),this.nativeDraggable&&(ae(document,"drop",this),ae(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Dn&&ee(document.body,"user-select",""),ee(X,"transform",""),r&&(Rt&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),ie&&ie.parentNode&&ie.parentNode.removeChild(ie),(me===Ee||Pe&&Pe.lastPutMode!=="clone")&&_e&&_e.parentNode&&_e.parentNode.removeChild(_e),X&&(this.nativeDraggable&&ae(X,"dragend",this),Wn(X),X.style["will-change"]="",Rt&&!gt&&ve(X,Pe?Pe.options.ghostClass:this.options.ghostClass,!1),ve(X,this.options.chosenClass,!1),Re({sortable:this,name:"unchoose",toEl:Ee,newIndex:null,newDraggableIndex:null,originalEvent:r}),me!==Ee?(je>=0&&(Re({rootEl:Ee,name:"add",toEl:Ee,fromEl:me,originalEvent:r}),Re({sortable:this,name:"remove",toEl:Ee,originalEvent:r}),Re({rootEl:Ee,name:"sort",toEl:Ee,fromEl:me,originalEvent:r}),Re({sortable:this,name:"sort",toEl:Ee,originalEvent:r})),Pe&&Pe.save()):je!==yt&&je>=0&&(Re({sortable:this,name:"update",toEl:Ee,originalEvent:r}),Re({sortable:this,name:"sort",toEl:Ee,originalEvent:r})),te.active&&((je==null||je===-1)&&(je=yt,it=Dt),Re({sortable:this,name:"end",toEl:Ee,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){$e("nulling",this),me=X=Ee=ie=ct=_e=ln=rt=dt=Ge=Rt=je=it=yt=Dt=bt=Mt=Pe=sn=te.dragged=te.ghost=te.clone=te.active=null,hn.forEach(function(r){r.checked=!0}),hn.length=Bn=qn=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":X&&(this._onDragOver(r),Pa(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)||Da(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=It.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&ci(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(),fn.splice(fn.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;me.contains(X)&&!this.options.group.revertClone?me.insertBefore(_e,X):ct?me.insertBefore(_e,ct):me.appendChild(_e),this.options.group.revertClone&&this.animate(X,_e),ee(_e,"display",""),rt=!1}}};function Pa(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function zn(e,r,n,t,o,i,s,d){var c,h=e[Ie],f=h.options.onMove,l;return window.CustomEvent&&!Je&&!Pt?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=e,c.dragged=n,c.draggedRect=t,c.related=o||r,c.relatedRect=i||ge(r),c.willInsertAfter=d,c.originalEvent=s,e.dispatchEvent(c),f&&(l=f.call(h,c,s)),l}function Wn(e){e.draggable=!1}function Ca(){Un=!1}function ka(e,r,n){var t=ge(Rn(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 Ia(e,r,n,t,o,i,s,d){var c=t?e.clientY:e.clientX,h=t?n.height:n.width,f=t?n.top:n.left,l=t?n.bottom:n.right,a=!1;if(!s){if(d&&dn<h*o){if(!$t&&(Mt===1?c>f+h*i/2:c<l-h*i/2)&&($t=!0),$t)a=!0;else if(Mt===1?c<f+dn:c>l-dn)return-Mt}else if(c>f+h*(1-o)/2&&c<l-h*(1-o)/2)return La(r)}return a=a||s,a&&(c<f+h*i/2||c>l-h*i/2)?c>f+h/2?1:-1:0}function La(e){return be(X)<be(e)?1:-1}function Da(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 Ra(e){hn.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&hn.push(t)}}function mn(e){return setTimeout(e,0)}function Gn(e){return clearTimeout(e)}pn&&fe(document,"touchmove",function(e){(te.active||gt)&&e.cancelable&&e.preventDefault()}),te.utils={on:fe,off:ae,css:ee,find:ei,is:function(r,n){return!!We(r,n,r,!1)},extend:_a,throttle:ri,closest:We,toggleClass:ve,clone:$n,index:be,nextTick:mn,cancelNextTick:Gn,detectDirection:fi,getChild:an},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)),It.mount(t)})},te.create=function(e,r){return new te(e,r)},te.version=ma;var Se=[],Ft,Vn,Kn=!1,Yn,Xn,yn,jt;function Ma(){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)),pi(),gn(),Oa()},nulling:function(){yn=Vn=Ft=Kn=jt=Yn=Xn=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,d=document.elementFromPoint(i,s);if(yn=n,t||Pt||Je||Dn){Zn(n,this.options,d,t);var c=nt(d,!0);Kn&&(!jt||i!==Yn||s!==Xn)&&(jt&&pi(),jt=setInterval(function(){var h=nt(document.elementFromPoint(i,s),!0);h!==c&&(c=h,gn()),Zn(n,o.options,h,t)},10),Yn=i,Xn=s)}else{if(!this.options.bubbleScroll||nt(d,!0)===Ke()){gn();return}Zn(n,this.options,nt(d,!1),!1)}}},He(e,{pluginName:"scroll",initializeByDefault:!0})}function gn(){Se.forEach(function(e){clearInterval(e.pid)}),Se=[]}function pi(){clearInterval(jt)}var Zn=ri(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,d=r.scrollSpeed,c=Ke(),h=!1,f;Vn!==n&&(Vn=n,gn(),Ft=r.scroll,f=r.scrollFn,Ft===!0&&(Ft=nt(n,!0)));var l=0,a=Ft;do{var u=a,v=ge(u),p=v.top,b=v.bottom,m=v.left,g=v.right,_=v.width,y=v.height,O=void 0,P=void 0,T=u.scrollWidth,A=u.scrollHeight,I=ee(u),x=u.scrollLeft,E=u.scrollTop;u===c?(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),P=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"),P=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"));var w=O&&(Math.abs(g-o)<=s&&x+_<T)-(Math.abs(m-o)<=s&&!!x),C=P&&(Math.abs(b-i)<=s&&E+y<A)-(Math.abs(p-i)<=s&&!!E);if(!Se[l])for(var D=0;D<=l;D++)Se[D]||(Se[D]={});(Se[l].vx!=w||Se[l].vy!=C||Se[l].el!==u)&&(Se[l].el=u,Se[l].vx=w,Se[l].vy=C,clearInterval(Se[l].pid),(w!=0||C!=0)&&(h=!0,Se[l].pid=setInterval(function(){t&&this.layer===0&&te.active._onTouchMove(yn);var R=Se[this.layer].vy?Se[this.layer].vy*d:0,B=Se[this.layer].vx?Se[this.layer].vx*d:0;typeof f=="function"&&f.call(te.dragged.parentNode[Ie],B,R,e,yn,Se[this.layer].el)!=="continue"||ii(Se[this.layer].el,B,R)}.bind({layer:l}),24))),l++}while(r.bubbleScroll&&a!==c&&(a=nt(a,!1)));Kn=h}},30),vi=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,s=r.dispatchSortableEvent,d=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var h=t||i;d();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,l=document.elementFromPoint(f.clientX,f.clientY);c(),h&&!h.el.contains(l)&&(s("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function Jn(){}Jn.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=an(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:vi},He(Jn,{pluginName:"revertOnSpill"});function Qn(){}Qn.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:vi},He(Qn,{pluginName:"removeOnSpill"});var Ue;function $a(){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,d=n.changed,c=n.cancel;if(!!s.options.swap){var h=this.sortable.el,f=this.options;if(o&&o!==h){var l=Ue;i(o)!==!1?(ve(o,f.swapClass,!0),Ue=o):Ue=null,l&&l!==Ue&&ve(l,f.swapClass,!1)}d(),t(!0),c()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,s=o||this.sortable,d=this.options;Ue&&ve(Ue,d.swapClass,!1),Ue&&(d.swap||o&&o.options.swap)&&i!==Ue&&(s.captureAnimationState(),s!==t&&t.captureAnimationState(),Fa(i,Ue),s.animateAll(),s!==t&&t.animateAll())},nulling:function(){Ue=null}},He(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ue}}})}function Fa(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=[],Bt,Ve,qt=!1,qe=!1,_t=!1,pe,Ht,bn;function ja(){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&&Ve===r?re.forEach(function(d,c){s+=(c?", ":"")+d.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&&Ve===t&&(mi(!0,o),i("clone"),s())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(mi(!1,o),Be.forEach(function(s){ee(s,"display","")}),t(),bn=!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(),bn=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ve&&Ve.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&&oi(s,i)}),qe=!0,qt=!0}o.animateAll(function(){qe=!1,qt=!1,t.options.animation&&re.forEach(function(s){Fn(s)}),t.options.sort&&_n()})}},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(d){i.addAnimationState({target:d,rect:qe?ge(d):s}),Fn(d),d.fromRect=s,t.removeAnimationState(d)}),qe=!1,Ba(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,s=n.activeSortable,d=n.parentEl,c=n.putSortable,h=this.options;if(i){if(o&&s._hideClone(),qt=!1,h.animation&&re.length>1&&(qe||!o&&!s.options.sort&&!c)){var f=ge(pe,!1,!0,!0);re.forEach(function(a){a!==pe&&(oi(a,f),d.appendChild(a))}),qe=!0}if(!o)if(qe||_n(),re.length>1){var l=bn;s._showClone(t),s.options.animation&&!bn&&l&&Be.forEach(function(a){s.addAnimationState({target:a,rect:Ht}),a.fromRect=Ht,a.thisAnimationDuration=null})}else s._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(re.forEach(function(d){d.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){Ht=He({},t);var s=ft(pe,!0);Ht.top-=s.f,Ht.left-=s.e}},dragOverAnimationComplete:function(){qe&&(qe=!1,_n())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,s=n.sortable,d=n.dispatchSortableEvent,c=n.oldIndex,h=n.putSortable,f=h||this.sortable;if(!!t){var l=this.options,a=i.children;if(!_t)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ve(pe,l.selectedClass,!~re.indexOf(pe)),~re.indexOf(pe))re.splice(re.indexOf(pe),1),Bt=null,Lt({sortable:s,rootEl:o,name:"deselect",targetEl:pe,originalEvt:t});else{if(re.push(pe),Lt({sortable:s,rootEl:o,name:"select",targetEl:pe,originalEvt:t}),t.shiftKey&&Bt&&s.el.contains(Bt)){var u=be(Bt),v=be(pe);if(~u&&~v&&u!==v){var p,b;for(v>u?(b=u,p=v):(b=v,p=u+1);b<p;b++)~re.indexOf(a[b])||(ve(a[b],l.selectedClass,!0),re.push(a[b]),Lt({sortable:s,rootEl:o,name:"select",targetEl:a[b],originalEvt:t}))}}else Bt=pe;Ve=f}if(_t&&this.isMultiDrag){if((i[Ie].options.sort||i!==o)&&re.length>1){var m=ge(pe),g=be(pe,":not(."+this.options.selectedClass+")");if(!qt&&l.animation&&(pe.thisAnimationDuration=null),f.captureAnimationState(),!qt&&(l.animation&&(pe.fromRect=m,re.forEach(function(y){if(y.thisAnimationDuration=null,y!==pe){var O=qe?ge(y):m;y.fromRect=O,f.addAnimationState({target:y,rect:O})}})),_n(),re.forEach(function(y){a[g]?i.insertBefore(y,a[g]):i.appendChild(y),g++}),c===be(pe))){var _=!1;re.forEach(function(y){if(y.sortableIndex!==be(y)){_=!0;return}}),_&&d("update")}re.forEach(function(y){Fn(y)}),f.animateAll()}Ve=f}(o===i||h&&h.lastPutMode!=="clone")&&Be.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},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)&&Ve===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(),Lt({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)||(Ve&&Ve!==t&&(Ve.multiDrag._deselectMultiDrag(),Ve=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:da(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 Ba(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 mi(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 _n(){re.forEach(function(e){e!==pe&&e.parentNode&&e.parentNode.removeChild(e)})}te.mount(new Ma),te.mount(Qn,Jn);var qa=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:te,MultiDrag:ja,Sortable:te,Swap:$a}),Ha=Mr(qa);(function(e,r){(function(t,o){e.exports=o(Ha)})(typeof self!="undefined"?self:Nt,function(n){return function(t){var o={};function i(s){if(o[s])return o[s].exports;var d=o[s]={i:s,l:!1,exports:{}};return t[s].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=t,i.c=o,i.d=function(s,d,c){i.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},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,d){if(d&1&&(s=i(s)),d&8||d&4&&typeof s=="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var h in s)i.d(c,h,function(f){return s[f]}.bind(null,h));return c},i.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(d,"a",d),d},i.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var s=i("2d00"),d=i("5ca1"),c=i("2aba"),h=i("32e9"),f=i("84f2"),l=i("41a0"),a=i("7f20"),u=i("38fd"),v=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),b="@@iterator",m="keys",g="values",_=function(){return this};t.exports=function(y,O,P,T,A,I,x){l(P,O,T);var E=function(k){if(!p&&k in R)return R[k];switch(k){case m:return function(){return new P(this,k)};case g:return function(){return new P(this,k)}}return function(){return new P(this,k)}},w=O+" Iterator",C=A==g,D=!1,R=y.prototype,B=R[v]||R[b]||A&&R[A],H=B||E(A),G=A?C?E("entries"):H:void 0,q=O=="Array"&&R.entries||B,M,S,N;if(q&&(N=u(q.call(new y)),N!==Object.prototype&&N.next&&(a(N,w,!0),!s&&typeof N[v]!="function"&&h(N,v,_))),C&&B&&B.name!==g&&(D=!0,H=function(){return B.call(this)}),(!s||x)&&(p||D||!R[v])&&h(R,v,H),f[O]=H,f[w]=_,A)if(M={values:C?H:E(g),keys:I?H:E(m),entries:G},x)for(S in M)S in R||c(R,S,M[S]);else d(d.P+d.F*(p||D),O,M);return M}},"02f4":function(t,o,i){var s=i("4588"),d=i("be13");t.exports=function(c){return function(h,f){var l=String(d(h)),a=s(f),u=l.length,v,p;return a<0||a>=u?c?"":void 0:(v=l.charCodeAt(a),v<55296||v>56319||a+1===u||(p=l.charCodeAt(a+1))<56320||p>57343?c?l.charAt(a):v:c?l.slice(a,a+2):(v-55296<<10)+(p-56320)+65536)}}},"0390":function(t,o,i){var s=i("02f4")(!0);t.exports=function(d,c,h){return c+(h?s(d,c).length:1)}},"0bfb":function(t,o,i){var s=i("cb7c");t.exports=function(){var d=s(this),c="";return d.global&&(c+="g"),d.ignoreCase&&(c+="i"),d.multiline&&(c+="m"),d.unicode&&(c+="u"),d.sticky&&(c+="y"),c}},"0d58":function(t,o,i){var s=i("ce10"),d=i("e11e");t.exports=Object.keys||function(h){return s(h,d)}},"1495":function(t,o,i){var s=i("86cc"),d=i("cb7c"),c=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(f,l){d(f);for(var a=c(l),u=a.length,v=0,p;u>v;)s.f(f,p=a[v++],l[p]);return f}},"214f":function(t,o,i){i("b0c5");var s=i("2aba"),d=i("32e9"),c=i("79e5"),h=i("be13"),f=i("2b4c"),l=i("520a"),a=f("species"),u=!c(function(){var p=/./;return p.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(p,"$<a>")!=="7"}),v=function(){var p=/(?:)/,b=p.exec;p.exec=function(){return b.apply(this,arguments)};var m="ab".split(p);return m.length===2&&m[0]==="a"&&m[1]==="b"}();t.exports=function(p,b,m){var g=f(p),_=!c(function(){var I={};return I[g]=function(){return 7},""[p](I)!=7}),y=_?!c(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(!_||!y||p==="replace"&&!u||p==="split"&&!v){var O=/./[g],P=m(h,g,""[p],function(x,E,w,C,D){return E.exec===l?_&&!D?{done:!0,value:O.call(E,w,C)}:{done:!0,value:x.call(w,E,C)}:{done:!1}}),T=P[0],A=P[1];s(String.prototype,p,T),d(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"),d=i("7726").document,c=s(d)&&s(d.createElement);t.exports=function(h){return c?d.createElement(h):{}}},"23c6":function(t,o,i){var s=i("2d95"),d=i("2b4c")("toStringTag"),c=s(function(){return arguments}())=="Arguments",h=function(f,l){try{return f[l]}catch{}};t.exports=function(f){var l,a,u;return f===void 0?"Undefined":f===null?"Null":typeof(a=h(l=Object(f),d))=="string"?a:c?s(l):(u=s(l))=="Object"&&typeof l.callee=="function"?"Arguments":u}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var s=i("7726"),d=i("32e9"),c=i("69a8"),h=i("ca5a")("src"),f=i("fa5b"),l="toString",a=(""+f).split(l);i("8378").inspectSource=function(u){return f.call(u)},(t.exports=function(u,v,p,b){var m=typeof p=="function";m&&(c(p,"name")||d(p,"name",v)),u[v]!==p&&(m&&(c(p,h)||d(p,h,u[v]?""+u[v]:a.join(String(v)))),u===s?u[v]=p:b?u[v]?u[v]=p:d(u,v,p):(delete u[v],d(u,v,p)))})(Function.prototype,l,function(){return typeof this=="function"&&this[h]||f.call(this)})},"2aeb":function(t,o,i){var s=i("cb7c"),d=i("1495"),c=i("e11e"),h=i("613b")("IE_PROTO"),f=function(){},l="prototype",a=function(){var u=i("230e")("iframe"),v=c.length,p="<",b=">",m;for(u.style.display="none",i("fab2").appendChild(u),u.src="javascript:",m=u.contentWindow.document,m.open(),m.write(p+"script"+b+"document.F=Object"+p+"/script"+b),m.close(),a=m.F;v--;)delete a[l][c[v]];return a()};t.exports=Object.create||function(v,p){var b;return v!==null?(f[l]=s(v),b=new f,f[l]=null,b[h]=v):b=a(),p===void 0?b:d(b,p)}},"2b4c":function(t,o,i){var s=i("5537")("wks"),d=i("ca5a"),c=i("7726").Symbol,h=typeof c=="function",f=t.exports=function(l){return s[l]||(s[l]=h&&c[l]||(h?c:d)("Symbol."+l))};f.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"),d=i("d2c8"),c="includes";s(s.P+s.F*i("5147")(c),"String",{includes:function(f){return!!~d(this,f,c).indexOf(f,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var s=i("86cc"),d=i("4630");t.exports=i("9e1e")?function(c,h,f){return s.f(c,h,d(1,f))}:function(c,h,f){return c[h]=f,c}},"38fd":function(t,o,i){var s=i("69a8"),d=i("4bf8"),c=i("613b")("IE_PROTO"),h=Object.prototype;t.exports=Object.getPrototypeOf||function(f){return f=d(f),s(f,c)?f[c]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?h:null}},"41a0":function(t,o,i){var s=i("2aeb"),d=i("4630"),c=i("7f20"),h={};i("32e9")(h,i("2b4c")("iterator"),function(){return this}),t.exports=function(f,l,a){f.prototype=s(h,{next:d(1,a)}),c(f,l+" Iterator")}},"456d":function(t,o,i){var s=i("4bf8"),d=i("0d58");i("5eda")("keys",function(){return function(h){return d(s(h))}})},"4588":function(t,o){var i=Math.ceil,s=Math.floor;t.exports=function(d){return isNaN(d=+d)?0:(d>0?s:i)(d)}},"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(d){return Object(s(d))}},"5147":function(t,o,i){var s=i("2b4c")("match");t.exports=function(d){var c=/./;try{"/./"[d](c)}catch{try{return c[s]=!1,!"/./"[d](c)}catch{}}return!0}},"520a":function(t,o,i){var s=i("0bfb"),d=RegExp.prototype.exec,c=String.prototype.replace,h=d,f="lastIndex",l=function(){var v=/a/,p=/b*/g;return d.call(v,"a"),d.call(p,"a"),v[f]!==0||p[f]!==0}(),a=/()??/.exec("")[1]!==void 0,u=l||a;u&&(h=function(p){var b=this,m,g,_,y;return a&&(g=new RegExp("^"+b.source+"$(?!\\s)",s.call(b))),l&&(m=b[f]),_=d.call(b,p),l&&_&&(b[f]=b.global?_.index+_[0].length:m),a&&_&&_.length>1&&c.call(_[0],g,function(){for(y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(_[y]=void 0)}),_}),t.exports=h},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var s=i("8378"),d=i("7726"),c="__core-js_shared__",h=d[c]||(d[c]={});(t.exports=function(f,l){return h[f]||(h[f]=l!==void 0?l:{})})("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"),d=i("8378"),c=i("32e9"),h=i("2aba"),f=i("9b43"),l="prototype",a=function(u,v,p){var b=u&a.F,m=u&a.G,g=u&a.S,_=u&a.P,y=u&a.B,O=m?s:g?s[v]||(s[v]={}):(s[v]||{})[l],P=m?d:d[v]||(d[v]={}),T=P[l]||(P[l]={}),A,I,x,E;m&&(p=v);for(A in p)I=!b&&O&&O[A]!==void 0,x=(I?O:p)[A],E=y&&I?f(x,s):_&&typeof x=="function"?f(Function.call,x):x,O&&h(O,A,x,u&a.U),P[A]!=x&&c(P,A,E),_&&T[A]!=x&&(T[A]=x)};s.core=d,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"),d=i("8378"),c=i("79e5");t.exports=function(h,f){var l=(d.Object||{})[h]||Object[h],a={};a[h]=f(l),s(s.S+s.F*c(function(){l(1)}),"Object",a)}},"5f1b":function(t,o,i){var s=i("23c6"),d=RegExp.prototype.exec;t.exports=function(c,h){var f=c.exec;if(typeof f=="function"){var l=f.call(c,h);if(typeof l!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if(s(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return d.call(c,h)}},"613b":function(t,o,i){var s=i("5537")("keys"),d=i("ca5a");t.exports=function(c){return s[c]||(s[c]=d(c))}},"626a":function(t,o,i){var s=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return s(d)=="String"?d.split(""):Object(d)}},"6762":function(t,o,i){var s=i("5ca1"),d=i("c366")(!0);s(s.P,"Array",{includes:function(h){return d(this,h,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var s=i("626a"),d=i("be13");t.exports=function(c){return s(d(c))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(s,d){return i.call(s,d)}},"6a99":function(t,o,i){var s=i("d3f4");t.exports=function(d,c){if(!s(d))return d;var h,f;if(c&&typeof(h=d.toString)=="function"&&!s(f=h.call(d))||typeof(h=d.valueOf)=="function"&&!s(f=h.call(d))||!c&&typeof(h=d.toString)=="function"&&!s(f=h.call(d)))return f;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var s=i("0d58"),d=i("2621"),c=i("52a7"),h=i("4bf8"),f=i("626a"),l=Object.assign;t.exports=!l||i("79e5")(function(){var a={},u={},v=Symbol(),p="abcdefghijklmnopqrst";return a[v]=7,p.split("").forEach(function(b){u[b]=b}),l({},a)[v]!=7||Object.keys(l({},u)).join("")!=p})?function(u,v){for(var p=h(u),b=arguments.length,m=1,g=d.f,_=c.f;b>m;)for(var y=f(arguments[m++]),O=g?s(y).concat(g(y)):s(y),P=O.length,T=0,A;P>T;)_.call(y,A=O[T++])&&(p[A]=y[A]);return p}:l},"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"),d=Math.max,c=Math.min;t.exports=function(h,f){return h=s(h),h<0?d(h+f,0):c(h,f)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var s=i("86cc").f,d=i("69a8"),c=i("2b4c")("toStringTag");t.exports=function(h,f,l){h&&!d(h=l?h:h.prototype,c)&&s(h,c,{configurable:!0,value:f})}},"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"),d=i("c69a"),c=i("6a99"),h=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(l,a,u){if(s(l),a=c(a,!0),s(u),d)try{return h(l,a,u)}catch{}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(l[a]=u.value),l}},"9b43":function(t,o,i){var s=i("d8e8");t.exports=function(d,c,h){if(s(d),c===void 0)return d;switch(h){case 1:return function(f){return d.call(c,f)};case 2:return function(f,l){return d.call(c,f,l)};case 3:return function(f,l,a){return d.call(c,f,l,a)}}return function(){return d.apply(c,arguments)}}},"9c6c":function(t,o,i){var s=i("2b4c")("unscopables"),d=Array.prototype;d[s]==null&&i("32e9")(d,s,{}),t.exports=function(c){d[s][c]=!0}},"9def":function(t,o,i){var s=i("4588"),d=Math.min;t.exports=function(c){return c>0?d(s(c),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"),d=i("4bf8"),c=i("9def"),h=i("4588"),f=i("0390"),l=i("5f1b"),a=Math.max,u=Math.min,v=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,m=function(g){return g===void 0?g:String(g)};i("214f")("replace",2,function(g,_,y,O){return[function(A,I){var x=g(this),E=A==null?void 0:A[_];return E!==void 0?E.call(A,x,I):y.call(String(x),A,I)},function(T,A){var I=O(y,T,this,A);if(I.done)return I.value;var x=s(T),E=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=l(x,E);if(B===null||(R.push(B),!C))break;var H=String(B[0]);H===""&&(x.lastIndex=f(E,c(x.lastIndex),D))}for(var G="",q=0,M=0;M<R.length;M++){B=R[M];for(var S=String(B[0]),N=a(u(h(B.index),E.length),0),k=[],F=1;F<B.length;F++)k.push(m(B[F]));var j=B.groups;if(w){var L=[S].concat(k,N,E);j!==void 0&&L.push(j);var $=String(A.apply(void 0,L))}else $=P(S,E,N,k,j,A);N>=q&&(G+=E.slice(q,N)+$,q=N+S.length)}return G+E.slice(q)}];function P(T,A,I,x,E,w){var C=I+T.length,D=x.length,R=b;return E!==void 0&&(E=d(E),R=p),y.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=E[H.slice(1,-1)];break;default:var q=+H;if(q===0)return B;if(q>D){var M=v(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"),d=i("2d95"),c=i("2b4c")("match");t.exports=function(h){var f;return s(h)&&((f=h[c])!==void 0?!!f:d(h)=="RegExp")}},ac6a:function(t,o,i){for(var s=i("cadf"),d=i("0d58"),c=i("2aba"),h=i("7726"),f=i("32e9"),l=i("84f2"),a=i("2b4c"),u=a("iterator"),v=a("toStringTag"),p=l.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},m=d(b),g=0;g<m.length;g++){var _=m[g],y=b[_],O=h[_],P=O&&O.prototype,T;if(P&&(P[u]||f(P,u,p),P[v]||f(P,v,_),l[_]=p,y))for(T in s)P[T]||c(P,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"),d=i("9def"),c=i("77f1");t.exports=function(h){return function(f,l,a){var u=s(f),v=d(u.length),p=c(a,v),b;if(h&&l!=l){for(;v>p;)if(b=u[p++],b!=b)return!0}else for(;v>p;p++)if((h||p in u)&&u[p]===l)return h||p||0;return!h&&-1}}},c649:function(t,o,i){(function(s){i.d(o,"c",function(){return u}),i.d(o,"a",function(){return l}),i.d(o,"b",function(){return c}),i.d(o,"d",function(){return a}),i("a481");function d(){return typeof window!="undefined"?window.console:s.console}var c=d();function h(v){var p=Object.create(null);return function(m){var g=p[m];return g||(p[m]=v(m))}}var f=/-(\w)/g,l=h(function(v){return v.replace(f,function(p,b){return b?b.toUpperCase():""})});function a(v){v.parentElement!==null&&v.parentElement.removeChild(v)}function u(v,p,b){var m=b===0?v.children[0]:v.children[b-1].nextSibling;v.insertBefore(p,m)}}).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(d){return"Symbol(".concat(d===void 0?"":d,")_",(++i+s).toString(36))}},cadf:function(t,o,i){var s=i("9c6c"),d=i("d53b"),c=i("84f2"),h=i("6821");t.exports=i("01f9")(Array,"Array",function(f,l){this._t=h(f),this._i=0,this._k=l},function(){var f=this._t,l=this._k,a=this._i++;return!f||a>=f.length?(this._t=void 0,d(1)):l=="keys"?d(0,a):l=="values"?d(0,f[a]):d(0,[a,f[a]])},"values"),c.Arguments=c.Array,s("keys"),s("values"),s("entries")},cb7c:function(t,o,i){var s=i("d3f4");t.exports=function(d){if(!s(d))throw TypeError(d+" is not an object!");return d}},ce10:function(t,o,i){var s=i("69a8"),d=i("6821"),c=i("c366")(!1),h=i("613b")("IE_PROTO");t.exports=function(f,l){var a=d(f),u=0,v=[],p;for(p in a)p!=h&&s(a,p)&&v.push(p);for(;l.length>u;)s(a,p=l[u++])&&(~c(v,p)||v.push(p));return v}},d2c8:function(t,o,i){var s=i("aae3"),d=i("be13");t.exports=function(c,h,f){if(s(h))throw TypeError("String#"+f+" doesn't accept regex!");return String(d(c))}},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"),d=i("9def"),c=i("d2c8"),h="startsWith",f=""[h];s(s.P+s.F*i("5147")(h),"String",{startsWith:function(a){var u=c(this,a,h),v=d(Math.min(arguments.length>1?arguments[1]:void 0,u.length)),p=String(a);return f?f.call(u,p,v):u.slice(v,v+p.length)===p}})},f6fd:function(t,o){(function(i){var s="currentScript",d=i.getElementsByTagName("script");s in i||Object.defineProperty(i,s,{get:function(){try{throw new Error}catch(f){var c,h=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(f.stack)||[!1])[1];for(c in d)if(d[c].src==h||d[c].readyState=="interactive")return d[c];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 d(S){if(Array.isArray(S))return S}function c(S,N){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var k=[],F=!0,j=!1,L=void 0;try{for(var $=S[Symbol.iterator](),U;!(F=(U=$.next()).done)&&(k.push(U.value),!(N&&k.length===N));F=!0);}catch(z){j=!0,L=z}finally{try{!F&&$.return!=null&&$.return()}finally{if(j)throw L}}return k}}function h(S,N){(N==null||N>S.length)&&(N=S.length);for(var k=0,F=new Array(N);k<N;k++)F[k]=S[k];return F}function f(S,N){if(!!S){if(typeof S=="string")return h(S,N);var k=Object.prototype.toString.call(S).slice(8,-1);if(k==="Object"&&S.constructor&&(k=S.constructor.name),k==="Map"||k==="Set")return Array.from(S);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return h(S,N)}}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(S){return u(S)||v(S)||f(S)||p()}var m=i("a352"),g=i.n(m),_=i("c649");function y(S,N,k){return k===void 0||(S=S||{},S[N]=k),S}function O(S,N){return S.map(function(k){return k.elm}).indexOf(N)}function P(S,N,k,F){if(!S)return[];var j=S.map(function(U){return U.elm}),L=N.length-F,$=b(N).map(function(U,z){return z>=L?j.length:j.indexOf(U)});return k?$.filter(function(U){return U!==-1}):$}function T(S,N){var k=this;this.$nextTick(function(){return k.$emit(S.toLowerCase(),N)})}function A(S){var N=this;return function(k){N.realList!==null&&N["onDrag"+S](k),T.call(N,S,k)}}function I(S){return["transition-group","TransitionGroup"].includes(S)}function x(S){if(!S||S.length!==1)return!1;var N=a(S,1),k=N[0].componentOptions;return k?I(k.tag):!1}function E(S,N,k){return S[k]||(N[k]?N[k]():void 0)}function w(S,N,k){var F=0,j=0,L=E(N,k,"header");L&&(F=L.length,S=S?[].concat(b(L),b(S)):b(L));var $=E(N,k,"footer");return $&&(j=$.length,S=S?[].concat(b(S),b($)):b($)),{children:S,headerOffset:F,footerOffset:j}}function C(S,N){var k=null,F=function(K,Q){k=y(k,K,Q)},j=Object.keys(S).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,K){return z[K]=S[K],z},{});if(F("attrs",j),!N)return k;var L=N.on,$=N.props,U=N.attrs;return F("on",L),F("props",$),Object.assign(k.attrs,U),k}var D=["Start","Add","Remove","Update","End"],R=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(D,R).map(function(S){return"on"+S}),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 k=this.$slots.default;this.transitionMode=x(k);var F=w(k,this.$slots,this.$scopedSlots),j=F.children,L=F.headerOffset,$=F.footerOffset;this.headerOffset=L,this.footerOffset=$;var U=C(this.$attrs,this.componentData);return N(this.getTag(),U,j)},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 k={};D.forEach(function(L){k["on"+L]=A.call(N,L)}),R.forEach(function(L){k["on"+L]=T.bind(N,L)});var F=Object.keys(this.$attrs).reduce(function(L,$){return L[Object(_.a)($)]=N.$attrs[$],L},{}),j=Object.assign({},this.options,F,k,{onMove:function($,U){return N.onDragMove($,U)}});!("draggable"in j)&&(j.draggable=">*"),this._sortable=new g.a(this.rootContainer,j),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 k in N){var F=Object(_.a)(k);B.indexOf(F)===-1&&this._sortable.option(F,N[k])}},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=P(N.getChildrenNodes(),N.rootContainer.children,N.transitionMode,N.footerOffset)})},getUnderlyingVm:function(N){var k=O(this.getChildrenNodes()||[],N);if(k===-1)return null;var F=this.realList[k];return{index:k,element:F}},getUnderlyingPotencialDraggableComponent:function(N){var k=N.__vue__;return!k||!k.$options||!I(k.$options._componentTag)?!("realList"in k)&&k.$children.length===1&&"realList"in k.$children[0]?k.$children[0]:k:k.$parent},emitChanges:function(N){var k=this;this.$nextTick(function(){k.$emit("change",N)})},alterList:function(N){if(this.list){N(this.list);return}var k=b(this.value);N(k),this.$emit("input",k)},spliceList:function(){var N=arguments,k=function(j){return j.splice.apply(j,b(N))};this.alterList(k)},updatePosition:function(N,k){var F=function(L){return L.splice(k,0,L.splice(N,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(N){var k=N.to,F=N.related,j=this.getUnderlyingPotencialDraggableComponent(k);if(!j)return{component:j};var L=j.realList,$={list:L,component:j};if(k!==F&&L&&j.getUnderlyingVm){var U=j.getUnderlyingVm(F);if(U)return Object.assign(U,$)}return $},getVmIndex:function(N){var k=this.visibleIndexes,F=k.length;return N>F-1?F:k[N]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(N){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var k=this.getChildrenNodes();k[N].data=null;var F=this.getComponent();F.children=[],F.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 k=N.item._underlying_vm_;if(k!==void 0){Object(_.d)(N.item);var F=this.getVmIndex(N.newIndex);this.spliceList(F,0,k),this.computeIndexes();var j={element:k,newIndex:F};this.emitChanges({added:j})}},onDragRemove:function(N){if(Object(_.c)(this.rootContainer,N.item,N.oldIndex),N.pullMode==="clone"){Object(_.d)(N.clone);return}var k=this.context.index;this.spliceList(k,1);var F={element:this.context.element,oldIndex:k};this.resetTransitionData(k),this.emitChanges({removed:F})},onDragUpdate:function(N){Object(_.d)(N.item),Object(_.c)(N.from,N.item,N.oldIndex);var k=this.context.index,F=this.getVmIndex(N.newIndex);this.updatePosition(k,F);var j={element:this.context.element,oldIndex:k,newIndex:F};this.emitChanges({moved:j})},updateProperty:function(N,k){N.hasOwnProperty(k)&&(N[k]+=this.headerOffset)},computeFutureIndex:function(N,k){if(!N.element)return 0;var F=b(k.to.children).filter(function(U){return U.style.display!=="none"}),j=F.indexOf(k.related),L=N.component.getVmIndex(j),$=F.indexOf(H)!==-1;return $||!k.willInsertAfter?L:L+1},onDragMove:function(N,k){var F=this.move;if(!F||!this.realList)return!0;var j=this.getRelatedContextFromMoveEvent(N),L=this.context,$=this.computeFutureIndex(j,N);Object.assign(L,{futureIndex:$});var U=Object.assign({},N,{relatedContext:j,draggedContext:L});return F(U,k)},onDragEnd:function(){this.computeIndexes(),H=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var M=q;o.default=M}}).default})})(Yr);var yi=Rr(Yr.exports),Ua=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.prependLabel||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.prependLabel||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.prependLabel||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.prependLabel||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)},za=[],pf="";const Wa={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(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}}},gi={};var Ga=Te(Wa,Ua,za,!1,Va,"baf5acdc",null,null);function Va(e){for(let r in gi)this[r]=gi[r]}var Ka=function(){return Ga.exports}();const Ya={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 Xa,Za;const bi={};var Ja=Te(Ya,Xa,Za,!1,Qa,null,null,null);function Qa(e){for(let r in bi)this[r]=bi[r]}var el=function(){return Ja.exports}();function tl(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,s=t.noLeading,d=s===void 0?!1:s,c=t.debounceMode,h=c===void 0?void 0:c,f,l=!1,a=0;function u(){f&&clearTimeout(f)}function v(b){var m=b||{},g=m.upcomingOnly,_=g===void 0?!1:g;u(),l=!_}function p(){for(var b=arguments.length,m=new Array(b),g=0;g<b;g++)m[g]=arguments[g];var _=this,y=Date.now()-a;if(l)return;function O(){a=Date.now(),r.apply(_,m)}function P(){f=void 0}!d&&h&&!f&&O(),u(),h===void 0&&y>e?d?(a=Date.now(),i||(f=setTimeout(h?P:O,e))):O():i!==!0&&(f=setTimeout(h?P:O,h===void 0?e-y:e))}return p.cancel=v,p}function er(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return tl(e,r,{debounceMode:i!==!1})}function _i(e=0,r=!0,n=null){var d;const t=n?n.map(c=>document.querySelector(c)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const c=document.querySelector(".ui-pagination"),h=document.querySelector(".ui-container__header"),f=(h==null?void 0:h.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),l=document.querySelector(".ui-table__tab");o.push(...[(c==null?void 0:c.offsetHeight)||0,(h==null?void 0:h.offsetHeight)||0,(f==null?void 0:f.offsetHeight)||0,(l==null?void 0:l.offsetHeight)||0].filter(a=>!!a))}let i=e+o.reduce((c,h)=>c+h,0),s=navigator.userAgent;for(let c=0;c<t.length;c++){let h=t[c];if(!h||h.className.indexOf("ui-table")>-1)continue;i+=h.offsetHeight;let f,l,a=(d=document==null?void 0:document.defaultView)==null?void 0:d.getComputedStyle(h);if(s.indexOf("Firefox")>-1)l=parseInt(a["margin-top"])+parseInt(a["margin-bottom"]);else if(s.indexOf("compatible")>-1&&s.indexOf("MSIE")>-1&&!(s.indexOf("Opera")>-1)){let u=h.currentStyle;l=parseInt(u.marginTop)+parseInt(u.marginBottom)}else if(f=a.margin.split(" "),f.length==1)l=parseInt(f[0])*2;else{const[u,v,p,b]=f;l=parseInt(p)?parseInt(u)+parseInt(p):parseInt(u)}i=l+i}return i=window.innerHeight-i,i}function nl(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var rl=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.prependLabel||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.prependLabel||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.prependLabel||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.prependLabel||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)},il=[],vf="";const ol={name:"ComSearch",components:{draggable:yi,Record:Ka,DefaultItem:el},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 Oe(Oe({},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,d;if(i.label&&!r(i.modelForm,i.type)){let c;i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var a;return((a=[...i.selectOption,...i.staticOptions].find(u=>u.value==l))==null?void 0:a.label)||l}):c=((s=[...i.selectOption,...i.staticOptions].find(l=>l.value==i.modelForm))==null?void 0:s.label)||i.modelForm:Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var a;return((a=i.staticOptions.find(u=>u.value==l))==null?void 0:a.label)||l}):c=((d=i.staticOptions.find(l=>l.value==i.modelForm))==null?void 0:d.label)||i.modelForm;let h,f;if(i.$slots.prepend){const l=i.$slots.prepend[0].componentOptions.propsData;h=l.value||l.model,l.options&&(f=l.options[h])}return[...o,{label:i.label,value:i.modelForm,valueLabel:c,prependValue:h,prependLabel:f}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(Oe({},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,d)=>{const c=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return s.$options.propsData.label==c.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=er(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await nl(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()}}},Oi={};var al=Te(ol,rl,il,!1,ll,"b0ab1066",null,null);function ll(e){for(let r in Oi)this[r]=Oi[r]}var On=function(){return al.exports}();On.install=e=>{e.component(On.name,On)};const Ei=On;var sl=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},Si=typeof Symbol!="undefined"&&Symbol,ul=sl,fl=function(){return typeof Si!="function"||typeof Symbol!="function"||typeof Si("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ul()},cl="Function.prototype.bind called on incompatible ",tr=Array.prototype.slice,dl=Object.prototype.toString,hl="[object Function]",pl=function(r){var n=this;if(typeof n!="function"||dl.call(n)!==hl)throw new TypeError(cl+n);for(var t=tr.call(arguments,1),o,i=function(){if(this instanceof o){var f=n.apply(this,t.concat(tr.call(arguments)));return Object(f)===f?f:this}else return n.apply(r,t.concat(tr.call(arguments)))},s=Math.max(0,n.length-t.length),d=[],c=0;c<s;c++)d.push("$"+c);if(o=Function("binder","return function ("+d.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},vl=pl,nr=Function.prototype.bind||vl,ml=nr,yl=ml.call(Function.call,Object.prototype.hasOwnProperty),de,Ut=SyntaxError,xi=Function,Ot=TypeError,rr=function(e){try{return xi('"use strict"; return ('+e+").constructor;")()}catch{}},pt=Object.getOwnPropertyDescriptor;if(pt)try{pt({},"")}catch{pt=null}var ir=function(){throw new Ot},gl=pt?function(){try{return arguments.callee,ir}catch{try{return pt(arguments,"callee").get}catch{return ir}}}():ir,Et=fl(),ot=Object.getPrototypeOf||function(e){return e.__proto__},St={},bl=typeof Uint8Array=="undefined"?de:ot(Uint8Array),xt={"%AggregateError%":typeof AggregateError=="undefined"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?de:ArrayBuffer,"%ArrayIteratorPrototype%":Et?ot([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":St,"%AsyncGenerator%":St,"%AsyncGeneratorFunction%":St,"%AsyncIteratorPrototype%":St,"%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%":xi,"%GeneratorFunction%":St,"%Int8Array%":typeof Int8Array=="undefined"?de:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?de:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Et?ot(ot([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map=="undefined"?de:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Et?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"||!Et?de:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Et?ot(""[Symbol.iterator]()):de,"%Symbol%":Et?Symbol:de,"%SyntaxError%":Ut,"%ThrowTypeError%":gl,"%TypedArray%":bl,"%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},_l=function e(r){var n;if(r==="%AsyncFunction%")n=rr("async function () {}");else if(r==="%GeneratorFunction%")n=rr("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=rr("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},wi={"%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"]},En=nr,Sn=yl,Ol=En.call(Function.call,Array.prototype.concat),El=En.call(Function.apply,Array.prototype.splice),Ai=En.call(Function.call,String.prototype.replace),xn=En.call(Function.call,String.prototype.slice),Sl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xl=/\\(\\)?/g,wl=function(r){var n=xn(r,0,1),t=xn(r,-1);if(n==="%"&&t!=="%")throw new Ut("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new Ut("invalid intrinsic syntax, expected opening `%`");var o=[];return Ai(r,Sl,function(i,s,d,c){o[o.length]=d?Ai(c,xl,"$1"):s||i}),o},Al=function(r,n){var t=r,o;if(Sn(wi,t)&&(o=wi[t],t="%"+o[0]+"%"),Sn(xt,t)){var i=xt[t];if(i===St&&(i=_l(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 Ut("intrinsic "+r+" does not exist!")},or=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=wl(r),o=t.length>0?t[0]:"",i=Al("%"+o+"%",n),s=i.name,d=i.value,c=!1,h=i.alias;h&&(o=h[0],El(t,Ol([0,1],h)));for(var f=1,l=!0;f<t.length;f+=1){var a=t[f],u=xn(a,0,1),v=xn(a,-1);if((u==='"'||u==="'"||u==="`"||v==='"'||v==="'"||v==="`")&&u!==v)throw new Ut("property names with quotes must have matching quotes");if((a==="constructor"||!l)&&(c=!0),o+="."+a,s="%"+o+"%",Sn(xt,s))d=xt[s];else if(d!=null){if(!(a in d)){if(!n)throw new Ot("base intrinsic for "+r+" exists, but the property is not available.");return}if(pt&&f+1>=t.length){var p=pt(d,a);l=!!p,l&&"get"in p&&!("originalValue"in p.get)?d=p.get:d=d[a]}else l=Sn(d,a),d=d[a];l&&!c&&(xt[s]=d)}}return d},Ti={exports:{}};(function(e){var r=nr,n=or,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),s=n("%Object.getOwnPropertyDescriptor%",!0),d=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(d)try{d({},"a",{value:1})}catch{d=null}e.exports=function(l){var a=i(r,o,arguments);if(s&&d){var u=s(a,"length");u.configurable&&d(a,"length",{value:1+c(0,l.length-(arguments.length-1))})}return a};var h=function(){return i(r,t,arguments)};d?d(e.exports,"apply",{value:h}):e.exports.apply=h})(Ti);var Ni=or,Pi=Ti.exports,Tl=Pi(Ni("String.prototype.indexOf")),Nl=function(r,n){var t=Ni(r,!!n);return typeof t=="function"&&Tl(r,".prototype.")>-1?Pi(t):t},Pl={},Cl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Pl}),kl=Mr(Cl),ar=typeof Map=="function"&&Map.prototype,lr=Object.getOwnPropertyDescriptor&&ar?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,wn=ar&&lr&&typeof lr.get=="function"?lr.get:null,Il=ar&&Map.prototype.forEach,sr=typeof Set=="function"&&Set.prototype,ur=Object.getOwnPropertyDescriptor&&sr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,An=sr&&ur&&typeof ur.get=="function"?ur.get:null,Ll=sr&&Set.prototype.forEach,Dl=typeof WeakMap=="function"&&WeakMap.prototype,zt=Dl?WeakMap.prototype.has:null,Rl=typeof WeakSet=="function"&&WeakSet.prototype,Wt=Rl?WeakSet.prototype.has:null,Ml=typeof WeakRef=="function"&&WeakRef.prototype,Ci=Ml?WeakRef.prototype.deref:null,$l=Boolean.prototype.valueOf,Fl=Object.prototype.toString,jl=Function.prototype.toString,Bl=String.prototype.match,fr=String.prototype.slice,at=String.prototype.replace,ql=String.prototype.toUpperCase,ki=String.prototype.toLowerCase,Ii=RegExp.prototype.test,Li=Array.prototype.concat,Ye=Array.prototype.join,Hl=Array.prototype.slice,Di=Math.floor,cr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,dr=Object.getOwnPropertySymbols,hr=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,Ri=Object.prototype.propertyIsEnumerable,Mi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function $i(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ii.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Di(-e):Di(e);if(t!==e){var o=String(t),i=fr.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 pr=kl,Fi=pr.custom,ji=Hi(Fi)?Fi:null,Ul=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 d=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 zi(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var c=String(r);return d?$i(r,c):c}if(typeof r=="bigint"){var h=String(r)+"n";return d?$i(r,h):h}var f=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=f&&f>0&&typeof r=="object")return vr(r)?"[Array]":"[Object]";var l=ls(i,t);if(typeof o=="undefined")o=[];else if(Ui(o,r)>=0)return"[Circular]";function a(C,D,R){if(D&&(o=Hl.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"&&!qi(r)){var u=Jl(r),v=Tn(r,a);return"[Function"+(u?": "+u:" (anonymous)")+"]"+(v.length>0?" { "+Ye.call(v,", ")+" }":"")}if(Hi(r)){var p=wt?at.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):hr.call(r);return typeof r=="object"&&!wt?Gt(p):p}if(is(r)){for(var b="<"+ki.call(String(r.nodeName)),m=r.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+Bi(zl(m[g].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+ki.call(String(r.nodeName))+">",b}if(vr(r)){if(r.length===0)return"[]";var _=Tn(r,a);return l&&!as(_)?"["+yr(_,l)+"]":"[ "+Ye.call(_,", ")+" ]"}if(Gl(r)){var y=Tn(r,a);return!("cause"in Error.prototype)&&"cause"in r&&!Ri.call(r,"cause")?"{ ["+String(r)+"] "+Ye.call(Li.call("[cause]: "+a(r.cause),y),", ")+" }":y.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Ye.call(y,", ")+" }"}if(typeof r=="object"&&s){if(ji&&typeof r[ji]=="function"&&pr)return pr(r,{depth:f-t});if(s!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Ql(r)){var O=[];return Il.call(r,function(C,D){O.push(a(D,r,!0)+" => "+a(C,r))}),Wi("Map",wn.call(r),O,l)}if(ns(r)){var P=[];return Ll.call(r,function(C){P.push(a(C,r))}),Wi("Set",An.call(r),P,l)}if(es(r))return mr("WeakMap");if(rs(r))return mr("WeakSet");if(ts(r))return mr("WeakRef");if(Kl(r))return Gt(a(Number(r)));if(Xl(r))return Gt(a(cr.call(r)));if(Yl(r))return Gt($l.call(r));if(Vl(r))return Gt(a(String(r)));if(!Wl(r)&&!qi(r)){var T=Tn(r,a),A=Mi?Mi(r)===Object.prototype:r instanceof Object||r.constructor===Object,I=r instanceof Object?"":"null prototype",x=!A&&De&&Object(r)===r&&De in r?fr.call(st(r),8,-1):I?"Object":"",E=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",w=E+(x||I?"["+Ye.call(Li.call([],x||[],I||[]),": ")+"] ":"");return T.length===0?w+"{}":l?w+"{"+yr(T,l)+"}":w+"{ "+Ye.call(T,", ")+" }"}return String(r)};function Bi(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function zl(e){return at.call(String(e),/"/g,""")}function vr(e){return st(e)==="[object Array]"&&(!De||!(typeof e=="object"&&De in e))}function Wl(e){return st(e)==="[object Date]"&&(!De||!(typeof e=="object"&&De in e))}function qi(e){return st(e)==="[object RegExp]"&&(!De||!(typeof e=="object"&&De in e))}function Gl(e){return st(e)==="[object Error]"&&(!De||!(typeof e=="object"&&De in e))}function Vl(e){return st(e)==="[object String]"&&(!De||!(typeof e=="object"&&De in e))}function Kl(e){return st(e)==="[object Number]"&&(!De||!(typeof e=="object"&&De in e))}function Yl(e){return st(e)==="[object Boolean]"&&(!De||!(typeof e=="object"&&De in e))}function Hi(e){if(wt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!hr)return!1;try{return hr.call(e),!0}catch{}return!1}function Xl(e){if(!e||typeof e!="object"||!cr)return!1;try{return cr.call(e),!0}catch{}return!1}var Zl=Object.prototype.hasOwnProperty||function(e){return e in this};function lt(e,r){return Zl.call(e,r)}function st(e){return Fl.call(e)}function Jl(e){if(e.name)return e.name;var r=Bl.call(jl.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function Ui(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 Ql(e){if(!wn||!e||typeof e!="object")return!1;try{wn.call(e);try{An.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function es(e){if(!zt||!e||typeof e!="object")return!1;try{zt.call(e,zt);try{Wt.call(e,Wt)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ts(e){if(!Ci||!e||typeof e!="object")return!1;try{return Ci.call(e),!0}catch{}return!1}function ns(e){if(!An||!e||typeof e!="object")return!1;try{An.call(e);try{wn.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function rs(e){if(!Wt||!e||typeof e!="object")return!1;try{Wt.call(e,Wt);try{zt.call(e,zt)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function is(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function zi(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return zi(fr.call(e,0,r.maxStringLength),r)+t}var o=at.call(at.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,os);return Bi(o,"single",r)}function os(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":"")+ql.call(r.toString(16))}function Gt(e){return"Object("+e+")"}function mr(e){return e+" { ? }"}function Wi(e,r,n,t){var o=t?yr(n,t):Ye.call(n,", ");return e+" ("+r+") {"+o+"}"}function as(e){for(var r=0;r<e.length;r++)if(Ui(e[r],`
|
|
22
|
-
`)>=0)return!1;return!0}function
|
|
23
|
-
`+r.prev+r.base;return n+
|
|
24
|
-
`+r.prev}function Tn(e,r){var n=vr(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 dr=="function"?dr(e):[],s;if(wt){s={};for(var d=0;d<i.length;d++)s["$"+i[d]]=i[d]}for(var c in e)!lt(e,c)||n&&String(Number(c))===c&&c<e.length||wt&&s["$"+c]instanceof Symbol||(Ii.call(/[^\w$]/,c)?t.push(r(c,e)+": "+r(e[c],e)):t.push(c+": "+r(e[c],e)));if(typeof dr=="function")for(var h=0;h<i.length;h++)Ri.call(e,i[h])&&t.push("["+r(i[h])+"]: "+r(e[i[h]],e));return t}var gr=or,At=Nl,ss=Ul,us=gr("%TypeError%"),Nn=gr("%WeakMap%",!0),Pn=gr("%Map%",!0),fs=At("WeakMap.prototype.get",!0),cs=At("WeakMap.prototype.set",!0),ds=At("WeakMap.prototype.has",!0),hs=At("Map.prototype.get",!0),ps=At("Map.prototype.set",!0),vs=At("Map.prototype.has",!0),br=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},ms=function(e,r){var n=br(e,r);return n&&n.value},ys=function(e,r,n){var t=br(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},gs=function(e,r){return!!br(e,r)},bs=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new us("Side channel does not contain "+ss(i))},get:function(i){if(Nn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return fs(r,i)}else if(Pn){if(n)return hs(n,i)}else if(t)return ms(t,i)},has:function(i){if(Nn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return ds(r,i)}else if(Pn){if(n)return vs(n,i)}else if(t)return gs(t,i);return!1},set:function(i,s){Nn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new Nn),cs(r,i,s)):Pn?(n||(n=new Pn),ps(n,i,s)):(t||(t={key:{},next:null}),ys(t,i,s))}};return o},_s=String.prototype.replace,Os=/%20/g,_r={RFC1738:"RFC1738",RFC3986:"RFC3986"},Or={default:_r.RFC3986,formatters:{RFC1738:function(e){return _s.call(e,Os,"+")},RFC3986:function(e){return String(e)}},RFC1738:_r.RFC1738,RFC3986:_r.RFC3986},Es=Or,Er=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}(),Ss=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}}},Gi=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},xs=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)||!Er.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=Gi(r,t)),vt(r)&&vt(n)?(n.forEach(function(i,s){if(Er.call(r,s)){var d=r[s];d&&typeof d=="object"&&i&&typeof i=="object"?r[s]=e(d,i,t):r.push(i)}else r[s]=i}),r):Object.keys(n).reduce(function(i,s){var d=n[s];return Er.call(i,s)?i[s]=e(i[s],d,t):i[s]=d,i},o)},ws=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},As=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}},Ts=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(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var d="",c=0;c<s.length;++c){var h=s.charCodeAt(c);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===Es.RFC1738&&(h===40||h===41)){d+=s.charAt(c);continue}if(h<128){d=d+Xe[h];continue}if(h<2048){d=d+(Xe[192|h>>6]+Xe[128|h&63]);continue}if(h<55296||h>=57344){d=d+(Xe[224|h>>12]+Xe[128|h>>6&63]+Xe[128|h&63]);continue}c+=1,h=65536+((h&1023)<<10|s.charCodeAt(c)&1023),d+=Xe[240|h>>18]+Xe[128|h>>12&63]+Xe[128|h>>6&63]+Xe[128|h&63]}return d},Ns=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],d=Object.keys(s),c=0;c<d.length;++c){var h=d[c],f=s[h];typeof f=="object"&&f!==null&&t.indexOf(f)===-1&&(n.push({obj:s,prop:h}),t.push(f))}return Ss(n),r},Ps=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},Cs=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},ks=function(r,n){return[].concat(r,n)},Is=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)},Vi={arrayToObject:Gi,assign:ws,combine:ks,compact:Ns,decode:As,encode:Ts,isBuffer:Cs,isRegExp:Ps,maybeMap:Is,merge:xs},Ki=bs,Sr=Vi,Vt=Or,Ls=Object.prototype.hasOwnProperty,Yi={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},Qe=Array.isArray,Ds=String.prototype.split,Rs=Array.prototype.push,Xi=function(e,r){Rs.apply(e,Qe(r)?r:[r])},Ms=Date.prototype.toISOString,Zi=Vt.default,Ce={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Sr.encode,encodeValuesOnly:!1,format:Zi,formatter:Vt.formatters[Zi],indices:!1,serializeDate:function(r){return Ms.call(r)},skipNulls:!1,strictNullHandling:!1},$s=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},xr={},Fs=function e(r,n,t,o,i,s,d,c,h,f,l,a,u,v,p,b){for(var m=r,g=b,_=0,y=!1;(g=g.get(xr))!==void 0&&!y;){var O=g.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");y=!0}typeof g.get(xr)=="undefined"&&(_=0)}if(typeof c=="function"?m=c(n,m):m instanceof Date?m=l(m):t==="comma"&&Qe(m)&&(m=Sr.maybeMap(m,function(q){return q instanceof Date?l(q):q})),m===null){if(i)return d&&!v?d(n,Ce.encoder,p,"key",a):n;m=""}if($s(m)||Sr.isBuffer(m)){if(d){var P=v?n:d(n,Ce.encoder,p,"key",a);if(t==="comma"&&v){for(var T=Ds.call(String(m),","),A="",I=0;I<T.length;++I)A+=(I===0?"":",")+u(d(T[I],Ce.encoder,p,"value",a));return[u(P)+(o&&Qe(m)&&T.length===1?"[]":"")+"="+A]}return[u(P)+"="+u(d(m,Ce.encoder,p,"value",a))]}return[u(n)+"="+u(String(m))]}var x=[];if(typeof m=="undefined")return x;var E;if(t==="comma"&&Qe(m))E=[{value:m.length>0?m.join(",")||null:void 0}];else if(Qe(c))E=c;else{var w=Object.keys(m);E=h?w.sort(h):w}for(var C=o&&Qe(m)&&m.length===1?n+"[]":n,D=0;D<E.length;++D){var R=E[D],B=typeof R=="object"&&typeof R.value!="undefined"?R.value:m[R];if(!(s&&B===null)){var H=Qe(m)?typeof t=="function"?t(C,R):C:C+(f?"."+R:"["+R+"]");b.set(r,_);var G=Ki();G.set(xr,b),Xi(x,e(B,H,t,o,i,s,d,c,h,f,l,a,u,v,p,G))}}return x},js=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=Vt.default;if(typeof r.format!="undefined"){if(!Ls.call(Vt.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=Vt.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}},Bs=function(e,r){var n=e,t=js(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 d;r&&r.arrayFormat in Yi?d=r.arrayFormat:r&&"indices"in r?d=r.indices?"indices":"repeat":d="indices";var c=Yi[d];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=c==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var f=Ki(),l=0;l<o.length;++l){var a=o[l];t.skipNulls&&n[a]===null||Xi(s,Fs(n[a],a,c,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,f))}var u=s.join(t.delimiter),v=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),u.length>0?v+u:""},Tt=Vi,wr=Object.prototype.hasOwnProperty,qs=Array.isArray,Ne={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},Hs=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},Ji=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},Us="utf8=%26%2310003%3B",zs="utf8=%E2%9C%93",Ws=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),d=-1,c,h=n.charset;if(n.charsetSentinel)for(c=0;c<s.length;++c)s[c].indexOf("utf8=")===0&&(s[c]===zs?h="utf-8":s[c]===Us&&(h="iso-8859-1"),d=c,c=s.length);for(c=0;c<s.length;++c)if(c!==d){var f=s[c],l=f.indexOf("]="),a=l===-1?f.indexOf("="):l+1,u,v;a===-1?(u=n.decoder(f,Ne.decoder,h,"key"),v=n.strictNullHandling?null:""):(u=n.decoder(f.slice(0,a),Ne.decoder,h,"key"),v=Tt.maybeMap(Ji(f.slice(a+1),n),function(p){return n.decoder(p,Ne.decoder,h,"value")})),v&&n.interpretNumericEntities&&h==="iso-8859-1"&&(v=Hs(v)),f.indexOf("[]=")>-1&&(v=qs(v)?[v]:v),wr.call(t,u)?t[u]=Tt.combine(t[u],v):t[u]=v}return t},Gs=function(e,r,n,t){for(var o=t?r:Ji(r,n),i=e.length-1;i>=0;--i){var s,d=e[i];if(d==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,h=parseInt(c,10);!n.parseArrays&&c===""?s={0:o}:!isNaN(h)&&d!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=o):c!=="__proto__"&&(s[c]=o)}o=s}return o},Vs=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,s=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,c=t.depth>0&&s.exec(i),h=c?i.slice(0,c.index):i,f=[];if(h){if(!t.plainObjects&&wr.call(Object.prototype,h)&&!t.allowPrototypes)return;f.push(h)}for(var l=0;t.depth>0&&(c=d.exec(i))!==null&&l<t.depth;){if(l+=1,!t.plainObjects&&wr.call(Object.prototype,c[1].slice(1,-1))&&!t.allowPrototypes)return;f.push(c[1])}return c&&f.push("["+i.slice(c.index)+"]"),Gs(f,n,t,o)}},Ks=function(r){if(!r)return Ne;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"?Ne.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?Ne.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Ne.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Ne.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Ne.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ne.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Ne.comma,decoder:typeof r.decoder=="function"?r.decoder:Ne.decoder,delimiter:typeof r.delimiter=="string"||Tt.isRegExp(r.delimiter)?r.delimiter:Ne.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Ne.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Ne.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Ne.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Ne.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ne.strictNullHandling}},Ys=function(e,r){var n=Ks(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?Ws(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),s=0;s<i.length;++s){var d=i[s],c=Vs(d,t[d],n,typeof e=="string");o=Tt.merge(o,c,n)}return n.allowSparse===!0?o:Tt.compact(o)},Xs=Bs,Zs=Ys,Js=Or,Qs={formats:Js,parse:Zs,stringify:Xs};const Qi=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},eu=(e,r)=>{if(!Qi(e,r))return{};const n=e.split(r),[t,o]=n,[i,s]=o.split("?");let d=s?Qs.parse(s):{};return{field:t,type:i,params:d}},tu={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:d,presetPropMap:c}=s,{field:h,type:f,params:l}=eu(o,d);return c[f](i,{field:h,params:l,h:e})})(r))}};var nu=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)},ru=[],mf="";const iu={components:{draggable:yi},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)=>Oe(Oe({},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()}},eo={};var ou=Te(iu,nu,ru,!1,au,"34964627",null,null);function au(e){for(let r in eo)this[r]=eo[r]}var lu=function(){return ou.exports}(),su=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)},uu=[],yf="";const fu={name:"ComTable",components:{ColumnConfig:lu,TablePresetProp:tu},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:Qi,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=`${_i()-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):e.id?this.tableData.filter(i=>i.id==e.id).forEach(i=>{this.$refs.myTable.toggleRowSelection(i)}):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=er(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()}},to={};var cu=Te(fu,su,uu,!1,du,"2f5b2e68",null,null);function du(e){for(let r in to)this[r]=to[r]}var Cn=function(){return cu.exports}();Cn.install=e=>{e.component(Cn.name,Cn)};const no=Cn;var hu=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()},pu=[],gf="";const vu={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)}},ro={};var mu=Te(vu,hu,pu,!1,yu,"52e1ecf6",null,null);function yu(e){for(let r in ro)this[r]=ro[r]}var kn=function(){return mu.exports}();kn.install=e=>{e.component(kn.name,kn)};const io=kn;var gu=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)},bu=[],bf="";const _u={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||`${_i(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:er(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},oo={};var Ou=Te(_u,gu,bu,!1,Eu,"c2fac2c4",null,null);function Eu(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 lo={exports:{}};/*!
|
|
23
|
+
*/function Tn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tn=function(r){return typeof r}:Tn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tn(e)}function qs(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ve(){return Ve=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},Ve.apply(this,arguments)}function ut(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){qs(e,o,n[o])})}return e}function Us(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 Hs(e,r){if(e==null)return{};var n=Us(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 zs(e){return Ws(e)||Vs(e)||Gs()}function Ws(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 Vs(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Gs(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Ks="1.10.2";function it(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var ot=it(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ht=it(/Edge/i),ho=it(/firefox/i),gr=it(/safari/i)&&!it(/chrome/i)&&!it(/android/i),po=it(/iP(ad|od|hone)/i),Ys=it(/chrome/i)&&it(/android/i),vo={capture:!1,passive:!1};function ce(e,r,n){e.addEventListener(r,n,!ot&&vo)}function le(e,r,n){e.removeEventListener(r,n,!ot&&vo)}function Cn(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 Xs(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ye(e,r,n,t){if(e){n=n||document;do{if(r!=null&&(r[0]===">"?e.parentNode===n&&Cn(e,r):Cn(e,r))||t&&e===n)return e;if(e===n)break}while(e=Xs(e))}return null}var mo=/\s+/g;function ye(e,r,n){if(e&&r)if(e.classList)e.classList[n?"add":"remove"](r);else{var t=(" "+e.className+" ").replace(mo," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(mo," ")}}function te(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 gt(e,r){var n="";if(typeof e=="string")n=e;else do{var t=te(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 yo(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 et(){var e=document.scrollingElement;return e||document.documentElement}function Oe(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,f,c,p,u,l;if(e!==window&&e!==et()?(i=e.getBoundingClientRect(),a=i.top,f=i.left,c=i.bottom,p=i.right,u=i.height,l=i.width):(a=0,f=0,c=window.innerHeight,p=window.innerWidth,u=window.innerHeight,l=window.innerWidth),(r||n)&&e!==window&&(o=o||e.parentNode,!ot))do if(o&&o.getBoundingClientRect&&(te(o,"transform")!=="none"||n&&te(o,"position")!=="static")){var s=o.getBoundingClientRect();a-=s.top+parseInt(te(o,"border-top-width")),f-=s.left+parseInt(te(o,"border-left-width")),c=a+i.height,p=f+i.width;break}while(o=o.parentNode);if(t&&e!==window){var d=gt(o||e),v=d&&d.a,h=d&&d.d;d&&(a/=h,f/=v,l/=v,u/=h,c=a+u,p=f+l)}return{top:a,left:f,bottom:c,right:p,width:l,height:u}}}function go(e,r,n){for(var t=ft(e,!0),o=Oe(e)[r];t;){var i=Oe(t)[n],a=void 0;if(n==="top"||n==="left"?a=o>=i:a=o<=i,!a)return t;if(t===et())break;t=ft(t,!1)}return!1}function Nn(e,r,n){for(var t=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==ne.ghost&&i[o]!==ne.dragged&&Ye(i[o],n.draggable,e,!1)){if(t===r)return i[o];t++}o++}return null}function br(e,r){for(var n=e.lastElementChild;n&&(n===ne.ghost||te(n,"display")==="none"||r&&!Cn(n,r));)n=n.previousElementSibling;return n||null}function Ee(e,r){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ne.clone&&(!r||Cn(e,r))&&n++;return n}function bo(e){var r=0,n=0,t=et();if(e)do{var o=gt(e),i=o.a,a=o.d;r+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==t&&(e=e.parentNode));return[r,n]}function Js(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 ft(e,r){if(!e||!e.getBoundingClientRect)return et();var n=e,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=te(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 et();if(t||r)return n;t=!0}}while(n=n.parentNode);return et()}function Zs(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function _r(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 zt;function _o(e,r){return function(){if(!zt){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),zt=setTimeout(function(){zt=void 0},r)}}}function Qs(){clearTimeout(zt),zt=void 0}function Oo(e,r,n){e.scrollLeft+=r,e.scrollTop+=n}function Or(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 Eo(e,r){te(e,"position","absolute"),te(e,"top",r.top),te(e,"left",r.left),te(e,"width",r.width),te(e,"height",r.height)}function Er(e){te(e,"position",""),te(e,"top",""),te(e,"left",""),te(e,"width",""),te(e,"height","")}var Re="Sortable"+new Date().getTime();function eu(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(te(o,"display")==="none"||o===ne.ghost)){e.push({target:o,rect:Oe(o)});var i=ut({},e[e.length-1].rect);if(o.thisAnimationDuration){var a=gt(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Js(e,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var i=!1,a=0;e.forEach(function(f){var c=0,p=f.target,u=p.fromRect,l=Oe(p),s=p.prevFromRect,d=p.prevToRect,v=f.rect,h=gt(p,!0);h&&(l.top-=h.f,l.left-=h.e),p.toRect=l,p.thisAnimationDuration&&_r(s,l)&&!_r(u,l)&&(v.top-l.top)/(v.left-l.left)==(u.top-l.top)/(u.left-l.left)&&(c=nu(v,s,d,o.options)),_r(l,u)||(p.prevFromRect=u,p.prevToRect=l,c||(c=o.options.animation),o.animate(p,v,l,c)),c&&(i=!0,a=Math.max(a,c),clearTimeout(p.animationResetTimer),p.animationResetTimer=setTimeout(function(){p.animationTime=0,p.prevFromRect=null,p.fromRect=null,p.prevToRect=null,p.thisAnimationDuration=null},c),p.thisAnimationDuration=c)}),clearTimeout(r),i?r=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),e=[]},animate:function(t,o,i,a){if(a){te(t,"transition",""),te(t,"transform","");var f=gt(this.el),c=f&&f.a,p=f&&f.d,u=(o.left-i.left)/(c||1),l=(o.top-i.top)/(p||1);t.animatingX=!!u,t.animatingY=!!l,te(t,"transform","translate3d("+u+"px,"+l+"px,0)"),tu(t),te(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),te(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){te(t,"transition",""),te(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function tu(e){return e.offsetWidth}function nu(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 Wt=[],Sr={initializeByDefault:!0},Vt={mount:function(r){for(var n in Sr)Sr.hasOwnProperty(n)&&!(n in r)&&(r[n]=Sr[n]);Wt.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";Wt.forEach(function(a){!n[a.pluginName]||(n[a.pluginName][i]&&n[a.pluginName][i](ut({sortable:n},t)),n.options[a.pluginName]&&n[a.pluginName][r]&&n[a.pluginName][r](ut({sortable:n},t)))})},initializePlugins:function(r,n,t,o){Wt.forEach(function(f){var c=f.pluginName;if(!(!r.options[c]&&!f.initializeByDefault)){var p=new f(r,n,r.options);p.sortable=r,p.options=r.options,r[c]=p,Ve(t,p.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var a=this.modifyOption(r,i,r.options[i]);typeof a!="undefined"&&(r.options[i]=a)}},getEventProperties:function(r,n){var t={};return Wt.forEach(function(o){typeof o.eventProperties=="function"&&Ve(t,o.eventProperties.call(n[o.pluginName],r))}),t},modifyOption:function(r,n,t){var o;return Wt.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function Gt(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,f=e.fromEl,c=e.oldIndex,p=e.newIndex,u=e.oldDraggableIndex,l=e.newDraggableIndex,s=e.originalEvent,d=e.putSortable,v=e.extraEventProperties;if(r=r||n&&n[Re],!!r){var h,b=r.options,m="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!ot&&!Ht?h=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(t,!0,!0)),h.to=a||n,h.from=f||n,h.item=o||n,h.clone=i,h.oldIndex=c,h.newIndex=p,h.oldDraggableIndex=u,h.newDraggableIndex=l,h.originalEvent=s,h.pullMode=d?d.lastPutMode:void 0;var g=ut({},v,Vt.getEventProperties(t,r));for(var _ in g)h[_]=g[_];n&&n.dispatchEvent(h),b[m]&&b[m].call(r,h)}}var Be=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=Hs(t,["evt"]);Vt.pluginEvent.bind(ne)(r,n,ut({dragEl:J,parentEl:xe,ghostEl:oe,rootEl:ge,nextEl:bt,lastDownEl:Pn,cloneEl:Se,cloneHidden:ct,dragStarted:Yt,putSortable:Ie,activeSortable:ne.active,originalEvent:o,oldIndex:Tt,oldDraggableIndex:Kt,newIndex:Ue,newDraggableIndex:dt,hideGhostForTarget:No,unhideGhostForTarget:Po,cloneNowHidden:function(){ct=!0},cloneNowShown:function(){ct=!1},dispatchSortableEvent:function(f){Fe({sortable:n,name:f,originalEvent:o})}},i))};function Fe(e){Gt(ut({putSortable:Ie,cloneEl:Se,targetEl:J,rootEl:ge,oldIndex:Tt,oldDraggableIndex:Kt,newIndex:Ue,newDraggableIndex:dt},e))}var J,xe,oe,ge,bt,Pn,Se,ct,Tt,Ue,Kt,dt,kn,Ie,Ct=!1,In=!1,Ln=[],_t,Xe,wr,xr,So,wo,Yt,Nt,Xt,Jt=!1,Dn=!1,Rn,$e,Ar=[],Tr=!1,$n=[],Mn=typeof document!="undefined",Fn=po,xo=Ht||ot?"cssFloat":"float",ru=Mn&&!Ys&&!po&&"draggable"in document.createElement("div"),Ao=function(){if(!!Mn){if(ot)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),To=function(r,n){var t=te(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=Nn(r,0,n),a=Nn(r,1,n),f=i&&te(i),c=a&&te(a),p=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Oe(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Oe(a).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&&f.float&&f.float!=="none"){var l=f.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===l)?"vertical":"horizontal"}return i&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||p>=o&&t[xo]==="none"||a&&t[xo]==="none"&&p+u>o)?"vertical":"horizontal"},iu=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,a=t?r.width:r.height,f=t?n.left:n.top,c=t?n.right:n.bottom,p=t?n.width:n.height;return o===f||i===c||o+a/2===f+p/2},ou=function(r,n){var t;return Ln.some(function(o){if(!br(o)){var i=Oe(o),a=o[Re].options.emptyInsertThreshold,f=r>=i.left-a&&r<=i.right+a,c=n>=i.top-a&&n<=i.bottom+a;if(a&&f&&c)return t=o}}),t},Co=function(r){function n(i,a){return function(f,c,p,u){var l=f.options.group.name&&c.options.group.name&&f.options.group.name===c.options.group.name;if(i==null&&(a||l))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(f,c,p,u),a)(f,c,p,u);var s=(a?f:c).options.group.name;return i===!0||typeof i=="string"&&i===s||i.join&&i.indexOf(s)>-1}}var t={},o=r.group;(!o||Tn(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},No=function(){!Ao&&oe&&te(oe,"display","none")},Po=function(){!Ao&&oe&&te(oe,"display","")};Mn&&document.addEventListener("click",function(e){if(In)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),In=!1,!1},!0);var Ot=function(r){if(J){r=r.touches?r.touches[0]:r;var n=ou(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[Re]._onDragOver(t)}}},au=function(r){J&&J.parentNode[Re]._isOutsideThisEl(r.target)};function ne(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=Ve({},r),e[Re]=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 To(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(a,f){a.setData("Text",f.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:ne.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Vt.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);Co(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:ru,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?ce(e,"pointerdown",this._onTapStart):(ce(e,"mousedown",this._onTapStart),ce(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ce(e,"dragover",this),ce(e,"dragenter",this)),Ln.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Ve(this,eu())}ne.prototype={constructor:ne,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(Nt=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,J):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,o=this.options,i=o.preventOnFilter,a=r.type,f=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(f||r).target,p=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,u=o.filter;if(hu(t),!J&&!(/mousedown|pointerdown/.test(a)&&r.button!==0||o.disabled)&&!p.isContentEditable&&(c=Ye(c,o.draggable,t,!1),!(c&&c.animated)&&Pn!==c)){if(Tt=Ee(c),Kt=Ee(c,o.draggable),typeof u=="function"){if(u.call(this,r,c,this)){Fe({sortable:n,rootEl:p,name:"filter",targetEl:c,toEl:t,fromEl:t}),Be("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(u&&(u=u.split(",").some(function(l){if(l=Ye(p,l.trim(),t,!1),l)return Fe({sortable:n,rootEl:l,name:"filter",targetEl:c,fromEl:t,toEl:t}),Be("filter",n,{evt:r}),!0}),u)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!Ye(p,o.handle,t,!1)||this._prepareDragStart(r,f,c)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,a=o.options,f=i.ownerDocument,c;if(t&&!J&&t.parentNode===i){var p=Oe(t);if(ge=i,J=t,xe=J.parentNode,bt=J.nextSibling,Pn=t,kn=a.group,ne.dragged=J,_t={target:J,clientX:(n||r).clientX,clientY:(n||r).clientY},So=_t.clientX-p.left,wo=_t.clientY-p.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,J.style["will-change"]="all",c=function(){if(Be("delayEnded",o,{evt:r}),ne.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!ho&&o.nativeDraggable&&(J.draggable=!0),o._triggerDragStart(r,n),Fe({sortable:o,name:"choose",originalEvent:r}),ye(J,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){yo(J,u.trim(),Nr)}),ce(f,"dragover",Ot),ce(f,"mousemove",Ot),ce(f,"touchmove",Ot),ce(f,"mouseup",o._onDrop),ce(f,"touchend",o._onDrop),ce(f,"touchcancel",o._onDrop),ho&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),Be("delayStart",this,{evt:r}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ht||ot))){if(ne.eventCanceled){this._onDrop();return}ce(f,"mouseup",o._disableDelayedDrag),ce(f,"touchend",o._disableDelayedDrag),ce(f,"touchcancel",o._disableDelayedDrag),ce(f,"mousemove",o._delayedDragTouchMoveHandler),ce(f,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&ce(f,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,a.delay)}else c()}},_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(){J&&Nr(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;le(r,"mouseup",this._disableDelayedDrag),le(r,"touchend",this._disableDelayedDrag),le(r,"touchcancel",this._disableDelayedDrag),le(r,"mousemove",this._delayedDragTouchMoveHandler),le(r,"touchmove",this._delayedDragTouchMoveHandler),le(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?ce(document,"pointermove",this._onTouchMove):n?ce(document,"touchmove",this._onTouchMove):ce(document,"mousemove",this._onTouchMove):(ce(J,"dragend",this),ce(ge,"dragstart",this._onDragStart));try{document.selection?jn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(Ct=!1,ge&&J){Be("dragStarted",this,{evt:n}),this.nativeDraggable&&ce(document,"dragover",au);var t=this.options;!r&&ye(J,t.dragClass,!1),ye(J,t.ghostClass,!0),ne.active=this,r&&this._appendGhost(),Fe({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Xe){this._lastX=Xe.clientX,this._lastY=Xe.clientY,No();for(var r=document.elementFromPoint(Xe.clientX,Xe.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Xe.clientX,Xe.clientY),r!==n);)n=r;if(J.parentNode[Re]._isOutsideThisEl(r),n)do{if(n[Re]){var t=void 0;if(t=n[Re]._onDragOver({clientX:Xe.clientX,clientY:Xe.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);Po()}},_onTouchMove:function(r){if(_t){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,i=r.touches?r.touches[0]:r,a=oe&>(oe,!0),f=oe&&a&&a.a,c=oe&&a&&a.d,p=Fn&&$e&&bo($e),u=(i.clientX-_t.clientX+o.x)/(f||1)+(p?p[0]-Ar[0]:0)/(f||1),l=(i.clientY-_t.clientY+o.y)/(c||1)+(p?p[1]-Ar[1]:0)/(c||1);if(!ne.active&&!Ct){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(oe){a?(a.e+=u-(wr||0),a.f+=l-(xr||0)):a={a:1,b:0,c:0,d:1,e:u,f:l};var s="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");te(oe,"webkitTransform",s),te(oe,"mozTransform",s),te(oe,"msTransform",s),te(oe,"transform",s),wr=u,xr=l,Xe=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!oe){var r=this.options.fallbackOnBody?document.body:ge,n=Oe(J,!0,Fn,!0,r),t=this.options;if(Fn){for($e=r;te($e,"position")==="static"&&te($e,"transform")==="none"&&$e!==document;)$e=$e.parentNode;$e!==document.body&&$e!==document.documentElement?($e===document&&($e=et()),n.top+=$e.scrollTop,n.left+=$e.scrollLeft):$e=et(),Ar=bo($e)}oe=J.cloneNode(!0),ye(oe,t.ghostClass,!1),ye(oe,t.fallbackClass,!0),ye(oe,t.dragClass,!0),te(oe,"transition",""),te(oe,"transform",""),te(oe,"box-sizing","border-box"),te(oe,"margin",0),te(oe,"top",n.top),te(oe,"left",n.left),te(oe,"width",n.width),te(oe,"height",n.height),te(oe,"opacity","0.8"),te(oe,"position",Fn?"absolute":"fixed"),te(oe,"zIndex","100000"),te(oe,"pointerEvents","none"),ne.ghost=oe,r.appendChild(oe),te(oe,"transform-origin",So/parseInt(oe.style.width)*100+"% "+wo/parseInt(oe.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,o=r.dataTransfer,i=t.options;if(Be("dragStart",this,{evt:r}),ne.eventCanceled){this._onDrop();return}Be("setupClone",this),ne.eventCanceled||(Se=Or(J),Se.draggable=!1,Se.style["will-change"]="",this._hideClone(),ye(Se,this.options.chosenClass,!1),ne.clone=Se),t.cloneId=jn(function(){Be("clone",t),!ne.eventCanceled&&(t.options.removeCloneOnHide||ge.insertBefore(Se,J),t._hideClone(),Fe({sortable:t,name:"clone"}))}),!n&&ye(J,i.dragClass,!0),n?(In=!0,t._loopId=setInterval(t._emulateDragOver,50)):(le(document,"mouseup",t._onDrop),le(document,"touchend",t._onDrop),le(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,J)),ce(document,"drop",t),te(J,"transform","translateZ(0)")),Ct=!0,t._dragStartId=jn(t._dragStarted.bind(t,n,r)),ce(document,"selectstart",t),Yt=!0,gr&&te(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,a,f=this.options,c=f.group,p=ne.active,u=kn===c,l=f.sort,s=Ie||p,d,v=this,h=!1;if(Tr)return;function b(U,G){Be(U,v,ut({evt:r,isOwner:u,axis:d?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:l,fromSortable:s,target:t,completed:g,onMove:function($,S){return Cr(ge,n,J,o,$,Oe($),r,S)},changed:_},G))}function m(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==s&&s.captureAnimationState()}function g(U){return b("dragOverCompleted",{insertion:U}),U&&(u?p._hideClone():p._showClone(v),v!==s&&(ye(J,Ie?Ie.options.ghostClass:p.options.ghostClass,!1),ye(J,f.ghostClass,!0)),Ie!==v&&v!==ne.active?Ie=v:v===ne.active&&Ie&&(Ie=null),s===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(t===J&&!J.animated||t===n&&!t.animated)&&(Nt=null),!f.dragoverBubble&&!r.rootEl&&t!==document&&(J.parentNode[Re]._isOutsideThisEl(r.target),!U&&Ot(r)),!f.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),h=!0}function _(){Ue=Ee(J),dt=Ee(J,f.draggable),Fe({sortable:v,name:"change",toEl:n,newIndex:Ue,newDraggableIndex:dt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=Ye(t,f.draggable,n,!0),b("dragOver"),ne.eventCanceled)return h;if(J.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return g(!1);if(In=!1,p&&!f.disabled&&(u?l||(a=!ge.contains(J)):Ie===this||(this.lastPutMode=kn.checkPull(this,p,J,r))&&c.checkPut(this,p,J,r))){if(d=this._getDirection(r,t)==="vertical",o=Oe(J),b("dragOverValid"),ne.eventCanceled)return h;if(a)return xe=ge,m(),this._hideClone(),b("revert"),ne.eventCanceled||(bt?ge.insertBefore(J,bt):ge.appendChild(J)),g(!0);var y=br(n,f.draggable);if(!y||uu(r,d,this)&&!y.animated){if(y===J)return g(!1);if(y&&n===r.target&&(t=y),t&&(i=Oe(t)),Cr(ge,n,J,o,t,i,r,!!t)!==!1)return m(),n.appendChild(J),xe=n,_(),g(!0)}else if(t.parentNode===n){i=Oe(t);var O=0,N,T=J.parentNode!==n,A=!iu(J.animated&&J.toRect||o,t.animated&&t.toRect||i,d),I=d?"top":"left",w=go(t,"top","top")||go(J,"top","top"),E=w?w.scrollTop:void 0;Nt!==t&&(N=i[I],Jt=!1,Dn=!A&&f.invertSwap||T),O=fu(r,t,i,d,A?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,Dn,Nt===t);var x;if(O!==0){var P=Ee(J);do P-=O,x=xe.children[P];while(x&&(te(x,"display")==="none"||x===oe))}if(O===0||x===t)return g(!1);Nt=t,Xt=O;var D=t.nextElementSibling,R=!1;R=O===1;var B=Cr(ge,n,J,o,t,i,r,R);if(B!==!1)return(B===1||B===-1)&&(R=B===1),Tr=!0,setTimeout(su,30),m(),R&&!D?n.appendChild(J):t.parentNode.insertBefore(J,R?D:t),w&&Oo(w,0,E-w.scrollTop),xe=J.parentNode,N!==void 0&&!Dn&&(Rn=Math.abs(N-Oe(t)[I])),_(),g(!0)}if(n.contains(J))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){le(document,"mousemove",this._onTouchMove),le(document,"touchmove",this._onTouchMove),le(document,"pointermove",this._onTouchMove),le(document,"dragover",Ot),le(document,"mousemove",Ot),le(document,"touchmove",Ot)},_offUpEvents:function(){var r=this.el.ownerDocument;le(r,"mouseup",this._onDrop),le(r,"touchend",this._onDrop),le(r,"pointerup",this._onDrop),le(r,"touchcancel",this._onDrop),le(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(Ue=Ee(J),dt=Ee(J,t.draggable),Be("drop",this,{evt:r}),xe=J&&J.parentNode,Ue=Ee(J),dt=Ee(J,t.draggable),ne.eventCanceled){this._nulling();return}Ct=!1,Dn=!1,Jt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Pr(this.cloneId),Pr(this._dragStartId),this.nativeDraggable&&(le(document,"drop",this),le(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),gr&&te(document.body,"user-select",""),te(J,"transform",""),r&&(Yt&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),(ge===xe||Ie&&Ie.lastPutMode!=="clone")&&Se&&Se.parentNode&&Se.parentNode.removeChild(Se),J&&(this.nativeDraggable&&le(J,"dragend",this),Nr(J),J.style["will-change"]="",Yt&&!Ct&&ye(J,Ie?Ie.options.ghostClass:this.options.ghostClass,!1),ye(J,this.options.chosenClass,!1),Fe({sortable:this,name:"unchoose",toEl:xe,newIndex:null,newDraggableIndex:null,originalEvent:r}),ge!==xe?(Ue>=0&&(Fe({rootEl:xe,name:"add",toEl:xe,fromEl:ge,originalEvent:r}),Fe({sortable:this,name:"remove",toEl:xe,originalEvent:r}),Fe({rootEl:xe,name:"sort",toEl:xe,fromEl:ge,originalEvent:r}),Fe({sortable:this,name:"sort",toEl:xe,originalEvent:r})),Ie&&Ie.save()):Ue!==Tt&&Ue>=0&&(Fe({sortable:this,name:"update",toEl:xe,originalEvent:r}),Fe({sortable:this,name:"sort",toEl:xe,originalEvent:r})),ne.active&&((Ue==null||Ue===-1)&&(Ue=Tt,dt=Kt),Fe({sortable:this,name:"end",toEl:xe,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Be("nulling",this),ge=J=xe=oe=bt=Se=Pn=ct=_t=Xe=Yt=Ue=dt=Tt=Kt=Nt=Xt=Ie=kn=ne.dragged=ne.ghost=ne.clone=ne.active=null,$n.forEach(function(r){r.checked=!0}),$n.length=wr=xr=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":J&&(this._onDragOver(r),lu(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,o=0,i=t.length,a=this.options;o<i;o++)n=t[o],Ye(n,a.draggable,this.el,!1)&&r.push(n.getAttribute(a.dataIdAttr)||du(n));return r},sort:function(r){var n={},t=this.el;this.toArray().forEach(function(o,i){var a=t.children[i];Ye(a,this.options.draggable,t,!1)&&(n[o]=a)},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 Ye(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=Vt.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&Co(t)},destroy:function(){Be("destroy",this);var r=this.el;r[Re]=null,le(r,"mousedown",this._onTapStart),le(r,"touchstart",this._onTapStart),le(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(le(r,"dragover",this),le(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ln.splice(Ln.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!ct){if(Be("hideClone",this),ne.eventCanceled)return;te(Se,"display","none"),this.options.removeCloneOnHide&&Se.parentNode&&Se.parentNode.removeChild(Se),ct=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(ct){if(Be("showClone",this),ne.eventCanceled)return;ge.contains(J)&&!this.options.group.revertClone?ge.insertBefore(Se,J):bt?ge.insertBefore(Se,bt):ge.appendChild(Se),this.options.group.revertClone&&this.animate(J,Se),te(Se,"display",""),ct=!1}}};function lu(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Cr(e,r,n,t,o,i,a,f){var c,p=e[Re],u=p.options.onMove,l;return window.CustomEvent&&!ot&&!Ht?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=e,c.dragged=n,c.draggedRect=t,c.related=o||r,c.relatedRect=i||Oe(r),c.willInsertAfter=f,c.originalEvent=a,e.dispatchEvent(c),u&&(l=u.call(p,c,a)),l}function Nr(e){e.draggable=!1}function su(){Tr=!1}function uu(e,r,n){var t=Oe(br(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 fu(e,r,n,t,o,i,a,f){var c=t?e.clientY:e.clientX,p=t?n.height:n.width,u=t?n.top:n.left,l=t?n.bottom:n.right,s=!1;if(!a){if(f&&Rn<p*o){if(!Jt&&(Xt===1?c>u+p*i/2:c<l-p*i/2)&&(Jt=!0),Jt)s=!0;else if(Xt===1?c<u+Rn:c>l-Rn)return-Xt}else if(c>u+p*(1-o)/2&&c<l-p*(1-o)/2)return cu(r)}return s=s||a,s&&(c<u+p*i/2||c>l-p*i/2)?c>u+p/2?1:-1:0}function cu(e){return Ee(J)<Ee(e)?1:-1}function du(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 hu(e){$n.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&$n.push(t)}}function jn(e){return setTimeout(e,0)}function Pr(e){return clearTimeout(e)}Mn&&ce(document,"touchmove",function(e){(ne.active||Ct)&&e.cancelable&&e.preventDefault()}),ne.utils={on:ce,off:le,css:te,find:yo,is:function(r,n){return!!Ye(r,n,r,!1)},extend:Zs,throttle:_o,closest:Ye,toggleClass:ye,clone:Or,index:Ee,nextTick:jn,cancelNextTick:Pr,detectDirection:To,getChild:Nn},ne.get=function(e){return e[Re]},ne.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&&(ne.utils=ut({},ne.utils,t.utils)),Vt.mount(t)})},ne.create=function(e,r){return new ne(e,r)},ne.version=Ks;var Ae=[],Zt,kr,Ir=!1,Lr,Dr,Bn,Qt;function pu(){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?ce(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ce(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ce(document,"touchmove",this._handleFallbackAutoScroll):ce(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?le(document,"dragover",this._handleAutoScroll):(le(document,"pointermove",this._handleFallbackAutoScroll),le(document,"touchmove",this._handleFallbackAutoScroll),le(document,"mousemove",this._handleFallbackAutoScroll)),ko(),qn(),Qs()},nulling:function(){Bn=kr=Zt=Ir=Qt=Lr=Dr=null,Ae.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,f=document.elementFromPoint(i,a);if(Bn=n,t||Ht||ot||gr){Rr(n,this.options,f,t);var c=ft(f,!0);Ir&&(!Qt||i!==Lr||a!==Dr)&&(Qt&&ko(),Qt=setInterval(function(){var p=ft(document.elementFromPoint(i,a),!0);p!==c&&(c=p,qn()),Rr(n,o.options,p,t)},10),Lr=i,Dr=a)}else{if(!this.options.bubbleScroll||ft(f,!0)===et()){qn();return}Rr(n,this.options,ft(f,!1),!1)}}},Ve(e,{pluginName:"scroll",initializeByDefault:!0})}function qn(){Ae.forEach(function(e){clearInterval(e.pid)}),Ae=[]}function ko(){clearInterval(Qt)}var Rr=_o(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,a=r.scrollSensitivity,f=r.scrollSpeed,c=et(),p=!1,u;kr!==n&&(kr=n,qn(),Zt=r.scroll,u=r.scrollFn,Zt===!0&&(Zt=ft(n,!0)));var l=0,s=Zt;do{var d=s,v=Oe(d),h=v.top,b=v.bottom,m=v.left,g=v.right,_=v.width,y=v.height,O=void 0,N=void 0,T=d.scrollWidth,A=d.scrollHeight,I=te(d),w=d.scrollLeft,E=d.scrollTop;d===c?(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),N=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"),N=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"));var x=O&&(Math.abs(g-o)<=a&&w+_<T)-(Math.abs(m-o)<=a&&!!w),P=N&&(Math.abs(b-i)<=a&&E+y<A)-(Math.abs(h-i)<=a&&!!E);if(!Ae[l])for(var D=0;D<=l;D++)Ae[D]||(Ae[D]={});(Ae[l].vx!=x||Ae[l].vy!=P||Ae[l].el!==d)&&(Ae[l].el=d,Ae[l].vx=x,Ae[l].vy=P,clearInterval(Ae[l].pid),(x!=0||P!=0)&&(p=!0,Ae[l].pid=setInterval(function(){t&&this.layer===0&&ne.active._onTouchMove(Bn);var R=Ae[this.layer].vy?Ae[this.layer].vy*f:0,B=Ae[this.layer].vx?Ae[this.layer].vx*f:0;typeof u=="function"&&u.call(ne.dragged.parentNode[Re],B,R,e,Bn,Ae[this.layer].el)!=="continue"||Oo(Ae[this.layer].el,B,R)}.bind({layer:l}),24))),l++}while(r.bubbleScroll&&s!==c&&(s=ft(s,!1)));Ir=p}},30),Io=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,a=r.dispatchSortableEvent,f=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var p=t||i;f();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,l=document.elementFromPoint(u.clientX,u.clientY);c(),p&&!p.el.contains(l)&&(a("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function $r(){}$r.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=Nn(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:Io},Ve($r,{pluginName:"revertOnSpill"});function Mr(){}Mr.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:Io},Ve(Mr,{pluginName:"removeOnSpill"});var Ge;function vu(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var t=n.dragEl;Ge=t},dragOverValid:function(n){var t=n.completed,o=n.target,i=n.onMove,a=n.activeSortable,f=n.changed,c=n.cancel;if(!!a.options.swap){var p=this.sortable.el,u=this.options;if(o&&o!==p){var l=Ge;i(o)!==!1?(ye(o,u.swapClass,!0),Ge=o):Ge=null,l&&l!==Ge&&ye(l,u.swapClass,!1)}f(),t(!0),c()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,a=o||this.sortable,f=this.options;Ge&&ye(Ge,f.swapClass,!1),Ge&&(f.swap||o&&o.options.swap)&&i!==Ge&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),mu(i,Ge),a.animateAll(),a!==t&&t.animateAll())},nulling:function(){Ge=null}},Ve(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ge}}})}function mu(e,r){var n=e.parentNode,t=r.parentNode,o,i;!n||!t||n.isEqualNode(r)||t.isEqualNode(e)||(o=Ee(e),i=Ee(r),n.isEqualNode(t)&&o<i&&i++,n.insertBefore(r,n.children[o]),t.insertBefore(e,t.children[i]))}var ie=[],He=[],en,Je,tn=!1,ze=!1,Pt=!1,me,nn,Un;function yu(){function e(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?ce(document,"pointerup",this._deselectMultiDrag):(ce(document,"mouseup",this._deselectMultiDrag),ce(document,"touchend",this._deselectMultiDrag)),ce(document,"keydown",this._checkKeyDown),ce(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,i){var a="";ie.length&&Je===r?ie.forEach(function(f,c){a+=(c?", ":"")+f.textContent}):a=i.textContent,o.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;me=t},delayEnded:function(){this.isMultiDrag=~ie.indexOf(me)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(!!this.isMultiDrag){for(var i=0;i<ie.length;i++)He.push(Or(ie[i])),He[i].sortableIndex=ie[i].sortableIndex,He[i].draggable=!1,He[i].style["will-change"]="",ye(He[i],this.options.selectedClass,!1),ie[i]===me&&ye(He[i],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,i=n.dispatchSortableEvent,a=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||ie.length&&Je===t&&(Lo(!0,o),i("clone"),a())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(Lo(!1,o),He.forEach(function(a){te(a,"display","")}),t(),Un=!1,i())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,i=n.cancel;!this.isMultiDrag||(He.forEach(function(a){te(a,"display","none"),t.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),o(),Un=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Je&&Je.multiDrag._deselectMultiDrag(),ie.forEach(function(t){t.sortableIndex=Ee(t)}),ie=ie.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),Pt=!0},dragStarted:function(n){var t=this,o=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){ie.forEach(function(a){a!==me&&te(a,"position","absolute")});var i=Oe(me,!1,!0,!0);ie.forEach(function(a){a!==me&&Eo(a,i)}),ze=!0,tn=!0}o.animateAll(function(){ze=!1,tn=!1,t.options.animation&&ie.forEach(function(a){Er(a)}),t.options.sort&&Hn()})}},dragOver:function(n){var t=n.target,o=n.completed,i=n.cancel;ze&&~ie.indexOf(t)&&(o(!1),i())},revert:function(n){var t=n.fromSortable,o=n.rootEl,i=n.sortable,a=n.dragRect;ie.length>1&&(ie.forEach(function(f){i.addAnimationState({target:f,rect:ze?Oe(f):a}),Er(f),f.fromRect=a,t.removeAnimationState(f)}),ze=!1,gu(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,a=n.activeSortable,f=n.parentEl,c=n.putSortable,p=this.options;if(i){if(o&&a._hideClone(),tn=!1,p.animation&&ie.length>1&&(ze||!o&&!a.options.sort&&!c)){var u=Oe(me,!1,!0,!0);ie.forEach(function(s){s!==me&&(Eo(s,u),f.appendChild(s))}),ze=!0}if(!o)if(ze||Hn(),ie.length>1){var l=Un;a._showClone(t),a.options.animation&&!Un&&l&&He.forEach(function(s){a.addAnimationState({target:s,rect:nn}),s.fromRect=nn,s.thisAnimationDuration=null})}else a._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(ie.forEach(function(f){f.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){nn=Ve({},t);var a=gt(me,!0);nn.top-=a.f,nn.left-=a.e}},dragOverAnimationComplete:function(){ze&&(ze=!1,Hn())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,a=n.sortable,f=n.dispatchSortableEvent,c=n.oldIndex,p=n.putSortable,u=p||this.sortable;if(!!t){var l=this.options,s=i.children;if(!Pt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ye(me,l.selectedClass,!~ie.indexOf(me)),~ie.indexOf(me))ie.splice(ie.indexOf(me),1),en=null,Gt({sortable:a,rootEl:o,name:"deselect",targetEl:me,originalEvt:t});else{if(ie.push(me),Gt({sortable:a,rootEl:o,name:"select",targetEl:me,originalEvt:t}),t.shiftKey&&en&&a.el.contains(en)){var d=Ee(en),v=Ee(me);if(~d&&~v&&d!==v){var h,b;for(v>d?(b=d,h=v):(b=v,h=d+1);b<h;b++)~ie.indexOf(s[b])||(ye(s[b],l.selectedClass,!0),ie.push(s[b]),Gt({sortable:a,rootEl:o,name:"select",targetEl:s[b],originalEvt:t}))}}else en=me;Je=u}if(Pt&&this.isMultiDrag){if((i[Re].options.sort||i!==o)&&ie.length>1){var m=Oe(me),g=Ee(me,":not(."+this.options.selectedClass+")");if(!tn&&l.animation&&(me.thisAnimationDuration=null),u.captureAnimationState(),!tn&&(l.animation&&(me.fromRect=m,ie.forEach(function(y){if(y.thisAnimationDuration=null,y!==me){var O=ze?Oe(y):m;y.fromRect=O,u.addAnimationState({target:y,rect:O})}})),Hn(),ie.forEach(function(y){s[g]?i.insertBefore(y,s[g]):i.appendChild(y),g++}),c===Ee(me))){var _=!1;ie.forEach(function(y){if(y.sortableIndex!==Ee(y)){_=!0;return}}),_&&f("update")}ie.forEach(function(y){Er(y)}),u.animateAll()}Je=u}(o===i||p&&p.lastPutMode!=="clone")&&He.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},nullingGlobal:function(){this.isMultiDrag=Pt=!1,He.length=0},destroyGlobal:function(){this._deselectMultiDrag(),le(document,"pointerup",this._deselectMultiDrag),le(document,"mouseup",this._deselectMultiDrag),le(document,"touchend",this._deselectMultiDrag),le(document,"keydown",this._checkKeyDown),le(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Pt!="undefined"&&Pt)&&Je===this.sortable&&!(n&&Ye(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ie.length;){var t=ie[0];ye(t,this.options.selectedClass,!1),ie.shift(),Gt({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)}},Ve(e,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[Re];!t||!t.options.multiDrag||~ie.indexOf(n)||(Je&&Je!==t&&(Je.multiDrag._deselectMultiDrag(),Je=t),ye(n,t.options.selectedClass,!0),ie.push(n))},deselect:function(n){var t=n.parentNode[Re],o=ie.indexOf(n);!t||!t.options.multiDrag||!~o||(ye(n,t.options.selectedClass,!1),ie.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return ie.forEach(function(i){t.push({multiDragElement:i,index:i.sortableIndex});var a;ze&&i!==me?a=-1:ze?a=Ee(i,":not(."+n.options.selectedClass+")"):a=Ee(i),o.push({multiDragElement:i,index:a})}),{items:zs(ie),clones:[].concat(He),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 gu(e,r){ie.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function Lo(e,r){He.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function Hn(){ie.forEach(function(e){e!==me&&e.parentNode&&e.parentNode.removeChild(e)})}ne.mount(new pu),ne.mount(Mr,$r);var bu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ne,MultiDrag:yu,Sortable:ne,Swap:vu}),_u=Zi(bu);(function(e,r){(function(t,o){e.exports=o(_u)})(typeof self!="undefined"?self:Ut,function(n){return function(t){var o={};function i(a){if(o[a])return o[a].exports;var f=o[a]={i:a,l:!1,exports:{}};return t[a].call(f.exports,f,f.exports,i),f.l=!0,f.exports}return i.m=t,i.c=o,i.d=function(a,f,c){i.o(a,f)||Object.defineProperty(a,f,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,f){if(f&1&&(a=i(a)),f&8||f&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),f&2&&typeof a!="string")for(var p in a)i.d(c,p,function(u){return a[u]}.bind(null,p));return c},i.n=function(a){var f=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(f,"a",f),f},i.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var a=i("2d00"),f=i("5ca1"),c=i("2aba"),p=i("32e9"),u=i("84f2"),l=i("41a0"),s=i("7f20"),d=i("38fd"),v=i("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),b="@@iterator",m="keys",g="values",_=function(){return this};t.exports=function(y,O,N,T,A,I,w){l(N,O,T);var E=function(k){if(!h&&k in R)return R[k];switch(k){case m:return function(){return new N(this,k)};case g:return function(){return new N(this,k)}}return function(){return new N(this,k)}},x=O+" Iterator",P=A==g,D=!1,R=y.prototype,B=R[v]||R[b]||A&&R[A],U=B||E(A),G=A?P?E("entries"):U:void 0,q=O=="Array"&&R.entries||B,$,S,C;if(q&&(C=d(q.call(new y)),C!==Object.prototype&&C.next&&(s(C,x,!0),!a&&typeof C[v]!="function"&&p(C,v,_))),P&&B&&B.name!==g&&(D=!0,U=function(){return B.call(this)}),(!a||w)&&(h||D||!R[v])&&p(R,v,U),u[O]=U,u[x]=_,A)if($={values:P?U:E(g),keys:I?U:E(m),entries:G},w)for(S in $)S in R||c(R,S,$[S]);else f(f.P+f.F*(h||D),O,$);return $}},"02f4":function(t,o,i){var a=i("4588"),f=i("be13");t.exports=function(c){return function(p,u){var l=String(f(p)),s=a(u),d=l.length,v,h;return s<0||s>=d?c?"":void 0:(v=l.charCodeAt(s),v<55296||v>56319||s+1===d||(h=l.charCodeAt(s+1))<56320||h>57343?c?l.charAt(s):v:c?l.slice(s,s+2):(v-55296<<10)+(h-56320)+65536)}}},"0390":function(t,o,i){var a=i("02f4")(!0);t.exports=function(f,c,p){return c+(p?a(f,c).length:1)}},"0bfb":function(t,o,i){var a=i("cb7c");t.exports=function(){var f=a(this),c="";return f.global&&(c+="g"),f.ignoreCase&&(c+="i"),f.multiline&&(c+="m"),f.unicode&&(c+="u"),f.sticky&&(c+="y"),c}},"0d58":function(t,o,i){var a=i("ce10"),f=i("e11e");t.exports=Object.keys||function(p){return a(p,f)}},"1495":function(t,o,i){var a=i("86cc"),f=i("cb7c"),c=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(u,l){f(u);for(var s=c(l),d=s.length,v=0,h;d>v;)a.f(u,h=s[v++],l[h]);return u}},"214f":function(t,o,i){i("b0c5");var a=i("2aba"),f=i("32e9"),c=i("79e5"),p=i("be13"),u=i("2b4c"),l=i("520a"),s=u("species"),d=!c(function(){var h=/./;return h.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(h,"$<a>")!=="7"}),v=function(){var h=/(?:)/,b=h.exec;h.exec=function(){return b.apply(this,arguments)};var m="ab".split(h);return m.length===2&&m[0]==="a"&&m[1]==="b"}();t.exports=function(h,b,m){var g=u(h),_=!c(function(){var I={};return I[g]=function(){return 7},""[h](I)!=7}),y=_?!c(function(){var I=!1,w=/a/;return w.exec=function(){return I=!0,null},h==="split"&&(w.constructor={},w.constructor[s]=function(){return w}),w[g](""),!I}):void 0;if(!_||!y||h==="replace"&&!d||h==="split"&&!v){var O=/./[g],N=m(p,g,""[h],function(w,E,x,P,D){return E.exec===l?_&&!D?{done:!0,value:O.call(E,x,P)}:{done:!0,value:w.call(x,E,P)}:{done:!1}}),T=N[0],A=N[1];a(String.prototype,h,T),f(RegExp.prototype,g,b==2?function(I,w){return A.call(I,this,w)}:function(I){return A.call(I,this)})}}},"230e":function(t,o,i){var a=i("d3f4"),f=i("7726").document,c=a(f)&&a(f.createElement);t.exports=function(p){return c?f.createElement(p):{}}},"23c6":function(t,o,i){var a=i("2d95"),f=i("2b4c")("toStringTag"),c=a(function(){return arguments}())=="Arguments",p=function(u,l){try{return u[l]}catch{}};t.exports=function(u){var l,s,d;return u===void 0?"Undefined":u===null?"Null":typeof(s=p(l=Object(u),f))=="string"?s:c?a(l):(d=a(l))=="Object"&&typeof l.callee=="function"?"Arguments":d}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var a=i("7726"),f=i("32e9"),c=i("69a8"),p=i("ca5a")("src"),u=i("fa5b"),l="toString",s=(""+u).split(l);i("8378").inspectSource=function(d){return u.call(d)},(t.exports=function(d,v,h,b){var m=typeof h=="function";m&&(c(h,"name")||f(h,"name",v)),d[v]!==h&&(m&&(c(h,p)||f(h,p,d[v]?""+d[v]:s.join(String(v)))),d===a?d[v]=h:b?d[v]?d[v]=h:f(d,v,h):(delete d[v],f(d,v,h)))})(Function.prototype,l,function(){return typeof this=="function"&&this[p]||u.call(this)})},"2aeb":function(t,o,i){var a=i("cb7c"),f=i("1495"),c=i("e11e"),p=i("613b")("IE_PROTO"),u=function(){},l="prototype",s=function(){var d=i("230e")("iframe"),v=c.length,h="<",b=">",m;for(d.style.display="none",i("fab2").appendChild(d),d.src="javascript:",m=d.contentWindow.document,m.open(),m.write(h+"script"+b+"document.F=Object"+h+"/script"+b),m.close(),s=m.F;v--;)delete s[l][c[v]];return s()};t.exports=Object.create||function(v,h){var b;return v!==null?(u[l]=a(v),b=new u,u[l]=null,b[p]=v):b=s(),h===void 0?b:f(b,h)}},"2b4c":function(t,o,i){var a=i("5537")("wks"),f=i("ca5a"),c=i("7726").Symbol,p=typeof c=="function",u=t.exports=function(l){return a[l]||(a[l]=p&&c[l]||(p?c:f)("Symbol."+l))};u.store=a},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var i={}.toString;t.exports=function(a){return i.call(a).slice(8,-1)}},"2fdb":function(t,o,i){var a=i("5ca1"),f=i("d2c8"),c="includes";a(a.P+a.F*i("5147")(c),"String",{includes:function(u){return!!~f(this,u,c).indexOf(u,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var a=i("86cc"),f=i("4630");t.exports=i("9e1e")?function(c,p,u){return a.f(c,p,f(1,u))}:function(c,p,u){return c[p]=u,c}},"38fd":function(t,o,i){var a=i("69a8"),f=i("4bf8"),c=i("613b")("IE_PROTO"),p=Object.prototype;t.exports=Object.getPrototypeOf||function(u){return u=f(u),a(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?p:null}},"41a0":function(t,o,i){var a=i("2aeb"),f=i("4630"),c=i("7f20"),p={};i("32e9")(p,i("2b4c")("iterator"),function(){return this}),t.exports=function(u,l,s){u.prototype=a(p,{next:f(1,s)}),c(u,l+" Iterator")}},"456d":function(t,o,i){var a=i("4bf8"),f=i("0d58");i("5eda")("keys",function(){return function(p){return f(a(p))}})},"4588":function(t,o){var i=Math.ceil,a=Math.floor;t.exports=function(f){return isNaN(f=+f)?0:(f>0?a:i)(f)}},"4630":function(t,o){t.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"4bf8":function(t,o,i){var a=i("be13");t.exports=function(f){return Object(a(f))}},"5147":function(t,o,i){var a=i("2b4c")("match");t.exports=function(f){var c=/./;try{"/./"[f](c)}catch{try{return c[a]=!1,!"/./"[f](c)}catch{}}return!0}},"520a":function(t,o,i){var a=i("0bfb"),f=RegExp.prototype.exec,c=String.prototype.replace,p=f,u="lastIndex",l=function(){var v=/a/,h=/b*/g;return f.call(v,"a"),f.call(h,"a"),v[u]!==0||h[u]!==0}(),s=/()??/.exec("")[1]!==void 0,d=l||s;d&&(p=function(h){var b=this,m,g,_,y;return s&&(g=new RegExp("^"+b.source+"$(?!\\s)",a.call(b))),l&&(m=b[u]),_=f.call(b,h),l&&_&&(b[u]=b.global?_.index+_[0].length:m),s&&_&&_.length>1&&c.call(_[0],g,function(){for(y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(_[y]=void 0)}),_}),t.exports=p},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var a=i("8378"),f=i("7726"),c="__core-js_shared__",p=f[c]||(f[c]={});(t.exports=function(u,l){return p[u]||(p[u]=l!==void 0?l:{})})("versions",[]).push({version:a.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,i){var a=i("7726"),f=i("8378"),c=i("32e9"),p=i("2aba"),u=i("9b43"),l="prototype",s=function(d,v,h){var b=d&s.F,m=d&s.G,g=d&s.S,_=d&s.P,y=d&s.B,O=m?a:g?a[v]||(a[v]={}):(a[v]||{})[l],N=m?f:f[v]||(f[v]={}),T=N[l]||(N[l]={}),A,I,w,E;m&&(h=v);for(A in h)I=!b&&O&&O[A]!==void 0,w=(I?O:h)[A],E=y&&I?u(w,a):_&&typeof w=="function"?u(Function.call,w):w,O&&p(O,A,w,d&s.U),N[A]!=w&&c(N,A,E),_&&T[A]!=w&&(T[A]=w)};a.core=f,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5eda":function(t,o,i){var a=i("5ca1"),f=i("8378"),c=i("79e5");t.exports=function(p,u){var l=(f.Object||{})[p]||Object[p],s={};s[p]=u(l),a(a.S+a.F*c(function(){l(1)}),"Object",s)}},"5f1b":function(t,o,i){var a=i("23c6"),f=RegExp.prototype.exec;t.exports=function(c,p){var u=c.exec;if(typeof u=="function"){var l=u.call(c,p);if(typeof l!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if(a(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return f.call(c,p)}},"613b":function(t,o,i){var a=i("5537")("keys"),f=i("ca5a");t.exports=function(c){return a[c]||(a[c]=f(c))}},"626a":function(t,o,i){var a=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(f){return a(f)=="String"?f.split(""):Object(f)}},"6762":function(t,o,i){var a=i("5ca1"),f=i("c366")(!0);a(a.P,"Array",{includes:function(p){return f(this,p,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var a=i("626a"),f=i("be13");t.exports=function(c){return a(f(c))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(a,f){return i.call(a,f)}},"6a99":function(t,o,i){var a=i("d3f4");t.exports=function(f,c){if(!a(f))return f;var p,u;if(c&&typeof(p=f.toString)=="function"&&!a(u=p.call(f))||typeof(p=f.valueOf)=="function"&&!a(u=p.call(f))||!c&&typeof(p=f.toString)=="function"&&!a(u=p.call(f)))return u;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var a=i("0d58"),f=i("2621"),c=i("52a7"),p=i("4bf8"),u=i("626a"),l=Object.assign;t.exports=!l||i("79e5")(function(){var s={},d={},v=Symbol(),h="abcdefghijklmnopqrst";return s[v]=7,h.split("").forEach(function(b){d[b]=b}),l({},s)[v]!=7||Object.keys(l({},d)).join("")!=h})?function(d,v){for(var h=p(d),b=arguments.length,m=1,g=f.f,_=c.f;b>m;)for(var y=u(arguments[m++]),O=g?a(y).concat(g(y)):a(y),N=O.length,T=0,A;N>T;)_.call(y,A=O[T++])&&(h[A]=y[A]);return h}:l},"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 a=i("4588"),f=Math.max,c=Math.min;t.exports=function(p,u){return p=a(p),p<0?f(p+u,0):c(p,u)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var a=i("86cc").f,f=i("69a8"),c=i("2b4c")("toStringTag");t.exports=function(p,u,l){p&&!f(p=l?p:p.prototype,c)&&a(p,c,{configurable:!0,value:u})}},"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 a=i("cb7c"),f=i("c69a"),c=i("6a99"),p=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(l,s,d){if(a(l),s=c(s,!0),a(d),f)try{return p(l,s,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(l[s]=d.value),l}},"9b43":function(t,o,i){var a=i("d8e8");t.exports=function(f,c,p){if(a(f),c===void 0)return f;switch(p){case 1:return function(u){return f.call(c,u)};case 2:return function(u,l){return f.call(c,u,l)};case 3:return function(u,l,s){return f.call(c,u,l,s)}}return function(){return f.apply(c,arguments)}}},"9c6c":function(t,o,i){var a=i("2b4c")("unscopables"),f=Array.prototype;f[a]==null&&i("32e9")(f,a,{}),t.exports=function(c){f[a][c]=!0}},"9def":function(t,o,i){var a=i("4588"),f=Math.min;t.exports=function(c){return c>0?f(a(c),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 a=i("cb7c"),f=i("4bf8"),c=i("9def"),p=i("4588"),u=i("0390"),l=i("5f1b"),s=Math.max,d=Math.min,v=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,m=function(g){return g===void 0?g:String(g)};i("214f")("replace",2,function(g,_,y,O){return[function(A,I){var w=g(this),E=A==null?void 0:A[_];return E!==void 0?E.call(A,w,I):y.call(String(w),A,I)},function(T,A){var I=O(y,T,this,A);if(I.done)return I.value;var w=a(T),E=String(this),x=typeof A=="function";x||(A=String(A));var P=w.global;if(P){var D=w.unicode;w.lastIndex=0}for(var R=[];;){var B=l(w,E);if(B===null||(R.push(B),!P))break;var U=String(B[0]);U===""&&(w.lastIndex=u(E,c(w.lastIndex),D))}for(var G="",q=0,$=0;$<R.length;$++){B=R[$];for(var S=String(B[0]),C=s(d(p(B.index),E.length),0),k=[],F=1;F<B.length;F++)k.push(m(B[F]));var j=B.groups;if(x){var L=[S].concat(k,C,E);j!==void 0&&L.push(j);var M=String(A.apply(void 0,L))}else M=N(S,E,C,k,j,A);C>=q&&(G+=E.slice(q,C)+M,q=C+S.length)}return G+E.slice(q)}];function N(T,A,I,w,E,x){var P=I+T.length,D=w.length,R=b;return E!==void 0&&(E=f(E),R=h),y.call(x,R,function(B,U){var G;switch(U.charAt(0)){case"$":return"$";case"&":return T;case"`":return A.slice(0,I);case"'":return A.slice(P);case"<":G=E[U.slice(1,-1)];break;default:var q=+U;if(q===0)return B;if(q>D){var $=v(q/10);return $===0?B:$<=D?w[$-1]===void 0?U.charAt(1):w[$-1]+U.charAt(1):B}G=w[q-1]}return G===void 0?"":G})}})},aae3:function(t,o,i){var a=i("d3f4"),f=i("2d95"),c=i("2b4c")("match");t.exports=function(p){var u;return a(p)&&((u=p[c])!==void 0?!!u:f(p)=="RegExp")}},ac6a:function(t,o,i){for(var a=i("cadf"),f=i("0d58"),c=i("2aba"),p=i("7726"),u=i("32e9"),l=i("84f2"),s=i("2b4c"),d=s("iterator"),v=s("toStringTag"),h=l.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},m=f(b),g=0;g<m.length;g++){var _=m[g],y=b[_],O=p[_],N=O&&O.prototype,T;if(N&&(N[d]||u(N,d,h),N[v]||u(N,v,_),l[_]=h,y))for(T in a)N[T]||c(N,T,a[T],!0)}},b0c5:function(t,o,i){var a=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},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 a=i("6821"),f=i("9def"),c=i("77f1");t.exports=function(p){return function(u,l,s){var d=a(u),v=f(d.length),h=c(s,v),b;if(p&&l!=l){for(;v>h;)if(b=d[h++],b!=b)return!0}else for(;v>h;h++)if((p||h in d)&&d[h]===l)return p||h||0;return!p&&-1}}},c649:function(t,o,i){(function(a){i.d(o,"c",function(){return d}),i.d(o,"a",function(){return l}),i.d(o,"b",function(){return c}),i.d(o,"d",function(){return s}),i("a481");function f(){return typeof window!="undefined"?window.console:a.console}var c=f();function p(v){var h=Object.create(null);return function(m){var g=h[m];return g||(h[m]=v(m))}}var u=/-(\w)/g,l=p(function(v){return v.replace(u,function(h,b){return b?b.toUpperCase():""})});function s(v){v.parentElement!==null&&v.parentElement.removeChild(v)}function d(v,h,b){var m=b===0?v.children[0]:v.children[b-1].nextSibling;v.insertBefore(h,m)}}).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,a=Math.random();t.exports=function(f){return"Symbol(".concat(f===void 0?"":f,")_",(++i+a).toString(36))}},cadf:function(t,o,i){var a=i("9c6c"),f=i("d53b"),c=i("84f2"),p=i("6821");t.exports=i("01f9")(Array,"Array",function(u,l){this._t=p(u),this._i=0,this._k=l},function(){var u=this._t,l=this._k,s=this._i++;return!u||s>=u.length?(this._t=void 0,f(1)):l=="keys"?f(0,s):l=="values"?f(0,u[s]):f(0,[s,u[s]])},"values"),c.Arguments=c.Array,a("keys"),a("values"),a("entries")},cb7c:function(t,o,i){var a=i("d3f4");t.exports=function(f){if(!a(f))throw TypeError(f+" is not an object!");return f}},ce10:function(t,o,i){var a=i("69a8"),f=i("6821"),c=i("c366")(!1),p=i("613b")("IE_PROTO");t.exports=function(u,l){var s=f(u),d=0,v=[],h;for(h in s)h!=p&&a(s,h)&&v.push(h);for(;l.length>d;)a(s,h=l[d++])&&(~c(v,h)||v.push(h));return v}},d2c8:function(t,o,i){var a=i("aae3"),f=i("be13");t.exports=function(c,p,u){if(a(p))throw TypeError("String#"+u+" doesn't accept regex!");return String(f(c))}},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,a){return{value:a,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 a=i("5ca1"),f=i("9def"),c=i("d2c8"),p="startsWith",u=""[p];a(a.P+a.F*i("5147")(p),"String",{startsWith:function(s){var d=c(this,s,p),v=f(Math.min(arguments.length>1?arguments[1]:void 0,d.length)),h=String(s);return u?u.call(d,h,v):d.slice(v,v+h.length)===h}})},f6fd:function(t,o){(function(i){var a="currentScript",f=i.getElementsByTagName("script");a in i||Object.defineProperty(i,a,{get:function(){try{throw new Error}catch(u){var c,p=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(u.stack)||[!1])[1];for(c in f)if(f[c].src==p||f[c].readyState=="interactive")return f[c];return null}}})})(document)},f751:function(t,o,i){var a=i("5ca1");a(a.S+a.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 a=i("7726").document;t.exports=a&&a.documentElement},fb15:function(t,o,i){if(i.r(o),typeof window!="undefined"){i("f6fd");var a;(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=a[1])}i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function f(S){if(Array.isArray(S))return S}function c(S,C){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var k=[],F=!0,j=!1,L=void 0;try{for(var M=S[Symbol.iterator](),H;!(F=(H=M.next()).done)&&(k.push(H.value),!(C&&k.length===C));F=!0);}catch(z){j=!0,L=z}finally{try{!F&&M.return!=null&&M.return()}finally{if(j)throw L}}return k}}function p(S,C){(C==null||C>S.length)&&(C=S.length);for(var k=0,F=new Array(C);k<C;k++)F[k]=S[k];return F}function u(S,C){if(!!S){if(typeof S=="string")return p(S,C);var k=Object.prototype.toString.call(S).slice(8,-1);if(k==="Object"&&S.constructor&&(k=S.constructor.name),k==="Map"||k==="Set")return Array.from(S);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return p(S,C)}}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(S,C){return f(S)||c(S,C)||u(S,C)||l()}i("6762"),i("2fdb");function d(S){if(Array.isArray(S))return p(S)}function v(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(S){return d(S)||v(S)||u(S)||h()}var m=i("a352"),g=i.n(m),_=i("c649");function y(S,C,k){return k===void 0||(S=S||{},S[C]=k),S}function O(S,C){return S.map(function(k){return k.elm}).indexOf(C)}function N(S,C,k,F){if(!S)return[];var j=S.map(function(H){return H.elm}),L=C.length-F,M=b(C).map(function(H,z){return z>=L?j.length:j.indexOf(H)});return k?M.filter(function(H){return H!==-1}):M}function T(S,C){var k=this;this.$nextTick(function(){return k.$emit(S.toLowerCase(),C)})}function A(S){var C=this;return function(k){C.realList!==null&&C["onDrag"+S](k),T.call(C,S,k)}}function I(S){return["transition-group","TransitionGroup"].includes(S)}function w(S){if(!S||S.length!==1)return!1;var C=s(S,1),k=C[0].componentOptions;return k?I(k.tag):!1}function E(S,C,k){return S[k]||(C[k]?C[k]():void 0)}function x(S,C,k){var F=0,j=0,L=E(C,k,"header");L&&(F=L.length,S=S?[].concat(b(L),b(S)):b(L));var M=E(C,k,"footer");return M&&(j=M.length,S=S?[].concat(b(S),b(M)):b(M)),{children:S,headerOffset:F,footerOffset:j}}function P(S,C){var k=null,F=function(Y,ee){k=y(k,Y,ee)},j=Object.keys(S).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,Y){return z[Y]=S[Y],z},{});if(F("attrs",j),!C)return k;var L=C.on,M=C.props,H=C.attrs;return F("on",L),F("props",M),Object.assign(k.attrs,H),k}var D=["Start","Add","Remove","Update","End"],R=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(D,R).map(function(S){return"on"+S}),U=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(C){return C}},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(C){var k=this.$slots.default;this.transitionMode=w(k);var F=x(k,this.$slots,this.$scopedSlots),j=F.children,L=F.headerOffset,M=F.footerOffset;this.headerOffset=L,this.footerOffset=M;var H=P(this.$attrs,this.componentData);return C(this.getTag(),H,j)},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 C=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 k={};D.forEach(function(L){k["on"+L]=A.call(C,L)}),R.forEach(function(L){k["on"+L]=T.bind(C,L)});var F=Object.keys(this.$attrs).reduce(function(L,M){return L[Object(_.a)(M)]=C.$attrs[M],L},{}),j=Object.assign({},this.options,F,k,{onMove:function(M,H){return C.onDragMove(M,H)}});!("draggable"in j)&&(j.draggable=">*"),this._sortable=new g.a(this.rootContainer,j),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(C){this.updateOptions(C)},deep:!0},$attrs:{handler:function(C){this.updateOptions(C)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var C=this._vnode.fnOptions;return C&&C.functional},getTag:function(){return this.tag||this.element},updateOptions:function(C){for(var k in C){var F=Object(_.a)(k);B.indexOf(F)===-1&&this._sortable.option(F,C[k])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var C=this.$slots.default;return this.transitionMode?C[0].child.$slots.default:C},computeIndexes:function(){var C=this;this.$nextTick(function(){C.visibleIndexes=N(C.getChildrenNodes(),C.rootContainer.children,C.transitionMode,C.footerOffset)})},getUnderlyingVm:function(C){var k=O(this.getChildrenNodes()||[],C);if(k===-1)return null;var F=this.realList[k];return{index:k,element:F}},getUnderlyingPotencialDraggableComponent:function(C){var k=C.__vue__;return!k||!k.$options||!I(k.$options._componentTag)?!("realList"in k)&&k.$children.length===1&&"realList"in k.$children[0]?k.$children[0]:k:k.$parent},emitChanges:function(C){var k=this;this.$nextTick(function(){k.$emit("change",C)})},alterList:function(C){if(this.list){C(this.list);return}var k=b(this.value);C(k),this.$emit("input",k)},spliceList:function(){var C=arguments,k=function(j){return j.splice.apply(j,b(C))};this.alterList(k)},updatePosition:function(C,k){var F=function(L){return L.splice(k,0,L.splice(C,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(C){var k=C.to,F=C.related,j=this.getUnderlyingPotencialDraggableComponent(k);if(!j)return{component:j};var L=j.realList,M={list:L,component:j};if(k!==F&&L&&j.getUnderlyingVm){var H=j.getUnderlyingVm(F);if(H)return Object.assign(H,M)}return M},getVmIndex:function(C){var k=this.visibleIndexes,F=k.length;return C>F-1?F:k[C]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(C){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var k=this.getChildrenNodes();k[C].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(C){this.context=this.getUnderlyingVm(C.item),C.item._underlying_vm_=this.clone(this.context.element),U=C.item},onDragAdd:function(C){var k=C.item._underlying_vm_;if(k!==void 0){Object(_.d)(C.item);var F=this.getVmIndex(C.newIndex);this.spliceList(F,0,k),this.computeIndexes();var j={element:k,newIndex:F};this.emitChanges({added:j})}},onDragRemove:function(C){if(Object(_.c)(this.rootContainer,C.item,C.oldIndex),C.pullMode==="clone"){Object(_.d)(C.clone);return}var k=this.context.index;this.spliceList(k,1);var F={element:this.context.element,oldIndex:k};this.resetTransitionData(k),this.emitChanges({removed:F})},onDragUpdate:function(C){Object(_.d)(C.item),Object(_.c)(C.from,C.item,C.oldIndex);var k=this.context.index,F=this.getVmIndex(C.newIndex);this.updatePosition(k,F);var j={element:this.context.element,oldIndex:k,newIndex:F};this.emitChanges({moved:j})},updateProperty:function(C,k){C.hasOwnProperty(k)&&(C[k]+=this.headerOffset)},computeFutureIndex:function(C,k){if(!C.element)return 0;var F=b(k.to.children).filter(function(H){return H.style.display!=="none"}),j=F.indexOf(k.related),L=C.component.getVmIndex(j),M=F.indexOf(U)!==-1;return M||!k.willInsertAfter?L:L+1},onDragMove:function(C,k){var F=this.move;if(!F||!this.realList)return!0;var j=this.getRelatedContextFromMoveEvent(C),L=this.context,M=this.computeFutureIndex(j,C);Object.assign(L,{futureIndex:M});var H=Object.assign({},C,{relatedContext:j,draggedContext:L});return F(H,k)},onDragEnd:function(){this.computeIndexes(),U=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var $=q;o.default=$}}).default})})(co);var Do=Ji(co.exports),Ou=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.prependLabel||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",{staticClass:"ui-desc__title"},[n("span",[e._v(e._s(t.title))])]):n("div",{staticClass:"ui-desc__title"},e._l(t.labels,function(i,a){return n("span",{key:a},[e._v(e._s(i.prependLabel||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.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o)}}},[n("div",{staticClass:"ui-desc__title"},e._l(t,function(i,a){return n("span",{key:a},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0),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")}}})])],1)}),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)},Eu=[],Kd="";const Su={props:{configKey:{type:String,default:""},current:{type:Array,default(){return[]}}},data(){return{showPropover:!1,recordData:{saves:[],temps:[]},changeLabelTitleShow:!1,changeLabelTitleVal:"",changeLabelTitleItem:{}}},async created(){let e=await this.$parent.getConfigCache(`SaveRecord_${this.configKey}`);const r=Object.entries(e).length?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(o){Array.isArray(o.value)?t.staticOptions.splice(0,t.staticOptions.length,...o.value.map((i,a)=>({label:o.valueLabel[a],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),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,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(),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)}},watch:{current:{handler(e){e.length&&this.recordData.temps.findIndex(n=>{const t=JSON.parse(JSON.stringify(n)).sort((i,a)=>i.label.localeCompare(a.label)),o=JSON.parse(JSON.stringify(e)).sort((i,a)=>i.label.localeCompare(a.label));return JSON.stringify(t)==JSON.stringify(o)})<0&&(this.recordData.temps.unshift(e),this.handelSaveRecord())},deep:!0}}},Ro={};var wu=Pe(Su,Ou,Eu,!1,xu,"71468c70",null,null);function xu(e){for(let r in Ro)this[r]=Ro[r]}var Au=function(){return wu.exports}();const Tu={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 Cu,Nu;const $o={};var Pu=Pe(Tu,Cu,Nu,!1,ku,null,null,null);function ku(e){for(let r in $o)this[r]=$o[r]}var Iu=function(){return Pu.exports}();function Lu(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,a=t.noLeading,f=a===void 0?!1:a,c=t.debounceMode,p=c===void 0?void 0:c,u,l=!1,s=0;function d(){u&&clearTimeout(u)}function v(b){var m=b||{},g=m.upcomingOnly,_=g===void 0?!1:g;d(),l=!_}function h(){for(var b=arguments.length,m=new Array(b),g=0;g<b;g++)m[g]=arguments[g];var _=this,y=Date.now()-s;if(l)return;function O(){s=Date.now(),r.apply(_,m)}function N(){u=void 0}!f&&p&&!u&&O(),d(),p===void 0&&y>e?f?(s=Date.now(),i||(u=setTimeout(p?N:O,e))):O():i!==!0&&(u=setTimeout(p?N:O,p===void 0?e-y:e))}return h.cancel=v,h}function Fr(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return Lu(e,r,{debounceMode:i!==!1})}function Mo(e=0,r=!0,n=null){var f;const t=n?n.map(c=>document.querySelector(c)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const c=document.querySelector(".ui-pagination"),p=document.querySelector(".ui-container__header"),u=(p==null?void 0:p.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),l=document.querySelector(".ui-table__tab");o.push(...[(c==null?void 0:c.offsetHeight)||0,(p==null?void 0:p.offsetHeight)||0,(u==null?void 0:u.offsetHeight)||0,(l==null?void 0:l.offsetHeight)||0].filter(s=>!!s))}let i=e+o.reduce((c,p)=>c+p,0),a=navigator.userAgent;for(let c=0;c<t.length;c++){let p=t[c];if(!p||p.className.indexOf("ui-table")>-1)continue;i+=p.offsetHeight;let u,l,s=(f=document==null?void 0:document.defaultView)==null?void 0:f.getComputedStyle(p);if(a.indexOf("Firefox")>-1)l=parseInt(s["margin-top"])+parseInt(s["margin-bottom"]);else if(a.indexOf("compatible")>-1&&a.indexOf("MSIE")>-1&&!(a.indexOf("Opera")>-1)){let d=p.currentStyle;l=parseInt(d.marginTop)+parseInt(d.marginBottom)}else if(u=s.margin.split(" "),u.length==1)l=parseInt(u[0])*2;else{const[d,v,h,b]=u;l=parseInt(h)?parseInt(d)+parseInt(h):parseInt(d)}i=l+i}return i=window.innerHeight-i,i}function Du(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var Ru=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"},[e.loadingConfig?n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-search--mask",attrs:{"element-loading-text":"\u52A0\u8F7D\u914D\u7F6E\u4E2D","element-loading-background":"rgba(255, 255, 255, 1)"}}):e._e(),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.prependLabel||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.prependLabel||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.prependLabel||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.prependLabel||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)},$u=[],Yd="";const Mu={name:"ComSearch",components:{draggable:Do,Record:Au,DefaultItem:Iu},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,localConfig:null,loadingConfig:!0}},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 _e(_e({},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 a,f;if(i.label&&!r(i.modelForm,i.type)){let c;i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var s;return((s=[...i.selectOption,...i.staticOptions].find(d=>d.value==l))==null?void 0:s.label)||l}):c=((a=[...i.selectOption,...i.staticOptions].find(l=>l.value==i.modelForm))==null?void 0:a.label)||i.modelForm:Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var s;return((s=i.staticOptions.find(d=>d.value==l))==null?void 0:s.label)||l}):c=((f=i.staticOptions.find(l=>l.value==i.modelForm))==null?void 0:f.label)||i.modelForm;let p,u;if(i.$slots.prepend){const l=i.$slots.prepend[0].componentOptions.propsData;p=l.value||l.model,l.options&&(u=l.options[p])}return[...o,{label:i.label,value:i.modelForm,valueLabel:c,prependValue:p,prependLabel:u}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(_e({},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 a=i.__vue__.label||i.__vue__.$children[0].label;this.checkItems.includes(a)?i.style.display="block":i.style.display="none"}catch{console.log(i.__vue__,i)}});const o=[];n.forEach(i=>{const{right:a}=i.getBoundingClientRect();a>t&&(i.className=`${i.className} ui-form__item--hide`,o.push(i))}),e!==!0&&(this.useConfig?this.hideItems=o.map(i=>this.childItems.find((a,f)=>{const c=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return a.$options.propsData.label==c.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};this.setConfigCache(`SearchCfg__${this.configKey}`,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 setConfigCache(e,r){if(!this.$UICONFIG.setCacheApi){localStorage.setItem(e,JSON.stringify(r));return}this.localConfig[e]=JSON.stringify(r),await this.$http.post(this.$UICONFIG.setCacheApi,{code:this.configKey,datas:this.localConfig})},async getConfigCache(e){if(!this.$UICONFIG.getCacheApi)return this.loadingConfig=!1,JSON.parse(localStorage.getItem(e)||"{}");this.loadingConfig=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getCacheApi,{code:this.configKey});return setTimeout(()=>{this.loadingConfig=!1},500),this.localConfig=Object.entries(r.data).length?r.data:{},JSON.parse(r.data[e]||"{}")}},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=await this.getConfigCache(`SearchCfg__${this.configKey}`);if(e.checkItems){await this.$nextTick();const r=this.sortItems.findIndex(n=>!e.sortItems.includes(n));if(r>-1){const n=this.sortItems[r];e.checkItems.push(n),e.sortItems.splice(r,0,n)}this.checkItems=e.checkItems.filter(n=>this.sortItems.includes(n)),this.sortItems=e.sortItems.filter(n=>this.sortItems.includes(n)),this.handleRenderConfig()}}else this.loadSearch=!1,this.handleLayoutItem();this.handleWindowResize=Fr(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await Du(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()}}},Fo={};var Fu=Pe(Mu,Ru,$u,!1,ju,"50c78b1d",null,null);function ju(e){for(let r in Fo)this[r]=Fo[r]}var zn=function(){return Fu.exports}();zn.install=e=>{e.component(zn.name,zn)};const jo=zn;var Bu=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 a=Object.getOwnPropertyDescriptor(r,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},Bo=typeof Symbol!="undefined"&&Symbol,qu=Bu,Uu=function(){return typeof Bo!="function"||typeof Symbol!="function"||typeof Bo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qu()},Hu="Function.prototype.bind called on incompatible ",jr=Array.prototype.slice,zu=Object.prototype.toString,Wu="[object Function]",Vu=function(r){var n=this;if(typeof n!="function"||zu.call(n)!==Wu)throw new TypeError(Hu+n);for(var t=jr.call(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,t.concat(jr.call(arguments)));return Object(u)===u?u:this}else return n.apply(r,t.concat(jr.call(arguments)))},a=Math.max(0,n.length-t.length),f=[],c=0;c<a;c++)f.push("$"+c);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var p=function(){};p.prototype=n.prototype,o.prototype=new p,p.prototype=null}return o},Gu=Vu,Br=Function.prototype.bind||Gu,Ku=Br,Yu=Ku.call(Function.call,Object.prototype.hasOwnProperty),pe,rn=SyntaxError,qo=Function,kt=TypeError,qr=function(e){try{return qo('"use strict"; return ('+e+").constructor;")()}catch{}},Et=Object.getOwnPropertyDescriptor;if(Et)try{Et({},"")}catch{Et=null}var Ur=function(){throw new kt},Xu=Et?function(){try{return arguments.callee,Ur}catch{try{return Et(arguments,"callee").get}catch{return Ur}}}():Ur,It=Uu(),ht=Object.getPrototypeOf||function(e){return e.__proto__},Lt={},Ju=typeof Uint8Array=="undefined"?pe:ht(Uint8Array),Dt={"%AggregateError%":typeof AggregateError=="undefined"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":It?ht([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Lt,"%AsyncGenerator%":Lt,"%AsyncGeneratorFunction%":Lt,"%AsyncIteratorPrototype%":Lt,"%Atomics%":typeof Atomics=="undefined"?pe:Atomics,"%BigInt%":typeof BigInt=="undefined"?pe:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?pe:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?pe:FinalizationRegistry,"%Function%":qo,"%GeneratorFunction%":Lt,"%Int8Array%":typeof Int8Array=="undefined"?pe:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?pe:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":It?ht(ht([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map=="undefined"?pe:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!It?pe:ht(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?pe:Promise,"%Proxy%":typeof Proxy=="undefined"?pe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?pe:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!It?pe:ht(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":It?ht(""[Symbol.iterator]()):pe,"%Symbol%":It?Symbol:pe,"%SyntaxError%":rn,"%ThrowTypeError%":Xu,"%TypedArray%":Ju,"%TypeError%":kt,"%Uint8Array%":typeof Uint8Array=="undefined"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?pe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?pe:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?pe:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?pe:WeakSet},Zu=function e(r){var n;if(r==="%AsyncFunction%")n=qr("async function () {}");else if(r==="%GeneratorFunction%")n=qr("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=qr("async function* () {}");else if(r==="%AsyncGenerator%"){var t=e("%AsyncGeneratorFunction%");t&&(n=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(n=ht(o.prototype))}return Dt[r]=n,n},Uo={"%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"]},Wn=Br,Vn=Yu,Qu=Wn.call(Function.call,Array.prototype.concat),ef=Wn.call(Function.apply,Array.prototype.splice),Ho=Wn.call(Function.call,String.prototype.replace),Gn=Wn.call(Function.call,String.prototype.slice),tf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,nf=/\\(\\)?/g,rf=function(r){var n=Gn(r,0,1),t=Gn(r,-1);if(n==="%"&&t!=="%")throw new rn("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new rn("invalid intrinsic syntax, expected opening `%`");var o=[];return Ho(r,tf,function(i,a,f,c){o[o.length]=f?Ho(c,nf,"$1"):a||i}),o},of=function(r,n){var t=r,o;if(Vn(Uo,t)&&(o=Uo[t],t="%"+o[0]+"%"),Vn(Dt,t)){var i=Dt[t];if(i===Lt&&(i=Zu(t)),typeof i=="undefined"&&!n)throw new kt("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:i}}throw new rn("intrinsic "+r+" does not exist!")},Hr=function(r,n){if(typeof r!="string"||r.length===0)throw new kt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new kt('"allowMissing" argument must be a boolean');var t=rf(r),o=t.length>0?t[0]:"",i=of("%"+o+"%",n),a=i.name,f=i.value,c=!1,p=i.alias;p&&(o=p[0],ef(t,Qu([0,1],p)));for(var u=1,l=!0;u<t.length;u+=1){var s=t[u],d=Gn(s,0,1),v=Gn(s,-1);if((d==='"'||d==="'"||d==="`"||v==='"'||v==="'"||v==="`")&&d!==v)throw new rn("property names with quotes must have matching quotes");if((s==="constructor"||!l)&&(c=!0),o+="."+s,a="%"+o+"%",Vn(Dt,a))f=Dt[a];else if(f!=null){if(!(s in f)){if(!n)throw new kt("base intrinsic for "+r+" exists, but the property is not available.");return}if(Et&&u+1>=t.length){var h=Et(f,s);l=!!h,l&&"get"in h&&!("originalValue"in h.get)?f=h.get:f=f[s]}else l=Vn(f,s),f=f[s];l&&!c&&(Dt[a]=f)}}return f},zo={exports:{}};(function(e){var r=Br,n=Hr,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),a=n("%Object.getOwnPropertyDescriptor%",!0),f=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}e.exports=function(l){var s=i(r,o,arguments);if(a&&f){var d=a(s,"length");d.configurable&&f(s,"length",{value:1+c(0,l.length-(arguments.length-1))})}return s};var p=function(){return i(r,t,arguments)};f?f(e.exports,"apply",{value:p}):e.exports.apply=p})(zo);var Wo=Hr,Vo=zo.exports,af=Vo(Wo("String.prototype.indexOf")),lf=function(r,n){var t=Wo(r,!!n);return typeof t=="function"&&af(r,".prototype.")>-1?Vo(t):t},sf={},uf=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:sf}),ff=Zi(uf),zr=typeof Map=="function"&&Map.prototype,Wr=Object.getOwnPropertyDescriptor&&zr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Kn=zr&&Wr&&typeof Wr.get=="function"?Wr.get:null,cf=zr&&Map.prototype.forEach,Vr=typeof Set=="function"&&Set.prototype,Gr=Object.getOwnPropertyDescriptor&&Vr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Yn=Vr&&Gr&&typeof Gr.get=="function"?Gr.get:null,df=Vr&&Set.prototype.forEach,hf=typeof WeakMap=="function"&&WeakMap.prototype,on=hf?WeakMap.prototype.has:null,pf=typeof WeakSet=="function"&&WeakSet.prototype,an=pf?WeakSet.prototype.has:null,vf=typeof WeakRef=="function"&&WeakRef.prototype,Go=vf?WeakRef.prototype.deref:null,mf=Boolean.prototype.valueOf,yf=Object.prototype.toString,gf=Function.prototype.toString,bf=String.prototype.match,Kr=String.prototype.slice,pt=String.prototype.replace,_f=String.prototype.toUpperCase,Ko=String.prototype.toLowerCase,Yo=RegExp.prototype.test,Xo=Array.prototype.concat,tt=Array.prototype.join,Of=Array.prototype.slice,Jo=Math.floor,Yr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xr=Object.getOwnPropertySymbols,Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Rt?"object":"symbol")?Symbol.toStringTag:null,Zo=Object.prototype.propertyIsEnumerable,Qo=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ea(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Yo.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Jo(-e):Jo(e);if(t!==e){var o=String(t),i=Kr.call(r,o.length+1);return pt.call(o,n,"$&_")+"."+pt.call(pt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return pt.call(r,n,"$&_")}var Zr=ff,ta=Zr.custom,na=oa(ta)?ta:null,Ef=function e(r,n,t,o){var i=n||{};if(vt(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(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 a=vt(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(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(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=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 la(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var c=String(r);return f?ea(r,c):c}if(typeof r=="bigint"){var p=String(r)+"n";return f?ea(r,p):p}var u=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=u&&u>0&&typeof r=="object")return Qr(r)?"[Array]":"[Object]";var l=Bf(i,t);if(typeof o=="undefined")o=[];else if(aa(o,r)>=0)return"[Circular]";function s(P,D,R){if(D&&(o=Of.call(o),o.push(D)),R){var B={depth:i.depth};return vt(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(P,B,t+1,o)}return e(P,i,t+1,o)}if(typeof r=="function"&&!ia(r)){var d=kf(r),v=Xn(r,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(v.length>0?" { "+tt.call(v,", ")+" }":"")}if(oa(r)){var h=Rt?pt.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jr.call(r);return typeof r=="object"&&!Rt?ln(h):h}if(Mf(r)){for(var b="<"+Ko.call(String(r.nodeName)),m=r.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+ra(Sf(m[g].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Ko.call(String(r.nodeName))+">",b}if(Qr(r)){if(r.length===0)return"[]";var _=Xn(r,s);return l&&!jf(_)?"["+ti(_,l)+"]":"[ "+tt.call(_,", ")+" ]"}if(xf(r)){var y=Xn(r,s);return!("cause"in Error.prototype)&&"cause"in r&&!Zo.call(r,"cause")?"{ ["+String(r)+"] "+tt.call(Xo.call("[cause]: "+s(r.cause),y),", ")+" }":y.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+tt.call(y,", ")+" }"}if(typeof r=="object"&&a){if(na&&typeof r[na]=="function"&&Zr)return Zr(r,{depth:u-t});if(a!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(If(r)){var O=[];return cf.call(r,function(P,D){O.push(s(D,r,!0)+" => "+s(P,r))}),sa("Map",Kn.call(r),O,l)}if(Rf(r)){var N=[];return df.call(r,function(P){N.push(s(P,r))}),sa("Set",Yn.call(r),N,l)}if(Lf(r))return ei("WeakMap");if($f(r))return ei("WeakSet");if(Df(r))return ei("WeakRef");if(Tf(r))return ln(s(Number(r)));if(Nf(r))return ln(s(Yr.call(r)));if(Cf(r))return ln(mf.call(r));if(Af(r))return ln(s(String(r)));if(!wf(r)&&!ia(r)){var T=Xn(r,s),A=Qo?Qo(r)===Object.prototype:r instanceof Object||r.constructor===Object,I=r instanceof Object?"":"null prototype",w=!A&&Me&&Object(r)===r&&Me in r?Kr.call(mt(r),8,-1):I?"Object":"",E=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",x=E+(w||I?"["+tt.call(Xo.call([],w||[],I||[]),": ")+"] ":"");return T.length===0?x+"{}":l?x+"{"+ti(T,l)+"}":x+"{ "+tt.call(T,", ")+" }"}return String(r)};function ra(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function Sf(e){return pt.call(String(e),/"/g,""")}function Qr(e){return mt(e)==="[object Array]"&&(!Me||!(typeof e=="object"&&Me in e))}function wf(e){return mt(e)==="[object Date]"&&(!Me||!(typeof e=="object"&&Me in e))}function ia(e){return mt(e)==="[object RegExp]"&&(!Me||!(typeof e=="object"&&Me in e))}function xf(e){return mt(e)==="[object Error]"&&(!Me||!(typeof e=="object"&&Me in e))}function Af(e){return mt(e)==="[object String]"&&(!Me||!(typeof e=="object"&&Me in e))}function Tf(e){return mt(e)==="[object Number]"&&(!Me||!(typeof e=="object"&&Me in e))}function Cf(e){return mt(e)==="[object Boolean]"&&(!Me||!(typeof e=="object"&&Me in e))}function oa(e){if(Rt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Jr)return!1;try{return Jr.call(e),!0}catch{}return!1}function Nf(e){if(!e||typeof e!="object"||!Yr)return!1;try{return Yr.call(e),!0}catch{}return!1}var Pf=Object.prototype.hasOwnProperty||function(e){return e in this};function vt(e,r){return Pf.call(e,r)}function mt(e){return yf.call(e)}function kf(e){if(e.name)return e.name;var r=bf.call(gf.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function aa(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 If(e){if(!Kn||!e||typeof e!="object")return!1;try{Kn.call(e);try{Yn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Lf(e){if(!on||!e||typeof e!="object")return!1;try{on.call(e,on);try{an.call(e,an)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Df(e){if(!Go||!e||typeof e!="object")return!1;try{return Go.call(e),!0}catch{}return!1}function Rf(e){if(!Yn||!e||typeof e!="object")return!1;try{Yn.call(e);try{Kn.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function $f(e){if(!an||!e||typeof e!="object")return!1;try{an.call(e,an);try{on.call(e,on)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Mf(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function la(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return la(Kr.call(e,0,r.maxStringLength),r)+t}var o=pt.call(pt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ff);return ra(o,"single",r)}function Ff(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":"")+_f.call(r.toString(16))}function ln(e){return"Object("+e+")"}function ei(e){return e+" { ? }"}function sa(e,r,n,t){var o=t?ti(n,t):tt.call(n,", ");return e+" ("+r+") {"+o+"}"}function jf(e){for(var r=0;r<e.length;r++)if(aa(e[r],`
|
|
26
|
+
`)>=0)return!1;return!0}function Bf(e,r){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=tt.call(Array(e.indent+1)," ");else return null;return{base:n,prev:tt.call(Array(r+1),n)}}function ti(e,r){if(e.length===0)return"";var n=`
|
|
27
|
+
`+r.prev+r.base;return n+tt.call(e,","+n)+`
|
|
28
|
+
`+r.prev}function Xn(e,r){var n=Qr(e),t=[];if(n){t.length=e.length;for(var o=0;o<e.length;o++)t[o]=vt(e,o)?r(e[o],e):""}var i=typeof Xr=="function"?Xr(e):[],a;if(Rt){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=i[f]}for(var c in e)!vt(e,c)||n&&String(Number(c))===c&&c<e.length||Rt&&a["$"+c]instanceof Symbol||(Yo.call(/[^\w$]/,c)?t.push(r(c,e)+": "+r(e[c],e)):t.push(c+": "+r(e[c],e)));if(typeof Xr=="function")for(var p=0;p<i.length;p++)Zo.call(e,i[p])&&t.push("["+r(i[p])+"]: "+r(e[i[p]],e));return t}var ni=Hr,$t=lf,qf=Ef,Uf=ni("%TypeError%"),Jn=ni("%WeakMap%",!0),Zn=ni("%Map%",!0),Hf=$t("WeakMap.prototype.get",!0),zf=$t("WeakMap.prototype.set",!0),Wf=$t("WeakMap.prototype.has",!0),Vf=$t("Map.prototype.get",!0),Gf=$t("Map.prototype.set",!0),Kf=$t("Map.prototype.has",!0),ri=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},Yf=function(e,r){var n=ri(e,r);return n&&n.value},Xf=function(e,r,n){var t=ri(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},Jf=function(e,r){return!!ri(e,r)},Zf=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new Uf("Side channel does not contain "+qf(i))},get:function(i){if(Jn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Hf(r,i)}else if(Zn){if(n)return Vf(n,i)}else if(t)return Yf(t,i)},has:function(i){if(Jn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Wf(r,i)}else if(Zn){if(n)return Kf(n,i)}else if(t)return Jf(t,i);return!1},set:function(i,a){Jn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new Jn),zf(r,i,a)):Zn?(n||(n=new Zn),Gf(n,i,a)):(t||(t={key:{},next:null}),Xf(t,i,a))}};return o},Qf=String.prototype.replace,ec=/%20/g,ii={RFC1738:"RFC1738",RFC3986:"RFC3986"},oi={default:ii.RFC3986,formatters:{RFC1738:function(e){return Qf.call(e,ec,"+")},RFC3986:function(e){return String(e)}},RFC1738:ii.RFC1738,RFC3986:ii.RFC3986},tc=oi,ai=Object.prototype.hasOwnProperty,St=Array.isArray,nt=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),nc=function(r){for(;r.length>1;){var n=r.pop(),t=n.obj[n.prop];if(St(t)){for(var o=[],i=0;i<t.length;++i)typeof t[i]!="undefined"&&o.push(t[i]);n.obj[n.prop]=o}}},ua=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},rc=function e(r,n,t){if(!n)return r;if(typeof n!="object"){if(St(r))r.push(n);else if(r&&typeof r=="object")(t&&(t.plainObjects||t.allowPrototypes)||!ai.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 St(r)&&!St(n)&&(o=ua(r,t)),St(r)&&St(n)?(n.forEach(function(i,a){if(ai.call(r,a)){var f=r[a];f&&typeof f=="object"&&i&&typeof i=="object"?r[a]=e(f,i,t):r.push(i)}else r[a]=i}),r):Object.keys(n).reduce(function(i,a){var f=n[a];return ai.call(i,a)?i[a]=e(i[a],f,t):i[a]=f,i},o)},ic=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},oc=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}},ac=function(r,n,t,o,i){if(r.length===0)return r;var a=r;if(typeof r=="symbol"?a=Symbol.prototype.toString.call(r):typeof r!="string"&&(a=String(r)),t==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var f="",c=0;c<a.length;++c){var p=a.charCodeAt(c);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===tc.RFC1738&&(p===40||p===41)){f+=a.charAt(c);continue}if(p<128){f=f+nt[p];continue}if(p<2048){f=f+(nt[192|p>>6]+nt[128|p&63]);continue}if(p<55296||p>=57344){f=f+(nt[224|p>>12]+nt[128|p>>6&63]+nt[128|p&63]);continue}c+=1,p=65536+((p&1023)<<10|a.charCodeAt(c)&1023),f+=nt[240|p>>18]+nt[128|p>>12&63]+nt[128|p>>6&63]+nt[128|p&63]}return f},lc=function(r){for(var n=[{obj:{o:r},prop:"o"}],t=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],f=Object.keys(a),c=0;c<f.length;++c){var p=f[c],u=a[p];typeof u=="object"&&u!==null&&t.indexOf(u)===-1&&(n.push({obj:a,prop:p}),t.push(u))}return nc(n),r},sc=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},uc=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},fc=function(r,n){return[].concat(r,n)},cc=function(r,n){if(St(r)){for(var t=[],o=0;o<r.length;o+=1)t.push(n(r[o]));return t}return n(r)},fa={arrayToObject:ua,assign:ic,combine:fc,compact:lc,decode:oc,encode:ac,isBuffer:uc,isRegExp:sc,maybeMap:cc,merge:rc},ca=Zf,li=fa,sn=oi,dc=Object.prototype.hasOwnProperty,da={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},at=Array.isArray,hc=String.prototype.split,pc=Array.prototype.push,ha=function(e,r){pc.apply(e,at(r)?r:[r])},vc=Date.prototype.toISOString,pa=sn.default,Le={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:li.encode,encodeValuesOnly:!1,format:pa,formatter:sn.formatters[pa],indices:!1,serializeDate:function(r){return vc.call(r)},skipNulls:!1,strictNullHandling:!1},mc=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},si={},yc=function e(r,n,t,o,i,a,f,c,p,u,l,s,d,v,h,b){for(var m=r,g=b,_=0,y=!1;(g=g.get(si))!==void 0&&!y;){var O=g.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");y=!0}typeof g.get(si)=="undefined"&&(_=0)}if(typeof c=="function"?m=c(n,m):m instanceof Date?m=l(m):t==="comma"&&at(m)&&(m=li.maybeMap(m,function(q){return q instanceof Date?l(q):q})),m===null){if(i)return f&&!v?f(n,Le.encoder,h,"key",s):n;m=""}if(mc(m)||li.isBuffer(m)){if(f){var N=v?n:f(n,Le.encoder,h,"key",s);if(t==="comma"&&v){for(var T=hc.call(String(m),","),A="",I=0;I<T.length;++I)A+=(I===0?"":",")+d(f(T[I],Le.encoder,h,"value",s));return[d(N)+(o&&at(m)&&T.length===1?"[]":"")+"="+A]}return[d(N)+"="+d(f(m,Le.encoder,h,"value",s))]}return[d(n)+"="+d(String(m))]}var w=[];if(typeof m=="undefined")return w;var E;if(t==="comma"&&at(m))E=[{value:m.length>0?m.join(",")||null:void 0}];else if(at(c))E=c;else{var x=Object.keys(m);E=p?x.sort(p):x}for(var P=o&&at(m)&&m.length===1?n+"[]":n,D=0;D<E.length;++D){var R=E[D],B=typeof R=="object"&&typeof R.value!="undefined"?R.value:m[R];if(!(a&&B===null)){var U=at(m)?typeof t=="function"?t(P,R):P:P+(u?"."+R:"["+R+"]");b.set(r,_);var G=ca();G.set(si,b),ha(w,e(B,U,t,o,i,a,f,c,p,u,l,s,d,v,h,G))}}return w},gc=function(r){if(!r)return Le;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||Le.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=sn.default;if(typeof r.format!="undefined"){if(!dc.call(sn.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=sn.formatters[t],i=Le.filter;return(typeof r.filter=="function"||at(r.filter))&&(i=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Le.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Le.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Le.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Le.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Le.encode,encoder:typeof r.encoder=="function"?r.encoder:Le.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Le.encodeValuesOnly,filter:i,format:t,formatter:o,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Le.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Le.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Le.strictNullHandling}},bc=function(e,r){var n=e,t=gc(r),o,i;typeof t.filter=="function"?(i=t.filter,n=i("",n)):at(t.filter)&&(i=t.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var f;r&&r.arrayFormat in da?f=r.arrayFormat:r&&"indices"in r?f=r.indices?"indices":"repeat":f="indices";var c=da[f];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=c==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var u=ca(),l=0;l<o.length;++l){var s=o[l];t.skipNulls&&n[s]===null||ha(a,yc(n[s],s,c,p,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,u))}var d=a.join(t.delimiter),v=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),d.length>0?v+d:""},Mt=fa,ui=Object.prototype.hasOwnProperty,_c=Array.isArray,ke={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Mt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Oc=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},va=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},Ec="utf8=%26%2310003%3B",Sc="utf8=%E2%9C%93",wc=function(r,n){var t={},o=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),f=-1,c,p=n.charset;if(n.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===Sc?p="utf-8":a[c]===Ec&&(p="iso-8859-1"),f=c,c=a.length);for(c=0;c<a.length;++c)if(c!==f){var u=a[c],l=u.indexOf("]="),s=l===-1?u.indexOf("="):l+1,d,v;s===-1?(d=n.decoder(u,ke.decoder,p,"key"),v=n.strictNullHandling?null:""):(d=n.decoder(u.slice(0,s),ke.decoder,p,"key"),v=Mt.maybeMap(va(u.slice(s+1),n),function(h){return n.decoder(h,ke.decoder,p,"value")})),v&&n.interpretNumericEntities&&p==="iso-8859-1"&&(v=Oc(v)),u.indexOf("[]=")>-1&&(v=_c(v)?[v]:v),ui.call(t,d)?t[d]=Mt.combine(t[d],v):t[d]=v}return t},xc=function(e,r,n,t){for(var o=t?r:va(r,n),i=e.length-1;i>=0;--i){var a,f=e[i];if(f==="[]"&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,p=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(p)&&f!==c&&String(p)===c&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(a=[],a[p]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},Ac=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,a=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,c=t.depth>0&&a.exec(i),p=c?i.slice(0,c.index):i,u=[];if(p){if(!t.plainObjects&&ui.call(Object.prototype,p)&&!t.allowPrototypes)return;u.push(p)}for(var l=0;t.depth>0&&(c=f.exec(i))!==null&&l<t.depth;){if(l+=1,!t.plainObjects&&ui.call(Object.prototype,c[1].slice(1,-1))&&!t.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+i.slice(c.index)+"]"),xc(u,n,t,o)}},Tc=function(r){if(!r)return ke;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"?ke.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?ke.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:ke.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:ke.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:ke.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:ke.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:ke.comma,decoder:typeof r.decoder=="function"?r.decoder:ke.decoder,delimiter:typeof r.delimiter=="string"||Mt.isRegExp(r.delimiter)?r.delimiter:ke.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:ke.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:ke.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:ke.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:ke.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:ke.strictNullHandling}},Cc=function(e,r){var n=Tc(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?wc(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),a=0;a<i.length;++a){var f=i[a],c=Ac(f,t[f],n,typeof e=="string");o=Mt.merge(o,c,n)}return n.allowSparse===!0?o:Mt.compact(o)},Nc=bc,Pc=Cc,kc=oi,Ic={formats:kc,parse:Pc,stringify:Nc};const ma=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},Lc=(e,r)=>{if(!ma(e,r))return{};const n=e.split(r),[t,o]=n,[i,a]=o.split("?");let f=a?Ic.parse(a):{};return{field:t,type:i,params:f}},Dc={functional:!0,props:{tableProp:{},row:{}},render:function(e,r){return e(...(t=>{const{tableProp:o,row:i}=t.props,{tablePreset:a}=t.parent.$UICONFIG,{separator:f,presetPropMap:c}=a,{field:p,type:u,params:l}=Lc(o,f);return c[u](i,{field:p,params:l,h:e})})(r))}};var Rc=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)},$c=[],Xd="";const Mc={components:{draggable:Do},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)=>_e(_e({},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()}},ya={};var Fc=Pe(Mc,Rc,$c,!1,jc,"34964627",null,null);function jc(e){for(let r in ya)this[r]=ya[r]}var Bc=function(){return Fc.exports}(),qc=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)},Uc=[],Jd="";const Hc={name:"ComTable",components:{ColumnConfig:Bc,TablePresetProp:Dc},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:ma,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=`${Mo()-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):e.id?this.tableData.filter(i=>i.id==e.id).forEach(i=>{this.$refs.myTable.toggleRowSelection(i)}):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=Fr(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()}},ga={};var zc=Pe(Hc,qc,Uc,!1,Wc,"2f5b2e68",null,null);function Wc(e){for(let r in ga)this[r]=ga[r]}var Qn=function(){return zc.exports}();Qn.install=e=>{e.component(Qn.name,Qn)};const ba=Qn;var Vc=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()},Gc=[],Zd="";const Kc={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)}},_a={};var Yc=Pe(Kc,Vc,Gc,!1,Xc,"52e1ecf6",null,null);function Xc(e){for(let r in _a)this[r]=_a[r]}var er=function(){return Yc.exports}();er.install=e=>{e.component(er.name,er)};const Oa=er;var Jc=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)},Zc=[],Qd="";const Qc={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||`${Mo(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:Fr(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},Ea={};var ed=Pe(Qc,Jc,Zc,!1,td,"c2fac2c4",null,null);function td(e){for(let r in Ea)this[r]=Ea[r]}var tr=function(){return ed.exports}();tr.install=e=>{e.component(tr.name,tr)};const Sa=tr;var wa={exports:{}};/*!
|
|
25
29
|
* Quill Editor v1.3.7
|
|
26
30
|
* https://quilljs.com/
|
|
27
31
|
* Copyright (c) 2014, Jason Chen
|
|
28
32
|
* Copyright (c) 2013, salesforce.com
|
|
29
|
-
*/(function(e,r){(function(t,o){e.exports=o()})(typeof self!="undefined"?self:
|
|
30
|
-
`;for(var
|
|
31
|
-
`)){var
|
|
32
|
-
`,
|
|
33
|
-
`),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,S){return q=q.split(M,!0),q.insertAt(0,S),S.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 v.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(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(w=(0,c.default)(w,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?w:x(E.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,S){var N=[],k=!0,F=!1,j=void 0;try{for(var L=M[Symbol.iterator](),$;!(k=($=L.next()).done)&&(N.push($.value),!(S&&N.length===S));k=!0);}catch(U){F=!0,j=U}finally{try{!k&&L.return&&L.return()}finally{if(F)throw j}}return N}return function(M,S){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return q(M,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function q(M,S){for(var N=0;N<S.length;N++){var k=S[N];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(M,k.key,k)}}return function(M,S,N){return S&&q(M.prototype,S),N&&q(M,N),M}}();o(50);var c=o(2),h=x(c),f=o(14),l=x(f),a=o(8),u=x(a),v=o(9),p=x(v),b=o(0),m=x(b),g=o(15),_=x(g),y=o(3),O=x(y),P=o(10),T=x(P),A=o(34),I=x(A);function x(q){return q&&q.__esModule?q:{default:q}}function E(q,M,S){return M in q?Object.defineProperty(q,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):q[M]=S,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(){d(q,null,[{key:"debug",value:function(S){S===!0&&(S="log"),T.default.level(S)}},{key:"find",value:function(S){return S.__quill||m.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&C.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,N){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var j=S.attrName||S.blotName;typeof j=="string"?this.register("formats/"+j,S,N):Object.keys(S).forEach(function(L){k.register(L,S[L],N)})}else this.imports[S]!=null&&!F&&C.warn("Overwriting "+S+" with",N),this.imports[S]=N,(S.startsWith("blots/")||S.startsWith("formats/"))&&N.blotName!=="abstract"?m.default.register(N):S.startsWith("modules")&&typeof N.register=="function"&&N.register()}}]);function q(M){var S=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 k=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 u.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.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(u.default.events.EDITOR_CHANGE,function(j){j===u.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(j,L){var $=S.selection.lastRange,U=$&&$.length===0?$.index:void 0;B.call(S,function(){return S.editor.update(null,L,U)},j)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+k+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(q,[{key:"addContainer",value:function(S){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var k=S;S=document.createElement("div"),S.classList.add(k)}return this.container.insertBefore(S,N),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,N,k){var F=this,j=H(S,N,k),L=s(j,4);return S=L[0],N=L[1],k=L[3],B.call(this,function(){return F.editor.deleteText(S,N)},k,S,-1*N)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,N){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;return B.call(this,function(){var j=k.getSelection(!0),L=new h.default;if(j==null)return L;if(m.default.query(S,m.default.Scope.BLOCK))L=k.editor.formatLine(j.index,j.length,E({},S,N));else{if(j.length===0)return k.selection.format(S,N),L;L=k.editor.formatText(j.index,j.length,E({},S,N))}return k.setSelection(j,u.default.sources.SILENT),L},F)}},{key:"formatLine",value:function(S,N,k,F,j){var L=this,$=void 0,U=H(S,N,k,F,j),z=s(U,4);return S=z[0],N=z[1],$=z[2],j=z[3],B.call(this,function(){return L.editor.formatLine(S,N,$)},j,S,0)}},{key:"formatText",value:function(S,N,k,F,j){var L=this,$=void 0,U=H(S,N,k,F,j),z=s(U,4);return S=z[0],N=z[1],$=z[2],j=z[3],B.call(this,function(){return L.editor.formatText(S,N,$)},j,S,0)}},{key:"getBounds",value:function(S){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=void 0;typeof S=="number"?k=this.selection.getBounds(S,N):k=this.selection.getBounds(S.index,S.length);var F=this.container.getBoundingClientRect();return{bottom:k.bottom-F.top,height:k.height,left:k.left-F.left,right:k.right-F.left,top:k.top-F.top,width:k.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=H(S,N),F=s(k,2);return S=F[0],N=F[1],this.editor.getContents(S,N)}},{key:"getFormat",value:function(){var S=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 S=="number"?this.editor.getFormat(S,N):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=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 S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,N)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=H(S,N),F=s(k,2);return S=F[0],N=F[1],this.editor.getText(S,N)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,N,k){var F=this,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return F.editor.insertEmbed(S,N,k)},j,S)}},{key:"insertText",value:function(S,N,k,F,j){var L=this,$=void 0,U=H(S,0,k,F,j),z=s(U,4);return S=z[0],$=z[2],j=z[3],B.call(this,function(){return L.editor.insertText(S,N,$)},j,S,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(S,N,k){this.clipboard.dangerouslyPasteHTML(S,N,k)}},{key:"removeFormat",value:function(S,N,k){var F=this,j=H(S,N,k),L=s(j,4);return S=L[0],N=L[1],k=L[3],B.call(this,function(){return F.editor.removeFormat(S,N)},k,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var N=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return B.call(this,function(){S=new h.default(S);var F=N.getLength(),j=N.editor.deleteText(0,F),L=N.editor.applyDelta(S),$=L.ops[L.ops.length-1];$!=null&&typeof $.insert=="string"&&$.insert[$.insert.length-1]===`
|
|
34
|
-
`&&(N.editor.deleteText(N.getLength()-1,1),L.delete(1));var U=j.compose(L);return U},k)}},{key:"setSelection",value:function(S,N,k){if(S==null)this.selection.setRange(null,N||q.sources.API);else{var F=H(S,N,k),j=s(F,4);S=j[0],N=j[1],k=j[3],this.selection.setRange(new g.Range(S,N),k),k!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API,k=new h.default().insert(S);return this.setContents(k,N)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,N=this.scroll.update(S);return this.selection.update(S),N}},{key:"updateContents",value:function(S){var N=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u.default.sources.API;return B.call(this,function(){return S=new h.default(S),N.editor.applyDelta(S,k)},k,!0)}}]),q}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=u.default.events,D.sources=u.default.sources,D.version="1.3.7",D.imports={delta:h.default,parchment:m.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 S=(0,O.default)(!0,{},M.theme.DEFAULTS);[S,M].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(j){F.modules[j]===!0&&(F.modules[j]={})})});var N=Object.keys(S.modules).concat(Object.keys(M.modules)),k=N.reduce(function(F,j){var L=D.import("modules/"+j);return L==null?C.error("Cannot load "+j+" module. Are you sure you registered it?"):F[j]=L.DEFAULTS||{},F},{});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:k},S,M),["bounds","container","scrollingContainer"].forEach(function(F){typeof M[F]=="string"&&(M[F]=document.querySelector(M[F]))}),M.modules=Object.keys(M.modules).reduce(function(F,j){return M.modules[j]&&(F[j]=M.modules[j]),F},{}),M}function B(q,M,S,N){if(this.options.strict&&!this.isEnabled()&&M===u.default.sources.USER)return new h.default;var k=S==null?null:this.getSelection(),F=this.editor.delta,j=q();if(k!=null&&(S===!0&&(S=k.index),N==null?k=G(k,j,M):N!==0&&(k=G(k,S,N,M)),this.setSelection(k,u.default.sources.SILENT)),j.length()>0){var L,$=[u.default.events.TEXT_CHANGE,j,F,M];if((L=this.emitter).emit.apply(L,[u.default.events.EDITOR_CHANGE].concat($)),M!==u.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,$)}}return j}function H(q,M,S,N,k){var F={};return typeof q.index=="number"&&typeof q.length=="number"?typeof M!="number"?(k=N,N=S,S=M,M=q.length,q=q.index):(M=q.length,q=q.index):typeof M!="number"&&(k=N,N=S,S=M,M=0),(typeof S=="undefined"?"undefined":i(S))==="object"?(F=S,k=N):typeof S=="string"&&(N!=null?F[S]=N:k=S),k=k||u.default.sources.API,[q,M,F,k]}function G(q,M,S,N){if(q==null)return null;var k=void 0,F=void 0;if(M instanceof h.default){var j=[q.index,q.index+q.length].map(function(z){return M.transformPosition(z,N!==u.default.sources.USER)}),L=s(j,2);k=L[0],F=L[1]}else{var $=[q.index,q.index+q.length].map(function(z){return z<M||z===M&&N===u.default.sources.USER?z:S>=0?z+S:Math.max(M,z+S)}),U=s($,2);k=U[0],F=U[1]}return new g.Range(k,F-k)}t.expandConfig=R,t.overload=H,t.default=D},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var P=y.get;return P===void 0?void 0:P.call(_)}},d=o(7),c=l(d),h=o(0),f=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function a(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function u(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function v(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){v(m,b);function m(){return a(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"formatAt",value:function(_,y,O,P){if(m.compare(this.statics.blotName,O)<0&&f.default.query(O,f.default.Scope.BLOT)){var T=this.isolate(_,y);P&&T.wrap(O,P)}else s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,_,y,O,P)}},{key:"optimize",value:function(_){if(s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(_,y){var O=m.order.indexOf(_),P=m.order.indexOf(y);return O>=0||P>=0?O-P:_===y?0:_<y?-1:1}}]),m}(f.default.Inline);p.allowedChildren=[p,f.default.Embed,c.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=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default.Text);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function g(_,y){for(var O=0;O<y.length;O++){var P=y[O];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(_,P.key,P)}}return function(_,y,O){return y&&g(_.prototype,y),O&&g(_,O),_}}(),s=function g(_,y,O){_===null&&(_=Function.prototype);var P=Object.getOwnPropertyDescriptor(_,y);if(P===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:g(T,y,O)}else{if("value"in P)return P.value;var A=P.get;return A===void 0?void 0:A.call(O)}},d=o(54),c=l(d),h=o(10),f=l(h);function l(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 u(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function v(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,f.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(g){document.addEventListener(g,function(){for(var _=arguments.length,y=Array(_),O=0;O<_;O++)y[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(P){if(P.__quill&&P.__quill.emitter){var T;(T=P.__quill.emitter).handleDOM.apply(T,y)}})})});var m=function(g){v(_,g);function _(){a(this,_);var y=u(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return y.listeners={},y.on("error",p.error),y}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 P=arguments.length,T=Array(P>1?P-1:0),A=1;A<P;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(I){var x=I.node,E=I.handler;(O.target===x||x.contains(O.target))&&E.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,P,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:P,handler:T})}}]),_}(c.default);m.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"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(d,c){if(!(d instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function d(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,d),this.quill=c,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 d(h){if(i.indexOf(h)<=i.indexOf(s)){for(var f,l=arguments.length,a=Array(l>1?l-1:0),u=1;u<l;u++)a[u-1]=arguments[u];(f=console)[h].apply(f,a)}}function c(h){return i.reduce(function(f,l){return f[l]=d.bind(console,l,h),f},{})}d.level=c.level=function(h){s=h},t.default=c},function(n,t,o){var i=Array.prototype.slice,s=o(52),d=o(53),c=n.exports=function(a,u,v){return v||(v={}),a===u?!0:a instanceof Date&&u instanceof Date?a.getTime()===u.getTime():!a||!u||typeof a!="object"&&typeof u!="object"?v.strict?a===u:a==u:l(a,u,v)};function h(a){return a==null}function f(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 l(a,u,v){var p,b;if(h(a)||h(u)||a.prototype!==u.prototype)return!1;if(d(a))return d(u)?(a=i.call(a),u=i.call(u),c(a,u,v)):!1;if(f(a)){if(!f(u)||a.length!==u.length)return!1;for(p=0;p<a.length;p++)if(a[p]!==u[p])return!1;return!0}try{var m=s(a),g=s(u)}catch{return!1}if(m.length!=g.length)return!1;for(m.sort(),g.sort(),p=m.length-1;p>=0;p--)if(m[p]!=g[p])return!1;for(p=m.length-1;p>=0;p--)if(b=m[p],!c(a[b],u[b],v))return!1;return typeof a==typeof u}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function d(c,h,f){f===void 0&&(f={}),this.attrName=c,this.keyName=h;var l=i.Scope.TYPE&i.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&i.Scope.LEVEL|l:this.scope=i.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return d.keys=function(c){return[].map.call(c.attributes,function(h){return h.name})},d.prototype.add=function(c,h){return this.canAdd(c,h)?(c.setAttribute(this.keyName,h),!0):!1},d.prototype.canAdd=function(c,h){var f=i.query(c,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},d.prototype.remove=function(c){c.removeAttribute(this.keyName)},d.prototype.value=function(c){var h=c.getAttribute(this.keyName);return this.canAdd(c,h)&&h?h:""},d}();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 E=[],w=!0,C=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(w=(B=R.next()).done)&&(E.push(B.value),!(x&&E.length===x));w=!0);}catch(H){C=!0,D=H}finally{try{!w&&R.return&&R.return()}finally{if(C)throw D}}return E}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 E=0;E<x.length;E++){var w=x[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(I,w.key,w)}}return function(I,x,E){return x&&A(I.prototype,x),E&&A(I,E),I}}(),d=function A(I,x,E){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,E)}else{if("value"in w)return w.value;var D=w.get;return D===void 0?void 0:D.call(E)}},c=o(2),h=g(c),f=o(0),l=g(f),a=o(4),u=g(a),v=o(6),p=g(v),b=o(7),m=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 y(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 P=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I}(p.default);P.blotName="code",P.tagName="CODE";var T=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return s(I,[{key:"delta",value:function(){var E=this,w=this.domNode.textContent;return w.endsWith(`
|
|
35
|
-
`)&&(
|
|
36
|
-
`).reduce(function(
|
|
37
|
-
`,E.formats())},new
|
|
38
|
-
`)?E:E+1}},{key:"newlineIndex",value:function(E){var
|
|
39
|
-
`);var
|
|
40
|
-
`);return
|
|
33
|
+
*/(function(e,r){(function(t,o){e.exports=o()})(typeof self!="undefined"?self:Ut,function(){return function(n){var t={};function o(i){if(t[i])return t[i].exports;var a=t[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=t,o.d=function(i,a,f){o.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:f})},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=109)}([function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(17),a=o(18),f=o(19),c=o(45),p=o(46),u=o(47),l=o(48),s=o(49),d=o(12),v=o(32),h=o(33),b=o(31),m=o(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:i.default,Format:a.default,Leaf:f.default,Embed:l.default,Scroll:c.default,Block:u.default,Inline:p.default,Text:s.default,Attributor:{Attribute:d.default,Class:v.default,Style:h.default,Store:b.default}};t.default=g},function(n,t,o){var i=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var _ in g)g.hasOwnProperty(_)&&(m[_]=g[_])};return function(m,g){b(m,g);function _(){this.constructor=m}m.prototype=g===null?Object.create(g):(_.prototype=g.prototype,new _)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=function(b){i(m,b);function m(g){var _=this;return g="[Parchment] "+g,_=b.call(this,g)||this,_.message=g,_.name=_.constructor.name,_}return m}(Error);t.ParchmentError=a;var f={},c={},p={},u={};t.DATA_KEY="__blot";var l;(function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"})(l=t.Scope||(t.Scope={}));function s(b,m){var g=v(b);if(g==null)throw new a("Unable to create "+b+" blot");var _=g,y=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:_.create(m);return new _(y,m)}t.create=s;function d(b,m){return m===void 0&&(m=!1),b==null?null:b[t.DATA_KEY]!=null?b[t.DATA_KEY].blot:m?d(b.parentNode,m):null}t.find=d;function v(b,m){m===void 0&&(m=l.ANY);var g;if(typeof b=="string")g=u[b]||f[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)g=u.text;else if(typeof b=="number")b&l.LEVEL&l.BLOCK?g=u.block:b&l.LEVEL&l.INLINE&&(g=u.inline);else if(b instanceof HTMLElement){var _=(b.getAttribute("class")||"").split(/\s+/);for(var y in _)if(g=c[_[y]],g)break;g=g||p[b.tagName]}return g==null?null:m&l.LEVEL&g.scope&&m&l.TYPE&g.scope?g:null}t.query=v;function h(){for(var b=[],m=0;m<arguments.length;m++)b[m]=arguments[m];if(b.length>1)return b.map(function(y){return h(y)});var g=b[0];if(typeof g.blotName!="string"&&typeof g.attrName!="string")throw new a("Invalid definition");if(g.blotName==="abstract")throw new a("Cannot register abstract class");if(u[g.blotName||g.attrName]=g,typeof g.keyName=="string")f[g.keyName]=g;else if(g.className!=null&&(c[g.className]=g),g.tagName!=null){Array.isArray(g.tagName)?g.tagName=g.tagName.map(function(y){return y.toUpperCase()}):g.tagName=g.tagName.toUpperCase();var _=Array.isArray(g.tagName)?g.tagName:[g.tagName];_.forEach(function(y){(p[y]==null||g.className==null)&&(p[y]=g)})}return g}t.register=h},function(n,t,o){var i=o(51),a=o(11),f=o(3),c=o(20),p=String.fromCharCode(0),u=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};u.prototype.insert=function(l,s){var d={};return l.length===0?this:(d.insert=l,s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(d.attributes=s),this.push(d))},u.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},u.prototype.retain=function(l,s){if(l<=0)return this;var d={retain:l};return s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(d.attributes=s),this.push(d)},u.prototype.push=function(l){var s=this.ops.length,d=this.ops[s-1];if(l=f(!0,{},l),typeof d=="object"){if(typeof l.delete=="number"&&typeof d.delete=="number")return this.ops[s-1]={delete:d.delete+l.delete},this;if(typeof d.delete=="number"&&l.insert!=null&&(s-=1,d=this.ops[s-1],typeof d!="object"))return this.ops.unshift(l),this;if(a(l.attributes,d.attributes)){if(typeof l.insert=="string"&&typeof d.insert=="string")return this.ops[s-1]={insert:d.insert+l.insert},typeof l.attributes=="object"&&(this.ops[s-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof d.retain=="number")return this.ops[s-1]={retain:d.retain+l.retain},typeof l.attributes=="object"&&(this.ops[s-1].attributes=l.attributes),this}}return s===this.ops.length?this.ops.push(l):this.ops.splice(s,0,l),this},u.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},u.prototype.filter=function(l){return this.ops.filter(l)},u.prototype.forEach=function(l){this.ops.forEach(l)},u.prototype.map=function(l){return this.ops.map(l)},u.prototype.partition=function(l){var s=[],d=[];return this.forEach(function(v){var h=l(v)?s:d;h.push(v)}),[s,d]},u.prototype.reduce=function(l,s){return this.ops.reduce(l,s)},u.prototype.changeLength=function(){return this.reduce(function(l,s){return s.insert?l+c.length(s):s.delete?l-s.delete:l},0)},u.prototype.length=function(){return this.reduce(function(l,s){return l+c.length(s)},0)},u.prototype.slice=function(l,s){l=l||0,typeof s!="number"&&(s=1/0);for(var d=[],v=c.iterator(this.ops),h=0;h<s&&v.hasNext();){var b;h<l?b=v.next(l-h):(b=v.next(s-h),d.push(b)),h+=c.length(b)}return new u(d)},u.prototype.compose=function(l){var s=c.iterator(this.ops),d=c.iterator(l.ops),v=[],h=d.peek();if(h!=null&&typeof h.retain=="number"&&h.attributes==null){for(var b=h.retain;s.peekType()==="insert"&&s.peekLength()<=b;)b-=s.peekLength(),v.push(s.next());h.retain-b>0&&d.next(h.retain-b)}for(var m=new u(v);s.hasNext()||d.hasNext();)if(d.peekType()==="insert")m.push(d.next());else if(s.peekType()==="delete")m.push(s.next());else{var g=Math.min(s.peekLength(),d.peekLength()),_=s.next(g),y=d.next(g);if(typeof y.retain=="number"){var O={};typeof _.retain=="number"?O.retain=g:O.insert=_.insert;var N=c.attributes.compose(_.attributes,y.attributes,typeof _.retain=="number");if(N&&(O.attributes=N),m.push(O),!d.hasNext()&&a(m.ops[m.ops.length-1],O)){var T=new u(s.rest());return m.concat(T).chop()}}else typeof y.delete=="number"&&typeof _.retain=="number"&&m.push(y)}return m.chop()},u.prototype.concat=function(l){var s=new u(this.ops.slice());return l.ops.length>0&&(s.push(l.ops[0]),s.ops=s.ops.concat(l.ops.slice(1))),s},u.prototype.diff=function(l,s){if(this.ops===l.ops)return new u;var d=[this,l].map(function(g){return g.map(function(_){if(_.insert!=null)return typeof _.insert=="string"?_.insert:p;var y=g===l?"on":"with";throw new Error("diff() called "+y+" non-document")}).join("")}),v=new u,h=i(d[0],d[1],s),b=c.iterator(this.ops),m=c.iterator(l.ops);return h.forEach(function(g){for(var _=g[1].length;_>0;){var y=0;switch(g[0]){case i.INSERT:y=Math.min(m.peekLength(),_),v.push(m.next(y));break;case i.DELETE:y=Math.min(_,b.peekLength()),b.next(y),v.delete(y);break;case i.EQUAL:y=Math.min(b.peekLength(),m.peekLength(),_);var O=b.next(y),N=m.next(y);a(O.insert,N.insert)?v.retain(y,c.attributes.diff(O.attributes,N.attributes)):v.push(N).delete(y);break}_-=y}}),v.chop()},u.prototype.eachLine=function(l,s){s=s||`
|
|
34
|
+
`;for(var d=c.iterator(this.ops),v=new u,h=0;d.hasNext();){if(d.peekType()!=="insert")return;var b=d.peek(),m=c.length(b)-d.peekLength(),g=typeof b.insert=="string"?b.insert.indexOf(s,m)-m:-1;if(g<0)v.push(d.next());else if(g>0)v.push(d.next(g));else{if(l(v,d.next(1).attributes||{},h)===!1)return;h+=1,v=new u}}v.length()>0&&l(v,{},h)},u.prototype.transform=function(l,s){if(s=!!s,typeof l=="number")return this.transformPosition(l,s);for(var d=c.iterator(this.ops),v=c.iterator(l.ops),h=new u;d.hasNext()||v.hasNext();)if(d.peekType()==="insert"&&(s||v.peekType()!=="insert"))h.retain(c.length(d.next()));else if(v.peekType()==="insert")h.push(v.next());else{var b=Math.min(d.peekLength(),v.peekLength()),m=d.next(b),g=v.next(b);if(m.delete)continue;g.delete?h.push(g):h.retain(b,c.attributes.transform(m.attributes,g.attributes,s))}return h.chop()},u.prototype.transformPosition=function(l,s){s=!!s;for(var d=c.iterator(this.ops),v=0;d.hasNext()&&v<=l;){var h=d.peekLength(),b=d.peekType();if(d.next(),b==="delete"){l-=Math.min(h,l-v);continue}else b==="insert"&&(v<l||!s)&&(l+=h);v+=h}return l},n.exports=u},function(n,t){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c=function(d){return typeof Array.isArray=="function"?Array.isArray(d):i.call(d)==="[object Array]"},p=function(d){if(!d||i.call(d)!=="[object Object]")return!1;var v=o.call(d,"constructor"),h=d.constructor&&d.constructor.prototype&&o.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!v&&!h)return!1;var b;for(b in d);return typeof b=="undefined"||o.call(d,b)},u=function(d,v){a&&v.name==="__proto__"?a(d,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):d[v.name]=v.newValue},l=function(d,v){if(v==="__proto__")if(o.call(d,v)){if(f)return f(d,v).value}else return;return d[v]};n.exports=function s(){var d,v,h,b,m,g,_=arguments[0],y=1,O=arguments.length,N=!1;for(typeof _=="boolean"&&(N=_,_=arguments[1]||{},y=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});y<O;++y)if(d=arguments[y],d!=null)for(v in d)h=l(_,v),b=l(d,v),_!==b&&(N&&b&&(p(b)||(m=c(b)))?(m?(m=!1,g=h&&c(h)?h:[]):g=h&&p(h)?h:{},u(_,{name:v,newValue:s(N,g,b)})):typeof b!="undefined"&&u(_,{name:v,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 E(x,P){for(var D=0;D<P.length;D++){var R=P[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,P,D){return P&&E(x.prototype,P),D&&E(x,D),x}}(),a=function E(x,P,D){x===null&&(x=Function.prototype);var R=Object.getOwnPropertyDescriptor(x,P);if(R===void 0){var B=Object.getPrototypeOf(x);return B===null?void 0:E(B,P,D)}else{if("value"in R)return R.value;var U=R.get;return U===void 0?void 0:U.call(D)}},f=o(3),c=_(f),p=o(2),u=_(p),l=o(0),s=_(l),d=o(16),v=_(d),h=o(6),b=_(h),m=o(7),g=_(m);function _(E){return E&&E.__esModule?E:{default:E}}function y(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function O(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function N(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var T=1,A=function(E){N(x,E);function x(){return y(this,x),O(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return i(x,[{key:"attach",value:function(){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(D,R){var B=s.default.query(D,s.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,R)}},{key:"formatAt",value:function(D,R,B,U){this.format(B,U)}},{key:"insertAt",value:function(D,R,B){if(typeof R=="string"&&R.endsWith(`
|
|
35
|
+
`)){var U=s.default.create(I.blotName);this.parent.insertBefore(U,D===0?this:this.next),U.insertAt(0,R.slice(0,-1))}else a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,D,R,B)}}]),x}(s.default.Embed);A.scope=s.default.Scope.BLOCK_BLOT;var I=function(E){N(x,E);function x(P){y(this,x);var D=O(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P));return D.cache={},D}return i(x,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(D,R){return R.length()===0?D:D.insert(R.value(),w(R))},new u.default).insert(`
|
|
36
|
+
`,w(this))),this.cache.delta}},{key:"deleteAt",value:function(D,R){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"deleteAt",this).call(this,D,R),this.cache={}}},{key:"formatAt",value:function(D,R,B,U){R<=0||(s.default.query(B,s.default.Scope.BLOCK)?D+R===this.length()&&this.format(B,U):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,D,Math.min(R,this.length()-D-1),B,U),this.cache={})}},{key:"insertAt",value:function(D,R,B){if(B!=null)return a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,D,R,B);if(R.length!==0){var U=R.split(`
|
|
37
|
+
`),G=U.shift();G.length>0&&(D<this.length()-1||this.children.tail==null?a(x.prototype.__proto__||Object.getPrototypeOf(x.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;U.reduce(function($,S){return q=q.split($,!0),q.insertAt(0,S),S.length},D+G.length)}}},{key:"insertBefore",value:function(D,R){var B=this.children.head;a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,D,R),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(D,R){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"moveChildren",this).call(this,D,R),this.cache={}}},{key:"optimize",value:function(D){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,D),this.cache={}}},{key:"path",value:function(D){return a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"path",this).call(this,D,!0)}},{key:"removeChild",value:function(D){a(x.prototype.__proto__||Object.getPrototypeOf(x.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 U=a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"split",this).call(this,D,R);return this.cache={},U}}}]),x}(s.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[b.default,s.default.Embed,g.default];function w(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(x=(0,c.default)(x,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?x:w(E.parent,x)}t.bubbleFormats=w,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},a=function(){function q($,S){var C=[],k=!0,F=!1,j=void 0;try{for(var L=$[Symbol.iterator](),M;!(k=(M=L.next()).done)&&(C.push(M.value),!(S&&C.length===S));k=!0);}catch(H){F=!0,j=H}finally{try{!k&&L.return&&L.return()}finally{if(F)throw j}}return C}return function($,S){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function q($,S){for(var C=0;C<S.length;C++){var k=S[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty($,k.key,k)}}return function($,S,C){return S&&q($.prototype,S),C&&q($,C),$}}();o(50);var c=o(2),p=w(c),u=o(14),l=w(u),s=o(8),d=w(s),v=o(9),h=w(v),b=o(0),m=w(b),g=o(15),_=w(g),y=o(3),O=w(y),N=o(10),T=w(N),A=o(34),I=w(A);function w(q){return q&&q.__esModule?q:{default:q}}function E(q,$,S){return $ in q?Object.defineProperty(q,$,{value:S,enumerable:!0,configurable:!0,writable:!0}):q[$]=S,q}function x(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}var P=(0,T.default)("quill"),D=function(){f(q,null,[{key:"debug",value:function(S){S===!0&&(S="log"),T.default.level(S)}},{key:"find",value:function(S){return S.__quill||m.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&P.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var j=S.attrName||S.blotName;typeof j=="string"?this.register("formats/"+j,S,C):Object.keys(S).forEach(function(L){k.register(L,S[L],C)})}else this.imports[S]!=null&&!F&&P.warn("Overwriting "+S+" with",C),this.imports[S]=C,(S.startsWith("blots/")||S.startsWith("formats/"))&&C.blotName!=="abstract"?m.default.register(C):S.startsWith("modules")&&typeof C.register=="function"&&C.register()}}]);function q($){var S=this,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(x(this,q),this.options=R($,C),this.container=this.options.container,this.container==null)return P.error("Invalid Quill container",$);this.options.debug&&q.debug(this.options.debug);var k=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 d.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.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(d.default.events.EDITOR_CHANGE,function(j){j===d.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(d.default.events.SCROLL_UPDATE,function(j,L){var M=S.selection.lastRange,H=M&&M.length===0?M.index:void 0;B.call(S,function(){return S.editor.update(null,L,H)},j)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+k+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return f(q,[{key:"addContainer",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var k=S;S=document.createElement("div"),S.classList.add(k)}return this.container.insertBefore(S,C),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,C,k){var F=this,j=U(S,C,k),L=a(j,4);return S=L[0],C=L[1],k=L[3],B.call(this,function(){return F.editor.deleteText(S,C)},k,S,-1*C)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.default.sources.API;return B.call(this,function(){var j=k.getSelection(!0),L=new p.default;if(j==null)return L;if(m.default.query(S,m.default.Scope.BLOCK))L=k.editor.formatLine(j.index,j.length,E({},S,C));else{if(j.length===0)return k.selection.format(S,C),L;L=k.editor.formatText(j.index,j.length,E({},S,C))}return k.setSelection(j,d.default.sources.SILENT),L},F)}},{key:"formatLine",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,C,k,F,j),z=a(H,4);return S=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatLine(S,C,M)},j,S,0)}},{key:"formatText",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,C,k,F,j),z=a(H,4);return S=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatText(S,C,M)},j,S,0)}},{key:"getBounds",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=void 0;typeof S=="number"?k=this.selection.getBounds(S,C):k=this.selection.getBounds(S.index,S.length);var F=this.container.getBoundingClientRect();return{bottom:k.bottom-F.top,height:k.height,left:k.left-F.left,right:k.right-F.left,top:k.top-F.top,width:k.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=U(S,C),F=a(k,2);return S=F[0],C=F[1],this.editor.getContents(S,C)}},{key:"getFormat",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof S=="number"?this.editor.getFormat(S,C):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,C)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=U(S,C),F=a(k,2);return S=F[0],C=F[1],this.editor.getText(S,C)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,C,k){var F=this,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return F.editor.insertEmbed(S,C,k)},j,S)}},{key:"insertText",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,0,k,F,j),z=a(H,4);return S=z[0],M=z[2],j=z[3],B.call(this,function(){return L.editor.insertText(S,C,M)},j,S,C.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(S,C,k){this.clipboard.dangerouslyPasteHTML(S,C,k)}},{key:"removeFormat",value:function(S,C,k){var F=this,j=U(S,C,k),L=a(j,4);return S=L[0],C=L[1],k=L[3],B.call(this,function(){return F.editor.removeFormat(S,C)},k,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var C=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return B.call(this,function(){S=new p.default(S);var F=C.getLength(),j=C.editor.deleteText(0,F),L=C.editor.applyDelta(S),M=L.ops[L.ops.length-1];M!=null&&typeof M.insert=="string"&&M.insert[M.insert.length-1]===`
|
|
38
|
+
`&&(C.editor.deleteText(C.getLength()-1,1),L.delete(1));var H=j.compose(L);return H},k)}},{key:"setSelection",value:function(S,C,k){if(S==null)this.selection.setRange(null,C||q.sources.API);else{var F=U(S,C,k),j=a(F,4);S=j[0],C=j[1],k=j[3],this.selection.setRange(new g.Range(S,C),k),k!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API,k=new p.default().insert(S);return this.setContents(k,C)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.default.sources.USER,C=this.scroll.update(S);return this.selection.update(S),C}},{key:"updateContents",value:function(S){var C=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return B.call(this,function(){return S=new p.default(S),C.editor.applyDelta(S,k)},k,!0)}}]),q}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=d.default.events,D.sources=d.default.sources,D.version="1.3.7",D.imports={delta:p.default,parchment:m.default,"core/module":h.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 S=(0,O.default)(!0,{},$.theme.DEFAULTS);[S,$].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(j){F.modules[j]===!0&&(F.modules[j]={})})});var C=Object.keys(S.modules).concat(Object.keys($.modules)),k=C.reduce(function(F,j){var L=D.import("modules/"+j);return L==null?P.error("Cannot load "+j+" module. Are you sure you registered it?"):F[j]=L.DEFAULTS||{},F},{});return $.modules!=null&&$.modules.toolbar&&$.modules.toolbar.constructor!==Object&&($.modules.toolbar={container:$.modules.toolbar}),$=(0,O.default)(!0,{},D.DEFAULTS,{modules:k},S,$),["bounds","container","scrollingContainer"].forEach(function(F){typeof $[F]=="string"&&($[F]=document.querySelector($[F]))}),$.modules=Object.keys($.modules).reduce(function(F,j){return $.modules[j]&&(F[j]=$.modules[j]),F},{}),$}function B(q,$,S,C){if(this.options.strict&&!this.isEnabled()&&$===d.default.sources.USER)return new p.default;var k=S==null?null:this.getSelection(),F=this.editor.delta,j=q();if(k!=null&&(S===!0&&(S=k.index),C==null?k=G(k,j,$):C!==0&&(k=G(k,S,C,$)),this.setSelection(k,d.default.sources.SILENT)),j.length()>0){var L,M=[d.default.events.TEXT_CHANGE,j,F,$];if((L=this.emitter).emit.apply(L,[d.default.events.EDITOR_CHANGE].concat(M)),$!==d.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,M)}}return j}function U(q,$,S,C,k){var F={};return typeof q.index=="number"&&typeof q.length=="number"?typeof $!="number"?(k=C,C=S,S=$,$=q.length,q=q.index):($=q.length,q=q.index):typeof $!="number"&&(k=C,C=S,S=$,$=0),(typeof S=="undefined"?"undefined":i(S))==="object"?(F=S,k=C):typeof S=="string"&&(C!=null?F[S]=C:k=S),k=k||d.default.sources.API,[q,$,F,k]}function G(q,$,S,C){if(q==null)return null;var k=void 0,F=void 0;if($ instanceof p.default){var j=[q.index,q.index+q.length].map(function(z){return $.transformPosition(z,C!==d.default.sources.USER)}),L=a(j,2);k=L[0],F=L[1]}else{var M=[q.index,q.index+q.length].map(function(z){return z<$||z===$&&C===d.default.sources.USER?z:S>=0?z+S:Math.max($,z+S)}),H=a(M,2);k=H[0],F=H[1]}return new g.Range(k,F-k)}t.expandConfig=R,t.overload=U,t.default=D},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(7),c=l(f),p=o(0),u=l(p);function l(b){return b&&b.__esModule?b:{default:b}}function s(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function d(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function v(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){v(m,b);function m(){return s(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"formatAt",value:function(_,y,O,N){if(m.compare(this.statics.blotName,O)<0&&u.default.query(O,u.default.Scope.BLOT)){var T=this.isolate(_,y);N&&T.wrap(O,N)}else a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,_,y,O,N)}},{key:"optimize",value:function(_){if(a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(_,y){var O=m.order.indexOf(_),N=m.order.indexOf(y);return O>=0||N>=0?O-N:_===y?0:_<y?-1:1}}]),m}(u.default.Inline);h.allowedChildren=[h,u.default.Embed,c.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=h},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function p(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),p(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default.Text);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function g(_,y){for(var O=0;O<y.length;O++){var N=y[O];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}return function(_,y,O){return y&&g(_.prototype,y),O&&g(_,O),_}}(),a=function g(_,y,O){_===null&&(_=Function.prototype);var N=Object.getOwnPropertyDescriptor(_,y);if(N===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:g(T,y,O)}else{if("value"in N)return N.value;var A=N.get;return A===void 0?void 0:A.call(O)}},f=o(54),c=l(f),p=o(10),u=l(p);function l(g){return g&&g.__esModule?g:{default:g}}function s(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function d(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function v(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 h=(0,u.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(g){document.addEventListener(g,function(){for(var _=arguments.length,y=Array(_),O=0;O<_;O++)y[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(N){if(N.__quill&&N.__quill.emitter){var T;(T=N.__quill.emitter).handleDOM.apply(T,y)}})})});var m=function(g){v(_,g);function _(){s(this,_);var y=d(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return y.listeners={},y.on("error",h.error),y}return i(_,[{key:"emit",value:function(){h.log.apply(h,arguments),a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var N=arguments.length,T=Array(N>1?N-1:0),A=1;A<N;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(I){var w=I.node,E=I.handler;(O.target===w||w.contains(O.target))&&E.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,N,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:N,handler:T})}}]),_}(c.default);m.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"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function f(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,f),this.quill=c,this.options=p};a.DEFAULTS={},t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],a="warn";function f(p){if(i.indexOf(p)<=i.indexOf(a)){for(var u,l=arguments.length,s=Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];(u=console)[p].apply(u,s)}}function c(p){return i.reduce(function(u,l){return u[l]=f.bind(console,l,p),u},{})}f.level=c.level=function(p){a=p},t.default=c},function(n,t,o){var i=Array.prototype.slice,a=o(52),f=o(53),c=n.exports=function(s,d,v){return v||(v={}),s===d?!0:s instanceof Date&&d instanceof Date?s.getTime()===d.getTime():!s||!d||typeof s!="object"&&typeof d!="object"?v.strict?s===d:s==d:l(s,d,v)};function p(s){return s==null}function u(s){return!(!s||typeof s!="object"||typeof s.length!="number"||typeof s.copy!="function"||typeof s.slice!="function"||s.length>0&&typeof s[0]!="number")}function l(s,d,v){var h,b;if(p(s)||p(d)||s.prototype!==d.prototype)return!1;if(f(s))return f(d)?(s=i.call(s),d=i.call(d),c(s,d,v)):!1;if(u(s)){if(!u(d)||s.length!==d.length)return!1;for(h=0;h<s.length;h++)if(s[h]!==d[h])return!1;return!0}try{var m=a(s),g=a(d)}catch{return!1}if(m.length!=g.length)return!1;for(m.sort(),g.sort(),h=m.length-1;h>=0;h--)if(m[h]!=g[h])return!1;for(h=m.length-1;h>=0;h--)if(b=m[h],!c(s[b],d[b],v))return!1;return typeof s==typeof d}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=function(){function f(c,p,u){u===void 0&&(u={}),this.attrName=c,this.keyName=p;var l=i.Scope.TYPE&i.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&i.Scope.LEVEL|l:this.scope=i.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return f.keys=function(c){return[].map.call(c.attributes,function(p){return p.name})},f.prototype.add=function(c,p){return this.canAdd(c,p)?(c.setAttribute(this.keyName,p),!0):!1},f.prototype.canAdd=function(c,p){var u=i.query(c,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof p=="string"?this.whitelist.indexOf(p.replace(/["']/g,""))>-1:this.whitelist.indexOf(p)>-1},f.prototype.remove=function(c){c.removeAttribute(this.keyName)},f.prototype.value=function(c){var p=c.getAttribute(this.keyName);return this.canAdd(c,p)&&p?p:""},f}();t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function A(I,w){var E=[],x=!0,P=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(x=(B=R.next()).done)&&(E.push(B.value),!(w&&E.length===w));x=!0);}catch(U){P=!0,D=U}finally{try{!x&&R.return&&R.return()}finally{if(P)throw D}}return E}return function(I,w){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function A(I,w){for(var E=0;E<w.length;E++){var x=w[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(I,x.key,x)}}return function(I,w,E){return w&&A(I.prototype,w),E&&A(I,E),I}}(),f=function A(I,w,E){I===null&&(I=Function.prototype);var x=Object.getOwnPropertyDescriptor(I,w);if(x===void 0){var P=Object.getPrototypeOf(I);return P===null?void 0:A(P,w,E)}else{if("value"in x)return x.value;var D=x.get;return D===void 0?void 0:D.call(E)}},c=o(2),p=g(c),u=o(0),l=g(u),s=o(4),d=g(s),v=o(6),h=g(v),b=o(7),m=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 y(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 N=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I}(h.default);N.blotName="code",N.tagName="CODE";var T=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"delta",value:function(){var E=this,x=this.domNode.textContent;return x.endsWith(`
|
|
39
|
+
`)&&(x=x.slice(0,-1)),x.split(`
|
|
40
|
+
`).reduce(function(P,D){return P.insert(D).insert(`
|
|
41
|
+
`,E.formats())},new p.default)}},{key:"format",value:function(E,x){if(!(E===this.statics.blotName&&x)){var P=this.descendant(m.default,this.length()-1),D=i(P,1),R=D[0];R!=null&&R.deleteAt(R.length()-1,1),f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"format",this).call(this,E,x)}}},{key:"formatAt",value:function(E,x,P,D){if(x!==0&&!(l.default.query(P,l.default.Scope.BLOCK)==null||P===this.statics.blotName&&D===this.statics.formats(this.domNode))){var R=this.newlineIndex(E);if(!(R<0||R>=E+x)){var B=this.newlineIndex(E,!0)+1,U=R-B+1,G=this.isolate(B,U),q=G.next;G.format(P,D),q instanceof I&&q.formatAt(0,E-B+x-U,P,D)}}}},{key:"insertAt",value:function(E,x,P){if(P==null){var D=this.descendant(m.default,E),R=i(D,2),B=R[0],U=R[1];B.insertAt(U,x)}}},{key:"length",value:function(){var E=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
42
|
+
`)?E:E+1}},{key:"newlineIndex",value:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(x)return this.domNode.textContent.slice(0,E).lastIndexOf(`
|
|
43
|
+
`);var P=this.domNode.textContent.slice(E).indexOf(`
|
|
44
|
+
`);return P>-1?E+P:-1}},{key:"optimize",value:function(E){this.domNode.textContent.endsWith(`
|
|
41
45
|
`)||this.appendChild(l.default.create("text",`
|
|
42
|
-
`)),
|
|
46
|
+
`)),f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,E);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===x.statics.formats(x.domNode)&&(x.optimize(E),x.moveChildren(this),x.remove())}},{key:"replace",value:function(E){f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,E),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(x){var P=l.default.find(x);P==null?x.parentNode.removeChild(x):P instanceof l.default.Embed?P.remove():P.unwrap()})}}],[{key:"create",value:function(E){var x=f(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,E);return x.setAttribute("spellcheck",!1),x}},{key:"formats",value:function(){return!0}}]),I}(d.default);T.blotName="code-block",T.tagName="PRE",T.TAB=" ",t.Code=N,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},a=function(){function q($,S){var C=[],k=!0,F=!1,j=void 0;try{for(var L=$[Symbol.iterator](),M;!(k=(M=L.next()).done)&&(C.push(M.value),!(S&&C.length===S));k=!0);}catch(H){F=!0,j=H}finally{try{!k&&L.return&&L.return()}finally{if(F)throw j}}return C}return function($,S){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function q($,S){for(var C=0;C<S.length;C++){var k=S[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty($,k.key,k)}}return function($,S,C){return S&&q($.prototype,S),C&&q($,C),$}}(),c=o(2),p=x(c),u=o(20),l=x(u),s=o(0),d=x(s),v=o(13),h=x(v),b=o(24),m=x(b),g=o(4),_=x(g),y=o(16),O=x(y),N=o(21),T=x(N),A=o(11),I=x(A),w=o(3),E=x(w);function x(q){return q&&q.__esModule?q:{default:q}}function P(q,$,S){return $ in q?Object.defineProperty(q,$,{value:S,enumerable:!0,configurable:!0,writable:!0}):q[$]=S,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 f(q,[{key:"applyDelta",value:function(S){var C=this,k=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),S=G(S),S.reduce(function(j,L){var M=L.retain||L.delete||L.insert.length||1,H=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
|
|
43
47
|
`)&&k&&(k=!1,z=z.slice(0,-1)),j>=F&&!z.endsWith(`
|
|
44
|
-
`)&&(k=!0),
|
|
48
|
+
`)&&(k=!0),C.scroll.insertAt(j,z);var Y=C.scroll.line(j),ee=a(Y,2),re=ee[0],ae=ee[1],de=(0,E.default)({},(0,g.bubbleFormats)(re));if(re instanceof _.default){var ve=re.descendant(d.default.Leaf,ae),qe=a(ve,1),Ce=qe[0];de=(0,E.default)(de,(0,g.bubbleFormats)(Ce))}H=l.default.attributes.diff(de,H)||{}}else if(i(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return j;C.scroll.insertAt(j,W,L.insert[W])}F+=M}return Object.keys(H).forEach(function(K){C.scroll.formatAt(j,M,K,H[K])}),j+M},0),S.reduce(function(j,L){return typeof L.delete=="number"?(C.scroll.deleteAt(j,L.delete),j):j+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(S)}},{key:"deleteText",value:function(S,C){return this.scroll.deleteAt(S,C),this.update(new p.default().retain(S).delete(C))}},{key:"formatLine",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(j){if(!(k.scroll.whitelist!=null&&!k.scroll.whitelist[j])){var L=k.scroll.lines(S,Math.max(C,1)),M=C;L.forEach(function(H){var z=H.length();if(!(H instanceof h.default))H.format(j,F[j]);else{var Y=S-H.offset(k.scroll),ee=H.newlineIndex(Y+M)-Y+1;H.formatAt(Y,ee,j,F[j])}M-=z})}}),this.scroll.optimize(),this.update(new p.default().retain(S).retain(C,(0,T.default)(F)))}},{key:"formatText",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(j){k.scroll.formatAt(S,C,j,F[j])}),this.update(new p.default().retain(S).retain(C,(0,T.default)(F)))}},{key:"getContents",value:function(S,C){return this.delta.slice(S,S+C)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(S,C){return S.concat(C.delta())},new p.default)}},{key:"getFormat",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=[],F=[];C===0?this.scroll.path(S).forEach(function(L){var M=a(L,1),H=M[0];H instanceof _.default?k.push(H):H instanceof d.default.Leaf&&F.push(H)}):(k=this.scroll.lines(S,C),F=this.scroll.descendants(d.default.Leaf,S,C));var j=[k,F].map(function(L){if(L.length===0)return{};for(var M=(0,g.bubbleFormats)(L.shift());Object.keys(M).length>0;){var H=L.shift();if(H==null)return M;M=U((0,g.bubbleFormats)(H),M)}return M});return E.default.apply(E.default,j)}},{key:"getText",value:function(S,C){return this.getContents(S,C).filter(function(k){return typeof k.insert=="string"}).map(function(k){return k.insert}).join("")}},{key:"insertEmbed",value:function(S,C,k){return this.scroll.insertAt(S,C,k),this.update(new p.default().retain(S).insert(P({},C,k)))}},{key:"insertText",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C=C.replace(/\r\n/g,`
|
|
45
49
|
`).replace(/\r/g,`
|
|
46
|
-
`),this.scroll.insertAt(S,
|
|
47
|
-
`));var
|
|
50
|
+
`),this.scroll.insertAt(S,C),Object.keys(F).forEach(function(j){k.scroll.formatAt(S,C.length,j,F[j])}),this.update(new p.default().retain(S).insert(C,(0,T.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var S=this.scroll.children.head;return S.statics.blotName!==_.default.blotName||S.children.length>1?!1:S.children.head instanceof O.default}},{key:"removeFormat",value:function(S,C){var k=this.getText(S,C),F=this.scroll.line(S+C),j=a(F,2),L=j[0],M=j[1],H=0,z=new p.default;L!=null&&(L instanceof h.default?H=L.newlineIndex(M)-M+1:H=L.length()-M,z=L.delta().slice(M,M+H-1).insert(`
|
|
51
|
+
`));var Y=this.getContents(S,C+H),ee=Y.diff(new p.default().insert(k).concat(z)),re=new p.default().retain(S).concat(ee);return this.applyDelta(re)}},{key:"update",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(C.length===1&&C[0].type==="characterData"&&C[0].target.data.match(R)&&d.default.find(C[0].target)){var j=d.default.find(C[0].target),L=(0,g.bubbleFormats)(j),M=j.offset(this.scroll),H=C[0].oldValue.replace(m.default.CONTENTS,""),z=new p.default().insert(H),Y=new p.default().insert(j.value()),ee=new p.default().retain(M).concat(z.diff(Y,k));S=ee.reduce(function(re,ae){return ae.insert?re.insert(ae.insert,L):re.push(ae)},new p.default),this.delta=F.compose(S)}else this.delta=this.getDelta(),(!S||!(0,I.default)(F.compose(S),this.delta))&&(S=F.diff(this.delta,k));return S}}]),q}();function U(q,$){return Object.keys($).reduce(function(S,C){return q[C]==null||($[C]===q[C]?S[C]=$[C]:Array.isArray($[C])?$[C].indexOf(q[C])<0&&(S[C]=$[C].concat([q[C]])):S[C]=[$[C],q[C]]),S},{})}function G(q){return q.reduce(function($,S){if(S.insert===1){var C=(0,T.default)(S.attributes);return delete C.image,$.insert({image:S.attributes.image},C)}if(S.attributes!=null&&(S.attributes.list===!0||S.attributes.bullet===!0)&&(S=(0,T.default)(S),S.attributes.list?S.attributes.list="ordered":(S.attributes.list="bullet",delete S.attributes.bullet)),typeof S.insert=="string"){var k=S.insert.replace(/\r\n/g,`
|
|
48
52
|
`).replace(/\r/g,`
|
|
49
|
-
`);return M.insert(k,S.attributes)}return M.push(S)},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 E=[],w=!0,C=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(w=(B=R.next()).done)&&(E.push(B.value),!(x&&E.length===x));w=!0);}catch(H){C=!0,D=H}finally{try{!w&&R.return&&R.return()}finally{if(C)throw D}}return E}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 E=0;E<x.length;E++){var w=x[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(I,w.key,w)}}return function(I,x,E){return x&&A(I.prototype,x),E&&A(I,E),I}}(),d=o(0),c=m(d),h=o(21),f=m(h),l=o(11),a=m(l),u=o(8),v=m(u),p=o(10),b=m(p);function m(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 y=(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},P=function(){function A(I,x){var E=this;_(this,A),this.emitter=x,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(w,C){w===v.default.events.TEXT_CHANGE&&C.length()>0&&E.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!E.hasFocus()){var w=E.getNativeRange();w!=null&&w.start.node!==E.cursor.textNode&&E.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(v.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;E.setNativeRange(R,B,H,G)}}),this.update(v.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 E=x.cursor.restore();if(!E)return;setTimeout(function(){x.setNativeRange(E.startNode,E.startOffset,E.endNode,E.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(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(x,E){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[x])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||c.default.query(x,c.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var C=c.default.find(w.start.node,!1);if(C==null)return;if(C instanceof c.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,E),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();x=Math.min(x,w-1),E=Math.min(x+E,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(E>0){M.setStart(C,H);var S=this.scroll.leaf(x+E),N=i(S,2);if(B=N[0],H=N[1],B==null)return null;var k=B.position(H,!0),F=i(k,2);return C=F[0],H=F[1],M.setEnd(C,H),M.getBoundingClientRect()}else{var j="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),j="right"),L=M.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),H>0&&(j="right")),{bottom:L.top+L.height,height:L.height,left:L[j],right:L[j],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var x=document.getSelection();if(x==null||x.rangeCount<=0)return null;var E=x.getRangeAt(0);if(E==null)return null;var w=this.normalizeNative(E);return y.info("getNativeRange",w),w}},{key:"getRange",value:function(){var x=this.getNativeRange();if(x==null)return[null,null];var E=this.normalizedToRange(x);return[E,x]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(x){var E=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=c.default.find(G,!0),S=M.offset(E.scroll);return q===0?S:M instanceof c.default.Container?S+M.length():S+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 E={start:{node:x.startContainer,offset:x.startOffset},end:{node:x.endContainer,offset:x.endOffset},native:x};return[E.start,E.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}),E}},{key:"rangeToNative",value:function(x){var E=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=E.scroll.leaf(R),q=i(G,2),M=q[0],S=q[1],N=M.position(S,B!==0),k=i(N,2);H=k[0],S=k[1],C.push(H,S)}),C.length<2&&(C=C.concat(C)),C}},{key:"scrollIntoView",value:function(x){var E=this.lastRange;if(E!=null){var w=this.getBounds(E.index,E.length);if(w!=null){var C=this.scroll.length()-1,D=this.scroll.line(Math.min(E.index,C)),R=i(D,1),B=R[0],H=B;if(E.length>0){var G=this.scroll.line(Math.min(E.index+E.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,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",x,E,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||E!==B.startOffset||w!==B.endContainer||C!==B.endOffset){x.tagName=="BR"&&(E=[].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,E),H.setEnd(w,C),R.removeAllRanges(),R.addRange(H)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof E=="string"&&(w=E,E=!1),y.info("setRange",x),x!=null){var C=this.rangeToNative(x);this.setNativeRange.apply(this,g(C).concat([E]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,E=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)(E,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[v.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(E),x];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(H)),x!==v.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=P},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(0),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(m,g){m.children.length===0?s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,m,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(c.default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(44),d=o(30),c=o(1),h=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.build(),v}return a.prototype.appendChild=function(u){this.insertBefore(u)},a.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},a.prototype.build=function(){var u=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var p=f(v);u.insertBefore(p,u.children.head||void 0)}catch(b){if(b instanceof c.ParchmentError)return;throw b}})},a.prototype.deleteAt=function(u,v){if(u===0&&v===this.length())return this.remove();this.children.forEachAt(u,v,function(p,b,m){p.deleteAt(b,m)})},a.prototype.descendant=function(u,v){var p=this.children.find(v),b=p[0],m=p[1];return u.blotName==null&&u(b)||u.blotName!=null&&b instanceof u?[b,m]:b instanceof a?b.descendant(u,m):[null,-1]},a.prototype.descendants=function(u,v,p){v===void 0&&(v=0),p===void 0&&(p=Number.MAX_VALUE);var b=[],m=p;return this.children.forEachAt(v,p,function(g,_,y){(u.blotName==null&&u(g)||u.blotName!=null&&g instanceof u)&&b.push(g),g instanceof a&&(b=b.concat(g.descendants(u,_,m))),m-=y}),b},a.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),l.prototype.detach.call(this)},a.prototype.formatAt=function(u,v,p,b){this.children.forEachAt(u,v,function(m,g,_){m.formatAt(g,_,p,b)})},a.prototype.insertAt=function(u,v,p){var b=this.children.find(u),m=b[0],g=b[1];if(m)m.insertAt(g,v,p);else{var _=p==null?c.create("text",v):c.create(v,p);this.appendChild(_)}},a.prototype.insertBefore=function(u,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return u instanceof p}))throw new c.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,v)},a.prototype.length=function(){return this.children.reduce(function(u,v){return u+v.length()},0)},a.prototype.moveChildren=function(u,v){this.children.forEach(function(p){u.insertBefore(p,v)})},a.prototype.optimize=function(u){if(l.prototype.optimize.call(this,u),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.create(this.statics.defaultChild);this.appendChild(v),v.optimize(u)}else this.remove()},a.prototype.path=function(u,v){v===void 0&&(v=!1);var p=this.children.find(u,v),b=p[0],m=p[1],g=[[this,u]];return b instanceof a?g.concat(b.path(m,v)):(b!=null&&g.push([b,m]),g)},a.prototype.removeChild=function(u){this.children.remove(u)},a.prototype.replace=function(u){u instanceof a&&u.moveChildren(this),l.prototype.replace.call(this,u)},a.prototype.split=function(u,v){if(v===void 0&&(v=!1),!v){if(u===0)return this;if(u===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(u,this.length(),function(b,m,g){b=b.split(m,v),p.appendChild(b)}),p},a.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},a.prototype.update=function(u,v){var p=this,b=[],m=[];u.forEach(function(g){g.target===p.domNode&&g.type==="childList"&&(b.push.apply(b,g.addedNodes),m.push.apply(m,g.removedNodes))}),m.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=c.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&&(_=c.find(g.nextSibling));var y=f(g);(y.next!=_||y.next==null)&&(y.parent!=null&&y.parent.removeChild(p),p.insertBefore(y,_||void 0))})},a}(d.default);function f(l){var a=c.find(l);if(a==null)try{a=c.create(l)}catch{a=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){a.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(a.domNode,l),a.attach()}return a}t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12),d=o(31),c=o(17),h=o(1),f=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.attributes=new d.default(v.domNode),v}return a.formats=function(u){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return u.tagName.toLowerCase()},a.prototype.format=function(u,v){var p=h.query(u);p instanceof s.default?this.attributes.attribute(p,v):v&&p!=null&&(u!==this.statics.blotName||this.formats()[u]!==v)&&this.replaceWith(u,v)},a.prototype.formats=function(){var u=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(u[this.statics.blotName]=v),u},a.prototype.replaceWith=function(u,v){var p=l.prototype.replaceWith.call(this,u,v);return this.attributes.copy(p),p},a.prototype.update=function(u,v){var p=this;l.prototype.update.call(this,u,v),u.some(function(b){return b.target===p.domNode&&b.type==="attributes"})&&this.attributes.build()},a.prototype.wrap=function(u,v){var p=l.prototype.wrap.call(this,u,v);return p instanceof a&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},a}(c.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(30),d=o(1),c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.value=function(l){return!0},f.prototype.index=function(l,a){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(a,1):-1},f.prototype.position=function(l,a){var u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(u+=1),[this.parent.domNode,u]},f.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},f.scope=d.Scope.INLINE_BLOT,f}(s.default);t.default=c},function(n,t,o){var i=o(11),s=o(3),d={attributes:{compose:function(h,f,l){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var a=s(!0,{},f);l||(a=Object.keys(a).reduce(function(v,p){return a[p]!=null&&(v[p]=a[p]),v},{}));for(var u in h)h[u]!==void 0&&f[u]===void 0&&(a[u]=h[u]);return Object.keys(a).length>0?a:void 0},diff:function(h,f){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var l=Object.keys(h).concat(Object.keys(f)).reduce(function(a,u){return i(h[u],f[u])||(a[u]=f[u]===void 0?null:f[u]),a},{});return Object.keys(l).length>0?l:void 0},transform:function(h,f,l){if(typeof h!="object")return f;if(typeof f=="object"){if(!l)return f;var a=Object.keys(f).reduce(function(u,v){return h[v]===void 0&&(u[v]=f[v]),u},{});return Object.keys(a).length>0?a:void 0}}},iterator:function(h){return new c(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 c(h){this.ops=h,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(h){h||(h=1/0);var f=this.ops[this.index];if(f){var l=this.offset,a=d.length(f);if(h>=a-l?(h=a-l,this.index+=1,this.offset=0):this.offset+=h,typeof f.delete=="number")return{delete:h};var u={};return f.attributes&&(u.attributes=f.attributes),typeof f.retain=="number"?u.retain=h:typeof f.insert=="string"?u.insert=f.insert.substr(l,h):u.insert=f.insert,u}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?d.length(this.ops[this.index])-this.offset:1/0},c.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"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,f=this.index,l=this.next(),a=this.ops.slice(this.index);return this.offset=h,this.index=f,[l].concat(a)}else return[]},n.exports=d},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 d;try{d=Set}catch{d=function(){}}var c;try{c=Promise}catch{c=function(){}}function h(p,b,m,g,_){typeof b=="object"&&(m=b.depth,g=b.prototype,_=b.includeNonEnumerable,b=b.circular);var y=[],O=[],P=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof m=="undefined"&&(m=1/0);function T(A,I){if(A===null)return null;if(I===0)return A;var x,E;if(typeof A!="object")return A;if(i(A,s))x=new s;else if(i(A,d))x=new d;else if(i(A,c))x=new c(function(M,S){A.then(function(N){M(T(N,I-1))},function(N){S(T(N,I-1))})});else if(h.__isArray(A))x=[];else if(h.__isRegExp(A))x=new RegExp(A.source,v(A)),A.lastIndex&&(x.lastIndex=A.lastIndex);else if(h.__isDate(A))x=new Date(A.getTime());else{if(P&&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"?(E=Object.getPrototypeOf(A),x=Object.create(E)):(x=Object.create(g),E=g)}if(b){var w=y.indexOf(A);if(w!=-1)return O[w];y.push(A),O.push(x)}i(A,s)&&A.forEach(function(M,S){var N=T(S,I-1),k=T(M,I-1);x.set(N,k)}),i(A,d)&&A.forEach(function(M){var S=T(M,I-1);x.add(S)});for(var C in A){var D;E&&(D=Object.getOwnPropertyDescriptor(E,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,m)}h.clonePrototype=function(b){if(b===null)return null;var m=function(){};return m.prototype=b,new m};function f(p){return Object.prototype.toString.call(p)}h.__objToStr=f;function l(p){return typeof p=="object"&&f(p)==="[object Date]"}h.__isDate=l;function a(p){return typeof p=="object"&&f(p)==="[object Array]"}h.__isArray=a;function u(p){return typeof p=="object"&&f(p)==="[object RegExp]"}h.__isRegExp=u;function v(p){var b="";return p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),b}return h.__getRegExpFlags=v,h}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(E,w){var C=[],D=!0,R=!1,B=void 0;try{for(var H=E[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(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return x(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function x(E,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(E,D.key,D)}}return function(E,w,C){return w&&x(E.prototype,w),C&&x(E,C),E}}(),d=function x(E,w,C){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,w);if(D===void 0){var R=Object.getPrototypeOf(E);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=o(0),h=y(c),f=o(8),l=y(f),a=o(4),u=y(a),v=o(16),p=y(v),b=o(13),m=y(b),g=o(25),_=y(g);function y(x){return x&&x.__esModule?x:{default:x}}function O(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function P(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function T(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}function A(x){return x instanceof u.default||x instanceof a.BlockEmbed}var I=function(x){T(E,x);function E(w,C){O(this,E);var D=P(this,(E.__proto__||Object.getPrototypeOf(E)).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(E,[{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),S=M[0];if(d(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,C,D),S!=null&&H!==S&&G>0){if(H instanceof a.BlockEmbed||S instanceof a.BlockEmbed){this.optimize();return}if(H instanceof m.default){var N=H.newlineIndex(H.length(),!0);if(N>-1&&(H=H.split(N+1),H===S)){this.optimize();return}}else if(S instanceof m.default){var k=S.newlineIndex(0);k>-1&&S.split(k+1)}var F=S.children.head instanceof p.default?null:S.children.head;H.moveChildren(S,F),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]||(d(E.prototype.__proto__||Object.getPrototypeOf(E.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(`
|
|
50
|
-
`)&&(D=D.slice(0,-1)),B.insertAt(0,D,R)}else{var
|
|
51
|
-
`,
|
|
52
|
-
`,
|
|
53
|
-
`,z,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(
|
|
54
|
-
`);he=0,V.forEach(function(Z,J){L?(ce.insertAt(we+he,z.TAB),he+=z.TAB.length,J===0?K+=z.TAB.length:Q+=z.TAB.length):Z.startsWith(z.TAB)&&(ce.deleteAt(we+he,z.TAB.length),he-=z.TAB.length,J===0?K-=z.TAB.length:Q-=z.TAB.length),he+=Z.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(K,Q,O.default.sources.SILENT)}}}}function F(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(U,z){this.quill.format(L,!z.format[L],O.default.sources.USER)}}}function j(L){if(typeof L=="string"||typeof L=="number")return j({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 m(g,_){var y=[],O=!0,P=!1,T=void 0;try{for(var A=g[Symbol.iterator](),I;!(O=(I=A.next()).done)&&(y.push(I.value),!(_&&y.length===_));O=!0);}catch(x){P=!0,T=x}finally{try{!O&&A.return&&A.return()}finally{if(P)throw T}}return y}return function(g,_){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return m(g,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var P=Object.getPrototypeOf(g);return P===null?void 0:m(P,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},d=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),c=o(0),h=a(c),f=o(7),l=a(f);function a(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function v(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var b=function(m){p(g,m),d(g,null,[{key:"value",value:function(){}}]);function g(_,y){u(this,g);var O=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return O.selection=y,O.textNode=document.createTextNode(g.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return d(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,O){if(this._length!==0)return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,y,O);for(var P=this,T=0;P!=null&&P.statics.scope!==h.default.Scope.BLOCK_BLOT;)T+=P.offset(P.parent),P=P.parent;P!=null&&(this._length=g.CONTENTS.length,P.optimize(),P.formatAt(T,g.CONTENTS.length,y,O),this._length=0)}},{key:"index",value:function(y,O){return y===this.textNode?0:s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,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 y=this.textNode,O=this.selection.getNativeRange(),P=void 0,T=void 0,A=void 0;if(O!=null&&O.start.node===y&&O.end.node===y){var I=[y,O.start.offset,O.end.offset];P=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 l.default?(P=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 E=[T,A].map(function(C){return Math.max(0,Math.min(P.data.length,C-1))}),w=i(E,2);return T=w[0],A=w[1],{startNode:P,startOffset:T,endNode:P,endOffset:A}}}}},{key:"update",value:function(y,O){var P=this;if(y.some(function(A){return A.type==="characterData"&&A.target===P.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),d=o(4),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default.Container);u.allowedChildren=[c.default,d.BlockEmbed,u],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var P=y.get;return P===void 0?void 0:P.call(_)}},d=o(0),c=h(d);function h(b){return b&&b.__esModule?b:{default:b}}function f(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function l(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function a(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var u=function(b){a(m,b);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(_){var y=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,_);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):y}}]),m}(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),p=new u("color","color",{scope:c.default.Scope.INLINE});t.ColorAttributor=u,t.ColorClass=v,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,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),s=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},d=o(6),c=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function f(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(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 u=function(p){a(b,p);function b(){return f(this,b),l(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 v(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),b}(c.default);u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(p,b){var m=document.createElement("a");m.href=p;var g=m.href.slice(0,m.href.indexOf(":"));return b.indexOf(g)>-1}t.default=u,t.sanitize=v},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(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),d=o(23),c=l(d),h=o(107),f=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function a(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}var u=0;function v(b,m){b.setAttribute(m,b.getAttribute(m)!=="true")}var p=function(){function b(m){var g=this;a(this,b),this.select=m,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 c.default.keys.ENTER:g.togglePicker();break;case c.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"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var _=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),g.hasAttribute("value")&&y.setAttribute("data-value",g.getAttribute("value")),g.textContent&&y.setAttribute("data-label",g.textContent),y.addEventListener("click",function(){_.selectItem(y,!0)}),y.addEventListener("keydown",function(O){switch(O.keyCode){case c.default.keys.ENTER:_.selectItem(y,!0),O.preventDefault();break;case c.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=f.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-"+u,u+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(y){var O=g.buildItem(y);_.appendChild(O),y.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,y=this.container.querySelector(".ql-selected");if(g!==y&&(y!=null&&y.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 y=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),b}();t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),s=R(i),d=o(5),c=R(d),h=o(4),f=R(h),l=o(16),a=R(l),u=o(25),v=R(u),p=o(24),b=R(p),m=o(35),g=R(m),_=o(6),y=R(_),O=o(22),P=R(O),T=o(7),A=R(T),I=o(55),x=R(I),E=o(42),w=R(E),C=o(23),D=R(C);function R(B){return B&&B.__esModule?B:{default:B}}c.default.register({"blots/block":f.default,"blots/block/embed":h.BlockEmbed,"blots/break":a.default,"blots/container":v.default,"blots/cursor":b.default,"blots/embed":g.default,"blots/inline":y.default,"blots/scroll":P.default,"blots/text":A.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":D.default}),s.default.register(f.default,a.default,b.default,y.default,P.default,A.default),t.default=c.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),s=function(){function d(c){this.domNode=c,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(d.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),d.create=function(c){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?h=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?h=document.createElement(c):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},d.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},d.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return i.create(c)},d.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},d.prototype.deleteAt=function(c,h){var f=this.isolate(c,h);f.remove()},d.prototype.formatAt=function(c,h,f,l){var a=this.isolate(c,h);if(i.query(f,i.Scope.BLOT)!=null&&l)a.wrap(f,l);else if(i.query(f,i.Scope.ATTRIBUTE)!=null){var u=i.create(this.statics.scope);a.wrap(u),u.format(f,l)}},d.prototype.insertAt=function(c,h,f){var l=f==null?i.create("text",h):i.create(h,f),a=this.split(c);this.parent.insertBefore(l,a)},d.prototype.insertInto=function(c,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var f=null;c.children.insertBefore(this,h),h!=null&&(f=h.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=f)&&c.domNode.insertBefore(this.domNode,f),this.parent=c,this.attach()},d.prototype.isolate=function(c,h){var f=this.split(c);return f.split(h),f},d.prototype.length=function(){return 1},d.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},d.prototype.optimize=function(c){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},d.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},d.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},d.prototype.replaceWith=function(c,h){var f=typeof c=="string"?i.create(c,h):c;return f.replace(this),f},d.prototype.split=function(c,h){return c===0?this:this.next},d.prototype.update=function(c,h){},d.prototype.wrap=function(c,h){var f=typeof c=="string"?i.create(c,h):c;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},d.blotName="abstract",d}();t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),s=o(32),d=o(33),c=o(1),h=function(){function f(l){this.attributes={},this.domNode=l,this.build()}return f.prototype.attribute=function(l,a){a?l.add(this.domNode,a)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},f.prototype.build=function(){var l=this;this.attributes={};var a=i.default.keys(this.domNode),u=s.default.keys(this.domNode),v=d.default.keys(this.domNode);a.concat(u).concat(v).forEach(function(p){var b=c.query(p,c.Scope.ATTRIBUTE);b instanceof i.default&&(l.attributes[b.attrName]=b)})},f.prototype.copy=function(l){var a=this;Object.keys(this.attributes).forEach(function(u){var v=a.attributes[u].value(a.domNode);l.format(u,v)})},f.prototype.move=function(l){var a=this;this.copy(l),Object.keys(this.attributes).forEach(function(u){a.attributes[u].remove(a.domNode)}),this.attributes={}},f.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(a,u){return a[u]=l.attributes[u].value(l.domNode),a},{})},f}();t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function d(h,f){var l=h.getAttribute("class")||"";return l.split(/\s+/).filter(function(a){return a.indexOf(f+"-")===0})}var c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(a){return a.split("-").slice(0,-1).join("-")})},f.prototype.add=function(l,a){return this.canAdd(l,a)?(this.remove(l),l.classList.add(this.keyName+"-"+a),!0):!1},f.prototype.remove=function(l){var a=d(l,this.keyName);a.forEach(function(u){l.classList.remove(u)}),l.classList.length===0&&l.removeAttribute("class")},f.prototype.value=function(l){var a=d(l,this.keyName)[0]||"",u=a.slice(this.keyName.length+1);return this.canAdd(l,u)?u:""},f}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(12);function d(h){var f=h.split("-"),l=f.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return f[0]+l}var c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(a){var u=a.split(":");return u[0].trim()})},f.prototype.add=function(l,a){return this.canAdd(l,a)?(l.style[d(this.keyName)]=a,!0):!1},f.prototype.remove=function(l){l.style[d(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},f.prototype.value=function(l){var a=l.style[d(this.keyName)];return this.canAdd(l,a)?a:""},f}(s.default);t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,f){for(var l=0;l<f.length;l++){var a=f[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,f,l){return f&&c(h.prototype,f),l&&c(h,l),h}}();function s(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(h,f){s(this,c),this.quill=h,this.options=f,this.modules={}}return i(c,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(l){f.modules[l]==null&&f.addModule(l)})}},{key:"addModule",value:function(f){var l=this.quill.constructor.import("modules/"+f);return this.modules[f]=new l(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),c}();d.DEFAULTS={modules:{}},d.themes={default:d},t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),s=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var P=Object.getPrototypeOf(g);return P===null?void 0:m(P,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},d=o(0),c=l(d),h=o(7),f=l(h);function l(m){return m&&m.__esModule?m:{default:m}}function a(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function u(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function v(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var p="\uFEFF",b=function(m){v(g,m);function g(_){a(this,g);var y=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(O){y.contentNode.appendChild(O)}),y.leftGuard=document.createTextNode(p),y.rightGuard=document.createTextNode(p),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return i(g,[{key:"index",value:function(y,O){return y===this.leftGuard?0:y===this.rightGuard?1:s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"restore",value:function(y){var O=void 0,P=void 0,T=y.data.split(p).join("");if(y===this.leftGuard)if(this.prev instanceof f.default){var A=this.prev.length();this.prev.insertAt(A,T),O={startNode:this.prev.domNode,startOffset:A+T.length}}else P=document.createTextNode(T),this.parent.insertBefore(c.default.create(P),this),O={startNode:P,startOffset:T.length};else y===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,T),O={startNode:this.next.domNode,startOffset:T.length}):(P=document.createTextNode(T),this.parent.insertBefore(c.default.create(P),this.next),O={startNode:P,startOffset:T.length}));return y.data=p,O}},{key:"update",value:function(y,O){var P=this;y.forEach(function(T){if(T.type==="characterData"&&(T.target===P.leftGuard||T.target===P.rightGuard)){var A=P.restore(T.target);A&&(O.range=A)}})}}]),g}(c.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=d(i);function d(a){return a&&a.__esModule?a:{default:a}}var c={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new s.default.Attributor.Attribute("align","align",c),f=new s.default.Attributor.Class("align","ql-align",c),l=new s.default.Attributor.Style("align","text-align",c);t.AlignAttribute=h,t.AlignClass=f,t.AlignStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=o(0),s=c(i),d=o(26);function c(l){return l&&l.__esModule?l:{default:l}}var h=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),f=new d.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});t.BackgroundClass=h,t.BackgroundStyle=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=o(0),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}var c={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},h=new s.default.Attributor.Attribute("direction","dir",c),f=new s.default.Attributor.Class("direction","ql-direction",c),l=new s.default.Attributor.Style("direction","direction",c);t.DirectionAttribute=h,t.DirectionClass=f,t.DirectionStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),s=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var P=Object.getPrototypeOf(g);return P===null?void 0:m(P,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},d=o(0),c=h(d);function h(m){return m&&m.__esModule?m:{default:m}}function f(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function l(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function a(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var u={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",u),p=function(m){a(g,m);function g(){return f(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"value",value:function(y){return s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),g}(c.default.Attributor.Style),b=new p("font","font-family",u);t.FontStyle=b,t.FontClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=o(0),s=d(i);function d(f){return f&&f.__esModule?f:{default:f}}var c=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=c,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 _(y,O){for(var P=0;P<O.length;P++){var T=O[P];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,P){return O&&_(y.prototype,O),P&&_(y,P),y}}(),s=o(0),d=a(s),c=o(5),h=a(c),f=o(9),l=a(f);function a(_){return _&&_.__esModule?_:{default:_}}function u(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function v(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function p(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var b=function(_){p(y,_);function y(O,P){u(this,y);var T=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,O,P));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(h.default.events.EDITOR_CHANGE,function(A,I,x,E){A!==h.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||E===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(y,[{key:"change",value:function(P,T){if(this.stack[P].length!==0){var A=this.stack[P].pop();this.stack[T].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[P],h.default.sources.USER),this.ignoreChange=!1;var I=g(A[P]);this.quill.setSelection(I)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(P,T){if(P.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),P=x.redo.compose(P)}else this.lastRecorded=I;this.stack.undo.push({redo:P,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(P){this.stack.undo.forEach(function(T){T.undo=P.transform(T.undo,!0),T.redo=P.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=P.transform(T.undo,!0),T.redo=P.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y}(l.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(_){var y=_.ops[_.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(`
|
|
55
|
-
`):y.attributes!=null?Object.keys(y.attributes).some(function(O){return d.default.query(O,d.default.Scope.BLOCK)!=null}):!1}function g(_){var y=_.reduce(function(P,T){return P+=T.delete||0,P},0),O=_.length()-y;return m(_)&&(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(k,F){for(var j=0;j<F.length;j++){var L=F[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}return function(k,F,j){return F&&N(k.prototype,F),j&&N(k,j),k}}(),s=function N(k,F,j){k===null&&(k=Function.prototype);var L=Object.getOwnPropertyDescriptor(k,F);if(L===void 0){var $=Object.getPrototypeOf(k);return $===null?void 0:N($,F,j)}else{if("value"in L)return L.value;var U=L.get;return U===void 0?void 0:U.call(j)}},d=o(3),c=I(d),h=o(2),f=I(h),l=o(8),a=I(l),u=o(23),v=I(u),p=o(34),b=I(p),m=o(59),g=I(m),_=o(60),y=I(_),O=o(28),P=I(O),T=o(61),A=I(T);function I(N){return N&&N.__esModule?N:{default:N}}function x(N,k){if(!(N instanceof k))throw new TypeError("Cannot call a class as a function")}function E(N,k){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:N}function w(N,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);N.prototype=Object.create(k&&k.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(N,k):N.__proto__=k)}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(k,N);function k(F,j){x(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j)),$=function U(z){if(!document.body.contains(F.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(K){K.container.contains(z.target)||K.close()})};return F.emitter.listenDOM("click",document.body,$),L}return i(k,[{key:"addModule",value:function(j){var L=s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(j,L){j.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 K=$.value||"";K!=null&&L[z][K]&&($.innerHTML=L[z][K])}})})}},{key:"buildPickers",value:function(j,L){var $=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&S(z,C),new y.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var K=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&S(z,D,K==="background"?"#ffffff":"#000000"),new g.default(z,L[K])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?S(z,R):z.classList.contains("ql-header")?S(z,B):z.classList.contains("ql-size")&&S(z,H)),new P.default(z)});var U=function(){$.pickers.forEach(function(K){K.update()})};this.quill.on(a.default.events.EDITOR_CHANGE,U)}}]),k}(b.default);G.DEFAULTS=(0,c.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var k=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var j=new FileReader;j.onload=function(L){var $=k.quill.getSelection(!0);k.quill.updateContents(new f.default().retain($.index).delete($.length).insert({image:L.target.result}),a.default.sources.USER),k.quill.setSelection($.index+1,a.default.sources.SILENT),F.value=""},j.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(N){w(k,N);function k(F,j){x(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(k,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(L){v.default.match(L,"enter")?(j.save(),L.preventDefault()):v.default.match(L,"escape")&&(j.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=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:j!==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-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=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",j,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,a.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":j=M(j);case"formula":{if(!j)break;var $=this.quill.getSelection(!0);if($!=null){var U=$.index+$.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),j,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()}}]),k}(A.default);function M(N){var k=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 k?(k[1]||"https")+"://www.youtube.com/embed/"+k[2]+"?showinfo=0":(k=N.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(k[1]||"https")+"://player.vimeo.com/video/"+k[2]+"/":N}function S(N,k){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k.forEach(function(j){var L=document.createElement("option");j===F?L.setAttribute("selected","selected"):L.setAttribute("value",j),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 d=[],c=0;c<arguments.length;c++)d[c]=arguments[c];this.insertBefore(d[0],null),d.length>1&&this.append.apply(this,d.slice(1))},s.prototype.contains=function(d){for(var c,h=this.iterator();c=h();)if(c===d)return!0;return!1},s.prototype.insertBefore=function(d,c){!d||(d.next=c,c!=null?(d.prev=c.prev,c.prev!=null&&(c.prev.next=d),c.prev=d,c===this.head&&(this.head=d)):this.tail!=null?(this.tail.next=d,d.prev=this.tail,this.tail=d):(d.prev=null,this.head=this.tail=d),this.length+=1)},s.prototype.offset=function(d){for(var c=0,h=this.head;h!=null;){if(h===d)return c;c+=h.length(),h=h.next}return-1},s.prototype.remove=function(d){!this.contains(d)||(d.prev!=null&&(d.prev.next=d.next),d.next!=null&&(d.next.prev=d.prev),d===this.head&&(this.head=d.next),d===this.tail&&(this.tail=d.prev),this.length-=1)},s.prototype.iterator=function(d){return d===void 0&&(d=this.head),function(){var c=d;return d!=null&&(d=d.next),c}},s.prototype.find=function(d,c){c===void 0&&(c=!1);for(var h,f=this.iterator();h=f();){var l=h.length();if(d<l||c&&d===l&&(h.next==null||h.next.length()!==0))return[h,d];d-=l}return[null,0]},s.prototype.forEach=function(d){for(var c,h=this.iterator();c=h();)d(c)},s.prototype.forEachAt=function(d,c,h){if(!(c<=0))for(var f=this.find(d),l=f[0],a=f[1],u,v=d-a,p=this.iterator(l);(u=p())&&v<d+c;){var b=u.length();d>v?h(u,d-v,Math.min(c,v+b-d)):h(u,0,Math.min(b,d+c-v)),v+=b}},s.prototype.map=function(d){return this.reduce(function(c,h){return c.push(d(h)),c},[])},s.prototype.reduce=function(d,c){for(var h,f=this.iterator();h=f();)c=d(c,h);return c},s}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var v in u)u.hasOwnProperty(v)&&(a[v]=u[v])};return function(a,u){l(a,u);function v(){this.constructor=a}a.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(17),d=o(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,f=function(l){i(a,l);function a(u){var v=l.call(this,u)||this;return v.scroll=v,v.observer=new MutationObserver(function(p){v.update(p)}),v.observer.observe(v.domNode,c),v.attach(),v}return a.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},a.prototype.deleteAt=function(u,v){this.update(),u===0&&v===this.length()?this.children.forEach(function(p){p.remove()}):l.prototype.deleteAt.call(this,u,v)},a.prototype.formatAt=function(u,v,p,b){this.update(),l.prototype.formatAt.call(this,u,v,p,b)},a.prototype.insertAt=function(u,v,p){this.update(),l.prototype.insertAt.call(this,u,v,p)},a.prototype.optimize=function(u,v){var p=this;u===void 0&&(u=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)u.push(b.pop());for(var m=function(O,P){P===void 0&&(P=!0),!(O==null||O===p)&&O.domNode.parentNode!=null&&(O.domNode[d.DATA_KEY].mutations==null&&(O.domNode[d.DATA_KEY].mutations=[]),P&&m(O.parent))},g=function(O){O.domNode[d.DATA_KEY]==null||O.domNode[d.DATA_KEY].mutations==null||(O instanceof s.default&&O.children.forEach(g),O.optimize(v))},_=u,y=0;_.length>0;y+=1){if(y>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var P=d.find(O.target,!0);P!=null&&(P.domNode===O.target&&(O.type==="childList"?(m(d.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=d.find(T,!1);m(A,!1),A instanceof s.default&&A.children.forEach(function(I){m(I,!1)})})):O.type==="attributes"&&m(P.prev)),m(P))}),this.children.forEach(g),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)u.push(b.pop())}},a.prototype.update=function(u,v){var p=this;v===void 0&&(v={}),u=u||this.observer.takeRecords(),u.map(function(b){var m=d.find(b.target,!0);return m==null?null:m.domNode[d.DATA_KEY].mutations==null?(m.domNode[d.DATA_KEY].mutations=[b],m):(m.domNode[d.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===p||b.domNode[d.DATA_KEY]==null||b.update(b.domNode[d.DATA_KEY].mutations||[],v)}),this.domNode[d.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[d.DATA_KEY].mutations,v),this.optimize(u,v)},a.blotName="scroll",a.defaultChild="block",a.scope=d.Scope.BLOCK_BLOT,a.tagName="DIV",a}(s.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,a){l.__proto__=a}||function(l,a){for(var u in a)a.hasOwnProperty(u)&&(l[u]=a[u])};return function(l,a){f(l,a);function u(){this.constructor=l}l.prototype=a===null?Object.create(a):(u.prototype=a.prototype,new u)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),d=o(1);function c(f,l){if(Object.keys(f).length!==Object.keys(l).length)return!1;for(var a in f)if(f[a]!==l[a])return!1;return!0}var h=function(f){i(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.formats=function(a){if(a.tagName!==l.tagName)return f.formats.call(this,a)},l.prototype.format=function(a,u){var v=this;a===this.statics.blotName&&!u?(this.children.forEach(function(p){p instanceof s.default||(p=p.wrap(l.blotName,!0)),v.attributes.copy(p)}),this.unwrap()):f.prototype.format.call(this,a,u)},l.prototype.formatAt=function(a,u,v,p){if(this.formats()[v]!=null||d.query(v,d.Scope.ATTRIBUTE)){var b=this.isolate(a,u);b.format(v,p)}else f.prototype.formatAt.call(this,a,u,v,p)},l.prototype.optimize=function(a){f.prototype.optimize.call(this,a);var u=this.formats();if(Object.keys(u).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&c(u,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=d.Scope.INLINE_BLOT,l.tagName="SPAN",l}(s.default);t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(18),d=o(1),c=function(h){i(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.formats=function(l){var a=d.query(f.blotName).tagName;if(l.tagName!==a)return h.formats.call(this,l)},f.prototype.format=function(l,a){d.query(l,d.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!a?this.replaceWith(f.blotName):h.prototype.format.call(this,l,a))},f.prototype.formatAt=function(l,a,u,v){d.query(u,d.Scope.BLOCK)!=null?this.format(u,v):h.prototype.formatAt.call(this,l,a,u,v)},f.prototype.insertAt=function(l,a,u){if(u==null||d.query(a,d.Scope.INLINE)!=null)h.prototype.insertAt.call(this,l,a,u);else{var v=this.split(l),p=d.create(a,u);v.parent.insertBefore(p,v)}},f.prototype.update=function(l,a){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,l,a)},f.blotName="block",f.scope=d.Scope.BLOCK_BLOT,f.tagName="P",f}(s.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var l in f)f.hasOwnProperty(l)&&(h[l]=f[l])};return function(h,f){c(h,f);function l(){this.constructor=h}h.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),d=function(c){i(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.formats=function(f){},h.prototype.format=function(f,l){c.prototype.formatAt.call(this,0,this.length(),f,l)},h.prototype.formatAt=function(f,l,a,u){f===0&&l===this.length()?this.format(a,u):c.prototype.formatAt.call(this,f,l,a,u)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(s.default);t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var a in l)l.hasOwnProperty(a)&&(f[a]=l[a])};return function(f,l){h(f,l);function a(){this.constructor=f}f.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=o(19),d=o(1),c=function(h){i(f,h);function f(l){var a=h.call(this,l)||this;return a.text=a.statics.value(a.domNode),a}return f.create=function(l){return document.createTextNode(l)},f.value=function(l){var a=l.data;return a.normalize&&(a=a.normalize()),a},f.prototype.deleteAt=function(l,a){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+a)},f.prototype.index=function(l,a){return this.domNode===l?a:-1},f.prototype.insertAt=function(l,a,u){u==null?(this.text=this.text.slice(0,l)+a+this.text.slice(l),this.domNode.data=this.text):h.prototype.insertAt.call(this,l,a,u)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(l){h.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(l,a){return[this.domNode,l]},f.prototype.split=function(l,a){if(a===void 0&&(a=!1),!a){if(l===0)return this;if(l===this.length())return this.next}var u=d.create(this.domNode.splitText(l));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},f.prototype.update=function(l,a){var u=this;l.some(function(v){return v.type==="characterData"&&v.target===u.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=d.Scope.INLINE_BLOT,f}(s.default);t.default=c},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(d,c){return arguments.length>1&&!this.contains(d)==!c?c:s.call(this,d)}}String.prototype.startsWith||(String.prototype.startsWith=function(d,c){return c=c||0,this.substr(c,d.length)===d}),String.prototype.endsWith||(String.prototype.endsWith=function(d,c){var h=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>h.length)&&(c=h.length),c-=d.length;var f=h.indexOf(d,c);return f!==-1&&f===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),f=h.length>>>0,l=arguments[1],a,u=0;u<f;u++)if(a=h[u],c.call(l,a,u,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 d(y,O,P){if(y==O)return y?[[s,y]]:[];(P<0||y.length<P)&&(P=null);var T=l(y,O),A=y.substring(0,T);y=y.substring(T),O=O.substring(T),T=a(y,O);var I=y.substring(y.length-T);y=y.substring(0,y.length-T),O=O.substring(0,O.length-T);var x=c(y,O);return A&&x.unshift([s,A]),I&&x.push([s,I]),v(x),P!=null&&(x=m(x,P)),x=g(x),x}function c(y,O){var P;if(!y)return[[i,O]];if(!O)return[[o,y]];var T=y.length>O.length?y:O,A=y.length>O.length?O:y,I=T.indexOf(A);if(I!=-1)return P=[[i,T.substring(0,I)],[s,A],[i,T.substring(I+A.length)]],y.length>O.length&&(P[0][0]=P[2][0]=o),P;if(A.length==1)return[[o,y],[i,O]];var x=u(y,O);if(x){var E=x[0],w=x[1],C=x[2],D=x[3],R=x[4],B=d(E,C),H=d(w,D);return B.concat([[s,R]],H)}return h(y,O)}function h(y,O){for(var P=y.length,T=O.length,A=Math.ceil((P+T)/2),I=A,x=2*A,E=new Array(x),w=new Array(x),C=0;C<x;C++)E[C]=-1,w[C]=-1;E[I+1]=0,w[I+1]=0;for(var D=P-T,R=D%2!=0,B=0,H=0,G=0,q=0,M=0;M<A;M++){for(var S=-M+B;S<=M-H;S+=2){var N=I+S,k;S==-M||S!=M&&E[N-1]<E[N+1]?k=E[N+1]:k=E[N-1]+1;for(var F=k-S;k<P&&F<T&&y.charAt(k)==O.charAt(F);)k++,F++;if(E[N]=k,k>P)H+=2;else if(F>T)B+=2;else if(R){var j=I+D-S;if(j>=0&&j<x&&w[j]!=-1){var L=P-w[j];if(k>=L)return f(y,O,k,F)}}}for(var $=-M+G;$<=M-q;$+=2){var j=I+$,L;$==-M||$!=M&&w[j-1]<w[j+1]?L=w[j+1]:L=w[j-1]+1;for(var U=L-$;L<P&&U<T&&y.charAt(P-L-1)==O.charAt(T-U-1);)L++,U++;if(w[j]=L,L>P)q+=2;else if(U>T)G+=2;else if(!R){var N=I+D-$;if(N>=0&&N<x&&E[N]!=-1){var k=E[N],F=I+k-N;if(L=P-L,k>=L)return f(y,O,k,F)}}}}return[[o,y],[i,O]]}function f(y,O,P,T){var A=y.substring(0,P),I=O.substring(0,T),x=y.substring(P),E=O.substring(T),w=d(A,I),C=d(x,E);return w.concat(C)}function l(y,O){if(!y||!O||y.charAt(0)!=O.charAt(0))return 0;for(var P=0,T=Math.min(y.length,O.length),A=T,I=0;P<A;)y.substring(I,A)==O.substring(I,A)?(P=A,I=P):T=A,A=Math.floor((T-P)/2+P);return A}function a(y,O){if(!y||!O||y.charAt(y.length-1)!=O.charAt(O.length-1))return 0;for(var P=0,T=Math.min(y.length,O.length),A=T,I=0;P<A;)y.substring(y.length-A,y.length-I)==O.substring(O.length-A,O.length-I)?(P=A,I=P):T=A,A=Math.floor((T-P)/2+P);return A}function u(y,O){var P=y.length>O.length?y:O,T=y.length>O.length?O:y;if(P.length<4||T.length*2<P.length)return null;function A(H,G,q){for(var M=H.substring(q,q+Math.floor(H.length/4)),S=-1,N="",k,F,j,L;(S=G.indexOf(M,S+1))!=-1;){var $=l(H.substring(q),G.substring(S)),U=a(H.substring(0,q),G.substring(0,S));N.length<U+$&&(N=G.substring(S-U,S)+G.substring(S,S+$),k=H.substring(0,q-U),F=H.substring(q+$),j=G.substring(0,S-U),L=G.substring(S+$))}return N.length*2>=H.length?[k,F,j,L,N]:null}var I=A(P,T,Math.ceil(P.length/4)),x=A(P,T,Math.ceil(P.length/2)),E;if(!I&&!x)return null;x?I?E=I[4].length>x[4].length?I:x:E=x:E=I;var w,C,D,R;y.length>O.length?(w=E[0],C=E[1],D=E[2],R=E[3]):(D=E[0],R=E[1],w=E[2],C=E[3]);var B=E[4];return[w,C,D,R,B]}function v(y){y.push([s,""]);for(var O=0,P=0,T=0,A="",I="",x;O<y.length;)switch(y[O][0]){case i:T++,I+=y[O][1],O++;break;case o:P++,A+=y[O][1],O++;break;case s:P+T>1?(P!==0&&T!==0&&(x=l(I,A),x!==0&&(O-P-T>0&&y[O-P-T-1][0]==s?y[O-P-T-1][1]+=I.substring(0,x):(y.splice(0,0,[s,I.substring(0,x)]),O++),I=I.substring(x),A=A.substring(x)),x=a(I,A),x!==0&&(y[O][1]=I.substring(I.length-x)+y[O][1],I=I.substring(0,I.length-x),A=A.substring(0,A.length-x))),P===0?y.splice(O-T,P+T,[i,I]):T===0?y.splice(O-P,P+T,[o,A]):y.splice(O-P-T,P+T,[o,A],[i,I]),O=O-P-T+(P?1:0)+(T?1:0)+1):O!==0&&y[O-1][0]==s?(y[O-1][1]+=y[O][1],y.splice(O,1)):O++,T=0,P=0,A="",I="";break}y[y.length-1][1]===""&&y.pop();var E=!1;for(O=1;O<y.length-1;)y[O-1][0]==s&&y[O+1][0]==s&&(y[O][1].substring(y[O][1].length-y[O-1][1].length)==y[O-1][1]?(y[O][1]=y[O-1][1]+y[O][1].substring(0,y[O][1].length-y[O-1][1].length),y[O+1][1]=y[O-1][1]+y[O+1][1],y.splice(O-1,1),E=!0):y[O][1].substring(0,y[O+1][1].length)==y[O+1][1]&&(y[O-1][1]+=y[O+1][1],y[O][1]=y[O][1].substring(y[O+1][1].length)+y[O+1][1],y.splice(O+1,1),E=!0)),O++;E&&v(y)}var p=d;p.INSERT=i,p.DELETE=o,p.EQUAL=s,n.exports=p;function b(y,O){if(O===0)return[s,y];for(var P=0,T=0;T<y.length;T++){var A=y[T];if(A[0]===o||A[0]===s){var I=P+A[1].length;if(O===I)return[T+1,y];if(O<I){y=y.slice();var x=O-P,E=[A[0],A[1].slice(0,x)],w=[A[0],A[1].slice(x)];return y.splice(T,1,E,w),[T+1,y]}else P=I}}throw new Error("cursor_pos is out of bounds!")}function m(y,O){var P=b(y,O),T=P[1],A=P[0],I=T[A],x=T[A+1];if(I==null)return y;if(I[0]!==s)return y;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 E=x[1].slice(I[1].length);return E.length>0&&T.splice(A+2,0,[x[0],E]),_(T,A,3)}else return y}function g(y){for(var O=!1,P=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<y.length;A+=1)y[A-2][0]===s&&T(y[A-2][1])&&y[A-1][0]===o&&P(y[A-1][1])&&y[A][0]===i&&P(y[A][1])&&(O=!0,y[A-1][1]=y[A-2][1].slice(-1)+y[A-1][1],y[A][1]=y[A-2][1].slice(-1)+y[A][1],y[A-2][1]=y[A-2][1].slice(0,-1));if(!O)return y;for(var I=[],A=0;A<y.length;A+=1)y[A][1].length>0&&I.push(y[A]);return I}function _(y,O,P){for(var T=O+P-1;T>=0&&T>=O-1;T--)if(T+1<y.length){var A=y[T],I=y[T+1];A[0]===I[1]&&y.splice(T,2,[A[0],A[1]+I[1]])}return y}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var s=[];for(var d in i)s.push(d);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(d){return Object.prototype.toString.call(d)=="[object Arguments]"}t.unsupported=s;function s(d){return d&&typeof d=="object"&&typeof d.length=="number"&&Object.prototype.hasOwnProperty.call(d,"callee")&&!Object.prototype.propertyIsEnumerable.call(d,"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 d(h,f,l){this.fn=h,this.context=f,this.once=l||!1}function c(){this._events=new s,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],l,a;if(this._eventsCount===0)return f;for(a in l=this._events)o.call(l,a)&&f.push(i?a.slice(1):a);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},c.prototype.listeners=function(f,l){var a=i?i+f:f,u=this._events[a];if(l)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var v=0,p=u.length,b=new Array(p);v<p;v++)b[v]=u[v].fn;return b},c.prototype.emit=function(f,l,a,u,v,p){var b=i?i+f:f;if(!this._events[b])return!1;var m=this._events[b],g=arguments.length,_,y;if(m.fn){switch(m.once&&this.removeListener(f,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,a),!0;case 4:return m.fn.call(m.context,l,a,u),!0;case 5:return m.fn.call(m.context,l,a,u,v),!0;case 6:return m.fn.call(m.context,l,a,u,v,p),!0}for(y=1,_=new Array(g-1);y<g;y++)_[y-1]=arguments[y];m.fn.apply(m.context,_)}else{var O=m.length,P;for(y=0;y<O;y++)switch(m[y].once&&this.removeListener(f,m[y].fn,void 0,!0),g){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,l);break;case 3:m[y].fn.call(m[y].context,l,a);break;case 4:m[y].fn.call(m[y].context,l,a,u);break;default:if(!_)for(P=1,_=new Array(g-1);P<g;P++)_[P-1]=arguments[P];m[y].fn.apply(m[y].context,_)}}return!0},c.prototype.on=function(f,l,a){var u=new d(l,a||this),v=i?i+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},c.prototype.once=function(f,l,a){var u=new d(l,a||this,!0),v=i?i+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},c.prototype.removeListener=function(f,l,a,u){var v=i?i+f:f;if(!this._events[v])return this;if(!l)return--this._eventsCount==0?this._events=new s:delete this._events[v],this;var p=this._events[v];if(p.fn)p.fn===l&&(!u||p.once)&&(!a||p.context===a)&&(--this._eventsCount==0?this._events=new s:delete this._events[v]);else{for(var b=0,m=[],g=p.length;b<g;b++)(p[b].fn!==l||u&&!p[b].once||a&&p[b].context!==a)&&m.push(p[b]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount==0?this._events=new s:delete this._events[v]}return this},c.prototype.removeAllListeners=function(f){var l;return f?(l=i?i+f:f,this._events[l]&&(--this._eventsCount==0?this._events=new s:delete this._events[l])):(this._events=new s,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=i,c.EventEmitter=c,typeof n!="undefined"&&(n.exports=c)},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(V,Z){var J=[],Y=!0,le=!1,se=void 0;try{for(var ue=V[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(V,Z){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return W(V,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function W(V,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(V,Y.key,Y)}}return function(V,Z,J){return Z&&W(V.prototype,Z),J&&W(V,J),V}}(),c=o(3),h=w(c),f=o(2),l=w(f),a=o(0),u=w(a),v=o(5),p=w(v),b=o(10),m=w(b),g=o(9),_=w(g),y=o(36),O=o(37),P=o(13),T=w(P),A=o(26),I=o(38),x=o(39),E=o(40);function w(W){return W&&W.__esModule?W:{default:W}}function C(W,V,Z){return V in W?Object.defineProperty(W,V,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[V]=Z,W}function D(W,V){if(!(W instanceof V))throw new TypeError("Cannot call a class as a function")}function R(W,V){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:W}function B(W,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);W.prototype=Object.create(V&&V.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(W,V):W.__proto__=V)}var H=(0,m.default)("quill:clipboard"),G="__ql-matcher",q=[[Node.TEXT_NODE,we],[Node.TEXT_NODE,ce],["br",Q],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,he],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,Fe],["li",oe],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",ne]],M=[y.AlignAttribute,I.DirectionAttribute].reduce(function(W,V){return W[V.keyName]=V,W},{}),S=[y.AlignStyle,O.BackgroundStyle,A.ColorStyle,I.DirectionStyle,x.FontStyle,E.SizeStyle].reduce(function(W,V){return W[V.keyName]=V,W},{}),N=function(W){B(V,W);function V(Z,J){D(this,V);var Y=R(this,(V.__proto__||Object.getPrototypeOf(V)).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 d(V,[{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 l.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],ye=$(this.container,ze,et);return j(ye,`
|
|
56
|
-
`)&&
|
|
57
|
-
`)||
|
|
58
|
-
`),
|
|
59
|
-
`))return
|
|
60
|
-
`)||(L(W)||
|
|
61
|
-
`),
|
|
53
|
+
`);return $.insert(k,S.attributes)}return $.push(S)},new p.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,w){var E=[],x=!0,P=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(x=(B=R.next()).done)&&(E.push(B.value),!(w&&E.length===w));x=!0);}catch(U){P=!0,D=U}finally{try{!x&&R.return&&R.return()}finally{if(P)throw D}}return E}return function(I,w){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function A(I,w){for(var E=0;E<w.length;E++){var x=w[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(I,x.key,x)}}return function(I,w,E){return w&&A(I.prototype,w),E&&A(I,E),I}}(),f=o(0),c=m(f),p=o(21),u=m(p),l=o(11),s=m(l),d=o(8),v=m(d),h=o(10),b=m(h);function m(A){return A&&A.__esModule?A:{default:A}}function g(A){if(Array.isArray(A)){for(var I=0,w=Array(A.length);I<A.length;I++)w[I]=A[I];return w}else return Array.from(A)}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}var y=(0,b.default)("quill:selection"),O=function A(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,A),this.index=I,this.length=w},N=function(){function A(I,w){var E=this;_(this,A),this.emitter=w,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(x,P){x===v.default.events.TEXT_CHANGE&&P.length()>0&&E.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!E.hasFocus()){var x=E.getNativeRange();x!=null&&x.start.node!==E.cursor.textNode&&E.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(x.start.node,x.start.offset,x.end.node,x.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(x,P){if(P.range){var D=P.range,R=D.startNode,B=D.startOffset,U=D.endNode,G=D.endOffset;E.setNativeRange(R,B,U,G)}}),this.update(v.default.sources.SILENT)}return a(A,[{key:"handleComposition",value:function(){var w=this;this.root.addEventListener("compositionstart",function(){w.composing=!0}),this.root.addEventListener("compositionend",function(){if(w.composing=!1,w.cursor.parent){var E=w.cursor.restore();if(!E)return;setTimeout(function(){w.setNativeRange(E.startNode,E.startOffset,E.endNode,E.endOffset)},1)}})}},{key:"handleDragging",value:function(){var w=this;this.emitter.listenDOM("mousedown",document.body,function(){w.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){w.mouseDown=!1,w.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(w,E){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[w])){this.scroll.update();var x=this.getNativeRange();if(!(x==null||!x.native.collapsed||c.default.query(w,c.default.Scope.BLOCK))){if(x.start.node!==this.cursor.textNode){var P=c.default.find(x.start.node,!1);if(P==null)return;if(P instanceof c.default.Leaf){var D=P.split(x.start.offset);P.parent.insertBefore(this.cursor,D)}else P.insertBefore(this.cursor,x.start.node);this.cursor.attach()}this.cursor.format(w,E),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x=this.scroll.length();w=Math.min(w,x-1),E=Math.min(w+E,x-1)-w;var P=void 0,D=this.scroll.leaf(w),R=i(D,2),B=R[0],U=R[1];if(B==null)return null;var G=B.position(U,!0),q=i(G,2);P=q[0],U=q[1];var $=document.createRange();if(E>0){$.setStart(P,U);var S=this.scroll.leaf(w+E),C=i(S,2);if(B=C[0],U=C[1],B==null)return null;var k=B.position(U,!0),F=i(k,2);return P=F[0],U=F[1],$.setEnd(P,U),$.getBoundingClientRect()}else{var j="left",L=void 0;return P instanceof Text?(U<P.data.length?($.setStart(P,U),$.setEnd(P,U+1)):($.setStart(P,U-1),$.setEnd(P,U),j="right"),L=$.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),U>0&&(j="right")),{bottom:L.top+L.height,height:L.height,left:L[j],right:L[j],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var w=document.getSelection();if(w==null||w.rangeCount<=0)return null;var E=w.getRangeAt(0);if(E==null)return null;var x=this.normalizeNative(E);return y.info("getNativeRange",x),x}},{key:"getRange",value:function(){var w=this.getNativeRange();if(w==null)return[null,null];var E=this.normalizedToRange(w);return[E,w]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(w){var E=this,x=[[w.start.node,w.start.offset]];w.native.collapsed||x.push([w.end.node,w.end.offset]);var P=x.map(function(B){var U=i(B,2),G=U[0],q=U[1],$=c.default.find(G,!0),S=$.offset(E.scroll);return q===0?S:$ instanceof c.default.Container?S+$.length():S+$.index(G,q)}),D=Math.min(Math.max.apply(Math,g(P)),this.scroll.length()-1),R=Math.min.apply(Math,[D].concat(g(P)));return new O(R,D-R)}},{key:"normalizeNative",value:function(w){if(!T(this.root,w.startContainer)||!w.collapsed&&!T(this.root,w.endContainer))return null;var E={start:{node:w.startContainer,offset:w.startOffset},end:{node:w.endContainer,offset:w.endOffset},native:w};return[E.start,E.end].forEach(function(x){for(var P=x.node,D=x.offset;!(P instanceof Text)&&P.childNodes.length>0;)if(P.childNodes.length>D)P=P.childNodes[D],D=0;else if(P.childNodes.length===D)P=P.lastChild,D=P instanceof Text?P.data.length:P.childNodes.length+1;else break;x.node=P,x.offset=D}),E}},{key:"rangeToNative",value:function(w){var E=this,x=w.collapsed?[w.index]:[w.index,w.index+w.length],P=[],D=this.scroll.length();return x.forEach(function(R,B){R=Math.min(D-1,R);var U=void 0,G=E.scroll.leaf(R),q=i(G,2),$=q[0],S=q[1],C=$.position(S,B!==0),k=i(C,2);U=k[0],S=k[1],P.push(U,S)}),P.length<2&&(P=P.concat(P)),P}},{key:"scrollIntoView",value:function(w){var E=this.lastRange;if(E!=null){var x=this.getBounds(E.index,E.length);if(x!=null){var P=this.scroll.length()-1,D=this.scroll.line(Math.min(E.index,P)),R=i(D,1),B=R[0],U=B;if(E.length>0){var G=this.scroll.line(Math.min(E.index+E.length,P)),q=i(G,1);U=q[0]}if(!(B==null||U==null)){var $=w.getBoundingClientRect();x.top<$.top?w.scrollTop-=$.top-x.top:x.bottom>$.bottom&&(w.scrollTop+=x.bottom-$.bottom)}}}}},{key:"setNativeRange",value:function(w,E){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",w,E,x,P),!(w!=null&&(this.root.parentNode==null||w.parentNode==null||x.parentNode==null))){var R=document.getSelection();if(R!=null)if(w!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||D||w!==B.startContainer||E!==B.startOffset||x!==B.endContainer||P!==B.endOffset){w.tagName=="BR"&&(E=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode),x.tagName=="BR"&&(P=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode);var U=document.createRange();U.setStart(w,E),U.setEnd(x,P),R.removeAllRanges(),R.addRange(U)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof E=="string"&&(x=E,E=!1),y.info("setRange",w),w!=null){var P=this.rangeToNative(w);this.setNativeRange.apply(this,g(P).concat([E]))}else this.setNativeRange(null);this.update(x)}},{key:"update",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,E=this.lastRange,x=this.getRange(),P=i(x,2),D=P[0],R=P[1];if(this.lastRange=D,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,s.default)(E,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[v.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(E),w];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(U)),w!==v.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,U)}}}}]),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=N},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(h,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}return function(h,b,m){return b&&v(h.prototype,b),m&&v(h,m),h}}(),a=function v(h,b,m){h===null&&(h=Function.prototype);var g=Object.getOwnPropertyDescriptor(h,b);if(g===void 0){var _=Object.getPrototypeOf(h);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(0),c=p(f);function p(v){return v&&v.__esModule?v:{default:v}}function u(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function s(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var d=function(v){s(h,v);function h(){return u(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,[{key:"insertInto",value:function(m,g){m.children.length===0?a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertInto",this).call(this,m,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),h}(c.default.Embed);d.blotName="break",d.tagName="BR",t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(44),f=o(30),c=o(1),p=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.build(),v}return s.prototype.appendChild=function(d){this.insertBefore(d)},s.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(d){d.attach()})},s.prototype.build=function(){var d=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var h=u(v);d.insertBefore(h,d.children.head||void 0)}catch(b){if(b instanceof c.ParchmentError)return;throw b}})},s.prototype.deleteAt=function(d,v){if(d===0&&v===this.length())return this.remove();this.children.forEachAt(d,v,function(h,b,m){h.deleteAt(b,m)})},s.prototype.descendant=function(d,v){var h=this.children.find(v),b=h[0],m=h[1];return d.blotName==null&&d(b)||d.blotName!=null&&b instanceof d?[b,m]:b instanceof s?b.descendant(d,m):[null,-1]},s.prototype.descendants=function(d,v,h){v===void 0&&(v=0),h===void 0&&(h=Number.MAX_VALUE);var b=[],m=h;return this.children.forEachAt(v,h,function(g,_,y){(d.blotName==null&&d(g)||d.blotName!=null&&g instanceof d)&&b.push(g),g instanceof s&&(b=b.concat(g.descendants(d,_,m))),m-=y}),b},s.prototype.detach=function(){this.children.forEach(function(d){d.detach()}),l.prototype.detach.call(this)},s.prototype.formatAt=function(d,v,h,b){this.children.forEachAt(d,v,function(m,g,_){m.formatAt(g,_,h,b)})},s.prototype.insertAt=function(d,v,h){var b=this.children.find(d),m=b[0],g=b[1];if(m)m.insertAt(g,v,h);else{var _=h==null?c.create("text",v):c.create(v,h);this.appendChild(_)}},s.prototype.insertBefore=function(d,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(h){return d instanceof h}))throw new c.ParchmentError("Cannot insert "+d.statics.blotName+" into "+this.statics.blotName);d.insertInto(this,v)},s.prototype.length=function(){return this.children.reduce(function(d,v){return d+v.length()},0)},s.prototype.moveChildren=function(d,v){this.children.forEach(function(h){d.insertBefore(h,v)})},s.prototype.optimize=function(d){if(l.prototype.optimize.call(this,d),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.create(this.statics.defaultChild);this.appendChild(v),v.optimize(d)}else this.remove()},s.prototype.path=function(d,v){v===void 0&&(v=!1);var h=this.children.find(d,v),b=h[0],m=h[1],g=[[this,d]];return b instanceof s?g.concat(b.path(m,v)):(b!=null&&g.push([b,m]),g)},s.prototype.removeChild=function(d){this.children.remove(d)},s.prototype.replace=function(d){d instanceof s&&d.moveChildren(this),l.prototype.replace.call(this,d)},s.prototype.split=function(d,v){if(v===void 0&&(v=!1),!v){if(d===0)return this;if(d===this.length())return this.next}var h=this.clone();return this.parent.insertBefore(h,this.next),this.children.forEachAt(d,this.length(),function(b,m,g){b=b.split(m,v),h.appendChild(b)}),h},s.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},s.prototype.update=function(d,v){var h=this,b=[],m=[];d.forEach(function(g){g.target===h.domNode&&g.type==="childList"&&(b.push.apply(b,g.addedNodes),m.push.apply(m,g.removedNodes))}),m.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=c.find(g);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===h.domNode)&&_.detach()}}),b.filter(function(g){return g.parentNode==h.domNode}).sort(function(g,_){return g===_?0:g.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var _=null;g.nextSibling!=null&&(_=c.find(g.nextSibling));var y=u(g);(y.next!=_||y.next==null)&&(y.parent!=null&&y.parent.removeChild(h),h.insertBefore(y,_||void 0))})},s}(f.default);function u(l){var s=c.find(l);if(s==null)try{s=c.create(l)}catch{s=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){s.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(s.domNode,l),s.attach()}return s}t.default=p},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12),f=o(31),c=o(17),p=o(1),u=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.attributes=new f.default(v.domNode),v}return s.formats=function(d){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return d.tagName.toLowerCase()},s.prototype.format=function(d,v){var h=p.query(d);h instanceof a.default?this.attributes.attribute(h,v):v&&h!=null&&(d!==this.statics.blotName||this.formats()[d]!==v)&&this.replaceWith(d,v)},s.prototype.formats=function(){var d=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(d[this.statics.blotName]=v),d},s.prototype.replaceWith=function(d,v){var h=l.prototype.replaceWith.call(this,d,v);return this.attributes.copy(h),h},s.prototype.update=function(d,v){var h=this;l.prototype.update.call(this,d,v),d.some(function(b){return b.target===h.domNode&&b.type==="attributes"})&&this.attributes.build()},s.prototype.wrap=function(d,v){var h=l.prototype.wrap.call(this,d,v);return h instanceof s&&h.statics.scope===this.statics.scope&&this.attributes.move(h),h},s}(c.default);t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){p(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(30),f=o(1),c=function(p){i(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.value=function(l){return!0},u.prototype.index=function(l,s){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(s,1):-1},u.prototype.position=function(l,s){var d=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(d+=1),[this.parent.domNode,d]},u.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},u.scope=f.Scope.INLINE_BLOT,u}(a.default);t.default=c},function(n,t,o){var i=o(11),a=o(3),f={attributes:{compose:function(p,u,l){typeof p!="object"&&(p={}),typeof u!="object"&&(u={});var s=a(!0,{},u);l||(s=Object.keys(s).reduce(function(v,h){return s[h]!=null&&(v[h]=s[h]),v},{}));for(var d in p)p[d]!==void 0&&u[d]===void 0&&(s[d]=p[d]);return Object.keys(s).length>0?s:void 0},diff:function(p,u){typeof p!="object"&&(p={}),typeof u!="object"&&(u={});var l=Object.keys(p).concat(Object.keys(u)).reduce(function(s,d){return i(p[d],u[d])||(s[d]=u[d]===void 0?null:u[d]),s},{});return Object.keys(l).length>0?l:void 0},transform:function(p,u,l){if(typeof p!="object")return u;if(typeof u=="object"){if(!l)return u;var s=Object.keys(u).reduce(function(d,v){return p[v]===void 0&&(d[v]=u[v]),d},{});return Object.keys(s).length>0?s:void 0}}},iterator:function(p){return new c(p)},length:function(p){return typeof p.delete=="number"?p.delete:typeof p.retain=="number"?p.retain:typeof p.insert=="string"?p.insert.length:1}};function c(p){this.ops=p,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(p){p||(p=1/0);var u=this.ops[this.index];if(u){var l=this.offset,s=f.length(u);if(p>=s-l?(p=s-l,this.index+=1,this.offset=0):this.offset+=p,typeof u.delete=="number")return{delete:p};var d={};return u.attributes&&(d.attributes=u.attributes),typeof u.retain=="number"?d.retain=p:typeof u.insert=="string"?d.insert=u.insert.substr(l,p):d.insert=u.insert,d}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?f.length(this.ops[this.index])-this.offset:1/0},c.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"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var p=this.offset,u=this.index,l=this.next(),s=this.ops.slice(this.index);return this.offset=p,this.index=u,[l].concat(s)}else return[]},n.exports=f},function(n,t){var o=function(){function i(h,b){return b!=null&&h instanceof b}var a;try{a=Map}catch{a=function(){}}var f;try{f=Set}catch{f=function(){}}var c;try{c=Promise}catch{c=function(){}}function p(h,b,m,g,_){typeof b=="object"&&(m=b.depth,g=b.prototype,_=b.includeNonEnumerable,b=b.circular);var y=[],O=[],N=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof m=="undefined"&&(m=1/0);function T(A,I){if(A===null)return null;if(I===0)return A;var w,E;if(typeof A!="object")return A;if(i(A,a))w=new a;else if(i(A,f))w=new f;else if(i(A,c))w=new c(function($,S){A.then(function(C){$(T(C,I-1))},function(C){S(T(C,I-1))})});else if(p.__isArray(A))w=[];else if(p.__isRegExp(A))w=new RegExp(A.source,v(A)),A.lastIndex&&(w.lastIndex=A.lastIndex);else if(p.__isDate(A))w=new Date(A.getTime());else{if(N&&Buffer.isBuffer(A))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(A.length):w=new Buffer(A.length),A.copy(w),w;i(A,Error)?w=Object.create(A):typeof g=="undefined"?(E=Object.getPrototypeOf(A),w=Object.create(E)):(w=Object.create(g),E=g)}if(b){var x=y.indexOf(A);if(x!=-1)return O[x];y.push(A),O.push(w)}i(A,a)&&A.forEach(function($,S){var C=T(S,I-1),k=T($,I-1);w.set(C,k)}),i(A,f)&&A.forEach(function($){var S=T($,I-1);w.add(S)});for(var P in A){var D;E&&(D=Object.getOwnPropertyDescriptor(E,P)),!(D&&D.set==null)&&(w[P]=T(A[P],I-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(A),P=0;P<R.length;P++){var B=R[P],U=Object.getOwnPropertyDescriptor(A,B);U&&!U.enumerable&&!_||(w[B]=T(A[B],I-1),U.enumerable||Object.defineProperty(w,B,{enumerable:!1}))}if(_)for(var G=Object.getOwnPropertyNames(A),P=0;P<G.length;P++){var q=G[P],U=Object.getOwnPropertyDescriptor(A,q);U&&U.enumerable||(w[q]=T(A[q],I-1),Object.defineProperty(w,q,{enumerable:!1}))}return w}return T(h,m)}p.clonePrototype=function(b){if(b===null)return null;var m=function(){};return m.prototype=b,new m};function u(h){return Object.prototype.toString.call(h)}p.__objToStr=u;function l(h){return typeof h=="object"&&u(h)==="[object Date]"}p.__isDate=l;function s(h){return typeof h=="object"&&u(h)==="[object Array]"}p.__isArray=s;function d(h){return typeof h=="object"&&u(h)==="[object RegExp]"}p.__isRegExp=d;function v(h){var b="";return h.global&&(b+="g"),h.ignoreCase&&(b+="i"),h.multiline&&(b+="m"),b}return p.__getRegExpFlags=v,p}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(E,x){var P=[],D=!0,R=!1,B=void 0;try{for(var U=E[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(P.push(G.value),!(x&&P.length===x));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if(R)throw B}}return P}return function(E,x){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return w(E,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function w(E,x){for(var P=0;P<x.length;P++){var D=x[P];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,x,P){return x&&w(E.prototype,x),P&&w(E,P),E}}(),f=function w(E,x,P){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,x);if(D===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:w(R,x,P)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(P)}},c=o(0),p=y(c),u=o(8),l=y(u),s=o(4),d=y(s),v=o(16),h=y(v),b=o(13),m=y(b),g=o(25),_=y(g);function y(w){return w&&w.__esModule?w:{default:w}}function O(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function N(w,E){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:w}function T(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(w,E):w.__proto__=E)}function A(w){return w instanceof d.default||w instanceof s.BlockEmbed}var I=function(w){T(E,w);function E(x,P){O(this,E);var D=N(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x));return D.emitter=P.emitter,Array.isArray(P.whitelist)&&(D.whitelist=P.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),D.domNode.addEventListener("DOMNodeInserted",function(){}),D.optimize(),D.enable(),D}return a(E,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(P,D){var R=this.line(P),B=i(R,2),U=B[0],G=B[1],q=this.line(P+D),$=i(q,1),S=$[0];if(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,P,D),S!=null&&U!==S&&G>0){if(U instanceof s.BlockEmbed||S instanceof s.BlockEmbed){this.optimize();return}if(U instanceof m.default){var C=U.newlineIndex(U.length(),!0);if(C>-1&&(U=U.split(C+1),U===S)){this.optimize();return}}else if(S instanceof m.default){var k=S.newlineIndex(0);k>-1&&S.split(k+1)}var F=S.children.head instanceof h.default?null:S.children.head;U.moveChildren(S,F),U.remove()}this.optimize()}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",P)}},{key:"formatAt",value:function(P,D,R,B){this.whitelist!=null&&!this.whitelist[R]||(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,P,D,R,B),this.optimize())}},{key:"insertAt",value:function(P,D,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[D])){if(P>=this.length())if(R==null||p.default.query(D,p.default.Scope.BLOCK)==null){var B=p.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&D.endsWith(`
|
|
54
|
+
`)&&(D=D.slice(0,-1)),B.insertAt(0,D,R)}else{var U=p.default.create(D,R);this.appendChild(U)}else f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,P,D,R);this.optimize()}}},{key:"insertBefore",value:function(P,D){if(P.statics.scope===p.default.Scope.INLINE_BLOT){var R=p.default.create(this.statics.defaultChild);R.appendChild(P),P=R}f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,P,D)}},{key:"leaf",value:function(P){return this.path(P).pop()||[null,-1]}},{key:"line",value:function(P){return P===this.length()?this.line(P-1):this.descendant(A,P)}},{key:"lines",value:function(){var P=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(U,G,q){var $=[],S=q;return U.children.forEachAt(G,q,function(C,k,F){A(C)?$.push(C):C instanceof p.default.Container&&($=$.concat(B(C,k,S))),S-=F}),$};return R(this,P,D)}},{key:"optimize",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,P,D),P.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,P,D))}},{key:"path",value:function(P){return f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,P).slice(1)}},{key:"update",value:function(P){if(this.batch!==!0){var D=l.default.sources.USER;typeof P=="string"&&(D=P),Array.isArray(P)||(P=this.observer.takeRecords()),P.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,D,P),f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"update",this).call(this,P.concat([])),P.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,D,P)}}}]),E}(p.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[d.default,s.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},a=function(){function L(M,H){var z=[],Y=!0,ee=!1,re=void 0;try{for(var ae=M[Symbol.iterator](),de;!(Y=(de=ae.next()).done)&&(z.push(de.value),!(H&&z.length===H));Y=!0);}catch(ve){ee=!0,re=ve}finally{try{!Y&&ae.return&&ae.return()}finally{if(ee)throw re}}return z}return function(M,H){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return L(M,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function L(M,H){for(var z=0;z<H.length;z++){var Y=H[z];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(M,Y.key,Y)}}return function(M,H,z){return H&&L(M.prototype,H),z&&L(M,z),M}}(),c=o(21),p=w(c),u=o(11),l=w(u),s=o(3),d=w(s),v=o(2),h=w(v),b=o(20),m=w(b),g=o(0),_=w(g),y=o(5),O=w(y),N=o(10),T=w(N),A=o(9),I=w(A);function w(L){return L&&L.__esModule?L:{default:L}}function E(L,M,H){return M in L?Object.defineProperty(L,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):L[M]=H,L}function x(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function P(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",U=function(L){D(M,L),f(M,null,[{key:"match",value:function(z,Y){return Y=j(Y),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ee){return!!Y[ee]!==z[ee]&&Y[ee]!==null})?!1:Y.key===(z.which||z.keyCode)}}]);function M(H,z){x(this,M);var Y=P(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H,z));return Y.bindings={},Object.keys(Y.options.bindings).forEach(function(ee){ee==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||Y.options.bindings[ee]&&Y.addBinding(Y.options.bindings[ee])}),Y.addBinding({key:M.keys.ENTER,shiftKey:null},C),Y.addBinding({key:M.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!0},q),Y.addBinding({key:M.keys.DELETE},{collapsed:!0},$)):(Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),Y.addBinding({key:M.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!1},S),Y.addBinding({key:M.keys.DELETE},{collapsed:!1},S),Y.addBinding({key:M.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),Y.listen(),Y}return f(M,[{key:"addBinding",value:function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=j(z);if(re==null||re.key==null)return R.warn("Attempted to add invalid keyboard binding",re);typeof Y=="function"&&(Y={handler:Y}),typeof ee=="function"&&(ee={handler:ee}),re=(0,d.default)(re,Y,ee),this.bindings[re.key]=this.bindings[re.key]||[],this.bindings[re.key].push(re)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(Y){if(!Y.defaultPrevented){var ee=Y.which||Y.keyCode,re=(z.bindings[ee]||[]).filter(function(Te){return M.match(Y,Te)});if(re.length!==0){var ae=z.quill.getSelection();if(!(ae==null||!z.quill.hasFocus())){var de=z.quill.getLine(ae.index),ve=a(de,2),qe=ve[0],Ce=ve[1],W=z.quill.getLeaf(ae.index),K=a(W,2),Z=K[0],Q=K[1],X=ae.length===0?[Z,Q]:z.quill.getLeaf(ae.index+ae.length),se=a(X,2),ue=se[0],fe=se[1],Ke=Z instanceof _.default.Text?Z.value().slice(0,Q):"",lt=ue instanceof _.default.Text?ue.value().slice(fe):"",be={collapsed:ae.length===0,empty:ae.length===0&&qe.length()<=1,format:z.quill.getFormat(ae),offset:Ce,prefix:Ke,suffix:lt},Nd=re.some(function(Te){if(Te.collapsed!=null&&Te.collapsed!==be.collapsed||Te.empty!=null&&Te.empty!==be.empty||Te.offset!=null&&Te.offset!==be.offset)return!1;if(Array.isArray(Te.format)){if(Te.format.every(function(yt){return be.format[yt]==null}))return!1}else if(i(Te.format)==="object"&&!Object.keys(Te.format).every(function(yt){return Te.format[yt]===!0?be.format[yt]!=null:Te.format[yt]===!1?be.format[yt]==null:(0,l.default)(Te.format[yt],be.format[yt])}))return!1;return Te.prefix!=null&&!Te.prefix.test(be.prefix)||Te.suffix!=null&&!Te.suffix.test(be.suffix)?!1:Te.handler.call(z,ae,be)!==!0});Nd&&Y.preventDefault()}}}})}}]),M}(I.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(M,H){H.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(M){this.quill.deleteText(M.index-1,1,O.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(M){this.quill.history.cutoff();var H=new h.default().retain(M.index).delete(M.length).insert(" ");this.quill.updateContents(H,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index+1,O.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(M,H){this.quill.format("list",!1,O.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(M){var H=this.quill.getLine(M.index),z=a(H,2),Y=z[0],ee=z[1],re=(0,d.default)({},Y.formats(),{list:"checked"}),ae=new h.default().retain(M.index).insert(`
|
|
55
|
+
`,re).retain(Y.length()-ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(ae,O.default.sources.USER),this.quill.setSelection(M.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(M,H){var z=this.quill.getLine(M.index),Y=a(z,2),ee=Y[0],re=Y[1],ae=new h.default().retain(M.index).insert(`
|
|
56
|
+
`,H.format).retain(ee.length()-re-1).retain(1,{header:null});this.quill.updateContents(ae,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,H){var z=H.prefix.length,Y=this.quill.getLine(M.index),ee=a(Y,2),re=ee[0],ae=ee[1];if(ae>z)return!0;var de=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":de="unchecked";break;case"[x]":de="checked";break;case"-":case"*":de="bullet";break;default:de="ordered"}this.quill.insertText(M.index," ",O.default.sources.USER),this.quill.history.cutoff();var ve=new h.default().retain(M.index-ae).delete(z+1).retain(re.length()-2-ae).retain(1,{list:de});this.quill.updateContents(ve,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index-z,O.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(M){var H=this.quill.getLine(M.index),z=a(H,2),Y=z[0],ee=z[1],re=new h.default().retain(M.index+Y.length()-ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(re,O.default.sources.USER)}},"embed left":G(U.keys.LEFT,!1),"embed left shift":G(U.keys.LEFT,!0),"embed right":G(U.keys.RIGHT,!1),"embed right shift":G(U.keys.RIGHT,!0)}};function G(L,M){var H,z=L===U.keys.LEFT?"prefix":"suffix";return H={key:L,shiftKey:M,altKey:null},E(H,z,/^$/),E(H,"handler",function(ee){var re=ee.index;L===U.keys.RIGHT&&(re+=ee.length+1);var ae=this.quill.getLeaf(re),de=a(ae,1),ve=de[0];return ve instanceof _.default.Embed?(L===U.keys.LEFT?M?this.quill.setSelection(ee.index-1,ee.length+1,O.default.sources.USER):this.quill.setSelection(ee.index-1,O.default.sources.USER):M?this.quill.setSelection(ee.index,ee.length+1,O.default.sources.USER):this.quill.setSelection(ee.index+ee.length+1,O.default.sources.USER),!1):!0}),H}function q(L,M){if(!(L.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(L.index),z=a(H,1),Y=z[0],ee={};if(M.offset===0){var re=this.quill.getLine(L.index-1),ae=a(re,1),de=ae[0];if(de!=null&&de.length()>1){var ve=Y.formats(),qe=this.quill.getFormat(L.index-1,1);ee=m.default.attributes.diff(ve,qe)||{}}}var Ce=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(M.prefix)?2:1;this.quill.deleteText(L.index-Ce,Ce,O.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(L.index-Ce,Ce,ee,O.default.sources.USER),this.quill.focus()}}function $(L,M){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(M.suffix)?2:1;if(!(L.index>=this.quill.getLength()-H)){var z={},Y=0,ee=this.quill.getLine(L.index),re=a(ee,1),ae=re[0];if(M.offset>=ae.length()-1){var de=this.quill.getLine(L.index+1),ve=a(de,1),qe=ve[0];if(qe){var Ce=ae.formats(),W=this.quill.getFormat(L.index,1);z=m.default.attributes.diff(Ce,W)||{},Y=qe.length()}}this.quill.deleteText(L.index,H,O.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+Y-1,H,z,O.default.sources.USER)}}function S(L){var M=this.quill.getLines(L),H={};if(M.length>1){var z=M[0].formats(),Y=M[M.length-1].formats();H=m.default.attributes.diff(Y,z)||{}}this.quill.deleteText(L,O.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(L.index,1,H,O.default.sources.USER),this.quill.setSelection(L.index,O.default.sources.SILENT),this.quill.focus()}function C(L,M){var H=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys(M.format).reduce(function(Y,ee){return _.default.query(ee,_.default.Scope.BLOCK)&&!Array.isArray(M.format[ee])&&(Y[ee]=M.format[ee]),Y},{});this.quill.insertText(L.index,`
|
|
57
|
+
`,z,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(M.format).forEach(function(Y){z[Y]==null&&(Array.isArray(M.format[Y])||Y!=="link"&&H.quill.format(Y,M.format[Y],O.default.sources.USER))})}function k(L){return{key:U.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(H){var z=_.default.query("code-block"),Y=H.index,ee=H.length,re=this.quill.scroll.descendant(z,Y),ae=a(re,2),de=ae[0],ve=ae[1];if(de!=null){var qe=this.quill.getIndex(de),Ce=de.newlineIndex(ve,!0)+1,W=de.newlineIndex(qe+ve+ee),K=de.domNode.textContent.slice(Ce,W).split(`
|
|
58
|
+
`);ve=0,K.forEach(function(Z,Q){L?(de.insertAt(Ce+ve,z.TAB),ve+=z.TAB.length,Q===0?Y+=z.TAB.length:ee+=z.TAB.length):Z.startsWith(z.TAB)&&(de.deleteAt(Ce+ve,z.TAB.length),ve-=z.TAB.length,Q===0?Y-=z.TAB.length:ee-=z.TAB.length),ve+=Z.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(Y,ee,O.default.sources.SILENT)}}}}function F(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(L,!z.format[L],O.default.sources.USER)}}}function j(L){if(typeof L=="string"||typeof L=="number")return j({key:L});if((typeof L=="undefined"?"undefined":i(L))==="object"&&(L=(0,p.default)(L,!1)),typeof L.key=="string")if(U.keys[L.key.toUpperCase()]!=null)L.key=U.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=U,t.SHORTKEY=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){var y=[],O=!0,N=!1,T=void 0;try{for(var A=g[Symbol.iterator](),I;!(O=(I=A.next()).done)&&(y.push(I.value),!(_&&y.length===_));O=!0);}catch(w){N=!0,T=w}finally{try{!O&&A.return&&A.return()}finally{if(N)throw T}}return y}return function(g,_){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return m(g,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),c=o(0),p=s(c),u=o(7),l=s(u);function s(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function v(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function h(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var b=function(m){h(g,m),f(g,null,[{key:"value",value:function(){}}]);function g(_,y){d(this,g);var O=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return O.selection=y,O.textNode=document.createTextNode(g.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return f(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,O){if(this._length!==0)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,y,O);for(var N=this,T=0;N!=null&&N.statics.scope!==p.default.Scope.BLOCK_BLOT;)T+=N.offset(N.parent),N=N.parent;N!=null&&(this._length=g.CONTENTS.length,N.optimize(),N.formatAt(T,g.CONTENTS.length,y,O),this._length=0)}},{key:"index",value:function(y,O){return y===this.textNode?0:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(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 y=this.textNode,O=this.selection.getNativeRange(),N=void 0,T=void 0,A=void 0;if(O!=null&&O.start.node===y&&O.end.node===y){var I=[y,O.start.offset,O.end.offset];N=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 w=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof l.default?(N=this.next.domNode,this.next.insertAt(0,w),this.textNode.data=g.CONTENTS):(this.textNode.data=w,this.parent.insertBefore(p.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),T!=null){var E=[T,A].map(function(P){return Math.max(0,Math.min(N.data.length,P-1))}),x=i(E,2);return T=x[0],A=x[1],{startNode:N,startOffset:T,endNode:N,endOffset:A}}}}},{key:"update",value:function(y,O){var N=this;if(y.some(function(A){return A.type==="characterData"&&A.target===N.textNode})){var T=this.restore();T&&(O.range=T)}}},{key:"value",value:function(){return""}}]),g}(p.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),a=p(i),f=o(4),c=p(f);function p(v){return v&&v.__esModule?v:{default:v}}function u(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function s(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var d=function(v){s(h,v);function h(){return u(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(a.default.Container);d.allowedChildren=[c.default,f.BlockEmbed,d],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(0),c=p(f);function p(b){return b&&b.__esModule?b:{default:b}}function u(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function l(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function s(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var d=function(b){s(m,b);function m(){return u(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(_){var y=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,_);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):y}}]),m}(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),h=new d("color","color",{scope:c.default.Scope.INLINE});t.ColorAttributor=d,t.ColorClass=v,t.ColorStyle=h},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i=function(){function h(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&h(b.prototype,m),g&&h(b,g),b}}(),a=function h(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:h(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},f=o(6),c=p(f);function p(h){return h&&h.__esModule?h:{default:h}}function u(h,b){if(!(h instanceof b))throw new TypeError("Cannot call a class as a function")}function l(h,b){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:h}function s(h,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);h.prototype=Object.create(b&&b.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(h,b):h.__proto__=b)}var d=function(h){s(b,h);function b(){return u(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"format",value:function(g,_){if(g!==this.statics.blotName||!_)return a(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 _=a(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 v(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),b}(c.default);d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(h,b){var m=document.createElement("a");m.href=h;var g=m.href.slice(0,m.href.indexOf(":"));return b.indexOf(g)>-1}t.default=d,t.sanitize=v},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},a=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),f=o(23),c=l(f),p=o(107),u=l(p);function l(b){return b&&b.__esModule?b:{default:b}}function s(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}var d=0;function v(b,m){b.setAttribute(m,b.getAttribute(m)!=="true")}var h=function(){function b(m){var g=this;s(this,b),this.select=m,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 c.default.keys.ENTER:g.togglePicker();break;case c.default.keys.ESCAPE:g.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var _=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),g.hasAttribute("value")&&y.setAttribute("data-value",g.getAttribute("value")),g.textContent&&y.setAttribute("data-label",g.textContent),y.addEventListener("click",function(){_.selectItem(y,!0)}),y.addEventListener("keydown",function(O){switch(O.keyCode){case c.default.keys.ENTER:_.selectItem(y,!0),O.preventDefault();break;case c.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=u.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-"+d,d+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(y){var O=g.buildItem(y);_.appendChild(O),y.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,y=this.container.querySelector(".ql-selected");if(g!==y&&(y!=null&&y.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 y=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),b}();t.default=h},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=R(i),f=o(5),c=R(f),p=o(4),u=R(p),l=o(16),s=R(l),d=o(25),v=R(d),h=o(24),b=R(h),m=o(35),g=R(m),_=o(6),y=R(_),O=o(22),N=R(O),T=o(7),A=R(T),I=o(55),w=R(I),E=o(42),x=R(E),P=o(23),D=R(P);function R(B){return B&&B.__esModule?B:{default:B}}c.default.register({"blots/block":u.default,"blots/block/embed":p.BlockEmbed,"blots/break":s.default,"blots/container":v.default,"blots/cursor":b.default,"blots/embed":g.default,"blots/inline":y.default,"blots/scroll":N.default,"blots/text":A.default,"modules/clipboard":w.default,"modules/history":x.default,"modules/keyboard":D.default}),a.default.register(u.default,s.default,b.default,y.default,N.default,A.default),t.default=c.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=function(){function f(c){this.domNode=c,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(f.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),f.create=function(c){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var p;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?p=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?p=document.createElement(c):p=document.createElement(this.tagName[0])):p=document.createElement(this.tagName),this.className&&p.classList.add(this.className),p},f.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},f.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return i.create(c)},f.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},f.prototype.deleteAt=function(c,p){var u=this.isolate(c,p);u.remove()},f.prototype.formatAt=function(c,p,u,l){var s=this.isolate(c,p);if(i.query(u,i.Scope.BLOT)!=null&&l)s.wrap(u,l);else if(i.query(u,i.Scope.ATTRIBUTE)!=null){var d=i.create(this.statics.scope);s.wrap(d),d.format(u,l)}},f.prototype.insertAt=function(c,p,u){var l=u==null?i.create("text",p):i.create(p,u),s=this.split(c);this.parent.insertBefore(l,s)},f.prototype.insertInto=function(c,p){p===void 0&&(p=null),this.parent!=null&&this.parent.children.remove(this);var u=null;c.children.insertBefore(this,p),p!=null&&(u=p.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=u)&&c.domNode.insertBefore(this.domNode,u),this.parent=c,this.attach()},f.prototype.isolate=function(c,p){var u=this.split(c);return u.split(p),u},f.prototype.length=function(){return 1},f.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},f.prototype.optimize=function(c){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},f.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},f.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},f.prototype.replaceWith=function(c,p){var u=typeof c=="string"?i.create(c,p):c;return u.replace(this),u},f.prototype.split=function(c,p){return c===0?this:this.next},f.prototype.update=function(c,p){},f.prototype.wrap=function(c,p){var u=typeof c=="string"?i.create(c,p):c;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},f.blotName="abstract",f}();t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),a=o(32),f=o(33),c=o(1),p=function(){function u(l){this.attributes={},this.domNode=l,this.build()}return u.prototype.attribute=function(l,s){s?l.add(this.domNode,s)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},u.prototype.build=function(){var l=this;this.attributes={};var s=i.default.keys(this.domNode),d=a.default.keys(this.domNode),v=f.default.keys(this.domNode);s.concat(d).concat(v).forEach(function(h){var b=c.query(h,c.Scope.ATTRIBUTE);b instanceof i.default&&(l.attributes[b.attrName]=b)})},u.prototype.copy=function(l){var s=this;Object.keys(this.attributes).forEach(function(d){var v=s.attributes[d].value(s.domNode);l.format(d,v)})},u.prototype.move=function(l){var s=this;this.copy(l),Object.keys(this.attributes).forEach(function(d){s.attributes[d].remove(s.domNode)}),this.attributes={}},u.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(s,d){return s[d]=l.attributes[d].value(l.domNode),s},{})},u}();t.default=p},function(n,t,o){var i=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){p(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12);function f(p,u){var l=p.getAttribute("class")||"";return l.split(/\s+/).filter(function(s){return s.indexOf(u+"-")===0})}var c=function(p){i(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(s){return s.split("-").slice(0,-1).join("-")})},u.prototype.add=function(l,s){return this.canAdd(l,s)?(this.remove(l),l.classList.add(this.keyName+"-"+s),!0):!1},u.prototype.remove=function(l){var s=f(l,this.keyName);s.forEach(function(d){l.classList.remove(d)}),l.classList.length===0&&l.removeAttribute("class")},u.prototype.value=function(l){var s=f(l,this.keyName)[0]||"",d=s.slice(this.keyName.length+1);return this.canAdd(l,d)?d:""},u}(a.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){p(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12);function f(p){var u=p.split("-"),l=u.slice(1).map(function(s){return s[0].toUpperCase()+s.slice(1)}).join("");return u[0]+l}var c=function(p){i(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(s){var d=s.split(":");return d[0].trim()})},u.prototype.add=function(l,s){return this.canAdd(l,s)?(l.style[f(this.keyName)]=s,!0):!1},u.prototype.remove=function(l){l.style[f(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},u.prototype.value=function(l){var s=l.style[f(this.keyName)];return this.canAdd(l,s)?s:""},u}(a.default);t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(p,u){for(var l=0;l<u.length;l++){var s=u[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(p,s.key,s)}}return function(p,u,l){return u&&c(p.prototype,u),l&&c(p,l),p}}();function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}var f=function(){function c(p,u){a(this,c),this.quill=p,this.options=u,this.modules={}}return i(c,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(l){u.modules[l]==null&&u.addModule(l)})}},{key:"addModule",value:function(u){var l=this.quill.constructor.import("modules/"+u);return this.modules[u]=new l(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),c}();f.DEFAULTS={modules:{}},f.themes={default:f},t.default=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=o(0),c=l(f),p=o(7),u=l(p);function l(m){return m&&m.__esModule?m:{default:m}}function s(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function v(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var h="\uFEFF",b=function(m){v(g,m);function g(_){s(this,g);var y=d(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(O){y.contentNode.appendChild(O)}),y.leftGuard=document.createTextNode(h),y.rightGuard=document.createTextNode(h),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return i(g,[{key:"index",value:function(y,O){return y===this.leftGuard?0:y===this.rightGuard?1:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"restore",value:function(y){var O=void 0,N=void 0,T=y.data.split(h).join("");if(y===this.leftGuard)if(this.prev instanceof u.default){var A=this.prev.length();this.prev.insertAt(A,T),O={startNode:this.prev.domNode,startOffset:A+T.length}}else N=document.createTextNode(T),this.parent.insertBefore(c.default.create(N),this),O={startNode:N,startOffset:T.length};else y===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,T),O={startNode:this.next.domNode,startOffset:T.length}):(N=document.createTextNode(T),this.parent.insertBefore(c.default.create(N),this.next),O={startNode:N,startOffset:T.length}));return y.data=h,O}},{key:"update",value:function(y,O){var N=this;y.forEach(function(T){if(T.type==="characterData"&&(T.target===N.leftGuard||T.target===N.rightGuard)){var A=N.restore(T.target);A&&(O.range=A)}})}}]),g}(c.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),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},p=new a.default.Attributor.Attribute("align","align",c),u=new a.default.Attributor.Class("align","ql-align",c),l=new a.default.Attributor.Style("align","text-align",c);t.AlignAttribute=p,t.AlignClass=u,t.AlignStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=o(0),a=c(i),f=o(26);function c(l){return l&&l.__esModule?l:{default:l}}var p=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),u=new f.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});t.BackgroundClass=p,t.BackgroundStyle=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},p=new a.default.Attributor.Attribute("direction","dir",c),u=new a.default.Attributor.Class("direction","ql-direction",c),l=new a.default.Attributor.Style("direction","direction",c);t.DirectionAttribute=p,t.DirectionClass=u,t.DirectionStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=o(0),c=p(f);function p(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function l(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function s(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var d={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",d),h=function(m){s(g,m);function g(){return u(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"value",value:function(y){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),g}(c.default.Attributor.Style),b=new h("font","font-family",d);t.FontStyle=b,t.FontClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=o(0),a=f(i);function f(u){return u&&u.__esModule?u:{default:u}}var c=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),p=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=c,t.SizeStyle=p},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 _(y,O){for(var N=0;N<O.length;N++){var T=O[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,N){return O&&_(y.prototype,O),N&&_(y,N),y}}(),a=o(0),f=s(a),c=o(5),p=s(c),u=o(9),l=s(u);function s(_){return _&&_.__esModule?_:{default:_}}function d(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function v(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function h(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var b=function(_){h(y,_);function y(O,N){d(this,y);var T=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,O,N));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(p.default.events.EDITOR_CHANGE,function(A,I,w,E){A!==p.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||E===p.default.sources.USER?T.record(I,w):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(y,[{key:"change",value:function(N,T){if(this.stack[N].length!==0){var A=this.stack[N].pop();this.stack[T].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[N],p.default.sources.USER),this.ignoreChange=!1;var I=g(A[N]);this.quill.setSelection(I)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(N,T){if(N.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 w=this.stack.undo.pop();A=A.compose(w.undo),N=w.redo.compose(N)}else this.lastRecorded=I;this.stack.undo.push({redo:N,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(N){this.stack.undo.forEach(function(T){T.undo=N.transform(T.undo,!0),T.redo=N.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=N.transform(T.undo,!0),T.redo=N.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y}(l.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(_){var y=_.ops[_.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(`
|
|
59
|
+
`):y.attributes!=null?Object.keys(y.attributes).some(function(O){return f.default.query(O,f.default.Scope.BLOCK)!=null}):!1}function g(_){var y=_.reduce(function(N,T){return N+=T.delete||0,N},0),O=_.length()-y;return m(_)&&(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 C(k,F){for(var j=0;j<F.length;j++){var L=F[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}return function(k,F,j){return F&&C(k.prototype,F),j&&C(k,j),k}}(),a=function C(k,F,j){k===null&&(k=Function.prototype);var L=Object.getOwnPropertyDescriptor(k,F);if(L===void 0){var M=Object.getPrototypeOf(k);return M===null?void 0:C(M,F,j)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(j)}},f=o(3),c=I(f),p=o(2),u=I(p),l=o(8),s=I(l),d=o(23),v=I(d),h=o(34),b=I(h),m=o(59),g=I(m),_=o(60),y=I(_),O=o(28),N=I(O),T=o(61),A=I(T);function I(C){return C&&C.__esModule?C:{default:C}}function w(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")}function E(C,k){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:C}function x(C,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(C,k):C.__proto__=k)}var P=[!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],U=["small",!1,"large","huge"],G=function(C){x(k,C);function k(F,j){w(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j)),M=function H(z){if(!document.body.contains(F.root))return document.body.removeEventListener("click",H);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(Y){Y.container.contains(z.target)||Y.close()})};return F.emitter.listenDOM("click",document.body,M),L}return i(k,[{key:"addModule",value:function(j){var L=a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(j,L){j.forEach(function(M){var H=M.getAttribute("class")||"";H.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 Y=M.value||"";Y!=null&&L[z][Y]&&(M.innerHTML=L[z][Y])}})})}},{key:"buildPickers",value:function(j,L){var M=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&S(z,P),new y.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var Y=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&S(z,D,Y==="background"?"#ffffff":"#000000"),new g.default(z,L[Y])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?S(z,R):z.classList.contains("ql-header")?S(z,B):z.classList.contains("ql-size")&&S(z,U)),new N.default(z)});var H=function(){M.pickers.forEach(function(Y){Y.update()})};this.quill.on(s.default.events.EDITOR_CHANGE,H)}}]),k}(b.default);G.DEFAULTS=(0,c.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var k=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var j=new FileReader;j.onload=function(L){var M=k.quill.getSelection(!0);k.quill.updateContents(new u.default().retain(M.index).delete(M.length).insert({image:L.target.result}),s.default.sources.USER),k.quill.setSelection(M.index+1,s.default.sources.SILENT),F.value=""},j.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(C){x(k,C);function k(F,j){w(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(k,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(L){v.default.match(L,"enter")?(j.save(),L.preventDefault()):v.default.match(L,"escape")&&(j.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=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:j!==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-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=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",j,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,s.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":j=$(j);case"formula":{if(!j)break;var M=this.quill.getSelection(!0);if(M!=null){var H=M.index+M.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),j,s.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",s.default.sources.USER),this.quill.setSelection(H+2,s.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),k}(A.default);function $(C){var k=C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return k?(k[1]||"https")+"://www.youtube.com/embed/"+k[2]+"?showinfo=0":(k=C.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(k[1]||"https")+"://player.vimeo.com/video/"+k[2]+"/":C}function S(C,k){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k.forEach(function(j){var L=document.createElement("option");j===F?L.setAttribute("selected","selected"):L.setAttribute("value",j),C.appendChild(L)})}t.BaseTooltip=q,t.default=G},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];this.insertBefore(f[0],null),f.length>1&&this.append.apply(this,f.slice(1))},a.prototype.contains=function(f){for(var c,p=this.iterator();c=p();)if(c===f)return!0;return!1},a.prototype.insertBefore=function(f,c){!f||(f.next=c,c!=null?(f.prev=c.prev,c.prev!=null&&(c.prev.next=f),c.prev=f,c===this.head&&(this.head=f)):this.tail!=null?(this.tail.next=f,f.prev=this.tail,this.tail=f):(f.prev=null,this.head=this.tail=f),this.length+=1)},a.prototype.offset=function(f){for(var c=0,p=this.head;p!=null;){if(p===f)return c;c+=p.length(),p=p.next}return-1},a.prototype.remove=function(f){!this.contains(f)||(f.prev!=null&&(f.prev.next=f.next),f.next!=null&&(f.next.prev=f.prev),f===this.head&&(this.head=f.next),f===this.tail&&(this.tail=f.prev),this.length-=1)},a.prototype.iterator=function(f){return f===void 0&&(f=this.head),function(){var c=f;return f!=null&&(f=f.next),c}},a.prototype.find=function(f,c){c===void 0&&(c=!1);for(var p,u=this.iterator();p=u();){var l=p.length();if(f<l||c&&f===l&&(p.next==null||p.next.length()!==0))return[p,f];f-=l}return[null,0]},a.prototype.forEach=function(f){for(var c,p=this.iterator();c=p();)f(c)},a.prototype.forEachAt=function(f,c,p){if(!(c<=0))for(var u=this.find(f),l=u[0],s=u[1],d,v=f-s,h=this.iterator(l);(d=h())&&v<f+c;){var b=d.length();f>v?p(d,f-v,Math.min(c,v+b-f)):p(d,0,Math.min(b,f+c-v)),v+=b}},a.prototype.map=function(f){return this.reduce(function(c,p){return c.push(f(p)),c},[])},a.prototype.reduce=function(f,c){for(var p,u=this.iterator();p=u();)c=f(c,p);return c},a}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(17),f=o(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},p=100,u=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.scroll=v,v.observer=new MutationObserver(function(h){v.update(h)}),v.observer.observe(v.domNode,c),v.attach(),v}return s.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},s.prototype.deleteAt=function(d,v){this.update(),d===0&&v===this.length()?this.children.forEach(function(h){h.remove()}):l.prototype.deleteAt.call(this,d,v)},s.prototype.formatAt=function(d,v,h,b){this.update(),l.prototype.formatAt.call(this,d,v,h,b)},s.prototype.insertAt=function(d,v,h){this.update(),l.prototype.insertAt.call(this,d,v,h)},s.prototype.optimize=function(d,v){var h=this;d===void 0&&(d=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)d.push(b.pop());for(var m=function(O,N){N===void 0&&(N=!0),!(O==null||O===h)&&O.domNode.parentNode!=null&&(O.domNode[f.DATA_KEY].mutations==null&&(O.domNode[f.DATA_KEY].mutations=[]),N&&m(O.parent))},g=function(O){O.domNode[f.DATA_KEY]==null||O.domNode[f.DATA_KEY].mutations==null||(O instanceof a.default&&O.children.forEach(g),O.optimize(v))},_=d,y=0;_.length>0;y+=1){if(y>=p)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var N=f.find(O.target,!0);N!=null&&(N.domNode===O.target&&(O.type==="childList"?(m(f.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=f.find(T,!1);m(A,!1),A instanceof a.default&&A.children.forEach(function(I){m(I,!1)})})):O.type==="attributes"&&m(N.prev)),m(N))}),this.children.forEach(g),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)d.push(b.pop())}},s.prototype.update=function(d,v){var h=this;v===void 0&&(v={}),d=d||this.observer.takeRecords(),d.map(function(b){var m=f.find(b.target,!0);return m==null?null:m.domNode[f.DATA_KEY].mutations==null?(m.domNode[f.DATA_KEY].mutations=[b],m):(m.domNode[f.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===h||b.domNode[f.DATA_KEY]==null||b.update(b.domNode[f.DATA_KEY].mutations||[],v)}),this.domNode[f.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[f.DATA_KEY].mutations,v),this.optimize(d,v)},s.blotName="scroll",s.defaultChild="block",s.scope=f.Scope.BLOCK_BLOT,s.tagName="DIV",s}(a.default);t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,s){l.__proto__=s}||function(l,s){for(var d in s)s.hasOwnProperty(d)&&(l[d]=s[d])};return function(l,s){u(l,s);function d(){this.constructor=l}l.prototype=s===null?Object.create(s):(d.prototype=s.prototype,new d)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),f=o(1);function c(u,l){if(Object.keys(u).length!==Object.keys(l).length)return!1;for(var s in u)if(u[s]!==l[s])return!1;return!0}var p=function(u){i(l,u);function l(){return u!==null&&u.apply(this,arguments)||this}return l.formats=function(s){if(s.tagName!==l.tagName)return u.formats.call(this,s)},l.prototype.format=function(s,d){var v=this;s===this.statics.blotName&&!d?(this.children.forEach(function(h){h instanceof a.default||(h=h.wrap(l.blotName,!0)),v.attributes.copy(h)}),this.unwrap()):u.prototype.format.call(this,s,d)},l.prototype.formatAt=function(s,d,v,h){if(this.formats()[v]!=null||f.query(v,f.Scope.ATTRIBUTE)){var b=this.isolate(s,d);b.format(v,h)}else u.prototype.formatAt.call(this,s,d,v,h)},l.prototype.optimize=function(s){u.prototype.optimize.call(this,s);var d=this.formats();if(Object.keys(d).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&c(d,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=f.Scope.INLINE_BLOT,l.tagName="SPAN",l}(a.default);t.default=p},function(n,t,o){var i=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){p(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),f=o(1),c=function(p){i(u,p);function u(){return p!==null&&p.apply(this,arguments)||this}return u.formats=function(l){var s=f.query(u.blotName).tagName;if(l.tagName!==s)return p.formats.call(this,l)},u.prototype.format=function(l,s){f.query(l,f.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!s?this.replaceWith(u.blotName):p.prototype.format.call(this,l,s))},u.prototype.formatAt=function(l,s,d,v){f.query(d,f.Scope.BLOCK)!=null?this.format(d,v):p.prototype.formatAt.call(this,l,s,d,v)},u.prototype.insertAt=function(l,s,d){if(d==null||f.query(s,f.Scope.INLINE)!=null)p.prototype.insertAt.call(this,l,s,d);else{var v=this.split(l),h=f.create(s,d);v.parent.insertBefore(h,v)}},u.prototype.update=function(l,s){navigator.userAgent.match(/Trident/)?this.build():p.prototype.update.call(this,l,s)},u.blotName="block",u.scope=f.Scope.BLOCK_BLOT,u.tagName="P",u}(a.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,u){p.__proto__=u}||function(p,u){for(var l in u)u.hasOwnProperty(l)&&(p[l]=u[l])};return function(p,u){c(p,u);function l(){this.constructor=p}p.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(19),f=function(c){i(p,c);function p(){return c!==null&&c.apply(this,arguments)||this}return p.formats=function(u){},p.prototype.format=function(u,l){c.prototype.formatAt.call(this,0,this.length(),u,l)},p.prototype.formatAt=function(u,l,s,d){u===0&&l===this.length()?this.format(s,d):c.prototype.formatAt.call(this,u,l,s,d)},p.prototype.formats=function(){return this.statics.formats(this.domNode)},p}(a.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){p(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(19),f=o(1),c=function(p){i(u,p);function u(l){var s=p.call(this,l)||this;return s.text=s.statics.value(s.domNode),s}return u.create=function(l){return document.createTextNode(l)},u.value=function(l){var s=l.data;return s.normalize&&(s=s.normalize()),s},u.prototype.deleteAt=function(l,s){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+s)},u.prototype.index=function(l,s){return this.domNode===l?s:-1},u.prototype.insertAt=function(l,s,d){d==null?(this.text=this.text.slice(0,l)+s+this.text.slice(l),this.domNode.data=this.text):p.prototype.insertAt.call(this,l,s,d)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(l){p.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(l,s){return[this.domNode,l]},u.prototype.split=function(l,s){if(s===void 0&&(s=!1),!s){if(l===0)return this;if(l===this.length())return this.next}var d=f.create(this.domNode.splitText(l));return this.parent.insertBefore(d,this.next),this.text=this.statics.value(this.domNode),d},u.prototype.update=function(l,s){var d=this;l.some(function(v){return v.type==="characterData"&&v.target===d.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=f.Scope.INLINE_BLOT,u}(a.default);t.default=c},function(n,t,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(f,c){return arguments.length>1&&!this.contains(f)==!c?c:a.call(this,f)}}String.prototype.startsWith||(String.prototype.startsWith=function(f,c){return c=c||0,this.substr(c,f.length)===f}),String.prototype.endsWith||(String.prototype.endsWith=function(f,c){var p=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>p.length)&&(c=p.length),c-=f.length;var u=p.indexOf(f,c);return u!==-1&&u===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var p=Object(this),u=p.length>>>0,l=arguments[1],s,d=0;d<u;d++)if(s=p[d],c.call(l,s,d,p))return s}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,t){var o=-1,i=1,a=0;function f(y,O,N){if(y==O)return y?[[a,y]]:[];(N<0||y.length<N)&&(N=null);var T=l(y,O),A=y.substring(0,T);y=y.substring(T),O=O.substring(T),T=s(y,O);var I=y.substring(y.length-T);y=y.substring(0,y.length-T),O=O.substring(0,O.length-T);var w=c(y,O);return A&&w.unshift([a,A]),I&&w.push([a,I]),v(w),N!=null&&(w=m(w,N)),w=g(w),w}function c(y,O){var N;if(!y)return[[i,O]];if(!O)return[[o,y]];var T=y.length>O.length?y:O,A=y.length>O.length?O:y,I=T.indexOf(A);if(I!=-1)return N=[[i,T.substring(0,I)],[a,A],[i,T.substring(I+A.length)]],y.length>O.length&&(N[0][0]=N[2][0]=o),N;if(A.length==1)return[[o,y],[i,O]];var w=d(y,O);if(w){var E=w[0],x=w[1],P=w[2],D=w[3],R=w[4],B=f(E,P),U=f(x,D);return B.concat([[a,R]],U)}return p(y,O)}function p(y,O){for(var N=y.length,T=O.length,A=Math.ceil((N+T)/2),I=A,w=2*A,E=new Array(w),x=new Array(w),P=0;P<w;P++)E[P]=-1,x[P]=-1;E[I+1]=0,x[I+1]=0;for(var D=N-T,R=D%2!=0,B=0,U=0,G=0,q=0,$=0;$<A;$++){for(var S=-$+B;S<=$-U;S+=2){var C=I+S,k;S==-$||S!=$&&E[C-1]<E[C+1]?k=E[C+1]:k=E[C-1]+1;for(var F=k-S;k<N&&F<T&&y.charAt(k)==O.charAt(F);)k++,F++;if(E[C]=k,k>N)U+=2;else if(F>T)B+=2;else if(R){var j=I+D-S;if(j>=0&&j<w&&x[j]!=-1){var L=N-x[j];if(k>=L)return u(y,O,k,F)}}}for(var M=-$+G;M<=$-q;M+=2){var j=I+M,L;M==-$||M!=$&&x[j-1]<x[j+1]?L=x[j+1]:L=x[j-1]+1;for(var H=L-M;L<N&&H<T&&y.charAt(N-L-1)==O.charAt(T-H-1);)L++,H++;if(x[j]=L,L>N)q+=2;else if(H>T)G+=2;else if(!R){var C=I+D-M;if(C>=0&&C<w&&E[C]!=-1){var k=E[C],F=I+k-C;if(L=N-L,k>=L)return u(y,O,k,F)}}}}return[[o,y],[i,O]]}function u(y,O,N,T){var A=y.substring(0,N),I=O.substring(0,T),w=y.substring(N),E=O.substring(T),x=f(A,I),P=f(w,E);return x.concat(P)}function l(y,O){if(!y||!O||y.charAt(0)!=O.charAt(0))return 0;for(var N=0,T=Math.min(y.length,O.length),A=T,I=0;N<A;)y.substring(I,A)==O.substring(I,A)?(N=A,I=N):T=A,A=Math.floor((T-N)/2+N);return A}function s(y,O){if(!y||!O||y.charAt(y.length-1)!=O.charAt(O.length-1))return 0;for(var N=0,T=Math.min(y.length,O.length),A=T,I=0;N<A;)y.substring(y.length-A,y.length-I)==O.substring(O.length-A,O.length-I)?(N=A,I=N):T=A,A=Math.floor((T-N)/2+N);return A}function d(y,O){var N=y.length>O.length?y:O,T=y.length>O.length?O:y;if(N.length<4||T.length*2<N.length)return null;function A(U,G,q){for(var $=U.substring(q,q+Math.floor(U.length/4)),S=-1,C="",k,F,j,L;(S=G.indexOf($,S+1))!=-1;){var M=l(U.substring(q),G.substring(S)),H=s(U.substring(0,q),G.substring(0,S));C.length<H+M&&(C=G.substring(S-H,S)+G.substring(S,S+M),k=U.substring(0,q-H),F=U.substring(q+M),j=G.substring(0,S-H),L=G.substring(S+M))}return C.length*2>=U.length?[k,F,j,L,C]:null}var I=A(N,T,Math.ceil(N.length/4)),w=A(N,T,Math.ceil(N.length/2)),E;if(!I&&!w)return null;w?I?E=I[4].length>w[4].length?I:w:E=w:E=I;var x,P,D,R;y.length>O.length?(x=E[0],P=E[1],D=E[2],R=E[3]):(D=E[0],R=E[1],x=E[2],P=E[3]);var B=E[4];return[x,P,D,R,B]}function v(y){y.push([a,""]);for(var O=0,N=0,T=0,A="",I="",w;O<y.length;)switch(y[O][0]){case i:T++,I+=y[O][1],O++;break;case o:N++,A+=y[O][1],O++;break;case a:N+T>1?(N!==0&&T!==0&&(w=l(I,A),w!==0&&(O-N-T>0&&y[O-N-T-1][0]==a?y[O-N-T-1][1]+=I.substring(0,w):(y.splice(0,0,[a,I.substring(0,w)]),O++),I=I.substring(w),A=A.substring(w)),w=s(I,A),w!==0&&(y[O][1]=I.substring(I.length-w)+y[O][1],I=I.substring(0,I.length-w),A=A.substring(0,A.length-w))),N===0?y.splice(O-T,N+T,[i,I]):T===0?y.splice(O-N,N+T,[o,A]):y.splice(O-N-T,N+T,[o,A],[i,I]),O=O-N-T+(N?1:0)+(T?1:0)+1):O!==0&&y[O-1][0]==a?(y[O-1][1]+=y[O][1],y.splice(O,1)):O++,T=0,N=0,A="",I="";break}y[y.length-1][1]===""&&y.pop();var E=!1;for(O=1;O<y.length-1;)y[O-1][0]==a&&y[O+1][0]==a&&(y[O][1].substring(y[O][1].length-y[O-1][1].length)==y[O-1][1]?(y[O][1]=y[O-1][1]+y[O][1].substring(0,y[O][1].length-y[O-1][1].length),y[O+1][1]=y[O-1][1]+y[O+1][1],y.splice(O-1,1),E=!0):y[O][1].substring(0,y[O+1][1].length)==y[O+1][1]&&(y[O-1][1]+=y[O+1][1],y[O][1]=y[O][1].substring(y[O+1][1].length)+y[O+1][1],y.splice(O+1,1),E=!0)),O++;E&&v(y)}var h=f;h.INSERT=i,h.DELETE=o,h.EQUAL=a,n.exports=h;function b(y,O){if(O===0)return[a,y];for(var N=0,T=0;T<y.length;T++){var A=y[T];if(A[0]===o||A[0]===a){var I=N+A[1].length;if(O===I)return[T+1,y];if(O<I){y=y.slice();var w=O-N,E=[A[0],A[1].slice(0,w)],x=[A[0],A[1].slice(w)];return y.splice(T,1,E,x),[T+1,y]}else N=I}}throw new Error("cursor_pos is out of bounds!")}function m(y,O){var N=b(y,O),T=N[1],A=N[0],I=T[A],w=T[A+1];if(I==null)return y;if(I[0]!==a)return y;if(w!=null&&I[1]+w[1]===w[1]+I[1])return T.splice(A,2,w,I),_(T,A,2);if(w!=null&&w[1].indexOf(I[1])===0){T.splice(A,2,[w[0],I[1]],[0,I[1]]);var E=w[1].slice(I[1].length);return E.length>0&&T.splice(A+2,0,[w[0],E]),_(T,A,3)}else return y}function g(y){for(var O=!1,N=function(w){return w.charCodeAt(0)>=56320&&w.charCodeAt(0)<=57343},T=function(w){return w.charCodeAt(w.length-1)>=55296&&w.charCodeAt(w.length-1)<=56319},A=2;A<y.length;A+=1)y[A-2][0]===a&&T(y[A-2][1])&&y[A-1][0]===o&&N(y[A-1][1])&&y[A][0]===i&&N(y[A][1])&&(O=!0,y[A-1][1]=y[A-2][1].slice(-1)+y[A-1][1],y[A][1]=y[A-2][1].slice(-1)+y[A][1],y[A-2][1]=y[A-2][1].slice(0,-1));if(!O)return y;for(var I=[],A=0;A<y.length;A+=1)y[A][1].length>0&&I.push(y[A]);return I}function _(y,O,N){for(var T=O+N-1;T>=0&&T>=O-1;T--)if(T+1<y.length){var A=y[T],I=y[T+1];A[0]===I[1]&&y.splice(T,2,[A[0],A[1]+I[1]])}return y}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var a=[];for(var f in i)a.push(f);return a}},function(n,t){var o=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=n.exports=o?i:a,t.supported=i;function i(f){return Object.prototype.toString.call(f)=="[object Arguments]"}t.unsupported=a;function a(f){return f&&typeof f=="object"&&typeof f.length=="number"&&Object.prototype.hasOwnProperty.call(f,"callee")&&!Object.prototype.propertyIsEnumerable.call(f,"callee")||!1}},function(n,t){var o=Object.prototype.hasOwnProperty,i="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1));function f(p,u,l){this.fn=p,this.context=u,this.once=l||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],l,s;if(this._eventsCount===0)return u;for(s in l=this._events)o.call(l,s)&&u.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},c.prototype.listeners=function(u,l){var s=i?i+u:u,d=this._events[s];if(l)return!!d;if(!d)return[];if(d.fn)return[d.fn];for(var v=0,h=d.length,b=new Array(h);v<h;v++)b[v]=d[v].fn;return b},c.prototype.emit=function(u,l,s,d,v,h){var b=i?i+u:u;if(!this._events[b])return!1;var m=this._events[b],g=arguments.length,_,y;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,s),!0;case 4:return m.fn.call(m.context,l,s,d),!0;case 5:return m.fn.call(m.context,l,s,d,v),!0;case 6:return m.fn.call(m.context,l,s,d,v,h),!0}for(y=1,_=new Array(g-1);y<g;y++)_[y-1]=arguments[y];m.fn.apply(m.context,_)}else{var O=m.length,N;for(y=0;y<O;y++)switch(m[y].once&&this.removeListener(u,m[y].fn,void 0,!0),g){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,l);break;case 3:m[y].fn.call(m[y].context,l,s);break;case 4:m[y].fn.call(m[y].context,l,s,d);break;default:if(!_)for(N=1,_=new Array(g-1);N<g;N++)_[N-1]=arguments[N];m[y].fn.apply(m[y].context,_)}}return!0},c.prototype.on=function(u,l,s){var d=new f(l,s||this),v=i?i+u:u;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],d]:this._events[v].push(d):(this._events[v]=d,this._eventsCount++),this},c.prototype.once=function(u,l,s){var d=new f(l,s||this,!0),v=i?i+u:u;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],d]:this._events[v].push(d):(this._events[v]=d,this._eventsCount++),this},c.prototype.removeListener=function(u,l,s,d){var v=i?i+u:u;if(!this._events[v])return this;if(!l)return--this._eventsCount==0?this._events=new a:delete this._events[v],this;var h=this._events[v];if(h.fn)h.fn===l&&(!d||h.once)&&(!s||h.context===s)&&(--this._eventsCount==0?this._events=new a:delete this._events[v]);else{for(var b=0,m=[],g=h.length;b<g;b++)(h[b].fn!==l||d&&!h[b].once||s&&h[b].context!==s)&&m.push(h[b]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount==0?this._events=new a:delete this._events[v]}return this},c.prototype.removeAllListeners=function(u){var l;return u?(l=i?i+u:u,this._events[l]&&(--this._eventsCount==0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=i,c.EventEmitter=c,typeof n!="undefined"&&(n.exports=c)},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},a=function(){function W(K,Z){var Q=[],X=!0,se=!1,ue=void 0;try{for(var fe=K[Symbol.iterator](),Ke;!(X=(Ke=fe.next()).done)&&(Q.push(Ke.value),!(Z&&Q.length===Z));X=!0);}catch(lt){se=!0,ue=lt}finally{try{!X&&fe.return&&fe.return()}finally{if(se)throw ue}}return Q}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")}}(),f=function(){function W(K,Z){for(var Q=0;Q<Z.length;Q++){var X=Z[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(K,X.key,X)}}return function(K,Z,Q){return Z&&W(K.prototype,Z),Q&&W(K,Q),K}}(),c=o(3),p=x(c),u=o(2),l=x(u),s=o(0),d=x(s),v=o(5),h=x(v),b=o(10),m=x(b),g=o(9),_=x(g),y=o(36),O=o(37),N=o(13),T=x(N),A=o(26),I=o(38),w=o(39),E=o(40);function x(W){return W&&W.__esModule?W:{default:W}}function P(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 U=(0,m.default)("quill:clipboard"),G="__ql-matcher",q=[[Node.TEXT_NODE,Ce],[Node.TEXT_NODE,de],["br",ee],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,qe],["li",ae],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",re]],$=[y.AlignAttribute,I.DirectionAttribute].reduce(function(W,K){return W[K.keyName]=K,W},{}),S=[y.AlignStyle,O.BackgroundStyle,A.ColorStyle,I.DirectionStyle,w.FontStyle,E.SizeStyle].reduce(function(W,K){return W[K.keyName]=K,W},{}),C=function(W){B(K,W);function K(Z,Q){D(this,K);var X=R(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Z,Q));return X.quill.root.addEventListener("paste",X.onPaste.bind(X)),X.container=X.quill.addContainer("ql-clipboard"),X.container.setAttribute("contenteditable",!0),X.container.setAttribute("tabindex",-1),X.matchers=[],q.concat(X.options.matchers).forEach(function(se){var ue=a(se,2),fe=ue[0],Ke=ue[1];!Q.matchVisual&&Ke===ve||X.addMatcher(fe,Ke)}),X}return f(K,[{key:"addMatcher",value:function(Q,X){this.matchers.push([Q,X])}},{key:"convert",value:function(Q){if(typeof Q=="string")return this.container.innerHTML=Q.replace(/\>\r?\n +\</g,"><"),this.convert();var X=this.quill.getFormat(this.quill.selection.savedRange.index);if(X[T.default.blotName]){var se=this.container.innerText;return this.container.innerHTML="",new l.default().insert(se,P({},T.default.blotName,X[T.default.blotName]))}var ue=this.prepareMatching(),fe=a(ue,2),Ke=fe[0],lt=fe[1],be=M(this.container,Ke,lt);return j(be,`
|
|
60
|
+
`)&&be.ops[be.ops.length-1].attributes==null&&(be=be.compose(new l.default().retain(be.length()-1).delete(1))),U.log("convert",this.container.innerHTML,be),this.container.innerHTML="",be}},{key:"dangerouslyPasteHTML",value:function(Q,X){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof Q=="string")this.quill.setContents(this.convert(Q),X),this.quill.setSelection(0,h.default.sources.SILENT);else{var ue=this.convert(X);this.quill.updateContents(new l.default().retain(Q).concat(ue),se),this.quill.setSelection(Q+ue.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(Q){var X=this;if(!(Q.defaultPrevented||!this.quill.isEnabled())){var se=this.quill.getSelection(),ue=new l.default().retain(se.index),fe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout(function(){ue=ue.concat(X.convert()).delete(se.length),X.quill.updateContents(ue,h.default.sources.USER),X.quill.setSelection(ue.length()-se.length,h.default.sources.SILENT),X.quill.scrollingContainer.scrollTop=fe,X.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Q=this,X=[],se=[];return this.matchers.forEach(function(ue){var fe=a(ue,2),Ke=fe[0],lt=fe[1];switch(Ke){case Node.TEXT_NODE:se.push(lt);break;case Node.ELEMENT_NODE:X.push(lt);break;default:[].forEach.call(Q.container.querySelectorAll(Ke),function(be){be[G]=be[G]||[],be[G].push(lt)});break}}),[X,se]}}]),K}(_.default);C.DEFAULTS={matchers:[],matchVisual:!0};function k(W,K,Z){return(typeof K=="undefined"?"undefined":i(K))==="object"?Object.keys(K).reduce(function(Q,X){return k(Q,X,K[X])},W):W.reduce(function(Q,X){return X.attributes&&X.attributes[K]?Q.push(X):Q.insert(X.insert,(0,p.default)({},P({},K,Z),X.attributes))},new l.default)}function F(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return W[K]||(W[K]=window.getComputedStyle(W))}function j(W,K){for(var Z="",Q=W.ops.length-1;Q>=0&&Z.length<K.length;--Q){var X=W.ops[Q];if(typeof X.insert!="string")break;Z=X.insert+Z}return Z.slice(-1*K.length)===K}function L(W){if(W.childNodes.length===0)return!1;var K=F(W);return["block","list-item"].indexOf(K.display)>-1}function M(W,K,Z){return W.nodeType===W.TEXT_NODE?Z.reduce(function(Q,X){return X(W,Q)},new l.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(Q,X){var se=M(X,K,Z);return X.nodeType===W.ELEMENT_NODE&&(se=K.reduce(function(ue,fe){return fe(X,ue)},se),se=(X[G]||[]).reduce(function(ue,fe){return fe(X,ue)},se)),Q.concat(se)},new l.default):new l.default}function H(W,K,Z){return k(Z,W,!0)}function z(W,K){var Z=d.default.Attributor.Attribute.keys(W),Q=d.default.Attributor.Class.keys(W),X=d.default.Attributor.Style.keys(W),se={};return Z.concat(Q).concat(X).forEach(function(ue){var fe=d.default.query(ue,d.default.Scope.ATTRIBUTE);fe!=null&&(se[fe.attrName]=fe.value(W),se[fe.attrName])||(fe=$[ue],fe!=null&&(fe.attrName===ue||fe.keyName===ue)&&(se[fe.attrName]=fe.value(W)||void 0),fe=S[ue],fe!=null&&(fe.attrName===ue||fe.keyName===ue)&&(fe=S[ue],se[fe.attrName]=fe.value(W)||void 0))}),Object.keys(se).length>0&&(K=k(K,se)),K}function Y(W,K){var Z=d.default.query(W);if(Z==null)return K;if(Z.prototype instanceof d.default.Embed){var Q={},X=Z.value(W);X!=null&&(Q[Z.blotName]=X,K=new l.default().insert(Q,Z.formats(W)))}else typeof Z.formats=="function"&&(K=k(K,Z.blotName,Z.formats(W)));return K}function ee(W,K){return j(K,`
|
|
61
|
+
`)||K.insert(`
|
|
62
|
+
`),K}function re(){return new l.default}function ae(W,K){var Z=d.default.query(W);if(Z==null||Z.blotName!=="list-item"||!j(K,`
|
|
63
|
+
`))return K;for(var Q=-1,X=W.parentNode;!X.classList.contains("ql-clipboard");)(d.default.query(X)||{}).blotName==="list"&&(Q+=1),X=X.parentNode;return Q<=0?K:K.compose(new l.default().retain(K.length()-1).retain(1,{indent:Q}))}function de(W,K){return j(K,`
|
|
64
|
+
`)||(L(W)||K.length()>0&&W.nextSibling&&L(W.nextSibling))&&K.insert(`
|
|
65
|
+
`),K}function ve(W,K){if(L(W)&&W.nextElementSibling!=null&&!j(K,`
|
|
62
66
|
|
|
63
|
-
`)){var Z=W.offsetHeight+parseFloat(F(W).marginTop)+parseFloat(F(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+Z*1.5&&
|
|
64
|
-
`)}return V}function Fe(W,V){var Z={},J=W.style||{};return J.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),J.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(V=k(V,Z)),parseFloat(J.textIndent||0)>0&&(V=new l.default().insert(" ").concat(V)),V}function we(W,V){var Z=W.data;if(W.parentNode.tagName==="O:P")return V.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return V;if(!F(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 V.insert(Z)}t.default=N,t.matchAttributor=z,t.matchBlot=K,t.matchNewline=ce,t.matchSpacing=he,t.matchText=we},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(6),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(m){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,m),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}(c.default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function E(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 E(w,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function E(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&&E(w.prototype,C),D&&E(w,D),w}}(),d=o(2),c=m(d),h=o(0),f=m(h),l=o(5),a=m(l),u=o(10),v=m(u),p=o(9),b=m(p);function m(E){return E&&E.__esModule?E:{default:E}}function g(E,w,C){return w in E?Object.defineProperty(E,w,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[w]=C,E}function _(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}function y(E,w){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:E}function O(E,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);E.prototype=Object.create(w&&w.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(E,w):E.__proto__=w)}var P=(0,v.default)("quill:toolbar"),T=function(E){O(w,E);function w(C,D){_(this,w);var R=y(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=P.error("Container required for toolbar",R.options),y(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){P.warn("ignoring attaching to disabled format",B,D);return}if(f.default.query(B)==null){P.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 S=R.quill.selection.getRange(),N=i(S,1),k=N[0];if(R.handlers[B]!=null)R.handlers[B].call(R,q);else if(f.default.query(B).prototype instanceof f.default.Embed){if(q=prompt("Enter "+B),!q)return;R.quill.updateContents(new c.default().retain(k.index).delete(k.length).insert(g({},B,q)),a.default.sources.USER)}else R.quill.format(B,q,a.default.sources.USER);R.update(k)}),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 S=R[G];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),M=q.querySelector('option[value="'+S+'"]')}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(E,w,C){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+w),C!=null&&(D.value=C),E.appendChild(D)}function I(E,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)}}),E.appendChild(D)})}function x(E,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)}),E.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){f.default.query(R,f.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 v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(28),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){f(this,p);var g=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.label.innerHTML=m,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(m){var g=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,m);return g.style.backgroundColor=m.getAttribute("value")||"",g}},{key:"selectItem",value:function(m,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g);var _=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=y:_.style.fill=y)}}]),p}(c.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(28),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){f(this,p);var g=l(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=m[_.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(p,[{key:"selectItem",value:function(m,g){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),p}(c.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,f){for(var l=0;l<f.length;l++){var a=f[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,f,l){return f&&c(h.prototype,f),l&&c(h,l),h}}();function s(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(h,f){var l=this;s(this,c),this.quill=h,this.boundsContainer=f||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(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var l=f.left+f.width/2-this.root.offsetWidth/2,a=f.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>u.right&&(p=u.right-v.right,this.root.style.left=l+p+"px"),v.left<u.left&&(p=u.left-v.left,this.root.style.left=l+p+"px"),v.bottom>u.bottom){var b=v.bottom-v.top,m=f.bottom-f.top+b;this.root.style.top=a-m+"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")}}]),c}();t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function x(E,w){var C=[],D=!0,R=!1,B=void 0;try{for(var H=E[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(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return x(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function x(E,w,C){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,w);if(D===void 0){var R=Object.getPrototypeOf(E);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)}},d=function(){function x(E,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(E,D.key,D)}}return function(E,w,C){return w&&x(E.prototype,w),C&&x(E,C),E}}(),c=o(3),h=_(c),f=o(8),l=_(f),a=o(43),u=_(a),v=o(27),p=_(v),b=o(15),m=o(41),g=_(m);function _(x){return x&&x.__esModule?x:{default:x}}function y(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function O(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function P(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(x){P(E,x);function E(w,C){y(this,E),C.modules.toolbar!=null&&C.modules.toolbar.container==null&&(C.modules.toolbar.container=T);var D=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,C));return D.quill.container.classList.add("ql-snow"),D}return d(E,[{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)})}}]),E}(u.default);A.DEFAULTS=(0,h.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){if(E){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){P(E,x);function E(w,C){y(this,E);var D=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,C));return D.preview=D.root.querySelector("a.ql-preview"),D}return d(E,[{key:"listen",value:function(){var C=this;s(E.prototype.__proto__||Object.getPrototypeOf(E.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,l.default.sources.USER),delete C.linkRange}D.preventDefault(),C.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(D,R,B){if(D!=null){if(D.length===0&&B===l.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 S=p.default.formats(q.domNode);C.preview.textContent=S,C.preview.setAttribute("href",S),C.show(),C.position(C.quill.getBounds(C.linkRange));return}}else delete C.linkRange;C.hide()}})}},{key:"show",value:function(){s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),E}(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),d=o(36),c=o(38),h=o(64),f=o(65),l=Y(f),a=o(66),u=Y(a),v=o(67),p=Y(v),b=o(37),m=o(26),g=o(39),_=o(40),y=o(56),O=Y(y),P=o(68),T=Y(P),A=o(27),I=Y(A),x=o(69),E=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),S=Y(M),N=o(74),k=Y(N),F=o(75),j=Y(F),L=o(57),$=Y(L),U=o(41),z=Y(U),K=o(28),Q=Y(K),ne=o(59),oe=Y(ne),ce=o(60),he=Y(ce),Fe=o(61),we=Y(Fe),W=o(108),V=Y(W),Z=o(62),J=Y(Z);function Y(le){return le&&le.__esModule?le:{default:le}}s.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":d.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":d.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":d.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":S.default,"formats/header":u.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":M.Code,"formats/italic":T.default,"formats/link":I.default,"formats/script":E.default,"formats/strike":C.default,"formats/underline":R.default,"formats/image":H.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":j.default,"modules/toolbar":$.default,"themes/bubble":V.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":we.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,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),s=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},d=o(0),c=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function f(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(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 u=function(p){a(b,p);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(g,_){if(_==="+1"||_==="-1"){var y=this.value(g)||0;_=_==="+1"?y+1:y-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}(c.default.Attributor.Class),v=new u("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function u(v,p){for(var b=0;b<p.length;b++){var m=p[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,p,b){return p&&u(v.prototype,p),b&&u(v,b),v}}(),s=o(4),d=c(s);function c(u){return u&&u.__esModule?u:{default:u}}function h(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}function f(u,v){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:u}function l(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(u,v):u.__proto__=v)}var a=function(u){l(v,u);function v(){return h(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(d.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 y(O,P){for(var T=0;T<P.length;T++){var A=P[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,P,T){return P&&y(O.prototype,P),T&&y(O,T),O}}(),s=function y(O,P,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,P);if(A===void 0){var I=Object.getPrototypeOf(O);return I===null?void 0:y(I,P,T)}else{if("value"in A)return A.value;var x=A.get;return x===void 0?void 0:x.call(T)}},d=o(0),c=u(d),h=o(4),f=u(h),l=o(25),a=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function v(y,O,P){return O in y?Object.defineProperty(y,O,{value:P,enumerable:!0,configurable:!0,writable:!0}):y[O]=P,y}function p(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}function b(y,O){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:y}function m(y,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);y.prototype=Object.create(O&&O.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(y,O):y.__proto__=O)}var g=function(y){m(O,y);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(c.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}(f.default);g.blotName="list-item",g.tagName="LI";var _=function(y){m(O,y),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(P){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,P)),A=function(x){if(x.target.parentNode===P){var E=T.statics.formats(P),w=c.default.find(x.target);E==="checked"?w.format("list","unchecked"):E==="unchecked"&&w.format("list","checked")}};return P.addEventListener("touchstart",A),P.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 v({},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=c.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=c.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=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},d=o(6),c=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),p}(c.default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function c(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function f(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){f(u,a);function u(){return c(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var P=y.get;return P===void 0?void 0:P.call(_)}},d=o(0),c=f(d),h=o(27);function f(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{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")}}]),m}(c.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(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),s=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var P=y.get;return P===void 0?void 0:P.call(_)}},d=o(4),c=o(27),h=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(d.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 _(y,O){for(var P=0;P<O.length;P++){var T=O[P];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,P){return O&&_(y.prototype,O),P&&_(y,P),y}}(),s=function _(y,O,P){y===null&&(y=Function.prototype);var T=Object.getOwnPropertyDescriptor(y,O);if(T===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:_(A,O,P)}else{if("value"in T)return T.value;var I=T.get;return I===void 0?void 0:I.call(P)}},d=o(35),c=u(d),h=o(5),f=u(h),l=o(9),a=u(l);function u(_){return _&&_.__esModule?_:{default:_}}function v(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function p(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function b(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var m=function(_){b(y,_);function y(){return v(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,null,[{key:"create",value:function(P){var T=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,P);return typeof P=="string"&&(window.katex.render(P,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",P)),T}},{key:"value",value:function(P){return P.getAttribute("data-value")}}]),y}(c.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=function(_){b(y,_),i(y,null,[{key:"register",value:function(){f.default.register(m,!0)}}]);function y(){v(this,y);var O=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return y}(a.default);t.FormulaBlot=m,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 P(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&&P(T.prototype,A),I&&P(T,I),T}}(),s=function P(T,A,I){T===null&&(T=Function.prototype);var x=Object.getOwnPropertyDescriptor(T,A);if(x===void 0){var E=Object.getPrototypeOf(T);return E===null?void 0:P(E,A,I)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(I)}},d=o(0),c=p(d),h=o(5),f=p(h),l=o(9),a=p(l),u=o(13),v=p(u);function p(P){return P&&P.__esModule?P:{default:P}}function b(P,T){if(!(P instanceof T))throw new TypeError("Cannot call a class as a function")}function m(P,T){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:P}function g(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);P.prototype=Object.create(T&&T.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(P,T):P.__proto__=T)}var _=function(P){g(T,P);function T(){return b(this,T),m(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}(v.default);_.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),O=function(P){g(T,P),i(T,null,[{key:"register",value:function(){f.default.register(y,!0),f.default.register(_,!0)}}]);function T(A,I){b(this,T);var x=m(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 E=null;return x.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){x.highlight(),E=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(f.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(E){E.highlight(I.options.highlight)}),this.quill.update(f.default.sources.SILENT),x!=null&&this.quill.setSelection(x,f.default.sources.SILENT)}}}]),T}(a.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(P){var T=window.hljs.highlightAuto(P);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=y,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 E=Object.getOwnPropertyDescriptor(A,I);if(E===void 0){var w=Object.getPrototypeOf(A);return w===null?void 0:T(w,I,x)}else{if("value"in E)return E.value;var C=E.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 E=I[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}return function(A,I,x){return I&&T(A.prototype,I),x&&T(A,x),A}}(),d=o(3),c=b(d),h=o(8),f=b(h),l=o(43),a=b(l),u=o(15),v=o(41),p=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(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 y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(I,x){m(this,A),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=y);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,x));return E.quill.container.classList.add("ql-bubble"),E}return s(A,[{key:"extendToolbar",value:function(x){this.tooltip=new P(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,c.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var P=function(T){_(A,T);function A(I,x){m(this,A);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,x));return E.quill.on(f.default.events.EDITOR_CHANGE,function(w,C,D,R){if(w===f.default.events.SELECTION_CHANGE)if(C!=null&&C.length>0&&R===f.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var B=E.quill.getLines(C.index,C.length);if(B.length===1)E.position(E.quill.getBounds(C));else{var H=B[B.length-1],G=E.quill.getIndex(H),q=Math.min(H.length()-1,C.index+C.length-G),M=E.quill.getBounds(new u.Range(G,q));E.position(M)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}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(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!x.root.classList.contains("ql-hidden")){var E=x.quill.getSelection();E!=null&&x.position(x.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(x){var E=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,x),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",E===0)return E;w.style.marginLeft=-1*E-w.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);P.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=P,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(lo);var so=Rr(lo.exports),_f="",Of="",Ef="",Su=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"})])},xu=[],Sf="";const wu={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 so(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 so(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)}}},uo={};var Au=Te(wu,Su,xu,!1,Tu,"78c8d102",null,null);function Tu(e){for(let r in uo)this[r]=uo[r]}var Ln=function(){return Au.exports}();Ln.install=e=>{e.component(Ln.name,Ln)};const fo=Ln;var Nu=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()])])])},Pu=[];const Cu={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},co={};var ku=Te(Cu,Nu,Pu,!1,Iu,null,null,null);function Iu(e){for(let r in co)this[r]=co[r]}var Lu=function(){return ku.exports}();const Du=Me.default.extend(Lu);var Ru={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"),d=new Du({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:s,fullscreen:!1}});e.instance=d,e.mask=d.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},Mu=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)])},$u=[],wf="";const Kt={confirm:"confirm",cancel:"cancel"},Fu={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]=mt(Oe({},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})}}},ho={};var ju=Te(Fu,Mu,$u,!1,Bu,null,null,null);function Bu(e){for(let r in ho)this[r]=ho[r]}var qu=function(){return ju.exports}();const Hu={title:"",items:[]},Uu=Me.default.extend(qu);let po,Yt,Ar=[];const zu=()=>{Yt=new Uu({el:document.createElement("div")})},Wu=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},Gu=e=>{const r=Wu(e.items);Object.entries(mt(Oe({},e),{formData:r})).forEach(([n,t])=>{Yt[n]=t}),document.body.appendChild(Yt.$el),Me.default.nextTick(()=>{Yt.visible=!0})},Vu=()=>{Yt||zu(),Ar.length>0&&(po=Ar.shift(),Gu(po))},Ku=e=>new Promise((r,n)=>{Ar.push(mt(Oe(Oe({},Hu),e),{resolve:r,reject:n})),Vu()}),Yu=[Nr,Cr,Ir,Dr,Hr,Wr,Kr,Ei,no,io,ao,fo],vo={version:"dev",install:(e,r={config:{}})=>{Yu.forEach(t=>e.component(t.name,t));const n={tablePreset:{separator:"@",presetPropMap:{image(t,{field:o,params:i}){const s=t[o].split("|"),d=i.size||59;return["com-image",{attrs:{src:s,size:d,lazy:!0}}]},link(t,{field:o,params:i}){const s=t[o];let{target:d,href:c,type:h,underline:f}=i;return d=d||"_blank",c=t[c]||s,h=h||"primary",f=!!f,["el-link",{attrs:{target:d,href:c,type:h,underline:f}},s]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=Oe(Oe({},n),r.config),Object.entries(Ru).forEach(([t,o])=>{e.directive(t,o)}),e.prototype.$formDialog=Ku,e.prototype.$jump=(t,o="_blank")=>{window.open(t,o)}},ComTemplate:Nr,ComMenu:Cr,ComTabs:Ir,ComTool:Dr,ComDialog:Hr,ComFormItem:Wr,ComOperation:Kr,ComSearch:Ei,ComTable:no,ComImage:io,ComContainer:ao,ComEditor:fo};try{vo.version=require("../package.json").version}catch{console.log("no require")}return vo});
|
|
67
|
+
`)){var Z=W.offsetHeight+parseFloat(F(W).marginTop)+parseFloat(F(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+Z*1.5&&K.insert(`
|
|
68
|
+
`)}return K}function qe(W,K){var Z={},Q=W.style||{};return Q.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),Q.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=k(K,Z)),parseFloat(Q.textIndent||0)>0&&(K=new l.default().insert(" ").concat(K)),K}function Ce(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(!F(W.parentNode).whiteSpace.startsWith("pre")){var Q=function(se,ue){return ue=ue.replace(/[^\u00a0]/g,""),ue.length<1&&se?" ":ue};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,Q.bind(Q,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,Q.bind(Q,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,Q.bind(Q,!1)))}return K.insert(Z)}t.default=C,t.matchAttributor=z,t.matchBlot=Y,t.matchNewline=de,t.matchSpacing=ve,t.matchText=Ce},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(h,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}return function(h,b,m){return b&&v(h.prototype,b),m&&v(h,m),h}}(),a=function v(h,b,m){h===null&&(h=Function.prototype);var g=Object.getOwnPropertyDescriptor(h,b);if(g===void 0){var _=Object.getPrototypeOf(h);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(6),c=p(f);function p(v){return v&&v.__esModule?v:{default:v}}function u(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function s(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var d=function(v){s(h,v);function h(){return u(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,[{key:"optimize",value:function(m){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),h}(c.default);d.blotName="bold",d.tagName=["STRONG","B"],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function E(x,P){var D=[],R=!0,B=!1,U=void 0;try{for(var G=x[Symbol.iterator](),q;!(R=(q=G.next()).done)&&(D.push(q.value),!(P&&D.length===P));R=!0);}catch($){B=!0,U=$}finally{try{!R&&G.return&&G.return()}finally{if(B)throw U}}return D}return function(x,P){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return E(x,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function E(x,P){for(var D=0;D<P.length;D++){var R=P[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,P,D){return P&&E(x.prototype,P),D&&E(x,D),x}}(),f=o(2),c=m(f),p=o(0),u=m(p),l=o(5),s=m(l),d=o(10),v=m(d),h=o(9),b=m(h);function m(E){return E&&E.__esModule?E:{default:E}}function g(E,x,P){return x in E?Object.defineProperty(E,x,{value:P,enumerable:!0,configurable:!0,writable:!0}):E[x]=P,E}function _(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function y(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function O(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var N=(0,v.default)("quill:toolbar"),T=function(E){O(x,E);function x(P,D){_(this,x);var R=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P,D));if(Array.isArray(R.options.container)){var B=document.createElement("div");I(B,R.options.container),P.container.parentNode.insertBefore(B,P.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 U;return U=N.error("Container required for toolbar",R.options),y(R,U)}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(s.default.events.EDITOR_CHANGE,function(G,q){G===s.default.events.SELECTION_CHANGE&&R.update(q)}),R.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var G=R.quill.selection.getRange(),q=i(G,1),$=q[0];R.update($)}),R}return a(x,[{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){N.warn("ignoring attaching to disabled format",B,D);return}if(u.default.query(B)==null){N.warn("ignoring attaching to nonexistent format",B,D);return}}var U=D.tagName==="SELECT"?"change":"click";D.addEventListener(U,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 S=R.quill.selection.getRange(),C=i(S,1),k=C[0];if(R.handlers[B]!=null)R.handlers[B].call(R,q);else if(u.default.query(B).prototype instanceof u.default.Embed){if(q=prompt("Enter "+B),!q)return;R.quill.updateContents(new c.default().retain(k.index).delete(k.length).insert(g({},B,q)),s.default.sources.USER)}else R.quill.format(B,q,s.default.sources.USER);R.update(k)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var R=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var U=i(B,2),G=U[0],q=U[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 S=R[G];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),$=q.querySelector('option[value="'+S+'"]')}$==null?(q.value="",q.selectedIndex=-1):$.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var C=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",C)}else q.classList.toggle("ql-active",R[G]!=null)})}}]),x}(b.default);T.DEFAULTS={};function A(E,x,P){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+x),P!=null&&(D.value=P),E.appendChild(D)}function I(E,x){Array.isArray(x[0])||(x=[x]),x.forEach(function(P){var D=document.createElement("span");D.classList.add("ql-formats"),P.forEach(function(R){if(typeof R=="string")A(D,R);else{var B=Object.keys(R)[0],U=R[B];Array.isArray(U)?w(D,B,U):A(D,B,U)}}),E.appendChild(D)})}function w(E,x,P){var D=document.createElement("select");D.classList.add("ql-"+x),P.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),D.appendChild(B)}),E.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var x=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function(R){u.default.query(R,u.default.Scope.INLINE)!=null&&x.quill.format(R,!1)})}else this.quill.removeFormat(P,s.default.sources.USER)},direction:function(x){var P=this.quill.getFormat().align;x==="rtl"&&P==null?this.quill.format("align","right",s.default.sources.USER):!x&&P==="right"&&this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",x,s.default.sources.USER)},indent:function(x){var P=this.quill.getSelection(),D=this.quill.getFormat(P),R=parseInt(D.indent||0);if(x==="+1"||x==="-1"){var B=x==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,s.default.sources.USER)}},link:function(x){x===!0&&(x=prompt("Enter link URL:")),this.quill.format("link",x,s.default.sources.USER)},list:function(x){var P=this.quill.getSelection(),D=this.quill.getFormat(P);x==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",x,s.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 v(h,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}return function(h,b,m){return b&&v(h.prototype,b),m&&v(h,m),h}}(),a=function v(h,b,m){h===null&&(h=Function.prototype);var g=Object.getOwnPropertyDescriptor(h,b);if(g===void 0){var _=Object.getPrototypeOf(h);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(28),c=p(f);function p(v){return v&&v.__esModule?v:{default:v}}function u(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function s(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var d=function(v){s(h,v);function h(b,m){u(this,h);var g=l(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,b));return g.label.innerHTML=m,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(h,[{key:"buildItem",value:function(m){var g=a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"buildItem",this).call(this,m);return g.style.backgroundColor=m.getAttribute("value")||"",g}},{key:"selectItem",value:function(m,g){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,m,g);var _=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=y:_.style.fill=y)}}]),h}(c.default);t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(h,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}return function(h,b,m){return b&&v(h.prototype,b),m&&v(h,m),h}}(),a=function v(h,b,m){h===null&&(h=Function.prototype);var g=Object.getOwnPropertyDescriptor(h,b);if(g===void 0){var _=Object.getPrototypeOf(h);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(28),c=p(f);function p(v){return v&&v.__esModule?v:{default:v}}function u(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function s(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var d=function(v){s(h,v);function h(b,m){u(this,h);var g=l(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,b));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(h,[{key:"selectItem",value:function(m,g){a(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,m,g),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),h}(c.default);t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(p,u){for(var l=0;l<u.length;l++){var s=u[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(p,s.key,s)}}return function(p,u,l){return u&&c(p.prototype,u),l&&c(p,l),p}}();function a(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}var f=function(){function c(p,u){var l=this;a(this,c),this.quill=p,this.boundsContainer=u||document.body,this.root=p.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var l=u.left+u.width/2-this.root.offsetWidth/2,s=u.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=s+"px",this.root.classList.remove("ql-flip");var d=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),h=0;if(v.right>d.right&&(h=d.right-v.right,this.root.style.left=l+h+"px"),v.left<d.left&&(h=d.left-v.left,this.root.style.left=l+h+"px"),v.bottom>d.bottom){var b=v.bottom-v.top,m=u.bottom-u.top+b;this.root.style.top=s-m+"px",this.root.classList.add("ql-flip")}return h}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();t.default=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(E,x){var P=[],D=!0,R=!1,B=void 0;try{for(var U=E[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(P.push(G.value),!(x&&P.length===x));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if(R)throw B}}return P}return function(E,x){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return w(E,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function w(E,x,P){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,x);if(D===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:w(R,x,P)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(P)}},f=function(){function w(E,x){for(var P=0;P<x.length;P++){var D=x[P];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,x,P){return x&&w(E.prototype,x),P&&w(E,P),E}}(),c=o(3),p=_(c),u=o(8),l=_(u),s=o(43),d=_(s),v=o(27),h=_(v),b=o(15),m=o(41),g=_(m);function _(w){return w&&w.__esModule?w:{default:w}}function y(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function O(w,E){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:w}function N(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(w,E):w.__proto__=E)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(w){N(E,w);function E(x,P){y(this,E),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=T);var D=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x,P));return D.quill.container.classList.add("ql-snow"),D}return f(E,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),g.default),this.tooltip=new I(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,R){P.handlers.link.call(P,!R.format.link)})}}]),E}(d.default);A.DEFAULTS=(0,p.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){if(E){var x=this.quill.getSelection();if(x==null||x.length==0)return;var P=this.quill.getText(x);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var D=this.quill.theme.tooltip;D.edit("link",P)}else this.quill.format("link",!1)}}}}});var I=function(w){N(E,w);function E(x,P){y(this,E);var D=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x,P));return D.preview=D.root.querySelector("a.ql-preview"),D}return f(E,[{key:"listen",value:function(){var P=this;a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(P.linkRange!=null){var R=P.linkRange;P.restoreFocus(),P.quill.formatText(R,"link",!1,l.default.sources.USER),delete P.linkRange}D.preventDefault(),P.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(D,R,B){if(D!=null){if(D.length===0&&B===l.default.sources.USER){var U=P.quill.scroll.descendant(h.default,D.index),G=i(U,2),q=G[0],$=G[1];if(q!=null){P.linkRange=new b.Range(D.index-$,q.length());var S=h.default.formats(q.domNode);P.preview.textContent=S,P.preview.setAttribute("href",S),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),E}(s.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),a=X(i),f=o(36),c=o(38),p=o(64),u=o(65),l=X(u),s=o(66),d=X(s),v=o(67),h=X(v),b=o(37),m=o(26),g=o(39),_=o(40),y=o(56),O=X(y),N=o(68),T=X(N),A=o(27),I=X(A),w=o(69),E=X(w),x=o(70),P=X(x),D=o(71),R=X(D),B=o(72),U=X(B),G=o(73),q=X(G),$=o(13),S=X($),C=o(74),k=X(C),F=o(75),j=X(F),L=o(57),M=X(L),H=o(41),z=X(H),Y=o(28),ee=X(Y),re=o(59),ae=X(re),de=o(60),ve=X(de),qe=o(61),Ce=X(qe),W=o(108),K=X(W),Z=o(62),Q=X(Z);function X(se){return se&&se.__esModule?se:{default:se}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":f.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":f.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":_.SizeStyle},!0),a.default.register({"formats/align":f.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":p.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":S.default,"formats/header":d.default,"formats/list":h.default,"formats/bold":O.default,"formats/code":$.Code,"formats/italic":T.default,"formats/link":I.default,"formats/script":E.default,"formats/strike":P.default,"formats/underline":R.default,"formats/image":U.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":Q.default,"ui/icons":z.default,"ui/picker":ee.default,"ui/icon-picker":ve.default,"ui/color-picker":ae.default,"ui/tooltip":Ce.default},!0),t.default=a.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function h(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&h(b.prototype,m),g&&h(b,g),b}}(),a=function h(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:h(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},f=o(0),c=p(f);function p(h){return h&&h.__esModule?h:{default:h}}function u(h,b){if(!(h instanceof b))throw new TypeError("Cannot call a class as a function")}function l(h,b){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:h}function s(h,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);h.prototype=Object.create(b&&b.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(h,b):h.__proto__=b)}var d=function(h){s(b,h);function b(){return u(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(g,_){if(_==="+1"||_==="-1"){var y=this.value(g)||0;_=_==="+1"?y+1:y-1}return _===0?(this.remove(g),!0):a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,g,_)}},{key:"canAdd",value:function(g,_){return a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,_)||a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,parseInt(_))}},{key:"value",value:function(g){return parseInt(a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,g))||void 0}}]),b}(c.default.Attributor.Class),v=new d("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function p(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),p(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function d(v,h){for(var b=0;b<h.length;b++){var m=h[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,h,b){return h&&d(v.prototype,h),b&&d(v,b),v}}(),a=o(4),f=c(a);function c(d){return d&&d.__esModule?d:{default:d}}function p(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function u(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function l(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var s=function(d){l(v,d);function v(){return p(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(f.default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function y(O,N){for(var T=0;T<N.length;T++){var A=N[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,N,T){return N&&y(O.prototype,N),T&&y(O,T),O}}(),a=function y(O,N,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,N);if(A===void 0){var I=Object.getPrototypeOf(O);return I===null?void 0:y(I,N,T)}else{if("value"in A)return A.value;var w=A.get;return w===void 0?void 0:w.call(T)}},f=o(0),c=d(f),p=o(4),u=d(p),l=o(25),s=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function v(y,O,N){return O in y?Object.defineProperty(y,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):y[O]=N,y}function h(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}function b(y,O){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:y}function m(y,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);y.prototype=Object.create(O&&O.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(y,O):y.__proto__=O)}var g=function(y){m(O,y);function O(){return h(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(c.default.create(this.statics.scope)):a(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():a(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(),a(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:a(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(u.default);g.blotName="list-item",g.tagName="LI";var _=function(y){m(O,y),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",I=a(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(N){h(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N)),A=function(w){if(w.target.parentNode===N){var E=T.statics.formats(N),x=c.default.find(w.target);E==="checked"?x.format("list","unchecked"):E==="unchecked"&&x.format("list","checked")}};return N.addEventListener("touchstart",A),N.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 v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof g)a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var I=A==null?this.length():A.offset(this),w=this.split(I);w.parent.insertBefore(T,w)}}},{key:"optimize",value:function(T){a(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=c.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(s.default);_.blotName="list",_.scope=c.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),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function p(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),p(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(h,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}return function(h,b,m){return b&&v(h.prototype,b),m&&v(h,m),h}}(),a=function v(h,b,m){h===null&&(h=Function.prototype);var g=Object.getOwnPropertyDescriptor(h,b);if(g===void 0){var _=Object.getPrototypeOf(h);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(6),c=p(f);function p(v){return v&&v.__esModule?v:{default:v}}function u(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function s(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var d=function(v){s(h,v);function h(){return u(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return i(h,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):a(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),h}(c.default);d.blotName="script",d.tagName=["SUB","SUP"],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function p(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),p(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function p(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),p(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(0),c=u(f),p=o(27);function u(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function s(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],h=function(b){d(m,b);function m(){return l(this,m),s(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,p.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(c.default.Embed);h.blotName="image",h.tagName="IMG",t.default=h},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(4),c=o(27),p=u(c);function u(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function s(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],h=function(b){d(m,b);function m(){return l(this,m),s(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"sanitize",value:function(_){return p.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(f.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(y,O){for(var N=0;N<O.length;N++){var T=O[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,N){return O&&_(y.prototype,O),N&&_(y,N),y}}(),a=function _(y,O,N){y===null&&(y=Function.prototype);var T=Object.getOwnPropertyDescriptor(y,O);if(T===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:_(A,O,N)}else{if("value"in T)return T.value;var I=T.get;return I===void 0?void 0:I.call(N)}},f=o(35),c=d(f),p=o(5),u=d(p),l=o(9),s=d(l);function d(_){return _&&_.__esModule?_:{default:_}}function v(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function h(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function b(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var m=function(_){b(y,_);function y(){return v(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,null,[{key:"create",value:function(N){var T=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,N);return typeof N=="string"&&(window.katex.render(N,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",N)),T}},{key:"value",value:function(N){return N.getAttribute("data-value")}}]),y}(c.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=function(_){b(y,_),i(y,null,[{key:"register",value:function(){u.default.register(m,!0)}}]);function y(){v(this,y);var O=h(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return y}(s.default);t.FormulaBlot=m,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 N(T,A){for(var I=0;I<A.length;I++){var w=A[I];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(T,w.key,w)}}return function(T,A,I){return A&&N(T.prototype,A),I&&N(T,I),T}}(),a=function N(T,A,I){T===null&&(T=Function.prototype);var w=Object.getOwnPropertyDescriptor(T,A);if(w===void 0){var E=Object.getPrototypeOf(T);return E===null?void 0:N(E,A,I)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(I)}},f=o(0),c=h(f),p=o(5),u=h(p),l=o(9),s=h(l),d=o(13),v=h(d);function h(N){return N&&N.__esModule?N:{default:N}}function b(N,T){if(!(N instanceof T))throw new TypeError("Cannot call a class as a function")}function m(N,T){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:N}function g(N,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);N.prototype=Object.create(T&&T.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(N,T):N.__proto__=T)}var _=function(N){g(T,N);function T(){return b(this,T),m(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(),a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var w=this.domNode.textContent;this.cachedText!==w&&((w.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(w),this.domNode.normalize(),this.attach()),this.cachedText=w)}}]),T}(v.default);_.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),O=function(N){g(T,N),i(T,null,[{key:"register",value:function(){u.default.register(y,!0),u.default.register(_,!0)}}]);function T(A,I){b(this,T);var w=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,I));if(typeof w.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return w.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){w.highlight(),E=null},w.options.interval)}),w.highlight(),w}return i(T,[{key:"highlight",value:function(){var I=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var w=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(E){E.highlight(I.options.highlight)}),this.quill.update(u.default.sources.SILENT),w!=null&&this.quill.setSelection(w,u.default.sources.SILENT)}}}]),T}(s.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(N){var T=window.hljs.highlightAuto(N);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=y,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,w){A===null&&(A=Function.prototype);var E=Object.getOwnPropertyDescriptor(A,I);if(E===void 0){var x=Object.getPrototypeOf(A);return x===null?void 0:T(x,I,w)}else{if("value"in E)return E.value;var P=E.get;return P===void 0?void 0:P.call(w)}},a=function(){function T(A,I){for(var w=0;w<I.length;w++){var E=I[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}return function(A,I,w){return I&&T(A.prototype,I),w&&T(A,w),A}}(),f=o(3),c=b(f),p=o(8),u=b(p),l=o(43),s=b(l),d=o(15),v=o(41),h=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(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 y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(I,w){m(this,A),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=y);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,w));return E.quill.container.classList.add("ql-bubble"),E}return a(A,[{key:"extendToolbar",value:function(w){this.tooltip=new N(this.quill,this.options.bounds),this.tooltip.root.appendChild(w.container),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),h.default)}}]),A}(s.default);O.DEFAULTS=(0,c.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var N=function(T){_(A,T);function A(I,w){m(this,A);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,w));return E.quill.on(u.default.events.EDITOR_CHANGE,function(x,P,D,R){if(x===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&R===u.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var B=E.quill.getLines(P.index,P.length);if(B.length===1)E.position(E.quill.getBounds(P));else{var U=B[B.length-1],G=E.quill.getIndex(U),q=Math.min(U.length()-1,P.index+P.length-G),$=E.quill.getBounds(new d.Range(G,q));E.position($)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return a(A,[{key:"listen",value:function(){var w=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){w.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!w.root.classList.contains("ql-hidden")){var E=w.quill.getSelection();E!=null&&w.position(w.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(w){var E=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,w),x=this.root.querySelector(".ql-tooltip-arrow");if(x.style.marginLeft="",E===0)return E;x.style.marginLeft=-1*E-x.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);N.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=N,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(wa);var xa=Ji(wa.exports),eh="",th="",nh="",nd=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"})])},rd=[],rh="";const id={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 xa(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 xa(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)}}},Aa={};var od=Pe(id,nd,rd,!1,ad,"78c8d102",null,null);function ad(e){for(let r in Aa)this[r]=Aa[r]}var nr=function(){return od.exports}();nr.install=e=>{e.component(nr.name,nr)};const Ta=nr;var ld=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()])])])},sd=[];const ud={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},Ca={};var fd=Pe(ud,ld,sd,!1,cd,null,null,null);function cd(e){for(let r in Ca)this[r]=Ca[r]}var dd=function(){return fd.exports}();const hd=je.default.extend(dd);var pd={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"),a=e.getAttribute("element-loading-custom-class"),f=new hd({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:a,fullscreen:!1}});e.instance=f,e.mask=f.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},vd=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)])},md=[],oh="";const un={confirm:"confirm",cancel:"cancel"},yd={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]=wt(_e({},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(un.cancel)},triggerCallBack(e){const r={[un.confirm]:"beforeConfirm",[un.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===un.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(un.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},Na={};var gd=Pe(yd,vd,md,!1,bd,null,null,null);function bd(e){for(let r in Na)this[r]=Na[r]}var _d=function(){return gd.exports}();const Od={title:"",items:[]},Ed=je.default.extend(_d);let Pa,fn,fi=[];const Sd=()=>{fn=new Ed({el:document.createElement("div")})},wd=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},xd=e=>{const r=wd(e.items);Object.entries(wt(_e({},e),{formData:r})).forEach(([n,t])=>{fn[n]=t}),document.body.appendChild(fn.$el),je.default.nextTick(()=>{fn.visible=!0})},Ad=()=>{fn||Sd(),fi.length>0&&(Pa=fi.shift(),xd(Pa))},Td=e=>new Promise((r,n)=>{fi.push(wt(_e(_e({},Od),e),{resolve:r,reject:n})),Ad()}),Cd=[zi,Vi,Ki,Xi,io,lo,fo,jo,ba,Oa,Sa,Ta],ka={version:"dev",install:(e,r={config:{}})=>{Cd.forEach(o=>e.component(o.name,o));const n={tablePreset:{separator:"@",presetPropMap:{image(o,{field:i,params:a}){const f=o[i].split("|"),c=a.size||59;return["com-image",{attrs:{src:f,size:c,lazy:!0}}]},link(o,{field:i,params:a}){const f=o[i];let{target:c,href:p,type:u,underline:l}=a;return c=c||"_blank",p=o[p]||f,u=u||"primary",l=!!l,["el-link",{attrs:{target:c,href:p,type:u,underline:l}},f]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=_e(_e({},n),r.config),Object.entries(pd).forEach(([o,i])=>{e.directive(o,i)}),e.prototype.$formDialog=Td,e.prototype.$jump=(o,i="_blank")=>{window.open(o,i)};const t=Yl.create({headers:{["Login-Token"]:r.config.token}});e.prototype.$http=t},ComTemplate:zi,ComMenu:Vi,ComTabs:Ki,ComTool:Xi,ComDialog:io,ComFormItem:lo,ComOperation:fo,ComSearch:jo,ComTable:ba,ComImage:Oa,ComContainer:Sa,ComEditor:Ta};try{ka.version=require("../package.json").version}catch{console.log("no require")}return ka});
|
|
65
69
|
//# sourceMappingURL=tenghui-ui.umd.js.map
|