@zipify/wysiwyg 3.3.0-1 → 3.3.0-2

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/cli.js CHANGED
@@ -12,4 +12,4 @@
12
12
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
13
13
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
14
14
  */
15
- md={get exports(){return vd},set exports(t){vd=t}},gd=vd,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,i=32,a=64,u=128,l=256,c=1/0,p=9007199254740991,d=NaN,f=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",a],["rearg",l]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",_="[object Function]",D="[object GeneratorFunction]",w="[object Map]",k="[object Number]",E="[object Object]",C="[object Promise]",x="[object RegExp]",A="[object Set]",S="[object String]",O="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",I="[object Float64Array]",$="[object Int8Array]",B="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",P="[object Uint8ClampedArray]",j="[object Uint16Array]",z="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,K=RegExp(q.source),J=RegExp(U.source),G=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,Dt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",xt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",St="['’]",Ot="["+Dt+"]",Nt="["+At+"]",Tt="["+wt+"]",Mt="\\d+",Ft="["+kt+"]",It="["+Et+"]",$t="[^"+Dt+At+Mt+kt+Et+Ct+"]",Bt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+Dt+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="["+Ct+"]",zt="\\u200d",Vt="(?:"+It+"|"+$t+")",Ht="(?:"+jt+"|"+$t+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+Tt+"|"+Bt+")?",Kt="["+xt+"]?",Jt=Kt+Ut+"(?:"+zt+"(?:"+[Rt,Lt,Pt].join("|")+")"+Kt+Ut+")*",Gt="(?:"+[Ft,Lt,Pt].join("|")+")"+Jt,Yt="(?:"+[Rt+Tt+"?",Tt,Lt,Pt,Ot].join("|")+")",Xt=RegExp(St,"g"),Zt=RegExp(Tt,"g"),Qt=RegExp(Bt+"(?="+Bt+")|"+Yt+Jt,"g"),te=RegExp([jt+"?"+It+"+"+Wt+"(?="+[Nt,jt,"$"].join("|")+")",Ht+"+"+qt+"(?="+[Nt,jt+Vt,"$"].join("|")+")",jt+"?"+Vt+"+"+Wt,jt+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mt,Gt].join("|"),"g"),ee=RegExp("["+zt+Dt+wt+xt+"]"),ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oe=-1,ie={};ie[F]=ie[I]=ie[$]=ie[B]=ie[R]=ie[L]=ie[P]=ie[j]=ie[z]=!0,ie[m]=ie[g]=ie[T]=ie[v]=ie[M]=ie[y]=ie[b]=ie[_]=ie[w]=ie[k]=ie[E]=ie[x]=ie[A]=ie[S]=ie[N]=!1;var se={};se[m]=se[g]=se[T]=se[M]=se[v]=se[y]=se[F]=se[I]=se[$]=se[B]=se[R]=se[w]=se[k]=se[E]=se[x]=se[A]=se[S]=se[O]=se[L]=se[P]=se[j]=se[z]=!0,se[b]=se[_]=se[N]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,le=parseInt,ce="object"==typeof s&&s&&s.Object===Object&&s,pe="object"==typeof self&&self&&self.Object===Object&&self,de=ce||pe||Function("return this")(),fe=gd&&!gd.nodeType&&gd,he=fe&&md&&!md.nodeType&&md,me=he&&he.exports===fe,ge=me&&ce.process,ve=function(){try{var t=he&&he.require&&he.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),ye=ve&&ve.isArrayBuffer,be=ve&&ve.isDate,_e=ve&&ve.isMap,De=ve&&ve.isRegExp,we=ve&&ve.isSet,ke=ve&&ve.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ce(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var s=t[o];e(r,s,n(s),t)}return r}function xe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function Ne(t,e){return!(null==t||!t.length)&&je(t,e,0)>-1}function Te(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Me(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Fe(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function Ie(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function $e(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function Be(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Re=We("length");function Le(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function Pe(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function je(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):Pe(t,Ve,n)}function ze(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function Ve(t){return t!=t}function He(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:d}function We(e){return function(n){return null==n?t:n[e]}}function qe(e){return function(n){return null==e?t:e[n]}}function Ue(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function Ke(e,n){for(var r,o=-1,i=e.length;++o<i;){var s=n(e[o]);s!==t&&(r=r===t?s:r+s)}return r}function Je(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ge(t){return t?t.slice(0,hn(t)+1).replace(rt,""):t}function Ye(t){return function(e){return t(e)}}function Xe(t,e){return Me(e,(function(e){return t[e]}))}function Ze(t,e){return t.has(e)}function Qe(t,e){for(var n=-1,r=t.length;++n<r&&je(e,t[n],0)>-1;);return n}function tn(t,e){for(var n=t.length;n--&&je(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var nn=qe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=qe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(t){return"\\"+ae[t]}function sn(t){return ee.test(t)}function an(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,o=t.length,i=0,s=[];++n<o;){var a=t[n];a!==e&&a!==r||(t[n]=r,s[i++]=n)}return s}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function pn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function dn(t){return sn(t)?function(t){for(var e=Qt.lastIndex=0;Qt.test(t);)++e;return e}(t):Re(t)}function fn(t){return sn(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function hn(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e}var mn=qe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function s(ot){var Dt=(ot=null==ot?de:gn.defaults(de.Object(),ot,gn.pick(de,re))).Array,wt=ot.Date,kt=ot.Error,Et=ot.Function,Ct=ot.Math,xt=ot.Object,At=ot.RegExp,St=ot.String,Ot=ot.TypeError,Nt=Dt.prototype,Tt=Et.prototype,Mt=xt.prototype,Ft=ot["__core-js_shared__"],It=Tt.toString,$t=Mt.hasOwnProperty,Bt=0,Rt=function(){var t=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Lt=Mt.toString,Pt=It.call(xt),jt=de._,zt=At("^"+It.call($t).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vt=me?ot.Buffer:t,Ht=ot.Symbol,Wt=ot.Uint8Array,qt=Vt?Vt.allocUnsafe:t,Ut=un(xt.getPrototypeOf,xt),Kt=xt.create,Jt=Mt.propertyIsEnumerable,Gt=Nt.splice,Yt=Ht?Ht.isConcatSpreadable:t,Qt=Ht?Ht.iterator:t,ee=Ht?Ht.toStringTag:t,ae=function(){try{var t=fi(xt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ce=ot.clearTimeout!==de.clearTimeout&&ot.clearTimeout,pe=wt&&wt.now!==de.Date.now&&wt.now,fe=ot.setTimeout!==de.setTimeout&&ot.setTimeout,he=Ct.ceil,ge=Ct.floor,ve=xt.getOwnPropertySymbols,Re=Vt?Vt.isBuffer:t,qe=ot.isFinite,vn=Nt.join,yn=un(xt.keys,xt),bn=Ct.max,_n=Ct.min,Dn=wt.now,wn=ot.parseInt,kn=Ct.random,En=Nt.reverse,Cn=fi(ot,"DataView"),xn=fi(ot,"Map"),An=fi(ot,"Promise"),Sn=fi(ot,"Set"),On=fi(ot,"WeakMap"),Nn=fi(xt,"create"),Tn=On&&new On,Mn={},Fn=ji(Cn),In=ji(xn),$n=ji(An),Bn=ji(Sn),Rn=ji(On),Ln=Ht?Ht.prototype:t,Pn=Ln?Ln.valueOf:t,jn=Ln?Ln.toString:t;function zn(t){if(ra(t)&&!Us(t)&&!(t instanceof qn)){if(t instanceof Wn)return t;if($t.call(t,"__wrapped__"))return zi(t)}return new Wn(t)}var Vn=function(){function e(){}return function(n){if(!na(n))return{};if(Kt)return Kt(n);e.prototype=n;var r=new e;return e.prototype=t,r}}();function Hn(){}function Wn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jn;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new Kn(t);this.size=e.size}function Xn(t,e){var n=Us(t),r=!n&&qs(t),o=!n&&!r&&Ys(t),i=!n&&!r&&!o&&pa(t),s=n||r||o||i,a=s?Je(t.length,St):[],u=a.length;for(var l in t)!e&&!$t.call(t,l)||s&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_i(l,u))||a.push(l);return a}function Zn(e){var n=e.length;return n?e[Gr(0,n-1)]:t}function Qn(t,e){return Ri(To(t),ur(e,0,t.length))}function tr(t){return Ri(To(t))}function er(e,n,r){(r!==t&&!Vs(e[n],r)||r===t&&!(n in e))&&sr(e,n,r)}function nr(e,n,r){var o=e[n];$t.call(e,n)&&Vs(o,r)&&(r!==t||n in e)||sr(e,n,r)}function rr(t,e){for(var n=t.length;n--;)if(Vs(t[n][0],e))return n;return-1}function or(t,e,n,r){return fr(t,(function(t,o,i){e(r,t,n(t),i)})),r}function ir(t,e){return t&&Mo(e,Fa(e),t)}function sr(t,e,n){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(e,n){for(var r=-1,o=n.length,i=Dt(o),s=null==e;++r<o;)i[r]=s?t:Sa(e,n[r]);return i}function ur(e,n,r){return e==e&&(r!==t&&(e=e<=r?e:r),n!==t&&(e=e>=n?e:n)),e}function lr(e,n,r,o,i,s){var a,u=1&n,l=2&n,c=4&n;if(r&&(a=i?r(e,o,i,s):r(e)),a!==t)return a;if(!na(e))return e;var p=Us(e);if(p){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&$t.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!u)return To(e,a)}else{var d=gi(e),f=d==_||d==D;if(Ys(e))return Co(e,u);if(d==E||d==m||f&&!i){if(a=l||f?{}:yi(e),!u)return l?function(t,e){return Mo(t,mi(t),e)}(e,function(t,e){return t&&Mo(e,Ia(e),t)}(a,e)):function(t,e){return Mo(t,hi(t),e)}(e,ir(a,e))}else{if(!se[d])return i?e:{};a=function(t,e,n){var r,o=t.constructor;switch(e){case T:return xo(t);case v:case y:return new o(+t);case M:return function(t,e){var n=e?xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case F:case I:case $:case B:case R:case L:case P:case j:case z:return Ao(t,n);case w:return new o;case k:case S:return new o(t);case x:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new o;case O:return r=t,Pn?xt(Pn.call(r)):{}}}(e,d,u)}}s||(s=new Yn);var h=s.get(e);if(h)return h;s.set(e,a),ua(e)?e.forEach((function(t){a.add(lr(t,n,r,t,e,s))})):oa(e)&&e.forEach((function(t,o){a.set(o,lr(t,n,r,o,e,s))}));var g=p?t:(c?l?si:ii:l?Ia:Fa)(e);return xe(g||e,(function(t,o){g&&(t=e[o=t]),nr(a,o,lr(t,n,r,o,e,s))})),a}function cr(e,n,r){var o=r.length;if(null==e)return!o;for(e=xt(e);o--;){var i=r[o],s=n[i],a=e[i];if(a===t&&!(i in e)||!s(a))return!1}return!0}function pr(n,r,o){if("function"!=typeof n)throw new Ot(e);return Fi((function(){n.apply(t,o)}),r)}function dr(t,e,n,r){var o=-1,i=Ne,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=Me(e,Ye(n))),r?(i=Te,s=!1):e.length>=200&&(i=Ze,s=!1,e=new Gn(e));t:for(;++o<a;){var c=t[o],p=null==n?c:n(c);if(c=r||0!==c?c:0,s&&p==p){for(var d=l;d--;)if(e[d]===p)continue t;u.push(c)}else i(e,p,r)||u.push(c)}return u}zn.templateSettings={escape:G,evaluate:Y,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=Hn.prototype,zn.prototype.constructor=zn,Wn.prototype=Vn(Hn.prototype),Wn.prototype.constructor=Wn,qn.prototype=Vn(Hn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(e){var r=this.__data__;if(Nn){var o=r[e];return o===n?t:o}return $t.call(r,e)?r[e]:t},Un.prototype.has=function(e){var n=this.__data__;return Nn?n[e]!==t:$t.call(n,e)},Un.prototype.set=function(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Nn&&r===t?n:r,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0||(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,0))},Kn.prototype.get=function(e){var n=this.__data__,r=rr(n,e);return r<0?t:n[r][1]},Kn.prototype.has=function(t){return rr(this.__data__,t)>-1},Kn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(xn||Kn),string:new Un}},Jn.prototype.delete=function(t){var e=pi(this,t).delete(t);return this.size-=e?1:0,e},Jn.prototype.get=function(t){return pi(this,t).get(t)},Jn.prototype.has=function(t){return pi(this,t).has(t)},Jn.prototype.set=function(t,e){var n=pi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(t){return this.__data__.set(t,n),this},Gn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!xn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this};var fr=$o(Dr),hr=$o(wr,!0);function mr(t,e){var n=!0;return fr(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function gr(e,n,r){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n(s);if(null!=a&&(u===t?a==a&&!ca(a):r(a,u)))var u=a,l=s}return l}function vr(t,e){var n=[];return fr(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function yr(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=bi),o||(o=[]);++i<s;){var a=t[i];e>0&&n(a)?e>1?yr(a,e-1,n,r,o):Fe(o,a):r||(o[o.length]=a)}return o}var br=Bo(),_r=Bo(!0);function Dr(t,e){return t&&br(t,e,Fa)}function wr(t,e){return t&&_r(t,e,Fa)}function kr(t,e){return Oe(e,(function(e){return Qs(t[e])}))}function Er(e,n){for(var r=0,o=(n=Do(n,e)).length;null!=e&&r<o;)e=e[Pi(n[r++])];return r&&r==o?e:t}function Cr(t,e,n){var r=e(t);return Us(t)?r:Fe(r,n(t))}function xr(e){return null==e?e===t?"[object Undefined]":"[object Null]":ee&&ee in xt(e)?function(e){var n=$t.call(e,ee),r=e[ee];try{e[ee]=t;var o=!0}catch(t){}var i=Lt.call(e);return o&&(n?e[ee]=r:delete e[ee]),i}(e):function(t){return Lt.call(t)}(e)}function Ar(t,e){return t>e}function Sr(t,e){return null!=t&&$t.call(t,e)}function Or(t,e){return null!=t&&e in xt(t)}function Nr(e,n,r){for(var o=r?Te:Ne,i=e[0].length,s=e.length,a=s,u=Dt(s),l=1/0,c=[];a--;){var p=e[a];a&&n&&(p=Me(p,Ye(n))),l=_n(p.length,l),u[a]=!r&&(n||i>=120&&p.length>=120)?new Gn(a&&p):t}p=e[0];var d=-1,f=u[0];t:for(;++d<i&&c.length<l;){var h=p[d],m=n?n(h):h;if(h=r||0!==h?h:0,!(f?Ze(f,m):o(c,m,r))){for(a=s;--a;){var g=u[a];if(!(g?Ze(g,m):o(e[a],m,r)))continue t}f&&f.push(m),c.push(h)}}return c}function Tr(e,n,r){var o=null==(e=Oi(e,n=Do(n,e)))?e:e[Pi(Zi(n))];return null==o?t:Ee(o,e,r)}function Mr(t){return ra(t)&&xr(t)==m}function Fr(e,n,r,o,i){return e===n||(null==e||null==n||!ra(e)&&!ra(n)?e!=e&&n!=n:function(e,n,r,o,i,s){var a=Us(e),u=Us(n),l=a?g:gi(e),c=u?g:gi(n),p=(l=l==m?E:l)==E,d=(c=c==m?E:c)==E,f=l==c;if(f&&Ys(e)){if(!Ys(n))return!1;a=!0,p=!1}if(f&&!p)return s||(s=new Yn),a||pa(e)?ri(e,n,r,o,i,s):function(t,e,n,r,o,i,s){switch(n){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!i(new Wt(t),new Wt(e)));case v:case y:case k:return Vs(+t,+e);case b:return t.name==e.name&&t.message==e.message;case x:case S:return t==e+"";case w:var a=an;case A:var u=1&r;if(a||(a=cn),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=ri(a(t),a(e),r,o,i,s);return s.delete(t),c;case O:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(e,n,l,r,o,i,s);if(!(1&r)){var h=p&&$t.call(e,"__wrapped__"),_=d&&$t.call(n,"__wrapped__");if(h||_){var D=h?e.value():e,C=_?n.value():n;return s||(s=new Yn),i(D,C,r,o,s)}}return!!f&&(s||(s=new Yn),function(e,n,r,o,i,s){var a=1&r,u=ii(e),l=u.length,c=ii(n),p=c.length;if(l!=p&&!a)return!1;for(var d=l;d--;){var f=u[d];if(!(a?f in n:$t.call(n,f)))return!1}var h=s.get(e),m=s.get(n);if(h&&m)return h==n&&m==e;var g=!0;s.set(e,n),s.set(n,e);for(var v=a;++d<l;){var y=e[f=u[d]],b=n[f];if(o)var _=a?o(b,y,f,n,e,s):o(y,b,f,e,n,s);if(!(_===t?y===b||i(y,b,r,o,s):_)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var D=e.constructor,w=n.constructor;D==w||!("constructor"in e)||!("constructor"in n)||"function"==typeof D&&D instanceof D&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(n),g}(e,n,r,o,i,s))}(e,n,r,o,Fr,i))}function Ir(e,n,r,o){var i=r.length,s=i,a=!o;if(null==e)return!s;for(e=xt(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var l=(u=r[i])[0],c=e[l],p=u[1];if(a&&u[2]){if(c===t&&!(l in e))return!1}else{var d=new Yn;if(o)var f=o(c,p,l,e,n,d);if(!(f===t?Fr(p,c,3,o,d):f))return!1}}return!0}function $r(t){return!(!na(t)||(e=t,Rt&&Rt in e))&&(Qs(t)?zt:mt).test(ji(t));var e}function Br(t){return"function"==typeof t?t:null==t?iu:"object"==typeof t?Us(t)?Vr(t[0],t[1]):zr(t):hu(t)}function Rr(t){if(!Ci(t))return yn(t);var e=[];for(var n in xt(t))$t.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Lr(t){if(!na(t))return function(t){var e=[];if(null!=t)for(var n in xt(t))e.push(n);return e}(t);var e=Ci(t),n=[];for(var r in t)("constructor"!=r||!e&&$t.call(t,r))&&n.push(r);return n}function Pr(t,e){return t<e}function jr(t,e){var n=-1,r=Js(t)?Dt(t.length):[];return fr(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}function zr(t){var e=di(t);return 1==e.length&&e[0][2]?Ai(e[0][0],e[0][1]):function(n){return n===t||Ir(n,t,e)}}function Vr(e,n){return wi(e)&&xi(n)?Ai(Pi(e),n):function(r){var o=Sa(r,e);return o===t&&o===n?Oa(r,e):Fr(n,o,3)}}function Hr(e,n,r,o,i){e!==n&&br(n,(function(s,a){if(i||(i=new Yn),na(s))!function(e,n,r,o,i,s,a){var u=Ti(e,r),l=Ti(n,r),c=a.get(l);if(c)er(e,r,c);else{var p=s?s(u,l,r+"",e,n,a):t,d=p===t;if(d){var f=Us(l),h=!f&&Ys(l),m=!f&&!h&&pa(l);p=l,f||h||m?Us(u)?p=u:Gs(u)?p=To(u):h?(d=!1,p=Co(l,!0)):m?(d=!1,p=Ao(l,!0)):p=[]:sa(l)||qs(l)?(p=u,qs(u)?p=ba(u):na(u)&&!Qs(u)||(p=yi(l))):d=!1}d&&(a.set(l,p),i(p,l,o,s,a),a.delete(l)),er(e,r,p)}}(e,n,a,r,Hr,o,i);else{var u=o?o(Ti(e,a),s,a+"",e,n,i):t;u===t&&(u=s),er(e,a,u)}}),Ia)}function Wr(e,n){var r=e.length;if(r)return _i(n+=n<0?r:0,r)?e[n]:t}function qr(t,e,n){e=e.length?Me(e,(function(t){return Us(t)?function(e){return Er(e,1===t.length?t[0]:t)}:t})):[iu];var r=-1;e=Me(e,Ye(ci()));var o=jr(t,(function(t,n,o){var i=Me(e,(function(e){return e(t)}));return{criteria:i,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(o,(function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,s=o.length,a=n.length;++r<s;){var u=So(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Ur(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var s=e[r],a=Er(t,s);n(a,s)&&to(i,Do(s,t),a)}return i}function Kr(t,e,n,r){var o=r?ze:je,i=-1,s=e.length,a=t;for(t===e&&(e=To(e)),n&&(a=Me(t,Ye(n)));++i<s;)for(var u=0,l=e[i],c=n?n(l):l;(u=o(a,c,u,r))>-1;)a!==t&&Gt.call(a,u,1),Gt.call(t,u,1);return t}function Jr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;_i(o)?Gt.call(t,o,1):fo(t,o)}}return t}function Gr(t,e){return t+ge(kn()*(e-t+1))}function Yr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ge(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Ii(Si(t,e,iu),t+"")}function Zr(t){return Zn(Va(t))}function Qr(t,e){var n=Va(t);return Ri(n,ur(e,0,n.length))}function to(e,n,r,o){if(!na(e))return e;for(var i=-1,s=(n=Do(n,e)).length,a=s-1,u=e;null!=u&&++i<s;){var l=Pi(n[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var p=u[l];(c=o?o(p,l,u):t)===t&&(c=na(p)?p:_i(n[i+1])?[]:{})}nr(u,l,c),u=u[l]}return e}var eo=Tn?function(t,e){return Tn.set(t,e),t}:iu,no=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:nu(e),writable:!0})}:iu;function ro(t){return Ri(Va(t))}function oo(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Dt(o);++r<o;)i[r]=t[r+e];return i}function io(t,e){var n;return fr(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function so(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=t[i];null!==s&&!ca(s)&&(n?s<=e:s<e)?r=i+1:o=i}return o}return ao(t,e,iu,n)}function ao(e,n,r,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(n=r(n))!=n,u=null===n,l=ca(n),c=n===t;i<s;){var p=ge((i+s)/2),d=r(e[p]),f=d!==t,h=null===d,m=d==d,g=ca(d);if(a)var v=o||m;else v=c?m&&(o||f):u?m&&f&&(o||!h):l?m&&f&&!h&&(o||!g):!h&&!g&&(o?d<=n:d<n);v?i=p+1:s=p}return _n(s,4294967294)}function uo(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Vs(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function lo(t){return"number"==typeof t?t:ca(t)?d:+t}function co(t){if("string"==typeof t)return t;if(Us(t))return Me(t,co)+"";if(ca(t))return jn?jn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function po(t,e,n){var r=-1,o=Ne,i=t.length,s=!0,a=[],u=a;if(n)s=!1,o=Te;else if(i>=200){var l=e?null:Xo(t);if(l)return cn(l);s=!1,o=Ze,u=new Gn}else u=e?[]:a;t:for(;++r<i;){var c=t[r],p=e?e(c):c;if(c=n||0!==c?c:0,s&&p==p){for(var d=u.length;d--;)if(u[d]===p)continue t;e&&u.push(p),a.push(c)}else o(u,p,n)||(u!==a&&u.push(p),a.push(c))}return a}function fo(t,e){return null==(t=Oi(t,e=Do(e,t)))||delete t[Pi(Zi(e))]}function ho(t,e,n,r){return to(t,e,n(Er(t,e)),r)}function mo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?oo(t,r?0:i,r?i+1:o):oo(t,r?i+1:0,r?o:i)}function go(t,e){var n=t;return n instanceof qn&&(n=n.value()),Ie(e,(function(t,e){return e.func.apply(e.thisArg,Fe([t],e.args))}),n)}function vo(t,e,n){var r=t.length;if(r<2)return r?po(t[0]):[];for(var o=-1,i=Dt(r);++o<r;)for(var s=t[o],a=-1;++a<r;)a!=o&&(i[o]=dr(i[o]||s,t[a],e,n));return po(yr(i,1),e,n)}function yo(e,n,r){for(var o=-1,i=e.length,s=n.length,a={};++o<i;){var u=o<s?n[o]:t;r(a,e[o],u)}return a}function bo(t){return Gs(t)?t:[]}function _o(t){return"function"==typeof t?t:iu}function Do(t,e){return Us(t)?t:wi(t,e)?[t]:Li(_a(t))}var wo=Xr;function ko(e,n,r){var o=e.length;return r=r===t?o:r,!n&&r>=o?e:oo(e,n,r)}var Eo=ce||function(t){return de.clearTimeout(t)};function Co(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function xo(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Ao(t,e){var n=e?xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function So(e,n){if(e!==n){var r=e!==t,o=null===e,i=e==e,s=ca(e),a=n!==t,u=null===n,l=n==n,c=ca(n);if(!u&&!c&&!s&&e>n||s&&a&&l&&!u&&!c||o&&a&&l||!r&&l||!i)return 1;if(!o&&!s&&!c&&e<n||c&&r&&i&&!o&&!s||u&&r&&i||!a&&i||!l)return-1}return 0}function Oo(t,e,n,r){for(var o=-1,i=t.length,s=n.length,a=-1,u=e.length,l=bn(i-s,0),c=Dt(u+l),p=!r;++a<u;)c[a]=e[a];for(;++o<s;)(p||o<i)&&(c[n[o]]=t[o]);for(;l--;)c[a++]=t[o++];return c}function No(t,e,n,r){for(var o=-1,i=t.length,s=-1,a=n.length,u=-1,l=e.length,c=bn(i-a,0),p=Dt(c+l),d=!r;++o<c;)p[o]=t[o];for(var f=o;++u<l;)p[f+u]=e[u];for(;++s<a;)(d||o<i)&&(p[f+n[s]]=t[o++]);return p}function To(t,e){var n=-1,r=t.length;for(e||(e=Dt(r));++n<r;)e[n]=t[n];return e}function Mo(e,n,r,o){var i=!r;r||(r={});for(var s=-1,a=n.length;++s<a;){var u=n[s],l=o?o(r[u],e[u],u,r,e):t;l===t&&(l=e[u]),i?sr(r,u,l):nr(r,u,l)}return r}function Fo(t,e){return function(n,r){var o=Us(n)?Ce:or,i=e?e():{};return o(n,t,ci(r,2),i)}}function Io(e){return Xr((function(n,r){var o=-1,i=r.length,s=i>1?r[i-1]:t,a=i>2?r[2]:t;for(s=e.length>3&&"function"==typeof s?(i--,s):t,a&&Di(r[0],r[1],a)&&(s=i<3?t:s,i=1),n=xt(n);++o<i;){var u=r[o];u&&e(n,u,o,s)}return n}))}function $o(t,e){return function(n,r){if(null==n)return n;if(!Js(n))return t(n,r);for(var o=n.length,i=e?o:-1,s=xt(n);(e?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Bo(t){return function(e,n,r){for(var o=-1,i=xt(e),s=r(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===n(i[u],u,i))break}return e}}function Ro(e){return function(n){var r=sn(n=_a(n))?fn(n):t,o=r?r[0]:n.charAt(0),i=r?ko(r,1).join(""):n.slice(1);return o[e]()+i}}function Lo(t){return function(e){return Ie(Qa(qa(e).replace(Xt,"")),t,"")}}function Po(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Vn(t.prototype),r=t.apply(n,e);return na(r)?r:n}}function jo(e){return function(n,r,o){var i=xt(n);if(!Js(n)){var s=ci(r,3);n=Fa(n),r=function(t){return s(i[t],t,i)}}var a=e(n,r,o);return a>-1?i[s?n[a]:a]:t}}function zo(n){return oi((function(r){var o=r.length,i=o,s=Wn.prototype.thru;for(n&&r.reverse();i--;){var a=r[i];if("function"!=typeof a)throw new Ot(e);if(s&&!u&&"wrapper"==ui(a))var u=new Wn([],!0)}for(i=u?i:o;++i<o;){var l=ui(a=r[i]),c="wrapper"==l?ai(a):t;u=c&&ki(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ui(c[0])].apply(u,c[3]):1==a.length&&ki(a)?u[l]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&Us(e))return u.plant(e).value();for(var n=0,i=o?r[n].apply(this,t):e;++n<o;)i=r[n].call(this,i);return i}}))}function Vo(e,n,r,o,i,s,a,l,c,p){var d=n&u,f=1&n,h=2&n,m=24&n,g=512&n,v=h?t:Po(e);return function t(){for(var u=arguments.length,y=Dt(u),b=u;b--;)y[b]=arguments[b];if(m)var _=li(t),D=en(y,_);if(o&&(y=Oo(y,o,i,m)),s&&(y=No(y,s,a,m)),u-=D,m&&u<p){var w=ln(y,_);return Go(e,n,Vo,t.placeholder,r,y,w,l,c,p-u)}var k=f?r:this,E=h?k[e]:e;return u=y.length,l?y=Ni(y,l):g&&u>1&&y.reverse(),d&&c<u&&(y.length=c),this&&this!==de&&this instanceof t&&(E=v||Po(E)),E.apply(k,y)}}function Ho(t,e){return function(n,r){return function(t,e,n,r){return Dr(t,(function(t,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Wo(e,n){return function(r,o){var i;if(r===t&&o===t)return n;if(r!==t&&(i=r),o!==t){if(i===t)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=lo(r),o=lo(o)),i=e(r,o)}return i}}function qo(t){return oi((function(e){return e=Me(e,Ye(ci())),Xr((function(n){var r=this;return t(e,(function(t){return Ee(t,r,n)}))}))}))}function Uo(e,n){var r=(n=n===t?" ":co(n)).length;if(r<2)return r?Yr(n,e):n;var o=Yr(n,he(e/dn(n)));return sn(n)?ko(fn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(n,r,o){return o&&"number"!=typeof o&&Di(n,r,o)&&(r=o=t),n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n,r){for(var o=-1,i=bn(he((e-t)/(n||1)),0),s=Dt(i);i--;)s[r?i:++o]=t,t+=n;return s}(n,r,o=o===t?n<r?1:-1:ma(o),e)}}function Jo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ya(e),n=ya(n)),t(e,n)}}function Go(e,n,r,o,s,u,l,c,p,d){var f=8&n;n|=f?i:a,4&(n&=~(f?a:i))||(n&=-4);var h=[e,n,s,f?u:t,f?l:t,f?t:u,f?t:l,c,p,d],m=r.apply(t,h);return ki(e)&&Mi(m,h),m.placeholder=o,$i(m,e,n)}function Yo(t){var e=Ct[t];return function(t,n){if(t=ya(t),(n=null==n?0:_n(ga(n),292))&&qe(t)){var r=(_a(t)+"e").split("e");return+((r=(_a(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Xo=Sn&&1/cn(new Sn([,-0]))[1]==c?function(t){return new Sn(t)}:cu;function Zo(t){return function(e){var n=gi(e);return n==w?an(e):n==A?pn(e):function(t,e){return Me(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Qo(n,s,c,p,d,f,h,m){var g=2&s;if(!g&&"function"!=typeof n)throw new Ot(e);var v=p?p.length:0;if(v||(s&=-97,p=d=t),h=h===t?h:bn(ga(h),0),m=m===t?m:ga(m),v-=d?d.length:0,s&a){var y=p,b=d;p=d=t}var _=g?t:ai(n),D=[n,s,c,p,d,y,b,f,h,m];if(_&&function(t,e){var n=t[1],o=e[1],i=n|o,s=i<131,a=o==u&&8==n||o==u&&n==l&&t[7].length<=e[8]||384==o&&e[7].length<=e[8]&&8==n;if(!s&&!a)return t;1&o&&(t[2]=e[2],i|=1&n?0:4);var c=e[3];if(c){var p=t[3];t[3]=p?Oo(p,c,e[4]):c,t[4]=p?ln(t[3],r):e[4]}(c=e[5])&&(p=t[5],t[5]=p?No(p,c,e[6]):c,t[6]=p?ln(t[5],r):e[6]),(c=e[7])&&(t[7]=c),o&u&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(D,_),n=D[0],s=D[1],c=D[2],p=D[3],d=D[4],!(m=D[9]=D[9]===t?g?0:n.length:bn(D[9]-v,0))&&24&s&&(s&=-25),s&&1!=s)w=8==s||s==o?function(e,n,r){var o=Po(e);return function i(){for(var s=arguments.length,a=Dt(s),u=s,l=li(i);u--;)a[u]=arguments[u];var c=s<3&&a[0]!==l&&a[s-1]!==l?[]:ln(a,l);return(s-=c.length)<r?Go(e,n,Vo,i.placeholder,t,a,c,t,t,r-s):Ee(this&&this!==de&&this instanceof i?o:e,this,a)}}(n,s,m):s!=i&&33!=s||d.length?Vo.apply(t,D):function(t,e,n,r){var o=1&e,i=Po(t);return function e(){for(var s=-1,a=arguments.length,u=-1,l=r.length,c=Dt(l+a),p=this&&this!==de&&this instanceof e?i:t;++u<l;)c[u]=r[u];for(;a--;)c[u++]=arguments[++s];return Ee(p,o?n:this,c)}}(n,s,c,p);else var w=function(t,e,n){var r=1&e,o=Po(t);return function e(){return(this&&this!==de&&this instanceof e?o:t).apply(r?n:this,arguments)}}(n,s,c);return $i((_?eo:Mi)(w,D),n,s)}function ti(e,n,r,o){return e===t||Vs(e,Mt[r])&&!$t.call(o,r)?n:e}function ei(e,n,r,o,i,s){return na(e)&&na(n)&&(s.set(n,e),Hr(e,n,t,ei,s),s.delete(n)),e}function ni(e){return sa(e)?t:e}function ri(e,n,r,o,i,s){var a=1&r,u=e.length,l=n.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(e),p=s.get(n);if(c&&p)return c==n&&p==e;var d=-1,f=!0,h=2&r?new Gn:t;for(s.set(e,n),s.set(n,e);++d<u;){var m=e[d],g=n[d];if(o)var v=a?o(g,m,d,n,e,s):o(m,g,d,e,n,s);if(v!==t){if(v)continue;f=!1;break}if(h){if(!Be(n,(function(t,e){if(!Ze(h,e)&&(m===t||i(m,t,r,o,s)))return h.push(e)}))){f=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){f=!1;break}}return s.delete(e),s.delete(n),f}function oi(e){return Ii(Si(e,t,Ki),e+"")}function ii(t){return Cr(t,Fa,hi)}function si(t){return Cr(t,Ia,mi)}var ai=Tn?function(t){return Tn.get(t)}:cu;function ui(t){for(var e=t.name+"",n=Mn[e],r=$t.call(Mn,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function li(t){return($t.call(zn,"placeholder")?zn:t).placeholder}function ci(){var t=zn.iteratee||su;return t=t===su?Br:t,arguments.length?t(arguments[0],arguments[1]):t}function pi(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function di(t){for(var e=Fa(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,xi(o)]}return e}function fi(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return $r(r)?r:t}var hi=ve?function(t){return null==t?[]:(t=xt(t),Oe(ve(t),(function(e){return Jt.call(t,e)})))}:vu,mi=ve?function(t){for(var e=[];t;)Fe(e,hi(t)),t=Ut(t);return e}:vu,gi=xr;function vi(t,e,n){for(var r=-1,o=(e=Do(e,t)).length,i=!1;++r<o;){var s=Pi(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&ea(o)&&_i(s,o)&&(Us(t)||qs(t))}function yi(t){return"function"!=typeof t.constructor||Ci(t)?{}:Vn(Ut(t))}function bi(t){return Us(t)||qs(t)||!!(Yt&&t&&t[Yt])}function _i(t,e){var n=typeof t;return!!(e=null==e?p:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function Di(t,e,n){if(!na(n))return!1;var r=typeof e;return!!("number"==r?Js(n)&&_i(e,n.length):"string"==r&&e in n)&&Vs(n[e],t)}function wi(t,e){if(Us(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ca(t))||Q.test(t)||!Z.test(t)||null!=e&&t in xt(e)}function ki(t){var e=ui(t),n=zn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ai(n);return!!r&&t===r[0]}(Cn&&gi(new Cn(new ArrayBuffer(1)))!=M||xn&&gi(new xn)!=w||An&&gi(An.resolve())!=C||Sn&&gi(new Sn)!=A||On&&gi(new On)!=N)&&(gi=function(e){var n=xr(e),r=n==E?e.constructor:t,o=r?ji(r):"";if(o)switch(o){case Fn:return M;case In:return w;case $n:return C;case Bn:return A;case Rn:return N}return n});var Ei=Ft?Qs:yu;function Ci(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mt)}function xi(t){return t==t&&!na(t)}function Ai(e,n){return function(r){return null!=r&&r[e]===n&&(n!==t||e in xt(r))}}function Si(e,n,r){return n=bn(n===t?e.length-1:n,0),function(){for(var t=arguments,o=-1,i=bn(t.length-n,0),s=Dt(i);++o<i;)s[o]=t[n+o];o=-1;for(var a=Dt(n+1);++o<n;)a[o]=t[o];return a[n]=r(s),Ee(e,this,a)}}function Oi(t,e){return e.length<2?t:Er(t,oo(e,0,-1))}function Ni(e,n){for(var r=e.length,o=_n(n.length,r),i=To(e);o--;){var s=n[o];e[o]=_i(s,r)?i[s]:t}return e}function Ti(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Mi=Bi(eo),Fi=fe||function(t,e){return de.setTimeout(t,e)},Ii=Bi(no);function $i(t,e,n){var r=e+"";return Ii(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return xe(h,(function(n){var r="_."+n[0];e&n[1]&&!Ne(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(r),n)))}function Bi(e){var n=0,r=0;return function(){var o=Dn(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Ri(e,n){var r=-1,o=e.length,i=o-1;for(n=n===t?o:n;++r<n;){var s=Gr(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=n,e}var Li=function(t){var e=Bs(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,o){e.push(r?o.replace(ct,"$1"):n||t)})),e}));function Pi(t){if("string"==typeof t||ca(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ji(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zi(t){if(t instanceof qn)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=To(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Vi=Xr((function(t,e){return Gs(t)?dr(t,yr(e,1,Gs,!0)):[]})),Hi=Xr((function(e,n){var r=Zi(n);return Gs(r)&&(r=t),Gs(e)?dr(e,yr(n,1,Gs,!0),ci(r,2)):[]})),Wi=Xr((function(e,n){var r=Zi(n);return Gs(r)&&(r=t),Gs(e)?dr(e,yr(n,1,Gs,!0),t,r):[]}));function qi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),Pe(t,ci(e,3),o)}function Ui(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==t&&(i=ga(r),i=r<0?bn(o+i,0):_n(i,o-1)),Pe(e,ci(n,3),i,!0)}function Ki(t){return null!=t&&t.length?yr(t,1):[]}function Ji(e){return e&&e.length?e[0]:t}var Gi=Xr((function(t){var e=Me(t,bo);return e.length&&e[0]===t[0]?Nr(e):[]})),Yi=Xr((function(e){var n=Zi(e),r=Me(e,bo);return n===Zi(r)?n=t:r.pop(),r.length&&r[0]===e[0]?Nr(r,ci(n,2)):[]})),Xi=Xr((function(e){var n=Zi(e),r=Me(e,bo);return(n="function"==typeof n?n:t)&&r.pop(),r.length&&r[0]===e[0]?Nr(r,t,n):[]}));function Zi(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Qi=Xr(ts);function ts(t,e){return t&&t.length&&e&&e.length?Kr(t,e):t}var es=oi((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return Jr(t,Me(e,(function(t){return _i(t,n)?+t:t})).sort(So)),r}));function ns(t){return null==t?t:En.call(t)}var rs=Xr((function(t){return po(yr(t,1,Gs,!0))})),os=Xr((function(e){var n=Zi(e);return Gs(n)&&(n=t),po(yr(e,1,Gs,!0),ci(n,2))})),is=Xr((function(e){var n=Zi(e);return n="function"==typeof n?n:t,po(yr(e,1,Gs,!0),t,n)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=Oe(t,(function(t){if(Gs(t))return e=bn(t.length,e),!0})),Je(e,(function(e){return Me(t,We(e))}))}function as(e,n){if(!e||!e.length)return[];var r=ss(e);return null==n?r:Me(r,(function(e){return Ee(n,t,e)}))}var us=Xr((function(t,e){return Gs(t)?dr(t,e):[]})),ls=Xr((function(t){return vo(Oe(t,Gs))})),cs=Xr((function(e){var n=Zi(e);return Gs(n)&&(n=t),vo(Oe(e,Gs),ci(n,2))})),ps=Xr((function(e){var n=Zi(e);return n="function"==typeof n?n:t,vo(Oe(e,Gs),t,n)})),ds=Xr(ss),fs=Xr((function(e){var n=e.length,r=n>1?e[n-1]:t;return r="function"==typeof r?(e.pop(),r):t,as(e,r)}));function hs(t){var e=zn(t);return e.__chain__=!0,e}function ms(t,e){return e(t)}var gs=oi((function(e){var n=e.length,r=n?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(n>1||this.__actions__.length)&&o instanceof qn&&_i(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:t}),new Wn(o,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(i)})),vs=Fo((function(t,e,n){$t.call(t,n)?++t[n]:sr(t,n,1)})),ys=jo(qi),bs=jo(Ui);function _s(t,e){return(Us(t)?xe:fr)(t,ci(e,3))}function Ds(t,e){return(Us(t)?Ae:hr)(t,ci(e,3))}var ws=Fo((function(t,e,n){$t.call(t,n)?t[n].push(e):sr(t,n,[e])})),ks=Xr((function(t,e,n){var r=-1,o="function"==typeof e,i=Js(t)?Dt(t.length):[];return fr(t,(function(t){i[++r]=o?Ee(e,t,n):Tr(t,e,n)})),i})),Es=Fo((function(t,e,n){sr(t,n,e)}));function Cs(t,e){return(Us(t)?Me:jr)(t,ci(e,3))}var xs=Fo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),As=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Di(t,e[0],e[1])?e=[]:n>2&&Di(e[0],e[1],e[2])&&(e=[e[0]]),qr(t,yr(e,1),[])})),Ss=pe||function(){return de.Date.now()};function Os(e,n,r){return n=r?t:n,n=e&&null==n?e.length:n,Qo(e,u,t,t,t,t,n)}function Ns(n,r){var o;if("function"!=typeof r)throw new Ot(e);return n=ga(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=t),o}}var Ts=Xr((function(t,e,n){var r=1;if(n.length){var o=ln(n,li(Ts));r|=i}return Qo(t,r,e,n,o)})),Ms=Xr((function(t,e,n){var r=3;if(n.length){var o=ln(n,li(Ms));r|=i}return Qo(e,r,t,n,o)}));function Fs(n,r,o){var i,s,a,u,l,c,p=0,d=!1,f=!1,h=!0;if("function"!=typeof n)throw new Ot(e);function m(e){var r=i,o=s;return i=s=t,p=e,u=n.apply(o,r)}function g(t){return p=t,l=Fi(y,r),d?m(t):u}function v(e){var n=e-c;return c===t||n>=r||n<0||f&&e-p>=a}function y(){var t=Ss();if(v(t))return b(t);l=Fi(y,function(t){var e=r-(t-c);return f?_n(e,a-(t-p)):e}(t))}function b(e){return l=t,h&&i?m(e):(i=s=t,u)}function _(){var e=Ss(),n=v(e);if(i=arguments,s=this,c=e,n){if(l===t)return g(c);if(f)return Eo(l),l=Fi(y,r),m(c)}return l===t&&(l=Fi(y,r)),u}return r=ya(r)||0,na(o)&&(d=!!o.leading,a=(f="maxWait"in o)?bn(ya(o.maxWait)||0,r):a,h="trailing"in o?!!o.trailing:h),_.cancel=function(){l!==t&&Eo(l),p=0,i=c=s=l=t},_.flush=function(){return l===t?u:b(Ss())},_}var Is=Xr((function(t,e){return pr(t,1,e)})),$s=Xr((function(t,e,n){return pr(t,ya(e)||0,n)}));function Bs(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Ot(e);var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,e);return r.cache=i.set(o,s)||i,s};return r.cache=new(Bs.Cache||Jn),r}function Rs(t){if("function"!=typeof t)throw new Ot(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Bs.Cache=Jn;var Ls=wo((function(t,e){var n=(e=1==e.length&&Us(e[0])?Me(e[0],Ye(ci())):Me(yr(e,1),Ye(ci()))).length;return Xr((function(r){for(var o=-1,i=_n(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return Ee(t,this,r)}))})),Ps=Xr((function(e,n){var r=ln(n,li(Ps));return Qo(e,i,t,n,r)})),js=Xr((function(e,n){var r=ln(n,li(js));return Qo(e,a,t,n,r)})),zs=oi((function(e,n){return Qo(e,l,t,t,t,n)}));function Vs(t,e){return t===e||t!=t&&e!=e}var Hs=Jo(Ar),Ws=Jo((function(t,e){return t>=e})),qs=Mr(function(){return arguments}())?Mr:function(t){return ra(t)&&$t.call(t,"callee")&&!Jt.call(t,"callee")},Us=Dt.isArray,Ks=ye?Ye(ye):function(t){return ra(t)&&xr(t)==T};function Js(t){return null!=t&&ea(t.length)&&!Qs(t)}function Gs(t){return ra(t)&&Js(t)}var Ys=Re||yu,Xs=be?Ye(be):function(t){return ra(t)&&xr(t)==y};function Zs(t){if(!ra(t))return!1;var e=xr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!sa(t)}function Qs(t){if(!na(t))return!1;var e=xr(t);return e==_||e==D||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ta(t){return"number"==typeof t&&t==ga(t)}function ea(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function na(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ra(t){return null!=t&&"object"==typeof t}var oa=_e?Ye(_e):function(t){return ra(t)&&gi(t)==w};function ia(t){return"number"==typeof t||ra(t)&&xr(t)==k}function sa(t){if(!ra(t)||xr(t)!=E)return!1;var e=Ut(t);if(null===e)return!0;var n=$t.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Pt}var aa=De?Ye(De):function(t){return ra(t)&&xr(t)==x},ua=we?Ye(we):function(t){return ra(t)&&gi(t)==A};function la(t){return"string"==typeof t||!Us(t)&&ra(t)&&xr(t)==S}function ca(t){return"symbol"==typeof t||ra(t)&&xr(t)==O}var pa=ke?Ye(ke):function(t){return ra(t)&&ea(t.length)&&!!ie[xr(t)]},da=Jo(Pr),fa=Jo((function(t,e){return t<=e}));function ha(t){if(!t)return[];if(Js(t))return la(t)?fn(t):To(t);if(Qt&&t[Qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Qt]());var e=gi(t);return(e==w?an:e==A?cn:Va)(t)}function ma(t){return t?(t=ya(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ga(t){var e=ma(t),n=e%1;return e==e?n?e-n:e:0}function va(t){return t?ur(ga(t),0,f):0}function ya(t){if("number"==typeof t)return t;if(ca(t))return d;if(na(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=na(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var n=ht.test(t);return n||gt.test(t)?le(t.slice(2),n?2:8):ft.test(t)?d:+t}function ba(t){return Mo(t,Ia(t))}function _a(t){return null==t?"":co(t)}var Da=Io((function(t,e){if(Ci(e)||Js(e))Mo(e,Fa(e),t);else for(var n in e)$t.call(e,n)&&nr(t,n,e[n])})),wa=Io((function(t,e){Mo(e,Ia(e),t)})),ka=Io((function(t,e,n,r){Mo(e,Ia(e),t,r)})),Ea=Io((function(t,e,n,r){Mo(e,Fa(e),t,r)})),Ca=oi(ar),xa=Xr((function(e,n){e=xt(e);var r=-1,o=n.length,i=o>2?n[2]:t;for(i&&Di(n[0],n[1],i)&&(o=1);++r<o;)for(var s=n[r],a=Ia(s),u=-1,l=a.length;++u<l;){var c=a[u],p=e[c];(p===t||Vs(p,Mt[c])&&!$t.call(e,c))&&(e[c]=s[c])}return e})),Aa=Xr((function(e){return e.push(t,ei),Ee(Ba,t,e)}));function Sa(e,n,r){var o=null==e?t:Er(e,n);return o===t?r:o}function Oa(t,e){return null!=t&&vi(t,e,Or)}var Na=Ho((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=n}),nu(iu)),Ta=Ho((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),$t.call(t,e)?t[e].push(n):t[e]=[n]}),ci),Ma=Xr(Tr);function Fa(t){return Js(t)?Xn(t):Rr(t)}function Ia(t){return Js(t)?Xn(t,!0):Lr(t)}var $a=Io((function(t,e,n){Hr(t,e,n)})),Ba=Io((function(t,e,n,r){Hr(t,e,n,r)})),Ra=oi((function(t,e){var n={};if(null==t)return n;var r=!1;e=Me(e,(function(e){return e=Do(e,t),r||(r=e.length>1),e})),Mo(t,si(t),n),r&&(n=lr(n,7,ni));for(var o=e.length;o--;)fo(n,e[o]);return n})),La=oi((function(t,e){return null==t?{}:function(t,e){return Ur(t,e,(function(e,n){return Oa(t,n)}))}(t,e)}));function Pa(t,e){if(null==t)return{};var n=Me(si(t),(function(t){return[t]}));return e=ci(e),Ur(t,n,(function(t,n){return e(t,n[0])}))}var ja=Zo(Fa),za=Zo(Ia);function Va(t){return null==t?[]:Xe(t,Fa(t))}var Ha=Lo((function(t,e,n){return e=e.toLowerCase(),t+(n?Wa(e):e)}));function Wa(t){return Za(_a(t).toLowerCase())}function qa(t){return(t=_a(t))&&t.replace(yt,nn).replace(Zt,"")}var Ua=Lo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ka=Lo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ja=Ro("toLowerCase"),Ga=Lo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ya=Lo((function(t,e,n){return t+(n?" ":"")+Za(e)})),Xa=Lo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Za=Ro("toUpperCase");function Qa(e,n,r){return e=_a(e),(n=r?t:n)===t?function(t){return ne.test(t)}(e)?function(t){return t.match(te)||[]}(e):function(t){return t.match(ut)||[]}(e):e.match(n)||[]}var tu=Xr((function(e,n){try{return Ee(e,t,n)}catch(t){return Zs(t)?t:new kt(t)}})),eu=oi((function(t,e){return xe(e,(function(e){e=Pi(e),sr(t,e,Ts(t[e],t))})),t}));function nu(t){return function(){return t}}var ru=zo(),ou=zo(!0);function iu(t){return t}function su(t){return Br("function"==typeof t?t:lr(t,1))}var au=Xr((function(t,e){return function(n){return Tr(n,t,e)}})),uu=Xr((function(t,e){return function(n){return Tr(t,n,e)}}));function lu(t,e,n){var r=Fa(e),o=kr(e,r);null!=n||na(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=kr(e,Fa(e)));var i=!(na(n)&&"chain"in n&&!n.chain),s=Qs(t);return xe(o,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=To(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Fe([this.value()],arguments))})})),t}function cu(){}var pu=qo(Me),du=qo(Se),fu=qo(Be);function hu(t){return wi(t)?We(Pi(t)):function(t){return function(e){return Er(e,t)}}(t)}var mu=Ko(),gu=Ko(!0);function vu(){return[]}function yu(){return!1}var bu,_u=Wo((function(t,e){return t+e}),0),Du=Yo("ceil"),wu=Wo((function(t,e){return t/e}),1),ku=Yo("floor"),Eu=Wo((function(t,e){return t*e}),1),Cu=Yo("round"),xu=Wo((function(t,e){return t-e}),0);return zn.after=function(t,n){if("function"!=typeof n)throw new Ot(e);return t=ga(t),function(){if(--t<1)return n.apply(this,arguments)}},zn.ary=Os,zn.assign=Da,zn.assignIn=wa,zn.assignInWith=ka,zn.assignWith=Ea,zn.at=Ca,zn.before=Ns,zn.bind=Ts,zn.bindAll=eu,zn.bindKey=Ms,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Us(t)?t:[t]},zn.chain=hs,zn.chunk=function(e,n,r){n=(r?Di(e,n,r):n===t)?1:bn(ga(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var i=0,s=0,a=Dt(he(o/n));i<o;)a[s++]=oo(e,i,i+=n);return a},zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=Dt(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Fe(Us(n)?To(n):[n],yr(e,1))},zn.cond=function(t){var n=null==t?0:t.length,r=ci();return t=n?Me(t,(function(t){if("function"!=typeof t[1])throw new Ot(e);return[r(t[0]),t[1]]})):[],Xr((function(e){for(var r=-1;++r<n;){var o=t[r];if(Ee(o[0],this,e))return Ee(o[1],this,e)}}))},zn.conforms=function(t){return function(t){var e=Fa(t);return function(n){return cr(n,t,e)}}(lr(t,1))},zn.constant=nu,zn.countBy=vs,zn.create=function(t,e){var n=Vn(t);return null==e?n:ir(n,e)},zn.curry=function e(n,r,o){var i=Qo(n,8,t,t,t,t,t,r=o?t:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(n,r,i){var s=Qo(n,o,t,t,t,t,t,r=i?t:r);return s.placeholder=e.placeholder,s},zn.debounce=Fs,zn.defaults=xa,zn.defaultsDeep=Aa,zn.defer=Is,zn.delay=$s,zn.difference=Vi,zn.differenceBy=Hi,zn.differenceWith=Wi,zn.drop=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=r||n===t?1:ga(n))<0?0:n,o):[]},zn.dropRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,0,(n=o-(n=r||n===t?1:ga(n)))<0?0:n):[]},zn.dropRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0,!0):[]},zn.dropWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0):[]},zn.fill=function(e,n,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Di(e,n,r)&&(r=0,o=i),function(e,n,r,o){var i=e.length;for((r=ga(r))<0&&(r=-r>i?0:i+r),(o=o===t||o>i?i:ga(o))<0&&(o+=i),o=r>o?0:va(o);r<o;)e[r++]=n;return e}(e,n,r,o)):[]},zn.filter=function(t,e){return(Us(t)?Oe:vr)(t,ci(e,3))},zn.flatMap=function(t,e){return yr(Cs(t,e),1)},zn.flatMapDeep=function(t,e){return yr(Cs(t,e),c)},zn.flatMapDepth=function(e,n,r){return r=r===t?1:ga(r),yr(Cs(e,n),r)},zn.flatten=Ki,zn.flattenDeep=function(t){return null!=t&&t.length?yr(t,c):[]},zn.flattenDepth=function(e,n){return null!=e&&e.length?yr(e,n=n===t?1:ga(n)):[]},zn.flip=function(t){return Qo(t,512)},zn.flow=ru,zn.flowRight=ou,zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},zn.functions=function(t){return null==t?[]:kr(t,Fa(t))},zn.functionsIn=function(t){return null==t?[]:kr(t,Ia(t))},zn.groupBy=ws,zn.initial=function(t){return null!=t&&t.length?oo(t,0,-1):[]},zn.intersection=Gi,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=Na,zn.invertBy=Ta,zn.invokeMap=ks,zn.iteratee=su,zn.keyBy=Es,zn.keys=Fa,zn.keysIn=Ia,zn.map=Cs,zn.mapKeys=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,e(t,r,o),t)})),n},zn.mapValues=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,r,e(t,r,o))})),n},zn.matches=function(t){return zr(lr(t,1))},zn.matchesProperty=function(t,e){return Vr(t,lr(e,1))},zn.memoize=Bs,zn.merge=$a,zn.mergeWith=Ba,zn.method=au,zn.methodOf=uu,zn.mixin=lu,zn.negate=Rs,zn.nthArg=function(t){return t=ga(t),Xr((function(e){return Wr(e,t)}))},zn.omit=Ra,zn.omitBy=function(t,e){return Pa(t,Rs(ci(e)))},zn.once=function(t){return Ns(2,t)},zn.orderBy=function(e,n,r,o){return null==e?[]:(Us(n)||(n=null==n?[]:[n]),Us(r=o?t:r)||(r=null==r?[]:[r]),qr(e,n,r))},zn.over=pu,zn.overArgs=Ls,zn.overEvery=du,zn.overSome=fu,zn.partial=Ps,zn.partialRight=js,zn.partition=xs,zn.pick=La,zn.pickBy=Pa,zn.property=hu,zn.propertyOf=function(e){return function(n){return null==e?t:Er(e,n)}},zn.pull=Qi,zn.pullAll=ts,zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Kr(t,e,ci(n,2)):t},zn.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Kr(e,n,t,r):e},zn.pullAt=es,zn.range=mu,zn.rangeRight=gu,zn.rearg=zs,zn.reject=function(t,e){return(Us(t)?Oe:vr)(t,Rs(ci(e,3)))},zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=ci(e,3);++r<i;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return Jr(t,o),n},zn.rest=function(n,r){if("function"!=typeof n)throw new Ot(e);return Xr(n,r=r===t?r:ga(r))},zn.reverse=ns,zn.sampleSize=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),(Us(e)?Qn:Qr)(e,n)},zn.set=function(t,e,n){return null==t?t:to(t,e,n)},zn.setWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:to(e,n,r,o)},zn.shuffle=function(t){return(Us(t)?tr:ro)(t)},zn.slice=function(e,n,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Di(e,n,r)?(n=0,r=o):(n=null==n?0:ga(n),r=r===t?o:ga(r)),oo(e,n,r)):[]},zn.sortBy=As,zn.sortedUniq=function(t){return t&&t.length?uo(t):[]},zn.sortedUniqBy=function(t,e){return t&&t.length?uo(t,ci(e,2)):[]},zn.split=function(e,n,r){return r&&"number"!=typeof r&&Di(e,n,r)&&(n=r=t),(r=r===t?f:r>>>0)?(e=_a(e))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=co(n))&&sn(e)?ko(fn(e),0,r):e.split(n,r):[]},zn.spread=function(t,n){if("function"!=typeof t)throw new Ot(e);return n=null==n?0:bn(ga(n),0),Xr((function(e){var r=e[n],o=ko(e,0,n);return r&&Fe(o,r),Ee(t,this,o)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?oo(t,1,e):[]},zn.take=function(e,n,r){return e&&e.length?oo(e,0,(n=r||n===t?1:ga(n))<0?0:n):[]},zn.takeRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=o-(n=r||n===t?1:ga(n)))<0?0:n,o):[]},zn.takeRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?mo(t,ci(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,n,r){var o=!0,i=!0;if("function"!=typeof t)throw new Ot(e);return na(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Fs(t,n,{leading:o,maxWait:n,trailing:i})},zn.thru=ms,zn.toArray=ha,zn.toPairs=ja,zn.toPairsIn=za,zn.toPath=function(t){return Us(t)?Me(t,Pi):ca(t)?[t]:To(Li(_a(t)))},zn.toPlainObject=ba,zn.transform=function(t,e,n){var r=Us(t),o=r||Ys(t)||pa(t);if(e=ci(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:na(t)&&Qs(i)?Vn(Ut(t)):{}}return(o?xe:Dr)(t,(function(t,r,o){return e(n,t,r,o)})),n},zn.unary=function(t){return Os(t,1)},zn.union=rs,zn.unionBy=os,zn.unionWith=is,zn.uniq=function(t){return t&&t.length?po(t):[]},zn.uniqBy=function(t,e){return t&&t.length?po(t,ci(e,2)):[]},zn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?po(e,t,n):[]},zn.unset=function(t,e){return null==t||fo(t,e)},zn.unzip=ss,zn.unzipWith=as,zn.update=function(t,e,n){return null==t?t:ho(t,e,_o(n))},zn.updateWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:ho(e,n,_o(r),o)},zn.values=Va,zn.valuesIn=function(t){return null==t?[]:Xe(t,Ia(t))},zn.without=us,zn.words=Qa,zn.wrap=function(t,e){return Ps(_o(e),t)},zn.xor=ls,zn.xorBy=cs,zn.xorWith=ps,zn.zip=ds,zn.zipObject=function(t,e){return yo(t||[],e||[],nr)},zn.zipObjectDeep=function(t,e){return yo(t||[],e||[],to)},zn.zipWith=fs,zn.entries=ja,zn.entriesIn=za,zn.extend=wa,zn.extendWith=ka,lu(zn,zn),zn.add=_u,zn.attempt=tu,zn.camelCase=Ha,zn.capitalize=Wa,zn.ceil=Du,zn.clamp=function(e,n,r){return r===t&&(r=n,n=t),r!==t&&(r=(r=ya(r))==r?r:0),n!==t&&(n=(n=ya(n))==n?n:0),ur(ya(e),n,r)},zn.clone=function(t){return lr(t,4)},zn.cloneDeep=function(t){return lr(t,5)},zn.cloneDeepWith=function(e,n){return lr(e,5,n="function"==typeof n?n:t)},zn.cloneWith=function(e,n){return lr(e,4,n="function"==typeof n?n:t)},zn.conformsTo=function(t,e){return null==e||cr(t,e,Fa(e))},zn.deburr=qa,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=wu,zn.endsWith=function(e,n,r){e=_a(e),n=co(n);var o=e.length,i=r=r===t?o:ur(ga(r),0,o);return(r-=n.length)>=0&&e.slice(r,i)==n},zn.eq=Vs,zn.escape=function(t){return(t=_a(t))&&J.test(t)?t.replace(U,rn):t},zn.escapeRegExp=function(t){return(t=_a(t))&&nt.test(t)?t.replace(et,"\\$&"):t},zn.every=function(e,n,r){var o=Us(e)?Se:mr;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.find=ys,zn.findIndex=qi,zn.findKey=function(t,e){return Le(t,ci(e,3),Dr)},zn.findLast=bs,zn.findLastIndex=Ui,zn.findLastKey=function(t,e){return Le(t,ci(e,3),wr)},zn.floor=ku,zn.forEach=_s,zn.forEachRight=Ds,zn.forIn=function(t,e){return null==t?t:br(t,ci(e,3),Ia)},zn.forInRight=function(t,e){return null==t?t:_r(t,ci(e,3),Ia)},zn.forOwn=function(t,e){return t&&Dr(t,ci(e,3))},zn.forOwnRight=function(t,e){return t&&wr(t,ci(e,3))},zn.get=Sa,zn.gt=Hs,zn.gte=Ws,zn.has=function(t,e){return null!=t&&vi(t,e,Sr)},zn.hasIn=Oa,zn.head=Ji,zn.identity=iu,zn.includes=function(t,e,n,r){t=Js(t)?t:Va(t),n=n&&!r?ga(n):0;var o=t.length;return n<0&&(n=bn(o+n,0)),la(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&je(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),je(t,e,o)},zn.inRange=function(e,n,r){return n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n){return t>=_n(e,n)&&t<bn(e,n)}(e=ya(e),n,r)},zn.invoke=Ma,zn.isArguments=qs,zn.isArray=Us,zn.isArrayBuffer=Ks,zn.isArrayLike=Js,zn.isArrayLikeObject=Gs,zn.isBoolean=function(t){return!0===t||!1===t||ra(t)&&xr(t)==v},zn.isBuffer=Ys,zn.isDate=Xs,zn.isElement=function(t){return ra(t)&&1===t.nodeType&&!sa(t)},zn.isEmpty=function(t){if(null==t)return!0;if(Js(t)&&(Us(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||pa(t)||qs(t)))return!t.length;var e=gi(t);if(e==w||e==A)return!t.size;if(Ci(t))return!Rr(t).length;for(var n in t)if($t.call(t,n))return!1;return!0},zn.isEqual=function(t,e){return Fr(t,e)},zn.isEqualWith=function(e,n,r){var o=(r="function"==typeof r?r:t)?r(e,n):t;return o===t?Fr(e,n,t,r):!!o},zn.isError=Zs,zn.isFinite=function(t){return"number"==typeof t&&qe(t)},zn.isFunction=Qs,zn.isInteger=ta,zn.isLength=ea,zn.isMap=oa,zn.isMatch=function(t,e){return t===e||Ir(t,e,di(e))},zn.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Ir(e,n,di(n),r)},zn.isNaN=function(t){return ia(t)&&t!=+t},zn.isNative=function(t){if(Ei(t))throw new kt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return $r(t)},zn.isNil=function(t){return null==t},zn.isNull=function(t){return null===t},zn.isNumber=ia,zn.isObject=na,zn.isObjectLike=ra,zn.isPlainObject=sa,zn.isRegExp=aa,zn.isSafeInteger=function(t){return ta(t)&&t>=-9007199254740991&&t<=p},zn.isSet=ua,zn.isString=la,zn.isSymbol=ca,zn.isTypedArray=pa,zn.isUndefined=function(e){return e===t},zn.isWeakMap=function(t){return ra(t)&&gi(t)==N},zn.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==xr(t)},zn.join=function(t,e){return null==t?"":vn.call(t,e)},zn.kebabCase=Ua,zn.last=Zi,zn.lastIndexOf=function(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==t&&(i=(i=ga(r))<0?bn(o+i,0):_n(i,o-1)),n==n?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(e,n,i):Pe(e,Ve,i,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ja,zn.lt=da,zn.lte=fa,zn.max=function(e){return e&&e.length?gr(e,iu,Ar):t},zn.maxBy=function(e,n){return e&&e.length?gr(e,ci(n,2),Ar):t},zn.mean=function(t){return He(t,iu)},zn.meanBy=function(t,e){return He(t,ci(e,2))},zn.min=function(e){return e&&e.length?gr(e,iu,Pr):t},zn.minBy=function(e,n){return e&&e.length?gr(e,ci(n,2),Pr):t},zn.stubArray=vu,zn.stubFalse=yu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Eu,zn.nth=function(e,n){return e&&e.length?Wr(e,ga(n)):t},zn.noConflict=function(){return de._===this&&(de._=jt),this},zn.noop=cu,zn.now=Ss,zn.pad=function(t,e,n){t=_a(t);var r=(e=ga(e))?dn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Uo(ge(o),n)+t+Uo(he(o),n)},zn.padEnd=function(t,e,n){t=_a(t);var r=(e=ga(e))?dn(t):0;return e&&r<e?t+Uo(e-r,n):t},zn.padStart=function(t,e,n){t=_a(t);var r=(e=ga(e))?dn(t):0;return e&&r<e?Uo(e-r,n)+t:t},zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(_a(t).replace(rt,""),e||0)},zn.random=function(e,n,r){if(r&&"boolean"!=typeof r&&Di(e,n,r)&&(n=r=t),r===t&&("boolean"==typeof n?(r=n,n=t):"boolean"==typeof e&&(r=e,e=t)),e===t&&n===t?(e=0,n=1):(e=ma(e),n===t?(n=e,e=0):n=ma(n)),e>n){var o=e;e=n,n=o}if(r||e%1||n%1){var i=kn();return _n(e+i*(n-e+ue("1e-"+((i+"").length-1))),n)}return Gr(e,n)},zn.reduce=function(t,e,n){var r=Us(t)?Ie:Ue,o=arguments.length<3;return r(t,ci(e,4),n,o,fr)},zn.reduceRight=function(t,e,n){var r=Us(t)?$e:Ue,o=arguments.length<3;return r(t,ci(e,4),n,o,hr)},zn.repeat=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),Yr(_a(e),n)},zn.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(e,n,r){var o=-1,i=(n=Do(n,e)).length;for(i||(i=1,e=t);++o<i;){var s=null==e?t:e[Pi(n[o])];s===t&&(o=i,s=r),e=Qs(s)?s.call(e):s}return e},zn.round=Cu,zn.runInContext=s,zn.sample=function(t){return(Us(t)?Zn:Zr)(t)},zn.size=function(t){if(null==t)return 0;if(Js(t))return la(t)?dn(t):t.length;var e=gi(t);return e==w||e==A?t.size:Rr(t).length},zn.snakeCase=Ga,zn.some=function(e,n,r){var o=Us(e)?Be:io;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.sortedIndex=function(t,e){return so(t,e)},zn.sortedIndexBy=function(t,e,n){return ao(t,e,ci(n,2))},zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=so(t,e);if(r<n&&Vs(t[r],e))return r}return-1},zn.sortedLastIndex=function(t,e){return so(t,e,!0)},zn.sortedLastIndexBy=function(t,e,n){return ao(t,e,ci(n,2),!0)},zn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=so(t,e,!0)-1;if(Vs(t[n],e))return n}return-1},zn.startCase=Ya,zn.startsWith=function(t,e,n){return t=_a(t),n=null==n?0:ur(ga(n),0,t.length),e=co(e),t.slice(n,n+e.length)==e},zn.subtract=xu,zn.sum=function(t){return t&&t.length?Ke(t,iu):0},zn.sumBy=function(t,e){return t&&t.length?Ke(t,ci(e,2)):0},zn.template=function(e,n,r){var o=zn.templateSettings;r&&Di(e,n,r)&&(n=t),e=_a(e),n=ka({},n,o,ti);var i,s,a=ka({},n.imports,o.imports,ti),u=Fa(a),l=Xe(a,u),c=0,p=n.interpolate||bt,d="__p += '",f=At((n.escape||bt).source+"|"+p.source+"|"+(p===X?pt:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),h="//# sourceURL="+($t.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oe+"]")+"\n";e.replace(f,(function(t,n,r,o,a,u){return r||(r=o),d+=e.slice(c,u).replace(_t,on),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var m=$t.call(n,"variable")&&n.variable;if(m){if(lt.test(m))throw new kt("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(V,""):d).replace(H,"$1").replace(W,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=tu((function(){return Et(u,h+"return "+d).apply(t,l)}));if(g.source=d,Zs(g))throw g;return g},zn.times=function(t,e){if((t=ga(t))<1||t>p)return[];var n=f,r=_n(t,f);e=ci(e),t-=f;for(var o=Je(r,e);++n<t;)e(n);return o},zn.toFinite=ma,zn.toInteger=ga,zn.toLength=va,zn.toLower=function(t){return _a(t).toLowerCase()},zn.toNumber=ya,zn.toSafeInteger=function(t){return t?ur(ga(t),-9007199254740991,p):0===t?t:0},zn.toString=_a,zn.toUpper=function(t){return _a(t).toUpperCase()},zn.trim=function(e,n,r){if((e=_a(e))&&(r||n===t))return Ge(e);if(!e||!(n=co(n)))return e;var o=fn(e),i=fn(n);return ko(o,Qe(o,i),tn(o,i)+1).join("")},zn.trimEnd=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.slice(0,hn(e)+1);if(!e||!(n=co(n)))return e;var o=fn(e);return ko(o,0,tn(o,fn(n))+1).join("")},zn.trimStart=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.replace(rt,"");if(!e||!(n=co(n)))return e;var o=fn(e);return ko(o,Qe(o,fn(n))).join("")},zn.truncate=function(e,n){var r=30,o="...";if(na(n)){var i="separator"in n?n.separator:i;r="length"in n?ga(n.length):r,o="omission"in n?co(n.omission):o}var s=(e=_a(e)).length;if(sn(e)){var a=fn(e);s=a.length}if(r>=s)return e;var u=r-dn(o);if(u<1)return o;var l=a?ko(a,0,u).join(""):e.slice(0,u);if(i===t)return l+o;if(a&&(u+=l.length-u),aa(i)){if(e.slice(u).search(i)){var c,p=l;for(i.global||(i=At(i.source,_a(dt.exec(i))+"g")),i.lastIndex=0;c=i.exec(p);)var d=c.index;l=l.slice(0,d===t?u:d)}}else if(e.indexOf(co(i),u)!=u){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+o},zn.unescape=function(t){return(t=_a(t))&&K.test(t)?t.replace(q,mn):t},zn.uniqueId=function(t){var e=++Bt;return _a(t)+e},zn.upperCase=Xa,zn.upperFirst=Za,zn.each=_s,zn.eachRight=Ds,zn.first=Ji,lu(zn,(bu={},Dr(zn,(function(t,e){$t.call(zn.prototype,e)||(bu[e]=t)})),bu),{chain:!1}),zn.VERSION="4.17.21",xe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),xe(["drop","take"],(function(e,n){qn.prototype[e]=function(r){r=r===t?1:bn(ga(r),0);var o=this.__filtered__&&!n?new qn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(r,o.__takeCount__):o.__views__.push({size:_n(r,f),type:e+(o.__dir__<0?"Right":"")}),o},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xe(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ci(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),xe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}})),xe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(iu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new qn(this):this.map((function(n){return Tr(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(Rs(ci(t)))},qn.prototype.slice=function(e,n){e=ga(e);var r=this;return r.__filtered__&&(e>0||n<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(n=ga(n))<0?r.dropRight(-n):r.take(n-e)),r)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(f)},Dr(qn.prototype,(function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=zn[o?"take"+("last"==n?"Right":""):n],s=o||/^find/.test(n);i&&(zn.prototype[n]=function(){var n=this.__wrapped__,a=o?[1]:arguments,u=n instanceof qn,l=a[0],c=u||Us(n),p=function(t){var e=i.apply(zn,Fe([t],a));return o&&d?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,f=!!this.__actions__.length,h=s&&!d,m=u&&!f;if(!s&&c){n=m?n:new qn(this);var g=e.apply(n,a);return g.__actions__.push({func:ms,args:[p],thisArg:t}),new Wn(g,d)}return h&&m?e.apply(this,a):(g=this.thru(p),h?o?g.value()[0]:g.value():g)})})),xe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Nt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Us(o)?o:[],t)}return this[n]((function(n){return e.apply(Us(n)?n:[],t)}))}})),Dr(qn.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";$t.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:e,func:n})}})),Mn[Vo(t,2).name]=[{name:"wrapper",func:t}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=To(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=To(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=To(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Us(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=_n(e,t+s);break;case"takeRight":t=bn(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,l=r?a:s-1,c=this.__iteratees__,p=c.length,d=0,f=_n(u,this.__takeCount__);if(!n||!r&&o==u&&f==u)return go(t,this.__actions__);var h=[];t:for(;u--&&d<f;){for(var m=-1,g=t[l+=e];++m<p;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue t;break t}}h[d++]=g}return h},zn.prototype.at=gs,zn.prototype.chain=function(){return hs(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===t&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var n,r=this;r instanceof Hn;){var o=zi(r);o.__index__=0,o.__values__=t,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,n},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var n=e;return this.__actions__.length&&(n=new qn(this)),(n=n.reverse()).__actions__.push({func:ms,args:[ns],thisArg:t}),new Wn(n,this.__chain__)}return this.thru(ns)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Qt&&(zn.prototype[Qt]=function(){return this}),zn}();he?((he.exports=gn)._=gn,fe._=gn):de._=gn}.call(s);const yd=fd.create({name:"text",group:"inline"});var bd=200,_d=function(){};_d.prototype.append=function(t){return t.length?(t=_d.from(t),!this.length&&t||t.length<bd&&this.leafAppend(t)||this.length<bd&&t.leafPrepend(this)||this.appendInner(t)):this},_d.prototype.prepend=function(t){return t.length?_d.from(t).append(this):this},_d.prototype.appendInner=function(t){return new wd(this,t)},_d.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?_d.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},_d.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},_d.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},_d.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(e,n){return r.push(t(e,n))}),e,n),r},_d.from=function(t){return t instanceof _d?t:t&&t.length?new Dd(t):_d.empty};var Dd=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,r){for(var o=e;o<n;o++)if(!1===t(this.values[o],r+o))return!1},e.prototype.forEachInvertedInner=function(t,e,n,r){for(var o=e-1;o>=n;o--)if(!1===t(this.values[o],r+o))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=bd)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=bd)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(_d);_d.empty=new Dd([]);var wd=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,n,r){var o=this.left.length;return!(e<o&&!1===this.left.forEachInner(t,e,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(t,Math.max(e-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},e.prototype.forEachInvertedInner=function(t,e,n,r){var o=this.left.length;return!(e>o&&!1===this.right.forEachInvertedInner(t,e-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(t,Math.min(e,o),n,r))&&void 0)},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var n=this.left.length;return e<=n?this.left.slice(t,e):t>=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(_d),kd=_d;class Ed{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}e&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,s,a=t.tr,u=[],l=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(o,e+1),r=n.maps.length),r--,void l.push(t);if(n){l.push(new Cd(t.map));let e,o=t.step.map(n.slice(r));o&&a.maybeStep(o).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],u.push(new Cd(e,void 0,void 0,u.length+l.length))),r--,e&&n.appendMap(e,r)}else a.maybeStep(t.step);return t.selection?(i=n?t.selection.map(n.slice(r)):t.selection,s=new Ed(this.items.slice(0,o).append(l.reverse().concat(u)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:i}}addTransform(t,e,n,r){let o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null;for(let n=0;n<t.steps.length;n++){let u,l=t.steps[n].invert(t.docs[n]),c=new Cd(t.mapping.maps[n],l,e);(u=a&&a.merge(c))&&(c=u,n?o.pop():s=s.slice(0,s.length-1)),o.push(c),e&&(i++,e=void 0),r||(a=c)}let u=i-n.depth;return u>Ad&&(s=function(t,e){let n;return t.forEach(((t,r)=>{if(t.selection&&0==e--)return n=r,!1})),t.slice(n)}(s,u),i-=u),new Ed(s.append(o),i)}remapping(t,e){let n=new ou;return this.items.forEach(((e,r)=>{let o=null!=e.mirrorOffset&&r-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,o)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new Ed(this.items.append(t.map((t=>new Cd(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),o=t.mapping,i=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),r);let a=e;this.items.forEach((e=>{let r=o.getMirror(--a);if(null==r)return;i=Math.min(i,r);let u=o.maps[r];if(e.step){let i=t.steps[r].invert(t.docs[r]),l=e.selection&&e.selection.map(o.slice(a+1,r));l&&s++,n.push(new Cd(u,i,l))}else n.push(new Cd(u))}),r);let u=[];for(let t=e;t<i;t++)u.push(new Cd(o.maps[t]));let l=this.items.slice(0,r).append(u).append(n),c=new Ed(l,s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,r=[],o=0;return this.items.forEach(((i,s)=>{if(s>=t)r.push(i),i.selection&&o++;else if(i.step){let t=i.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=i.selection&&i.selection.map(e.slice(n));a&&o++;let u,l=new Cd(s.invert(),t,a),c=r.length-1;(u=r.length&&r[c].merge(l))?r[c]=u:r.push(l)}}else i.map&&n--}),this.items.length,0),new Ed(kd.from(r.reverse()),o)}}Ed.empty=new Ed(kd.empty,0);class Cd{constructor(t,e,n,r){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Cd(e.getMap().invert(),e,this.selection)}}}class xd{constructor(t,e,n,r){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=r}}const Ad=20;function Sd(t){let e=[];return t.forEach(((t,n,r,o)=>e.push(r,o))),e}function Od(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function Nd(t,e,n,r){let o=Fd(e),i=Id.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(!s)return;let a=s.selection.resolve(s.transform.doc),u=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),i,o),l=new xd(r?u:s.remaining,r?s.remaining:u,null,0);n(s.transform.setSelection(a).setMeta(Id,{redo:r,historyState:l}).scrollIntoView())}let Td=!1,Md=null;function Fd(t){let e=t.plugins;if(Md!=e){Td=!1,Md=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){Td=!0;break}}return Td}const Id=new rl("history"),$d=new rl("closeHistory");function Bd(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new tl({key:Id,state:{init:()=>new xd(Ed.empty,Ed.empty,null,0),apply:(e,n,r)=>function(t,e,n,r){let o,i=n.getMeta(Id);if(i)return i.historyState;n.getMeta($d)&&(t=new xd(t.done,t.undone,null,0));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(Id))return s.getMeta(Id).redo?new xd(t.done.addTransform(n,void 0,r,Fd(e)),t.undone,Sd(n.mapping.maps[n.steps.length-1]),t.prevTime):new xd(t.done,t.undone.addTransform(n,void 0,r,Fd(e)),null,t.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new xd(t.done.rebased(n,o),t.undone.rebased(n,o),Od(t.prevRanges,n.mapping),t.prevTime):new xd(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Od(t.prevRanges,n.mapping),t.prevTime);{let o=0==t.prevTime||!s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,r)=>{for(let o=0;o<e.length;o+=2)t<=e[o+1]&&r>=e[o]&&(n=!0)})),n}(n,t.prevRanges)),i=s?Od(t.prevRanges,n.mapping):Sd(n.mapping.maps[n.steps.length-1]);return new xd(t.done.addTransform(n,o?e.selection.getBookmark():void 0,r,Fd(e)),Ed.empty,i,n.time)}}(n,r,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,r="historyUndo"==n?Rd:"historyRedo"==n?Ld:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const Rd=(t,e)=>{let n=Id.getState(t);return!(!n||0==n.done.eventCount)&&(e&&Nd(n,t,e,!1),!0)},Ld=(t,e)=>{let n=Id.getState(t);return!(!n||0==n.undone.eventCount)&&(e&&Nd(n,t,e,!0),!0)},Pd=jp.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>Rd(t,e),redo:()=>({state:t,dispatch:e})=>Ld(t,e)}),addProseMirrorPlugins(){return[Bd(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),jd=Object.freeze({COMMON:"common",DESKTOP:"desktop",TABLET:"tablet",MOBILE:"mobile",get values(){return[this.COMMON,this.MOBILE,this.TABLET,this.DESKTOP]}}),zd=Object.freeze({UPPERCASE:"uppercase",LOWERCASE:"lowercase",CAPITALIZE:"capitalize"}),Vd=Object.freeze({LEFT:"left",CENTER:"center",RIGHT:"right",JUSTIFY:"justify",get values(){return[this.LEFT,this.CENTER,this.RIGHT,this.JUSTIFY]}}),Hd=Object.freeze({DOCUMENT:"doc",PARAGRAPH:"paragraph",HEADING:"heading",LIST:"list",LIST_ITEM:"listItem",TEXT:"text",get blocks(){return[this.PARAGRAPH,this.LIST,this.HEADING]}}),Wd=Object.freeze({DISC:"disc",CIRCLE:"circle",SQUARE:"square",DECIMAL:"decimal",ROMAN:"roman",LATIN:"latin",get values(){return[this.DISC,this.CIRCLE,this.SQUARE,this.DECIMAL,this.ROMAN,this.LATIN]},get ordered(){return[this.DECIMAL,this.ROMAN,this.LATIN]}}),qd=Object.freeze({ALIGNMENT:"alignment",BACKGROUND_COLOR:"background_color",FONT_COLOR:"font_color",FONT_FAMILY:"font_family",FONT_SIZE:"font_size",FONT_STYLE:"font_style",FONT_WEIGHT:"font_weight",LINE_HEIGHT:"line_height",TEXT_DECORATION:"text_decoration",SUPERSCRIPT:"superscript",MARGIN:"margin",LINK:"link",STYLE_PRESET:"style_preset",get attributes(){return[this.ALIGNMENT,this.LINE_HEIGHT,this.MARGIN]},get presetAttributes(){return[this.LINE_HEIGHT]},get inlineMarks(){return[this.TEXT_DECORATION,this.LINK,this.SUPERSCRIPT,this.BACKGROUND_COLOR]},get marks(){return[this.BACKGROUND_COLOR,this.FONT_COLOR,this.FONT_FAMILY,this.FONT_SIZE,this.FONT_STYLE,this.FONT_WEIGHT,this.TEXT_DECORATION,this.SUPERSCRIPT]}}),Ud=Object.freeze({SETTINGS:"settings",ALL:"_"}),Kd=Object.freeze({BLANK:"_blank",SELF:"_self"}),Jd=Object.freeze({URL:"url",BLOCK:"block"});class Gd{static create(t,e){const n=new this(t,e||{});return new tl({key:new rl(this.name),props:n._buildProps()})}constructor(t,e){this.options=e,this.editor=t}_buildProps(){const t=Object.entries(this.addProps()).map((([t,e])=>[t,e.bind(this)]));return Object.fromEntries(t)}addProps(){return{}}}class Yd extends Gd{addProps(){return{transformPastedHTML:this._transformPastedHTML,handlePaste:this._handlePaste}}_transformPastedHTML(t){if(t.includes("data-pm-slice")&&t.includes("zw-style"))return t;const e=Im.build(t);return e.normalizeHTML(),this._removeDeprecatedStyles(e),e.normalizedHTML}_removeDeprecatedStyles(t){const e=t.dom.querySelectorAll('[style*="margin"]');for(const t of Array.from(e))t.style.removeProperty("margin"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-right"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("margin-left")}_handlePaste(t,e,n){const r=this._insertPastedContent(t,n).scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste");return t.dispatch(r),!0}_insertPastedContent({state:t,input:e},n){return this._isFullBlockSelected(t)?t.tr.replaceSelectionWith(n.content,e.shiftKey):t.tr.replaceSelection(n)}_isFullBlockSelected(t){const e=this._expandSelectionToBlocks(t),n=this._isMatchPosition(e.from,t.selection.from),r=this._isMatchPosition(e.to,t.selection.to);return n&&r}_expandSelectionToBlocks({selection:t,doc:e}){let n=t.from,r=t.to;return e.nodesBetween(n,r,((t,e,o)=>{o.type.name===Hd.DOCUMENT&&(n=Math.min(n,e+1),r=Math.max(r,e+t.nodeSize-1))})),{from:n,to:r}}_isMatchPosition(t,e){return Math.abs(t-e)<5}}class Xd extends Gd{addProps(){return{decorations:this._buildDecorations}}_buildDecorations({doc:t}){const e=[];return this.editor.isEditable?t.childCount>1?void 0:(t.descendants(((t,n)=>{if(!t.childCount){const r=Ic.node(n,n+t.nodeSize,{class:"zw-wysiwyg__placeholder","data-placeholder":"Type your text here..."});e.push(r)}return!1})),Rc.create(t,e)):null}}function Zd(t){this.j={},this.jr=[],this.jd=null,this.t=t}Zd.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var n=e,r=this.j[t];if(r)return n&&(r.t=n),r;r=Qd();var o=rf(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=n||o.t):r.t=n,this.j[t]=r,r}};var Qd=function(){return new Zd},tf=function(t){return new Zd(t)},ef=function(t,e,n){t.j[e]||(t.j[e]=n)},nf=function(t,e,n){t.jr.push([e,n])},rf=function(t,e){var n=t.j[e];if(n)return n;for(var r=0;r<t.jr.length;r++){var o=t.jr[r][0],i=t.jr[r][1];if(o.test(e))return i}return t.jd},of=function(t,e,n){for(var r=0;r<e.length;r++)ef(t,e[r],n)},sf=function(t,e){for(var n=0;n<e.length;n++){var r=e[n][0],o=e[n][1];ef(t,r,o)}},af=function(t,e,n,r){for(var o,i=0,s=e.length;i<s&&(o=t.j[e[i]]);)t=o,i++;if(i>=s)return[];for(;i<s-1;)o=r(),ef(t,e[i],o),t=o,i++;ef(t,e[s-1],n)},uf="DOMAIN",lf="LOCALHOST",cf="TLD",pf="NUM",df="PROTOCOL",ff="MAILTO",hf="WS",mf="NL",gf="OPENBRACE",vf="OPENBRACKET",yf="OPENANGLEBRACKET",bf="OPENPAREN",_f="CLOSEBRACE",Df="CLOSEBRACKET",wf="CLOSEANGLEBRACKET",kf="CLOSEPAREN",Ef="AMPERSAND",Cf="APOSTROPHE",xf="ASTERISK",Af="AT",Sf="BACKSLASH",Of="BACKTICK",Nf="CARET",Tf="COLON",Mf="COMMA",Ff="DOLLAR",If="DOT",$f="EQUALS",Bf="EXCLAMATION",Rf="HYPHEN",Lf="PERCENT",Pf="PIPE",jf="PLUS",zf="POUND",Vf="QUERY",Hf="QUOTE",Wf="SEMI",qf="SLASH",Uf="TILDE",Kf="UNDERSCORE",Jf="SYM",Gf=Object.freeze({__proto__:null,DOMAIN:uf,LOCALHOST:lf,TLD:cf,NUM:pf,PROTOCOL:df,MAILTO:ff,WS:hf,NL:mf,OPENBRACE:gf,OPENBRACKET:vf,OPENANGLEBRACKET:yf,OPENPAREN:bf,CLOSEBRACE:_f,CLOSEBRACKET:Df,CLOSEANGLEBRACKET:wf,CLOSEPAREN:kf,AMPERSAND:Ef,APOSTROPHE:Cf,ASTERISK:xf,AT:Af,BACKSLASH:Sf,BACKTICK:Of,CARET:Nf,COLON:Tf,COMMA:Mf,DOLLAR:Ff,DOT:If,EQUALS:$f,EXCLAMATION:Bf,HYPHEN:Rf,PERCENT:Lf,PIPE:Pf,PLUS:jf,POUND:zf,QUERY:Vf,QUOTE:Hf,SEMI:Wf,SLASH:qf,TILDE:Uf,UNDERSCORE:Kf,SYM:Jf}),Yf="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "),Xf=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,Zf=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,Qf=/\uFE0F/,th=/\d/,eh=/\s/;function nh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Qd(),n=tf(pf),r=tf(uf),o=Qd(),i=tf(hf),s=[[th,r],[Xf,r],[Zf,r],[Qf,r]],a=function(){var t=tf(uf);return t.j={"-":o},t.jr=[].concat(s),t},u=function(t){var e=a();return e.t=t,e};sf(e,[["'",tf(Cf)],["{",tf(gf)],["[",tf(vf)],["<",tf(yf)],["(",tf(bf)],["}",tf(_f)],["]",tf(Df)],[">",tf(wf)],[")",tf(kf)],["&",tf(Ef)],["*",tf(xf)],["@",tf(Af)],["`",tf(Of)],["^",tf(Nf)],[":",tf(Tf)],[",",tf(Mf)],["$",tf(Ff)],[".",tf(If)],["=",tf($f)],["!",tf(Bf)],["-",tf(Rf)],["%",tf(Lf)],["|",tf(Pf)],["+",tf(jf)],["#",tf(zf)],["?",tf(Vf)],['"',tf(Hf)],["/",tf(qf)],[";",tf(Wf)],["~",tf(Uf)],["_",tf(Kf)],["\\",tf(Sf)]]),ef(e,"\n",tf(mf)),nf(e,eh,i),ef(i,"\n",Qd()),nf(i,eh,i);for(var l=0;l<Yf.length;l++)af(e,Yf[l],u(cf),a);var c=a(),p=a(),d=a(),f=a();af(e,"file",c,a),af(e,"ftp",p,a),af(e,"http",d,a),af(e,"mailto",f,a);var h=a(),m=tf(df),g=tf(ff);ef(p,"s",h),ef(p,":",m),ef(d,"s",h),ef(d,":",m),ef(c,":",m),ef(h,":",m),ef(f,":",g);for(var v=a(),y=0;y<t.length;y++)af(e,t[y],v,a);return ef(v,":",m),af(e,"localhost",u(lf),a),nf(e,th,n),nf(e,Xf,r),nf(e,Zf,r),nf(e,Qf,r),nf(n,th,n),nf(n,Xf,r),nf(n,Zf,r),nf(n,Qf,r),ef(n,"-",o),ef(r,"-",o),ef(o,"-",o),nf(r,th,r),nf(r,Xf,r),nf(r,Zf,r),nf(r,Qf,r),nf(o,th,r),nf(o,Xf,r),nf(o,Zf,r),nf(o,Qf,r),e.jd=tf(Jf),e}var rh={defaultProtocol:"http",events:null,format:oh,formatHref:oh,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function oh(t){return t}function ih(){}function sh(t,e){function n(e,n){this.t=t,this.v=e,this.tk=n}return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var o in n)r[o]=n[o];r.constructor=e,e.prototype=r}(ih,n,e),n}ih.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rh.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var ah=sh("email",{isLink:!0}),uh=sh("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),lh=sh("text"),ch=sh("nl"),ph=sh("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rh.defaultProtocol,e=this.tk,n=!1,r=!1,o=[],i=0;e[i].t===df;)n=!0,o.push(e[i].v),i++;for(;e[i].t===qf;)r=!0,o.push(e[i].v),i++;for(;i<e.length;i++)o.push(e[i].v);return o=o.join(""),n||r||(o="".concat(t,"://").concat(o)),o},hasProtocol:function(){return this.tk[0].t===df}}),dh=Object.freeze({__proto__:null,MultiToken:ih,Base:ih,createTokenClass:sh,MailtoEmail:ah,Email:uh,Text:lh,Nl:ch,Url:ph});function fh(){var t=Qd(),e=Qd(),n=Qd(),r=Qd(),o=Qd(),i=Qd(),s=Qd(),a=tf(ph),u=Qd(),l=tf(ph),c=tf(ph),p=Qd(),d=Qd(),f=Qd(),h=Qd(),m=Qd(),g=tf(ph),v=tf(ph),y=tf(ph),b=tf(ph),_=Qd(),D=Qd(),w=Qd(),k=Qd(),E=Qd(),C=Qd(),x=tf(uh),A=Qd(),S=tf(uh),O=tf(ah),N=Qd(),T=Qd(),M=Qd(),F=Qd(),I=tf(ch);ef(t,mf,I),ef(t,df,e),ef(t,ff,n),ef(e,qf,r),ef(r,qf,o),ef(t,cf,i),ef(t,uf,i),ef(t,lf,a),ef(t,pf,i),ef(o,cf,c),ef(o,uf,c),ef(o,pf,c),ef(o,lf,c),ef(i,If,s),ef(E,If,C),ef(s,cf,a),ef(s,uf,i),ef(s,pf,i),ef(s,lf,i),ef(C,cf,x),ef(C,uf,E),ef(C,pf,E),ef(C,lf,E),ef(a,If,s),ef(x,If,C),ef(a,Tf,u),ef(a,qf,c),ef(u,pf,l),ef(l,qf,c),ef(x,Tf,A),ef(A,pf,S);var $=[Ef,xf,Af,Sf,Of,Nf,Ff,uf,$f,Rf,lf,pf,Lf,Pf,jf,zf,df,qf,Jf,Uf,cf,Kf],B=[Cf,wf,_f,Df,kf,Tf,Mf,If,Bf,yf,gf,vf,bf,Vf,Hf,Wf];ef(c,gf,d),ef(c,vf,f),ef(c,yf,h),ef(c,bf,m),ef(p,gf,d),ef(p,vf,f),ef(p,yf,h),ef(p,bf,m),ef(d,_f,c),ef(f,Df,c),ef(h,wf,c),ef(m,kf,c),ef(g,_f,c),ef(v,Df,c),ef(y,wf,c),ef(b,kf,c),ef(_,_f,c),ef(D,Df,c),ef(w,wf,c),ef(k,kf,c),of(d,$,g),of(f,$,v),of(h,$,y),of(m,$,b),of(d,B,_),of(f,B,D),of(h,B,w),of(m,B,k),of(g,$,g),of(v,$,v),of(y,$,y),of(b,$,b),of(g,B,g),of(v,B,v),of(y,B,y),of(b,B,b),of(_,$,g),of(D,$,v),of(w,$,y),of(k,$,b),of(_,B,_),of(D,B,D),of(w,B,w),of(k,B,k),of(c,$,c),of(p,$,c),of(c,B,p),of(p,B,p),ef(n,cf,O),ef(n,uf,O),ef(n,pf,O),ef(n,lf,O),of(O,$,O),of(O,B,N),of(N,$,O),of(N,B,N);var R=[Ef,Cf,xf,Sf,Of,Nf,_f,Ff,uf,$f,Rf,pf,gf,Lf,Pf,jf,zf,Vf,qf,Jf,Uf,cf,Kf];return of(i,R,T),ef(i,Af,M),of(a,R,T),ef(a,Af,M),of(s,R,T),of(T,R,T),ef(T,Af,M),ef(T,If,F),of(F,R,T),ef(M,cf,E),ef(M,uf,E),ef(M,pf,E),ef(M,lf,x),t}function hh(t,e,n){var r=n[0].s,o=n[n.length-1].e;return new t(e.substr(r,o-r),n)}var mh="undefined"!=typeof console&&console&&console.warn||function(){},gh={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function vh(t){if(gh.initialized&&mh('linkifyjs: already initialized - will not register custom protocol "'.concat(t,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(t))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");gh.customProtocols.push(t)}function yh(t){return gh.initialized||function(){gh.scanner={start:nh(gh.customProtocols),tokens:Gf},gh.parser={start:fh(),tokens:dh};for(var t={createTokenClass:sh},e=0;e<gh.pluginQueue.length;e++)gh.pluginQueue[e][1]({scanner:gh.scanner,parser:gh.parser,utils:t});gh.initialized=!0}(),function(t,e,n){for(var r=n.length,o=0,i=[],s=[];o<r;){for(var a=t,u=null,l=null,c=0,p=null,d=-1;o<r&&!(u=rf(a,n[o].t));)s.push(n[o++]);for(;o<r&&(l=u||rf(a,n[o].t));)u=null,(a=l).accepts()?(d=0,p=a):d>=0&&d++,o++,c++;if(d<0)for(var f=o-c;f<o;f++)s.push(n[f]);else{s.length>0&&(i.push(hh(lh,e,s)),s=[]),o-=d,c-=d;var h=p.t,m=n.slice(o-c,o);i.push(hh(h,e,m))}}return s.length>0&&i.push(hh(lh,e,s)),i}(gh.parser.start,t,function(t,e){for(var n=function(t){for(var e=[],n=t.length,r=0;r<n;){var o=t.charCodeAt(r),i=void 0,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}(e.replace(/[A-Z]/g,(function(t){return t.toLowerCase()}))),r=n.length,o=[],i=0,s=0;s<r;){for(var a=t,u=null,l=0,c=null,p=-1,d=-1;s<r&&(u=rf(a,n[s]));)(a=u).accepts()?(p=0,d=0,c=a):p>=0&&(p+=n[s].length,d++),l+=n[s].length,i+=n[s].length,s++;i-=p,s-=d,l-=p,o.push({t:c.t,v:e.substr(i-l,l),s:i-l,e:i})}return o}(gh.scanner.start,t))}function bh(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=yh(t),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||e&&i.t!==e||r.push(i.toObject())}return r}function _h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=yh(t);return 1===n.length&&n[0].isLink&&(!e||n[0].t===e)}class Dh extends Gd{addProps(){return{handlePaste:this._handlePaste}}_handlePaste(t,e,n){if(t.state.selection.empty)return!1;const r=n.content.textBetween(0,n.content.size).trim(),o=_h(r);if(!r||!o)return!1;const i=this._createLinkAttrs(r,n.content);return this.editor.commands.applyLink(i),!0}_createLinkAttrs(t,e){return Pm.query(e,{typeName:Hd.TEXT,mark:{typeName:qd.LINK},getMark:{typeName:qd.LINK}})?.attrs||{href:t}}}function wh(t){return(...e)=>n=>t(n,...e)}function kh(t){const e=Object.entries(t).reduce(((t,[e,n])=>{if(!n)return t;return`${t}--zw-${e.replace(/_/g,"-")}:${n};`}),"");return e?{style:e}:null}function Eh(t){const e=kh(t);return["span",e?{...e,class:"zw-style"}:{},0]}function Ch(t,...e){return({editor:n})=>(n.commands[t](...e),!0)}var xh=Object.defineProperty,Ah=(t,e,n)=>(((t,e,n)=>{e in t?xh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!=typeof e?e+"":e,n),n);function Sh(t,e){let n=!1;return function(){n||(t.apply(this,arguments),n=!0,setTimeout((function(){n=!1}),e))}}function Oh(t){return t>1||t<-1?t/100:t}const Nh=t=>Number.parseFloat(t.toFixed(5).substr(0,5));function Th(t){const e=function(t,e=1){const n=[];let r=0;for(;r<t.length;)n.push(t.substr(r,e)),r+=e;return n}(t.slice(1),2).map((t=>parseInt(t,16))),n=void 0!==e[3]?Math.round(e[3]/255*100)/100:1;return{r:e[0],g:e[1],b:e[2],a:n}}function Mh(t){const{h:e,s:n,v:r,a:o}=t,i=t=>{const o=(t+e/60)%6;return r-r*n*Math.max(Math.min(o,4-o,1),0)},s=[i(5),i(3),i(1)].map((t=>Math.round(255*t)));return{r:s[0],g:s[1],b:s[2],a:o}}function Fh(t){if(!t)return{h:0,s:1,v:1,a:1};const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r);let s=0;o!==i&&(o===e?s=60*(0+(n-r)/(o-i)):o===n?s=60*(2+(r-e)/(o-i)):o===r&&(s=60*(4+(e-n)/(o-i)))),s<0&&(s+=360);const a=[s,0===o?0:(o-i)/o,o],u=Nh(a[1]),l=Nh(a[2]);return{h:Math.floor(a[0]),s:u,v:l,a:t.a}}function Ih(t){const e=Fh(Th(t));const n=function(t){const{h:e,s:n,v:r,a:o}=t,i=r-r*n/2,s=1===i||0===i?0:(r-i)/Math.min(i,1-i);return{h:e,s:Nh(s),l:Nh(i),a:o}}(e),r=Th(t);return{alpha:e.a,hex:t.substr(0,7),hexa:t,hsla:n,hsva:e,hue:e.h,rgba:r}}function $h(t,e,n="0"){return t+n.repeat(Math.max(0,e-t.length))}function Bh(t){return Ih(function(t){let e=t;return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),3!==e.length&&4!==e.length||(e=e.split("").map((t=>t+t)).join("")),e=6===e.length?$h(e,8,"F"):$h($h(e,6),8,"F"),`#${e}`.toUpperCase().substr(0,9)}(t))}const Rh=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}),Lh="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",Ph=`[\\s|\\(]+(${Lh})[,|\\s]+(${Lh})[,|\\s]+(${Lh})\\s*\\)?`,jh=`[\\s|\\(]+(${Lh})[,|\\s]+(${Lh})[,|\\s]+(${Lh})[,|\\s]+(${Lh})\\s*\\)?`,zh=Object.freeze({CSS_UNIT:new RegExp(Lh),RGB:new RegExp(`rgb${Ph}`),RGBA:new RegExp(`rgba${jh}`),HSL:new RegExp(`hsl${Ph}`),HSLA:new RegExp(`hsla${jh}`),HSV:new RegExp(`hsv${Ph}`),HSVA:new RegExp(`hsva${jh}`),HEX3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HEX6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,HEX4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HEX8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}),Vh=Object.freeze({WINDOW:Symbol("window")});Vh.WINDOW;Vh.WINDOW,Vh.WINDOW,Sh(((t,e)=>{t(e)}),20);const Hh=class{static create(t){if(!t)return Hh.fromBlack();let e=t.replace(/^\s+/,"").replace(/\s+$/,"").toLowerCase();if(Rh[e])e=Rh[e];else if(e===this.TRANSPARENT)return Hh.fromTransparent();const n=zh.RGB.exec(e)||zh.RGBA.exec(e);if(n){const t=void 0===n[4]?1:n[4];return Hh.fromRgba({r:Number.parseInt(n[1]),g:Number.parseInt(n[2]),b:Number.parseInt(n[3]),a:Number.parseFloat(t)})}const r=zh.HSL.exec(e)||zh.HSLA.exec(e);if(r){const t=void 0===r[4]?1:r[4];return Hh.fromHsla({h:Number.parseInt(r[1]),s:Number.parseFloat(r[2]),l:Number.parseFloat(r[3]),a:Number.parseFloat(t)})}const o=zh.HSV.exec(e)||zh.HSVA.exec(e);if(o){const t=void 0===o[4]?1:o[4];return Hh.fromHsva({h:Number.parseInt(o[1]),s:Number.parseFloat(o[2]),v:Number.parseFloat(o[3]),a:Number.parseFloat(t)})}return zh.HEX8.exec(e)||zh.HEX6.exec(e)||zh.HEX4.exec(e)||zh.HEX3.exec(e)?Hh.fromHex(e):Hh.fromBlack()}static fromHex(t){const{rgba:e}=Bh(t);return new Hh(e)}static fromRgba({r:t,g:e,b:n,a:r}){const o=Oh(r);return new Hh({r:t,g:e,b:n,a:o})}static fromHsla({h:t,s:e,l:n,a:r}){const o=Oh(e),i=Oh(n),s=Oh(r);return Hh.fromHsva(function(t){const{h:e,s:n,l:r,a:o}=t,i=r+n*Math.min(r,1-r);return{h:e,s:Nh(0===i?0:2-2*r/i),v:Nh(i),a:o}}({h:t,s:o,l:i,a:s}))}static fromHsva({h:t,s:e,v:n,a:r}){const o=Mh({h:t,s:Oh(e),v:Oh(n),a:Oh(r)});return new Hh(o)}static fromTransparent(){return new Hh({r:0,g:0,b:0,a:0})}static fromWhite(){return new Hh({r:255,g:255,b:255,a:1})}static fromBlack(){return new Hh({r:0,g:0,b:0,a:1})}static isTransparent(t){return Hh.create(t).isTransparent()}static isDark(t){return Hh.create(t).isDark()}constructor(t){this._rgba=t,this._hsva=this._calcHsva(),this._alpha=t.a}get hex(){return this.toHexString()}get r(){return this._rgba.r}get b(){return this._rgba.b}get g(){return this._rgba.g}get h(){return this._hsva.h}get s(){return this._hsva.s}get v(){return this._hsva.v}get alpha(){return this._alpha}setAlpha(t){return this._alpha=t,this}toHexString(){return function(t){const e=t=>{const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()};return`#${[e(t.r),e(t.g),e(t.b)].join("")}`}({r:this.r,g:this.g,b:this.b,a:this.alpha})}toRgbaString(){const t=`${Math.floor(100*this.alpha)}%`;return`rgba(${[this.r,this.g,this.b,t].join(", ")})`}get rgba(){return this._rgba}updateRgb(t){this._rgba={...this._rgba,...t},this._hsva=this._calcHsva()}get hsva(){return this._hsva}updateHsv(t){this._hsva={...this._hsva,...t},this._rgba=this._calcRgba()}isTransparent(){return 0===this.alpha}isDark(){return this.getBrightness()<128}getBrightness(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3}_calcHsva(){return Fh(this.rgba)}_calcRgba(){return Mh(this.hsva)}};let Wh=Hh;function qh(t){const e=Wh.create(t);return 1===e.alpha?e.toHexString():e.toRgbaString()}function Uh(t,e){if(!t.includes("em"))return parseInt(t);const n=$m.getComputedStyle(e).fontSize,r=parseFloat(t)*parseFloat(n);return Math.round(r)}function Kh(t,e,n){if(!t.includes("px"))return t;const r=function(t,e){return(t.firstElementChild||t).style.fontSize||$m.getComputedStyle(e).fontSize}(e,n),o=Uh(r,n);return o?(parseInt(t)/o).toFixed(2):null}Ah(Wh,"TRANSPARENT","transparent"),Ah(Wh,"NONE","none");const Jh={start:Vd.LEFT,end:Vd.RIGHT};const Gh=(t,e,n,r)=>({from:Math.max(r,t.pos),to:Math.min(r+n.nodeSize,e.pos)});function Yh(t,e){return t.resolve(e).depth+1}const Xh=(t,e)=>t.eq(e);function Zh(t){return t.type.create(vd.cloneDeep(t.attrs))}const Qh=jp.create({name:"node_processor",addCommands:()=>({setBlockAttributes:wh((({commands:t,state:e},n,r,o={})=>{const i=Le(t.getBlockAttributes(n))??{},{doc:s,tr:a}=e,{from:u,to:l}=a.selection;s.nodesBetween(u,l,((t,e)=>{Hd.blocks.includes(t.type.name)&&a.setNodeAttribute(e,n,{...o,...i,...r})}))})),getBlockAttributes:wh((({editor:t},e,n)=>ze((()=>{let r=Object.assign({},n||{});for(const n of Hd.blocks)Object.assign(r,t.getAttributes(n)?.[e]||{});return Object.keys(r).length?r:null})))),removeBlockAttributes:wh((({commands:t},e)=>{for(const n of Hd.blocks)t.resetAttributes(n,e)})),applyMark:wh((({state:t,commands:e},n,r,o={})=>{const{tr:i,doc:s,schema:a}=t,{$from:u,$to:l}=i.selection,c=qp(qd.LINK,a),p=qp(n,a);if(!(p.spec.group||"").includes(Ud.SETTINGS))return e.setMark(n,r);if(u.pos===l.pos)return;s.nodesBetween(u.pos,l.pos,((t,s)=>{if(t.type.name===Hd.LIST)return;const a=function(t,e){const n="string"==typeof e?e:e.name;return t.find((t=>t.type.name===n))}(t.marks,n),d=p.create({...a?.attrs||{},...r}),f=Gh(u,l,t,s),h=!c.isInSet(t.marks)&&function(t,e,n,r=Xh){const o=t.resolve(e).path.reverse();for(const t of o)if("number"!=typeof t)for(const e of t.marks)if(r(e,n))return!0;return!1}(i.doc,s,d,o.isAppliedToParent);if(h)return(t=>{if(!o.onAppliedToParent||!1===o.onAppliedToParent(t)){const{tr:n,node:r,position:o,mark:i}=t;e._removeNodeMark({tr:n,node:r,position:o,mark:i.type})}})({tr:i,node:t,position:s,mark:d});t.isText?i.addMark(f.from,f.to,d):function(t,e,n,r){const o=Yh(t,r),i=e.from-o<=r,s=e.to+o>=n.nodeSize+r;return i&&s}(i.doc,i.selection,t,s)&&i.addNodeMark(s,d)}))})),getMarks:wh((({editor:t},e)=>{const n=je(t,"state");return ze((()=>{const{selection:t,doc:r}=Le(n),{from:o,to:i}=Le(t),s=[];return r.nodesBetween(o,i,(t=>{for(const n of t.marks)n.type.name===e&&s.unshift(n.attrs)})),s}))})),getMark:wh((({commands:t},e)=>{const n=t.getMarks(e);return ze((()=>Le(n)[0]??null))})),hasMark:wh((({commands:t},e)=>{const n=t.getMark(e);return ze((()=>!!Le(n)))})),getCommonSettingMark:wh((({commands:t},e,n)=>{const r=t.getMark(e);return ze((()=>Le(r)?.value??Le(n)))})),getDeviceSettingMark:wh((({commands:t},e,n)=>{const r=t.getMarks(e),o=t.getDevice();return ze((()=>{for(const t of Le(r)){const e=t[Le(o)];if(e)return e}return Le(n)}))})),removeAllMarks:wh((({state:t,commands:e})=>{const{tr:n,doc:r}=t,{from:o,to:i}=n.selection;r.nodesBetween(o,i,((t,r)=>{for(const o of t.marks)e._removeNodeMark({tr:n,node:t,position:r,mark:o})}))})),removeMarks:wh((({state:t,commands:e},n)=>{const{tr:r,doc:o}=t,{from:i,to:s}=r.selection;o.nodesBetween(i,s,((t,o)=>{const i=t.marks.filter((t=>n.includes(t.type.name)));for(const n of i)e._removeNodeMark({tr:r,node:t,position:o,mark:n})}))})),_removeNodeMark:wh(((t,{tr:e,node:n,position:r,mark:o})=>n.isText?e.removeMark(r,r+n.nodeSize,o):e.removeNodeMark(r,o)))})}),tm=jp.create({name:"text_processor",addCommands:()=>({getSelectedText:wh((({state:t})=>{const{from:e,to:n}=t.selection;return t.doc.textBetween(e,n," ")})),transformText:wh((({state:t},e)=>{const{$from:n,$to:r}=t.tr.selection;n.pos!==r.pos&&t.doc.nodesBetween(n.pos,r.pos,((o,i)=>{if(!o.isText)return;const s=Gh(n,r,o,i),a=Math.max(0,n.pos-i),u=Math.max(0,r.pos-i),l=e({text:o.textContent.substring(a,u)}),c=t.schema.text(l,o.marks);t.tr.replaceWith(s.from,s.to,c)}))}))})}),em=jp.create({name:"selection_processor",addStorage:()=>({selection:null}),addCommands(){return{storeSelection:wh((({state:t})=>{this.storage.selection=t.selection})),restoreSelection:wh((({commands:t})=>{this.storage.selection&&t.setTextSelection(this.storage.selection)})),expandSelection:wh((({tr:t,commands:e},n)=>{let r=t.selection.from,o=t.selection.to;t.doc.nodesBetween(r,o,((e,i,s)=>{if(n({node:e,parent:s})){const n=e.isText?0:Yh(t.doc,i);r=Math.min(r,i+n),o=Math.max(o,i+e.nodeSize-n)}})),e.setTextSelection({from:r,to:o})})),expandSelectionToBlock:wh((({commands:t})=>{t.expandSelection((({parent:t})=>t.type.name===Hd.DOCUMENT))}))}}}),nm=fd.create({name:"doc",topNode:!0,content:"block+"}).extend({marks:Ud.SETTINGS,onCreate(){this.editor.view.dom.addEventListener("click",(t=>{t.target.closest("a")&&t.preventDefault()}))}}),rm=fd.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",wp(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),om=rm.extend({marks:Ud.ALL,addOptions:()=>({HTMLAttributes:{class:"zw-style"}})}),im=fd.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,wp(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>function(t){return new Tp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=Ep(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}}),sm=im.extend({marks:Ud.ALL,addOptions:()=>({levels:[1,2,3,4],HTMLAttributes:{class:"zw-style"}})}),am=jp.create({name:"prose_mirror_plugins",addProseMirrorPlugins(){return[Yd.create(this.editor),Xd.create(this.editor)]}}),um=dd.create({name:qd.FONT_FAMILY,group:Ud.SETTINGS,addOptions:()=>({fonts:[]}),addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontFamily:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e});const n=t.findFontByName(e);let r=Le(t.getFontWeight());n.isWeightSupported(r)||(r=n.findClosestWeight(r),t.applyFontWeight(r)),n.isItalicSupported(r)||t.removeItalic()})),getFont:wh((({commands:t})=>{const e=Le(this.options.defaultPreset),n=t.findFontByName(e.common.font_family),r=t.getFontFamily();return ze((()=>t.findFontByName(Le(r))||n))})),findFontByName:wh(((t,e)=>this.options.fonts.find((t=>t.name===e)))),getFontFamily:wh((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontFamily()))),getDefaultFontFamily:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>Le(e).common.font_family))}))}},parseHTML(){const t=t=>({value:t.replace(/["']/g,"")});return[{style:"--zw-font-family",getAttrs:t},{style:"font-family",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({font_family:t.value?`"${t.value}"`:null})}),lm=jp.create({name:qd.STYLE_PRESET,addGlobalAttributes(){return[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{preset:{isRequired:!1,default:{id:this.options.defaultId},parseHTML:t=>{const e=Le(this.options.presets);if("LI"===t.parentElement.tagName)return null;for(const{id:n,node:r,fallbackClass:o}of e){if(o&&t.classList.contains(o))return{id:n};const e=this.options.styleRenderer.makePresetCssClass({id:n});if(t.matches(e))return{id:n};if(t.tagName===`H${r?.level}`)return{id:n}}return"P"===t.tagName?{id:this.options.defaultId}:null},renderHTML:t=>t.preset?{class:this.options.styleRenderer.makePresetHtmlClass(t.preset)}:null}}}]},addCommands(){function t(t,e){return t.find((t=>e===t.id))}function e(t,e){const n={};for(const r of Object.keys(t)){const o=t[r],i=e[r],s=!i||"inherit"===i.toLowerCase();n[r]=s?o:i}return n}return{getPresetList:wh((()=>ze((()=>this.options.presets.filter((t=>!t.hidden)))))),getPreset:wh((({commands:n})=>{const r=n.getBlockAttributes("preset",{id:this.options.defaultId}),o=n.getPresetList(),i=n.isLink(),s=n.getLinkPreset();return ze((()=>{const n=t(Le(o),Le(r).id);if(!Le(i))return n;const a=Le(s);return{id:n.id,common:e(n.common,a.common),mobile:e(n.mobile,a.mobile),tablet:e(n.tablet,a.tablet),desktop:e(n.desktop,a.desktop)}}))})),applyPreset:wh((({commands:e,chain:n},r)=>{const o=t(Le(e.getPresetList()),r),i=o.node?.type??Hd.PARAGRAPH,s={preset:{id:r}};o.node&&(s.level=o.node.level);for(const t of qd.attributes)s[t]=Le(e.getBlockAttributes(t));n().removeList().setNode(i,s).run()})),applyDefaultPreset:wh((({commands:t})=>{t.applyPreset(this.options.defaultId)})),removePreset:wh((({commands:t})=>{t.setNode(Hd.PARAGRAPH,{preset:null})})),getPresetCustomization:wh((({editor:t,commands:e})=>{const n=je(t,"state");return ze((()=>{const{selection:t,doc:r}=Le(n),{from:o,to:i}=t;return e._getSettingCustomization(r,o,i)}))})),isSettingCustomized:wh((({commands:t},e)=>{const n=t.getPresetCustomization(),r=qd.presetAttributes.includes(e)?"attributes":"marks";return ze((()=>Le(n)[r]?.includes(e)??!1))})),getContentCustomization:wh((({editor:t,commands:e})=>{const n=je(t,"state");return ze((()=>{const{doc:t}=Le(n);return e._getSettingCustomization(t,0,t.content.size)}))})),_getSettingCustomization:wh(((t,e,n,r)=>{const o=new Set,i=new Set;return e.nodesBetween(n,r,(t=>{for(const[e,n]of Object.entries(t.attrs)){qd.presetAttributes.includes(e)&&n&&i.add(e)}for(const{type:e}of t.marks)qd.marks.includes(e.name)&&o.add(e.name)})),{attributes:Array.from(i),marks:Array.from(o)}})),removePresetCustomization:wh((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeMarks(qd.marks).resetAttributes(Hd.PARAGRAPH,qd.presetAttributes).resetAttributes(Hd.HEADING,qd.presetAttributes).restoreSelection().run()})),removeFormat:wh((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeAllMarks().applyDefaultPreset().restoreSelection().run()}))}},onCreate(){this.options.styleRenderer.inject($m.head,this.options.presets)}}),cm=dd.create({name:qd.FONT_WEIGHT,group:Ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontWeight:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e});Le(t.getFont()).isItalicSupported(e)||t.removeItalic()})),toggleBold:wh((({commands:t})=>{const e=Le(t.getFontWeight()),n=Le(t.getFont()),r=Number(e)>=600?"400":"700",o=n.findClosestWeight(r);t.applyFontWeight(o)})),getFontWeight:wh((({commands:t})=>{const e=t.getCommonSettingMark(this.name,t.getDefaultFontWeight()),n=t.getFont();return ze((()=>{const t=Le(e),r=Le(n);return r.isWeightSupported(t)?t:r.findClosestWeight(t)}))})),getDefaultFontWeight:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>Le(e).common.font_weight))}))}},addKeyboardShortcuts:()=>({"Mod-b":Ch("toggleBold"),"Mod-B":Ch("toggleBold")}),parseHTML(){const t=t=>"bold"===t?{value:"700"}:!!Number(t)&&{value:t};return[{style:"--zw-font-weight",getAttrs:t},{style:"font-weight",getAttrs:t},{tag:"b",attrs:{value:"700"}},{tag:"strong",attrs:{value:"700"}}]},renderHTML:({HTMLAttributes:t})=>Eh({font_weight:t.value})}),pm=dd.create({name:qd.FONT_SIZE,group:Ud.SETTINGS,addOptions:()=>({minSize:1,maxSize:100}),addAttributes:()=>({mobile:{default:null},tablet:{default:null},desktop:{default:null}}),addCommands(){return{getFontSize:wh((({commands:t})=>t.getDeviceSettingMark(this.name,t.getDefaultFontSize()))),getDefaultFontSize:wh((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return ze((()=>Le(n)[Le(e)].font_size.replace("px","")))})),applyFontSize:wh((({commands:t},e)=>{const n=Le(t.getDevice());t.applyMark(this.name,{[n]:e},{isAppliedToParent:(t,e)=>t.type.name===e.type.name&&t.attrs[n]===e.attrs[n],onAppliedToParent:({tr:t,node:e,position:r,mark:o})=>{const i={...o.attrs,[n]:null},s=!Object.values(i).some((t=>!!t));if(s)return!1;const a=o.type.create(i);e.isText?t.addMark(r,r+e.nodeSize,a):t.addNodeMark(r,a)}})})),increaseFontSize:wh((({commands:t})=>{const e=Number(Le(t.getFontSize())),n=Math.min(e+1,this.options.maxSize);t.applyFontSize(String(n))})),decreaseFontSize:wh((({commands:t})=>{const e=Number(Le(t.getFontSize())),n=Math.max(e-1,this.options.minSize);t.applyFontSize(String(n))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-=":Ch("increaseFontSize"),"Mod-Shift--":Ch("decreaseFontSize")}),parseHTML(){const t=t=>{if(!t)return null;const e=Uh(t,Le(this.options.wrapperRef));return String(e)};return[{tag:'[style*="--zw-font-size"]',getAttrs:({style:e})=>({mobile:t(e.getPropertyValue("--zw-font-size-mobile")),tablet:t(e.getPropertyValue("--zw-font-size-tablet")),desktop:t(e.getPropertyValue("--zw-font-size-desktop"))})},{style:"font-size",getAttrs:e=>{const n=t(e);return{desktop:n,tablet:n,mobile:null}}}]},renderHTML({HTMLAttributes:t}){const e=t=>t?`${t}px`:null;return Eh({font_size_mobile:e(t.mobile),font_size_tablet:e(t.tablet),font_size_desktop:e(t.desktop)})}}),dm=dd.create({name:qd.FONT_COLOR,group:Ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getFontColor:wh((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontColor()))),getDefaultFontColor:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>Le(e).common.color))})),applyFontColor:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:qh(t)});return[{style:"--zw-font-color",getAttrs:t},{style:"color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({font_color:t.value})}),fm=dd.create({name:qd.BACKGROUND_COLOR,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getBackgroundColor:wh((({commands:t})=>t.getCommonSettingMark(this.name,"rgba(255, 255, 255, 0%)"))),applyBackgroundColor:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:qh(t)});return[{style:"--zw-background-color",getAttrs:t},{style:"background-color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({background_color:t.value})}),hm=jp.create({name:"device_manager",addCommands(){return{getDevice:wh((()=>je(this.options,"device")))}}}),mm=dd.create({name:qd.FONT_STYLE,group:Ud.SETTINGS,addAttributes:()=>({italic:{required:!0}}),addCommands(){return{isItalic:wh((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultFontStyle();return ze((()=>Le(e)?.italic??Le(n).italic))})),isItalicAvailable:wh((({commands:t})=>{const e=t.getFont(),n=t.getFontWeight();return ze((()=>{const t=Le(e),r=Le(n);return t.isItalicSupported(r)&&!t.isWeightItalicOnly(r)}))})),getDefaultFontStyle:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>({italic:"italic"===Le(e).common.font_style})))})),toggleItalic:wh((({commands:t})=>{Le(t.isItalicAvailable())&&(Le(t.isItalic())?t.removeItalic():t.applyItalic())})),applyItalic:wh((({commands:t})=>{t.applyMark(this.name,{italic:!0})})),removeItalic:wh((({commands:t})=>{t.applyMark(this.name,{italic:!1})}))}},addKeyboardShortcuts:()=>({"Mod-i":Ch("toggleItalic"),"Mod-I":Ch("toggleItalic")}),parseHTML(){const t=t=>({italic:t.includes("italic")});return[{tag:"i",attrs:{italic:!0}},{style:"--zw-font-style",getAttrs:t},{style:"font-style",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({font_style:t.italic?"italic":"normal"})}),gm=dd.create({name:qd.TEXT_DECORATION,priority:1e3,addAttributes:()=>({underline:{default:!1},strike_through:{default:!1}}),addCommands(){return{isUnderline:wh((({commands:t})=>{const e=t.getTextDecoration();return ze((()=>Le(e).underline))})),isStrikeThrough:wh((({commands:t})=>{const e=t.getTextDecoration();return ze((()=>Le(e).strike_through))})),getTextDecoration:wh((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultTextDecoration();return ze((()=>{const t=Le(e)??{},r=Le(n);return{underline:t.underline||r.underline,strike_through:t.strike_through||r.strike_through}}))})),isUnderlineCustomized:wh((({commands:t})=>{const e=t.isUnderline(),n=t.getDefaultTextDecoration();return ze((()=>Le(e)!==Le(n).underline))})),getDefaultTextDecoration:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>{const{text_decoration:t}=Le(e).common;return{underline:t.includes("underline"),strike_through:t.includes("line-through")}}))})),toggleUnderline:wh((({commands:t})=>{t.toggleTextDecoration("underline")})),toggleStrikeThrough:wh((({commands:t})=>{t.toggleTextDecoration("strike_through")})),toggleTextDecoration:wh((({commands:t},e,n=null)=>{const r=Le(t.getTextDecoration()),o=n??!r[e];t.applyMark(this.name,{[e]:o})})),applyTextDecoration:wh((({commands:t},e)=>{t.toggleTextDecoration(e,!0)})),removeTextDecoration:wh((({commands:t},e)=>{t.toggleTextDecoration(e,!1)}))}},addKeyboardShortcuts:()=>({"Mod-u":Ch("toggleUnderline"),"Mod-U":Ch("toggleUnderline")}),parseHTML(){const t=t=>{const e=t.includes("underline"),n=t.includes("line-through");return!(!e&&!n)&&{underline:e,strike_through:n}};return[{style:"--zw-text-decoration",getAttrs:t},{style:"text-decoration-line",getAttrs:t},{style:"text-decoration",getAttrs:t},{tag:"s",attrs:{underline:!1,strike_through:!0}},{tag:"u",attrs:{underline:!0,strike_through:!1}}]},renderHTML({HTMLAttributes:t}){const e=[];return t.underline&&e.push("underline"),t.strike_through&&e.push("line-through"),e.length||e.push("none"),Eh({text_decoration:e.join(" ")})}}),vm=jp.create({name:"case_style",addCommands:()=>({applyCaseStyle:wh((({commands:t},e)=>{switch(e){case zd.CAPITALIZE:return t.applyCapitalize();case zd.LOWERCASE:return t.applyLowerCase();case zd.UPPERCASE:return t.applyUpperCase()}})),applyCapitalize:wh((({commands:t})=>{t.transformText((({text:t})=>function(t){return t.toLowerCase().replace(/(?:^|\s)\S/g,(t=>t.toUpperCase()))}(t)))})),applyLowerCase:wh((({commands:t})=>{t.transformText((({text:t})=>t.toLowerCase()))})),applyUpperCase:wh((({commands:t})=>{t.transformText((({text:t})=>t.toUpperCase()))}))})}),ym={mobile:null,tablet:null,desktop:null},bm=jp.create({name:qd.ALIGNMENT,addGlobalAttributes:()=>[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{[qd.ALIGNMENT]:{isRequired:!1,parseHTML({style:t}){const e=function(t){const e=Jh[t]||t;return Vd.values.includes(e)?e:null}(t.textAlign);if(e)return{desktop:e,tablet:e,mobile:e};const n=t.getPropertyValue("--zw-alignment-mobile")||null,r=t.getPropertyValue("--zw-alignment-tablet")||null,o=t.getPropertyValue("--zw-alignment-desktop")||null;return n||r||o?{desktop:o,tablet:r,mobile:n}:null},renderHTML:t=>t.alignment?kh({alignment_mobile:t.alignment.mobile,alignment_tablet:t.alignment.tablet,alignment_desktop:t.alignment.desktop}):null}}}],addCommands(){return{toggleAlignment:wh((({commands:t},e)=>{t.applyAlignment(e)})),applyAlignment:wh((({commands:t},e)=>{const n=Le(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},ym)})),removeAlignment:wh((({commands:t})=>t.removeBlockAttributes(this.name))),getAlignment:wh((({commands:t})=>{const e=t.getBlockAttributes(this.name,ym),n=t.getDevice(),r=t.getDefaultAlignment();return ze((()=>Le(e)?.[Le(n)]??Le(r)))})),getDefaultAlignment:wh((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return ze((()=>Le(n)[Le(e)].alignment))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-l":Ch("applyAlignment",Vd.LEFT),"Mod-Shift-e":Ch("applyAlignment",Vd.CENTER),"Mod-Shift-r":Ch("applyAlignment",Vd.RIGHT),"Mod-Shift-j":Ch("applyAlignment",Vd.JUSTIFY)})}),_m={mobile:null,tablet:null,desktop:null},Dm=jp.create({name:qd.LINE_HEIGHT,addGlobalAttributes(){return[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{[qd.LINE_HEIGHT]:{isRequired:!1,parseHTML:t=>{if(t.matches('[style*="--zw-line-height"]')){return{mobile:null,tablet:t.style.getPropertyValue("--zw-line-height-tablet")||null,desktop:t.style.getPropertyValue("--zw-line-height-desktop")||null}}const e=t.style.lineHeight;if(!e)return null;const n=Kh(e,t,Le(this.options.wrapperRef));return n?{desktop:n,tablet:n,mobile:null}:null},renderHTML:t=>t.line_height?kh({line_height_mobile:t.line_height.mobile,line_height_tablet:t.line_height.tablet,line_height_desktop:t.line_height.desktop}):null}}}]},addCommands(){return{getLineHeight:wh((({commands:t})=>{const e=t.getBlockAttributes(this.name,_m),n=t.getDevice(),r=t.getDefaultLineHeight();return ze((()=>Le(e)?.[Le(n)]??Le(r)))})),getDefaultLineHeight:wh((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return ze((()=>Le(n)[Le(e)].line_height))})),applyLineHeight:wh((({commands:t},e)=>{const n=Le(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},_m)}))}}}),wm=fd.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",wp(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}).extend({name:Hd.LIST_ITEM,marks:Ud.SETTINGS,addCommands(){const t=({selection:t})=>t.$cursor.before(t.$cursor.depth-1);return{listItemNewline:wh((({commands:e,tr:n})=>{const r=n.doc.nodeAt(t(n));if(!n.selection.$cursor.node().textContent)return!1;e.splitListItem(this.name);const o=t(n);for(const t of r.marks)n.addNodeMark(o,Zh(t));return!0}))}},addOptions:()=>({HTMLAttributes:{class:"zw-style"}}),addKeyboardShortcuts:()=>({Enter:t=>{const{state:e,commands:n}=t.editor,r=e.selection.$cursor?.path.some((t=>t.type?.name===Hd.LIST));if(r)return n.listItemNewline()}})}),km=fd.create({name:Hd.LIST,content:`${Hd.LIST_ITEM}+`,group:"block list",marks:Ud.SETTINGS,addExtensions:()=>[wm],addOptions:()=>({baseClass:"",presetClass:""}),addAttributes:()=>({bullet:{default:{type:Wd.DISC}}}),parseHTML(){const t={a:Wd.ROMAN,i:Wd.LATIN,1:Wd.DECIMAL},e=e=>{for(const n of Wd.values){const r=`.${this.options.baseClass}${n}`;if(e.matches(r))return n;if(t[e.type.toLowerCase()]===n)return n}};return[{tag:"ol",getAttrs:t=>({bullet:{type:e(t)||Wd.DECIMAL}})},{tag:"ul",getAttrs:t=>({bullet:{type:e(t)||Wd.DISC}})}]},renderHTML({HTMLAttributes:t}){const e=[this.options.baseClass+t.bullet.type,this.options.presetClass];return[Wd.ordered.includes(t.bullet.type)?"ol":"ul",{class:e.join(" ")},0]},addCommands:()=>({getListType:wh((({commands:t})=>{const e=t.getBlockAttributes("bullet",{type:null});return ze((()=>Le(e).type??null))})),applyList:wh((({commands:t,chain:e},n)=>{if(Le(t.getListType())!==n)return e().applyDefaultPreset().toggleList(Hd.LIST,Hd.LIST_ITEM).setBlockAttributes("bullet",{type:n}).command((({commands:t,tr:e})=>t._bubbleListItemMarks(e))).run();t.removeList()})),_bubbleListItemMarks:wh(((t,e)=>{const{doc:n,selection:r}=e,o=r.$from.start(),i=r.$to.end();function s(t,e){if(qd.inlineMarks.includes(e.type))return!1;if(e.type.isInSet(t.marks))return!1;for(const n of t.content.content)if(n.childCount){if(!n.marks)return!1;if(!e.isInSet(n.marks))return!1}return!0}n.nodesBetween(o,i,((t,n)=>{if(t.type.name===Hd.LIST)return;if(t.type.name!==Hd.LIST_ITEM)return!1;const r=[];return t.forEach((o=>{for(const i of o.marks)i.isInSet(r)?e.removeNodeMark(n+1,i):s(t,i)&&(e.removeNodeMark(n+1,i),e.addNodeMark(n,Zh(i)),r.push(i))})),!1}))})),removeList:wh((({commands:t,state:e})=>{const{tr:n,doc:r,selection:o}=e,i=o.$from.start(),s=o.$to.end();r.nodesBetween(i,s,((t,e,r)=>{if([Hd.LIST,Hd.LIST_ITEM].includes(t.type.name))return;if(r.type.name!==Hd.LIST_ITEM)return!1;const o=r.marks.filter((function(e){return!e.type.isInSet(t.marks)}));for(const t of o)n.addNodeMark(e,Zh(t));return!1})),t.liftListItem(Hd.LIST_ITEM)}))}),addInputRules(){const t=(t,e)=>function(t){return new Tp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Ep(t.getAttributes,void 0,r)||{},i=e.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),a=s&&yu(s,t.type,o);if(!a)return null;i.wrap(s,a);const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Du(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&i.join(n.from-1)}})}({find:e,type:this.type,getAttributes:{bullet:{type:t}},joinPredicate:(e,{attrs:n})=>n.bullet.type===t});return[t(Wd.DISC,/^\s*([-+*])\s$/),t(Wd.DECIMAL,/^(\d+)\.\s$/),t(Wd.LATIN,/^([ivx]{1,3})\.\s$/i),t(Wd.ROMAN,/^([a-z])\.\s$/i)]}});function Em(t){return new tl({key:new rl("autolink"),appendTransaction:(e,n,r)=>{const o=e.some((t=>t.docChanged))&&!n.doc.eq(r.doc),i=e.some((t=>t.getMeta("preventAutolink")));if(!o||i)return;const{tr:s}=r,a=function(t,e){const n=new Ru(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}(n.doc,[...e]),{mapping:u}=a,l=function(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach(((t,o)=>{const i=[];if(t.ranges.length)t.forEach(((t,e)=>{i.push({from:t,to:e})}));else{const{from:t,to:e}=n[o];if(void 0===t||void 0===e)return;i.push({from:t,to:e})}i.forEach((({from:t,to:n})=>{const i=e.slice(o).map(t,-1),s=e.slice(o).map(n),a=e.invert().map(i,-1),u=e.invert().map(s);r.push({oldRange:{from:a,to:u},newRange:{from:i,to:s}})}))})),od(r)}(a);return l.forEach((({oldRange:e,newRange:o})=>{id(e.from,e.to,n.doc).filter((e=>e.mark.type===t.type)).forEach((e=>{const o=id(u.map(e.from),u.map(e.to),r.doc).filter((e=>e.mark.type===t.type));if(!o.length)return;const i=o[0],a=n.doc.textBetween(e.from,e.to,void 0," "),l=r.doc.textBetween(i.from,i.to,void 0," "),c=_h(a),p=_h(l);c&&!p&&s.removeMark(i.from,i.to,t.type)}));const i=function(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&r.push({node:t,pos:e})})),r}(r.doc,o,(t=>t.isTextblock));let a,l;if(i.length>1?(a=i[0],l=r.doc.textBetween(a.pos,a.pos+a.node.nodeSize,void 0," ")):i.length&&r.doc.textBetween(o.from,o.to," "," ").endsWith(" ")&&(a=i[0],l=r.doc.textBetween(a.pos,o.to,void 0," ")),a&&l){const e=l.split(" ").filter((t=>""!==t));if(e.length<=0)return!1;const n=e[e.length-1],r=a.pos+l.lastIndexOf(n);if(!n)return!1;bh(n).filter((t=>t.isLink)).filter((e=>!t.validate||t.validate(e.value))).map((t=>({...t,from:r+t.start+1,to:r+t.end+1}))).forEach((e=>{s.addMark(e.from,e.to,t.type.create({href:e.href}))}))}})),s.steps.length?s:void 0}})}const Cm=dd.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(vh)},onDestroy(){gh.scanner=null,gh.parser=null,gh.pluginQueue=[],gh.customProtocols=[],gh.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){return["a",wp(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[hd({find:t=>bh(t).filter((t=>!this.options.validate||this.options.validate(t.value))).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:t=>{var e;return{href:null===(e=t.data)||void 0===e?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];var e;return this.options.autolink&&t.push(Em({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push((e={type:this.type},new tl({key:new rl("handleClickLink"),props:{handleClick:(t,n,r)=>{var o;const i=rd(t.state,e.type.name);return!(!(null===(o=r.target)||void 0===o?void 0:o.closest("a"))||!i.href||(window.open(i.href,i.target),0))}}}))),this.options.linkOnPaste&&t.push(function(t){return new tl({key:new rl("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach((t=>{a+=t.textContent}));const u=bh(a).find((t=>t.isLink&&t.value===a));return!(!a||!u||(t.editor.commands.setMark(t.type,{href:u.href}),0))}}})}({editor:this.editor,type:this.type})),t}}),xm=Cm.extend({name:qd.LINK,addOptions(){return{...this.parent?.(),openOnClick:!1,linkOnPaste:!1}},addAttributes(){return{href:{default:null,parseHTML:t=>{const e=t.getAttribute("href");return e.startsWith("#")?parseFloat(t.getAttribute("href").replace("#","")):e}},target:{default:Kd.SELF,parseHTML:t=>t.getAttribute("target")||Kd.SELF},destination:{default:Jd.URL,parseHTML:t=>{const e=t.getAttribute("href");if(!e.startsWith("#"))return Jd.URL;const n=e.replace("#","");return Le(this.options.pageBlocks).find((t=>t.id===parseInt(n)))?Jd.BLOCK:Jd.URL}}}},addCommands(){const{unsetLink:t}=this.parent();return{removeLink:t,applyLink:wh((({commands:t,chain:e},n)=>(t.setMeta("preventAutolink",!0),t.getSelectedText()?e().applyMark(this.name,n).expandSelectionToLink().command((({tr:t})=>(n.text&&t.insertText(n.text,t.selection.from,t.selection.to),!0))).run():t.insertContent(Rm.text(n.text,[Rm.mark(qd.LINK,n)]))))),expandSelectionToLink:wh((({commands:t})=>{t.expandSelection((({node:t})=>this.type.isInSet(t.marks)))})),isLink:wh((({commands:t})=>t.hasMark(this.name))),getLinkPreset:wh((()=>ze((()=>this.options.preset))))}},addProseMirrorPlugins(){return[...this.parent(),Dh.create(this.editor)]},renderHTML({HTMLAttributes:t}){const e=t.destination===Jd.BLOCK?`#${t.href}`:t.href,n=Le(this.options.basePresetClass)+Le(this.options.preset).id;return["a",{href:e,target:t.target,class:`${n} zw-style`},0]}}),Am=dd.create({name:qd.SUPERSCRIPT,addCommands(){return{applySuperscript:wh((({commands:t})=>{t.setMark(this.name)})),removeSuperscript:wh((({commands:t})=>{t.unsetMark(this.name)})),toggleSuperscript:wh((({commands:t})=>{Le(t.isSuperscript())?t.removeSuperscript():t.applySuperscript()})),isSuperscript:wh((({commands:t})=>{const e=t.getMark(this.name);return ze((()=>!!Le(e)))}))}},parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML:()=>["sup",{class:"zw-superscript"},0]}),Sm=jp.create({name:qd.MARGIN,addGlobalAttributes:()=>[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{[qd.MARGIN]:{isRequired:!1,parseHTML(t){const{margin:e,marginTop:n,marginRight:r,marginBottom:o,marginLeft:i}=t.style;if(![e,n,r,o,i].some((t=>!!t)))return null;if(e)return{value:e};return{value:[n||0,r||0,o||0,i||0].join(" ")}},renderHTML:t=>t.margin?kh({margin:t.margin.value}):null}}}]});function Om(t){const e=e=>t.presetsRef.value.find((t=>t.id===e)),n=function(t){return Te(t,!1),t}({default:null,link:null});return Je(t.presetsRef,(()=>{n.default=e(t.defaultPresetId),n.link=e(t.linkPresetId)}),{immediate:!0}),[nm,om,sm,yd,Pd,Qh,tm,em,am].concat([lm.configure({presets:t.presetsRef,defaultId:t.defaultPresetId,styleRenderer:new Lm({baseClass:t.basePresetClass,makeVariable:t.makePresetVariable,linkPresetId:t.linkPresetId})}),km.configure({baseClass:t.baseListClass,presetClass:t.basePresetClass+t.defaultPresetId}),hm.configure({device:t.deviceRef}),pm.configure({minSize:t.minFontSize,maxSize:t.maxFontSize,wrapperRef:t.wrapperRef}),um.configure({fonts:t.fonts,defaultPreset:je(n,"default")}),cm,dm,fm,mm,gm,vm,Am,bm,Dm.configure({wrapperRef:t.wrapperRef}),xm.configure({preset:je(n,"link"),basePresetClass:t.basePresetClass,pageBlocks:t.pageBlocksRef}),Sm])}class Nm{_domParser=new DOMParser;types=window;parse(t){return this._domParser.parseFromString(t,"text/html")}}class Tm{content;constructor({content:t}){this.content=t}normalize(){throw new Error("Implement abstract method")}}class Mm extends Tm{static BLOCK_NODE_NAMES=["P","H1","H2","H3","H4"];static ROOT_NODE_NAMES=Mm.BLOCK_NODE_NAMES.concat("UL","OL");static BLOCK_STYLES=["text-align","line-height","margin","margin-top","margin-bottom","margin-left","margin-right"];_parser;constructor({content:t,parser:e}){super({content:t}),this._parser=e,this.dom=null}normalize(){return this.normalizeHTML(),this.normalizedHTML}normalizeHTML(){this.dom=this._parser.parse(this.content.replace(/(\r)?\n/g,"")),this._removeComments(),this._normalizeRootTags(),this._iterateNodes(this._normalizeBreakLines,(t=>"BR"===t.tagName)),this._iterateNodes(this._removeEmptyNodes,this._isBlockNode),this._iterateNodes(this._normalizeListItems,(t=>"LI"===t.tagName)),this._normalizeBlockTextDecoration(),this._normalizeBlockBackgroundColor()}get normalizedHTML(){return this.dom.body.innerHTML}get _NodeFilter(){return this._parser.types.NodeFilter}get _Node(){return this._parser.types.Node}_removeComments(){const t=this._createNodeIterator(this._NodeFilter.SHOW_COMMENT);this._runIterator(t,(t=>t.remove()))}_normalizeRootTags(){const t=Array.from(this.dom.body.childNodes),e=this.dom.createDocumentFragment();let n;for(const r of t)this._isRootNode(r)?(e.append(r),n=null):(n||(n=this.dom.createElement("p"),e.append(n)),n.append(r));this.dom.body.innerHTML="",this.dom.body.append(e)}_createNodeIterator(t,e){return this.dom.createNodeIterator(this.dom.body,t,e)}_iterateNodes(t,e=(()=>!0)){const n=t=>"BODY"!==t.tagName&&e.call(this,t),r=this._createNodeIterator(this._NodeFilter.SHOW_ELEMENT,{acceptNode:t=>n(t)?this._NodeFilter.FILTER_ACCEPT:this._NodeFilter.FILTER_REJECT});this._runIterator(r,t)}_runIterator(t,e){let n=t.nextNode();for(;n;)e.call(this,n),n=t.nextNode()}_removeEmptyNodes(t){t.innerHTML.trim()||t.remove()}_normalizeListItems(t){const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes);let r,o;const i=n=>{this._assignElementProperties(n,t,Mm.BLOCK_STYLES),e.append(n)};this._assignElementProperties(t,t.parentElement,Mm.BLOCK_STYLES);for(const t of n)if(this._isBlockNode(t))i(t),r=null,o=t;else if("BR"===t.tagName&&o&&"BR"!==o?.tagName)t.remove(),o=t;else if("BR"!==t.tagName)r||(r=this.dom.createElement("p"),i(r)),r.append(t),o=t;else{const e=this.dom.createElement("p");e.append(t),i(e),r=null,o=t}t.append(e),this._removeStyleProperties(t,Mm.BLOCK_STYLES)}_isBlockNode(t){return Mm.BLOCK_NODE_NAMES.includes(t.tagName)}_isRootNode(t){return Mm.ROOT_NODE_NAMES.includes(t.tagName)}_assignElementProperties(t,e,n){for(const r of n){const n=e.style.getPropertyValue(r);n&&!t.style.getPropertyValue(r)&&t.style.setProperty(r,n)}}_removeStyleProperties(t,e){for(const n of e)t.style.removeProperty(n);0===t.style.length&&t.removeAttribute("style")}_normalizeBreakLines({parentElement:t}){if(!this._isBlockNode(t))return;if(!t.textContent)return;const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes),r=t.cloneNode(!0);r.innerHTML="";let o=r.cloneNode();const i=n=>{this._assignElementProperties(n,t,Mm.BLOCK_STYLES),e.append(n)};for(const t of n)"BR"!==t.tagName?o.append(t):(i(o),o=r.cloneNode());e.append(o),t.replaceWith(e)}_normalizeBlockTextDecoration(){const t=this.dom.querySelectorAll('[style*="text-decoration"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this._moveTextDecorationToChildren(e)}_moveTextDecorationToChildren(t){const e=this._parseTextDecoration(t);if(t.style.removeProperty("text-decoration-line"),t.style.removeProperty("text-decoration"),t.style.cssText||t.removeAttribute("style"),!e.none)for(const n of t.childNodes){const r=this._wrapTextNode(t,n),o=this._parseTextDecoration(r),i={underline:o.underline||e.underline,line_through:o.line_through||e.line_through};r.style.removeProperty("text-decoration-line"),r.style.removeProperty("text-decoration"),r.style.textDecoration=Object.entries(i).filter((([,t])=>t)).map((([t])=>t.replace("_","-"))).join(" ")}}_parseTextDecoration(t){const{textDecoration:e,textDecorationLine:n}=t.style,r=e||n||"";return{none:r.includes("none"),underline:r.includes("underline"),line_through:r.includes("line-through")}}_normalizeBlockBackgroundColor(){const t=this.dom.querySelectorAll('[style*="background-color"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this._moveBackgroundColorToChildren(e)}_moveBackgroundColorToChildren(t){const e=t.style.backgroundColor;t.style.removeProperty("background-color"),t.style.cssText||t.removeAttribute("style");for(const n of t.childNodes){const r=this._wrapTextNode(t,n),o=r.style.backgroundColor||e;r.style.backgroundColor=o}}_wrapTextNode(t,e){if(e.nodeType!==this._Node.TEXT_NODE)return e;const n=this.dom.createElement("span");return n.append(e.cloneNode()),t.replaceChild(n,e),n}}class Fm extends Tm{normalize(){return this._iterateNodes(this._bubbleMarks),this.content}_iterateNodes(t){this._iterateChildNodes(this.content,t)}_iterateChildNodes(t,e){for(const n of t.content)n.content&&this._iterateChildNodes(n,e),e.call(this,n)}_bubbleMarks(t){if(t.content&&t.type!==Hd.LIST)for(const e of t.content)if(!this._isLink(e)&&e.marks)for(const n of e.marks.slice())this._includesMark(t,n)?this._removeMark(e,n):this._canBubbleMark(t,n)&&(this._removeMark(e,n),this._addMark(t,n))}_canBubbleMark(t,e){if(qd.inlineMarks.includes(e.type))return!1;if(this._includesMarkType(t,e.type))return!1;for(const n of t.content)if(n.content||t.type!==Hd.LIST_ITEM){if(!n.marks)return!1;if(!this._includesMark(n,e))return!1}return!0}_includesMark(t,e){return t.marks?.some((t=>vd.isEqual(t,e)))??!1}_includesMarkType(t,e){return t.marks?.some((t=>t.type===e))??!1}_isLink(t){return t.type===Hd.TEXT&&this._includesMarkType(t,qd.LINK)}_removeMark(t,e){if(!t.marks)return;const n=this._findMarkIndexByType(t,e.type);n>=0&&t.marks.splice(n,1),t.marks.length||delete t.marks}_addMark(t,e){this._removeMark(t,e),t.marks??=[],t.marks.push(e)}_findMarkIndexByType(t,e){return t.marks?.findIndex((t=>t.type===e))??null}}class Im{static build(t,e={}){return"string"==typeof t?this._buildHtml(t,e):this._buildJson(t)}static _buildHtml(t,e){return new Mm({content:t,parser:e.parser||new Nm})}static _buildJson(t){return new Fm({content:t})}static normalize(t,e={}){return Im.build(t,e).normalize()}}class $m{static window=globalThis.window;static use(t){this.window=t}static get document(){return this.window.document}static get body(){return this.document.body}static get head(){return this.document.head}static getComputedStyle(t){return this.window.getComputedStyle(t)}}class Bm{static build({config:t,nodeDomParser:e}){const n=function(t){return Ap(Rp.resolve(t))}(Om({fonts:t.fonts,minFontSize:0,maxFontSize:0,presetsRef:Re(t.presets),defaultPresetId:t.defaultPresetId,linkPresetId:t.linkPresetId,makePresetVariable:()=>"",basePresetClass:t.basePresetClass,baseListClass:t.baseListClass,deviceRef:Re(jd.DESKTOP),pageBlocksRef:Re([]),wrapperRef:$m.document.createElement("p")}));return new Bm({schema:n,domParser:ja.fromSchema(n),nodeDomParser:e})}_schema;_domParser;_nodeDomParser;constructor({schema:t,domParser:e,nodeDomParser:n}){this._schema=t,this._domParser=e,this._nodeDomParser=n}toJSON(t){const e=Im.build(t,{parser:this._nodeDomParser});return e.normalizeHTML(),this._domParser.parse(e.dom.body).toJSON()}}class Rm{static doc(t){return{type:Hd.DOCUMENT,content:t}}static list(t,e){return{type:Hd.LIST,attrs:{bullet:{type:t}},content:e.map((t=>t.type===Hd.LIST_ITEM?t:this.listItem([].concat(t))))}}static listItem(...t){const{attrs:e,content:n,marks:r}=this._normalizeTextBlockArgs(t);return{type:Hd.LIST_ITEM,...e?{attrs:e}:{},...r?{marks:r}:{},content:[].concat(n).map((t=>"string"==typeof t?this.paragraph(t):t))}}static heading(t,...e){const n=this._textBlock(e,this.text);return n.attrs??={},n.attrs.level=t,{type:Hd.HEADING,...n}}static paragraph(...t){return{type:Hd.PARAGRAPH,...this._textBlock(t,this.text)}}static _textBlock(t){const{attrs:e,content:n,marks:r}=this._normalizeTextBlockArgs(t);return{content:"string"==typeof n?[this.text(n)]:n,...e?{attrs:e}:{},...r?{marks:r}:{}}}static _normalizeTextBlockArgs(t){return 1===t.length?{attrs:null,marks:null,content:t[0]}:2===t.length?{attrs:t[0],marks:null,content:t[1]}:{attrs:t[0],marks:t[1],content:t[2]}}static text(t,e){return{type:Hd.TEXT,...e?{marks:e}:{},text:t}}static link(t,e,n=[]){return this.text(t,[this.mark(qd.LINK,e),...n])}static mark(t,e){return{type:t,attrs:e}}static populateAllDevices(t){return{mobile:t,tablet:t,desktop:t}}}class Lm{_baseClass;_makeVariable;_linkPresetId;constructor({baseClass:t,makeVariable:e,linkPresetId:n}){this._baseClass=t,this._makeVariable=e,this._linkPresetId=n}inject(t,e){let n=t.querySelector("[data-zw-styles]");n||(n=$m.document.createElement("style"),n.dataset.zwStyles="",n.innerHTML=this.render(e),t.append(n))}render(t){let e="";for(const n of t){const t=n.id===this._linkPresetId;e+=` ${this.makePresetCssClass(n)} {`;for(const r of jd.values)for(const o of Object.keys(n[r])){const i=this._makeVariable({device:r,preset:n,property:o}),s=this._makeInternalVariableName(o,r);if(e+=`${s}: var(${i}, inherit);`,t&&!qd.attributes.includes(o)){e+=`${s.replace("preset-","")}: var(${s});`}}e+="}"}return e}_makeInternalVariableName(t,e){return`--zw-preset-${"color"===t?"font-color":t.replace(/_/i,"-")}${e===jd.COMMON?"":`-${e}`}`}makePresetHtmlClass(t){return this._baseClass+t.id}makePresetCssClass(t){return this.makePresetHtmlClass(t).split(" ").map((t=>`.${t}`)).join("")}}class Pm{static _instance;static get instance(){return this._instance??=new Pm,this._instance}static query(t,e){return this.instance.query(t,e)}query(t,e){let n=null;return t.descendants((t=>!n&&(this.matchNode(t,e)?(n=t,!1):void 0))),n?e.getMark?this.getMark(n,e.getMark):n:null}matchNode(t,e){return(!e.typeName||e.typeName===t.type.name)&&!(e.mark&&!this.getMark(t,e.mark))}getMark(t,e){return t.marks.find((t=>this.matchMark(t,e)))||null}matchMark(t,e){return t.type.name===e.typeName}}class jm{static createWindow(){return(new i.JSDOM).window}types;parse(t){const{window:e}=new i.JSDOM(t);return this.types=e,e.document}}class zm{name;description;argument;options=[];doCommand(){throw new Error('Command "doCommand" is required')}install(t){if(!this.name)throw new Error('Command "name" is required');let e=t.command(this.name);if(this.description&&(e=e.description(this.description)),this.argument&&(e=e.argument(this.argument)),this.options.length)for(const t of this.options)e=e.option(t.flags,t.description,t.default);e.action(this.doCommand.bind(this))}output(t){console.log(t)}}const Vm=new W,Hm=[class extends zm{name="to-json";description="migrate html to json";argument="<html...>";options=[{flags:"-c, --config <path>",description:"Generator config",default:n.resolve(__dirname,"../bin/zp.config.json")},{flags:"-f, --format <type>",description:"Set output format",default:"rb"}];doCommand(t,{config:e,format:r}){$m.use(jm.createWindow());const o=n.resolve(process.cwd(),e),i=Bm.build({config:require(o).editor,nodeDomParser:new jm}),s=t.map((t=>i.toJSON(this._formatInputHtml(t)))),a=1===s.length?s[0]:s,u=this._stringifyContent(a);this.output("rb"===r?this._formatOutputRb(u):u)}_formatInputHtml(t){return t.replace(/\\(["'])/g,"$1").replace(/rgba\(\d{1,3}, ?\d{1,3}, ?\d{1,3}, (\d{1,2}%)\)/g,((t,e)=>t.replace(e,parseFloat(e)/100)))}_stringifyContent(t){return JSON.stringify(t,((t,e)=>null===e?void 0:e),2)}_formatOutputRb(t){return t.replace(/\\"/g,'"').replace(/font-family: ?'(.+)'/g,'font-family: "$1"').replace(/'/g,"\\'").replace(/^[\t ]*"[^:\n\r]+(?<!\\)":/gm,(t=>t.replace(/"/g,""))).replace(/: "(.+)"([,\n])/g,": '$1'$2")}},class extends zm{name="version";description="display cli version";doCommand(){this.output("3.3.0-1")}}];for(const t of Hm)(new t).install(Vm);Vm.parse();
15
+ md={get exports(){return vd},set exports(t){vd=t}},gd=vd,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,i=32,a=64,u=128,l=256,c=1/0,p=9007199254740991,d=NaN,f=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",a],["rearg",l]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",_="[object Function]",D="[object GeneratorFunction]",w="[object Map]",k="[object Number]",E="[object Object]",C="[object Promise]",x="[object RegExp]",A="[object Set]",S="[object String]",O="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",I="[object Float64Array]",$="[object Int8Array]",B="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",P="[object Uint8ClampedArray]",j="[object Uint16Array]",z="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,K=RegExp(q.source),J=RegExp(U.source),G=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,Dt="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",xt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",St="['’]",Ot="["+Dt+"]",Nt="["+At+"]",Tt="["+wt+"]",Mt="\\d+",Ft="["+kt+"]",It="["+Et+"]",$t="[^"+Dt+At+Mt+kt+Et+Ct+"]",Bt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+Dt+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Pt="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="["+Ct+"]",zt="\\u200d",Vt="(?:"+It+"|"+$t+")",Ht="(?:"+jt+"|"+$t+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+Tt+"|"+Bt+")?",Kt="["+xt+"]?",Jt=Kt+Ut+"(?:"+zt+"(?:"+[Rt,Lt,Pt].join("|")+")"+Kt+Ut+")*",Gt="(?:"+[Ft,Lt,Pt].join("|")+")"+Jt,Yt="(?:"+[Rt+Tt+"?",Tt,Lt,Pt,Ot].join("|")+")",Xt=RegExp(St,"g"),Zt=RegExp(Tt,"g"),Qt=RegExp(Bt+"(?="+Bt+")|"+Yt+Jt,"g"),te=RegExp([jt+"?"+It+"+"+Wt+"(?="+[Nt,jt,"$"].join("|")+")",Ht+"+"+qt+"(?="+[Nt,jt+Vt,"$"].join("|")+")",jt+"?"+Vt+"+"+Wt,jt+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mt,Gt].join("|"),"g"),ee=RegExp("["+zt+Dt+wt+xt+"]"),ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oe=-1,ie={};ie[F]=ie[I]=ie[$]=ie[B]=ie[R]=ie[L]=ie[P]=ie[j]=ie[z]=!0,ie[m]=ie[g]=ie[T]=ie[v]=ie[M]=ie[y]=ie[b]=ie[_]=ie[w]=ie[k]=ie[E]=ie[x]=ie[A]=ie[S]=ie[N]=!1;var se={};se[m]=se[g]=se[T]=se[M]=se[v]=se[y]=se[F]=se[I]=se[$]=se[B]=se[R]=se[w]=se[k]=se[E]=se[x]=se[A]=se[S]=se[O]=se[L]=se[P]=se[j]=se[z]=!0,se[b]=se[_]=se[N]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,le=parseInt,ce="object"==typeof s&&s&&s.Object===Object&&s,pe="object"==typeof self&&self&&self.Object===Object&&self,de=ce||pe||Function("return this")(),fe=gd&&!gd.nodeType&&gd,he=fe&&md&&!md.nodeType&&md,me=he&&he.exports===fe,ge=me&&ce.process,ve=function(){try{var t=he&&he.require&&he.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),ye=ve&&ve.isArrayBuffer,be=ve&&ve.isDate,_e=ve&&ve.isMap,De=ve&&ve.isRegExp,we=ve&&ve.isSet,ke=ve&&ve.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ce(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var s=t[o];e(r,s,n(s),t)}return r}function xe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function Ne(t,e){return!(null==t||!t.length)&&je(t,e,0)>-1}function Te(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Me(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Fe(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function Ie(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function $e(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function Be(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Re=We("length");function Le(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function Pe(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function je(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):Pe(t,Ve,n)}function ze(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function Ve(t){return t!=t}function He(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:d}function We(e){return function(n){return null==n?t:n[e]}}function qe(e){return function(n){return null==e?t:e[n]}}function Ue(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function Ke(e,n){for(var r,o=-1,i=e.length;++o<i;){var s=n(e[o]);s!==t&&(r=r===t?s:r+s)}return r}function Je(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ge(t){return t?t.slice(0,hn(t)+1).replace(rt,""):t}function Ye(t){return function(e){return t(e)}}function Xe(t,e){return Me(e,(function(e){return t[e]}))}function Ze(t,e){return t.has(e)}function Qe(t,e){for(var n=-1,r=t.length;++n<r&&je(e,t[n],0)>-1;);return n}function tn(t,e){for(var n=t.length;n--&&je(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var nn=qe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=qe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(t){return"\\"+ae[t]}function sn(t){return ee.test(t)}function an(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,o=t.length,i=0,s=[];++n<o;){var a=t[n];a!==e&&a!==r||(t[n]=r,s[i++]=n)}return s}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function pn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function dn(t){return sn(t)?function(t){for(var e=Qt.lastIndex=0;Qt.test(t);)++e;return e}(t):Re(t)}function fn(t){return sn(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.split("")}(t)}function hn(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e}var mn=qe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function s(ot){var Dt=(ot=null==ot?de:gn.defaults(de.Object(),ot,gn.pick(de,re))).Array,wt=ot.Date,kt=ot.Error,Et=ot.Function,Ct=ot.Math,xt=ot.Object,At=ot.RegExp,St=ot.String,Ot=ot.TypeError,Nt=Dt.prototype,Tt=Et.prototype,Mt=xt.prototype,Ft=ot["__core-js_shared__"],It=Tt.toString,$t=Mt.hasOwnProperty,Bt=0,Rt=function(){var t=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Lt=Mt.toString,Pt=It.call(xt),jt=de._,zt=At("^"+It.call($t).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vt=me?ot.Buffer:t,Ht=ot.Symbol,Wt=ot.Uint8Array,qt=Vt?Vt.allocUnsafe:t,Ut=un(xt.getPrototypeOf,xt),Kt=xt.create,Jt=Mt.propertyIsEnumerable,Gt=Nt.splice,Yt=Ht?Ht.isConcatSpreadable:t,Qt=Ht?Ht.iterator:t,ee=Ht?Ht.toStringTag:t,ae=function(){try{var t=fi(xt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ce=ot.clearTimeout!==de.clearTimeout&&ot.clearTimeout,pe=wt&&wt.now!==de.Date.now&&wt.now,fe=ot.setTimeout!==de.setTimeout&&ot.setTimeout,he=Ct.ceil,ge=Ct.floor,ve=xt.getOwnPropertySymbols,Re=Vt?Vt.isBuffer:t,qe=ot.isFinite,vn=Nt.join,yn=un(xt.keys,xt),bn=Ct.max,_n=Ct.min,Dn=wt.now,wn=ot.parseInt,kn=Ct.random,En=Nt.reverse,Cn=fi(ot,"DataView"),xn=fi(ot,"Map"),An=fi(ot,"Promise"),Sn=fi(ot,"Set"),On=fi(ot,"WeakMap"),Nn=fi(xt,"create"),Tn=On&&new On,Mn={},Fn=ji(Cn),In=ji(xn),$n=ji(An),Bn=ji(Sn),Rn=ji(On),Ln=Ht?Ht.prototype:t,Pn=Ln?Ln.valueOf:t,jn=Ln?Ln.toString:t;function zn(t){if(ra(t)&&!Us(t)&&!(t instanceof qn)){if(t instanceof Wn)return t;if($t.call(t,"__wrapped__"))return zi(t)}return new Wn(t)}var Vn=function(){function e(){}return function(n){if(!na(n))return{};if(Kt)return Kt(n);e.prototype=n;var r=new e;return e.prototype=t,r}}();function Hn(){}function Wn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jn;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new Kn(t);this.size=e.size}function Xn(t,e){var n=Us(t),r=!n&&qs(t),o=!n&&!r&&Ys(t),i=!n&&!r&&!o&&pa(t),s=n||r||o||i,a=s?Je(t.length,St):[],u=a.length;for(var l in t)!e&&!$t.call(t,l)||s&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_i(l,u))||a.push(l);return a}function Zn(e){var n=e.length;return n?e[Gr(0,n-1)]:t}function Qn(t,e){return Ri(To(t),ur(e,0,t.length))}function tr(t){return Ri(To(t))}function er(e,n,r){(r!==t&&!Vs(e[n],r)||r===t&&!(n in e))&&sr(e,n,r)}function nr(e,n,r){var o=e[n];$t.call(e,n)&&Vs(o,r)&&(r!==t||n in e)||sr(e,n,r)}function rr(t,e){for(var n=t.length;n--;)if(Vs(t[n][0],e))return n;return-1}function or(t,e,n,r){return fr(t,(function(t,o,i){e(r,t,n(t),i)})),r}function ir(t,e){return t&&Mo(e,Fa(e),t)}function sr(t,e,n){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(e,n){for(var r=-1,o=n.length,i=Dt(o),s=null==e;++r<o;)i[r]=s?t:Sa(e,n[r]);return i}function ur(e,n,r){return e==e&&(r!==t&&(e=e<=r?e:r),n!==t&&(e=e>=n?e:n)),e}function lr(e,n,r,o,i,s){var a,u=1&n,l=2&n,c=4&n;if(r&&(a=i?r(e,o,i,s):r(e)),a!==t)return a;if(!na(e))return e;var p=Us(e);if(p){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&$t.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!u)return To(e,a)}else{var d=gi(e),f=d==_||d==D;if(Ys(e))return Co(e,u);if(d==E||d==m||f&&!i){if(a=l||f?{}:yi(e),!u)return l?function(t,e){return Mo(t,mi(t),e)}(e,function(t,e){return t&&Mo(e,Ia(e),t)}(a,e)):function(t,e){return Mo(t,hi(t),e)}(e,ir(a,e))}else{if(!se[d])return i?e:{};a=function(t,e,n){var r,o=t.constructor;switch(e){case T:return xo(t);case v:case y:return new o(+t);case M:return function(t,e){var n=e?xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case F:case I:case $:case B:case R:case L:case P:case j:case z:return Ao(t,n);case w:return new o;case k:case S:return new o(t);case x:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new o;case O:return r=t,Pn?xt(Pn.call(r)):{}}}(e,d,u)}}s||(s=new Yn);var h=s.get(e);if(h)return h;s.set(e,a),ua(e)?e.forEach((function(t){a.add(lr(t,n,r,t,e,s))})):oa(e)&&e.forEach((function(t,o){a.set(o,lr(t,n,r,o,e,s))}));var g=p?t:(c?l?si:ii:l?Ia:Fa)(e);return xe(g||e,(function(t,o){g&&(t=e[o=t]),nr(a,o,lr(t,n,r,o,e,s))})),a}function cr(e,n,r){var o=r.length;if(null==e)return!o;for(e=xt(e);o--;){var i=r[o],s=n[i],a=e[i];if(a===t&&!(i in e)||!s(a))return!1}return!0}function pr(n,r,o){if("function"!=typeof n)throw new Ot(e);return Fi((function(){n.apply(t,o)}),r)}function dr(t,e,n,r){var o=-1,i=Ne,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=Me(e,Ye(n))),r?(i=Te,s=!1):e.length>=200&&(i=Ze,s=!1,e=new Gn(e));t:for(;++o<a;){var c=t[o],p=null==n?c:n(c);if(c=r||0!==c?c:0,s&&p==p){for(var d=l;d--;)if(e[d]===p)continue t;u.push(c)}else i(e,p,r)||u.push(c)}return u}zn.templateSettings={escape:G,evaluate:Y,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=Hn.prototype,zn.prototype.constructor=zn,Wn.prototype=Vn(Hn.prototype),Wn.prototype.constructor=Wn,qn.prototype=Vn(Hn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(e){var r=this.__data__;if(Nn){var o=r[e];return o===n?t:o}return $t.call(r,e)?r[e]:t},Un.prototype.has=function(e){var n=this.__data__;return Nn?n[e]!==t:$t.call(n,e)},Un.prototype.set=function(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Nn&&r===t?n:r,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0||(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,0))},Kn.prototype.get=function(e){var n=this.__data__,r=rr(n,e);return r<0?t:n[r][1]},Kn.prototype.has=function(t){return rr(this.__data__,t)>-1},Kn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(xn||Kn),string:new Un}},Jn.prototype.delete=function(t){var e=pi(this,t).delete(t);return this.size-=e?1:0,e},Jn.prototype.get=function(t){return pi(this,t).get(t)},Jn.prototype.has=function(t){return pi(this,t).has(t)},Jn.prototype.set=function(t,e){var n=pi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(t){return this.__data__.set(t,n),this},Gn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!xn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(t,e),this.size=n.size,this};var fr=$o(Dr),hr=$o(wr,!0);function mr(t,e){var n=!0;return fr(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function gr(e,n,r){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n(s);if(null!=a&&(u===t?a==a&&!ca(a):r(a,u)))var u=a,l=s}return l}function vr(t,e){var n=[];return fr(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function yr(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=bi),o||(o=[]);++i<s;){var a=t[i];e>0&&n(a)?e>1?yr(a,e-1,n,r,o):Fe(o,a):r||(o[o.length]=a)}return o}var br=Bo(),_r=Bo(!0);function Dr(t,e){return t&&br(t,e,Fa)}function wr(t,e){return t&&_r(t,e,Fa)}function kr(t,e){return Oe(e,(function(e){return Qs(t[e])}))}function Er(e,n){for(var r=0,o=(n=Do(n,e)).length;null!=e&&r<o;)e=e[Pi(n[r++])];return r&&r==o?e:t}function Cr(t,e,n){var r=e(t);return Us(t)?r:Fe(r,n(t))}function xr(e){return null==e?e===t?"[object Undefined]":"[object Null]":ee&&ee in xt(e)?function(e){var n=$t.call(e,ee),r=e[ee];try{e[ee]=t;var o=!0}catch(t){}var i=Lt.call(e);return o&&(n?e[ee]=r:delete e[ee]),i}(e):function(t){return Lt.call(t)}(e)}function Ar(t,e){return t>e}function Sr(t,e){return null!=t&&$t.call(t,e)}function Or(t,e){return null!=t&&e in xt(t)}function Nr(e,n,r){for(var o=r?Te:Ne,i=e[0].length,s=e.length,a=s,u=Dt(s),l=1/0,c=[];a--;){var p=e[a];a&&n&&(p=Me(p,Ye(n))),l=_n(p.length,l),u[a]=!r&&(n||i>=120&&p.length>=120)?new Gn(a&&p):t}p=e[0];var d=-1,f=u[0];t:for(;++d<i&&c.length<l;){var h=p[d],m=n?n(h):h;if(h=r||0!==h?h:0,!(f?Ze(f,m):o(c,m,r))){for(a=s;--a;){var g=u[a];if(!(g?Ze(g,m):o(e[a],m,r)))continue t}f&&f.push(m),c.push(h)}}return c}function Tr(e,n,r){var o=null==(e=Oi(e,n=Do(n,e)))?e:e[Pi(Zi(n))];return null==o?t:Ee(o,e,r)}function Mr(t){return ra(t)&&xr(t)==m}function Fr(e,n,r,o,i){return e===n||(null==e||null==n||!ra(e)&&!ra(n)?e!=e&&n!=n:function(e,n,r,o,i,s){var a=Us(e),u=Us(n),l=a?g:gi(e),c=u?g:gi(n),p=(l=l==m?E:l)==E,d=(c=c==m?E:c)==E,f=l==c;if(f&&Ys(e)){if(!Ys(n))return!1;a=!0,p=!1}if(f&&!p)return s||(s=new Yn),a||pa(e)?ri(e,n,r,o,i,s):function(t,e,n,r,o,i,s){switch(n){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case T:return!(t.byteLength!=e.byteLength||!i(new Wt(t),new Wt(e)));case v:case y:case k:return Vs(+t,+e);case b:return t.name==e.name&&t.message==e.message;case x:case S:return t==e+"";case w:var a=an;case A:var u=1&r;if(a||(a=cn),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=ri(a(t),a(e),r,o,i,s);return s.delete(t),c;case O:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(e,n,l,r,o,i,s);if(!(1&r)){var h=p&&$t.call(e,"__wrapped__"),_=d&&$t.call(n,"__wrapped__");if(h||_){var D=h?e.value():e,C=_?n.value():n;return s||(s=new Yn),i(D,C,r,o,s)}}return!!f&&(s||(s=new Yn),function(e,n,r,o,i,s){var a=1&r,u=ii(e),l=u.length,c=ii(n),p=c.length;if(l!=p&&!a)return!1;for(var d=l;d--;){var f=u[d];if(!(a?f in n:$t.call(n,f)))return!1}var h=s.get(e),m=s.get(n);if(h&&m)return h==n&&m==e;var g=!0;s.set(e,n),s.set(n,e);for(var v=a;++d<l;){var y=e[f=u[d]],b=n[f];if(o)var _=a?o(b,y,f,n,e,s):o(y,b,f,e,n,s);if(!(_===t?y===b||i(y,b,r,o,s):_)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var D=e.constructor,w=n.constructor;D==w||!("constructor"in e)||!("constructor"in n)||"function"==typeof D&&D instanceof D&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(n),g}(e,n,r,o,i,s))}(e,n,r,o,Fr,i))}function Ir(e,n,r,o){var i=r.length,s=i,a=!o;if(null==e)return!s;for(e=xt(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var l=(u=r[i])[0],c=e[l],p=u[1];if(a&&u[2]){if(c===t&&!(l in e))return!1}else{var d=new Yn;if(o)var f=o(c,p,l,e,n,d);if(!(f===t?Fr(p,c,3,o,d):f))return!1}}return!0}function $r(t){return!(!na(t)||(e=t,Rt&&Rt in e))&&(Qs(t)?zt:mt).test(ji(t));var e}function Br(t){return"function"==typeof t?t:null==t?iu:"object"==typeof t?Us(t)?Vr(t[0],t[1]):zr(t):hu(t)}function Rr(t){if(!Ci(t))return yn(t);var e=[];for(var n in xt(t))$t.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Lr(t){if(!na(t))return function(t){var e=[];if(null!=t)for(var n in xt(t))e.push(n);return e}(t);var e=Ci(t),n=[];for(var r in t)("constructor"!=r||!e&&$t.call(t,r))&&n.push(r);return n}function Pr(t,e){return t<e}function jr(t,e){var n=-1,r=Js(t)?Dt(t.length):[];return fr(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}function zr(t){var e=di(t);return 1==e.length&&e[0][2]?Ai(e[0][0],e[0][1]):function(n){return n===t||Ir(n,t,e)}}function Vr(e,n){return wi(e)&&xi(n)?Ai(Pi(e),n):function(r){var o=Sa(r,e);return o===t&&o===n?Oa(r,e):Fr(n,o,3)}}function Hr(e,n,r,o,i){e!==n&&br(n,(function(s,a){if(i||(i=new Yn),na(s))!function(e,n,r,o,i,s,a){var u=Ti(e,r),l=Ti(n,r),c=a.get(l);if(c)er(e,r,c);else{var p=s?s(u,l,r+"",e,n,a):t,d=p===t;if(d){var f=Us(l),h=!f&&Ys(l),m=!f&&!h&&pa(l);p=l,f||h||m?Us(u)?p=u:Gs(u)?p=To(u):h?(d=!1,p=Co(l,!0)):m?(d=!1,p=Ao(l,!0)):p=[]:sa(l)||qs(l)?(p=u,qs(u)?p=ba(u):na(u)&&!Qs(u)||(p=yi(l))):d=!1}d&&(a.set(l,p),i(p,l,o,s,a),a.delete(l)),er(e,r,p)}}(e,n,a,r,Hr,o,i);else{var u=o?o(Ti(e,a),s,a+"",e,n,i):t;u===t&&(u=s),er(e,a,u)}}),Ia)}function Wr(e,n){var r=e.length;if(r)return _i(n+=n<0?r:0,r)?e[n]:t}function qr(t,e,n){e=e.length?Me(e,(function(t){return Us(t)?function(e){return Er(e,1===t.length?t[0]:t)}:t})):[iu];var r=-1;e=Me(e,Ye(ci()));var o=jr(t,(function(t,n,o){var i=Me(e,(function(e){return e(t)}));return{criteria:i,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(o,(function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,s=o.length,a=n.length;++r<s;){var u=So(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Ur(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var s=e[r],a=Er(t,s);n(a,s)&&to(i,Do(s,t),a)}return i}function Kr(t,e,n,r){var o=r?ze:je,i=-1,s=e.length,a=t;for(t===e&&(e=To(e)),n&&(a=Me(t,Ye(n)));++i<s;)for(var u=0,l=e[i],c=n?n(l):l;(u=o(a,c,u,r))>-1;)a!==t&&Gt.call(a,u,1),Gt.call(t,u,1);return t}function Jr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;_i(o)?Gt.call(t,o,1):fo(t,o)}}return t}function Gr(t,e){return t+ge(kn()*(e-t+1))}function Yr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ge(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Ii(Si(t,e,iu),t+"")}function Zr(t){return Zn(Va(t))}function Qr(t,e){var n=Va(t);return Ri(n,ur(e,0,n.length))}function to(e,n,r,o){if(!na(e))return e;for(var i=-1,s=(n=Do(n,e)).length,a=s-1,u=e;null!=u&&++i<s;){var l=Pi(n[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var p=u[l];(c=o?o(p,l,u):t)===t&&(c=na(p)?p:_i(n[i+1])?[]:{})}nr(u,l,c),u=u[l]}return e}var eo=Tn?function(t,e){return Tn.set(t,e),t}:iu,no=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:nu(e),writable:!0})}:iu;function ro(t){return Ri(Va(t))}function oo(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Dt(o);++r<o;)i[r]=t[r+e];return i}function io(t,e){var n;return fr(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function so(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=t[i];null!==s&&!ca(s)&&(n?s<=e:s<e)?r=i+1:o=i}return o}return ao(t,e,iu,n)}function ao(e,n,r,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(n=r(n))!=n,u=null===n,l=ca(n),c=n===t;i<s;){var p=ge((i+s)/2),d=r(e[p]),f=d!==t,h=null===d,m=d==d,g=ca(d);if(a)var v=o||m;else v=c?m&&(o||f):u?m&&f&&(o||!h):l?m&&f&&!h&&(o||!g):!h&&!g&&(o?d<=n:d<n);v?i=p+1:s=p}return _n(s,4294967294)}function uo(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Vs(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function lo(t){return"number"==typeof t?t:ca(t)?d:+t}function co(t){if("string"==typeof t)return t;if(Us(t))return Me(t,co)+"";if(ca(t))return jn?jn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function po(t,e,n){var r=-1,o=Ne,i=t.length,s=!0,a=[],u=a;if(n)s=!1,o=Te;else if(i>=200){var l=e?null:Xo(t);if(l)return cn(l);s=!1,o=Ze,u=new Gn}else u=e?[]:a;t:for(;++r<i;){var c=t[r],p=e?e(c):c;if(c=n||0!==c?c:0,s&&p==p){for(var d=u.length;d--;)if(u[d]===p)continue t;e&&u.push(p),a.push(c)}else o(u,p,n)||(u!==a&&u.push(p),a.push(c))}return a}function fo(t,e){return null==(t=Oi(t,e=Do(e,t)))||delete t[Pi(Zi(e))]}function ho(t,e,n,r){return to(t,e,n(Er(t,e)),r)}function mo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?oo(t,r?0:i,r?i+1:o):oo(t,r?i+1:0,r?o:i)}function go(t,e){var n=t;return n instanceof qn&&(n=n.value()),Ie(e,(function(t,e){return e.func.apply(e.thisArg,Fe([t],e.args))}),n)}function vo(t,e,n){var r=t.length;if(r<2)return r?po(t[0]):[];for(var o=-1,i=Dt(r);++o<r;)for(var s=t[o],a=-1;++a<r;)a!=o&&(i[o]=dr(i[o]||s,t[a],e,n));return po(yr(i,1),e,n)}function yo(e,n,r){for(var o=-1,i=e.length,s=n.length,a={};++o<i;){var u=o<s?n[o]:t;r(a,e[o],u)}return a}function bo(t){return Gs(t)?t:[]}function _o(t){return"function"==typeof t?t:iu}function Do(t,e){return Us(t)?t:wi(t,e)?[t]:Li(_a(t))}var wo=Xr;function ko(e,n,r){var o=e.length;return r=r===t?o:r,!n&&r>=o?e:oo(e,n,r)}var Eo=ce||function(t){return de.clearTimeout(t)};function Co(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function xo(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Ao(t,e){var n=e?xo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function So(e,n){if(e!==n){var r=e!==t,o=null===e,i=e==e,s=ca(e),a=n!==t,u=null===n,l=n==n,c=ca(n);if(!u&&!c&&!s&&e>n||s&&a&&l&&!u&&!c||o&&a&&l||!r&&l||!i)return 1;if(!o&&!s&&!c&&e<n||c&&r&&i&&!o&&!s||u&&r&&i||!a&&i||!l)return-1}return 0}function Oo(t,e,n,r){for(var o=-1,i=t.length,s=n.length,a=-1,u=e.length,l=bn(i-s,0),c=Dt(u+l),p=!r;++a<u;)c[a]=e[a];for(;++o<s;)(p||o<i)&&(c[n[o]]=t[o]);for(;l--;)c[a++]=t[o++];return c}function No(t,e,n,r){for(var o=-1,i=t.length,s=-1,a=n.length,u=-1,l=e.length,c=bn(i-a,0),p=Dt(c+l),d=!r;++o<c;)p[o]=t[o];for(var f=o;++u<l;)p[f+u]=e[u];for(;++s<a;)(d||o<i)&&(p[f+n[s]]=t[o++]);return p}function To(t,e){var n=-1,r=t.length;for(e||(e=Dt(r));++n<r;)e[n]=t[n];return e}function Mo(e,n,r,o){var i=!r;r||(r={});for(var s=-1,a=n.length;++s<a;){var u=n[s],l=o?o(r[u],e[u],u,r,e):t;l===t&&(l=e[u]),i?sr(r,u,l):nr(r,u,l)}return r}function Fo(t,e){return function(n,r){var o=Us(n)?Ce:or,i=e?e():{};return o(n,t,ci(r,2),i)}}function Io(e){return Xr((function(n,r){var o=-1,i=r.length,s=i>1?r[i-1]:t,a=i>2?r[2]:t;for(s=e.length>3&&"function"==typeof s?(i--,s):t,a&&Di(r[0],r[1],a)&&(s=i<3?t:s,i=1),n=xt(n);++o<i;){var u=r[o];u&&e(n,u,o,s)}return n}))}function $o(t,e){return function(n,r){if(null==n)return n;if(!Js(n))return t(n,r);for(var o=n.length,i=e?o:-1,s=xt(n);(e?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Bo(t){return function(e,n,r){for(var o=-1,i=xt(e),s=r(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===n(i[u],u,i))break}return e}}function Ro(e){return function(n){var r=sn(n=_a(n))?fn(n):t,o=r?r[0]:n.charAt(0),i=r?ko(r,1).join(""):n.slice(1);return o[e]()+i}}function Lo(t){return function(e){return Ie(Qa(qa(e).replace(Xt,"")),t,"")}}function Po(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Vn(t.prototype),r=t.apply(n,e);return na(r)?r:n}}function jo(e){return function(n,r,o){var i=xt(n);if(!Js(n)){var s=ci(r,3);n=Fa(n),r=function(t){return s(i[t],t,i)}}var a=e(n,r,o);return a>-1?i[s?n[a]:a]:t}}function zo(n){return oi((function(r){var o=r.length,i=o,s=Wn.prototype.thru;for(n&&r.reverse();i--;){var a=r[i];if("function"!=typeof a)throw new Ot(e);if(s&&!u&&"wrapper"==ui(a))var u=new Wn([],!0)}for(i=u?i:o;++i<o;){var l=ui(a=r[i]),c="wrapper"==l?ai(a):t;u=c&&ki(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ui(c[0])].apply(u,c[3]):1==a.length&&ki(a)?u[l]():u.thru(a)}return function(){var t=arguments,e=t[0];if(u&&1==t.length&&Us(e))return u.plant(e).value();for(var n=0,i=o?r[n].apply(this,t):e;++n<o;)i=r[n].call(this,i);return i}}))}function Vo(e,n,r,o,i,s,a,l,c,p){var d=n&u,f=1&n,h=2&n,m=24&n,g=512&n,v=h?t:Po(e);return function t(){for(var u=arguments.length,y=Dt(u),b=u;b--;)y[b]=arguments[b];if(m)var _=li(t),D=en(y,_);if(o&&(y=Oo(y,o,i,m)),s&&(y=No(y,s,a,m)),u-=D,m&&u<p){var w=ln(y,_);return Go(e,n,Vo,t.placeholder,r,y,w,l,c,p-u)}var k=f?r:this,E=h?k[e]:e;return u=y.length,l?y=Ni(y,l):g&&u>1&&y.reverse(),d&&c<u&&(y.length=c),this&&this!==de&&this instanceof t&&(E=v||Po(E)),E.apply(k,y)}}function Ho(t,e){return function(n,r){return function(t,e,n,r){return Dr(t,(function(t,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Wo(e,n){return function(r,o){var i;if(r===t&&o===t)return n;if(r!==t&&(i=r),o!==t){if(i===t)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=lo(r),o=lo(o)),i=e(r,o)}return i}}function qo(t){return oi((function(e){return e=Me(e,Ye(ci())),Xr((function(n){var r=this;return t(e,(function(t){return Ee(t,r,n)}))}))}))}function Uo(e,n){var r=(n=n===t?" ":co(n)).length;if(r<2)return r?Yr(n,e):n;var o=Yr(n,he(e/dn(n)));return sn(n)?ko(fn(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(n,r,o){return o&&"number"!=typeof o&&Di(n,r,o)&&(r=o=t),n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n,r){for(var o=-1,i=bn(he((e-t)/(n||1)),0),s=Dt(i);i--;)s[r?i:++o]=t,t+=n;return s}(n,r,o=o===t?n<r?1:-1:ma(o),e)}}function Jo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ya(e),n=ya(n)),t(e,n)}}function Go(e,n,r,o,s,u,l,c,p,d){var f=8&n;n|=f?i:a,4&(n&=~(f?a:i))||(n&=-4);var h=[e,n,s,f?u:t,f?l:t,f?t:u,f?t:l,c,p,d],m=r.apply(t,h);return ki(e)&&Mi(m,h),m.placeholder=o,$i(m,e,n)}function Yo(t){var e=Ct[t];return function(t,n){if(t=ya(t),(n=null==n?0:_n(ga(n),292))&&qe(t)){var r=(_a(t)+"e").split("e");return+((r=(_a(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Xo=Sn&&1/cn(new Sn([,-0]))[1]==c?function(t){return new Sn(t)}:cu;function Zo(t){return function(e){var n=gi(e);return n==w?an(e):n==A?pn(e):function(t,e){return Me(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Qo(n,s,c,p,d,f,h,m){var g=2&s;if(!g&&"function"!=typeof n)throw new Ot(e);var v=p?p.length:0;if(v||(s&=-97,p=d=t),h=h===t?h:bn(ga(h),0),m=m===t?m:ga(m),v-=d?d.length:0,s&a){var y=p,b=d;p=d=t}var _=g?t:ai(n),D=[n,s,c,p,d,y,b,f,h,m];if(_&&function(t,e){var n=t[1],o=e[1],i=n|o,s=i<131,a=o==u&&8==n||o==u&&n==l&&t[7].length<=e[8]||384==o&&e[7].length<=e[8]&&8==n;if(!s&&!a)return t;1&o&&(t[2]=e[2],i|=1&n?0:4);var c=e[3];if(c){var p=t[3];t[3]=p?Oo(p,c,e[4]):c,t[4]=p?ln(t[3],r):e[4]}(c=e[5])&&(p=t[5],t[5]=p?No(p,c,e[6]):c,t[6]=p?ln(t[5],r):e[6]),(c=e[7])&&(t[7]=c),o&u&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(D,_),n=D[0],s=D[1],c=D[2],p=D[3],d=D[4],!(m=D[9]=D[9]===t?g?0:n.length:bn(D[9]-v,0))&&24&s&&(s&=-25),s&&1!=s)w=8==s||s==o?function(e,n,r){var o=Po(e);return function i(){for(var s=arguments.length,a=Dt(s),u=s,l=li(i);u--;)a[u]=arguments[u];var c=s<3&&a[0]!==l&&a[s-1]!==l?[]:ln(a,l);return(s-=c.length)<r?Go(e,n,Vo,i.placeholder,t,a,c,t,t,r-s):Ee(this&&this!==de&&this instanceof i?o:e,this,a)}}(n,s,m):s!=i&&33!=s||d.length?Vo.apply(t,D):function(t,e,n,r){var o=1&e,i=Po(t);return function e(){for(var s=-1,a=arguments.length,u=-1,l=r.length,c=Dt(l+a),p=this&&this!==de&&this instanceof e?i:t;++u<l;)c[u]=r[u];for(;a--;)c[u++]=arguments[++s];return Ee(p,o?n:this,c)}}(n,s,c,p);else var w=function(t,e,n){var r=1&e,o=Po(t);return function e(){return(this&&this!==de&&this instanceof e?o:t).apply(r?n:this,arguments)}}(n,s,c);return $i((_?eo:Mi)(w,D),n,s)}function ti(e,n,r,o){return e===t||Vs(e,Mt[r])&&!$t.call(o,r)?n:e}function ei(e,n,r,o,i,s){return na(e)&&na(n)&&(s.set(n,e),Hr(e,n,t,ei,s),s.delete(n)),e}function ni(e){return sa(e)?t:e}function ri(e,n,r,o,i,s){var a=1&r,u=e.length,l=n.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(e),p=s.get(n);if(c&&p)return c==n&&p==e;var d=-1,f=!0,h=2&r?new Gn:t;for(s.set(e,n),s.set(n,e);++d<u;){var m=e[d],g=n[d];if(o)var v=a?o(g,m,d,n,e,s):o(m,g,d,e,n,s);if(v!==t){if(v)continue;f=!1;break}if(h){if(!Be(n,(function(t,e){if(!Ze(h,e)&&(m===t||i(m,t,r,o,s)))return h.push(e)}))){f=!1;break}}else if(m!==g&&!i(m,g,r,o,s)){f=!1;break}}return s.delete(e),s.delete(n),f}function oi(e){return Ii(Si(e,t,Ki),e+"")}function ii(t){return Cr(t,Fa,hi)}function si(t){return Cr(t,Ia,mi)}var ai=Tn?function(t){return Tn.get(t)}:cu;function ui(t){for(var e=t.name+"",n=Mn[e],r=$t.call(Mn,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function li(t){return($t.call(zn,"placeholder")?zn:t).placeholder}function ci(){var t=zn.iteratee||su;return t=t===su?Br:t,arguments.length?t(arguments[0],arguments[1]):t}function pi(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function di(t){for(var e=Fa(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,xi(o)]}return e}function fi(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return $r(r)?r:t}var hi=ve?function(t){return null==t?[]:(t=xt(t),Oe(ve(t),(function(e){return Jt.call(t,e)})))}:vu,mi=ve?function(t){for(var e=[];t;)Fe(e,hi(t)),t=Ut(t);return e}:vu,gi=xr;function vi(t,e,n){for(var r=-1,o=(e=Do(e,t)).length,i=!1;++r<o;){var s=Pi(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&ea(o)&&_i(s,o)&&(Us(t)||qs(t))}function yi(t){return"function"!=typeof t.constructor||Ci(t)?{}:Vn(Ut(t))}function bi(t){return Us(t)||qs(t)||!!(Yt&&t&&t[Yt])}function _i(t,e){var n=typeof t;return!!(e=null==e?p:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function Di(t,e,n){if(!na(n))return!1;var r=typeof e;return!!("number"==r?Js(n)&&_i(e,n.length):"string"==r&&e in n)&&Vs(n[e],t)}function wi(t,e){if(Us(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ca(t))||Q.test(t)||!Z.test(t)||null!=e&&t in xt(e)}function ki(t){var e=ui(t),n=zn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ai(n);return!!r&&t===r[0]}(Cn&&gi(new Cn(new ArrayBuffer(1)))!=M||xn&&gi(new xn)!=w||An&&gi(An.resolve())!=C||Sn&&gi(new Sn)!=A||On&&gi(new On)!=N)&&(gi=function(e){var n=xr(e),r=n==E?e.constructor:t,o=r?ji(r):"";if(o)switch(o){case Fn:return M;case In:return w;case $n:return C;case Bn:return A;case Rn:return N}return n});var Ei=Ft?Qs:yu;function Ci(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mt)}function xi(t){return t==t&&!na(t)}function Ai(e,n){return function(r){return null!=r&&r[e]===n&&(n!==t||e in xt(r))}}function Si(e,n,r){return n=bn(n===t?e.length-1:n,0),function(){for(var t=arguments,o=-1,i=bn(t.length-n,0),s=Dt(i);++o<i;)s[o]=t[n+o];o=-1;for(var a=Dt(n+1);++o<n;)a[o]=t[o];return a[n]=r(s),Ee(e,this,a)}}function Oi(t,e){return e.length<2?t:Er(t,oo(e,0,-1))}function Ni(e,n){for(var r=e.length,o=_n(n.length,r),i=To(e);o--;){var s=n[o];e[o]=_i(s,r)?i[s]:t}return e}function Ti(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Mi=Bi(eo),Fi=fe||function(t,e){return de.setTimeout(t,e)},Ii=Bi(no);function $i(t,e,n){var r=e+"";return Ii(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return xe(h,(function(n){var r="_."+n[0];e&n[1]&&!Ne(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(r),n)))}function Bi(e){var n=0,r=0;return function(){var o=Dn(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Ri(e,n){var r=-1,o=e.length,i=o-1;for(n=n===t?o:n;++r<n;){var s=Gr(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=n,e}var Li=function(t){var e=Bs(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,o){e.push(r?o.replace(ct,"$1"):n||t)})),e}));function Pi(t){if("string"==typeof t||ca(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ji(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zi(t){if(t instanceof qn)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=To(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Vi=Xr((function(t,e){return Gs(t)?dr(t,yr(e,1,Gs,!0)):[]})),Hi=Xr((function(e,n){var r=Zi(n);return Gs(r)&&(r=t),Gs(e)?dr(e,yr(n,1,Gs,!0),ci(r,2)):[]})),Wi=Xr((function(e,n){var r=Zi(n);return Gs(r)&&(r=t),Gs(e)?dr(e,yr(n,1,Gs,!0),t,r):[]}));function qi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),Pe(t,ci(e,3),o)}function Ui(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==t&&(i=ga(r),i=r<0?bn(o+i,0):_n(i,o-1)),Pe(e,ci(n,3),i,!0)}function Ki(t){return null!=t&&t.length?yr(t,1):[]}function Ji(e){return e&&e.length?e[0]:t}var Gi=Xr((function(t){var e=Me(t,bo);return e.length&&e[0]===t[0]?Nr(e):[]})),Yi=Xr((function(e){var n=Zi(e),r=Me(e,bo);return n===Zi(r)?n=t:r.pop(),r.length&&r[0]===e[0]?Nr(r,ci(n,2)):[]})),Xi=Xr((function(e){var n=Zi(e),r=Me(e,bo);return(n="function"==typeof n?n:t)&&r.pop(),r.length&&r[0]===e[0]?Nr(r,t,n):[]}));function Zi(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Qi=Xr(ts);function ts(t,e){return t&&t.length&&e&&e.length?Kr(t,e):t}var es=oi((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return Jr(t,Me(e,(function(t){return _i(t,n)?+t:t})).sort(So)),r}));function ns(t){return null==t?t:En.call(t)}var rs=Xr((function(t){return po(yr(t,1,Gs,!0))})),os=Xr((function(e){var n=Zi(e);return Gs(n)&&(n=t),po(yr(e,1,Gs,!0),ci(n,2))})),is=Xr((function(e){var n=Zi(e);return n="function"==typeof n?n:t,po(yr(e,1,Gs,!0),t,n)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=Oe(t,(function(t){if(Gs(t))return e=bn(t.length,e),!0})),Je(e,(function(e){return Me(t,We(e))}))}function as(e,n){if(!e||!e.length)return[];var r=ss(e);return null==n?r:Me(r,(function(e){return Ee(n,t,e)}))}var us=Xr((function(t,e){return Gs(t)?dr(t,e):[]})),ls=Xr((function(t){return vo(Oe(t,Gs))})),cs=Xr((function(e){var n=Zi(e);return Gs(n)&&(n=t),vo(Oe(e,Gs),ci(n,2))})),ps=Xr((function(e){var n=Zi(e);return n="function"==typeof n?n:t,vo(Oe(e,Gs),t,n)})),ds=Xr(ss),fs=Xr((function(e){var n=e.length,r=n>1?e[n-1]:t;return r="function"==typeof r?(e.pop(),r):t,as(e,r)}));function hs(t){var e=zn(t);return e.__chain__=!0,e}function ms(t,e){return e(t)}var gs=oi((function(e){var n=e.length,r=n?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(n>1||this.__actions__.length)&&o instanceof qn&&_i(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:ms,args:[i],thisArg:t}),new Wn(o,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(i)})),vs=Fo((function(t,e,n){$t.call(t,n)?++t[n]:sr(t,n,1)})),ys=jo(qi),bs=jo(Ui);function _s(t,e){return(Us(t)?xe:fr)(t,ci(e,3))}function Ds(t,e){return(Us(t)?Ae:hr)(t,ci(e,3))}var ws=Fo((function(t,e,n){$t.call(t,n)?t[n].push(e):sr(t,n,[e])})),ks=Xr((function(t,e,n){var r=-1,o="function"==typeof e,i=Js(t)?Dt(t.length):[];return fr(t,(function(t){i[++r]=o?Ee(e,t,n):Tr(t,e,n)})),i})),Es=Fo((function(t,e,n){sr(t,n,e)}));function Cs(t,e){return(Us(t)?Me:jr)(t,ci(e,3))}var xs=Fo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),As=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Di(t,e[0],e[1])?e=[]:n>2&&Di(e[0],e[1],e[2])&&(e=[e[0]]),qr(t,yr(e,1),[])})),Ss=pe||function(){return de.Date.now()};function Os(e,n,r){return n=r?t:n,n=e&&null==n?e.length:n,Qo(e,u,t,t,t,t,n)}function Ns(n,r){var o;if("function"!=typeof r)throw new Ot(e);return n=ga(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=t),o}}var Ts=Xr((function(t,e,n){var r=1;if(n.length){var o=ln(n,li(Ts));r|=i}return Qo(t,r,e,n,o)})),Ms=Xr((function(t,e,n){var r=3;if(n.length){var o=ln(n,li(Ms));r|=i}return Qo(e,r,t,n,o)}));function Fs(n,r,o){var i,s,a,u,l,c,p=0,d=!1,f=!1,h=!0;if("function"!=typeof n)throw new Ot(e);function m(e){var r=i,o=s;return i=s=t,p=e,u=n.apply(o,r)}function g(t){return p=t,l=Fi(y,r),d?m(t):u}function v(e){var n=e-c;return c===t||n>=r||n<0||f&&e-p>=a}function y(){var t=Ss();if(v(t))return b(t);l=Fi(y,function(t){var e=r-(t-c);return f?_n(e,a-(t-p)):e}(t))}function b(e){return l=t,h&&i?m(e):(i=s=t,u)}function _(){var e=Ss(),n=v(e);if(i=arguments,s=this,c=e,n){if(l===t)return g(c);if(f)return Eo(l),l=Fi(y,r),m(c)}return l===t&&(l=Fi(y,r)),u}return r=ya(r)||0,na(o)&&(d=!!o.leading,a=(f="maxWait"in o)?bn(ya(o.maxWait)||0,r):a,h="trailing"in o?!!o.trailing:h),_.cancel=function(){l!==t&&Eo(l),p=0,i=c=s=l=t},_.flush=function(){return l===t?u:b(Ss())},_}var Is=Xr((function(t,e){return pr(t,1,e)})),$s=Xr((function(t,e,n){return pr(t,ya(e)||0,n)}));function Bs(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Ot(e);var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,e);return r.cache=i.set(o,s)||i,s};return r.cache=new(Bs.Cache||Jn),r}function Rs(t){if("function"!=typeof t)throw new Ot(e);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Bs.Cache=Jn;var Ls=wo((function(t,e){var n=(e=1==e.length&&Us(e[0])?Me(e[0],Ye(ci())):Me(yr(e,1),Ye(ci()))).length;return Xr((function(r){for(var o=-1,i=_n(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return Ee(t,this,r)}))})),Ps=Xr((function(e,n){var r=ln(n,li(Ps));return Qo(e,i,t,n,r)})),js=Xr((function(e,n){var r=ln(n,li(js));return Qo(e,a,t,n,r)})),zs=oi((function(e,n){return Qo(e,l,t,t,t,n)}));function Vs(t,e){return t===e||t!=t&&e!=e}var Hs=Jo(Ar),Ws=Jo((function(t,e){return t>=e})),qs=Mr(function(){return arguments}())?Mr:function(t){return ra(t)&&$t.call(t,"callee")&&!Jt.call(t,"callee")},Us=Dt.isArray,Ks=ye?Ye(ye):function(t){return ra(t)&&xr(t)==T};function Js(t){return null!=t&&ea(t.length)&&!Qs(t)}function Gs(t){return ra(t)&&Js(t)}var Ys=Re||yu,Xs=be?Ye(be):function(t){return ra(t)&&xr(t)==y};function Zs(t){if(!ra(t))return!1;var e=xr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!sa(t)}function Qs(t){if(!na(t))return!1;var e=xr(t);return e==_||e==D||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ta(t){return"number"==typeof t&&t==ga(t)}function ea(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function na(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ra(t){return null!=t&&"object"==typeof t}var oa=_e?Ye(_e):function(t){return ra(t)&&gi(t)==w};function ia(t){return"number"==typeof t||ra(t)&&xr(t)==k}function sa(t){if(!ra(t)||xr(t)!=E)return!1;var e=Ut(t);if(null===e)return!0;var n=$t.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Pt}var aa=De?Ye(De):function(t){return ra(t)&&xr(t)==x},ua=we?Ye(we):function(t){return ra(t)&&gi(t)==A};function la(t){return"string"==typeof t||!Us(t)&&ra(t)&&xr(t)==S}function ca(t){return"symbol"==typeof t||ra(t)&&xr(t)==O}var pa=ke?Ye(ke):function(t){return ra(t)&&ea(t.length)&&!!ie[xr(t)]},da=Jo(Pr),fa=Jo((function(t,e){return t<=e}));function ha(t){if(!t)return[];if(Js(t))return la(t)?fn(t):To(t);if(Qt&&t[Qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Qt]());var e=gi(t);return(e==w?an:e==A?cn:Va)(t)}function ma(t){return t?(t=ya(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ga(t){var e=ma(t),n=e%1;return e==e?n?e-n:e:0}function va(t){return t?ur(ga(t),0,f):0}function ya(t){if("number"==typeof t)return t;if(ca(t))return d;if(na(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=na(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var n=ht.test(t);return n||gt.test(t)?le(t.slice(2),n?2:8):ft.test(t)?d:+t}function ba(t){return Mo(t,Ia(t))}function _a(t){return null==t?"":co(t)}var Da=Io((function(t,e){if(Ci(e)||Js(e))Mo(e,Fa(e),t);else for(var n in e)$t.call(e,n)&&nr(t,n,e[n])})),wa=Io((function(t,e){Mo(e,Ia(e),t)})),ka=Io((function(t,e,n,r){Mo(e,Ia(e),t,r)})),Ea=Io((function(t,e,n,r){Mo(e,Fa(e),t,r)})),Ca=oi(ar),xa=Xr((function(e,n){e=xt(e);var r=-1,o=n.length,i=o>2?n[2]:t;for(i&&Di(n[0],n[1],i)&&(o=1);++r<o;)for(var s=n[r],a=Ia(s),u=-1,l=a.length;++u<l;){var c=a[u],p=e[c];(p===t||Vs(p,Mt[c])&&!$t.call(e,c))&&(e[c]=s[c])}return e})),Aa=Xr((function(e){return e.push(t,ei),Ee(Ba,t,e)}));function Sa(e,n,r){var o=null==e?t:Er(e,n);return o===t?r:o}function Oa(t,e){return null!=t&&vi(t,e,Or)}var Na=Ho((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=n}),nu(iu)),Ta=Ho((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),$t.call(t,e)?t[e].push(n):t[e]=[n]}),ci),Ma=Xr(Tr);function Fa(t){return Js(t)?Xn(t):Rr(t)}function Ia(t){return Js(t)?Xn(t,!0):Lr(t)}var $a=Io((function(t,e,n){Hr(t,e,n)})),Ba=Io((function(t,e,n,r){Hr(t,e,n,r)})),Ra=oi((function(t,e){var n={};if(null==t)return n;var r=!1;e=Me(e,(function(e){return e=Do(e,t),r||(r=e.length>1),e})),Mo(t,si(t),n),r&&(n=lr(n,7,ni));for(var o=e.length;o--;)fo(n,e[o]);return n})),La=oi((function(t,e){return null==t?{}:function(t,e){return Ur(t,e,(function(e,n){return Oa(t,n)}))}(t,e)}));function Pa(t,e){if(null==t)return{};var n=Me(si(t),(function(t){return[t]}));return e=ci(e),Ur(t,n,(function(t,n){return e(t,n[0])}))}var ja=Zo(Fa),za=Zo(Ia);function Va(t){return null==t?[]:Xe(t,Fa(t))}var Ha=Lo((function(t,e,n){return e=e.toLowerCase(),t+(n?Wa(e):e)}));function Wa(t){return Za(_a(t).toLowerCase())}function qa(t){return(t=_a(t))&&t.replace(yt,nn).replace(Zt,"")}var Ua=Lo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ka=Lo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ja=Ro("toLowerCase"),Ga=Lo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ya=Lo((function(t,e,n){return t+(n?" ":"")+Za(e)})),Xa=Lo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Za=Ro("toUpperCase");function Qa(e,n,r){return e=_a(e),(n=r?t:n)===t?function(t){return ne.test(t)}(e)?function(t){return t.match(te)||[]}(e):function(t){return t.match(ut)||[]}(e):e.match(n)||[]}var tu=Xr((function(e,n){try{return Ee(e,t,n)}catch(t){return Zs(t)?t:new kt(t)}})),eu=oi((function(t,e){return xe(e,(function(e){e=Pi(e),sr(t,e,Ts(t[e],t))})),t}));function nu(t){return function(){return t}}var ru=zo(),ou=zo(!0);function iu(t){return t}function su(t){return Br("function"==typeof t?t:lr(t,1))}var au=Xr((function(t,e){return function(n){return Tr(n,t,e)}})),uu=Xr((function(t,e){return function(n){return Tr(t,n,e)}}));function lu(t,e,n){var r=Fa(e),o=kr(e,r);null!=n||na(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=kr(e,Fa(e)));var i=!(na(n)&&"chain"in n&&!n.chain),s=Qs(t);return xe(o,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=To(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Fe([this.value()],arguments))})})),t}function cu(){}var pu=qo(Me),du=qo(Se),fu=qo(Be);function hu(t){return wi(t)?We(Pi(t)):function(t){return function(e){return Er(e,t)}}(t)}var mu=Ko(),gu=Ko(!0);function vu(){return[]}function yu(){return!1}var bu,_u=Wo((function(t,e){return t+e}),0),Du=Yo("ceil"),wu=Wo((function(t,e){return t/e}),1),ku=Yo("floor"),Eu=Wo((function(t,e){return t*e}),1),Cu=Yo("round"),xu=Wo((function(t,e){return t-e}),0);return zn.after=function(t,n){if("function"!=typeof n)throw new Ot(e);return t=ga(t),function(){if(--t<1)return n.apply(this,arguments)}},zn.ary=Os,zn.assign=Da,zn.assignIn=wa,zn.assignInWith=ka,zn.assignWith=Ea,zn.at=Ca,zn.before=Ns,zn.bind=Ts,zn.bindAll=eu,zn.bindKey=Ms,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Us(t)?t:[t]},zn.chain=hs,zn.chunk=function(e,n,r){n=(r?Di(e,n,r):n===t)?1:bn(ga(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var i=0,s=0,a=Dt(he(o/n));i<o;)a[s++]=oo(e,i,i+=n);return a},zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=Dt(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Fe(Us(n)?To(n):[n],yr(e,1))},zn.cond=function(t){var n=null==t?0:t.length,r=ci();return t=n?Me(t,(function(t){if("function"!=typeof t[1])throw new Ot(e);return[r(t[0]),t[1]]})):[],Xr((function(e){for(var r=-1;++r<n;){var o=t[r];if(Ee(o[0],this,e))return Ee(o[1],this,e)}}))},zn.conforms=function(t){return function(t){var e=Fa(t);return function(n){return cr(n,t,e)}}(lr(t,1))},zn.constant=nu,zn.countBy=vs,zn.create=function(t,e){var n=Vn(t);return null==e?n:ir(n,e)},zn.curry=function e(n,r,o){var i=Qo(n,8,t,t,t,t,t,r=o?t:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(n,r,i){var s=Qo(n,o,t,t,t,t,t,r=i?t:r);return s.placeholder=e.placeholder,s},zn.debounce=Fs,zn.defaults=xa,zn.defaultsDeep=Aa,zn.defer=Is,zn.delay=$s,zn.difference=Vi,zn.differenceBy=Hi,zn.differenceWith=Wi,zn.drop=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=r||n===t?1:ga(n))<0?0:n,o):[]},zn.dropRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,0,(n=o-(n=r||n===t?1:ga(n)))<0?0:n):[]},zn.dropRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0,!0):[]},zn.dropWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!0):[]},zn.fill=function(e,n,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Di(e,n,r)&&(r=0,o=i),function(e,n,r,o){var i=e.length;for((r=ga(r))<0&&(r=-r>i?0:i+r),(o=o===t||o>i?i:ga(o))<0&&(o+=i),o=r>o?0:va(o);r<o;)e[r++]=n;return e}(e,n,r,o)):[]},zn.filter=function(t,e){return(Us(t)?Oe:vr)(t,ci(e,3))},zn.flatMap=function(t,e){return yr(Cs(t,e),1)},zn.flatMapDeep=function(t,e){return yr(Cs(t,e),c)},zn.flatMapDepth=function(e,n,r){return r=r===t?1:ga(r),yr(Cs(e,n),r)},zn.flatten=Ki,zn.flattenDeep=function(t){return null!=t&&t.length?yr(t,c):[]},zn.flattenDepth=function(e,n){return null!=e&&e.length?yr(e,n=n===t?1:ga(n)):[]},zn.flip=function(t){return Qo(t,512)},zn.flow=ru,zn.flowRight=ou,zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},zn.functions=function(t){return null==t?[]:kr(t,Fa(t))},zn.functionsIn=function(t){return null==t?[]:kr(t,Ia(t))},zn.groupBy=ws,zn.initial=function(t){return null!=t&&t.length?oo(t,0,-1):[]},zn.intersection=Gi,zn.intersectionBy=Yi,zn.intersectionWith=Xi,zn.invert=Na,zn.invertBy=Ta,zn.invokeMap=ks,zn.iteratee=su,zn.keyBy=Es,zn.keys=Fa,zn.keysIn=Ia,zn.map=Cs,zn.mapKeys=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,e(t,r,o),t)})),n},zn.mapValues=function(t,e){var n={};return e=ci(e,3),Dr(t,(function(t,r,o){sr(n,r,e(t,r,o))})),n},zn.matches=function(t){return zr(lr(t,1))},zn.matchesProperty=function(t,e){return Vr(t,lr(e,1))},zn.memoize=Bs,zn.merge=$a,zn.mergeWith=Ba,zn.method=au,zn.methodOf=uu,zn.mixin=lu,zn.negate=Rs,zn.nthArg=function(t){return t=ga(t),Xr((function(e){return Wr(e,t)}))},zn.omit=Ra,zn.omitBy=function(t,e){return Pa(t,Rs(ci(e)))},zn.once=function(t){return Ns(2,t)},zn.orderBy=function(e,n,r,o){return null==e?[]:(Us(n)||(n=null==n?[]:[n]),Us(r=o?t:r)||(r=null==r?[]:[r]),qr(e,n,r))},zn.over=pu,zn.overArgs=Ls,zn.overEvery=du,zn.overSome=fu,zn.partial=Ps,zn.partialRight=js,zn.partition=xs,zn.pick=La,zn.pickBy=Pa,zn.property=hu,zn.propertyOf=function(e){return function(n){return null==e?t:Er(e,n)}},zn.pull=Qi,zn.pullAll=ts,zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Kr(t,e,ci(n,2)):t},zn.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Kr(e,n,t,r):e},zn.pullAt=es,zn.range=mu,zn.rangeRight=gu,zn.rearg=zs,zn.reject=function(t,e){return(Us(t)?Oe:vr)(t,Rs(ci(e,3)))},zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=ci(e,3);++r<i;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return Jr(t,o),n},zn.rest=function(n,r){if("function"!=typeof n)throw new Ot(e);return Xr(n,r=r===t?r:ga(r))},zn.reverse=ns,zn.sampleSize=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),(Us(e)?Qn:Qr)(e,n)},zn.set=function(t,e,n){return null==t?t:to(t,e,n)},zn.setWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:to(e,n,r,o)},zn.shuffle=function(t){return(Us(t)?tr:ro)(t)},zn.slice=function(e,n,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Di(e,n,r)?(n=0,r=o):(n=null==n?0:ga(n),r=r===t?o:ga(r)),oo(e,n,r)):[]},zn.sortBy=As,zn.sortedUniq=function(t){return t&&t.length?uo(t):[]},zn.sortedUniqBy=function(t,e){return t&&t.length?uo(t,ci(e,2)):[]},zn.split=function(e,n,r){return r&&"number"!=typeof r&&Di(e,n,r)&&(n=r=t),(r=r===t?f:r>>>0)?(e=_a(e))&&("string"==typeof n||null!=n&&!aa(n))&&!(n=co(n))&&sn(e)?ko(fn(e),0,r):e.split(n,r):[]},zn.spread=function(t,n){if("function"!=typeof t)throw new Ot(e);return n=null==n?0:bn(ga(n),0),Xr((function(e){var r=e[n],o=ko(e,0,n);return r&&Fe(o,r),Ee(t,this,o)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?oo(t,1,e):[]},zn.take=function(e,n,r){return e&&e.length?oo(e,0,(n=r||n===t?1:ga(n))<0?0:n):[]},zn.takeRight=function(e,n,r){var o=null==e?0:e.length;return o?oo(e,(n=o-(n=r||n===t?1:ga(n)))<0?0:n,o):[]},zn.takeRightWhile=function(t,e){return t&&t.length?mo(t,ci(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?mo(t,ci(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,n,r){var o=!0,i=!0;if("function"!=typeof t)throw new Ot(e);return na(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Fs(t,n,{leading:o,maxWait:n,trailing:i})},zn.thru=ms,zn.toArray=ha,zn.toPairs=ja,zn.toPairsIn=za,zn.toPath=function(t){return Us(t)?Me(t,Pi):ca(t)?[t]:To(Li(_a(t)))},zn.toPlainObject=ba,zn.transform=function(t,e,n){var r=Us(t),o=r||Ys(t)||pa(t);if(e=ci(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:na(t)&&Qs(i)?Vn(Ut(t)):{}}return(o?xe:Dr)(t,(function(t,r,o){return e(n,t,r,o)})),n},zn.unary=function(t){return Os(t,1)},zn.union=rs,zn.unionBy=os,zn.unionWith=is,zn.uniq=function(t){return t&&t.length?po(t):[]},zn.uniqBy=function(t,e){return t&&t.length?po(t,ci(e,2)):[]},zn.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?po(e,t,n):[]},zn.unset=function(t,e){return null==t||fo(t,e)},zn.unzip=ss,zn.unzipWith=as,zn.update=function(t,e,n){return null==t?t:ho(t,e,_o(n))},zn.updateWith=function(e,n,r,o){return o="function"==typeof o?o:t,null==e?e:ho(e,n,_o(r),o)},zn.values=Va,zn.valuesIn=function(t){return null==t?[]:Xe(t,Ia(t))},zn.without=us,zn.words=Qa,zn.wrap=function(t,e){return Ps(_o(e),t)},zn.xor=ls,zn.xorBy=cs,zn.xorWith=ps,zn.zip=ds,zn.zipObject=function(t,e){return yo(t||[],e||[],nr)},zn.zipObjectDeep=function(t,e){return yo(t||[],e||[],to)},zn.zipWith=fs,zn.entries=ja,zn.entriesIn=za,zn.extend=wa,zn.extendWith=ka,lu(zn,zn),zn.add=_u,zn.attempt=tu,zn.camelCase=Ha,zn.capitalize=Wa,zn.ceil=Du,zn.clamp=function(e,n,r){return r===t&&(r=n,n=t),r!==t&&(r=(r=ya(r))==r?r:0),n!==t&&(n=(n=ya(n))==n?n:0),ur(ya(e),n,r)},zn.clone=function(t){return lr(t,4)},zn.cloneDeep=function(t){return lr(t,5)},zn.cloneDeepWith=function(e,n){return lr(e,5,n="function"==typeof n?n:t)},zn.cloneWith=function(e,n){return lr(e,4,n="function"==typeof n?n:t)},zn.conformsTo=function(t,e){return null==e||cr(t,e,Fa(e))},zn.deburr=qa,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=wu,zn.endsWith=function(e,n,r){e=_a(e),n=co(n);var o=e.length,i=r=r===t?o:ur(ga(r),0,o);return(r-=n.length)>=0&&e.slice(r,i)==n},zn.eq=Vs,zn.escape=function(t){return(t=_a(t))&&J.test(t)?t.replace(U,rn):t},zn.escapeRegExp=function(t){return(t=_a(t))&&nt.test(t)?t.replace(et,"\\$&"):t},zn.every=function(e,n,r){var o=Us(e)?Se:mr;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.find=ys,zn.findIndex=qi,zn.findKey=function(t,e){return Le(t,ci(e,3),Dr)},zn.findLast=bs,zn.findLastIndex=Ui,zn.findLastKey=function(t,e){return Le(t,ci(e,3),wr)},zn.floor=ku,zn.forEach=_s,zn.forEachRight=Ds,zn.forIn=function(t,e){return null==t?t:br(t,ci(e,3),Ia)},zn.forInRight=function(t,e){return null==t?t:_r(t,ci(e,3),Ia)},zn.forOwn=function(t,e){return t&&Dr(t,ci(e,3))},zn.forOwnRight=function(t,e){return t&&wr(t,ci(e,3))},zn.get=Sa,zn.gt=Hs,zn.gte=Ws,zn.has=function(t,e){return null!=t&&vi(t,e,Sr)},zn.hasIn=Oa,zn.head=Ji,zn.identity=iu,zn.includes=function(t,e,n,r){t=Js(t)?t:Va(t),n=n&&!r?ga(n):0;var o=t.length;return n<0&&(n=bn(o+n,0)),la(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&je(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),je(t,e,o)},zn.inRange=function(e,n,r){return n=ma(n),r===t?(r=n,n=0):r=ma(r),function(t,e,n){return t>=_n(e,n)&&t<bn(e,n)}(e=ya(e),n,r)},zn.invoke=Ma,zn.isArguments=qs,zn.isArray=Us,zn.isArrayBuffer=Ks,zn.isArrayLike=Js,zn.isArrayLikeObject=Gs,zn.isBoolean=function(t){return!0===t||!1===t||ra(t)&&xr(t)==v},zn.isBuffer=Ys,zn.isDate=Xs,zn.isElement=function(t){return ra(t)&&1===t.nodeType&&!sa(t)},zn.isEmpty=function(t){if(null==t)return!0;if(Js(t)&&(Us(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||pa(t)||qs(t)))return!t.length;var e=gi(t);if(e==w||e==A)return!t.size;if(Ci(t))return!Rr(t).length;for(var n in t)if($t.call(t,n))return!1;return!0},zn.isEqual=function(t,e){return Fr(t,e)},zn.isEqualWith=function(e,n,r){var o=(r="function"==typeof r?r:t)?r(e,n):t;return o===t?Fr(e,n,t,r):!!o},zn.isError=Zs,zn.isFinite=function(t){return"number"==typeof t&&qe(t)},zn.isFunction=Qs,zn.isInteger=ta,zn.isLength=ea,zn.isMap=oa,zn.isMatch=function(t,e){return t===e||Ir(t,e,di(e))},zn.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Ir(e,n,di(n),r)},zn.isNaN=function(t){return ia(t)&&t!=+t},zn.isNative=function(t){if(Ei(t))throw new kt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return $r(t)},zn.isNil=function(t){return null==t},zn.isNull=function(t){return null===t},zn.isNumber=ia,zn.isObject=na,zn.isObjectLike=ra,zn.isPlainObject=sa,zn.isRegExp=aa,zn.isSafeInteger=function(t){return ta(t)&&t>=-9007199254740991&&t<=p},zn.isSet=ua,zn.isString=la,zn.isSymbol=ca,zn.isTypedArray=pa,zn.isUndefined=function(e){return e===t},zn.isWeakMap=function(t){return ra(t)&&gi(t)==N},zn.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==xr(t)},zn.join=function(t,e){return null==t?"":vn.call(t,e)},zn.kebabCase=Ua,zn.last=Zi,zn.lastIndexOf=function(e,n,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==t&&(i=(i=ga(r))<0?bn(o+i,0):_n(i,o-1)),n==n?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(e,n,i):Pe(e,Ve,i,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ja,zn.lt=da,zn.lte=fa,zn.max=function(e){return e&&e.length?gr(e,iu,Ar):t},zn.maxBy=function(e,n){return e&&e.length?gr(e,ci(n,2),Ar):t},zn.mean=function(t){return He(t,iu)},zn.meanBy=function(t,e){return He(t,ci(e,2))},zn.min=function(e){return e&&e.length?gr(e,iu,Pr):t},zn.minBy=function(e,n){return e&&e.length?gr(e,ci(n,2),Pr):t},zn.stubArray=vu,zn.stubFalse=yu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Eu,zn.nth=function(e,n){return e&&e.length?Wr(e,ga(n)):t},zn.noConflict=function(){return de._===this&&(de._=jt),this},zn.noop=cu,zn.now=Ss,zn.pad=function(t,e,n){t=_a(t);var r=(e=ga(e))?dn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Uo(ge(o),n)+t+Uo(he(o),n)},zn.padEnd=function(t,e,n){t=_a(t);var r=(e=ga(e))?dn(t):0;return e&&r<e?t+Uo(e-r,n):t},zn.padStart=function(t,e,n){t=_a(t);var r=(e=ga(e))?dn(t):0;return e&&r<e?Uo(e-r,n)+t:t},zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(_a(t).replace(rt,""),e||0)},zn.random=function(e,n,r){if(r&&"boolean"!=typeof r&&Di(e,n,r)&&(n=r=t),r===t&&("boolean"==typeof n?(r=n,n=t):"boolean"==typeof e&&(r=e,e=t)),e===t&&n===t?(e=0,n=1):(e=ma(e),n===t?(n=e,e=0):n=ma(n)),e>n){var o=e;e=n,n=o}if(r||e%1||n%1){var i=kn();return _n(e+i*(n-e+ue("1e-"+((i+"").length-1))),n)}return Gr(e,n)},zn.reduce=function(t,e,n){var r=Us(t)?Ie:Ue,o=arguments.length<3;return r(t,ci(e,4),n,o,fr)},zn.reduceRight=function(t,e,n){var r=Us(t)?$e:Ue,o=arguments.length<3;return r(t,ci(e,4),n,o,hr)},zn.repeat=function(e,n,r){return n=(r?Di(e,n,r):n===t)?1:ga(n),Yr(_a(e),n)},zn.replace=function(){var t=arguments,e=_a(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(e,n,r){var o=-1,i=(n=Do(n,e)).length;for(i||(i=1,e=t);++o<i;){var s=null==e?t:e[Pi(n[o])];s===t&&(o=i,s=r),e=Qs(s)?s.call(e):s}return e},zn.round=Cu,zn.runInContext=s,zn.sample=function(t){return(Us(t)?Zn:Zr)(t)},zn.size=function(t){if(null==t)return 0;if(Js(t))return la(t)?dn(t):t.length;var e=gi(t);return e==w||e==A?t.size:Rr(t).length},zn.snakeCase=Ga,zn.some=function(e,n,r){var o=Us(e)?Be:io;return r&&Di(e,n,r)&&(n=t),o(e,ci(n,3))},zn.sortedIndex=function(t,e){return so(t,e)},zn.sortedIndexBy=function(t,e,n){return ao(t,e,ci(n,2))},zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=so(t,e);if(r<n&&Vs(t[r],e))return r}return-1},zn.sortedLastIndex=function(t,e){return so(t,e,!0)},zn.sortedLastIndexBy=function(t,e,n){return ao(t,e,ci(n,2),!0)},zn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=so(t,e,!0)-1;if(Vs(t[n],e))return n}return-1},zn.startCase=Ya,zn.startsWith=function(t,e,n){return t=_a(t),n=null==n?0:ur(ga(n),0,t.length),e=co(e),t.slice(n,n+e.length)==e},zn.subtract=xu,zn.sum=function(t){return t&&t.length?Ke(t,iu):0},zn.sumBy=function(t,e){return t&&t.length?Ke(t,ci(e,2)):0},zn.template=function(e,n,r){var o=zn.templateSettings;r&&Di(e,n,r)&&(n=t),e=_a(e),n=ka({},n,o,ti);var i,s,a=ka({},n.imports,o.imports,ti),u=Fa(a),l=Xe(a,u),c=0,p=n.interpolate||bt,d="__p += '",f=At((n.escape||bt).source+"|"+p.source+"|"+(p===X?pt:bt).source+"|"+(n.evaluate||bt).source+"|$","g"),h="//# sourceURL="+($t.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oe+"]")+"\n";e.replace(f,(function(t,n,r,o,a,u){return r||(r=o),d+=e.slice(c,u).replace(_t,on),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var m=$t.call(n,"variable")&&n.variable;if(m){if(lt.test(m))throw new kt("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(V,""):d).replace(H,"$1").replace(W,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=tu((function(){return Et(u,h+"return "+d).apply(t,l)}));if(g.source=d,Zs(g))throw g;return g},zn.times=function(t,e){if((t=ga(t))<1||t>p)return[];var n=f,r=_n(t,f);e=ci(e),t-=f;for(var o=Je(r,e);++n<t;)e(n);return o},zn.toFinite=ma,zn.toInteger=ga,zn.toLength=va,zn.toLower=function(t){return _a(t).toLowerCase()},zn.toNumber=ya,zn.toSafeInteger=function(t){return t?ur(ga(t),-9007199254740991,p):0===t?t:0},zn.toString=_a,zn.toUpper=function(t){return _a(t).toUpperCase()},zn.trim=function(e,n,r){if((e=_a(e))&&(r||n===t))return Ge(e);if(!e||!(n=co(n)))return e;var o=fn(e),i=fn(n);return ko(o,Qe(o,i),tn(o,i)+1).join("")},zn.trimEnd=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.slice(0,hn(e)+1);if(!e||!(n=co(n)))return e;var o=fn(e);return ko(o,0,tn(o,fn(n))+1).join("")},zn.trimStart=function(e,n,r){if((e=_a(e))&&(r||n===t))return e.replace(rt,"");if(!e||!(n=co(n)))return e;var o=fn(e);return ko(o,Qe(o,fn(n))).join("")},zn.truncate=function(e,n){var r=30,o="...";if(na(n)){var i="separator"in n?n.separator:i;r="length"in n?ga(n.length):r,o="omission"in n?co(n.omission):o}var s=(e=_a(e)).length;if(sn(e)){var a=fn(e);s=a.length}if(r>=s)return e;var u=r-dn(o);if(u<1)return o;var l=a?ko(a,0,u).join(""):e.slice(0,u);if(i===t)return l+o;if(a&&(u+=l.length-u),aa(i)){if(e.slice(u).search(i)){var c,p=l;for(i.global||(i=At(i.source,_a(dt.exec(i))+"g")),i.lastIndex=0;c=i.exec(p);)var d=c.index;l=l.slice(0,d===t?u:d)}}else if(e.indexOf(co(i),u)!=u){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+o},zn.unescape=function(t){return(t=_a(t))&&K.test(t)?t.replace(q,mn):t},zn.uniqueId=function(t){var e=++Bt;return _a(t)+e},zn.upperCase=Xa,zn.upperFirst=Za,zn.each=_s,zn.eachRight=Ds,zn.first=Ji,lu(zn,(bu={},Dr(zn,(function(t,e){$t.call(zn.prototype,e)||(bu[e]=t)})),bu),{chain:!1}),zn.VERSION="4.17.21",xe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),xe(["drop","take"],(function(e,n){qn.prototype[e]=function(r){r=r===t?1:bn(ga(r),0);var o=this.__filtered__&&!n?new qn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(r,o.__takeCount__):o.__views__.push({size:_n(r,f),type:e+(o.__dir__<0?"Right":"")}),o},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xe(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ci(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),xe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}})),xe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(iu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new qn(this):this.map((function(n){return Tr(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(Rs(ci(t)))},qn.prototype.slice=function(e,n){e=ga(e);var r=this;return r.__filtered__&&(e>0||n<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(n=ga(n))<0?r.dropRight(-n):r.take(n-e)),r)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(f)},Dr(qn.prototype,(function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=zn[o?"take"+("last"==n?"Right":""):n],s=o||/^find/.test(n);i&&(zn.prototype[n]=function(){var n=this.__wrapped__,a=o?[1]:arguments,u=n instanceof qn,l=a[0],c=u||Us(n),p=function(t){var e=i.apply(zn,Fe([t],a));return o&&d?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,f=!!this.__actions__.length,h=s&&!d,m=u&&!f;if(!s&&c){n=m?n:new qn(this);var g=e.apply(n,a);return g.__actions__.push({func:ms,args:[p],thisArg:t}),new Wn(g,d)}return h&&m?e.apply(this,a):(g=this.thru(p),h?o?g.value()[0]:g.value():g)})})),xe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Nt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Us(o)?o:[],t)}return this[n]((function(n){return e.apply(Us(n)?n:[],t)}))}})),Dr(qn.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";$t.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:e,func:n})}})),Mn[Vo(t,2).name]=[{name:"wrapper",func:t}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=To(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=To(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=To(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Us(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=_n(e,t+s);break;case"takeRight":t=bn(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,l=r?a:s-1,c=this.__iteratees__,p=c.length,d=0,f=_n(u,this.__takeCount__);if(!n||!r&&o==u&&f==u)return go(t,this.__actions__);var h=[];t:for(;u--&&d<f;){for(var m=-1,g=t[l+=e];++m<p;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue t;break t}}h[d++]=g}return h},zn.prototype.at=gs,zn.prototype.chain=function(){return hs(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===t&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var n,r=this;r instanceof Hn;){var o=zi(r);o.__index__=0,o.__values__=t,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,n},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var n=e;return this.__actions__.length&&(n=new qn(this)),(n=n.reverse()).__actions__.push({func:ms,args:[ns],thisArg:t}),new Wn(n,this.__chain__)}return this.thru(ns)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Qt&&(zn.prototype[Qt]=function(){return this}),zn}();he?((he.exports=gn)._=gn,fe._=gn):de._=gn}.call(s);const yd=fd.create({name:"text",group:"inline"});var bd=200,_d=function(){};_d.prototype.append=function(t){return t.length?(t=_d.from(t),!this.length&&t||t.length<bd&&this.leafAppend(t)||this.length<bd&&t.leafPrepend(this)||this.appendInner(t)):this},_d.prototype.prepend=function(t){return t.length?_d.from(t).append(this):this},_d.prototype.appendInner=function(t){return new wd(this,t)},_d.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?_d.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},_d.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},_d.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},_d.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(e,n){return r.push(t(e,n))}),e,n),r},_d.from=function(t){return t instanceof _d?t:t&&t.length?new Dd(t):_d.empty};var Dd=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,r){for(var o=e;o<n;o++)if(!1===t(this.values[o],r+o))return!1},e.prototype.forEachInvertedInner=function(t,e,n,r){for(var o=e-1;o>=n;o--)if(!1===t(this.values[o],r+o))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=bd)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=bd)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(_d);_d.empty=new Dd([]);var wd=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return t<this.left.length?this.left.get(t):this.right.get(t-this.left.length)},e.prototype.forEachInner=function(t,e,n,r){var o=this.left.length;return!(e<o&&!1===this.left.forEachInner(t,e,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(t,Math.max(e-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},e.prototype.forEachInvertedInner=function(t,e,n,r){var o=this.left.length;return!(e>o&&!1===this.right.forEachInvertedInner(t,e-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(t,Math.min(e,o),n,r))&&void 0)},e.prototype.sliceInner=function(t,e){if(0==t&&e==this.length)return this;var n=this.left.length;return e<=n?this.left.slice(t,e):t>=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(_d),kd=_d;class Ed{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}e&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,s,a=t.tr,u=[],l=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(o,e+1),r=n.maps.length),r--,void l.push(t);if(n){l.push(new Cd(t.map));let e,o=t.step.map(n.slice(r));o&&a.maybeStep(o).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],u.push(new Cd(e,void 0,void 0,u.length+l.length))),r--,e&&n.appendMap(e,r)}else a.maybeStep(t.step);return t.selection?(i=n?t.selection.map(n.slice(r)):t.selection,s=new Ed(this.items.slice(0,o).append(l.reverse().concat(u)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:i}}addTransform(t,e,n,r){let o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null;for(let n=0;n<t.steps.length;n++){let u,l=t.steps[n].invert(t.docs[n]),c=new Cd(t.mapping.maps[n],l,e);(u=a&&a.merge(c))&&(c=u,n?o.pop():s=s.slice(0,s.length-1)),o.push(c),e&&(i++,e=void 0),r||(a=c)}let u=i-n.depth;return u>Ad&&(s=function(t,e){let n;return t.forEach(((t,r)=>{if(t.selection&&0==e--)return n=r,!1})),t.slice(n)}(s,u),i-=u),new Ed(s.append(o),i)}remapping(t,e){let n=new ou;return this.items.forEach(((e,r)=>{let o=null!=e.mirrorOffset&&r-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,o)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new Ed(this.items.append(t.map((t=>new Cd(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-e),o=t.mapping,i=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),r);let a=e;this.items.forEach((e=>{let r=o.getMirror(--a);if(null==r)return;i=Math.min(i,r);let u=o.maps[r];if(e.step){let i=t.steps[r].invert(t.docs[r]),l=e.selection&&e.selection.map(o.slice(a+1,r));l&&s++,n.push(new Cd(u,i,l))}else n.push(new Cd(u))}),r);let u=[];for(let t=e;t<i;t++)u.push(new Cd(o.maps[t]));let l=this.items.slice(0,r).append(u).append(n),c=new Ed(l,s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,r=[],o=0;return this.items.forEach(((i,s)=>{if(s>=t)r.push(i),i.selection&&o++;else if(i.step){let t=i.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=i.selection&&i.selection.map(e.slice(n));a&&o++;let u,l=new Cd(s.invert(),t,a),c=r.length-1;(u=r.length&&r[c].merge(l))?r[c]=u:r.push(l)}}else i.map&&n--}),this.items.length,0),new Ed(kd.from(r.reverse()),o)}}Ed.empty=new Ed(kd.empty,0);class Cd{constructor(t,e,n,r){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Cd(e.getMap().invert(),e,this.selection)}}}class xd{constructor(t,e,n,r){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=r}}const Ad=20;function Sd(t){let e=[];return t.forEach(((t,n,r,o)=>e.push(r,o))),e}function Od(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function Nd(t,e,n,r){let o=Fd(e),i=Id.get(e).spec.config,s=(r?t.undone:t.done).popEvent(e,o);if(!s)return;let a=s.selection.resolve(s.transform.doc),u=(r?t.done:t.undone).addTransform(s.transform,e.selection.getBookmark(),i,o),l=new xd(r?u:s.remaining,r?s.remaining:u,null,0);n(s.transform.setSelection(a).setMeta(Id,{redo:r,historyState:l}).scrollIntoView())}let Td=!1,Md=null;function Fd(t){let e=t.plugins;if(Md!=e){Td=!1,Md=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){Td=!0;break}}return Td}const Id=new rl("history"),$d=new rl("closeHistory");function Bd(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new tl({key:Id,state:{init:()=>new xd(Ed.empty,Ed.empty,null,0),apply:(e,n,r)=>function(t,e,n,r){let o,i=n.getMeta(Id);if(i)return i.historyState;n.getMeta($d)&&(t=new xd(t.done,t.undone,null,0));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(Id))return s.getMeta(Id).redo?new xd(t.done.addTransform(n,void 0,r,Fd(e)),t.undone,Sd(n.mapping.maps[n.steps.length-1]),t.prevTime):new xd(t.done,t.undone.addTransform(n,void 0,r,Fd(e)),null,t.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new xd(t.done.rebased(n,o),t.undone.rebased(n,o),Od(t.prevRanges,n.mapping),t.prevTime):new xd(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Od(t.prevRanges,n.mapping),t.prevTime);{let o=0==t.prevTime||!s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,r)=>{for(let o=0;o<e.length;o+=2)t<=e[o+1]&&r>=e[o]&&(n=!0)})),n}(n,t.prevRanges)),i=s?Od(t.prevRanges,n.mapping):Sd(n.mapping.maps[n.steps.length-1]);return new xd(t.done.addTransform(n,o?e.selection.getBookmark():void 0,r,Fd(e)),Ed.empty,i,n.time)}}(n,r,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,r="historyUndo"==n?Rd:"historyRedo"==n?Ld:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const Rd=(t,e)=>{let n=Id.getState(t);return!(!n||0==n.done.eventCount)&&(e&&Nd(n,t,e,!1),!0)},Ld=(t,e)=>{let n=Id.getState(t);return!(!n||0==n.undone.eventCount)&&(e&&Nd(n,t,e,!0),!0)},Pd=jp.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>Rd(t,e),redo:()=>({state:t,dispatch:e})=>Ld(t,e)}),addProseMirrorPlugins(){return[Bd(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),jd=Object.freeze({COMMON:"common",DESKTOP:"desktop",TABLET:"tablet",MOBILE:"mobile",get values(){return[this.COMMON,this.MOBILE,this.TABLET,this.DESKTOP]}}),zd=Object.freeze({UPPERCASE:"uppercase",LOWERCASE:"lowercase",CAPITALIZE:"capitalize"}),Vd=Object.freeze({LEFT:"left",CENTER:"center",RIGHT:"right",JUSTIFY:"justify",get values(){return[this.LEFT,this.CENTER,this.RIGHT,this.JUSTIFY]}}),Hd=Object.freeze({DOCUMENT:"doc",PARAGRAPH:"paragraph",HEADING:"heading",LIST:"list",LIST_ITEM:"listItem",TEXT:"text",get blocks(){return[this.PARAGRAPH,this.LIST,this.HEADING]}}),Wd=Object.freeze({DISC:"disc",CIRCLE:"circle",SQUARE:"square",DECIMAL:"decimal",ROMAN:"roman",LATIN:"latin",get values(){return[this.DISC,this.CIRCLE,this.SQUARE,this.DECIMAL,this.ROMAN,this.LATIN]},get ordered(){return[this.DECIMAL,this.ROMAN,this.LATIN]}}),qd=Object.freeze({ALIGNMENT:"alignment",BACKGROUND_COLOR:"background_color",FONT_COLOR:"font_color",FONT_FAMILY:"font_family",FONT_SIZE:"font_size",FONT_STYLE:"font_style",FONT_WEIGHT:"font_weight",LINE_HEIGHT:"line_height",TEXT_DECORATION:"text_decoration",SUPERSCRIPT:"superscript",MARGIN:"margin",LINK:"link",STYLE_PRESET:"style_preset",get attributes(){return[this.ALIGNMENT,this.LINE_HEIGHT,this.MARGIN]},get presetAttributes(){return[this.LINE_HEIGHT]},get inlineMarks(){return[this.TEXT_DECORATION,this.LINK,this.SUPERSCRIPT,this.BACKGROUND_COLOR]},get marks(){return[this.BACKGROUND_COLOR,this.FONT_COLOR,this.FONT_FAMILY,this.FONT_SIZE,this.FONT_STYLE,this.FONT_WEIGHT,this.TEXT_DECORATION,this.SUPERSCRIPT]}}),Ud=Object.freeze({SETTINGS:"settings",ALL:"_"}),Kd=Object.freeze({BLANK:"_blank",SELF:"_self"}),Jd=Object.freeze({URL:"url",BLOCK:"block"});class Gd{static create(t,e){const n=new this(t,e||{});return new tl({key:new rl(this.name),props:n._buildProps()})}constructor(t,e){this.options=e,this.editor=t}_buildProps(){const t=Object.entries(this.addProps()).map((([t,e])=>[t,e.bind(this)]));return Object.fromEntries(t)}addProps(){return{}}}class Yd extends Gd{addProps(){return{transformPastedHTML:this._transformPastedHTML,handlePaste:this._handlePaste}}_transformPastedHTML(t){if(t.includes("data-pm-slice")&&t.includes("zw-style"))return t;const e=Im.build(t);return e.normalizeHTML(),this._removeDeprecatedStyles(e),e.normalizedHTML}_removeDeprecatedStyles(t){const e=t.dom.querySelectorAll('[style*="margin"]');for(const t of Array.from(e))t.style.removeProperty("margin"),t.style.removeProperty("margin-top"),t.style.removeProperty("margin-right"),t.style.removeProperty("margin-bottom"),t.style.removeProperty("margin-left")}_handlePaste(t,e,n){const r=this._insertPastedContent(t,n).scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste");return t.dispatch(r),!0}_insertPastedContent({state:t,input:e},n){return this._isFullBlockSelected(t)?t.tr.replaceSelectionWith(n.content,e.shiftKey):t.tr.replaceSelection(n)}_isFullBlockSelected(t){const e=this._expandSelectionToBlocks(t),n=this._isMatchPosition(e.from,t.selection.from),r=this._isMatchPosition(e.to,t.selection.to);return n&&r}_expandSelectionToBlocks({selection:t,doc:e}){let n=t.from,r=t.to;return e.nodesBetween(n,r,((t,e,o)=>{o.type.name===Hd.DOCUMENT&&(n=Math.min(n,e+1),r=Math.max(r,e+t.nodeSize-1))})),{from:n,to:r}}_isMatchPosition(t,e){return Math.abs(t-e)<5}}class Xd extends Gd{addProps(){return{decorations:this._buildDecorations}}_buildDecorations({doc:t}){const e=[];return this.editor.isEditable?t.childCount>1?void 0:(t.descendants(((t,n)=>{if(!t.childCount){const r=Ic.node(n,n+t.nodeSize,{class:"zw-wysiwyg__placeholder","data-placeholder":"Type your text here..."});e.push(r)}return!1})),Rc.create(t,e)):null}}function Zd(t){this.j={},this.jr=[],this.jd=null,this.t=t}Zd.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var n=e,r=this.j[t];if(r)return n&&(r.t=n),r;r=Qd();var o=rf(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=n||o.t):r.t=n,this.j[t]=r,r}};var Qd=function(){return new Zd},tf=function(t){return new Zd(t)},ef=function(t,e,n){t.j[e]||(t.j[e]=n)},nf=function(t,e,n){t.jr.push([e,n])},rf=function(t,e){var n=t.j[e];if(n)return n;for(var r=0;r<t.jr.length;r++){var o=t.jr[r][0],i=t.jr[r][1];if(o.test(e))return i}return t.jd},of=function(t,e,n){for(var r=0;r<e.length;r++)ef(t,e[r],n)},sf=function(t,e){for(var n=0;n<e.length;n++){var r=e[n][0],o=e[n][1];ef(t,r,o)}},af=function(t,e,n,r){for(var o,i=0,s=e.length;i<s&&(o=t.j[e[i]]);)t=o,i++;if(i>=s)return[];for(;i<s-1;)o=r(),ef(t,e[i],o),t=o,i++;ef(t,e[s-1],n)},uf="DOMAIN",lf="LOCALHOST",cf="TLD",pf="NUM",df="PROTOCOL",ff="MAILTO",hf="WS",mf="NL",gf="OPENBRACE",vf="OPENBRACKET",yf="OPENANGLEBRACKET",bf="OPENPAREN",_f="CLOSEBRACE",Df="CLOSEBRACKET",wf="CLOSEANGLEBRACKET",kf="CLOSEPAREN",Ef="AMPERSAND",Cf="APOSTROPHE",xf="ASTERISK",Af="AT",Sf="BACKSLASH",Of="BACKTICK",Nf="CARET",Tf="COLON",Mf="COMMA",Ff="DOLLAR",If="DOT",$f="EQUALS",Bf="EXCLAMATION",Rf="HYPHEN",Lf="PERCENT",Pf="PIPE",jf="PLUS",zf="POUND",Vf="QUERY",Hf="QUOTE",Wf="SEMI",qf="SLASH",Uf="TILDE",Kf="UNDERSCORE",Jf="SYM",Gf=Object.freeze({__proto__:null,DOMAIN:uf,LOCALHOST:lf,TLD:cf,NUM:pf,PROTOCOL:df,MAILTO:ff,WS:hf,NL:mf,OPENBRACE:gf,OPENBRACKET:vf,OPENANGLEBRACKET:yf,OPENPAREN:bf,CLOSEBRACE:_f,CLOSEBRACKET:Df,CLOSEANGLEBRACKET:wf,CLOSEPAREN:kf,AMPERSAND:Ef,APOSTROPHE:Cf,ASTERISK:xf,AT:Af,BACKSLASH:Sf,BACKTICK:Of,CARET:Nf,COLON:Tf,COMMA:Mf,DOLLAR:Ff,DOT:If,EQUALS:$f,EXCLAMATION:Bf,HYPHEN:Rf,PERCENT:Lf,PIPE:Pf,PLUS:jf,POUND:zf,QUERY:Vf,QUOTE:Hf,SEMI:Wf,SLASH:qf,TILDE:Uf,UNDERSCORE:Kf,SYM:Jf}),Yf="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "),Xf=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,Zf=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,Qf=/\uFE0F/,th=/\d/,eh=/\s/;function nh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Qd(),n=tf(pf),r=tf(uf),o=Qd(),i=tf(hf),s=[[th,r],[Xf,r],[Zf,r],[Qf,r]],a=function(){var t=tf(uf);return t.j={"-":o},t.jr=[].concat(s),t},u=function(t){var e=a();return e.t=t,e};sf(e,[["'",tf(Cf)],["{",tf(gf)],["[",tf(vf)],["<",tf(yf)],["(",tf(bf)],["}",tf(_f)],["]",tf(Df)],[">",tf(wf)],[")",tf(kf)],["&",tf(Ef)],["*",tf(xf)],["@",tf(Af)],["`",tf(Of)],["^",tf(Nf)],[":",tf(Tf)],[",",tf(Mf)],["$",tf(Ff)],[".",tf(If)],["=",tf($f)],["!",tf(Bf)],["-",tf(Rf)],["%",tf(Lf)],["|",tf(Pf)],["+",tf(jf)],["#",tf(zf)],["?",tf(Vf)],['"',tf(Hf)],["/",tf(qf)],[";",tf(Wf)],["~",tf(Uf)],["_",tf(Kf)],["\\",tf(Sf)]]),ef(e,"\n",tf(mf)),nf(e,eh,i),ef(i,"\n",Qd()),nf(i,eh,i);for(var l=0;l<Yf.length;l++)af(e,Yf[l],u(cf),a);var c=a(),p=a(),d=a(),f=a();af(e,"file",c,a),af(e,"ftp",p,a),af(e,"http",d,a),af(e,"mailto",f,a);var h=a(),m=tf(df),g=tf(ff);ef(p,"s",h),ef(p,":",m),ef(d,"s",h),ef(d,":",m),ef(c,":",m),ef(h,":",m),ef(f,":",g);for(var v=a(),y=0;y<t.length;y++)af(e,t[y],v,a);return ef(v,":",m),af(e,"localhost",u(lf),a),nf(e,th,n),nf(e,Xf,r),nf(e,Zf,r),nf(e,Qf,r),nf(n,th,n),nf(n,Xf,r),nf(n,Zf,r),nf(n,Qf,r),ef(n,"-",o),ef(r,"-",o),ef(o,"-",o),nf(r,th,r),nf(r,Xf,r),nf(r,Zf,r),nf(r,Qf,r),nf(o,th,r),nf(o,Xf,r),nf(o,Zf,r),nf(o,Qf,r),e.jd=tf(Jf),e}var rh={defaultProtocol:"http",events:null,format:oh,formatHref:oh,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function oh(t){return t}function ih(){}function sh(t,e){function n(e,n){this.t=t,this.v=e,this.tk=n}return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var o in n)r[o]=n[o];r.constructor=e,e.prototype=r}(ih,n,e),n}ih.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rh.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var ah=sh("email",{isLink:!0}),uh=sh("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),lh=sh("text"),ch=sh("nl"),ph=sh("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rh.defaultProtocol,e=this.tk,n=!1,r=!1,o=[],i=0;e[i].t===df;)n=!0,o.push(e[i].v),i++;for(;e[i].t===qf;)r=!0,o.push(e[i].v),i++;for(;i<e.length;i++)o.push(e[i].v);return o=o.join(""),n||r||(o="".concat(t,"://").concat(o)),o},hasProtocol:function(){return this.tk[0].t===df}}),dh=Object.freeze({__proto__:null,MultiToken:ih,Base:ih,createTokenClass:sh,MailtoEmail:ah,Email:uh,Text:lh,Nl:ch,Url:ph});function fh(){var t=Qd(),e=Qd(),n=Qd(),r=Qd(),o=Qd(),i=Qd(),s=Qd(),a=tf(ph),u=Qd(),l=tf(ph),c=tf(ph),p=Qd(),d=Qd(),f=Qd(),h=Qd(),m=Qd(),g=tf(ph),v=tf(ph),y=tf(ph),b=tf(ph),_=Qd(),D=Qd(),w=Qd(),k=Qd(),E=Qd(),C=Qd(),x=tf(uh),A=Qd(),S=tf(uh),O=tf(ah),N=Qd(),T=Qd(),M=Qd(),F=Qd(),I=tf(ch);ef(t,mf,I),ef(t,df,e),ef(t,ff,n),ef(e,qf,r),ef(r,qf,o),ef(t,cf,i),ef(t,uf,i),ef(t,lf,a),ef(t,pf,i),ef(o,cf,c),ef(o,uf,c),ef(o,pf,c),ef(o,lf,c),ef(i,If,s),ef(E,If,C),ef(s,cf,a),ef(s,uf,i),ef(s,pf,i),ef(s,lf,i),ef(C,cf,x),ef(C,uf,E),ef(C,pf,E),ef(C,lf,E),ef(a,If,s),ef(x,If,C),ef(a,Tf,u),ef(a,qf,c),ef(u,pf,l),ef(l,qf,c),ef(x,Tf,A),ef(A,pf,S);var $=[Ef,xf,Af,Sf,Of,Nf,Ff,uf,$f,Rf,lf,pf,Lf,Pf,jf,zf,df,qf,Jf,Uf,cf,Kf],B=[Cf,wf,_f,Df,kf,Tf,Mf,If,Bf,yf,gf,vf,bf,Vf,Hf,Wf];ef(c,gf,d),ef(c,vf,f),ef(c,yf,h),ef(c,bf,m),ef(p,gf,d),ef(p,vf,f),ef(p,yf,h),ef(p,bf,m),ef(d,_f,c),ef(f,Df,c),ef(h,wf,c),ef(m,kf,c),ef(g,_f,c),ef(v,Df,c),ef(y,wf,c),ef(b,kf,c),ef(_,_f,c),ef(D,Df,c),ef(w,wf,c),ef(k,kf,c),of(d,$,g),of(f,$,v),of(h,$,y),of(m,$,b),of(d,B,_),of(f,B,D),of(h,B,w),of(m,B,k),of(g,$,g),of(v,$,v),of(y,$,y),of(b,$,b),of(g,B,g),of(v,B,v),of(y,B,y),of(b,B,b),of(_,$,g),of(D,$,v),of(w,$,y),of(k,$,b),of(_,B,_),of(D,B,D),of(w,B,w),of(k,B,k),of(c,$,c),of(p,$,c),of(c,B,p),of(p,B,p),ef(n,cf,O),ef(n,uf,O),ef(n,pf,O),ef(n,lf,O),of(O,$,O),of(O,B,N),of(N,$,O),of(N,B,N);var R=[Ef,Cf,xf,Sf,Of,Nf,_f,Ff,uf,$f,Rf,pf,gf,Lf,Pf,jf,zf,Vf,qf,Jf,Uf,cf,Kf];return of(i,R,T),ef(i,Af,M),of(a,R,T),ef(a,Af,M),of(s,R,T),of(T,R,T),ef(T,Af,M),ef(T,If,F),of(F,R,T),ef(M,cf,E),ef(M,uf,E),ef(M,pf,E),ef(M,lf,x),t}function hh(t,e,n){var r=n[0].s,o=n[n.length-1].e;return new t(e.substr(r,o-r),n)}var mh="undefined"!=typeof console&&console&&console.warn||function(){},gh={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function vh(t){if(gh.initialized&&mh('linkifyjs: already initialized - will not register custom protocol "'.concat(t,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(t))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");gh.customProtocols.push(t)}function yh(t){return gh.initialized||function(){gh.scanner={start:nh(gh.customProtocols),tokens:Gf},gh.parser={start:fh(),tokens:dh};for(var t={createTokenClass:sh},e=0;e<gh.pluginQueue.length;e++)gh.pluginQueue[e][1]({scanner:gh.scanner,parser:gh.parser,utils:t});gh.initialized=!0}(),function(t,e,n){for(var r=n.length,o=0,i=[],s=[];o<r;){for(var a=t,u=null,l=null,c=0,p=null,d=-1;o<r&&!(u=rf(a,n[o].t));)s.push(n[o++]);for(;o<r&&(l=u||rf(a,n[o].t));)u=null,(a=l).accepts()?(d=0,p=a):d>=0&&d++,o++,c++;if(d<0)for(var f=o-c;f<o;f++)s.push(n[f]);else{s.length>0&&(i.push(hh(lh,e,s)),s=[]),o-=d,c-=d;var h=p.t,m=n.slice(o-c,o);i.push(hh(h,e,m))}}return s.length>0&&i.push(hh(lh,e,s)),i}(gh.parser.start,t,function(t,e){for(var n=function(t){for(var e=[],n=t.length,r=0;r<n;){var o=t.charCodeAt(r),i=void 0,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}(e.replace(/[A-Z]/g,(function(t){return t.toLowerCase()}))),r=n.length,o=[],i=0,s=0;s<r;){for(var a=t,u=null,l=0,c=null,p=-1,d=-1;s<r&&(u=rf(a,n[s]));)(a=u).accepts()?(p=0,d=0,c=a):p>=0&&(p+=n[s].length,d++),l+=n[s].length,i+=n[s].length,s++;i-=p,s-=d,l-=p,o.push({t:c.t,v:e.substr(i-l,l),s:i-l,e:i})}return o}(gh.scanner.start,t))}function bh(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=yh(t),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||e&&i.t!==e||r.push(i.toObject())}return r}function _h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=yh(t);return 1===n.length&&n[0].isLink&&(!e||n[0].t===e)}class Dh extends Gd{addProps(){return{handlePaste:this._handlePaste}}_handlePaste(t,e,n){if(t.state.selection.empty)return!1;const r=n.content.textBetween(0,n.content.size).trim(),o=_h(r);if(!r||!o)return!1;const i=this._createLinkAttrs(r,n.content);return this.editor.commands.applyLink(i),!0}_createLinkAttrs(t,e){return Pm.query(e,{typeName:Hd.TEXT,mark:{typeName:qd.LINK},getMark:{typeName:qd.LINK}})?.attrs||{href:t}}}function wh(t){return(...e)=>n=>t(n,...e)}function kh(t){const e=Object.entries(t).reduce(((t,[e,n])=>{if(!n)return t;return`${t}--zw-${e.replace(/_/g,"-")}:${n};`}),"");return e?{style:e}:null}function Eh(t){const e=kh(t);return["span",e?{...e,class:"zw-style"}:{},0]}function Ch(t,...e){return({editor:n})=>(n.commands[t](...e),!0)}var xh=Object.defineProperty,Ah=(t,e,n)=>(((t,e,n)=>{e in t?xh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!=typeof e?e+"":e,n),n);function Sh(t,e){let n=!1;return function(){n||(t.apply(this,arguments),n=!0,setTimeout((function(){n=!1}),e))}}function Oh(t){return t>1||t<-1?t/100:t}const Nh=t=>Number.parseFloat(t.toFixed(5).substr(0,5));function Th(t){const e=function(t,e=1){const n=[];let r=0;for(;r<t.length;)n.push(t.substr(r,e)),r+=e;return n}(t.slice(1),2).map((t=>parseInt(t,16))),n=void 0!==e[3]?Math.round(e[3]/255*100)/100:1;return{r:e[0],g:e[1],b:e[2],a:n}}function Mh(t){const{h:e,s:n,v:r,a:o}=t,i=t=>{const o=(t+e/60)%6;return r-r*n*Math.max(Math.min(o,4-o,1),0)},s=[i(5),i(3),i(1)].map((t=>Math.round(255*t)));return{r:s[0],g:s[1],b:s[2],a:o}}function Fh(t){if(!t)return{h:0,s:1,v:1,a:1};const e=t.r/255,n=t.g/255,r=t.b/255,o=Math.max(e,n,r),i=Math.min(e,n,r);let s=0;o!==i&&(o===e?s=60*(0+(n-r)/(o-i)):o===n?s=60*(2+(r-e)/(o-i)):o===r&&(s=60*(4+(e-n)/(o-i)))),s<0&&(s+=360);const a=[s,0===o?0:(o-i)/o,o],u=Nh(a[1]),l=Nh(a[2]);return{h:Math.floor(a[0]),s:u,v:l,a:t.a}}function Ih(t){const e=Fh(Th(t));const n=function(t){const{h:e,s:n,v:r,a:o}=t,i=r-r*n/2,s=1===i||0===i?0:(r-i)/Math.min(i,1-i);return{h:e,s:Nh(s),l:Nh(i),a:o}}(e),r=Th(t);return{alpha:e.a,hex:t.substr(0,7),hexa:t,hsla:n,hsva:e,hue:e.h,rgba:r}}function $h(t,e,n="0"){return t+n.repeat(Math.max(0,e-t.length))}function Bh(t){return Ih(function(t){let e=t;return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),3!==e.length&&4!==e.length||(e=e.split("").map((t=>t+t)).join("")),e=6===e.length?$h(e,8,"F"):$h($h(e,6),8,"F"),`#${e}`.toUpperCase().substr(0,9)}(t))}const Rh=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}),Lh="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",Ph=`[\\s|\\(]+(${Lh})[,|\\s]+(${Lh})[,|\\s]+(${Lh})\\s*\\)?`,jh=`[\\s|\\(]+(${Lh})[,|\\s]+(${Lh})[,|\\s]+(${Lh})[,|\\s]+(${Lh})\\s*\\)?`,zh=Object.freeze({CSS_UNIT:new RegExp(Lh),RGB:new RegExp(`rgb${Ph}`),RGBA:new RegExp(`rgba${jh}`),HSL:new RegExp(`hsl${Ph}`),HSLA:new RegExp(`hsla${jh}`),HSV:new RegExp(`hsv${Ph}`),HSVA:new RegExp(`hsva${jh}`),HEX3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HEX6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,HEX4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HEX8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}),Vh=Object.freeze({WINDOW:Symbol("window")});Vh.WINDOW;Vh.WINDOW,Vh.WINDOW,Sh(((t,e)=>{t(e)}),20);const Hh=class{static create(t){if(!t)return Hh.fromBlack();let e=t.replace(/^\s+/,"").replace(/\s+$/,"").toLowerCase();if(Rh[e])e=Rh[e];else if(e===this.TRANSPARENT)return Hh.fromTransparent();const n=zh.RGB.exec(e)||zh.RGBA.exec(e);if(n){const t=void 0===n[4]?1:n[4];return Hh.fromRgba({r:Number.parseInt(n[1]),g:Number.parseInt(n[2]),b:Number.parseInt(n[3]),a:Number.parseFloat(t)})}const r=zh.HSL.exec(e)||zh.HSLA.exec(e);if(r){const t=void 0===r[4]?1:r[4];return Hh.fromHsla({h:Number.parseInt(r[1]),s:Number.parseFloat(r[2]),l:Number.parseFloat(r[3]),a:Number.parseFloat(t)})}const o=zh.HSV.exec(e)||zh.HSVA.exec(e);if(o){const t=void 0===o[4]?1:o[4];return Hh.fromHsva({h:Number.parseInt(o[1]),s:Number.parseFloat(o[2]),v:Number.parseFloat(o[3]),a:Number.parseFloat(t)})}return zh.HEX8.exec(e)||zh.HEX6.exec(e)||zh.HEX4.exec(e)||zh.HEX3.exec(e)?Hh.fromHex(e):Hh.fromBlack()}static fromHex(t){const{rgba:e}=Bh(t);return new Hh(e)}static fromRgba({r:t,g:e,b:n,a:r}){const o=Oh(r);return new Hh({r:t,g:e,b:n,a:o})}static fromHsla({h:t,s:e,l:n,a:r}){const o=Oh(e),i=Oh(n),s=Oh(r);return Hh.fromHsva(function(t){const{h:e,s:n,l:r,a:o}=t,i=r+n*Math.min(r,1-r);return{h:e,s:Nh(0===i?0:2-2*r/i),v:Nh(i),a:o}}({h:t,s:o,l:i,a:s}))}static fromHsva({h:t,s:e,v:n,a:r}){const o=Mh({h:t,s:Oh(e),v:Oh(n),a:Oh(r)});return new Hh(o)}static fromTransparent(){return new Hh({r:0,g:0,b:0,a:0})}static fromWhite(){return new Hh({r:255,g:255,b:255,a:1})}static fromBlack(){return new Hh({r:0,g:0,b:0,a:1})}static isTransparent(t){return Hh.create(t).isTransparent()}static isDark(t){return Hh.create(t).isDark()}constructor(t){this._rgba=t,this._hsva=this._calcHsva(),this._alpha=t.a}get hex(){return this.toHexString()}get r(){return this._rgba.r}get b(){return this._rgba.b}get g(){return this._rgba.g}get h(){return this._hsva.h}get s(){return this._hsva.s}get v(){return this._hsva.v}get alpha(){return this._alpha}setAlpha(t){return this._alpha=t,this}toHexString(){return function(t){const e=t=>{const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()};return`#${[e(t.r),e(t.g),e(t.b)].join("")}`}({r:this.r,g:this.g,b:this.b,a:this.alpha})}toRgbaString(){const t=`${Math.floor(100*this.alpha)}%`;return`rgba(${[this.r,this.g,this.b,t].join(", ")})`}get rgba(){return this._rgba}updateRgb(t){this._rgba={...this._rgba,...t},this._hsva=this._calcHsva()}get hsva(){return this._hsva}updateHsv(t){this._hsva={...this._hsva,...t},this._rgba=this._calcRgba()}isTransparent(){return 0===this.alpha}isDark(){return this.getBrightness()<128}getBrightness(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3}_calcHsva(){return Fh(this.rgba)}_calcRgba(){return Mh(this.hsva)}};let Wh=Hh;function qh(t){const e=Wh.create(t);return 1===e.alpha?e.toHexString():e.toRgbaString()}function Uh(t,e){if(!t.includes("em"))return parseInt(t);const n=$m.getComputedStyle(e).fontSize,r=parseFloat(t)*parseFloat(n);return Math.round(r)}function Kh(t,e,n){if(!t.includes("px"))return t;const r=function(t,e){return(t.firstElementChild||t).style.fontSize||$m.getComputedStyle(e).fontSize}(e,n),o=Uh(r,n);return o?(parseInt(t)/o).toFixed(2):null}Ah(Wh,"TRANSPARENT","transparent"),Ah(Wh,"NONE","none");const Jh={start:Vd.LEFT,end:Vd.RIGHT};const Gh=(t,e,n,r)=>({from:Math.max(r,t.pos),to:Math.min(r+n.nodeSize,e.pos)});function Yh(t,e){return t.resolve(e).depth+1}const Xh=(t,e)=>t.eq(e);function Zh(t){return t.type.create(vd.cloneDeep(t.attrs))}const Qh=jp.create({name:"node_processor",addCommands:()=>({setBlockAttributes:wh((({commands:t,state:e},n,r,o={})=>{const i=Le(t.getBlockAttributes(n))??{},{doc:s,tr:a}=e,{from:u,to:l}=a.selection;s.nodesBetween(u,l,((t,e)=>{Hd.blocks.includes(t.type.name)&&a.setNodeAttribute(e,n,{...o,...i,...r})}))})),getBlockAttributes:wh((({editor:t},e,n)=>ze((()=>{let r=Object.assign({},n||{});for(const n of Hd.blocks)Object.assign(r,t.getAttributes(n)?.[e]||{});return Object.keys(r).length?r:null})))),removeBlockAttributes:wh((({commands:t},e)=>{for(const n of Hd.blocks)t.resetAttributes(n,e)})),applyMark:wh((({state:t,commands:e},n,r,o={})=>{const{tr:i,doc:s,schema:a}=t,{$from:u,$to:l}=i.selection,c=qp(qd.LINK,a),p=qp(n,a);if(!(p.spec.group||"").includes(Ud.SETTINGS))return e.setMark(n,r);if(u.pos===l.pos)return;s.nodesBetween(u.pos,l.pos,((t,s)=>{if(t.type.name===Hd.LIST)return;const a=function(t,e){const n="string"==typeof e?e:e.name;return t.find((t=>t.type.name===n))}(t.marks,n),d=p.create({...a?.attrs||{},...r}),f=Gh(u,l,t,s),h=!c.isInSet(t.marks)&&function(t,e,n,r=Xh){const o=t.resolve(e).path.reverse();for(const t of o)if("number"!=typeof t)for(const e of t.marks)if(r(e,n))return!0;return!1}(i.doc,s,d,o.isAppliedToParent);if(h)return(t=>{if(!o.onAppliedToParent||!1===o.onAppliedToParent(t)){const{tr:n,node:r,position:o,mark:i}=t;e._removeNodeMark({tr:n,node:r,position:o,mark:i.type})}})({tr:i,node:t,position:s,mark:d});t.isText?i.addMark(f.from,f.to,d):function(t,e,n,r){const o=Yh(t,r),i=e.from-o<=r,s=e.to+o>=n.nodeSize+r;return i&&s}(i.doc,i.selection,t,s)&&i.addNodeMark(s,d)}))})),getMarks:wh((({editor:t},e)=>{const n=je(t,"state");return ze((()=>{const{selection:t,doc:r}=Le(n),{from:o,to:i}=Le(t),s=[];return r.nodesBetween(o,i,(t=>{for(const n of t.marks)n.type.name===e&&s.unshift(n.attrs)})),s}))})),getMark:wh((({commands:t},e)=>{const n=t.getMarks(e);return ze((()=>Le(n)[0]??null))})),hasMark:wh((({commands:t},e)=>{const n=t.getMark(e);return ze((()=>!!Le(n)))})),getCommonSettingMark:wh((({commands:t},e,n)=>{const r=t.getMark(e);return ze((()=>Le(r)?.value??Le(n)))})),getDeviceSettingMark:wh((({commands:t},e,n)=>{const r=t.getMarks(e),o=t.getDevice();return ze((()=>{for(const t of Le(r)){const e=t[Le(o)];if(e)return e}return Le(n)}))})),removeAllMarks:wh((({state:t,commands:e})=>{const{tr:n,doc:r}=t,{from:o,to:i}=n.selection;r.nodesBetween(o,i,((t,r)=>{for(const o of t.marks)e._removeNodeMark({tr:n,node:t,position:r,mark:o})}))})),removeMarks:wh((({state:t,commands:e},n)=>{const{tr:r,doc:o}=t,{from:i,to:s}=r.selection;o.nodesBetween(i,s,((t,o)=>{const i=t.marks.filter((t=>n.includes(t.type.name)));for(const n of i)e._removeNodeMark({tr:r,node:t,position:o,mark:n})}))})),_removeNodeMark:wh(((t,{tr:e,node:n,position:r,mark:o})=>n.isText?e.removeMark(r,r+n.nodeSize,o):e.removeNodeMark(r,o)))})}),tm=jp.create({name:"text_processor",addCommands:()=>({getSelectedText:wh((({state:t})=>{const{from:e,to:n}=t.selection;return t.doc.textBetween(e,n," ")})),transformText:wh((({state:t},e)=>{const{$from:n,$to:r}=t.tr.selection;n.pos!==r.pos&&t.doc.nodesBetween(n.pos,r.pos,((o,i)=>{if(!o.isText)return;const s=Gh(n,r,o,i),a=Math.max(0,n.pos-i),u=Math.max(0,r.pos-i),l=e({text:o.textContent.substring(a,u)}),c=t.schema.text(l,o.marks);t.tr.replaceWith(s.from,s.to,c)}))}))})}),em=jp.create({name:"selection_processor",addStorage:()=>({selection:null}),addCommands(){return{storeSelection:wh((({state:t})=>{this.storage.selection=t.selection})),restoreSelection:wh((({commands:t})=>{this.storage.selection&&t.setTextSelection(this.storage.selection)})),expandSelection:wh((({tr:t,commands:e},n)=>{let r=t.selection.from,o=t.selection.to;t.doc.nodesBetween(r,o,((e,i,s)=>{if(n({node:e,parent:s})){const n=e.isText?0:Yh(t.doc,i);r=Math.min(r,i+n),o=Math.max(o,i+e.nodeSize-n)}})),e.setTextSelection({from:r,to:o})})),expandSelectionToBlock:wh((({commands:t})=>{t.expandSelection((({parent:t})=>t.type.name===Hd.DOCUMENT))}))}}}),nm=fd.create({name:"doc",topNode:!0,content:"block+"}).extend({marks:Ud.SETTINGS,onCreate(){this.editor.view.dom.addEventListener("click",(t=>{t.target.closest("a")&&t.preventDefault()}))}}),rm=fd.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",wp(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),om=rm.extend({marks:Ud.ALL,addOptions:()=>({HTMLAttributes:{class:"zw-style"}})}),im=fd.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,wp(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>function(t){return new Tp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=Ep(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}}),sm=im.extend({marks:Ud.ALL,addOptions:()=>({levels:[1,2,3,4],HTMLAttributes:{class:"zw-style"}})}),am=jp.create({name:"prose_mirror_plugins",addProseMirrorPlugins(){return[Yd.create(this.editor),Xd.create(this.editor)]}}),um=dd.create({name:qd.FONT_FAMILY,group:Ud.SETTINGS,addOptions:()=>({fonts:[]}),addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontFamily:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e});const n=t.findFontByName(e);let r=Le(t.getFontWeight());n.isWeightSupported(r)||(r=n.findClosestWeight(r),t.applyFontWeight(r)),n.isItalicSupported(r)||t.removeItalic()})),getFont:wh((({commands:t})=>{const e=Le(this.options.defaultPreset),n=t.findFontByName(e.common.font_family),r=t.getFontFamily();return ze((()=>t.findFontByName(Le(r))||n))})),findFontByName:wh(((t,e)=>this.options.fonts.find((t=>t.name===e)))),getFontFamily:wh((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontFamily()))),getDefaultFontFamily:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>Le(e).common.font_family))}))}},parseHTML(){const t=t=>({value:t.replace(/["']/g,"")});return[{style:"--zw-font-family",getAttrs:t},{style:"font-family",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({font_family:t.value?`"${t.value}"`:null})}),lm=jp.create({name:qd.STYLE_PRESET,addGlobalAttributes(){return[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{preset:{isRequired:!1,default:{id:this.options.defaultId},parseHTML:t=>{const e=Le(this.options.presets);if("LI"===t.parentElement.tagName)return null;for(const{id:n,node:r,fallbackClass:o}of e){if(o&&t.classList.contains(o))return{id:n};const e=this.options.styleRenderer.makePresetCssClass({id:n});if(t.matches(e))return{id:n};if(t.tagName===`H${r?.level}`)return{id:n}}return"P"===t.tagName?{id:this.options.defaultId}:null},renderHTML:t=>t.preset?{class:this.options.styleRenderer.makePresetHtmlClass(t.preset)}:null}}}]},addCommands(){function t(t,e){return t.find((t=>e===t.id))}function e(t,e){const n={};for(const r of Object.keys(t)){const o=t[r],i=e[r],s=!i||"inherit"===i.toLowerCase();n[r]=s?o:i}return n}return{getPresetList:wh((()=>ze((()=>this.options.presets.filter((t=>!t.hidden)))))),getPreset:wh((({commands:n})=>{const r=n.getBlockAttributes("preset",{id:this.options.defaultId}),o=n.getPresetList(),i=n.isLink(),s=n.getLinkPreset();return ze((()=>{const n=t(Le(o),Le(r).id);if(!Le(i))return n;const a=Le(s);return{id:n.id,common:e(n.common,a.common),mobile:e(n.mobile,a.mobile),tablet:e(n.tablet,a.tablet),desktop:e(n.desktop,a.desktop)}}))})),applyPreset:wh((({commands:e,chain:n},r)=>{const o=t(Le(e.getPresetList()),r),i=o.node?.type??Hd.PARAGRAPH,s={preset:{id:r}};o.node&&(s.level=o.node.level);for(const t of qd.attributes)s[t]=Le(e.getBlockAttributes(t));n().removeList().setNode(i,s).run()})),applyDefaultPreset:wh((({commands:t})=>{t.applyPreset(this.options.defaultId)})),removePreset:wh((({commands:t})=>{t.setNode(Hd.PARAGRAPH,{preset:null})})),getPresetCustomization:wh((({editor:t,commands:e})=>{const n=je(t,"state");return ze((()=>{const{selection:t,doc:r}=Le(n),{from:o,to:i}=t;return e._getSettingCustomization(r,o,i)}))})),isSettingCustomized:wh((({commands:t},e)=>{const n=t.getPresetCustomization(),r=qd.presetAttributes.includes(e)?"attributes":"marks";return ze((()=>Le(n)[r]?.includes(e)??!1))})),getContentCustomization:wh((({editor:t,commands:e})=>{const n=je(t,"state");return ze((()=>{const{doc:t}=Le(n);return e._getSettingCustomization(t,0,t.content.size)}))})),_getSettingCustomization:wh(((t,e,n,r)=>{const o=new Set,i=new Set;return e.nodesBetween(n,r,(t=>{for(const[e,n]of Object.entries(t.attrs)){qd.presetAttributes.includes(e)&&n&&i.add(e)}for(const{type:e}of t.marks)qd.marks.includes(e.name)&&o.add(e.name)})),{attributes:Array.from(i),marks:Array.from(o)}})),removePresetCustomization:wh((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeMarks(qd.marks).resetAttributes(Hd.PARAGRAPH,qd.presetAttributes).resetAttributes(Hd.HEADING,qd.presetAttributes).restoreSelection().run()})),removeFormat:wh((({chain:t})=>{t().storeSelection().expandSelectionToBlock().removeAllMarks().applyDefaultPreset().restoreSelection().run()}))}},onCreate(){this.options.styleRenderer.inject($m.head,this.options.presets)}}),cm=dd.create({name:qd.FONT_WEIGHT,group:Ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{applyFontWeight:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e});Le(t.getFont()).isItalicSupported(e)||t.removeItalic()})),toggleBold:wh((({commands:t})=>{const e=Le(t.getFontWeight()),n=Le(t.getFont()),r=Number(e)>=600?"400":"700",o=n.findClosestWeight(r);t.applyFontWeight(o)})),getFontWeight:wh((({commands:t})=>{const e=t.getCommonSettingMark(this.name,t.getDefaultFontWeight()),n=t.getFont();return ze((()=>{const t=Le(e),r=Le(n);return r.isWeightSupported(t)?t:r.findClosestWeight(t)}))})),getDefaultFontWeight:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>Le(e).common.font_weight))}))}},addKeyboardShortcuts:()=>({"Mod-b":Ch("toggleBold"),"Mod-B":Ch("toggleBold")}),parseHTML(){const t=t=>"bold"===t?{value:"700"}:!!Number(t)&&{value:t};return[{style:"--zw-font-weight",getAttrs:t},{style:"font-weight",getAttrs:t},{tag:"b",attrs:{value:"700"}},{tag:"strong",attrs:{value:"700"}}]},renderHTML:({HTMLAttributes:t})=>Eh({font_weight:t.value})}),pm=dd.create({name:qd.FONT_SIZE,group:Ud.SETTINGS,addOptions:()=>({minSize:1,maxSize:100}),addAttributes:()=>({mobile:{default:null},tablet:{default:null},desktop:{default:null}}),addCommands(){return{getFontSize:wh((({commands:t})=>t.getDeviceSettingMark(this.name,t.getDefaultFontSize()))),getDefaultFontSize:wh((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return ze((()=>Le(n)[Le(e)].font_size.replace("px","")))})),applyFontSize:wh((({commands:t},e)=>{const n=Le(t.getDevice());t.applyMark(this.name,{[n]:e},{isAppliedToParent:(t,e)=>t.type.name===e.type.name&&t.attrs[n]===e.attrs[n],onAppliedToParent:({tr:t,node:e,position:r,mark:o})=>{const i={...o.attrs,[n]:null},s=!Object.values(i).some((t=>!!t));if(s)return!1;const a=o.type.create(i);e.isText?t.addMark(r,r+e.nodeSize,a):t.addNodeMark(r,a)}})})),increaseFontSize:wh((({commands:t})=>{const e=Number(Le(t.getFontSize())),n=Math.min(e+1,this.options.maxSize);t.applyFontSize(String(n))})),decreaseFontSize:wh((({commands:t})=>{const e=Number(Le(t.getFontSize())),n=Math.max(e-1,this.options.minSize);t.applyFontSize(String(n))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-=":Ch("increaseFontSize"),"Mod-Shift--":Ch("decreaseFontSize")}),parseHTML(){const t=t=>{if(!t)return null;const e=Uh(t,Le(this.options.wrapperRef));return String(e)};return[{tag:'[style*="--zw-font-size"]',getAttrs:({style:e})=>({mobile:t(e.getPropertyValue("--zw-font-size-mobile")),tablet:t(e.getPropertyValue("--zw-font-size-tablet")),desktop:t(e.getPropertyValue("--zw-font-size-desktop"))})},{style:"font-size",getAttrs:e=>{const n=t(e);return{desktop:n,tablet:n,mobile:null}}}]},renderHTML({HTMLAttributes:t}){const e=t=>t?`${t}px`:null;return Eh({font_size_mobile:e(t.mobile),font_size_tablet:e(t.tablet),font_size_desktop:e(t.desktop)})}}),dm=dd.create({name:qd.FONT_COLOR,group:Ud.SETTINGS,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getFontColor:wh((({commands:t})=>t.getCommonSettingMark(this.name,t.getDefaultFontColor()))),getDefaultFontColor:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>Le(e).common.color))})),applyFontColor:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:qh(t)});return[{style:"--zw-font-color",getAttrs:t},{style:"color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({font_color:t.value})}),fm=dd.create({name:qd.BACKGROUND_COLOR,addAttributes:()=>({value:{required:!0}}),addCommands(){return{getBackgroundColor:wh((({commands:t})=>t.getCommonSettingMark(this.name,"rgba(255, 255, 255, 0%)"))),applyBackgroundColor:wh((({commands:t},e)=>{t.applyMark(this.name,{value:e})}))}},parseHTML(){const t=t=>({value:qh(t)});return[{style:"--zw-background-color",getAttrs:t},{style:"background-color",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({background_color:t.value})}),hm=jp.create({name:"device_manager",addCommands(){return{getDevice:wh((()=>je(this.options,"device")))}}}),mm=dd.create({name:qd.FONT_STYLE,group:Ud.SETTINGS,addAttributes:()=>({italic:{required:!0}}),addCommands(){return{isItalic:wh((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultFontStyle();return ze((()=>Le(e)?.italic??Le(n).italic))})),isItalicAvailable:wh((({commands:t})=>{const e=t.getFont(),n=t.getFontWeight();return ze((()=>{const t=Le(e),r=Le(n);return t.isItalicSupported(r)&&!t.isWeightItalicOnly(r)}))})),getDefaultFontStyle:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>({italic:"italic"===Le(e).common.font_style})))})),toggleItalic:wh((({commands:t})=>{Le(t.isItalicAvailable())&&(Le(t.isItalic())?t.removeItalic():t.applyItalic())})),applyItalic:wh((({commands:t})=>{t.applyMark(this.name,{italic:!0})})),removeItalic:wh((({commands:t})=>{t.applyMark(this.name,{italic:!1})}))}},addKeyboardShortcuts:()=>({"Mod-i":Ch("toggleItalic"),"Mod-I":Ch("toggleItalic")}),parseHTML(){const t=t=>({italic:t.includes("italic")});return[{tag:"i",attrs:{italic:!0}},{style:"--zw-font-style",getAttrs:t},{style:"font-style",getAttrs:t}]},renderHTML:({HTMLAttributes:t})=>Eh({font_style:t.italic?"italic":"normal"})}),gm=dd.create({name:qd.TEXT_DECORATION,priority:1e3,addAttributes:()=>({underline:{default:!1},strike_through:{default:!1}}),addCommands(){return{isUnderline:wh((({commands:t})=>{const e=t.getTextDecoration();return ze((()=>Le(e).underline))})),isStrikeThrough:wh((({commands:t})=>{const e=t.getTextDecoration();return ze((()=>Le(e).strike_through))})),getTextDecoration:wh((({commands:t})=>{const e=t.getMark(this.name),n=t.getDefaultTextDecoration();return ze((()=>{const t=Le(e)??{},r=Le(n);return{underline:t.underline||r.underline,strike_through:t.strike_through||r.strike_through}}))})),isUnderlineCustomized:wh((({commands:t})=>{const e=t.isUnderline(),n=t.getDefaultTextDecoration();return ze((()=>Le(e)!==Le(n).underline))})),getDefaultTextDecoration:wh((({commands:t})=>{const e=t.getPreset();return ze((()=>{const{text_decoration:t}=Le(e).common;return{underline:t.includes("underline"),strike_through:t.includes("line-through")}}))})),toggleUnderline:wh((({commands:t})=>{t.toggleTextDecoration("underline")})),toggleStrikeThrough:wh((({commands:t})=>{t.toggleTextDecoration("strike_through")})),toggleTextDecoration:wh((({commands:t},e,n=null)=>{const r=Le(t.getTextDecoration()),o=n??!r[e];t.applyMark(this.name,{[e]:o})})),applyTextDecoration:wh((({commands:t},e)=>{t.toggleTextDecoration(e,!0)})),removeTextDecoration:wh((({commands:t},e)=>{t.toggleTextDecoration(e,!1)}))}},addKeyboardShortcuts:()=>({"Mod-u":Ch("toggleUnderline"),"Mod-U":Ch("toggleUnderline")}),parseHTML(){const t=t=>{const e=t.includes("underline"),n=t.includes("line-through");return!(!e&&!n)&&{underline:e,strike_through:n}};return[{style:"--zw-text-decoration",getAttrs:t},{style:"text-decoration-line",getAttrs:t},{style:"text-decoration",getAttrs:t},{tag:"s",attrs:{underline:!1,strike_through:!0}},{tag:"u",attrs:{underline:!0,strike_through:!1}}]},renderHTML({HTMLAttributes:t}){const e=[];return t.underline&&e.push("underline"),t.strike_through&&e.push("line-through"),e.length||e.push("none"),Eh({text_decoration:e.join(" ")})}}),vm=jp.create({name:"case_style",addCommands:()=>({applyCaseStyle:wh((({commands:t},e)=>{switch(e){case zd.CAPITALIZE:return t.applyCapitalize();case zd.LOWERCASE:return t.applyLowerCase();case zd.UPPERCASE:return t.applyUpperCase()}})),applyCapitalize:wh((({commands:t})=>{t.transformText((({text:t})=>function(t){return t.toLowerCase().replace(/(?:^|\s)\S/g,(t=>t.toUpperCase()))}(t)))})),applyLowerCase:wh((({commands:t})=>{t.transformText((({text:t})=>t.toLowerCase()))})),applyUpperCase:wh((({commands:t})=>{t.transformText((({text:t})=>t.toUpperCase()))}))})}),ym={mobile:null,tablet:null,desktop:null},bm=jp.create({name:qd.ALIGNMENT,addGlobalAttributes:()=>[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{[qd.ALIGNMENT]:{isRequired:!1,parseHTML({style:t}){const e=function(t){const e=Jh[t]||t;return Vd.values.includes(e)?e:null}(t.textAlign);if(e)return{desktop:e,tablet:e,mobile:e};const n=t.getPropertyValue("--zw-alignment-mobile")||null,r=t.getPropertyValue("--zw-alignment-tablet")||null,o=t.getPropertyValue("--zw-alignment-desktop")||null;return n||r||o?{desktop:o,tablet:r,mobile:n}:null},renderHTML:t=>t.alignment?kh({alignment_mobile:t.alignment.mobile,alignment_tablet:t.alignment.tablet,alignment_desktop:t.alignment.desktop}):null}}}],addCommands(){return{toggleAlignment:wh((({commands:t},e)=>{t.applyAlignment(e)})),applyAlignment:wh((({commands:t},e)=>{const n=Le(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},ym)})),removeAlignment:wh((({commands:t})=>t.removeBlockAttributes(this.name))),getAlignment:wh((({commands:t})=>{const e=t.getBlockAttributes(this.name,ym),n=t.getDevice(),r=t.getDefaultAlignment();return ze((()=>Le(e)?.[Le(n)]??Le(r)))})),getDefaultAlignment:wh((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return ze((()=>Le(n)[Le(e)].alignment))}))}},addKeyboardShortcuts:()=>({"Mod-Shift-l":Ch("applyAlignment",Vd.LEFT),"Mod-Shift-e":Ch("applyAlignment",Vd.CENTER),"Mod-Shift-r":Ch("applyAlignment",Vd.RIGHT),"Mod-Shift-j":Ch("applyAlignment",Vd.JUSTIFY)})}),_m={mobile:null,tablet:null,desktop:null},Dm=jp.create({name:qd.LINE_HEIGHT,addGlobalAttributes(){return[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{[qd.LINE_HEIGHT]:{isRequired:!1,parseHTML:t=>{if(t.matches('[style*="--zw-line-height"]')){return{mobile:null,tablet:t.style.getPropertyValue("--zw-line-height-tablet")||null,desktop:t.style.getPropertyValue("--zw-line-height-desktop")||null}}const e=t.style.lineHeight;if(!e)return null;const n=Kh(e,t,Le(this.options.wrapperRef));return n?{desktop:n,tablet:n,mobile:null}:null},renderHTML:t=>t.line_height?kh({line_height_mobile:t.line_height.mobile,line_height_tablet:t.line_height.tablet,line_height_desktop:t.line_height.desktop}):null}}}]},addCommands(){return{getLineHeight:wh((({commands:t})=>{const e=t.getBlockAttributes(this.name,_m),n=t.getDevice(),r=t.getDefaultLineHeight();return ze((()=>Le(e)?.[Le(n)]??Le(r)))})),getDefaultLineHeight:wh((({commands:t})=>{const e=t.getDevice(),n=t.getPreset();return ze((()=>Le(n)[Le(e)].line_height))})),applyLineHeight:wh((({commands:t},e)=>{const n=Le(t.getDevice());t.setBlockAttributes(this.name,{[n]:e},_m)}))}}}),wm=fd.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",wp(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}).extend({name:Hd.LIST_ITEM,marks:Ud.SETTINGS,addCommands(){const t=({selection:t})=>t.$cursor.before(t.$cursor.depth-1);return{listItemNewline:wh((({commands:e,tr:n})=>{const r=n.doc.nodeAt(t(n));if(!n.selection.$cursor.node().textContent)return!1;e.splitListItem(this.name);const o=t(n);for(const t of r.marks)n.addNodeMark(o,Zh(t));return!0}))}},addOptions:()=>({HTMLAttributes:{class:"zw-style"}}),addKeyboardShortcuts:()=>({Enter:t=>{const{state:e,commands:n}=t.editor,r=e.selection.$cursor?.path.some((t=>t.type?.name===Hd.LIST));if(r)return n.listItemNewline()}})}),km=fd.create({name:Hd.LIST,content:`${Hd.LIST_ITEM}+`,group:"block list",marks:Ud.SETTINGS,addExtensions:()=>[wm],addOptions:()=>({baseClass:"",presetClass:""}),addAttributes:()=>({bullet:{default:{type:Wd.DISC}}}),parseHTML(){const t={a:Wd.ROMAN,i:Wd.LATIN,1:Wd.DECIMAL},e=e=>{for(const n of Wd.values){const r=`.${this.options.baseClass}${n}`;if(e.matches(r))return n;if(t[e.type.toLowerCase()]===n)return n}};return[{tag:"ol",getAttrs:t=>({bullet:{type:e(t)||Wd.DECIMAL}})},{tag:"ul",getAttrs:t=>({bullet:{type:e(t)||Wd.DISC}})}]},renderHTML({HTMLAttributes:t}){const e=[this.options.baseClass+t.bullet.type,this.options.presetClass];return[Wd.ordered.includes(t.bullet.type)?"ol":"ul",{class:e.join(" ")},0]},addCommands:()=>({getListType:wh((({commands:t})=>{const e=t.getBlockAttributes("bullet",{type:null});return ze((()=>Le(e).type??null))})),applyList:wh((({commands:t,chain:e},n)=>{if(Le(t.getListType())!==n)return e().applyDefaultPreset().toggleList(Hd.LIST,Hd.LIST_ITEM).setBlockAttributes("bullet",{type:n}).command((({commands:t,tr:e})=>t._bubbleListItemMarks(e))).run();t.removeList()})),_bubbleListItemMarks:wh(((t,e)=>{const{doc:n,selection:r}=e,o=r.$from.start(),i=r.$to.end();function s(t,e){if(qd.inlineMarks.includes(e.type))return!1;if(e.type.isInSet(t.marks))return!1;for(const n of t.content.content)if(n.childCount){if(!n.marks)return!1;if(!e.isInSet(n.marks))return!1}return!0}n.nodesBetween(o,i,((t,n)=>{if(t.type.name===Hd.LIST)return;if(t.type.name!==Hd.LIST_ITEM)return!1;const r=[];return t.forEach((o=>{for(const i of o.marks)i.isInSet(r)?e.removeNodeMark(n+1,i):s(t,i)&&(e.removeNodeMark(n+1,i),e.addNodeMark(n,Zh(i)),r.push(i))})),!1}))})),removeList:wh((({commands:t,state:e})=>{const{tr:n,doc:r,selection:o}=e,i=o.$from.start(),s=o.$to.end();r.nodesBetween(i,s,((t,e,r)=>{if([Hd.LIST,Hd.LIST_ITEM].includes(t.type.name))return;if(r.type.name!==Hd.LIST_ITEM)return!1;const o=r.marks.filter((function(e){return!e.type.isInSet(t.marks)}));for(const t of o)n.addNodeMark(e,Zh(t));return!1})),t.liftListItem(Hd.LIST_ITEM)}))}),addInputRules(){const t=(t,e)=>function(t){return new Tp({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Ep(t.getAttributes,void 0,r)||{},i=e.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),a=s&&yu(s,t.type,o);if(!a)return null;i.wrap(s,a);const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Du(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&i.join(n.from-1)}})}({find:e,type:this.type,getAttributes:{bullet:{type:t}},joinPredicate:(e,{attrs:n})=>n.bullet.type===t});return[t(Wd.DISC,/^\s*([-+*])\s$/),t(Wd.DECIMAL,/^(\d+)\.\s$/),t(Wd.LATIN,/^([ivx]{1,3})\.\s$/i),t(Wd.ROMAN,/^([a-z])\.\s$/i)]}});function Em(t){return new tl({key:new rl("autolink"),appendTransaction:(e,n,r)=>{const o=e.some((t=>t.docChanged))&&!n.doc.eq(r.doc),i=e.some((t=>t.getMeta("preventAutolink")));if(!o||i)return;const{tr:s}=r,a=function(t,e){const n=new Ru(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}(n.doc,[...e]),{mapping:u}=a,l=function(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach(((t,o)=>{const i=[];if(t.ranges.length)t.forEach(((t,e)=>{i.push({from:t,to:e})}));else{const{from:t,to:e}=n[o];if(void 0===t||void 0===e)return;i.push({from:t,to:e})}i.forEach((({from:t,to:n})=>{const i=e.slice(o).map(t,-1),s=e.slice(o).map(n),a=e.invert().map(i,-1),u=e.invert().map(s);r.push({oldRange:{from:a,to:u},newRange:{from:i,to:s}})}))})),od(r)}(a);return l.forEach((({oldRange:e,newRange:o})=>{id(e.from,e.to,n.doc).filter((e=>e.mark.type===t.type)).forEach((e=>{const o=id(u.map(e.from),u.map(e.to),r.doc).filter((e=>e.mark.type===t.type));if(!o.length)return;const i=o[0],a=n.doc.textBetween(e.from,e.to,void 0," "),l=r.doc.textBetween(i.from,i.to,void 0," "),c=_h(a),p=_h(l);c&&!p&&s.removeMark(i.from,i.to,t.type)}));const i=function(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&r.push({node:t,pos:e})})),r}(r.doc,o,(t=>t.isTextblock));let a,l;if(i.length>1?(a=i[0],l=r.doc.textBetween(a.pos,a.pos+a.node.nodeSize,void 0," ")):i.length&&r.doc.textBetween(o.from,o.to," "," ").endsWith(" ")&&(a=i[0],l=r.doc.textBetween(a.pos,o.to,void 0," ")),a&&l){const e=l.split(" ").filter((t=>""!==t));if(e.length<=0)return!1;const n=e[e.length-1],r=a.pos+l.lastIndexOf(n);if(!n)return!1;bh(n).filter((t=>t.isLink)).filter((e=>!t.validate||t.validate(e.value))).map((t=>({...t,from:r+t.start+1,to:r+t.end+1}))).forEach((e=>{s.addMark(e.from,e.to,t.type.create({href:e.href}))}))}})),s.steps.length?s:void 0}})}const Cm=dd.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(vh)},onDestroy(){gh.scanner=null,gh.parser=null,gh.pluginQueue=[],gh.customProtocols=[],gh.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){return["a",wp(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[hd({find:t=>bh(t).filter((t=>!this.options.validate||this.options.validate(t.value))).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:t=>{var e;return{href:null===(e=t.data)||void 0===e?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];var e;return this.options.autolink&&t.push(Em({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push((e={type:this.type},new tl({key:new rl("handleClickLink"),props:{handleClick:(t,n,r)=>{var o;const i=rd(t.state,e.type.name);return!(!(null===(o=r.target)||void 0===o?void 0:o.closest("a"))||!i.href||(window.open(i.href,i.target),0))}}}))),this.options.linkOnPaste&&t.push(function(t){return new tl({key:new rl("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach((t=>{a+=t.textContent}));const u=bh(a).find((t=>t.isLink&&t.value===a));return!(!a||!u||(t.editor.commands.setMark(t.type,{href:u.href}),0))}}})}({editor:this.editor,type:this.type})),t}}),xm=Cm.extend({name:qd.LINK,addOptions(){return{...this.parent?.(),openOnClick:!1,linkOnPaste:!1}},addAttributes(){return{href:{default:null,parseHTML:t=>{const e=t.getAttribute("href");return e.startsWith("#")?parseFloat(t.getAttribute("href").replace("#","")):e}},target:{default:Kd.SELF,parseHTML:t=>t.getAttribute("target")||Kd.SELF},destination:{default:Jd.URL,parseHTML:t=>{const e=t.getAttribute("href");if(!e.startsWith("#"))return Jd.URL;const n=e.replace("#","");return Le(this.options.pageBlocks).find((t=>t.id===parseInt(n)))?Jd.BLOCK:Jd.URL}}}},addCommands(){const{unsetLink:t}=this.parent();return{removeLink:t,applyLink:wh((({commands:t,chain:e},n)=>(t.setMeta("preventAutolink",!0),t.getSelectedText()?e().applyMark(this.name,n).expandSelectionToLink().command((({tr:t})=>(n.text&&t.insertText(n.text,t.selection.from,t.selection.to),!0))).run():t.insertContent(Rm.text(n.text,[Rm.mark(qd.LINK,n)]))))),expandSelectionToLink:wh((({commands:t})=>{t.expandSelection((({node:t})=>this.type.isInSet(t.marks)))})),isLink:wh((({commands:t})=>t.hasMark(this.name))),getLinkPreset:wh((()=>ze((()=>this.options.preset))))}},addProseMirrorPlugins(){return[...this.parent(),Dh.create(this.editor)]},renderHTML({HTMLAttributes:t}){const e=t.destination===Jd.BLOCK?`#${t.href}`:t.href,n=Le(this.options.basePresetClass)+Le(this.options.preset).id;return["a",{href:e,target:t.target,class:`${n} zw-style`},0]}}),Am=dd.create({name:qd.SUPERSCRIPT,addCommands(){return{applySuperscript:wh((({commands:t})=>{t.setMark(this.name)})),removeSuperscript:wh((({commands:t})=>{t.unsetMark(this.name)})),toggleSuperscript:wh((({commands:t})=>{Le(t.isSuperscript())?t.removeSuperscript():t.applySuperscript()})),isSuperscript:wh((({commands:t})=>{const e=t.getMark(this.name);return ze((()=>!!Le(e)))}))}},parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:t=>"super"===t&&null}],renderHTML:()=>["sup",{class:"zw-superscript"},0]}),Sm=jp.create({name:qd.MARGIN,addGlobalAttributes:()=>[{types:[Hd.PARAGRAPH,Hd.HEADING],attributes:{[qd.MARGIN]:{isRequired:!1,parseHTML(t){const{margin:e,marginTop:n,marginRight:r,marginBottom:o,marginLeft:i}=t.style;if(![e,n,r,o,i].some((t=>!!t)))return null;if(e)return{value:e};return{value:[n||0,r||0,o||0,i||0].join(" ")}},renderHTML:t=>t.margin?kh({margin:t.margin.value}):null}}}]});function Om(t){const e=e=>t.presetsRef.value.find((t=>t.id===e)),n=function(t){return Te(t,!1),t}({default:null,link:null});return Je(t.presetsRef,(()=>{n.default=e(t.defaultPresetId),n.link=e(t.linkPresetId)}),{immediate:!0}),[nm,om,sm,yd,Pd,Qh,tm,em,am].concat([lm.configure({presets:t.presetsRef,defaultId:t.defaultPresetId,styleRenderer:new Lm({baseClass:t.basePresetClass,makeVariable:t.makePresetVariable,linkPresetId:t.linkPresetId})}),km.configure({baseClass:t.baseListClass,presetClass:t.basePresetClass+t.defaultPresetId}),hm.configure({device:t.deviceRef}),pm.configure({minSize:t.minFontSize,maxSize:t.maxFontSize,wrapperRef:t.wrapperRef}),um.configure({fonts:t.fonts,defaultPreset:je(n,"default")}),cm,dm,fm,mm,gm,vm,Am,bm,Dm.configure({wrapperRef:t.wrapperRef}),xm.configure({preset:je(n,"link"),basePresetClass:t.basePresetClass,pageBlocks:t.pageBlocksRef}),Sm])}class Nm{_domParser=new DOMParser;types=window;parse(t){return this._domParser.parseFromString(t,"text/html")}}class Tm{content;constructor({content:t}){this.content=t}normalize(){throw new Error("Implement abstract method")}}class Mm extends Tm{static BLOCK_NODE_NAMES=["P","H1","H2","H3","H4"];static ROOT_NODE_NAMES=Mm.BLOCK_NODE_NAMES.concat("UL","OL");static BLOCK_STYLES=["text-align","line-height","margin","margin-top","margin-bottom","margin-left","margin-right"];_parser;constructor({content:t,parser:e}){super({content:t}),this._parser=e,this.dom=null}normalize(){return this.normalizeHTML(),this.normalizedHTML}normalizeHTML(){this.dom=this._parser.parse(this.content.replace(/(\r)?\n/g,"")),this._removeComments(),this._normalizeRootTags(),this._iterateNodes(this._normalizeBreakLines,(t=>"BR"===t.tagName)),this._iterateNodes(this._removeEmptyNodes,this._isBlockNode),this._iterateNodes(this._normalizeListItems,(t=>"LI"===t.tagName)),this._normalizeBlockTextDecoration(),this._normalizeBlockBackgroundColor()}get normalizedHTML(){return this.dom.body.innerHTML}get _NodeFilter(){return this._parser.types.NodeFilter}get _Node(){return this._parser.types.Node}_removeComments(){const t=this._createNodeIterator(this._NodeFilter.SHOW_COMMENT);this._runIterator(t,(t=>t.remove()))}_normalizeRootTags(){const t=Array.from(this.dom.body.childNodes),e=this.dom.createDocumentFragment();let n;for(const r of t)this._isRootNode(r)?(e.append(r),n=null):(n||(n=this.dom.createElement("p"),e.append(n)),n.append(r));this.dom.body.innerHTML="",this.dom.body.append(e)}_createNodeIterator(t,e){return this.dom.createNodeIterator(this.dom.body,t,e)}_iterateNodes(t,e=(()=>!0)){const n=t=>"BODY"!==t.tagName&&e.call(this,t),r=this._createNodeIterator(this._NodeFilter.SHOW_ELEMENT,{acceptNode:t=>n(t)?this._NodeFilter.FILTER_ACCEPT:this._NodeFilter.FILTER_REJECT});this._runIterator(r,t)}_runIterator(t,e){let n=t.nextNode();for(;n;)e.call(this,n),n=t.nextNode()}_removeEmptyNodes(t){t.innerHTML.trim()||t.remove()}_normalizeListItems(t){const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes);let r,o;const i=n=>{this._assignElementProperties(n,t,Mm.BLOCK_STYLES),e.append(n)};this._assignElementProperties(t,t.parentElement,Mm.BLOCK_STYLES);for(const t of n)if(this._isBlockNode(t))i(t),r=null,o=t;else if("BR"===t.tagName&&o&&"BR"!==o?.tagName)t.remove(),o=t;else if("BR"!==t.tagName)r||(r=this.dom.createElement("p"),i(r)),r.append(t),o=t;else{const e=this.dom.createElement("p");e.append(t),i(e),r=null,o=t}t.append(e),this._removeStyleProperties(t,Mm.BLOCK_STYLES)}_isBlockNode(t){return Mm.BLOCK_NODE_NAMES.includes(t.tagName)}_isRootNode(t){return Mm.ROOT_NODE_NAMES.includes(t.tagName)}_assignElementProperties(t,e,n){for(const r of n){const n=e.style.getPropertyValue(r);n&&!t.style.getPropertyValue(r)&&t.style.setProperty(r,n)}}_removeStyleProperties(t,e){for(const n of e)t.style.removeProperty(n);0===t.style.length&&t.removeAttribute("style")}_normalizeBreakLines({parentElement:t}){if(!this._isBlockNode(t))return;if(!t.textContent)return;const e=this.dom.createDocumentFragment(),n=Array.from(t.childNodes),r=t.cloneNode(!0);r.innerHTML="";let o=r.cloneNode();const i=n=>{this._assignElementProperties(n,t,Mm.BLOCK_STYLES),e.append(n)};for(const t of n)"BR"!==t.tagName?o.append(t):(i(o),o=r.cloneNode());e.append(o),t.replaceWith(e)}_normalizeBlockTextDecoration(){const t=this.dom.querySelectorAll('[style*="text-decoration"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this._moveTextDecorationToChildren(e)}_moveTextDecorationToChildren(t){const e=this._parseTextDecoration(t);if(t.style.removeProperty("text-decoration-line"),t.style.removeProperty("text-decoration"),t.style.cssText||t.removeAttribute("style"),!e.none)for(const n of t.childNodes){const r=this._wrapTextNode(t,n),o=this._parseTextDecoration(r),i={underline:o.underline||e.underline,line_through:o.line_through||e.line_through};r.style.removeProperty("text-decoration-line"),r.style.removeProperty("text-decoration"),r.style.textDecoration=Object.entries(i).filter((([,t])=>t)).map((([t])=>t.replace("_","-"))).join(" ")}}_parseTextDecoration(t){const{textDecoration:e,textDecorationLine:n}=t.style,r=e||n||"";return{none:r.includes("none"),underline:r.includes("underline"),line_through:r.includes("line-through")}}_normalizeBlockBackgroundColor(){const t=this.dom.querySelectorAll('[style*="background-color"]:where(p, h1, h2, h3, h4, li)');for(const e of t)this._moveBackgroundColorToChildren(e)}_moveBackgroundColorToChildren(t){const e=t.style.backgroundColor;t.style.removeProperty("background-color"),t.style.cssText||t.removeAttribute("style");for(const n of t.childNodes){const r=this._wrapTextNode(t,n),o=r.style.backgroundColor||e;r.style.backgroundColor=o}}_wrapTextNode(t,e){if(e.nodeType!==this._Node.TEXT_NODE)return e;const n=this.dom.createElement("span");return n.append(e.cloneNode()),t.replaceChild(n,e),n}}class Fm extends Tm{normalize(){return this._iterateNodes(this._bubbleMarks),this.content}_iterateNodes(t){this._iterateChildNodes(this.content,t)}_iterateChildNodes(t,e){for(const n of t.content)n.content&&this._iterateChildNodes(n,e),e.call(this,n)}_bubbleMarks(t){if(t.content&&t.type!==Hd.LIST)for(const e of t.content)if(!this._isLink(e)&&e.marks)for(const n of e.marks.slice())this._includesMark(t,n)?this._removeMark(e,n):this._canBubbleMark(t,n)&&(this._removeMark(e,n),this._addMark(t,n))}_canBubbleMark(t,e){if(qd.inlineMarks.includes(e.type))return!1;if(this._includesMarkType(t,e.type))return!1;for(const n of t.content)if(n.content||t.type!==Hd.LIST_ITEM){if(!n.marks)return!1;if(!this._includesMark(n,e))return!1}return!0}_includesMark(t,e){return t.marks?.some((t=>vd.isEqual(t,e)))??!1}_includesMarkType(t,e){return t.marks?.some((t=>t.type===e))??!1}_isLink(t){return t.type===Hd.TEXT&&this._includesMarkType(t,qd.LINK)}_removeMark(t,e){if(!t.marks)return;const n=this._findMarkIndexByType(t,e.type);n>=0&&t.marks.splice(n,1),t.marks.length||delete t.marks}_addMark(t,e){this._removeMark(t,e),t.marks??=[],t.marks.push(e)}_findMarkIndexByType(t,e){return t.marks?.findIndex((t=>t.type===e))??null}}class Im{static build(t,e={}){return"string"==typeof t?this._buildHtml(t,e):this._buildJson(t)}static _buildHtml(t,e){return new Mm({content:t,parser:e.parser||new Nm})}static _buildJson(t){return new Fm({content:t})}static normalize(t,e={}){return Im.build(t,e).normalize()}}class $m{static window=globalThis.window;static use(t){this.window=t}static get document(){return this.window.document}static get body(){return this.document.body}static get head(){return this.document.head}static getComputedStyle(t){return this.window.getComputedStyle(t)}}class Bm{static build({config:t,nodeDomParser:e}){const n=function(t){return Ap(Rp.resolve(t))}(Om({fonts:t.fonts,minFontSize:0,maxFontSize:0,presetsRef:Re(t.presets),defaultPresetId:t.defaultPresetId,linkPresetId:t.linkPresetId,makePresetVariable:()=>"",basePresetClass:t.basePresetClass,baseListClass:t.baseListClass,deviceRef:Re(jd.DESKTOP),pageBlocksRef:Re([]),wrapperRef:$m.document.createElement("p")}));return new Bm({schema:n,domParser:ja.fromSchema(n),nodeDomParser:e})}_schema;_domParser;_nodeDomParser;constructor({schema:t,domParser:e,nodeDomParser:n}){this._schema=t,this._domParser=e,this._nodeDomParser=n}toJSON(t){const e=Im.build(t,{parser:this._nodeDomParser});return e.normalizeHTML(),this._domParser.parse(e.dom.body).toJSON()}}class Rm{static doc(t){return{type:Hd.DOCUMENT,content:t}}static list(t,e){return{type:Hd.LIST,attrs:{bullet:{type:t}},content:e.map((t=>t.type===Hd.LIST_ITEM?t:this.listItem([].concat(t))))}}static listItem(...t){const{attrs:e,content:n,marks:r}=this._normalizeTextBlockArgs(t);return{type:Hd.LIST_ITEM,...e?{attrs:e}:{},...r?{marks:r}:{},content:[].concat(n).map((t=>"string"==typeof t?this.paragraph(t):t))}}static heading(t,...e){const n=this._textBlock(e,this.text);return n.attrs??={},n.attrs.level=t,{type:Hd.HEADING,...n}}static paragraph(...t){return{type:Hd.PARAGRAPH,...this._textBlock(t,this.text)}}static _textBlock(t){const{attrs:e,content:n,marks:r}=this._normalizeTextBlockArgs(t);return{content:"string"==typeof n?[this.text(n)]:n,...e?{attrs:e}:{},...r?{marks:r}:{}}}static _normalizeTextBlockArgs(t){return 1===t.length?{attrs:null,marks:null,content:t[0]}:2===t.length?{attrs:t[0],marks:null,content:t[1]}:{attrs:t[0],marks:t[1],content:t[2]}}static text(t,e){return{type:Hd.TEXT,...e?{marks:e}:{},text:t}}static link(t,e,n=[]){return this.text(t,[this.mark(qd.LINK,e),...n])}static mark(t,e){return{type:t,attrs:e}}static populateAllDevices(t){return{mobile:t,tablet:t,desktop:t}}}class Lm{_baseClass;_makeVariable;_linkPresetId;constructor({baseClass:t,makeVariable:e,linkPresetId:n}){this._baseClass=t,this._makeVariable=e,this._linkPresetId=n}inject(t,e){let n=t.querySelector("[data-zw-styles]");n||(n=$m.document.createElement("style"),n.dataset.zwStyles="",n.innerHTML=this.render(e),t.append(n))}render(t){let e="";for(const n of t){const t=n.id===this._linkPresetId;e+=` ${this.makePresetCssClass(n)} {`;for(const r of jd.values)for(const o of Object.keys(n[r])){const i=this._makeVariable({device:r,preset:n,property:o}),s=this._makeInternalVariableName(o,r);if(e+=`${s}: var(${i}, inherit);`,t&&!qd.attributes.includes(o)){e+=`${s.replace("preset-","")}: var(${s});`}}e+="}"}return e}_makeInternalVariableName(t,e){return`--zw-preset-${"color"===t?"font-color":t.replace(/_/i,"-")}${e===jd.COMMON?"":`-${e}`}`}makePresetHtmlClass(t){return this._baseClass+t.id}makePresetCssClass(t){return this.makePresetHtmlClass(t).split(" ").map((t=>`.${t}`)).join("")}}class Pm{static _instance;static get instance(){return this._instance??=new Pm,this._instance}static query(t,e){return this.instance.query(t,e)}query(t,e){let n=null;return t.descendants((t=>!n&&(this.matchNode(t,e)?(n=t,!1):void 0))),n?e.getMark?this.getMark(n,e.getMark):n:null}matchNode(t,e){return(!e.typeName||e.typeName===t.type.name)&&!(e.mark&&!this.getMark(t,e.mark))}getMark(t,e){return t.marks.find((t=>this.matchMark(t,e)))||null}matchMark(t,e){return t.type.name===e.typeName}}class jm{static createWindow(){return(new i.JSDOM).window}types;parse(t){const{window:e}=new i.JSDOM(t);return this.types=e,e.document}}class zm{name;description;argument;options=[];doCommand(){throw new Error('Command "doCommand" is required')}install(t){if(!this.name)throw new Error('Command "name" is required');let e=t.command(this.name);if(this.description&&(e=e.description(this.description)),this.argument&&(e=e.argument(this.argument)),this.options.length)for(const t of this.options)e=e.option(t.flags,t.description,t.default);e.action(this.doCommand.bind(this))}output(t){console.log(t)}}const Vm=new W,Hm=[class extends zm{name="to-json";description="migrate html to json";argument="<html...>";options=[{flags:"-c, --config <path>",description:"Generator config",default:n.resolve(__dirname,"../bin/zp.config.json")},{flags:"-f, --format <type>",description:"Set output format",default:"rb"}];doCommand(t,{config:e,format:r}){$m.use(jm.createWindow());const o=n.resolve(process.cwd(),e),i=Bm.build({config:require(o).editor,nodeDomParser:new jm}),s=t.map((t=>i.toJSON(this._formatInputHtml(t)))),a=1===s.length?s[0]:s,u=this._stringifyContent(a);this.output("rb"===r?this._formatOutputRb(u):u)}_formatInputHtml(t){return t.replace(/\\(["'])/g,"$1").replace(/rgba\(\d{1,3}, ?\d{1,3}, ?\d{1,3}, (\d{1,2}%)\)/g,((t,e)=>t.replace(e,parseFloat(e)/100)))}_stringifyContent(t){return JSON.stringify(t,((t,e)=>null===e?void 0:e),2)}_formatOutputRb(t){return t.replace(/\\"/g,'"').replace(/font-family: ?'(.+)'/g,'font-family: "$1"').replace(/'/g,"\\'").replace(/^[\t ]*"[^:\n\r]+(?<!\\)":/gm,(t=>t.replace(/"/g,""))).replace(/: "(.+)"([,\n])/g,": '$1'$2")}},class extends zm{name="version";description="display cli version";doCommand(){this.output("3.3.0-2")}}];for(const t of Hm)(new t).install(Vm);Vm.parse();
package/dist/wysiwyg.mjs CHANGED
@@ -25361,7 +25361,7 @@ const __vue2_script$d = {
25361
25361
  setup(_, { emit }) {
25362
25362
  const editor = inject(InjectionTokens$1.EDITOR);
25363
25363
  const alignment = editor.commands.getAlignment();
25364
- const currentValue = computed(() => unref(alignment) ?? "none");
25364
+ const currentValue = computed(() => unref(alignment) ?? "left");
25365
25365
  function toggle(value) {
25366
25366
  editor.chain().focus().toggleAlignment(value).run();
25367
25367
  emit("applied");
@@ -57,7 +57,7 @@ export default {
57
57
  setup(_, { emit }) {
58
58
  const editor = inject(InjectionTokens.EDITOR);
59
59
  const alignment = editor.commands.getAlignment();
60
- const currentValue = computed(() => unref(alignment) ?? 'none');
60
+ const currentValue = computed(() => unref(alignment) ?? 'left');
61
61
 
62
62
  function toggle(value) {
63
63
  editor.chain().focus().toggleAlignment(value).run();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "3.3.0-1",
3
+ "version": "3.3.0-2",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "bin": {