PageSourceSearch

https://app.fatfinger.io/scripts.9b3cc71ac8d122cc.js

js fatfinger.io collected 2026-10-01 14:41:06 UTC 250,356 bytes, 1 lines download raw bytes

vendor: 6,519 bytes, line 1
1!function(U,We){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=U.document?We(U,!0):function(he){if(!he.document)throw new Error("jQuery requires a window with a document");return We(he)}:We(U)}(typeof window<"u"?window:this,function(U,We){"use strict";var he=[],Ce=Object.getPrototypeOf,$e=he.slice,ce=he.flat?function(t){return he.flat.call(t)}:function(t){return he.concat.apply([],t)},x=he.push,ue=he.indexOf,rt={},Ge=rt.toString,Ie=rt.hasOwnProperty,Ht=Ie.toString,jt=Ht.call(Object),_={},G=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},bt=function(t){return null!=t&&t===t.window},O=U.document,En={type:!0,src:!0,nonce:!0,noModule:!0};function Q(t,o,l){var u,f,p=(l=l||O).createElement("script");if(p.text=t,o)for(u in En)(f=o[u]||o.getAttribute&&o.getAttribute(u))&&p.setAttribute(u,f);l.head.appendChild(p).parentNode.removeChild(p)}function at(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?rt[Ge.call(t)]||"object":typeof t}var Nn=/HTML$/i,d=function(t,o){return new d.fn.init(t,o)};function D(t){var o=!!t&&"length"in t&&t.length,l=at(t);return!G(t)&&!bt(t)&&("array"===l||0===o||"number"==typeof o&&0<o&&o-1 in t)}function ne(t,o){return t.nodeName&&t.nodeName.toLowerCase()===o.toLowerCase()}d.fn=d.prototype={jquery:"3.7.1",constructor:d,length:0,toArray:function(){return $e.call(this)},get:function(t){return null==t?$e.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var o=d.merge(this.constructor(),t);return o.prevObject=this,o},each:function(t){return d.each(this,t)},map:function(t){return this.pushStack(d.map(this,function(o,l){return t.call(o,l,o)}))},slice:function(){return this.pushStack($e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(t,o){return(o+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(t,o){return o%2}))},eq:function(t){var o=this.length,l=+t+(t<0?o:0);return this.pushStack(0<=l&&l<o?[this[l]]:[])},end:function(){return this.prevObject||this.constructor()},push:x,sort:he.sort,splice:he.splice},d.extend=d.fn.extend=function(){var t,o,l,u,f,p,v=arguments[0]||{},C=1,k=arguments.length,n=!1;for("boolean"==typeof v&&(n=v,v=arguments[C]||{},C++),"object"==typeof v||G(v)||(v={}),C===k&&(v=this,C--);C<k;C++)if(null!=(t=arguments[C]))for(o in t)u=t[o],"__proto__"!==o&&v!==u&&(n&&u&&(d.isPlainObject(u)||(f=Array.isArray(u)))?(l=v[o],p=f&&!Array.isArray(l)?[]:f||d.isPlainObject(l)?l:{},f=!1,v[o]=d.extend(n,p,u)):void 0!==u&&(v[o]=u));return v},d.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var o,l;return!(!t||"[object Object]"!==Ge.call(t)||(o=Ce(t))&&("function"!=typeof(l=Ie.call(o,"constructor")&&o.constructor)||Ht.call(l)!==jt))},isEmptyObject:function(t){var o;for(o in t)return!1;return!0},globalEval:function(t,o,l){Q(t,{nonce:o&&o.nonce},l)},each:function(t,o){var l,u=0;if(D(t))for(l=t.length;u<l&&!1!==o.call(t[u],u,t[u]);u++);else for(u in t)if(!1===o.call(t[u],u,t[u]))break;return t},text:function(t){var o,l="",u=0,f=t.nodeType;if(!f)for(;o=t[u++];)l+=d.text(o);return 1===f||11===f?t.textContent:9===f?t.documentElement.textContent:3===f||4===f?t.nodeValue:l},makeArray:function(t,o){var l=o||[];return null!=t&&(D(Object(t))?d.merge(l,"string"==typeof t?[t]:t):x.call(l,t)),l},inArray:function(t,o,l){return null==o?-1:ue.call(o,t,l)},isXMLDoc:function(t){var l=t&&(t.ownerDocument||t).documentElement;return!Nn.test(t&&t.namespaceURI||l&&l.nodeName||"HTML")},merge:function(t,o){for(var l=+o.length,u=0,f=t.length;u<l;u++)t[f++]=o[u];return t.length=f,t},grep:function(t,o,l){for(var u=[],f=0,p=t.length,v=!l;f<p;f++)!o(t[f],f)!==v&&u.push(t[f]);return u},map:function(t,o,l){var u,f,p=0,v=[];if(D(t))for(u=t.length;p<u;p++)null!=(f=o(t[p],p,l))&&v.push(f);else for(p in t)null!=(f=o(t[p],p,l))&&v.push(f);return ce(v)},guid:1,support:_}),"function"==typeof Symbol&&(d.fn[Symbol.iterator]=he[Symbol.iterator]),d.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,o){rt["[object "+o+"]"]=o.toLowerCase()});var je=he.pop,ke=he.sort,Oe=he.splice,J="[\\x20\\t\\r\\n\\f]",_e=new RegExp("^"+J+"+|((?:^|[^\\\\])(?:\\\\.)*)"+J+"+$","g");d.contains=function(t,o){var l=o&&o.parentNode;return t===l||!(!l||1!==l.nodeType||!(t.contains?t.contains(l):t.compareDocumentPosition&&16&t.compareDocumentPosition(l)))};var uo=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function An(t,o){return o?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}d.escapeSelector=function(t){return(t+"").replace(uo,An)};var Me=O,Mt=x;!function(){var t,o,l,u,f,p,v,C,k,n,r=Mt,s=d.expando,a=0,e=0,i=de(),c=de(),h=de(),m=de(),w=function(g,T){return g===T&&(f=!0),0},y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",S="(?:\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",E="\\["+J+"*("+S+")(?:"+J+"*([*^$|!~]?=)"+J+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+S+"))|)"+J+"*\\]",$=":("+S+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+E+")*)|.*)\\)|)",I=new RegExp(J+"+","g"),L=new RegExp("^"+J+"*,"+J+"*"),R=new RegExp("^"+J+"*([>+~]|"+J+")"+J+"*"),q=new RegExp(J+"|>"),K=new RegExp($),fe=new RegExp("^"+S+"$"),pe={ID:new RegExp("^#("+S+")"),CLASS:new RegExp("^\\.("+S+")"),TAG:new RegExp("^("+S+"|[*])"),ATTR:new RegExp("^"+E),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+J+"*(even|odd|(([+-]|)(\\d*)n|)"+J+"*(?:([+-]|)"+J+"*(\\d+)|))"+J+"*\\)|)","i"),bool:new RegExp("^(?:"+y+")$","i"),needsContext:new RegExp("^"+J+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+J+"*((?:-\\d)?\\d*)"+J+"*\\)|)(?=[^-]|$)","i")},ie=/^(?:input|select|textarea|button)$/i,ye=/^h\d$/i,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,re=/[+~]/,ae=new RegExp("\\\\[\\da-fA-F]{1,6}"+J+"?|\\\\([^\\r\\n\\f])","g"),ge=function(g,T){var N="0x"+g.slice(1)-65536;return T||(N<0?String.fromCharCode(N+65536):String.fromCharCode(N>>10|55296,1023&N|56320))},Je=function(){St()},Se=so(function(g){return!0===g.disabled&&ne(g,"fieldset")},{dir:"parentNode",next:"legend"});try{r.apply(he=$e.call(Me.childNodes),Me.childNodes)}catch{r={apply:function(T,N){Mt.apply(T,$e.call(N))}
vendor: 7,901 bytes, line 1
1,call:function(T){Mt.apply(T,$e.call(arguments,1))}}}function z(g,T,N,A){var P,H,j,B,F,ee,V,X=T&&T.ownerDocument,Z=T?T.nodeType:9;if(N=N||[],"string"!=typeof g||!g||1!==Z&&9!==Z&&11!==Z)return N;if(!A&&(St(T),T=T||p,C)){if(11!==Z&&(F=ve.exec(g)))if(P=F[1]){if(9===Z){if(!(j=T.getElementById(P)))return N;if(j.id===P)return r.call(N,j),N}else if(X&&(j=X.getElementById(P))&&z.contains(T,j)&&j.id===P)return r.call(N,j),N}else{if(F[2])return r.apply(N,T.getElementsByTagName(g)),N;if((P=F[3])&&T.getElementsByClassName)return r.apply(N,T.getElementsByClassName(P)),N}if(!(m[g+" "]||k&&k.test(g))){if(V=g,X=T,1===Z&&(q.test(g)||R.test(g))){for((X=re.test(g)&&Eo(T.parentNode)||T)==T&&_.scope||((B=T.getAttribute("id"))?B=d.escapeSelector(B):T.setAttribute("id",B=s)),H=(ee=Sn(g)).length;H--;)ee[H]=(B?"#"+B:":scope")+" "+ao(ee[H]);V=ee.join(",")}try{return r.apply(N,X.querySelectorAll(V)),N}catch{m(g,!0)}finally{B===s&&T.removeAttribute("id")}}}return Po(g.replace(_e,"$1"),T,N,A)}function de(){var g=[];return function T(N,A){return g.push(N+" ")>o.cacheLength&&delete T[g.shift()],T[N+" "]=A}}function me(g){return g[s]=!0,g}function se(g){var T=p.createElement("fieldset");try{return!!g(T)}catch{return!1}finally{T.parentNode&&T.parentNode.removeChild(T),T=null}}function it(g){return function(T){return ne(T,"input")&&T.type===g}}function Zt(g){return function(T){return(ne(T,"input")||ne(T,"button"))&&T.type===g}}function ro(g){return function(T){return"form"in T?T.parentNode&&!1===T.disabled?"label"in T?"label"in T.parentNode?T.parentNode.disabled===g:T.disabled===g:T.isDisabled===g||T.isDisabled!==!g&&Se(T)===g:T.disabled===g:"label"in T&&T.disabled===g}}function Rt(g){return me(function(T){return T=+T,me(function(N,A){for(var P,H=g([],N.length,T),j=H.length;j--;)N[P=H[j]]&&(N[P]=!(A[P]=N[P]))})})}function Eo(g){return g&&typeof g.getElementsByTagName<"u"&&g}function St(g){var T,N=g?g.ownerDocument||g:Me;return N!=p&&9===N.nodeType&&N.documentElement&&(v=(p=N).documentElement,C=!d.isXMLDoc(p),n=v.matches||v.webkitMatchesSelector||v.msMatchesSelector,v.msMatchesSelector&&Me!=p&&(T=p.defaultView)&&T.top!==T&&T.addEventListener("unload",Je),_.getById=se(function(A){return v.appendChild(A).id=d.expando,!p.getElementsByName||!p.getElementsByName(d.expando).length}),_.disconnectedMatch=se(function(A){return n.call(A,"*")}),_.scope=se(function(){return p.querySelectorAll(":scope")}),_.cssHas=se(function(){try{return p.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(o.filter.ID=function(A){var P=A.replace(ae,ge);return function(H){return H.getAttribute("id")===P}},o.find.ID=function(A,P){if(typeof P.getElementById<"u"&&C){var H=P.getElementById(A);return H?[H]:[]}}):(o.filter.ID=function(A){var P=A.replace(ae,ge);return function(H){var j=typeof H.getAttributeNode<"u"&&H.getAttributeNode("id");return j&&j.value===P}},o.find.ID=function(A,P){if(typeof P.getElementById<"u"&&C){var H,j,B,F=P.getElementById(A);if(F){if((H=F.getAttributeNode("id"))&&H.value===A)return[F];for(B=P.getElementsByName(A),j=0;F=B[j++];)if((H=F.getAttributeNode("id"))&&H.value===A)return[F]}return[]}}),o.find.TAG=function(A,P){return typeof P.getElementsByTagName<"u"?P.getElementsByTagName(A):P.querySelectorAll(A)},o.find.CLASS=function(A,P){if(typeof P.getElementsByClassName<"u"&&C)return P.getElementsByClassName(A)},k=[],se(function(A){var P;v.appendChild(A).innerHTML="<a id='"+s+"' href='' disabled='disabled'></a><select id='"+s+"-\r\\' disabled='disabled'><option selected=''></option></select>",A.querySelectorAll("[selected]").length||k.push("\\["+J+"*(?:value|"+y+")"),A.querySelectorAll("[id~="+s+"-]").length||k.push("~="),A.querySelectorAll("a#"+s+"+*").length||k.push(".#.+[+~]"),A.querySelectorAll(":checked").length||k.push(":checked"),(P=p.createElement("input")).setAttribute("type","hidden"),A.appendChild(P).setAttribute("name","D"),v.appendChild(A).disabled=!0,2!==A.querySelectorAll(":disabled").length&&k.push(":enabled",":disabled"),(P=p.createElement("input")).setAttribute("name",""),A.appendChild(P),A.querySelectorAll("[name='']").length||k.push("\\["+J+"*name"+J+"*="+J+"*(?:''|\"\")")}),_.cssHas||k.push(":has"),k=k.length&&new RegExp(k.join("|")),w=function(A,P){if(A===P)return f=!0,0;var H=!A.compareDocumentPosition-!P.compareDocumentPosition;return H||(1&(H=(A.ownerDocument||A)==(P.ownerDocument||P)?A.compareDocumentPosition(P):1)||!_.sortDetached&&P.compareDocumentPosition(A)===H?A===p||A.ownerDocument==Me&&z.contains(Me,A)?-1:P===p||P.ownerDocument==Me&&z.contains(Me,P)?1:u?ue.call(u,A)-ue.call(u,P):0:4&H?-1:1)}),p}for(t in z.matches=function(g,T){return z(g,null,null,T)},z.matchesSelector=function(g,T){if(St(g),C&&!m[T+" "]&&(!k||!k.test(T)))try{var N=n.call(g,T);if(N||_.disconnectedMatch||g.document&&11!==g.document.nodeType)return N}catch{m(T,!0)}return 0<z(T,p,null,[g]).length},z.contains=function(g,T){return(g.ownerDocument||g)!=p&&St(g),d.contains(g,T)},z.attr=function(g,T){(g.ownerDocument||g)!=p&&St(g);var N=o.attrHandle[T.toLowerCase()],A=N&&Ie.call(o.attrHandle,T.toLowerCase())?N(g,T,!C):void 0;return void 0!==A?A:g.getAttribute(T)},z.error=function(g){throw new Error("Syntax error, unrecognized expression: "+g)},d.uniqueSort=function(g){var T,N=[],A=0,P=0;if(f=!_.sortStable,u=!_.sortStable&&$e.call(g,0),ke.call(g,w),f){for(;T=g[P++];)T===g[P]&&(A=N.push(P));for(;A--;)Oe.call(g,N[A],1)}return u=null,g},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort($e.apply(this)))},(o=d.expr={cacheLength:50,createPseudo:me,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(g){return g[1]=g[1].replace(ae,ge),g[3]=(g[3]||g[4]||g[5]||"").replace(ae,ge),"~="===g[2]&&(g[3]=" "+g[3]+" "),g.slice(0,4)},CHILD:function(g){return g[1]=g[1].toLowerCase(),"nth"===g[1].slice(0,3)?(g[3]||z.error(g[0]),g[4]=+(g[4]?g[5]+(g[6]||1):2*("even"===g[3]||"odd"===g[3])),g[5]=+(g[7]+g[8]||"odd"===g[3])):g[3]&&z.error(g[0]),g},PSEUDO:function(g){var T,N=!g[6]&&g[2];return pe.CHILD.test(g[0])?null:(g[3]?g[2]=g[4]||g[5]||"":N&&K.test(N)&&(T=Sn(N,!0))&&(T=N.indexOf(")",N.length-T)-N.length)&&(g[0]=g[0].slice(0,T),g[2]=N.slice(0,T)),g.slice(0,3))}},filter:{TAG:function(g){var T=g.replace(ae,ge).toLowerCase();return"*"===g?function(){return!0}:function(N){return ne(N,T)}},CLASS:function(g){var T=i[g+" "];return T||(T=new RegExp("(^|"+J+")"+g+"("+J+"|$)"))&&i(g,function(N){return T.test("string"==typeof N.className&&N.className||typeof N.getAttribute<"u"&&N.getAttribute("class")||"")})},ATTR:function(g,T,N){return function(A){var P=z.attr(A,g);return null==P?"!="===T:!T||(P+="","="===T?P===N:"!="===T?P!==N:"^="===T?N&&0===P.indexOf(N):"*="===T?N&&-1<P.indexOf(N):"$="===T?N&&P.slice(-N.length)===N:"~="===T?-1<(" "+P.replace(I," ")+" ").indexOf(N):"|="===T&&(P===N||P.slice(0,N.length+1)===N+"-"))}},CHILD:function(g,T,N,A,P){var H="nth"!==g.slice(0,3),j="last"!==g.slice(-4),B="of-type"===T;return 1===A&&0===P?function(F){return!!F.parentNode}:function(F,ee,V){var X,Z,W,xe,Le,Ee=H!==j?"nextSibling":"previousSibling",He=F.parentNode,qe=B&&F.nodeName.toLowerCase(),et=!V&&!B,le=!1;if(He){if(H){for(;Ee;){for(W=F;W=W[Ee];)if(B?ne(W,qe):1===W.nodeType)return!1;Le=Ee="only"===g&&!Le&&"nextSibling"}return!0}if(Le=[j?He.firstChild:He.lastChild],j&&et){for(le=(xe=(X=(Z=He[s]||(He[s]={}))[g]||[])[0]===a&&X[1])&&X[2],W=xe&&He.childNodes[xe];W=++xe&&W&&W[Ee]||(le=xe=0)||Le.pop();)if(1===W.nodeType&&++le&&W===F){Z[g]=[a,xe,le];break}}else if(et&&(le=xe=(X=(Z=F[s]||(F[s]={}))[g]||[])[0]===a&&X[1]),!1===le)for(;(W=++xe&&W&&W[Ee]||(le=xe=0)||Le.pop())&&(!(B?ne(W,qe):1===W.nodeType)||!++le||(et&&((Z=W[s]||(W[s]={}))[g]=[a,le]),W!==F)););return(le-=P)===A||le%A==0&&0<=le/A}}},PSEUDO:function(g,T){var N,A=o.pseudos[g]||o.setFilters[g.toLowerCase()]||z.error("unsupported pseudo: "+g);
vendor: 4,334 bytes, line 1
1return A[s]?A(T):1<A.length?(N=[g,g,"",T],o.setFilters.hasOwnProperty(g.toLowerCase())?me(function(P,H){for(var j,B=A(P,T),F=B.length;F--;)P[j=ue.call(P,B[F])]=!(H[j]=B[F])}):function(P){return A(P,0,N)}):A}},pseudos:{not:me(function(g){var T=[],N=[],A=Io(g.replace(_e,"$1"));return A[s]?me(function(P,H,j,B){for(var F,ee=A(P,null,B,[]),V=P.length;V--;)(F=ee[V])&&(P[V]=!(H[V]=F))}):function(P,H,j){return T[0]=P,A(T,null,j,N),T[0]=null,!N.pop()}}),has:me(function(g){return function(T){return 0<z(g,T).length}}),contains:me(function(g){return g=g.replace(ae,ge),function(T){return-1<(T.textContent||d.text(T)).indexOf(g)}}),lang:me(function(g){return fe.test(g||"")||z.error("unsupported lang: "+g),g=g.replace(ae,ge).toLowerCase(),function(T){var N;do{if(N=C?T.lang:T.getAttribute("xml:lang")||T.getAttribute("lang"))return(N=N.toLowerCase())===g||0===N.indexOf(g+"-")}while((T=T.parentNode)&&1===T.nodeType);return!1}}),target:function(g){var T=U.location&&U.location.hash;return T&&T.slice(1)===g.id},root:function(g){return g===v},focus:function(g){return g===function(){try{return p.activeElement}catch{}}()&&p.hasFocus()&&!!(g.type||g.href||~g.tabIndex)},enabled:ro(!1),disabled:ro(!0),checked:function(g){return ne(g,"input")&&!!g.checked||ne(g,"option")&&!!g.selected},selected:function(g){return!0===g.selected},empty:function(g){for(g=g.firstChild;g;g=g.nextSibling)if(g.nodeType<6)return!1;return!0},parent:function(g){return!o.pseudos.empty(g)},header:function(g){return ye.test(g.nodeName)},input:function(g){return ie.test(g.nodeName)},button:function(g){return ne(g,"input")&&"button"===g.type||ne(g,"button")},text:function(g){var T;return ne(g,"input")&&"text"===g.type&&(null==(T=g.getAttribute("type"))||"text"===T.toLowerCase())},first:Rt(function(){return[0]}),last:Rt(function(g,T){return[T-1]}),eq:Rt(function(g,T,N){return[N<0?N+T:N]}),even:Rt(function(g,T){for(var N=0;N<T;N+=2)g.push(N);return g}),odd:Rt(function(g,T){for(var N=1;N<T;N+=2)g.push(N);return g}),lt:Rt(function(g,T,N){var A;for(A=N<0?N+T:T<N?T:N;0<=--A;)g.push(A);return g}),gt:Rt(function(g,T,N){for(var A=N<0?N+T:N;++A<T;)g.push(A);return g})}}).pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})o.pseudos[t]=Zt(t);function Lo(){}function Sn(g,T){var N,A,P,H,j,B,F,ee=c[g+" "];if(ee)return T?0:ee.slice(0);for(j=g,B=[],F=o.preFilter;j;){for(H in N&&!(A=L.exec(j))||(A&&(j=j.slice(A[0].length)||j),B.push(P=[])),N=!1,(A=R.exec(j))&&(N=A.shift(),P.push({value:N,type:A[0].replace(_e," ")}),j=j.slice(N.length)),o.filter)!(A=pe[H].exec(j))||F[H]&&!(A=F[H](A))||(N=A.shift(),P.push({value:N,type:H,matches:A}),j=j.slice(N.length));if(!N)break}return T?j.length:j?z.error(g):c(g,B).slice(0)}function ao(g){for(var T=0,N=g.length,A="";T<N;T++)A+=g[T].value;return A}function so(g,T,N){var A=T.dir,P=T.next,H=P||A,j=N&&"parentNode"===H,B=e++;return T.first?function(F,ee,V){for(;F=F[A];)if(1===F.nodeType||j)return g(F,ee,V);return!1}:function(F,ee,V){var X,Z,W=[a,B];if(V){for(;F=F[A];)if((1===F.nodeType||j)&&g(F,ee,V))return!0}else for(;F=F[A];)if(1===F.nodeType||j)if(Z=F[s]||(F[s]={}),P&&ne(F,P))F=F[A]||F;else{if((X=Z[H])&&X[0]===a&&X[1]===B)return W[2]=X[2];if((Z[H]=W)[2]=g(F,ee,V))return!0}return!1}}function No(g){return 1<g.length?function(T,N,A){for(var P=g.length;P--;)if(!g[P](T,N,A))return!1;return!0}:g[0]}function lo(g,T,N,A,P){for(var H,j=[],B=0,F=g.length,ee=null!=T;B<F;B++)(H=g[B])&&(N&&!N(H,A,P)||(j.push(H),ee&&T.push(B)));return j}function Ao(g,T,N,A,P,H){return A&&!A[s]&&(A=Ao(A)),P&&!P[s]&&(P=Ao(P,H)),me(function(j,B,F,ee){var V,X,Z,W,xe=[],Le=[],Ee=B.length,He=j||function(et,le,Ft){for(var tt=0,co=le.length;tt<co;tt++)z(et,le[tt],Ft);return Ft}(T||"*",F.nodeType?[F]:F,[]),qe=!g||!j&&T?He:lo(He,xe,g,F,ee);if(N?N(qe,W=P||(j?g:Ee||A)?[]:B,F,ee):W=qe,A)for(V=lo(W,Le),A(V,[],F,ee),X=V.length;X--;)(Z=V[X])&&(W[Le[X]]=!(qe[Le[X]]=Z));if(j){if(P||g){if(P){for(V=[],X=W.length;X--;)(Z=W[X])&&V.push(qe[X]=Z);P(null,W=[],V,ee)}for(X=W.length;X--;)(Z=W[X])&&-1<(V=P?ue.call(j,Z):xe[X])&&(j[V]=!(B[V]=Z))}}else W=lo(W===B?W.splice(Ee,W.length):W),P?P(null,B,W,ee):r.apply(B,W)})}function $o(g){for(var T,N,A,P=g.length,H=o.relative[g[0].type],j=H||o.relative[" "],B=H?1:0,F=so(function(X){return X===T},j,!0),ee=so(function(X){return-1<ue.call(T,X)}
vendor: 11,308 bytes, line 1
1,j,!0),V=[function(X,Z,W){var xe=!H&&(W||Z!=l)||((T=Z).nodeType?F(X,Z,W):ee(X,Z,W));return T=null,xe}];B<P;B++)if(N=o.relative[g[B].type])V=[so(No(V),N)];else{if((N=o.filter[g[B].type].apply(null,g[B].matches))[s]){for(A=++B;A<P&&!o.relative[g[A].type];A++);return Ao(1<B&&No(V),1<B&&ao(g.slice(0,B-1).concat({value:" "===g[B-2].type?"*":""})).replace(_e,"$1"),N,B<A&&$o(g.slice(B,A)),A<P&&$o(g=g.slice(A)),A<P&&ao(g))}V.push(N)}return No(V)}function Io(g,T){var N,A,P,H,j,B,F=[],ee=[],V=h[g+" "];if(!V){for(T||(T=Sn(g)),N=T.length;N--;)(V=$o(T[N]))[s]?F.push(V):ee.push(V);(V=h(g,(A=ee,H=0<(P=F).length,j=0<A.length,B=function(X,Z,W,xe,Le){var Ee,He,qe,et=0,le="0",Ft=X&&[],tt=[],co=l,Do=X||j&&o.find.TAG("*",Le),Ro=a+=null==co?1:Math.random()||.1,Fo=Do.length;for(Le&&(l=Z==p||Z||Le);le!==Fo&&null!=(Ee=Do[le]);le++){if(j&&Ee){for(He=0,Z||Ee.ownerDocument==p||(St(Ee),W=!C);qe=A[He++];)if(qe(Ee,Z||p,W)){r.call(xe,Ee);break}Le&&(a=Ro)}H&&((Ee=!qe&&Ee)&&et--,X&&Ft.push(Ee))}if(et+=le,H&&le!==et){for(He=0;qe=P[He++];)qe(Ft,tt,Z,W);if(X){if(0<et)for(;le--;)Ft[le]||tt[le]||(tt[le]=je.call(xe));tt=lo(tt)}r.apply(xe,tt),Le&&!X&&0<tt.length&&1<et+P.length&&d.uniqueSort(xe)}return Le&&(a=Ro,l=co),Ft},H?me(B):B))).selector=g}return V}function Po(g,T,N,A){var P,H,j,B,F,ee="function"==typeof g&&g,V=!A&&Sn(g=ee.selector||g);if(N=N||[],1===V.length){if(2<(H=V[0]=V[0].slice(0)).length&&"ID"===(j=H[0]).type&&9===T.nodeType&&C&&o.relative[H[1].type]){if(!(T=(o.find.ID(j.matches[0].replace(ae,ge),T)||[])[0]))return N;ee&&(T=T.parentNode),g=g.slice(H.shift().value.length)}for(P=pe.needsContext.test(g)?0:H.length;P--&&!o.relative[B=(j=H[P]).type];)if((F=o.find[B])&&(A=F(j.matches[0].replace(ae,ge),re.test(H[0].type)&&Eo(T.parentNode)||T))){if(H.splice(P,1),!(g=A.length&&ao(H)))return r.apply(N,A),N;break}}return(ee||Io(g,V))(A,T,!C,N,!T||re.test(g)&&Eo(T.parentNode)||T),N}Lo.prototype=o.filters=o.pseudos,o.setFilters=new Lo,_.sortStable=s.split("").sort(w).join("")===s,St(),_.sortDetached=se(function(g){return 1&g.compareDocumentPosition(p.createElement("fieldset"))}),d.find=z,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,z.compile=Io,z.select=Po,z.setDocument=St,z.tokenize=Sn,z.escape=d.escapeSelector,z.getText=d.text,z.isXML=d.isXMLDoc,z.selectors=d.expr,z.support=d.support,z.uniqueSort=d.uniqueSort}();var Xe=function(t,o,l){for(var u=[],f=void 0!==l;(t=t[o])&&9!==t.nodeType;)if(1===t.nodeType){if(f&&d(t).is(l))break;u.push(t)}return u},Jt=function(t,o){for(var l=[];t;t=t.nextSibling)1===t.nodeType&&t!==o&&l.push(t);return l},$n=d.expr.match.needsContext,en=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Et(t,o,l){return G(o)?d.grep(t,function(u,f){return!!o.call(u,f,u)!==l}):o.nodeType?d.grep(t,function(u){return u===o!==l}):"string"!=typeof o?d.grep(t,function(u){return-1<ue.call(o,u)!==l}):d.filter(o,t,l)}d.filter=function(t,o,l){var u=o[0];return l&&(t=":not("+t+")"),1===o.length&&1===u.nodeType?d.find.matchesSelector(u,t)?[u]:[]:d.find.matches(t,d.grep(o,function(f){return 1===f.nodeType}))},d.fn.extend({find:function(t){var o,l,u=this.length,f=this;if("string"!=typeof t)return this.pushStack(d(t).filter(function(){for(o=0;o<u;o++)if(d.contains(f[o],this))return!0}));for(l=this.pushStack([]),o=0;o<u;o++)d.find(t,f[o],l);return 1<u?d.uniqueSort(l):l},filter:function(t){return this.pushStack(Et(this,t||[],!1))},not:function(t){return this.pushStack(Et(this,t||[],!0))},is:function(t){return!!Et(this,"string"==typeof t&&$n.test(t)?d(t):t||[],!1).length}});var Bt,In=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(d.fn.init=function(t,o,l){var u,f;if(!t)return this;if(l=l||Bt,"string"==typeof t){if(!(u="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:In.exec(t))||!u[1]&&o)return!o||o.jquery?(o||l).find(t):this.constructor(o).find(t);if(u[1]){if(d.merge(this,d.parseHTML(u[1],(o=o instanceof d?o[0]:o)&&o.nodeType?o.ownerDocument||o:O,!0)),en.test(u[1])&&d.isPlainObject(o))for(u in o)G(this[u])?this[u](o[u]):this.attr(u,o[u]);return this}return(f=O.getElementById(u[2]))&&(this[0]=f,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):G(t)?void 0!==l.ready?l.ready(t):t(d):d.makeArray(t,this)}).prototype=d.fn,Bt=d(O);var ho=/^(?:parents|prev(?:Until|All))/,zt={children:!0,contents:!0,next:!0,prev:!0};function Pe(t,o){for(;(t=t[o])&&1!==t.nodeType;);return t}d.fn.extend({has:function(t){var o=d(t,this),l=o.length;return this.filter(function(){for(var u=0;u<l;u++)if(d.contains(this,o[u]))return!0})},closest:function(t,o){var l,u=0,f=this.length,p=[],v="string"!=typeof t&&d(t);if(!$n.test(t))for(;u<f;u++)for(l=this[u];l&&l!==o;l=l.parentNode)if(l.nodeType<11&&(v?-1<v.index(l):1===l.nodeType&&d.find.matchesSelector(l,t))){p.push(l);break}return this.pushStack(1<p.length?d.uniqueSort(p):p)},index:function(t){return t?"string"==typeof t?ue.call(d(t),this[0]):ue.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,o){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(t,o))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),d.each({parent:function(t){var o=t.parentNode;return o&&11!==o.nodeType?o:null},parents:function(t){return Xe(t,"parentNode")},parentsUntil:function(t,o,l){return Xe(t,"parentNode",l)},next:function(t){return Pe(t,"nextSibling")},prev:function(t){return Pe(t,"previousSibling")},nextAll:function(t){return Xe(t,"nextSibling")},prevAll:function(t){return Xe(t,"previousSibling")},nextUntil:function(t,o,l){return Xe(t,"nextSibling",l)},prevUntil:function(t,o,l){return Xe(t,"previousSibling",l)},siblings:function(t){return Jt((t.parentNode||{}).firstChild,t)},children:function(t){return Jt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&Ce(t.contentDocument)?t.contentDocument:(ne(t,"template")&&(t=t.content||t),d.merge([],t.childNodes))}},function(t,o){d.fn[t]=function(l,u){var f=d.map(this,o,l);return"Until"!==t.slice(-5)&&(u=l),u&&"string"==typeof u&&(f=d.filter(u,f)),1<this.length&&(zt[t]||d.uniqueSort(f),ho.test(t)&&f.reverse()),this.pushStack(f)}});var be=/[^\x20\t\r\n\f]+/g;function st(t){return t}function lt(t){throw t}function ct(t,o,l,u){var f;try{t&&G(f=t.promise)?f.call(t).done(o).fail(l):t&&G(f=t.then)?f.call(t,o,l):o.apply(void 0,[t].slice(u))}catch(p){l.apply(void 0,[p])}}d.Callbacks=function(t){var l;t="string"==typeof t?(l={},d.each(t.match(be)||[],function(a,e){l[e]=!0}),l):d.extend({},t);var u,f,p,v,C=[],k=[],n=-1,r=function(){for(v=v||t.once,p=u=!0;k.length;n=-1)for(f=k.shift();++n<C.length;)!1===C[n].apply(f[0],f[1])&&t.stopOnFalse&&(n=C.length,f=!1);t.memory||(f=!1),u=!1,v&&(C=f?[]:"")},s={add:function(){return C&&(f&&!u&&(n=C.length-1,k.push(f)),function a(e){d.each(e,function(i,c){G(c)?t.unique&&s.has(c)||C.push(c):c&&c.length&&"string"!==at(c)&&a(c)})}(arguments),f&&!u&&r()),this},remove:function(){return d.each(arguments,function(a,e){for(var i;-1<(i=d.inArray(e,C,i));)C.splice(i,1),i<=n&&n--}),this},has:function(a){return a?-1<d.inArray(a,C):0<C.length},empty:function(){return C&&(C=[]),this},disable:function(){return v=k=[],C=f="",this},disabled:function(){return!C},lock:function(){return v=k=[],f||u||(C=f=""),this},locked:function(){return!!v},fireWith:function(a,e){return v||(e=[a,(e=e||[]).slice?e.slice():e],k.push(e),u||r()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!p}};return s},d.extend({Deferred:function(t){var o=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],l="pending",u={state:function(){return l},always:function(){return f.done(arguments).fail(arguments),this},catch:function(p){return u.then(null,p)},pipe:function(){var p=arguments;return d.Deferred(function(v){d.each(o,function(C,k){var n=G(p[k[4]])&&p[k[4]];f[k[1]](function(){var r=n&&n.apply(this,arguments);r&&G(r.promise)?r.promise().progress(v.notify).done(v.resolve).fail(v.reject):v[k[0]+"With"](this,n?[r]:arguments)})}),p=null}).promise()},then:function(p,v,C){var k=0;function n(r,s,a,e){return function(){var i=this,c=arguments,h=function(){var w,y;if(!(r<k)){if((w=a.apply(i,c))===s.promise())throw new TypeError("Thenable self-resolution");G(y=w&&("object"==typeof w||"function"==typeof w)&&w.then)?e?y.call(w,n(k,s,st,e),n(k,s,lt,e)):(k++,y.call(w,n(k,s,st,e),n(k,s,lt,e),n(k,s,st,s.notifyWith))):(a!==st&&(i=void 0,c=[w]),(e||s.resolveWith)(i,c))}},m=e?h:function(){try{h()}catch(w){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(w,m.error),k<=r+1&&(a!==lt&&(i=void 0,c=[w]),s.rejectWith(i,c))}};r?m():(d.Deferred.getErrorHook?m.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(m.error=d.Deferred.getStackHook()),U.setTimeout(m))}}return d.Deferred(function(r){o[0][3].add(n(0,r,G(C)?C:st,r.notifyWith)),o[1][3].add(n(0,r,G(p)?p:st)),o[2][3].add(n(0,r,G(v)?v:lt))}).promise()},promise:function(p){return null!=p?d.extend(p,u):u}},f={};return d.each(o,function(p,v){var C=v[2],k=v[5];u[v[1]]=C.add,k&&C.add(function(){l=k},o[3-p][2].disable,o[3-p][3].disable,o[0][2].lock,o[0][3].lock),C.add(v[3].fire),f[v[0]]=function(){return f[v[0]+"With"](this===f?void 0:this,arguments),this},f[v[0]+"With"]=C.fireWith}),u.promise(f),t&&t.call(f,f),f},when:function(t){var o=arguments.length,l=o,u=Array(l),f=$e.call(arguments),p=d.Deferred(),v=function(C){return function(k){u[C]=this,f[C]=1<arguments.length?$e.call(arguments):k,--o||p.resolveWith(u,f)}};if(o<=1&&(ct(t,p.done(v(l)).resolve,p.reject,!o),"pending"===p.state()||G(f[l]&&f[l].then)))return p.then();for(;l--;)ct(f[l],v(l),p.reject);return p.promise()}});var Ln=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(t,o){U.console&&U.console.warn&&t&&Ln.test(t.name)&&U.console.warn("jQuery.Deferred exception: "+t.message,t.stack,o)},d.readyException=function(t){U.setTimeout(function(){throw t})};var Nt=d.Deferred();function yt(){O.removeEventListener("DOMContentLoaded",yt),U.removeEventListener("load",yt),d.ready()}d.fn.ready=function(t){return Nt.then(t).catch(function(o){d.readyException(o)}),this},d.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--d.readyWait:d.isReady)||(d.isReady=!0)!==t&&0<--d.readyWait||Nt.resolveWith(O,[d])}}),d.ready.then=Nt.then,"complete"===O.readyState||"loading"!==O.readyState&&!O.documentElement.doScroll?U.setTimeout(d.ready):(O.addEventListener("DOMContentLoaded",yt),U.addEventListener("load",yt));var De=function(t,o,l,u,f,p,v){var C=0,k=t.length,n=null==l;if("object"===at(l))for(C in f=!0,l)De(t,o,C,l[C],!0,p,v);else if(void 0!==u&&(f=!0,G(u)||(v=!0),n&&(v?(o.call(t,u),o=null):(n=o,o=function(r,s,a){return n.call(d(r),a)})),o))for(;C<k;C++)o(t[C],l,v?u:u.call(t[C],C,o(t[C],l)));return f?t:n?o.call(t):k?o(t[0],l):p},Ut=/^-ms-/,Pn=/-([a-z])/g;function Dn(t,o){return o.toUpperCase()}function Be(t){return t.replace(Ut,"ms-").replace(Pn,Dn)}var Re=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Ye(){this.expando=d.expando+Ye.uid++}Ye.uid=1,Ye.prototype={cache:function(t){var o=t[this.expando];return o||(o={},Re(t)&&(t.nodeType?t[this.expando]=o:Object.defineProperty(t,this.expando,{value:o,c
vendor: 4,135 bytes, line 1
1onfigurable:!0}))),o},set:function(t,o,l){var u,f=this.cache(t);if("string"==typeof o)f[Be(o)]=l;else for(u in o)f[Be(u)]=o[u];return f},get:function(t,o){return void 0===o?this.cache(t):t[this.expando]&&t[this.expando][Be(o)]},access:function(t,o,l){return void 0===o||o&&"string"==typeof o&&void 0===l?this.get(t,o):(this.set(t,o,l),void 0!==l?l:o)},remove:function(t,o){var l,u=t[this.expando];if(void 0!==u){if(void 0!==o)for((l=(o=Array.isArray(o)?o.map(Be):(o=Be(o))in u?[o]:o.match(be)||[]).length);l--;)delete u[o[l]];(void 0===o||d.isEmptyObject(u))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var o=t[this.expando];return void 0!==o&&!d.isEmptyObject(o)}};var M=new Ye,Ne=new Ye,Rn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Fn=/[A-Z]/g;function tn(t,o,l){var u,f;if(void 0===l&&1===t.nodeType)if(u="data-"+o.replace(Fn,"-$&").toLowerCase(),"string"==typeof(l=t.getAttribute(u))){try{l="true"===(f=l)||"false"!==f&&("null"===f?null:f===+f+""?+f:Rn.test(f)?JSON.parse(f):f)}catch{}Ne.set(t,o,l)}else l=void 0;return l}d.extend({hasData:function(t){return Ne.hasData(t)||M.hasData(t)},data:function(t,o,l){return Ne.access(t,o,l)},removeData:function(t,o){Ne.remove(t,o)},_data:function(t,o,l){return M.access(t,o,l)},_removeData:function(t,o){M.remove(t,o)}}),d.fn.extend({data:function(t,o){var l,u,f,p=this[0],v=p&&p.attributes;if(void 0===t){if(this.length&&(f=Ne.get(p),1===p.nodeType&&!M.get(p,"hasDataAttrs"))){for(l=v.length;l--;)v[l]&&0===(u=v[l].name).indexOf("data-")&&(u=Be(u.slice(5)),tn(p,u,f[u]));M.set(p,"hasDataAttrs",!0)}return f}return"object"==typeof t?this.each(function(){Ne.set(this,t)}):De(this,function(C){var k;if(p&&void 0===C)return void 0!==(k=Ne.get(p,t))||void 0!==(k=tn(p,t))?k:void 0;this.each(function(){Ne.set(this,t,C)})},null,o,1<arguments.length,null,!0)},removeData:function(t){return this.each(function(){Ne.remove(this,t)})}}),d.extend({queue:function(t,o,l){var u;if(t)return u=M.get(t,o=(o||"fx")+"queue"),l&&(!u||Array.isArray(l)?u=M.access(t,o,d.makeArray(l)):u.push(l)),u||[]},dequeue:function(t,o){var l=d.queue(t,o=o||"fx"),u=l.length,f=l.shift(),p=d._queueHooks(t,o);"inprogress"===f&&(f=l.shift(),u--),f&&("fx"===o&&l.unshift("inprogress"),delete p.stop,f.call(t,function(){d.dequeue(t,o)},p)),!u&&p&&p.empty.fire()},_queueHooks:function(t,o){var l=o+"queueHooks";return M.get(t,l)||M.access(t,l,{empty:d.Callbacks("once memory").add(function(){M.remove(t,[o+"queue",l])})})}}),d.fn.extend({queue:function(t,o){var l=2;return"string"!=typeof t&&(o=t,t="fx",l--),arguments.length<l?d.queue(this[0],t):void 0===o?this:this.each(function(){var u=d.queue(this,t,o);d._queueHooks(this,t),"fx"===t&&"inprogress"!==u[0]&&d.dequeue(this,t)})},dequeue:function(t){return this.each(function(){d.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,o){var l,u=1,f=d.Deferred(),p=this,v=this.length,C=function(){--u||f.resolveWith(p,[p])};for("string"!=typeof t&&(o=t,t=void 0),t=t||"fx";v--;)(l=M.get(p[v],t+"queueHooks"))&&l.empty&&(u++,l.empty.add(C));return C(),f.promise(o)}});var qt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=new RegExp("^(?:([+-])=|)("+qt+")([a-z%]*)$","i"),Ke=["Top","Right","Bottom","Left"],ze=O.documentElement,ut=function(t){return d.contains(t.ownerDocument,t)},Hn={composed:!0};ze.getRootNode&&(ut=function(t){return d.contains(t.ownerDocument,t)||t.getRootNode(Hn)===t.ownerDocument});var b=function(t,o){return"none"===(t=o||t).style.display||""===t.style.display&&ut(t)&&"none"===d.css(t,"display")};function nn(t,o,l,u){var f,p,v=20,C=u?function(){return u.cur()}:function(){return d.css(t,o,"")},k=C(),n=l&&l[3]||(d.cssNumber[o]?"":"px"),r=t.nodeType&&(d.cssNumber[o]||"px"!==n&&+k)&&kt.exec(d.css(t,o));if(r&&r[3]!==n){for(n=n||r[3],r=+(k/=2)||1;v--;)d.style(t,o,r+n),(1-p)*(1-(p=C()/k||.5))<=0&&(v=0),r/=p;d.style(t,o,(r*=2)+n),l=l||[]}return l&&(r=+r||+k||0,f=l[1]?r+(l[1]+1)*l[2]:+l[2],u&&(u.unit=n,u.start=r,u.end=f)),f}var jn={};function dt(t,o){for(var l,u,f,p,v,C,k,n=[],r=0,s=t.length;r<s;r++)(u=t[r]).style&&(l=u.style.display,o?("none"===l&&(n[r]=M.get(u,"display")||null,
vendor: 6,040 bytes, line 1
1n[r]||(u.style.display="")),""===u.style.display&&b(u)&&(n[r]=(k=v=p=void 0,v=(f=u).ownerDocument,(k=jn[C=f.nodeName])||(p=v.body.appendChild(v.createElement(C)),k=d.css(p,"display"),p.parentNode.removeChild(p),"none"===k&&(k="block"),jn[C]=k)))):"none"!==l&&(n[r]="none",M.set(u,"display",l)));for(r=0;r<s;r++)null!=n[r]&&(t[r].style.display=n[r]);return t}d.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){b(this)?d(this).show():d(this).hide()})}});var nt,At,Qe=/^(?:checkbox|radio)$/i,te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;nt=O.createDocumentFragment().appendChild(O.createElement("div")),(At=O.createElement("input")).setAttribute("type","radio"),At.setAttribute("checked","checked"),At.setAttribute("name","t"),nt.appendChild(At),_.checkClone=nt.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!nt.cloneNode(!0).lastChild.defaultValue,nt.innerHTML="<option></option>",_.option=!!nt.lastChild;var Y={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ae(t,o){var l;return l=typeof t.getElementsByTagName<"u"?t.getElementsByTagName(o||"*"):typeof t.querySelectorAll<"u"?t.querySelectorAll(o||"*"):[],void 0===o||o&&ne(t,o)?d.merge([t],l):l}function on(t,o){for(var l=0,u=t.length;l<u;l++)M.set(t[l],"globalEval",!o||M.get(o[l],"globalEval"))}Y.tbody=Y.tfoot=Y.colgroup=Y.caption=Y.thead,Y.th=Y.td,_.option||(Y.optgroup=Y.option=[1,"<select multiple='multiple'>","</select>"]);var On=/<|&#?\w+;/;function Mn(t,o,l,u,f){for(var p,v,C,k,n,r,s=o.createDocumentFragment(),a=[],e=0,i=t.length;e<i;e++)if((p=t[e])||0===p)if("object"===at(p))d.merge(a,p.nodeType?[p]:p);else if(On.test(p)){for(v=v||s.appendChild(o.createElement("div")),C=(te.exec(p)||["",""])[1].toLowerCase(),v.innerHTML=(k=Y[C]||Y._default)[1]+d.htmlPrefilter(p)+k[2],r=k[0];r--;)v=v.lastChild;d.merge(a,v.childNodes),(v=s.firstChild).textContent=""}else a.push(o.createTextNode(p));for(s.textContent="",e=0;p=a[e++];)if(u&&-1<d.inArray(p,u))f&&f.push(p);else if(n=ut(p),v=Ae(s.appendChild(p),"script"),n&&on(v),l)for(r=0;p=v[r++];)Te.test(p.type||"")&&l.push(p);return s}var rn=/^([^.]*)(?:\.(.+)|)/;function ht(){return!0}function ft(){return!1}function an(t,o,l,u,f,p){var v,C;if("object"==typeof o){for(C in"string"!=typeof l&&(u=u||l,l=void 0),o)an(t,C,l,u,o[C],p);return t}if(null==u&&null==f?(f=l,u=l=void 0):null==f&&("string"==typeof l?(f=u,u=void 0):(f=u,u=l,l=void 0)),!1===f)f=ft;else if(!f)return t;return 1===p&&(v=f,(f=function(k){return d().off(k),v.apply(this,arguments)}).guid=v.guid||(v.guid=d.guid++)),t.each(function(){d.event.add(this,o,f,u,l)})}function $t(t,o,l){l?(M.set(t,o,!1),d.event.add(t,o,{namespace:!1,handler:function(u){var f,p=M.get(this,o);if(1&u.isTrigger&&this[o]){if(p)(d.event.special[o]||{}).delegateType&&u.stopPropagation();else if(p=$e.call(arguments),M.set(this,o,p),this[o](),f=M.get(this,o),M.set(this,o,!1),p!==f)return u.stopImmediatePropagation(),u.preventDefault(),f}else p&&(M.set(this,o,d.event.trigger(p[0],p.slice(1),this)),u.stopPropagation(),u.isImmediatePropagationStopped=ht)}})):void 0===M.get(t,o)&&d.event.add(t,o,ht)}d.event={global:{},add:function(t,o,l,u,f){var p,v,C,k,n,r,s,a,e,i,c,h=M.get(t);if(Re(t))for(l.handler&&(l=(p=l).handler,f=p.selector),f&&d.find.matchesSelector(ze,f),l.guid||(l.guid=d.guid++),(k=h.events)||(k=h.events=Object.create(null)),(v=h.handle)||(v=h.handle=function(m){return typeof d<"u"&&d.event.triggered!==m.type?d.event.dispatch.apply(t,arguments):void 0}),n=(o=(o||"").match(be)||[""]).length;n--;)e=c=(C=rn.exec(o[n])||[])[1],i=(C[2]||"").split(".").sort(),e&&(s=d.event.special[e]||{},s=d.event.special[e=(f?s.delegateType:s.bindType)||e]||{},r=d.extend({type:e,origType:c,data:u,handler:l,guid:l.guid,selector:f,needsContext:f&&d.expr.match.needsContext.test(f),namespace:i.join(".")},p),(a=k[e])||((a=k[e]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(t,u,i,v)||t.addEventListener&&t.addEventListener(e,v)),s.add&&(s.add.call(t,r),r.handler.guid||(r.handler.guid=l.guid)),f?a.splice(a.delegateCount++,0,r):a.push(r),d.event.global[e]=!0)},remove:function(t,o,l,u,f){var p,v,C,k,n,r,s,a,e,i,c,h=M.hasData(t)&&M.get(t);if(h&&(k=h.events)){for(n=(o=(o||"").match(be)||[""]).length;n--;)if(e=c=(C=rn.exec(o[n])||[])[1],i=(C[2]||"").split(".").sort(),e){for(s=d.event.special[e]||{},a=k[e=(u?s.delegateType:s.bindType)||e]||[],C=C[2]&&new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.|)")+"(\\.|$)"),v=p=a.length;p--;)r=a[p],!f&&c!==r.origType||l&&l.guid!==r.guid||C&&!C.test(r.namespace)||u&&u!==r.selector&&("**"!==u||!r.selector)||(a.splice(p,1),r.selector&&a.delegateCount--,s.remove&&s.remove.call(t,r));v&&!a.length&&(s.teardown&&!1!==s.teardown.call(t,i,h.handle)||d.removeEvent(t,e,h.handle),delete k[e])}else for(e in k)d.event.remove(t,e+o[n],l,u,!0);d.isEmptyObject(k)&&M.remove(t,"handle events")}},dispatch:function(t){var o,l,u,f,p,v,C=new Array(arguments.length),k=d.event.fix(t),n=(M.get(this,"events")||Object.create(null))[k.type]||[],r=d.event.special[k.type]||{};for(C[0]=k,o=1;o<arguments.length;o++)C[o]=arguments[o];if(k.delegateTarget=this,!r.preDispatch||!1!==r.preDispatch.call(this,k)){for(v=d.event.handlers.call(this,k,n),o=0;(f=v[o++])&&!k.isPropagationStopped();)for(k.currentTarget=f.elem,l=0;(p=f.handlers[l++])&&!k.isImmediatePropagationStopped();)k.rnamespace&&!1!==p.namespace&&!k.rnamespace.test(p.namespace)||(k.handleObj=p,k.data=p.data,void 0!==(u=((d.event.special[p.origType]||{}).handle||p.handler).apply(f.elem,C))&&!1===(k.result=u)&&(k.preventDefault(),k.stopPropagation()));return r.postDispatch&&r.postDispatch.call(this,k),k.result}},handlers:function(t,o){var l,u,f,p,v,C=[],k=o.delegateCount,n=t.target;if(k&&n.nodeType&&!("click"===t.type&&1<=t.button))for(;n!==this;
vendor: 9,685 bytes, line 1
1n=n.parentNode||this)if(1===n.nodeType&&("click"!==t.type||!0!==n.disabled)){for(p=[],v={},l=0;l<k;l++)void 0===v[f=(u=o[l]).selector+" "]&&(v[f]=u.needsContext?-1<d(f,this).index(n):d.find(f,this,null,[n]).length),v[f]&&p.push(u);p.length&&C.push({elem:n,handlers:p})}return n=this,k<o.length&&C.push({elem:n,handlers:o.slice(k)}),C},addProp:function(t,o){Object.defineProperty(d.Event.prototype,t,{enumerable:!0,configurable:!0,get:G(o)?function(){if(this.originalEvent)return o(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(l){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:l})}})},fix:function(t){return t[d.expando]?t:new d.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var o=this||t;return Qe.test(o.type)&&o.click&&ne(o,"input")&&$t(o,"click",!0),!1},trigger:function(t){var o=this||t;return Qe.test(o.type)&&o.click&&ne(o,"input")&&$t(o,"click"),!0},_default:function(t){var o=t.target;return Qe.test(o.type)&&o.click&&ne(o,"input")&&M.get(o,"click")||ne(o,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},d.removeEvent=function(t,o,l){t.removeEventListener&&t.removeEventListener(o,l)},d.Event=function(t,o){if(!(this instanceof d.Event))return new d.Event(t,o);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?ht:ft,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,o&&d.extend(this,o),this.timeStamp=t&&t.timeStamp||Date.now(),this[d.expando]=!0},d.Event.prototype={constructor:d.Event,isDefaultPrevented:ft,isPropagationStopped:ft,isImmediatePropagationStopped:ft,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=ht,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=ht,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=ht,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},d.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},d.event.addProp),d.each({focus:"focusin",blur:"focusout"},function(t,o){function l(u){if(O.documentMode){var f=M.get(this,"handle"),p=d.event.fix(u);p.type="focusin"===u.type?"focus":"blur",p.isSimulated=!0,f(u),p.target===p.currentTarget&&f(p)}else d.event.simulate(o,u.target,d.event.fix(u))}d.event.special[t]={setup:function(){var u;if($t(this,t,!0),!O.documentMode)return!1;(u=M.get(this,o))||this.addEventListener(o,l),M.set(this,o,(u||0)+1)},trigger:function(){return $t(this,t),!0},teardown:function(){var u;if(!O.documentMode)return!1;(u=M.get(this,o)-1)?M.set(this,o,u):(this.removeEventListener(o,l),M.remove(this,o))},_default:function(u){return M.get(u.target,t)},delegateType:o},d.event.special[o]={setup:function(){var u=this.ownerDocument||this.document||this,f=O.documentMode?this:u,p=M.get(f,o);p||(O.documentMode?this.addEventListener(o,l):u.addEventListener(t,l,!0)),M.set(f,o,(p||0)+1)},teardown:function(){var u=this.ownerDocument||this.document||this,f=O.documentMode?this:u,p=M.get(f,o)-1;p?M.set(f,o,p):(O.documentMode?this.removeEventListener(o,l):u.removeEventListener(t,l,!0),M.remove(f,o))}}}),d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){d.event.special[t]={delegateType:o,bindType:o,handle:function(l){var u,f=l.relatedTarget,p=l.handleObj;return f&&(f===this||d.contains(this,f))||(l.type=p.origType,u=p.handler.apply(this,arguments),l.type=o),u}}}),d.fn.extend({on:function(t,o,l,u){return an(this,t,o,l,u)},one:function(t,o,l,u){return an(this,t,o,l,u,1)},off:function(t,o,l){var u,f;if(t&&t.preventDefault&&t.handleObj)return u=t.handleObj,d(t.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof t){for(f in t)this.off(f,o,t[f]);return this}return!1!==o&&"function"!=typeof o||(l=o,o=void 0),!1===l&&(l=ft),this.each(function(){d.event.remove(this,t,l,o)})}});var oe=/<script|<style|<link/i,fo=/checked\s*(?:[^=]|=\s*.checked.)/i,Bn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zn(t,o){return ne(t,"table")&&ne(11!==o.nodeType?o:o.firstChild,"tr")&&d(t).children("tbody")[0]||t}function Un(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function po(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function sn(t,o){var l,u,f,p,v,C;if(1===o.nodeType){if(M.hasData(t)&&(C=M.get(t).events))for(f in M.remove(o,"handle events"),C)for(l=0,u=C[f].length;l<u;l++)d.event.add(o,f,C[f][l]);Ne.hasData(t)&&(p=Ne.access(t),v=d.extend({},p),Ne.set(o,v))}}function wt(t,o,l,u){o=ce(o);var f,p,v,C,k,n,r=0,s=t.length,a=s-1,e=o[0],i=G(e);if(i||1<s&&"string"==typeof e&&!_.checkClone&&fo.test(e))return t.each(function(c){var h=t.eq(c);i&&(o[0]=e.call(this,c,h.html())),wt(h,o,l,u)});if(s&&(p=(f=Mn(o,t[0].ownerDocument,!1,t,u)).firstChild,1===f.childNodes.length&&(f=p),p||u)){for(C=(v=d.map(Ae(f,"script"),Un)).length;r<s;r++)k=f,r!==a&&(k=d.clone(k,!0,!0),C&&d.merge(v,Ae(k,"script"))),l.call(t[r],k,r);if(C)for(n=v[v.length-1].ownerDocument,d.map(v,po),r=0;r<C;r++)Te.test((k=v[r]).type||"")&&!M.access(k,"globalEval")&&d.contains(n,k)&&(k.src&&"module"!==(k.type||"").toLowerCase()?d._evalUrl&&!k.noModule&&d._evalUrl(k.src,{nonce:k.nonce||k.getAttribute("nonce")},n):Q(k.textContent.replace(Bn,""),k,n))}return t}function qn(t,o,l){for(var u,f=o?d.filter(o,t):t,p=0;null!=(u=f[p]);p++)l||1!==u.nodeType||d.cleanData(Ae(u)),u.parentNode&&(l&&ut(u)&&on(Ae(u,"script")),u.parentNode.removeChild(u));return t}d.extend({htmlPrefilter:function(t){return t},clone:function(t,o,l){var u,f,p,v,C,k,n,r=t.cloneNode(!0),s=ut(t);if(!(_.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||d.isXMLDoc(t)))for(v=Ae(r),u=0,f=(p=Ae(t)).length;u<f;u++)C=p[u],"input"===(n=(k=v[u]).nodeName.toLowerCase())&&Qe.test(C.type)?k.checked=C.checked:"input"!==n&&"textarea"!==n||(k.defaultValue=C.defaultValue);if(o)if(l)for(p=p||Ae(t),v=v||Ae(r),u=0,f=p.length;u<f;u++)sn(p[u],v[u]);else sn(t,r);return 0<(v=Ae(r,"script")).length&&on(v,!s&&Ae(t,"script")),r},cleanData:function(t){for(var o,l,u,f=d.event.special,p=0;void 0!==(l=t[p]);p++)if(Re(l)){if(o=l[M.expando]){if(o.events)for(u in o.events)f[u]?d.event.remove(l,u):d.removeEvent(l,u,o.handle);l[M.expando]=void 0}l[Ne.expando]&&(l[Ne.expando]=void 0)}}}),d.fn.extend({detach:function(t){return qn(this,t,!0)},remove:function(t){return qn(this,t)},text:function(t){return De(this,function(o){return void 0===o?d.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=o)})},null,t,arguments.length)},append:function(){return wt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zn(this,t).appendChild(t)})},prepend:function(){return wt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var o=zn(this,t);o.insertBefore(t,o.firstChild)}})},before:function(){return wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,o=0;null!=(t=this[o]);o++)1===t.nodeType&&(d.cleanData(Ae(t,!1)),t.textContent="");return this},clone:function(t,o){return t=null!=t&&t,o=o??t,this.map(function(){return d.clone(this,t,o)})},html:function(t){return De(this,function(o){var l=this[0]||{},u=0,f=this.length;if(void 0===o&&1===l.nodeType)return l.innerHTML;if("string"==typeof o&&!oe.test(o)&&!Y[(te.exec(o)||["",""])[1].toLowerCase()]){o=d.htmlPrefilter(o);try{for(;u<f;u++)1===(l=this[u]||{}).nodeType&&(d.cleanData(Ae(l,!1)),l.innerHTML=o);l=0}catch{}}l&&this.empty().append(o)},null,t,arguments.length)},replaceWith:function(){var t=[];return wt(this,arguments,function(o){var l=this.parentNode;d.inArray(this,t)<0&&(d.cleanData(Ae(this)),l&&l.replaceChild(o,this))},t)}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,o){d.fn[t]=function(l){for(var u,f=[],p=d(l),v=p.length-1,C=0;C<=v;C++)u=C===v?this:this.clone(!0),d(p[C])[o](u),x.apply(f,u.get());return this.pushStack(f)}});var Wt=new RegExp("^("+qt+")(?!px)[a-z%]+$","i"),_t=/^--/,Kt=function(t){var o=t.ownerDocument.defaultView;return o&&o.opener||(o=U),o.getComputedStyle(t)},ln=function(t,o,l){var u,f,p={};for(f in o)p[f]=t.style[f],t.style[f]=o[f];for(f in u=l.call(t),o)t.style[f]=p[f];return u},mo=new RegExp(Ke.join("|"),"i");function xt(t,o,l){var u,f,p,v,C=_t.test(o),k=t.style;return(l=l||Kt(t))&&(v=l.getPropertyValue(o)||l[o],C&&v&&(v=v.replace(_e,"$1")||void 0),""!==v||ut(t)||(v=d.style(t,o)),!_.pixelBoxStyles()&&Wt.test(v)&&mo.test(o)&&(u=k.width,f=k.minWidth,p=k.maxWidth,k.minWidth=k.maxWidth=k.width=v,v=l.width,k.width=u,k.minWidth=f,k.maxWidth=p)),void 0!==v?v+"":v}function Wn(t,o){return{get:function(){if(!t())return(this.get=o).apply(this,arguments);delete this.get}}}!function(){function t(){if(n){k.style.cssText="position:absolute;
1left:-11111px;width:60px;margin-top:1px;padding:0;border:0",n.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ze.appendChild(k).appendChild(n);var r=U.getComputedStyle(n);l="1%"!==r.top,C=12===o(r.marginLeft),n.style.right="60%",p=36===o(r.right),u=36===o(r.width),n.style.position="absolute",f=12===o(n.offsetWidth/3),ze.removeChild(k),n=null}}function o(r){return Math.round(parseFloat(r))}var l,u,f,p,v,C,k=O.createElement("div"),n=O.createElement("div");n.style&&(n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===n.style.backgroundClip,d.extend(_,{boxSizingReliable:function(){return t(),u},pixelBoxStyles:function(){return t(),p},pixelPosition:function(){return t(),l},reliableMarginLeft:function(){return t(),C},scrollboxSize:function(){return t(),f},reliableTrDimensions:function(){var r,s,a,e;return null==v&&(r=O.createElement("table"),s=O.createElement("tr"),a=O.createElement("div"),r.style.cssText="position:absolute;left:-11111px;border-collapse:separate",s.style.cssText="box-sizing:content-box;border:1px solid",s.style.height="1px",a.style.height="9px",a.style.display="block",ze.appendChild(r).appendChild(s).appendChild(a),e=U.getComputedStyle(s),v=parseInt(e.height,10)+parseInt(e.borderTopWidth,10)+parseInt(e.borderBottomWidth,10)===s.offsetHeight,ze.removeChild(r)),v}}))}();var cn=["Webkit","Moz","ms"],_n=O.createElement("div").style,un={};function dn(t){return d.cssProps[t]||un[t]||(t in _n?t:un[t]=function(l){for(var u=l[0].toUpperCase()+l.slice(1),f=cn.length;f--;)if((l=cn[f]+u)in _n)return l}(t)||t)}var vo=/^(none|table(?!-c[ea]).+)/,Kn={position:"absolute",visibility:"hidden",display:"block"},Vn={letterSpacing:"0",fontWeight:"400"};function hn(t,o,l){var u=kt.exec(o);return u?Math.max(0,u[2]-(l||0))+(u[3]||"px"):o}function fn(t,o,l,u,f,p){var v="width"===o?1:0,C=0,k=0,n=0;if(l===(u?"border":"content"))return 0;for(;v<4;v+=2)"margin"===l&&(n+=d.css(t,l+Ke[v],!0,f)),u?("content"===l&&(k-=d.css(t,"padding"+Ke[v],!0,f)),"margin"!==l&&(k-=d.css(t,"border"+Ke[v]+"Width",!0,f))):(k+=d.css(t,"padding"+Ke[v],!0,f),"padding"!==l?k+=d.css(t,"border"+Ke[v]+"Width",!0,f):C+=d.css(t,"border"+Ke[v]+"Width",!0,f));return!u&&0<=p&&(k+=Math.max(0,Math.ceil(t["offset"+o[0].toUpperCase()+o.slice(1)]-p-k-C-.5))||0),k+n}function pn(t,o,l){var u=Kt(t),f=(!_.boxSizingReliable()||l)&&"border-box"===d.css(t,"boxSizing",!1,u),p=f,v=xt(t,o,u),C="offset"+o[0].toUpperCase()+o.slice(1);if(Wt.test(v)){if(!l)return v;v="auto"}return(!_.boxSizingReliable()&&f||!_.reliableTrDimensions()&&ne(t,"tr")||"auto"===v||!parseFloat(v)&&"inline"===d.css(t,"display",!1,u))&&t.getClientRects().length&&(f="border-box"===d.css(t,"boxSizing",!1,u),(p=C in t)&&(v=t[C])),(v=parseFloat(v)||0)+fn(t,o,l||(f?"border":"content"),p,u,v)+"px"}function Ue(t,o,l,u,f){return new Ue.prototype.init(t,o,l,u,f)}d.extend({cssHooks:{opacity:{get:function(t,o){if(o){var l=xt(t,"opacity");return""===l?"1":l}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,o,l,u){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var f,p,v,C=Be(o),k=_t.test(o),n=t.style;if(k||(o=dn(C)),v=d.cssHooks[o]||d.cssHooks[C],void 0===l)return v&&"get"in v&&void 0!==(f=v.get(t,!1,u))?f:n[o];"string"==(p=typeof l)&&(f=kt.exec(l))&&f[1]&&(l=nn(t,o,f),p="number"),null!=l&&l==l&&("number"!==p||k||(l+=f&&f[3]||(d.cssNumber[C]?"":"px")),_.clearCloneStyle||""!==l||0!==o.indexOf("background")||(n[o]="inherit"),v&&"set"in v&&void 0===(l=v.set(t,l,u))||(k?n.setProperty(o,l):n[o]=l))}},css:function(t,o,l,u){var f,p,v,C=Be(o);return _t.test(o)||(o=dn(C)),(v=d.cssHooks[o]||d.cssHooks[C])&&"get"in v&&(f=v.get(t,!0,l)),void 0===f&&(f=xt(t,o,u)),"normal"===f&&o in Vn&&(f=Vn[o]),""===l||l?(p=parseFloat(f),!0===l||isFinite(p)?p||0:f):f}}),d.each(["height","width"],function(t,o){d.cssHooks[o]={get:function(l,u,f){if(u)return!vo.test(d.css(l,"display"))||l.getClientRects().length&&l.getBoundingClientRect().width?pn(l,o,f):ln(l,Kn,function(){return pn(l,o,f)})},set:function(l,u,f){var p,v=Kt(l),C=!_.scrollboxSize()&&"absolute"===v.position,k=(C||f)&&"border-box"===d.css(l,"boxSizing",!1,v),n=f?fn(l,o,f,k,v):0;return k&&C&&(n-=Math.ceil(l["offset"+o[0].toUpperCase()+o.slice(1)]-parseFloat(v[o])-fn(l,o,"border",!1,v)-.5)),n&&(p=kt.exec(u))&&"px"!==(p[3]||"px")&&(l.style[o]=u,u=d.css(l,o)),hn(0,u,n)}}}),d.cssHooks.marginLeft=Wn(_.reliableMarginLeft,function(t,o){if(o)return(parseFloat(xt(t,"marginLeft"))||t.getBoundingClientRect().left-ln(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(t,o){d.cssHooks[t+o]={expand:function(l){for(var u=0,f={}
vendor: 6,923 bytes, line 1
1,p="string"==typeof l?l.split(" "):[l];u<4;u++)f[t+Ke[u]+o]=p[u]||p[u-2]||p[0];return f}},"margin"!==t&&(d.cssHooks[t+o].set=hn)}),d.fn.extend({css:function(t,o){return De(this,function(l,u,f){var p,v,C={},k=0;if(Array.isArray(u)){for(p=Kt(l),v=u.length;k<v;k++)C[u[k]]=d.css(l,u[k],!1,p);return C}return void 0!==f?d.style(l,u,f):d.css(l,u)},t,o,1<arguments.length)}}),((d.Tween=Ue).prototype={constructor:Ue,init:function(t,o,l,u,f,p){this.elem=t,this.prop=l,this.easing=f||d.easing._default,this.options=o,this.start=this.now=this.cur(),this.end=u,this.unit=p||(d.cssNumber[l]?"":"px")},cur:function(){var t=Ue.propHooks[this.prop];return t&&t.get?t.get(this):Ue.propHooks._default.get(this)},run:function(t){var o,l=Ue.propHooks[this.prop];return this.pos=o=this.options.duration?d.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*o+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),l&&l.set?l.set(this):Ue.propHooks._default.set(this),this}}).init.prototype=Ue.prototype,(Ue.propHooks={_default:{get:function(t){var o;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(o=d.css(t.elem,t.prop,""))&&"auto"!==o?o:0},set:function(t){d.fx.step[t.prop]?d.fx.step[t.prop](t):1!==t.elem.nodeType||!d.cssHooks[t.prop]&&null==t.elem.style[dn(t.prop)]?t.elem[t.prop]=t.now:d.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},d.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},d.fx=Ue.prototype.init,d.fx.step={};var pt,Vt,mt,Gn,Xn=/^(?:toggle|show|hide)$/,go=/queueHooks$/;function Gt(){Vt&&(!1===O.hidden&&U.requestAnimationFrame?U.requestAnimationFrame(Gt):U.setTimeout(Gt,d.fx.interval),d.fx.tick())}function Yn(){return U.setTimeout(function(){pt=void 0}),pt=Date.now()}function It(t,o){var l,u=0,f={height:t};for(o=o?1:0;u<4;u+=2-o)f["margin"+(l=Ke[u])]=f["padding"+l]=t;return o&&(f.opacity=f.width=t),f}function Qn(t,o,l){for(var u,f=(Fe.tweeners[o]||[]).concat(Fe.tweeners["*"]),p=0,v=f.length;p<v;p++)if(u=f[p].call(l,o,t))return u}function Fe(t,o,l){var u,f,p=0,v=Fe.prefilters.length,C=d.Deferred().always(function(){delete k.elem}),k=function(){if(f)return!1;for(var s=pt||Yn(),a=Math.max(0,n.startTime+n.duration-s),e=1-(a/n.duration||0),i=0,c=n.tweens.length;i<c;i++)n.tweens[i].run(e);return C.notifyWith(t,[n,e,a]),e<1&&c?a:(c||C.notifyWith(t,[n,1,0]),C.resolveWith(t,[n]),!1)},n=C.promise({elem:t,props:d.extend({},o),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},l),originalProperties:o,originalOptions:l,startTime:pt||Yn(),duration:l.duration,tweens:[],createTween:function(s,a){var e=d.Tween(t,n.opts,s,a,n.opts.specialEasing[s]||n.opts.easing);return n.tweens.push(e),e},stop:function(s){var a=0,e=s?n.tweens.length:0;if(f)return this;for(f=!0;a<e;a++)n.tweens[a].run(1);return s?(C.notifyWith(t,[n,1,0]),C.resolveWith(t,[n,s])):C.rejectWith(t,[n,s]),this}}),r=n.props;for(function(s,a){var e,i,c,h,m;for(e in s)if(c=a[i=Be(e)],h=s[e],Array.isArray(h)&&(c=h[1],h=s[e]=h[0]),e!==i&&(s[i]=h,delete s[e]),(m=d.cssHooks[i])&&"expand"in m)for(e in h=m.expand(h),delete s[i],h)e in s||(s[e]=h[e],a[e]=c);else a[i]=c}(r,n.opts.specialEasing);p<v;p++)if(u=Fe.prefilters[p].call(n,t,r,n.opts))return G(u.stop)&&(d._queueHooks(n.elem,n.opts.queue).stop=u.stop.bind(u)),u;return d.map(r,Qn,n),G(n.opts.start)&&n.opts.start.call(t,n),n.progress(n.opts.progress).done(n.opts.done,n.opts.complete).fail(n.opts.fail).always(n.opts.always),d.fx.timer(d.extend(k,{elem:t,anim:n,queue:n.opts.queue})),n}d.Animation=d.extend(Fe,{tweeners:{"*":[function(t,o){var l=this.createTween(t,o);return nn(l.elem,t,kt.exec(o),l),l}]},tweener:function(t,o){G(t)?(o=t,t=["*"]):t=t.match(be);for(var l,u=0,f=t.length;u<f;u++)(Fe.tweeners[l=t[u]]=Fe.tweeners[l]||[]).unshift(o)},prefilters:[function(t,o,l){var u,f,p,v,C,k,n,r,s="width"in o||"height"in o,a=this,e={},i=t.style,c=t.nodeType&&b(t),h=M.get(t,"fxshow");for(u in l.queue||(null==(v=d._queueHooks(t,"fx")).unqueued&&(v.unqueued=0,C=v.empty.fire,v.empty.fire=function(){v.unqueued||C()}),v.unqueued++,a.always(function(){a.always(function(){v.unqueued--,d.queue(t,"fx").length||v.empty.fire()})})),o)if(Xn.test(f=o[u])){if(delete o[u],p=p||"toggle"===f,f===(c?"hide":"show")){if("show"!==f||!h||void 0===h[u])continue;c=!0}e[u]=h&&h[u]||d.style(t,u)}if((k=!d.isEmptyObject(o))||!d.isEmptyObject(e))for(u in s&&1===t.nodeType&&(l.overflow=[i.overflow,i.overflowX,i.overflowY],null==(n=h&&h.display)&&(n=M.get(t,"display")),"none"===(r=d.css(t,"display"))&&(n?r=n:(dt([t],!0),n=t.style.display||n,r=d.css(t,"display"),dt([t]))),("inline"===r||"inline-block"===r&&null!=n)&&"none"===d.css(t,"float")&&(k||(a.done(function(){i.display=n}),null==n&&(n="none"===(r=i.display)?"":r)),i.display="inline-block")),l.overflow&&(i.overflow="hidden",a.always(function(){i.overflow=l.overflow[0],i.overflowX=l.overflow[1],i.overflowY=l.overflow[2]})),k=!1,e)k||(h?"hidden"in h&&(c=h.hidden):h=M.access(t,"fxshow",{display:n}),p&&(h.hidden=!c),c&&dt([t],!0),a.done(function(){for(u in c||dt([t]),M.remove(t,"fxshow"),e)d.style(t,u,e[u])})),k=Qn(c?h[u]:0,u,a),u in h||(h[u]=k.start,c&&(k.end=k.start,k.start=0))}],prefilter:function(t,o){o?Fe.prefilters.unshift(t):Fe.prefilters.push(t)}}),d.speed=function(t,o,l){var u=t&&"object"==typeof t?d.extend({},t):{complete:l||!l&&o||G(t)&&t,duration:t,easing:l&&o||o&&!G(o)&&o};return d.fx.off?u.duration=0:"number"!=typeof u.duration&&(u.duration=u.duration in d.fx.speeds?d.fx.speeds[u.duration]:d.fx.speeds._default),null!=u.queue&&!0!==u.queue||(u.queue="fx"),u.old=u.complete,u.complete=function(){G(u.old)&&u.old.call(this),u.queue&&d.dequeue(this,u.queue)},u},d.fn.extend({fadeTo:function(t,o,l,u){return this.filter(b).css("opacity",0).show().end().animate({opacity:o},t,l,u)},animate:function(t,o,l,u){var f=d.isEmptyObject(t),p=d.speed(o,l,u),v=function(){var C=Fe(this,d.extend({},t),p);(f||M.get(this,"finish"))&&C.stop(!0)};return v.finish=v,f||!1===p.queue?this.each(v):this.queue(p.queue,v)},stop:function(t,o,l){var u=function(f){var p=f.stop;delete f.stop,p(l)};return"string"!=typeof t&&(l=o,o=t,t=void 0),o&&this.queue(t||"fx",[]),this.each(function(){var f=!0,p=null!=t&&t+"queueHooks",v=d.timers,C=M.get(this);if(p)C[p]&&C[p].stop&&u(C[p]);else for(p in C)C[p]&&C[p].stop&&go.test(p)&&u(C[p]);for(p=v.length;p--;)v[p].elem!==this||null!=t&&v[p].queue!==t||(v[p].anim.stop(l),f=!1,v.splice(p,1));!f&&l||d.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var o,l=M.get(this),u=l[t+"queue"],f=l[t+"queueHooks"],p=d.timers,v=u?u.length:0;for(l.finish=!0,d.queue(this,t,[]),f&&f.stop&&f.stop.call(this,!0),o=p.length;o--;)p[o].elem===this&&p[o].queue===t&&(p[o].anim.stop(!0),p.splice(o,1));for(o=0;o<v;
vendor: 6,793 bytes, line 1
1o++)u[o]&&u[o].finish&&u[o].finish.call(this);delete l.finish})}}),d.each(["toggle","show","hide"],function(t,o){var l=d.fn[o];d.fn[o]=function(u,f,p){return null==u||"boolean"==typeof u?l.apply(this,arguments):this.animate(It(o,!0),u,f,p)}}),d.each({slideDown:It("show"),slideUp:It("hide"),slideToggle:It("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,o){d.fn[t]=function(l,u,f){return this.animate(o,l,u,f)}}),d.timers=[],d.fx.tick=function(){var t,o=0,l=d.timers;for(pt=Date.now();o<l.length;o++)(t=l[o])()||l[o]!==t||l.splice(o--,1);l.length||d.fx.stop(),pt=void 0},d.fx.timer=function(t){d.timers.push(t),d.fx.start()},d.fx.interval=13,d.fx.start=function(){Vt||(Vt=!0,Gt())},d.fx.stop=function(){Vt=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(t,o){return t=d.fx&&d.fx.speeds[t]||t,this.queue(o=o||"fx",function(l,u){var f=U.setTimeout(l,t);u.stop=function(){U.clearTimeout(f)}})},mt=O.createElement("input"),Gn=O.createElement("select").appendChild(O.createElement("option")),mt.type="checkbox",_.checkOn=""!==mt.value,_.optSelected=Gn.selected,(mt=O.createElement("input")).value="t",mt.type="radio",_.radioValue="t"===mt.value;var Zn,Ct=d.expr.attrHandle;d.fn.extend({attr:function(t,o){return De(this,d.attr,t,o,1<arguments.length)},removeAttr:function(t){return this.each(function(){d.removeAttr(this,t)})}}),d.extend({attr:function(t,o,l){var u,f,p=t.nodeType;if(3!==p&&8!==p&&2!==p)return typeof t.getAttribute>"u"?d.prop(t,o,l):(1===p&&d.isXMLDoc(t)||(f=d.attrHooks[o.toLowerCase()]||(d.expr.match.bool.test(o)?Zn:void 0)),void 0!==l?null===l?void d.removeAttr(t,o):f&&"set"in f&&void 0!==(u=f.set(t,l,o))?u:(t.setAttribute(o,l+""),l):f&&"get"in f&&null!==(u=f.get(t,o))?u:null==(u=d.find.attr(t,o))?void 0:u)},attrHooks:{type:{set:function(t,o){if(!_.radioValue&&"radio"===o&&ne(t,"input")){var l=t.value;return t.setAttribute("type",o),l&&(t.value=l),o}}}},removeAttr:function(t,o){var l,u=0,f=o&&o.match(be);if(f&&1===t.nodeType)for(;l=f[u++];)t.removeAttribute(l)}}),Zn={set:function(t,o,l){return!1===o?d.removeAttr(t,l):t.setAttribute(l,l),l}},d.each(d.expr.match.bool.source.match(/\w+/g),function(t,o){var l=Ct[o]||d.find.attr;Ct[o]=function(u,f,p){var v,C,k=f.toLowerCase();return p||(C=Ct[k],Ct[k]=v,v=null!=l(u,f,p)?k:null,Ct[k]=C),v}});var bo=/^(?:input|select|textarea|button)$/i,Jn=/^(?:a|area)$/i;function vt(t){return(t.match(be)||[]).join(" ")}function ot(t){return t.getAttribute&&t.getAttribute("class")||""}function mn(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(be)||[]}d.fn.extend({prop:function(t,o){return De(this,d.prop,t,o,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[d.propFix[t]||t]})}}),d.extend({prop:function(t,o,l){var u,f,p=t.nodeType;if(3!==p&&8!==p&&2!==p)return 1===p&&d.isXMLDoc(t)||(f=d.propHooks[o=d.propFix[o]||o]),void 0!==l?f&&"set"in f&&void 0!==(u=f.set(t,l,o))?u:t[o]=l:f&&"get"in f&&null!==(u=f.get(t,o))?u:t[o]},propHooks:{tabIndex:{get:function(t){var o=d.find.attr(t,"tabindex");return o?parseInt(o,10):bo.test(t.nodeName)||Jn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(d.propHooks.selected={get:function(t){return null},set:function(t){}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this}),d.fn.extend({addClass:function(t){var o,l,u,f,p,v;return G(t)?this.each(function(C){d(this).addClass(t.call(this,C,ot(this)))}):(o=mn(t)).length?this.each(function(){if(u=ot(this),l=1===this.nodeType&&" "+vt(u)+" "){for(p=0;p<o.length;p++)l.indexOf(" "+(f=o[p])+" ")<0&&(l+=f+" ");v=vt(l),u!==v&&this.setAttribute("class",v)}}):this},removeClass:function(t){var o,l,u,f,p,v;return G(t)?this.each(function(C){d(this).removeClass(t.call(this,C,ot(this)))}):arguments.length?(o=mn(t)).length?this.each(function(){if(u=ot(this),l=1===this.nodeType&&" "+vt(u)+" "){for(p=0;p<o.length;p++)for(f=o[p];-1<l.indexOf(" "+f+" ");)l=l.replace(" "+f+" "," ");v=vt(l),u!==v&&this.setAttribute("class",v)}}):this:this.attr("class","")},toggleClass:function(t,o){var l,u,f,p,v=typeof t,C="string"===v||Array.isArray(t);return G(t)?this.each(function(k){d(this).toggleClass(t.call(this,k,ot(this),o),o)}):"boolean"==typeof o&&C?o?this.addClass(t):this.removeClass(t):(l=mn(t),this.each(function(){if(C)for(p=d(this),f=0;f<l.length;f++)p.hasClass(u=l[f])?p.removeClass(u):p.addClass(u);else void 0!==t&&"boolean"!==v||((u=ot(this))&&M.set(this,"__className__",u),this.setAttribute&&this.setAttribute("class",u||!1===t?"":M.get(this,"__className__")||""))}))},hasClass:function(t){var o,l,u=0;for(o=" "+t+" ";l=this[u++];)if(1===l.nodeType&&-1<(" "+vt(ot(l))+" ").indexOf(o))return!0;return!1}});var eo=/\r/g;d.fn.extend({val:function(t){var o,l,u,f=this[0];return arguments.length?(u=G(t),this.each(function(p){var v;1===this.nodeType&&(null==(v=u?t.call(this,p,d(this).val()):t)?v="":"number"==typeof v?v+="":Array.isArray(v)&&(v=d.map(v,function(C){return null==C?"":C+""})),(o=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()])&&"set"in o&&void 0!==o.set(this,v,"value")||(this.value=v))})):f?(o=d.valHooks[f.type]||d.valHooks[f.nodeName.toLowerCase()])&&"get"in o&&void 0!==(l=o.get(f,"value"))?l:"string"==typeof(l=f.value)?l.replace(eo,""):l??"":void 0}}),d.extend({valHooks:{option:{get:function(t){return d.find.attr(t,"value")??vt(d.text(t))}},select:{get:function(t){var o,l,u,f=t.options,p=t.selectedIndex,v="select-one"===t.type,C=v?null:[],k=v?p+1:f.length;for(u=p<0?k:v?p:0;u<k;u++)if(((l=f[u]).selected||u===p)&&!l.disabled&&(!l.parentNode.disabled||!ne(l.parentNode,"optgroup"))){if(o=d(l).val(),v)return o;C.push(o)}return C},set:function(t,o){for(var l,u,f=t.options,p=d.makeArray(o),v=f.length;v--;)((u=f[v]).selected=-1<d.inArray(d.valHooks.option.get(u),p))&&(l=!0);return l||(t.selectedIndex=-1),p}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(t,o){if(Array.isArray(o))return t.checked=-1<d.inArray(d(t).val(),o)}},_.checkOn||(d.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Lt=U.location,vn={guid:Date.now()},gn=/\?/;d.parseXML=function(t){var o,l;if(!t||"string"!=typeof t)return null;try{o=(new U.DOMParser).parseFromString(t,"text/xml")}catch{}return l=o&&o.getElementsByTagName("parsererror")[0],o&&!l||d.error("Invalid XML: "+(l?d.map(l.childNodes,function(u){return u.textContent}).join("\n"):t)),o};var Xt=/^(?:focusinfocus|focusoutblur)$/,bn=function(t){t.stopPropagation()};d.extend(d.event,{trigger:function(t,o,l,u){var f,p,v,C,k,n,r,s,a=[l||O],e=Ie.call(t,"type")?t.type:t,i=Ie.call(t,"namespace")?t.namespace.split("."):[];
vendor: 9,013 bytes, line 1
1if(p=s=v=l=l||O,3!==l.nodeType&&8!==l.nodeType&&!Xt.test(e+d.event.triggered)&&(-1<e.indexOf(".")&&(e=(i=e.split(".")).shift(),i.sort()),k=e.indexOf(":")<0&&"on"+e,(t=t[d.expando]?t:new d.Event(e,"object"==typeof t&&t)).isTrigger=u?2:3,t.namespace=i.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=l),o=null==o?[t]:d.makeArray(o,[t]),r=d.event.special[e]||{},u||!r.trigger||!1!==r.trigger.apply(l,o))){if(!u&&!r.noBubble&&!bt(l)){for(Xt.test((C=r.delegateType||e)+e)||(p=p.parentNode);p;p=p.parentNode)a.push(p),v=p;v===(l.ownerDocument||O)&&a.push(v.defaultView||v.parentWindow||U)}for(f=0;(p=a[f++])&&!t.isPropagationStopped();)s=p,t.type=1<f?C:r.bindType||e,(n=(M.get(p,"events")||Object.create(null))[t.type]&&M.get(p,"handle"))&&n.apply(p,o),(n=k&&p[k])&&n.apply&&Re(p)&&(t.result=n.apply(p,o),!1===t.result&&t.preventDefault());return t.type=e,u||t.isDefaultPrevented()||r._default&&!1!==r._default.apply(a.pop(),o)||!Re(l)||k&&G(l[e])&&!bt(l)&&((v=l[k])&&(l[k]=null),d.event.triggered=e,t.isPropagationStopped()&&s.addEventListener(e,bn),l[e](),t.isPropagationStopped()&&s.removeEventListener(e,bn),d.event.triggered=void 0,v&&(l[k]=v)),t.result}},simulate:function(t,o,l){var u=d.extend(new d.Event,l,{type:t,isSimulated:!0});d.event.trigger(u,null,o)}}),d.fn.extend({trigger:function(t,o){return this.each(function(){d.event.trigger(t,o,this)})},triggerHandler:function(t,o){var l=this[0];if(l)return d.event.trigger(t,o,l,!0)}});var yo=/\[\]$/,we=/\r?\n/g,to=/^(?:submit|button|image|reset|file)$/i,no=/^(?:input|select|textarea|keygen)/i;function Yt(t,o,l,u){var f;if(Array.isArray(o))d.each(o,function(p,v){l||yo.test(t)?u(t,v):Yt(t+"["+("object"==typeof v&&null!=v?p:"")+"]",v,l,u)});else if(l||"object"!==at(o))u(t,o);else for(f in o)Yt(t+"["+f+"]",o[f],l,u)}d.param=function(t,o){var l,u=[],f=function(p,v){var C=G(v)?v():v;u[u.length]=encodeURIComponent(p)+"="+encodeURIComponent(C??"")};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!d.isPlainObject(t))d.each(t,function(){f(this.name,this.value)});else for(l in t)Yt(l,t[l],o,f);return u.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=d.prop(this,"elements");return t?d.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!d(this).is(":disabled")&&no.test(this.nodeName)&&!to.test(t)&&(this.checked||!Qe.test(t))}).map(function(t,o){var l=d(this).val();return null==l?null:Array.isArray(l)?d.map(l,function(u){return{name:o.name,value:u.replace(we,"\r\n")}}):{name:o.name,value:l.replace(we,"\r\n")}}).get()}});var ko=/%20/g,wo=/#.*$/,oo=/([?&])_=[^&]*/,xo=/^(.*?):[ \t]*([^\r\n]*)$/gm,yn=/^(?:GET|HEAD)$/,kn=/^\/\//,Pt={},Tt={},Qt="*/".concat("*"),Dt=O.createElement("a");function wn(t){return function(o,l){"string"!=typeof o&&(l=o,o="*");var u,f=0,p=o.toLowerCase().match(be)||[];if(G(l))for(;u=p[f++];)"+"===u[0]?(u=u.slice(1)||"*",(t[u]=t[u]||[]).unshift(l)):(t[u]=t[u]||[]).push(l)}}function xn(t,o,l,u){var f={},p=t===Tt;function v(C){var k;return f[C]=!0,d.each(t[C]||[],function(n,r){var s=r(o,l,u);return"string"!=typeof s||p||f[s]?p?!(k=s):void 0:(o.dataTypes.unshift(s),v(s),!1)}),k}return v(o.dataTypes[0])||!f["*"]&&v("*")}function Ve(t,o){var l,u,f=d.ajaxSettings.flatOptions||{};for(l in o)void 0!==o[l]&&((f[l]?t:u||(u={}))[l]=o[l]);return u&&d.extend(!0,t,u),t}Dt.href=Lt.href,d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,o){return o?Ve(Ve(t,d.ajaxSettings),o):Ve(d.ajaxSettings,t)},ajaxPrefilter:wn(Pt),ajaxTransport:wn(Tt),ajax:function(t,o){"object"==typeof t&&(o=t,t=void 0);var l,u,f,p,v,C,k,n,r,s,a=d.ajaxSetup({},o=o||{}),e=a.context||a,i=a.context&&(e.nodeType||e.jquery)?d(e):d.event,c=d.Deferred(),h=d.Callbacks("once memory"),m=a.statusCode||{},w={},y={},S="canceled",E={readyState:0,getResponseHeader:function(I){var L;if(k){if(!p)for(p={};L=xo.exec(f);)p[L[1].toLowerCase()+" "]=(p[L[1].toLowerCase()+" "]||[]).concat(L[2]);L=p[I.toLowerCase()+" "]}return null==L?null:L.join(", ")},getAllResponseHeaders:function(){return k?f:null},setRequestHeader:function(I,L){return null==k&&(I=y[I.toLowerCase()]=y[I.toLowerCase()]||I,w[I]=L),this},overrideMimeType:function(I){return null==k&&(a.mimeType=I),this},statusCode:function(I){var L;if(I)if(k)E.always(I[E.status]);else for(L in I)m[L]=[m[L],I[L]];return this},abort:function(I){var L=I||S;return l&&l.abort(L),$(0,L),this}};if(c.promise(E),a.url=((t||a.url||Lt.href)+"").replace(kn,Lt.protocol+"//"),a.type=o.method||o.type||a.method||a.type,a.dataTypes=(a.dataType||"*").toLowerCase().match(be)||[""],null==a.crossDomain){C=O.createElement("a");try{C.href=a.url,C.href=C.href,a.crossDomain=Dt.protocol+"//"+Dt.host!=C.protocol+"//"+C.host}catch{a.crossDomain=!0}}if(a.data&&a.processData&&"string"!=typeof a.data&&(a.data=d.param(a.data,a.traditional)),xn(Pt,a,o,E),k)return E;for(r in(n=d.event&&a.global)&&0==d.active++&&d.event.trigger("ajaxStart"),a.type=a.type.toUpperCase(),a.hasContent=!yn.test(a.type),u=a.url.replace(wo,""),a.hasContent?a.data&&a.processData&&0===(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&(a.data=a.data.replace(ko,"+")):(s=a.url.slice(u.length),a.data&&(a.processData||"string"==typeof a.data)&&(u+=(gn.test(u)?"&":"?")+a.data,delete a.data),!1===a.cache&&(u=u.replace(oo,"$1"),s=(gn.test(u)?"&":"?")+"_="+vn.guid+++s),a.url=u+s),a.ifModified&&(d.lastModified[u]&&E.setRequestHeader("If-Modified-Since",d.lastModified[u]),d.etag[u]&&E.setRequestHeader("If-None-Match",d.etag[u])),(a.data&&a.hasContent&&!1!==a.contentType||o.contentType)&&E.setRequestHeader("Content-Type",a.contentType),E.setRequestHeader("Accept",a.dataTypes[0]&&a.accepts[a.dataTypes[0]]?a.accepts[a.dataTypes[0]]+("*"!==a.dataTypes[0]?", "+Qt+"; q=0.01":""):a.accepts["*"]),a.headers)E.setRequestHeader(r,a.headers[r]);if(a.beforeSend&&(!1===a.beforeSend.call(e,E,a)||k))return E.abort();if(S="abort",h.add(a.complete),E.done(a.success),E.fail(a.error),l=xn(Tt,a,o,E)){if(E.readyState=1,n&&i.trigger("ajaxSend",[E,a]),k)return E;a.async&&0<a.timeout&&(v=U.setTimeout(function(){E.abort("timeout")},a.timeout));try{k=!1,l.send(w,$)}catch(I){if(k)throw I;$(-1,I)}}else $(-1,"No Transport");function $(I,L,R,q){var K,fe,pe,ie,ye,ve=L;k||(k=!0,v&&U.clearTimeout(v),l=void 0,f=q||"",E.readyState=0<I?4:0,K=200<=I&&I<300||304===I,R&&(ie=function(re,ae,ge){for(var Je,Se,z,de,me=re.contents,se=re.dataTypes;"*"===se[0];)se.shift(),void 0===Je&&(Je=re.mimeType||ae.getResponseHeader("Content-Type"));if(Je)for(Se in me)if(me[Se]&&me[Se].test(Je)){se.unshift(Se);break}if(se[0]in ge)z=se[0];else{for(Se in ge){if(!se[0]||re.converters[Se+" "+se[0]]){z=Se;break}de||(de=Se)}z=z||de}if(z)return z!==se[0]&&se.unshift(z),ge[z]}(a,E,R)),!K&&-1<d.inArray("script",a.dataTypes)&&d.inArray("json",a.dataTypes)<0&&(a.converters["text script"]=function(){}),ie=function(re,ae,ge,Je){var Se,z,de,me,se,it={},Zt=re.dataTypes.slice();if(Zt[1])for(de in re.converters)it[de.toLowerCase()]=re.converters[de];for(z=Zt.shift();z;)if(re.responseFields[z]&&(ge[re.responseFields[z]]=ae),!se&&Je&&re.dataFilter&&(ae=re.dataFilter(ae,re.dataType)),se=z,z=Zt.shift())if("*"===z)z=se;else if("*"!==se&&se!==z){if(!(de=it[se+" "+z]||it["* "+z]))for(Se in it)if((me=Se.split(" "))[1]===z&&(de=it[se+" "+me[0]]||it["* "+me[0]])){!0===de?de=it[Se]:!0!==it[Se]&&(z=me[0],Zt.unshift(me[1]));break}if(!0!==de)if(de&&re.throws)ae=de(ae);else try{ae=de(ae)}catch(ro){return{state:"parsererror",error:de?ro:"No conversion from "+se+" to "+z}}}return{state:"success",data:ae}}(a,ie,E,K),K?(a.ifModified&&((ye=E.getResponseHeader("Last-Modified"))&&(d.lastModified[u]=ye),(ye=E.getResponseHeader("etag"))&&(d.etag[u]=ye)),204===I||"HEAD"===a.type?ve="nocontent":304===I?ve="notmodified":(ve=ie.state,fe=ie.data,K=!(pe=ie.error))):(pe=ve,!I&&ve||(ve="error",I<0&&(I=0))),E.status=I,E.statusText=(L||ve)+"",K?c.resolveWith(e,[fe,ve,E]):c.rejectWith(e,[E,ve,pe]),E.statusCode(m),m=void 0,n&&i.trigger(K?"ajaxSuccess":"ajaxError",[E,a,K?fe:pe]),h.fireWith(e,[E,ve]),n&&(i.trigger("ajaxComplete",[E,a]),--d.active||d.event.trigger("ajaxStop")))}return E},getJSON:function(t,o,l){return d.get(t,o,l,"json")},getScript:function(t,o){return d.get(t,void 0,o,"script")}}),d.each(["get","post"],function(t,o){d[o]=function(l,u,f,p){return G(u)&&(p=p||f,f=u,u=void 0),d.aja
vendor: 4,145 bytes, line 1
1x(d.extend({url:l,type:o,dataType:p,data:u,success:f},d.isPlainObject(l)&&l))}}),d.ajaxPrefilter(function(t){var o;for(o in t.headers)"content-type"===o.toLowerCase()&&(t.contentType=t.headers[o]||"")}),d._evalUrl=function(t,o,l){return d.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(u){d.globalEval(u,o,l)}})},d.fn.extend({wrapAll:function(t){var o;return this[0]&&(G(t)&&(t=t.call(this[0])),o=d(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&o.insertBefore(this[0]),o.map(function(){for(var l=this;l.firstElementChild;)l=l.firstElementChild;return l}).append(this)),this},wrapInner:function(t){return G(t)?this.each(function(o){d(this).wrapInner(t.call(this,o))}):this.each(function(){var o=d(this),l=o.contents();l.length?l.wrapAll(t):o.append(t)})},wrap:function(t){var o=G(t);return this.each(function(l){d(this).wrapAll(o?t.call(this,l):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(t){return!d.expr.pseudos.visible(t)},d.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new U.XMLHttpRequest}catch{}};var gt={0:200,1223:204},Ze=d.ajaxSettings.xhr();_.cors=!!Ze&&"withCredentials"in Ze,_.ajax=Ze=!!Ze,d.ajaxTransport(function(t){var o,l;if(_.cors||Ze&&!t.crossDomain)return{send:function(u,f){var p,v=t.xhr();if(v.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(p in t.xhrFields)v[p]=t.xhrFields[p];for(p in t.mimeType&&v.overrideMimeType&&v.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)v.setRequestHeader(p,u[p]);o=function(C){return function(){o&&(o=l=v.onload=v.onerror=v.onabort=v.ontimeout=v.onreadystatechange=null,"abort"===C?v.abort():"error"===C?"number"!=typeof v.status?f(0,"error"):f(v.status,v.statusText):f(gt[v.status]||v.status,v.statusText,"text"!==(v.responseType||"text")||"string"!=typeof v.responseText?{binary:v.response}:{text:v.responseText},v.getAllResponseHeaders()))}},v.onload=o(),l=v.onerror=v.ontimeout=o("error"),void 0!==v.onabort?v.onabort=l:v.onreadystatechange=function(){4===v.readyState&&U.setTimeout(function(){o&&l()})},o=o("abort");try{v.send(t.hasContent&&t.data||null)}catch(C){if(o)throw C}},abort:function(){o&&o()}}}),d.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return d.globalEval(t),t}}}),d.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),d.ajaxTransport("script",function(t){var o,l;if(t.crossDomain||t.scriptAttrs)return{send:function(u,f){o=d("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",l=function(p){o.remove(),l=null,p&&f("error"===p.type?404:200,p.type)}),O.head.appendChild(o[0])},abort:function(){l&&l()}}});var Cn,io=[],Tn=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=io.pop()||d.expando+"_"+vn.guid++;return this[t]=!0,t}}),d.ajaxPrefilter("json jsonp",function(t,o,l){var u,f,p,v=!1!==t.jsonp&&(Tn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tn.test(t.data)&&"data");if(v||"jsonp"===t.dataTypes[0])return u=t.jsonpCallback=G(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v?t[v]=t[v].replace(Tn,"$1"+u):!1!==t.jsonp&&(t.url+=(gn.test(t.url)?"&":"?")+t.jsonp+"="+u),t.converters["script json"]=function(){return p||d.error(u+" was not called"),p[0]},t.dataTypes[0]="json",f=U[u],U[u]=function(){p=arguments},l.always(function(){void 0===f?d(U).removeProp(u):U[u]=f,t[u]&&(t.jsonpCallback=o.jsonpCallback,io.push(u)),p&&G(f)&&f(p[0]),p=f=void 0}),"script"}),_.createHTMLDocument=((Cn=O.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>
1",2===Cn.childNodes.length),d.parseHTML=function(t,o,l){return"string"!=typeof t?[]:("boolean"==typeof o&&(l=o,o=!1),o||(_.createHTMLDocument?((u=(o=O.implementation.createHTMLDocument("")).createElement("base")).href=O.location.href,o.head.appendChild(u)):o=O),p=!l&&[],(f=en.exec(t))?[o.createElement(f[1])]:(f=Mn([t],o,p),p&&p.length&&d(p).remove(),d.merge([],f.childNodes)));var u,f,p},d.fn.load=function(t,o,l){var u,f,p,v=this,C=t.indexOf(" ");return-1<C&&(u=vt(t.slice(C)),t=t.slice(0,C)),G(o)?(l=o,o=void 0):o&&"object"==typeof o&&(f="POST"),0<v.length&&d.ajax({url:t,type:f||"GET",dataType:"html",data:o}).done(function(k){p=arguments,v.html(u?d("<div>").append(d.parseHTML(k)).find(u):k)}).always(l&&function(k,n){v.each(function(){l.apply(this,p||[k.responseText,n,k])})}),this},d.expr.pseudos.animated=function(t){return d.grep(d.timers,function(o){return t===o.elem}).length},d.offset={setOffset:function(t,o,l){var u,f,p,v,C,k,n=d.css(t,"position"),r=d(t),s={};"static"===n&&(t.style.position="relative"),C=r.offset(),p=d.css(t,"top"),k=d.css(t,"left"),("absolute"===n||"fixed"===n)&&-1<(p+k).indexOf("auto")?(v=(u=r.position()).top,f=u.left):(v=parseFloat(p)||0,f=parseFloat(k)||0),G(o)&&(o=o.call(t,l,d.extend({},C))),null!=o.top&&(s.top=o.top-C.top+v),null!=o.left&&(s.left=o.left-C.left+f),"using"in o?o.using.call(t,s):r.css(s)}},d.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(f){d.offset.setOffset(this,t,f)});var o,l,u=this[0];return u?u.getClientRects().length?{top:(o=u.getBoundingClientRect()).top+(l=u.ownerDocument.defaultView).pageYOffset,left:o.left+l.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,o,l,u=this[0],f={top:0,left:0};if("fixed"===d.css(u,"position"))o=u.getBoundingClientRect();else{for(o=this.offset(),l=u.ownerDocument,t=u.offsetParent||l.documentElement;t&&(t===l.body||t===l.documentElement)&&"static"===d.css(t,"position");)t=t.parentNode;t&&t!==u&&1===t.nodeType&&((f=d(t).offset()).top+=d.css(t,"borderTopWidth",!0),f.left+=d.css(t,"borderLeftWidth",!0))}
1return{top:o.top-f.top-d.css(u,"marginTop",!0),left:o.left-f.left-d.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===d.css(t,"position");)t=t.offsetParent;return t||ze})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var l="pageYOffset"===o;d.fn[t]=function(u){return De(this,function(f,p,v){var C;if(bt(f)?C=f:9===f.nodeType&&(C=f.defaultView),void 0===v)return C?C[o]:f[p];C?C.scrollTo(l?C.pageXOffset:v,l?v:C.pageYOffset):f[p]=v},t,u,arguments.length)}}),d.each(["top","left"],function(t,o){d.cssHooks[o]=Wn(_.pixelPosition,function(l,u){if(u)return u=xt(l,o),Wt.test(u)?d(l).position()[o]+"px":u})}),d.each({Height:"height",Width:"width"},function(t,o){d.each({padding:"inner"+t,content:o,"":"outer"+t},function(l,u){d.fn[u]=function(f,p){var v=arguments.length&&(l||"boolean"!=typeof f),C=l||(!0===f||!0===p?"margin":"border");return De(this,function(k,n,r){var s;return bt(k)?0===u.indexOf("outer")?k["inner"+t]:k.document.documentElement["client"+t]:9===k.nodeType?(s=k.documentElement,Math.max(k.body["scroll"+t],s["scroll"+t],k.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?d.css(k,n,C):d.style(k,n,r,C)},o,v?f:void 0,v)}})}),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,o){d.fn[o]=function(l){return this.on(o,l)}}),d.fn.extend({bind:function(t,o,l){return this.on(t,null,o,l)},unbind:function(t,o){return this.off(t,null,o)},delegate:function(t,o,l,u){return this.on(o,t,l,u)},undelegate:function(t,o,l){return 1===arguments.length?this.off(t,"**"):this.off(o,t||"**",l)},hover:function(t,o){return this.on("mouseenter",t).on("mouseleave",o||t)}}),d.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,o){d.fn[o]=function(l,u){return 0<arguments.length?this.on(o,null,l,u):this.trigger(o)}});var Co=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;d.proxy=function(t,o){var l,u,f;if("string"==typeof o&&(l=t[o],o=t,t=l),G(t))return u=$e.call(arguments,2),(f=function(){return t.apply(o||this,u.concat($e.call(arguments)))}).guid=t.guid=t.guid||d.guid++,f},d.holdReady=function(t){t?d.readyWait++:d.ready(!0)},d.isArray=Array.isArray,d.parseJSON=JSON.parse,d.nodeName=ne,d.isFunction=G,d.isWindow=bt,d.camelCase=Be,d.type=at,d.now=Date.now,d.isNumeric=function(t){var o=d.type(t);return("number"===o||"string"===o)&&!isNaN(t-parseFloat(t))},d.trim=function(t){return null==t?"":(t+"").replace(Co,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return d});var To=U.jQuery,So=U.$;return d.noConflict=function(t){return U.$===d&&(U.$=So),t&&U.jQuery===d&&(U.jQuery=To),d},typeof We>"u"&&(U.jQuery=U.$=d),d}),function(U,We){if("object"==typeof exports&&"object"==typeof module)module.exports=We(require("jQuery"));else if("function"==typeof define&&define.amd)define(["jQuery"],We);else{var he=We("object"==typeof exports?require("jQuery"):U.jQuery);for(var Ce in he)("object"==typeof exports?exports:U)[Ce]=he[Ce]}}(self,function(U){return(()=>{"use strict";var We={9770:(ce,x,ue)=>{var rt=ue(1145),Ge=ue.n(rt);Ge().summernote=Ge().summernote||{lang:{}},Ge().extend(Ge().summernote.lang,{"en-US":{font:{bold:"Bold",italic:"Italic",underline:"Underline",clear:"Remove Font Style",height:"Line Height",name:"Font Family",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",size:"Font Size",sizeunit:"Font Size Unit"},image:{image:"Picture",insert:"Insert Image",resizeFull:"Resize full",resizeHalf:"Resize half",resizeQuarter:"Resize quarter",resizeNone:"Original size",floatLeft:"Float Left",floatRight:"Float Right",floatNone:"Remove float",shapeRounded:"Shape: Rounded",shapeCircle:"Shape: Circle",shapeThumbnail:"Shape: Thumbnail",shapeNone:"Shape: None",dragImageHere:"Drag image or text here",dropImage:"Drop image or Text",selectFromFiles:"Select from files",maximumFileSize:"Maximum file size",maximumFileSizeError:"Maximum file size exceeded.",url:"Image URL",remove:"Remove Image",original:"Original"},video:{video:"Video",videoLink:"Video Link",insert:"Insert Video",url:"Video URL",providers:"(YouTube, Google Drive, Vimeo, Vine, Instagram, DailyMotion, Youku, Peertube)"},link:{link:"Link",insert:"Insert Link",unlink:"Unlink",edit:"Edit",textToDisplay:"Text to display",url:"To what URL should this link go?",openInNewWindow:"Open in new window",useProtocol:"Use default protocol"},table:{table:"Table",addRowAbove:"Add row above",addRowBelow:"Add row below",addColLeft:"Add column left",addColRight:"Add column right",delRow:"Delete row",delCol:"Delete column",delTable:"Delete table"},hr:{insert:"Insert Horizontal Rule"},style:{style:"Style",p:"Normal",blockquote:"Quote",pre:"Code",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6"},lists:{unordered:"Unordered list",ordered:"Ordered list"},options:{help:"Help",fullscreen:"Full Screen",codeview:"Code View"},paragraph:{paragraph:"Paragraph",outdent:"Outdent",indent:"Indent",left:"Align left",center:"Align center",right:"Align right",justify:"Justify full"}
vendor: 21,783 bytes, line 1
1,color:{recent:"Recent Color",more:"More Color",background:"Background Color",foreground:"Text Color",transparent:"Transparent",setTransparent:"Set transparent",reset:"Reset",resetToDefault:"Reset to default",cpSelect:"Select"},shortcut:{shortcuts:"Keyboard shortcuts",close:"Close",textFormatting:"Text formatting",action:"Action",paragraphFormatting:"Paragraph formatting",documentStyle:"Document Style",extraKeys:"Extra keys"},help:{escape:"Escape",insertParagraph:"Insert Paragraph",undo:"Undo the last command",redo:"Redo the last command",tab:"Tab",untab:"Untab",bold:"Set a bold style",italic:"Set a italic style",underline:"Set a underline style",strikethrough:"Set a strikethrough style",removeFormat:"Clean a style",justifyLeft:"Set left align",justifyCenter:"Set center align",justifyRight:"Set right align",justifyFull:"Set full align",insertUnorderedList:"Toggle unordered list",insertOrderedList:"Toggle ordered list",outdent:"Outdent on current paragraph",indent:"Indent on current paragraph",formatPara:"Change current block's format as a paragraph(P tag)",formatH1:"Change current block's format as H1",formatH2:"Change current block's format as H2",formatH3:"Change current block's format as H3",formatH4:"Change current block's format as H4",formatH5:"Change current block's format as H5",formatH6:"Change current block's format as H6",insertHorizontalRule:"Insert horizontal rule","linkDialog.show":"Show Link Dialog"},history:{undo:"Undo",redo:"Redo"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"},output:{noSelection:"No Selection Made!"}}})},1145:ce=>{ce.exports=U}},he={};function Ce(ce){var x=he[ce];if(void 0!==x)return x.exports;var ue=he[ce]={exports:{}};return We[ce](ue,ue.exports,Ce),ue.exports}Ce.n=ce=>{var x=ce&&ce.__esModule?()=>ce.default:()=>ce;return Ce.d(x,{a:x}),x},Ce.d=(ce,x)=>{for(var ue in x)Ce.o(x,ue)&&!Ce.o(ce,ue)&&Object.defineProperty(ce,ue,{enumerable:!0,get:x[ue]})},Ce.o=(ce,x)=>Object.prototype.hasOwnProperty.call(ce,x),Ce.r=ce=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})};var $e={};return(()=>{Ce.r($e);var ce=Ce(1145),x=Ce.n(ce),ue=(Ce(9770),["sans-serif","serif","monospace","cursive","fantasy"]);function rt(n){return-1===x().inArray(n.toLowerCase(),ue)?"'".concat(n,"'"):n}var Ge,Ie=navigator.userAgent,Ht=/MSIE|Trident/i.test(Ie);if(Ht){var jt=/MSIE (\d+[.]\d+)/.exec(Ie);jt&&(Ge=parseFloat(jt[1])),(jt=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(Ie))&&(Ge=parseFloat(jt[1]))}var _=/Edge\/\d+/.test(Ie),G="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,bt=Ht?"DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted":"input";const O={isMac:navigator.appVersion.indexOf("Mac")>-1,isMSIE:Ht,isEdge:_,isFF:!_&&/firefox/i.test(Ie),isPhantom:/PhantomJS/i.test(Ie),isWebkit:!_&&/webkit/i.test(Ie),isChrome:!_&&/chrome/i.test(Ie),isSafari:!_&&/safari/i.test(Ie)&&!/chrome/i.test(Ie),browserVersion:Ge,isSupportTouch:G,isFontInstalled:function(n){var r="Comic Sans MS"===n?"Courier New":"Comic Sans MS",s="mmmmmmmmmmwwwww",a=document.createElement("canvas").getContext("2d");a.font="200px '"+r+"'";var e=a.measureText(s).width;return a.font="200px "+rt(n)+', "'+r+'"',e!==a.measureText(s).width},isW3CRangeSupport:!!document.createRange,inputEventName:bt,genericFontFamilies:ue,validFontName:rt};var En=0;const Q={eq:function(n){return function(r){return n===r}},eq2:function(n,r){return n===r},peq2:function(n){return function(r,s){return r[n]===s[n]}},ok:function(){return!0},fail:function(){return!1},self:function(n){return n},not:function(n){return function(){return!n.apply(n,arguments)}},and:function(n,r){return function(s){return n(s)&&r(s)}},invoke:function(n,r){return function(){return n[r].apply(n,arguments)}},resetUniqueId:function(){En=0},uniqueId:function(n){var r=++En+"";return n?n+r:r},rect2bnd:function(n){var r=x()(document);return{top:n.top+r.scrollTop(),left:n.left+r.scrollLeft(),width:n.right-n.left,height:n.bottom-n.top}},invertObject:function(n){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[n[s]]=s);return r},namespaceToCamel:function(n,r){return(r=r||"")+n.split(".").map(function(s){return s.substring(0,1).toUpperCase()+s.substring(1)}).join("")},debounce:function(n,r,s){var a;return function(){var e=this,i=arguments,h=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||n.apply(e,i)},r),h&&n.apply(e,i)}},isValidUrl:function(n){return/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(n)}};function at(n){return n[0]}function Ot(n){return n[n.length-1]}function Nn(n){return n.slice(1)}function d(n,r){if(n&&n.length&&r){if(n.indexOf)return-1!==n.indexOf(r);if(n.contains)return n.contains(r)}return!1}const D={head:at,last:Ot,initial:function(n){return n.slice(0,n.length-1)},tail:Nn,prev:function(n,r){if(n&&n.length&&r){var s=n.indexOf(r);return-1===s?null:n[s-1]}return null},next:function(n,r){if(n&&n.length&&r){var s=n.indexOf(r);return-1===s?null:n[s+1]}return null},find:function(n,r){for(var s=0,a=n.length;s<a;s++){var e=n[s];if(r(e))return e}},contains:d,all:function(n,r){for(var s=0,a=n.length;s<a;s++)if(!r(n[s]))return!1;return!0},sum:function(n,r){return r=r||Q.self,n.reduce(function(s,a){return s+r(a)},0)},from:function(n){for(var r=[],s=n.length,a=-1;++a<s;)r[a]=n[a];return r},isEmpty:function(n){return!n||!n.length},clusterBy:function(n,r){return n.length?Nn(n).reduce(function(s,a){var e=Ot(s);return r(Ot(e),a)?e[e.length]=a:s[s.length]=[a],s},[[at(n)]]):[]},compact:function(n){for(var r=[],s=0,a=n.length;s<a;s++)n[s]&&r.push(n[s]);return r},unique:function(n){for(var r=[],s=0,a=n.length;s<a;s++)d(r,n[s])||r.push(n[s]);return r}};var ne=String.fromCharCode(160);function je(n){return n&&x()(n).hasClass("note-editable")}function ke(n){return n=n.toUpperCase(),function(r){return r&&r.nodeName.toUpperCase()===n}}function Oe(n){return n&&3===n.nodeType}function J(n){return n&&/^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^AUDIO|^VIDEO|^EMBED/.test(n.nodeName.toUpperCase())}function _e(n){return!je(n)&&n&&/^DIV|^P|^LI|^H[1-7]/.test(n.nodeName.toUpperCase())}var uo=ke("PRE"),An=ke("LI"),Me=ke("TABLE"),Mt=ke("DATA");function Xe(n){return!(Bt(n)||Jt(n)||$n(n)||_e(n)||Me(n)||Et(n)||Mt(n))}function Jt(n){return n&&/^UL|^OL/.test(n.nodeName.toUpperCase())}var $n=ke("HR");function en(n){return n&&/^TD|^TH/.test(n.nodeName.toUpperCase())}var Et=ke("BLOCKQUOTE");function Bt(n){return en(n)||Et(n)||je(n)}var In=ke("A"),ho=ke("BODY"),zt=O.isMSIE&&O.browserVersion<11?"&nbsp;":"<br>";function Pe(n){return Oe(n)?n.nodeValue.length:n?n.childNodes.length:0}function be(n){var r=Pe(n);return 0===r||!Oe(n)&&1===r&&n.innerHTML===zt||!(!D.all(n.childNodes,Oe)||""!==n.innerHTML)}function st(n){J(n)||Pe(n)||(n.innerHTML=zt)}function lt(n,r){for(;n;){if(r(n))return n;if(je(n))break;n=n.parentNode}return null}function ct(n,r){r=r||Q.fail;var s=[];return lt(n,function(a){return je(a)||s.push(a),r(a)}),s}function Ln(n,r){r=r||Q.fail;for(var s=[];n&&!r(n);)s.push(n),n=n.nextSibling;return s}function Nt(n,r){var s=r.nextSibling,a=r.parentNode;return s?a.insertBefore(n,s):a.appendChild(n),n}function yt(n,r){return x().each(r,function(s,a){n.appendChild(a)}),n}function De(n){return 0===n.offset}function Ut(n){return n.offset===Pe(n.node)}function Pn(n){return De(n)||Ut(n)}function Dn(n,r){for(;n&&n!==r;){if(0!==Re(n))return!1;n=n.parentNode}return!0}function Be(n,r){if(!r)return!1;for(;n&&n!==r;){if(Re(n)!==Pe(n.parentNode)-1)return!1;n=n.parentNode}return!0}function Re(n){for(var r=0;n=n.previousSibling;)r+=1;return r}function Ye(n){return!!(n&&n.childNodes&&n.childNodes.length)}function M(n,r){var s,a;if(0===n.offset){if(je(n.node))return null;s=n.node.parentNode,a=Re(n.node)}else Ye(n.node)?a=Pe(s=n.node.childNodes[n.offset-1]):(s=n.node,a=r?0:n.offset-1);return{node:s,offset:a}}function Ne(n,r){var s,a;if(Pe(n.node)===n.offset){if(je(n.node))return null;var e=Fn(n.node);e?(s=e,a=0):(s=n.node.parentNode,a=Re(n.node)+1)}else Ye(n.node)?(s=n.node.childNodes[n.offset],a=0):(s=n.node,a=r?Pe(n.node):n.offset+1);return{node:s,offset:a}}function Rn(n,r){var s,a=0;if(be(n.node))return null===n.node?null:{node:s=n.node.nextSibling,offset:a=0};if(Pe(n.node)===n.offset){if(je(n.node))return null;s=n.node.parentNode,a=Re(n.node)+1,je(s)&&(s=n.node.nextSibling,a=0)}else if(Ye(n.node)){if(a=0,be(s=n.node.childNodes[n.offset]))return be(n.node.nextSibling)?null:{node:n.node.nextSibling,offset:a}}else if(s=n.node,a=r?Pe(n.node):n.offset+1,be(s))return null;return{node:s,offset:a}}function Fn(n){if(n.nextSibling&&n.parent===n.nextSibling.parent)return Oe(n.nextSibling)?n.nextSibling:Fn(n.nextSibling)}function tn(n,r){return n.node===r.node&&n.offset===r.offset}function qt(n,r){var s=r&&r.isSkipPaddingBlankHTML,a=r&&r.isNotSplitEdgePoint,e=r&&r.isDiscardEmptySplits;if(e&&(s=!0),Pn(n)&&(Oe(n.node)||a)){if(De(n))return n.node;if(Ut(n))return n.node.nextSibling}if(Oe(n.node))return n.node.splitText(n.offset);var i=n.node.childNodes[n.offset],c=Nt(n.node.cloneNode(!1),n.node);return yt(c,Ln(i)),s||(st(n.node),st(c)),e&&(be(n.node)&&ze(n.node),be(c))?(ze(c),n.node.nextSibling):c}function kt(n,r,s){var a=ct(r.node,Q.eq(n));return a.length?1===a.length?qt(r,s):a.reduce(function(e,i){return e===r.node&&(e=qt(r,s)),qt({node:i,offset:e?Re(e):Pe(i)},s)}):null}function Ke(n){return document.createElement(n)}function ze(n,r){if(n&&n.parentNode){if(n.removeNode)return n.removeNode(r);var s=n.parentNode;if(!r){for(var a=[],e=0,i=n.childNodes.length;e<i;e++)a.push(n.childNodes[e]);for(var c=0,h=a.length;c<h;c++)s.insertBefore(a[c],n)}s.removeChild(n)}}var ut=ke("TEXTAREA");function Hn(n,r){var s=ut(n[0])?n.val():n.html();return r?s.replace(/[\n\r]/g,""):s}const b={NBSP_CHAR:ne,ZERO_WIDTH_NBSP_CHAR:"\ufeff",blank:zt,emptyPara:"<p>".concat(zt,"</p>"),makePredByNodeName:ke,isEditable:je,isControlSizing:function(n){return n&&x()(n).hasClass("note-control-sizing")},isText:Oe,isElement:function(n){return n&&1===n.nodeType},isVoid:J,isPara:_e,isPurePara:function(n){return _e(n)&&!An(n)},isHeading:function(n){return n&&/^H[1-7]/.test(n.nodeName.toUpperCase())},isInline:Xe,isBlock:Q.not(Xe),isBodyInline:function(n){return Xe(n)&&!lt(n,_e)},isBody:ho,isParaInline:function(n){return Xe(n)&&!!lt(n,_e)},isPre:uo,isList:Jt,isTable:Me,isData:Mt,isCell:en,isBlockquote:Et,isBodyContainer:Bt,isAnchor:In,isDiv:ke("DIV"),isLi:An,isBR:ke("BR"),isSpan:ke("SPAN"),isB:ke("B"),isU:ke("U"),isS:ke("S"),isI:ke("I"),isImg:ke("IMG"),isTextarea:ut,deepestChildIsEmpty:function(n){do{if(null===n.firstElementChild||""===n.firstElementChild.innerHTML)break}while(n=n.firstElementChild);return be(n)},isEmpty:be,isEmptyAnchor:Q.and(In,be),isClosestSibling:function(n,r){return n.nextSibling===r||n.previousSibling===r},withClosestSiblings:function(n,r){r=r||Q.ok;var s=[];return n.previousSibling&&r(n.previousSibling)&&s.push(n.previousSibling),s.push(n),n.nextSibling&&r(n.nextSibling)&&s.push(n.nextSibling),s},nodeLength:Pe,isLeftEdgePoint:De,isRightEdgePoint:Ut,isEdgePoint:Pn,isLeftEdgeOf:Dn,isRightEdgeOf:Be,isLeftEdgePointOf:function(n,r){return De(n)&&Dn(n.node,r)},isRightEdgePointOf:function(n,r){return Ut(n)&&Be(n.node,r)},prevPoint:M,nextPoint:Ne,nextPointWithEmptyNode:Rn,isSamePoint:tn,isVisiblePoint:function(n){if(Oe(n.node)||!Ye(n.node)||be(n.node))return!0;var r=n.node.childNodes[n.offset-1],s=n.node.childNodes[n.offset];return!((r&&!J(r)||s&&!J(s))&&!Me(s))},prevPointUntil:function(n,r){for(;n;){if(r(n))return n;n=M(n)}return null},nextPointUntil:function(n,r){for(;n;){if(r(n))return n;n=Ne(n)}return null},isCharPoint:function(n){if(!Oe(n.node))return!1;var r=n.node.nodeValue.charAt(n.offset-1);return r&&" "!==r&&r!==ne},isSpacePoint:function(n){if(!Oe(n.node))return!1;var r=n.node.nodeValue.charAt(n.offset-1);return" "===r||r===ne},walkPoint:function(n,r,s,a){for(var e=n;e&&(s(e),!tn(e,r));)e=Rn(e,a&&n.node!==e.node&&r.node!==e.node)},ancestor:lt,singleChildAncestor:function(n,r){for(n=n.parentNode;n&&1===Pe(n);){if(r(n))return n;if(je(n))break;n=n.parentNode}return null},listAncestor:ct,lastAncestor:function(n,r){var s=ct(n);return D.last(s.filter(r))},listNext:Ln,listPrev:function(n,r){r=r||Q.fail;for(var s=[];n&&!r(n);)s.push(n),n=n.previousSibling;return s},listDescendant:function(n,r){var s=[];return r=r||Q.ok,function a(e){n!==e&&r(e)&&s.push(e);for(var i=0,c=e.childNodes.length;i<c;i++)a(e.childNodes[i])}(n),s},commonAncestor:function(n,r){for(var s=ct(n),a=r;a;a=a.parentNode)if(s.indexOf(a)>-1)return a;return null},wrap:function(n,r){var s=n.parentNode,a=x()("<"+r+">")[0];return s.insertBefore(a,n),a.appendChild(n),a},insertAfter:Nt,appendChildNodes:yt,position:Re,hasChildren:Ye,makeOffsetPath:function(n,r){return ct(r,Q.eq(n)).map(Re).reverse()},fromOffsetPath:function(n,r){for(var s=n,a=0,e=r.length;a<e;a++)s=s.childNodes.length<=r[a]?s.childNodes[s.childNodes.length-1]:s.childNodes[r[a]];return s},splitTree:kt,splitPoint:function(n,r){var s,a,e=r?_e:Bt,i=ct(n.node,e),c=D.last(i)||n.node;e(c)?(s=i[i.length-2],a=c):a=(s=c).parentNode;var h=s&&kt(s,n,{isSkipPaddingBlankHTML:r,isNotSplitEdgePoint:r});return h||a!==n.node||(h=n.node.childNodes[n.offset]),{rightNode:h,container:a}},create:Ke,createText:function(n){return document.createTextNode(n)},remove:ze,removeWhile:function(n,r){for(;n&&!je(n)&&r(n);){var s=n.parentNode;ze(n),n=s}},replace:function(n,r){if(n.nodeName.toUpperCase()===r.toUpperCase())return n;var s=Ke(r);return n.style.cssText&&(s.style.cssText=n.style.cssText),yt(s,D.from(n.childNodes)),Nt(s,n),ze(n),s},html:function(n,r){var s=Hn(n);return r&&(s=(s=s.replace(/<(\/?)(\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g,function(a,e,i){i=i.toUpperCase();var c=/^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(i)&&!!e,h=/^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(i);return a+(c||h?"\n":"")})).trim()),s},value:Hn,posFromPlaceholder:function(n){var r=x()(n),s=r.offset(),a=r.outerHeight(!0);return{left:s.left,top:s.top+a}},attachEvents:function(n,r){Object.keys(r).forEach(function(s){n.on(s,r[s])})},detachEvents:function(n,r){Object.keys(r).forEach(function(s){n.off(s,r[s])})},isCustomStyleTag:function(n){return n&&!Oe(n)&&D.contains(n.classList,"note-styletag")}};var jn=function(){function n(e,i){(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.$note=e,this.memos={},this.modules={},this.layoutInfo={},this.options=x().extend(!0,{},i),x().summernote.ui=x().summernote.ui_template(this.options),this.ui=x().summernote.ui,this.initialize()}var s;return s=[{key:"initialize",value:function(){return this.layoutInfo=this.ui.createLayout(this.$note),this._initialize(),this.$note.hide(),this}},{key:"destroy",value:function(){this._destroy(),this.$note.removeData("summernote"),this.ui.removeLayout(this.$note,this.layoutInfo)}},{key:"reset",value:function(){var e=this.isDisabled();this.code(b.emptyPara),this._destroy(),this._initialize(),e&&this.disable()}},{key:"_initialize",value:function(){var e=this;this.options.id=Q.uniqueId(x().now()),this.options.container=this.options.container||this.layoutInfo.editor;var i=x().extend({},this.options.buttons);Object.keys(i).forEach(function(h){e.memo("button."+h,i[h])});var c=x().extend({},this.options.modules,x().summernote.plugins||{});Object.keys(c).forEach(function(h){e.module(h,c[h],!0)}),Object.keys(this.modules).forEach(function(h){e.initializeModule(h)})}},{key:"_destroy",value:function(){var e=this;Object.keys(this.modules).reverse().forEach(function(i){e.removeModule(i)}),Object.keys(this.memos).forEach(function(i){e.removeMemo(i)}),this.triggerEvent("destroy",this)}},{key:"code",value:function(e){var i=this.invoke("codeview.isActivated");if(void 0===e)return this.invoke("codeview.sync"),i?this.layoutInfo.codable.val():this.layoutInfo.editable.html();i?this.invoke("codeview.sync",e):this.layoutInfo.editable.html(e),this.$note.val(e),this.triggerEvent("change",e,this.layoutInfo.editable)}},{key:"isDisabled",value:function(){return"false"===this.layoutInfo.editable.attr("contenteditable")}},{key:"enable",value:function(){this.layoutInfo.editable.attr("contenteditable",!0),this.invoke("toolbar.activate",!0),this.triggerEvent("disable",!1),this.options.editing=!0}},{key:"disable",value:function(){this.invoke("codeview.isActivated")&&this.invoke("codeview.deactivate"),this.layoutInfo.editable.attr("contenteditable",!1),this.options.editing=!1,this.invoke("toolbar.deactivate",!0),this.triggerEvent("disable",!0)}},{key:"triggerEvent",value:function(){var e=D.head(arguments),i=D.tail(D.from(arguments)),c=this.options.callbacks[Q.namespaceToCamel(e,"on")];c&&c.apply(this.$note[0],i),this.$note.trigger("summernote."+e,i)}},{key:"initializeModule",value:function(e){var i=this.modules[e];i.shouldInitialize=i.shouldInitialize||Q.ok,i.shouldInitialize()&&(i.initialize&&i.initialize(),i.events&&b.attachEvents(this.$note,i.events))}},{key:"module",value:function(e,i,c){if(1===arguments.length)return this.modules[e];this.modules[e]=new i(this),c||this.initializeModule(e)}},{key:"removeModule",value:function(e){var i=this.modules[e];i.shouldInitialize()&&(i.events&&b.detachEvents(this.$note,i.events),i.destroy&&i.destroy()),delete this.modules[e]}},{key:"memo",value:function(e,i){if(1===arguments.length)return this.memos[e];this.memos[e]=i}},{key:"removeMemo",value:function(e){this.memos[e]&&this.memos[e].destroy&&this.memos[e].destroy(),delete this.memos[e]}},{key:"createInvokeHandlerAndUpdateState",value:function(e,i){var c=this;return function(h){c.createInvokeHandler(e,i)(h),c.invoke("buttons.updateCurrentStyle")}}},{key:"createInvokeHandler",value:function(e,i){var c=this;return function(h){h.preventDefault();var m=x()(h.target);c.invoke(e,i||m.closest("[data-value]").data("value"),m)}}},{key:"invoke",value:function(){var e=D.head(arguments),i=D.tail(D.from(arguments)),c=e.split("."),h=c.length>1,m=h&&D.head(c),w=h?D.last(c):D.head(c),y=this.modules[m||"editor"];return!m&&this[w]?this[w].apply(this,i):y&&y[w]&&y.shouldInitialize()?y[w].apply(y,i):void 0}}],s&&function nn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();function nt(n,r){var s,a,e=n.parentElement(),i=document.body.createTextRange(),c=D.from(e.childNodes);for(s=0;s<c.length;s++)if(!b.isText(c[s])){if(i.moveToElementText(c[s]),i.compareEndPoints("StartToStart",n)>=0)break;a=c[s]}if(0!==s&&b.isText(c[s-1])){var h=document.body.createTextRange(),m=null;h.moveToElementText(a||e),h.collapse(!a),m=a?a.nextSibling:e.firstChild;var w=n.duplicate();w.setEndPoint("StartToStart",h);for(var y=w.text.replace(/[\r\n]/g,"").length;y>m.nodeValue.length&&m.nextSibling;)y-=m.nodeValue.length,m=m.nextSibling;r&&m.nextSibling&&b.isText(m.nextSibling)&&y===m.nodeValue.length&&(y-=m.nodeValue.length,m=m.nextSibling),e=m,s=y}return{cont:e,offset:s}}function At(n){var r=document.body.createTextRange(),s=function a(e,i){var c,h;if(b.isText(e)){var m=b.listPrev(e,Q.not(b.isText)),w=D.last(m).previousSibling;c=w||e.parentNode,i+=D.sum(D.tail(m),b.nodeLength),h=!w}else{if(b.isText(c=e.childNodes[i]||e))return a(c,0);i=0,h=!1}return{node:c,collapseToStart:h,offset:i}}(n.node,n.offset);return r.moveToElementText(s.node),r.collapse(s.collapseToStart),r.moveStart("character",s.offset),r}x().fn.extend({summernote:function(){var n=x().type(D.head(arguments)),r="string"===n,s="object"===n,a=x().extend({},x().summernote.options,s?D.head(arguments):{});a.langInfo=x().extend(!0,{},x().summernote.lang["en-US"],x().summernote.lang[a.lang]),a.icons=x().extend(!0,{},x().summernote.options.icons,a.icons),a.tooltip="auto"===a.tooltip?!O.isSupportTouch:a.tooltip,this.each(function(c,h){var m=x()(h);if(!m.data("summernote")){var w=new jn(m,a);m.data("summernote",w),m.data("summernote").triggerEvent("init",w.layoutInfo)}});var e=this.first();if(e.length){var i=e.data("summernote");if(r)return i.invoke.apply(i,D.from(arguments));a.focus&&i.invoke("editor.focus")}return this}});var Qe=function(){function n(e,i,c,h){(function(m,w){if(!(m instanceof w))throw new TypeError("Cannot call a class as a function")})(this,n),this.sc=e,this.so=i,this.ec=c,this.eo=h,this.isOnEditable=this.makeIsOn(b.isEditable),this.isOnList=this.makeIsOn(b.isList),this.isOnAnchor=this.makeIsOn(b.isAnchor),this.isOnCell=this.makeIsOn(b.isCell),this.isOnData=this.makeIsOn(b.isData)}var s;return(s=[{key:"nativeRange",value:function(){if(O.isW3CRangeSupport){var e=document.createRange();return e.setStart(this.sc,this.so),e.setEnd(this.ec,this.eo),e}var i=At({node:this.sc,offset:this.so});return i.setEndPoint("EndToEnd",At({node:this.ec,offset:this.eo})),i}},{key:"getPoints",value:function(){return{sc:this.sc,so:this.so,ec:this.ec,eo:this.eo}}},{key:"getStartPoint",value:function(){return{node:this.sc,offset:this.so}}},{key:"getEndPoint",value:function(){return{node:this.ec,offset:this.eo}}},{key:"select",value:function(){var e=this.nativeRange();if(O.isW3CRangeSupport){var i=document.getSelection();i.rangeCount>0&&i.removeAllRanges(),i.addRange(e)}else e.select();return this}},{key:"scrollIntoView",value:function(e){var i=x()(e).height();return e.scrollTop+i<this.sc.offsetTop&&(e.scrollTop+=Math.abs(e.scrollTop+i-this.sc.offsetTop)),this}},{key:"normalize",value:function(){var e=function(h,m){if(!h||b.isVisiblePoint(h)&&(!b.isEdgePoint(h)||b.isRightEdgePoint(h)&&!m||b.isLeftEdgePoint(h)&&m||b.isRightEdgePoint(h)&&m&&b.isVoid(h.node.nextSibling)||b.isLeftEdgePoint(h)&&!m&&b.isVoid(h.node.previousSibling)||b.isBlock(h.node)&&b.isEmpty(h.node)))return h;var w=b.ancestor(h.node,b.isBlock),y=!1;if(!y){var S=b.prevPoint(h)||{node:null};
vendor: 1,493 bytes, line 1
1y=(b.isLeftEdgePointOf(h,w)||b.isVoid(S.node))&&!m}var E=!1;if(!E){var $=b.nextPoint(h)||{node:null};E=(b.isRightEdgePointOf(h,w)||b.isVoid($.node))&&m}if(y||E){if(b.isVisiblePoint(h))return h;m=!m}return(m?b.nextPointUntil(b.nextPoint(h),b.isVisiblePoint):b.prevPointUntil(b.prevPoint(h),b.isVisiblePoint))||h},i=e(this.getEndPoint(),!1),c=this.isCollapsed()?i:e(this.getStartPoint(),!0);return new n(c.node,c.offset,i.node,i.offset)}},{key:"nodes",value:function(e,i){e=e||Q.ok;var c=i&&i.includeAncestor,h=i&&i.fullyContains,m=this.getStartPoint(),w=this.getEndPoint(),y=[],S=[];return b.walkPoint(m,w,function(E){var $;b.isEditable(E.node)||(h?(b.isLeftEdgePoint(E)&&S.push(E.node),b.isRightEdgePoint(E)&&D.contains(S,E.node)&&($=E.node)):$=c?b.ancestor(E.node,e):E.node,$&&e($)&&y.push($))},!0),D.unique(y)}},{key:"commonAncestor",value:function(){return b.commonAncestor(this.sc,this.ec)}},{key:"expand",value:function(e){var i=b.ancestor(this.sc,e),c=b.ancestor(this.ec,e);if(!i&&!c)return new n(this.sc,this.so,this.ec,this.eo);var h=this.getPoints();return i&&(h.sc=i,h.so=0),c&&(h.ec=c,h.eo=b.nodeLength(c)),new n(h.sc,h.so,h.ec,h.eo)}},{key:"collapse",value:function(e){return e?new n(this.sc,this.so,this.sc,this.so):new n(this.ec,this.eo,this.ec,this.eo)}},{key:"splitText",value:function(){var e=this.sc===this.ec,i=this.getPoints();return b.isText(this.ec)&&!b.isEdgePoint(this.getEndPoint())&&this.ec.splitText(this.eo),b.isText(this.sc)&&!b.isEdgePoint(this.getStartPoint())&&
vendor: 6,545 bytes, line 1
1(i.sc=this.sc.splitText(this.so),i.so=0,e&&(i.ec=i.sc,i.eo=this.eo-this.so)),new n(i.sc,i.so,i.ec,i.eo)}},{key:"deleteContents",value:function(){if(this.isCollapsed())return this;var e=this.splitText(),i=e.nodes(null,{fullyContains:!0}),c=b.prevPointUntil(e.getStartPoint(),function(m){return!D.contains(i,m.node)}),h=[];return x().each(i,function(m,w){var y=w.parentNode;c.node!==y&&1===b.nodeLength(y)&&h.push(y),b.remove(w,!1)}),x().each(h,function(m,w){b.remove(w,!1)}),new n(c.node,c.offset,c.node,c.offset).normalize()}},{key:"makeIsOn",value:function(e){return function(){var i=b.ancestor(this.sc,e);return!!i&&i===b.ancestor(this.ec,e)}}},{key:"isLeftEdgeOf",value:function(e){if(!b.isLeftEdgePoint(this.getStartPoint()))return!1;var i=b.ancestor(this.sc,e);return i&&b.isLeftEdgeOf(this.sc,i)}},{key:"isCollapsed",value:function(){return this.sc===this.ec&&this.so===this.eo}},{key:"wrapBodyInlineWithPara",value:function(){if(b.isBodyContainer(this.sc)&&b.isEmpty(this.sc))return this.sc.innerHTML=b.emptyPara,new n(this.sc.firstChild,0,this.sc.firstChild,0);var e,i=this.normalize();if(b.isParaInline(this.sc)||b.isPara(this.sc))return i;if(b.isInline(i.sc)){var c=b.listAncestor(i.sc,Q.not(b.isInline));e=D.last(c),b.isInline(e)||(e=c[c.length-2]||i.sc.childNodes[i.so])}else e=i.sc.childNodes[i.so>0?i.so-1:0];if(e){var h=b.listPrev(e,b.isParaInline).reverse();if((h=h.concat(b.listNext(e.nextSibling,b.isParaInline))).length){var m=b.wrap(D.head(h),"p");b.appendChildNodes(m,D.tail(h))}}return this.normalize()}},{key:"insertNode",value:function(e){var i=this;(b.isText(e)||b.isInline(e))&&(i=this.wrapBodyInlineWithPara().deleteContents());var c=b.splitPoint(i.getStartPoint(),b.isInline(e));return c.rightNode?(c.rightNode.parentNode.insertBefore(e,c.rightNode),b.isEmpty(c.rightNode)&&b.isPara(e)&&c.rightNode.parentNode.removeChild(c.rightNode)):c.container.appendChild(e),e}},{key:"pasteHTML",value:function(e){e=x().trim(e);var i=x()("<div></div>").html(e)[0],c=D.from(i.childNodes),h=this,m=!1;return h.so>=0&&(c=c.reverse(),m=!0),c=c.map(function(w){return h.insertNode(w)}),m&&(c=c.reverse()),c}},{key:"toString",value:function(){var e=this.nativeRange();return O.isW3CRangeSupport?e.toString():e.text}},{key:"getWordRange",value:function(e){var i=this.getEndPoint();if(!b.isCharPoint(i))return this;var c=b.prevPointUntil(i,function(h){return!b.isCharPoint(h)});return e&&(i=b.nextPointUntil(i,function(h){return!b.isCharPoint(h)})),new n(c.node,c.offset,i.node,i.offset)}},{key:"getWordsRange",value:function(e){var i=this.getEndPoint(),c=function(m){return!b.isCharPoint(m)&&!b.isSpacePoint(m)};if(c(i))return this;var h=b.prevPointUntil(i,c);return e&&(i=b.nextPointUntil(i,c)),new n(h.node,h.offset,i.node,i.offset)}},{key:"getWordsMatchRange",value:function(e){var i=this.getEndPoint(),c=b.prevPointUntil(i,function(y){if(!b.isCharPoint(y)&&!b.isSpacePoint(y))return!0;var S=new n(y.node,y.offset,i.node,i.offset),E=e.exec(S.toString());return E&&0===E.index}),h=new n(c.node,c.offset,i.node,i.offset),m=h.toString(),w=e.exec(m);return w&&w[0].length===m.length?h:null}},{key:"bookmark",value:function(e){return{s:{path:b.makeOffsetPath(e,this.sc),offset:this.so},e:{path:b.makeOffsetPath(e,this.ec),offset:this.eo}}}},{key:"paraBookmark",value:function(e){return{s:{path:D.tail(b.makeOffsetPath(D.head(e),this.sc)),offset:this.so},e:{path:D.tail(b.makeOffsetPath(D.last(e),this.ec)),offset:this.eo}}}},{key:"getClientRects",value:function(){return this.nativeRange().getClientRects()}}])&&function dt(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();const te={create:function(n,r,s,a){if(4===arguments.length)return new Qe(n,r,s,a);if(2===arguments.length)return new Qe(n,r,s=n,a=r);var e=this.createFromSelection();if(!e&&1===arguments.length){var i=arguments[0];return b.isEditable(i)&&(i=i.lastChild),this.createFromBodyElement(i,b.emptyPara===arguments[0].innerHTML)}return e},createFromBodyElement:function(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.createFromNode(n).collapse(r)},createFromSelection:function(){var n,r,s,a;if(O.isW3CRangeSupport){var e=document.getSelection();if(!e||0===e.rangeCount||b.isBody(e.anchorNode))return null;var i=e.getRangeAt(0);n=i.startContainer,r=i.startOffset,s=i.endContainer,a=i.endOffset}else{var c=document.selection.createRange(),h=c.duplicate();h.collapse(!1);var m=c;m.collapse(!0);var w=nt(m,!0),y=nt(h,!1);b.isText(w.node)&&b.isLeftEdgePoint(w)&&b.isTextNode(y.node)&&b.isRightEdgePoint(y)&&y.node.nextSibling===w.node&&(w=y),n=w.cont,r=w.offset,s=y.cont,a=y.offset}return new Qe(n,r,s,a)},createFromNode:function(n){var r=n,s=0,a=n,e=b.nodeLength(a);return b.isVoid(r)&&(s=b.listPrev(r).length-1,r=r.parentNode),b.isBR(a)?(e=b.listPrev(a).length-1,a=a.parentNode):b.isVoid(a)&&(e=b.listPrev(a).length,a=a.parentNode),this.create(r,s,a,e)},createFromNodeBefore:function(n){return this.createFromNode(n).collapse(!0)},createFromNodeAfter:function(n){return this.createFromNode(n).collapse()},createFromBookmark:function(n,r){var s=b.fromOffsetPath(n,r.s.path),a=r.s.offset,e=b.fromOffsetPath(n,r.e.path);return new Qe(s,a,e,r.e.offset)},createFromParaBookmark:function(n,r){var s=n.s.offset,a=n.e.offset,e=b.fromOffsetPath(D.head(r),n.s.path),i=b.fromOffsetPath(D.last(r),n.e.path);return new Qe(e,s,i,a)}};var Te={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUM0:48,NUM1:49,NUM2:50,NUM3:51,NUM4:52,NUM5:53,NUM6:54,NUM7:55,NUM8:56,B:66,E:69,I:73,J:74,K:75,L:76,R:82,S:83,U:85,V:86,Y:89,Z:90,SLASH:191,LEFTBRACKET:219,BACKSLASH:220,RIGHTBRACKET:221,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34};const Y={isEdit:function(n){return D.contains([Te.BACKSPACE,Te.TAB,Te.ENTER,Te.SPACE,Te.DELETE],n)},isMove:function(n){return D.contains([Te.LEFT,Te.UP,Te.RIGHT,Te.DOWN],n)},isNavigation:function(n){return D.contains([Te.HOME,Te.END,Te.PAGEUP,Te.PAGEDOWN],n)},nameFromCode:Q.invertObject(Te),code:Te};var on=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.stack=[],this.stackOffset=-1,this.context=e,this.$editable=e.layoutInfo.editable,this.editable=this.$editable[0]}var s;return(s=[{key:"makeSnapshot",value:function(){var e=te.create(this.editable);return{contents:this.$editable.html(),bookmark:e&&e.isOnEditable()?e.bookmark(this.editable):{s:{path:[],offset:0},e:{path:[],offset:0}}}}}
1,{key:"applySnapshot",value:function(e){null!==e.contents&&this.$editable.html(e.contents),null!==e.bookmark&&te.createFromBookmark(this.editable,e.bookmark).select()}},{key:"rewind",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset=0,this.applySnapshot(this.stack[this.stackOffset])}},{key:"commit",value:function(){this.stack=[],this.stackOffset=-1,this.recordUndo()}},{key:"reset",value:function(){this.stack=[],this.stackOffset=-1,this.$editable.html(""),this.recordUndo()}},{key:"undo",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset>0&&(this.stackOffset--,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"redo",value:function(){this.stack.length-1>this.stackOffset&&(this.stackOffset++,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"recordUndo",value:function(){this.stackOffset++,this.stack.length>this.stackOffset&&(this.stack=this.stack.slice(0,this.stackOffset)),this.stack.push(this.makeSnapshot()),this.stack.length>this.context.options.historyLimit&&(this.stack.shift(),this.stackOffset-=1)}}])&&function Ae(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Mn=function(){function n(){!function(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}(this,n)}var s;return(s=[{key:"jQueryCSS",value:function(e,i){var c={};return x().each(i,function(h,m){c[m]=e.css(m)}),c}},{key:"fromNode",value:function(e){var i=this.jQueryCSS(e,["font-family","font-size","text-align","list-style-type","line-height"])||{},c=e[0].style.fontSize||i["font-size"];return i["font-size"]=parseInt(c,10),i["font-size-unit"]=c.match(/[a-z%]+$/),i}},{key:"stylePara",value:function(e,i){x().each(e.nodes(b.isPara,{includeAncestor:!0}),function(c,h){x()(h).css(i)})}},{key:"styleNodes",value:function(e,i){e=e.splitText();var c=i&&i.nodeName||"SPAN",h=!(!i||!i.expandClosestSibling),m=!(!i||!i.onlyPartialContains);if(e.isCollapsed())return[e.insertNode(b.create(c))];var w=b.makePredByNodeName(c),y=e.nodes(b.isText,{fullyContains:!0}).map(function(E){return b.singleChildAncestor(E,w)||b.wrap(E,c)});if(h){if(m){var S=e.nodes();w=Q.and(w,function(E){return D.contains(S,E)})}return y.map(function(E){var $=b.withClosestSiblings(E,w),I=D.head($),L=D.tail($);return x().each(L,function(R,q){b.appendChildNodes(I,q.childNodes),b.remove(q)}),D.head($)})}return y}},{key:"current",value:function(e){var i=x()(b.isElement(e.sc)?e.sc:e.sc.parentNode),c=this.fromNode(i);try{c=x().extend(c,{"font-bold":document.queryCommandState("bold")?"bold":"normal","font-italic":document.queryCommandState("italic")?"italic":"normal","font-underline":document.queryCommandState("underline")?"underline":"normal","font-subscript":document.queryCommandState("subscript")?"subscript":"normal","font-superscript":document.queryCommandState("superscript")?"superscript":"normal","font-strikethrough":document.queryCommandState("strikethrough")?"strikethrough":"normal","font-family":document.queryCommandValue("fontname")||c["font-family"]})}catch{}if(e.isOnList()){var h=["circle","disc","disc-leading-zero","square"].indexOf(c["list-style-type"])>-1;c["list-style"]=h?"unordered":"ordered"}else c["list-style"]="none";var m=b.ancestor(e.sc,b.isPara);if(m&&m.style["line-height"])c["line-height"]=m.style.lineHeight;else{var w=parseInt(c["line-height"],10)/parseInt(c["font-size"],
vendor: 12,541 bytes, line 1
110);c["line-height"]=w.toFixed(1)}return c.anchor=e.isOnAnchor()&&b.ancestor(e.sc,b.isAnchor),c.ancestors=b.listAncestor(e.sc,b.isEditable),c.range=e,c}}])&&function On(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var ht=function(){function n(){!function(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}(this,n)}var s;return(s=[{key:"insertOrderedList",value:function(e){this.toggleList("OL",e)}},{key:"insertUnorderedList",value:function(e){this.toggleList("UL",e)}},{key:"indent",value:function(e){var i=this,c=te.create(e).wrapBodyInlineWithPara(),h=c.nodes(b.isPara,{includeAncestor:!0}),m=D.clusterBy(h,Q.peq2("parentNode"));x().each(m,function(w,y){var S=D.head(y);if(b.isLi(S)){var E=i.findList(S.previousSibling);E?y.map(function($){return E.appendChild($)}):(i.wrapList(y,S.parentNode.nodeName),y.map(function($){return $.parentNode}).map(function($){return i.appendToPrevious($)}))}else x().each(y,function($,I){x()(I).css("marginLeft",function(L,R){return(parseInt(R,10)||0)+25})})}),c.select()}},{key:"outdent",value:function(e){var i=this,c=te.create(e).wrapBodyInlineWithPara(),h=c.nodes(b.isPara,{includeAncestor:!0}),m=D.clusterBy(h,Q.peq2("parentNode"));x().each(m,function(w,y){var S=D.head(y);b.isLi(S)?i.releaseList([y]):x().each(y,function(E,$){x()($).css("marginLeft",function(I,L){return(L=parseInt(L,10)||0)>25?L-25:""})})}),c.select()}},{key:"toggleList",value:function(e,i){var c=this,h=te.create(i).wrapBodyInlineWithPara(),m=h.nodes(b.isPara,{includeAncestor:!0}),w=h.paraBookmark(m),y=D.clusterBy(m,Q.peq2("parentNode"));if(D.find(m,b.isPurePara)){var S=[];x().each(y,function($,I){S=S.concat(c.wrapList(I,e))}),m=S}else{var E=h.nodes(b.isList,{includeAncestor:!0}).filter(function($){return!x().nodeName($,e)});E.length?x().each(E,function($,I){b.replace(I,e)}):m=this.releaseList(y,!0)}te.createFromParaBookmark(w,m).select()}},{key:"wrapList",value:function(e,i){var c=D.head(e),h=D.last(e),m=b.isList(c.previousSibling)&&c.previousSibling,w=b.isList(h.nextSibling)&&h.nextSibling,y=m||b.insertAfter(b.create(i||"UL"),h);return e=e.map(function(S){return b.isPurePara(S)?b.replace(S,"LI"):S}),b.appendChildNodes(y,e),w&&(b.appendChildNodes(y,D.from(w.childNodes)),b.remove(w)),e}},{key:"releaseList",value:function(e,i){var c=this,h=[];return x().each(e,function(m,w){var y=D.head(w),S=D.last(w),E=i?b.lastAncestor(y,b.isList):y.parentNode,$=E.parentNode;if("LI"===E.parentNode.nodeName)w.map(function(q){var K=c.findNextSiblings(q);$.nextSibling?$.parentNode.insertBefore(q,$.nextSibling):$.parentNode.appendChild(q),K.length&&(c.wrapList(K,E.nodeName),q.appendChild(K[0].parentNode))}),0===E.children.length&&$.removeChild(E),0===$.childNodes.length&&$.parentNode.removeChild($);else{var I=E.childNodes.length>1?b.splitTree(E,{node:S.parentNode,offset:b.position(S)+1},{isSkipPaddingBlankHTML:!0}):null,L=b.splitTree(E,{node:y.parentNode,offset:b.position(y)},{isSkipPaddingBlankHTML:!0});w=i?b.listDescendant(L,b.isLi):D.from(L.childNodes).filter(b.isLi),!i&&b.isList(E.parentNode)||(w=w.map(function(q){return b.replace(q,"P")})),x().each(D.from(w).reverse(),function(q,K){b.insertAfter(K,E)});var R=D.compact([E,L,I]);x().each(R,function(q,K){var fe=[K].concat(b.listDescendant(K,b.isList));x().each(fe.reverse(),function(pe,ie){b.nodeLength(ie)||b.remove(ie,!0)})})}h=h.concat(w)}),h}},{key:"appendToPrevious",value:function(e){return e.previousSibling?b.appendChildNodes(e.previousSibling,[e]):this.wrapList([e],"LI")}},{key:"findList",value:function(e){return e?D.find(e.children,function(i){return["OL","UL"].indexOf(i.nodeName)>-1}):null}},{key:"findNextSiblings",value:function(e){for(var i=[];e.nextSibling;)i.push(e.nextSibling),e=e.nextSibling;return i}}])&&function rn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var an=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.bullet=new ht,this.options=e.options}var s;return(s=[{key:"insertTab",value:function(e,i){var c=b.createText(new Array(i+1).join(b.NBSP_CHAR));(e=e.deleteContents()).insertNode(c,!0),(e=te.create(c,i)).select()}},{key:"insertParagraph",value:function(e,i){i=(i=(i=i||te.create(e)).deleteContents()).wrapBodyInlineWithPara();var c,h=b.ancestor(i.sc,b.isPara);if(h){if(b.isLi(h)&&(b.isEmpty(h)||b.deepestChildIsEmpty(h)))return void this.bullet.toggleList(h.parentNode.nodeName);var m=null;if(1===this.options.blockquoteBreakingLevel?m=b.ancestor(h,b.isBlockquote):2===this.options.blockquoteBreakingLevel&&(m=b.lastAncestor(h,b.isBlockquote)),m){c=x()(b.emptyPara)[0],b.isRightEdgePoint(i.getStartPoint())&&b.isBR(i.sc.nextSibling)&&x()(i.sc.nextSibling).remove();var w=b.splitTree(m,i.getStartPoint(),{isDiscardEmptySplits:!0});w?w.parentNode.insertBefore(c,w):b.insertAfter(c,m)}else{c=b.splitTree(h,i.getStartPoint());var y=b.listDescendant(h,b.isEmptyAnchor);y=y.concat(b.listDescendant(c,b.isEmptyAnchor)),x().each(y,function(E,$){b.remove($)}),(b.isHeading(c)||b.isPre(c)||b.isCustomStyleTag(c))&&b.isEmpty(c)&&(c=b.replace(c,"p"))}}else{var S=i.sc.childNodes[i.so];c=x()(b.emptyPara)[0],S?i.sc.insertBefore(c,S):i.sc.appendChild(c)}te.create(c,0).normalize().select().scrollIntoView(e)}}])&&function ft(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var oe=function n(r,s,a,e){var i={colPos:0,rowPos:0},c=[],h=[];function m(L,R,q,K,fe,pe,ie){var ye={baseRow:q,baseCell:K,isRowSpan:fe,isColSpan:pe,isVirtual:ie};c[L]||(c[L]=[]),c[L][R]=ye}function w(L,R,q,K){return{baseCell:L.baseCell,action:R,virtualTable:{rowIndex:q,cellIndex:K}}}function y(L,R){if(!c[L]||!c[L][R])return R;for(var q=R;c[L][q];)if(q++,!c[L][q])return q}function S(L,R){var q=y(L.rowIndex,R.cellIndex),K=R.colSpan>1,fe=R.rowSpan>1,pe=L.rowIndex===i.rowPos&&R.cellIndex===i.colPos;m(L.rowIndex,q,L,R,fe,K,!1);var ie=R.attributes.rowSpan?parseInt(R.attributes.rowSpan.value,10):0;if(ie>1)for(var ye=1;ye<ie;ye++){var ve=L.rowIndex+ye;E(ve,q,R,pe),m(ve,q,L,R,!0,K,!0)}var re=R.attributes.colSpan?parseInt(R.attributes.colSpan.value,10):0;if(re>1)for(var ae=1;ae<re;ae++){var ge=y(L.rowIndex,q+ae);E(L.rowIndex,ge,R,pe),m(L.rowIndex,ge,L,R,fe,!0,!0)}}function E(L,R,q,K){L===i.rowPos&&i.colPos>=q.cellIndex&&q.cellIndex<=R&&!K&&i.colPos++}function $(L){switch(s){case n.where.Column:if(L.isColSpan)return n.resultAction.SubtractSpanCount;break;case n.where.Row:if(!L.isVirtual&&L.isRowSpan)return n.resultAction.AddCell;if(L.isRowSpan)return n.resultAction.SubtractSpanCount}return n.resultAction.RemoveCell}function I(L){switch(s){case n.where.Column:if(L.isColSpan)return n.resultAction.SumSpanCount;if(L.isRowSpan&&L.isVirtual)return n.resultAction.Ignore;break;case n.where.Row:if(L.isRowSpan)return n.resultAction.SumSpanCount;if(L.isColSpan&&L.isVirtual)return n.resultAction.Ignore}return n.resultAction.AddCell}this.getActionList=function(){for(var L=s===n.where.Row?i.rowPos:-1,R=s===n.where.Column?i.colPos:-1,q=0,K=!0;K;){var fe=L>=0?L:q,pe=R>=0?R:q,ie=c[fe];if(!ie)return K=!1,h;var ye=ie[pe];if(!ye)return K=!1,h;var ve=n.resultAction.Ignore;switch(a){case n.requestAction.Add:ve=I(ye);break;case n.requestAction.Delete:ve=$(ye)}h.push(w(ye,ve,fe,pe)),q++}return h},r&&r.tagName&&("td"===r.tagName.toLowerCase()||"th"===r.tagName.toLowerCase())&&(i.colPos=r.cellIndex,r.parentElement&&r.parentElement.tagName&&"tr"===r.parentElement.tagName.toLowerCase()&&(i.rowPos=r.parentElement.rowIndex)),function(){for(var L=e.rows,R=0;R<L.length;R++)for(var q=L[R].cells,K=0;K<q.length;K++)S(L[R],q[K])}()};oe.where={Row:0,Column:1},oe.requestAction={Add:0,Delete:1},oe.resultAction={Ignore:0,SubtractSpanCount:1,RemoveCell:2,AddCell:3,SumSpanCount:4};var fo=function(){function n(){!function(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}(this,n)}var s;return(s=[{key:"tab",value:function(e,i){var c=b.ancestor(e.commonAncestor(),b.isCell),h=b.ancestor(c,b.isTable),m=b.listDescendant(h,b.isCell),w=D[i?"prev":"next"](m,c);w&&te.create(w,0).select()}},{key:"addRow",value:function(e,i){for(var c=b.ancestor(e.commonAncestor(),b.isCell),h=x()(c).closest("tr"),m=this.recoverAttributes(h),w=x()("<tr"+m+"></tr>"),y=new oe(c,oe.where.Row,oe.requestAction.Add,x()(h).closest("table")[0]).getActionList(),S=0;S<y.length;S++){var E=y[S],$=this.recoverAttributes(E.baseCell);switch(E.action){case oe.resultAction.AddCell:w.append("<td"+$+">"+b.blank+"</td>");break;case oe.resultAction.SumSpanCount:if("top"===i&&(E.baseCell.parent?E.baseCell.closest("tr").rowIndex:0)<=h[0].rowIndex){var I=x()("<div></div>").append(x()("<td"+$+">"+b.blank+"</td>").removeAttr("rowspan")).html();w.append(I);break}var L=parseInt(E.baseCell.rowSpan,10);L++,E.baseCell.setAttribute("rowSpan",L)}}if("top"===i)h.before(w);else{if(c.rowSpan>1){var R=h[0].rowIndex+(c.rowSpan-2);return void x()(x()(h).parent().find("tr")[R]).after(x()(w))}h.after(w)}}},{key:"addCol",value:function(e,i){var c=b.ancestor(e.commonAncestor(),b.isCell),h=x()(c).closest("tr");x()(h).siblings().push(h);for(var m=new oe(c,oe.where.Column,oe.requestAction.Add,x()(h).closest("table")[0]).getActionList(),w=0;w<m.length;w++){var y=m[w],S=this.recoverAttributes(y.baseCell);switch(y.action){case oe.resultAction.AddCell:"right"===i?x()(y.baseCell).after("<td"+S+">"+b.blank+"</td>"):x()(y.baseCell).before("<td"+S+">"+b.blank+"</td>");break;case oe.resultAction.SumSpanCount:if("right"===i){var E=parseInt(y.baseCell.colSpan,10);E++,y.baseCell.setAttribute("colSpan",E)}else x()(y.baseCell).before("<td"+S+">"+b.blank+"</td>")}}}},{key:"recoverAttributes",value:function(e){var i="";if(!e)return i;for(var c=e.attributes||[],h=0;h<c.length;h++)"id"!==c[h].name.toLowerCase()&&c[h].specified&&(i+=" "+c[h].name+"='"+c[h].value+"'");return i}},{key:"deleteRow",value:function(e){for(var i=b.ancestor(e.commonAncestor(),b.isCell),c=x()(i).closest("tr"),h=c.children("td, th").index(x()(i)),m=c[0].rowIndex,w=new oe(i,oe.where.Row,oe.requestAction.Delete,x()(c).closest("table")[0]).getActionList(),y=0;y<w.length;y++)if(w[y]){var S=w[y].baseCell,E=w[y].virtualTable,$=S.rowSpan&&S.rowSpan>1,I=$?parseInt(S.rowSpan,10):0;switch(w[y].action){case oe.resultAction.Ignore:continue;case oe.resultAction.AddCell:var L=c.next("tr")[0];if(!L)continue;var R=c[0].cells[h];$&&(I>2?(I--,L.insertBefore(R,L.cells[h]),L.cells[h].setAttribute("rowSpan",I),L.cells[h].innerHTML=""):2===I&&(L.insertBefore(R,L.cells[h]),L.cells[h].removeAttribute("rowSpan"),L.cells[h].innerHTML=""));continue;case oe.resultAction.SubtractSpanCount:$&&(I>2?(I--,S.setAttribute("rowSpan",I),E.rowIndex!==m&&S.cellIndex===h&&(S.innerHTML="")):2===I&&(S.removeAttribute("rowSpan"),E.rowIndex!==m&&S.cellIndex===h&&(S.innerHTML="")));continue;case oe.resultAction.RemoveCell:continue}}c.remove()}},{key:"deleteCol",value:function(e){for(var i=b.ancestor(e.commonAncestor(),b.isCell),c=x()(i).closest("tr"),h=c.children("td, th").index(x()(i)),m=new oe(i,oe.where.Column,oe.requestAction.Delete,x()(c).closest("table")[0]).getActionList(),w=0;w<m.length;w++)if(m[w])switch(m[w].action){case oe.resultAction.Ignore:continue;case oe.resultAction.SubtractSpanCount:var y=m[w].baseCell;if(y.colSpan&&y.colSpan>1){var S=y.colSpan?parseInt(y.colSpan,10):0;S>2?(S--,y.setAttribute("colSpan",S),y.cellIndex===h&&(y.innerHTML="")):2===S&&(y.removeAttribute("colSpan"),y.cellIndex===h&&(y.innerHTML=""))}continue;case oe.resultAction.RemoveCell:b.remove(m[w].baseCell,!0);continue}}},{key:"createTable",value:function(e,i,c){for(var h,m=[],w=0;w<e;w++)m.push("<td>"+b.blank+"</td>");h=m.join("");for(var y,S=[],E=0;E<i;E++)S.push("<tr>"+h+"</tr>");y=S.join("");var $=x()("<table>"+y+"</table>");return c&&c.tableClassName&&$.addClass(c.tableClassName),$[0]}},{key:"deleteTable",value:function(e){var i=b.ancestor(e.commonAncestor(),b.isCell);x()(i).closest("table").remove()}}])&&function $t(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var zn=function(){function n(e){var i=this;(function(y,S){if(!(y instanceof S))throw new TypeError("Cannot call a class as a function")}
1)(this,n),this.context=e,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.editable=this.$editable[0],this.lastRange=null,this.snapshot=null,this.style=new Mn,this.table=new fo,this.typing=new an(e),this.bullet=new ht,this.history=new on(e),this.context.memo("help.escape",this.lang.help.escape),this.context.memo("help.undo",this.lang.help.undo),this.context.memo("help.redo",this.lang.help.redo),this.context.memo("help.tab",this.lang.help.tab),this.context.memo("help.untab",this.lang.help.untab),this.context.memo("help.insertParagraph",this.lang.help.insertParagraph),this.context.memo("help.insertOrderedList",this.lang.help.insertOrderedList),this.context.memo("help.insertUnorderedList",this.lang.help.insertUnorderedList),this.context.memo("help.indent",this.lang.help.indent),this.context.memo("help.outdent",this.lang.help.outdent),this.context.memo("help.formatPara",this.lang.help.formatPara),this.context.memo("help.insertHorizontalRule",this.lang.help.insertHorizontalRule),this.context.memo("help.fontName",this.lang.help.fontName);for(var c=["bold","italic","underline","strikethrough","superscript","subscript","justifyLeft","justifyCenter","justifyRight","justifyFull","formatBlock","removeFormat","backColor"],h=0,m=c.length;h<m;h++)this[c[h]]=function(y){return function(S){i.beforeCommand(),document.execCommand(y,!1,S),i.afterCommand(!0)}}(c[h]),this.context.memo("help."+c[h],this.lang.help[c[h]]);this.fontName=this.wrapCommand(function(y){return i.fontStyling("font-family",O.validFontName(y))}),this.fontSize=this.wrapCommand(function(y){var S=i.currentStyle()["font-size-unit"];return i.fontStyling("font-size",y+S)}),this.fontSizeUnit=this.wrapCommand(function(y){var S=i.currentStyle()["font-size"];return i.fontStyling("font-size",S+y)});for(var w=1;w<=6;w++)this["formatH"+w]=function(y){return function(){i.formatBlock("H"+y)}}(w),this.context.memo("help.formatH"+w,this.lang.help["formatH"+w]);this.insertParagraph=this.wrapCommand(function(){i.typing.insertParagraph(i.editable)}),this.insertOrderedList=this.wrapCommand(function(){i.bullet.insertOrderedList(i.editable)}),this.insertUnorderedList=this.wrapCommand(function(){i.bullet.insertUnorderedList(i.editable)}),this.indent=this.wrapCommand(function(){i.bullet.indent(i.editable)}),this.outdent=this.wrapCommand(function(){i.bullet.outdent(i.editable)}),this.insertNode=this.wrapCommand(function(y){i.isLimited(x()(y).text().length)||(i.getLastRange().insertNode(y),i.setLastRange(te.createFromNodeAfter(y).select()))}),this.insertText=this.wrapCommand(function(y){if(!i.isLimited(y.length)){var S=i.getLastRange().insertNode(b.createText(y));i.setLastRange(te.create(S,b.nodeLength(S)).select())}}),this.pasteHTML=this.wrapCommand(function(y){if(!i.isLimited(y.length)){y=i.context.invoke("codeview.purify",y);var S=i.getLastRange().pasteHTML(y);i.setLastRange(te.createFromNodeAfter(D.last(S)).select())}}),this.formatBlock=this.wrapCommand(function(y,S){var E=i.options.callbacks.onApplyCustomStyle;E?E.call(i,S,i.context,i.onFormatBlock):i.onFormatBlock(y,S)}),this.insertHorizontalRule=this.wrapCommand(function(){var y=i.getLastRange().insertNode(b.create("HR"));y.nextSibling&&i.setLastRange(te.create(y.nextSibling,0).normalize().select())}),this.lineHeight=this.wrapCommand(function(y){i.style.stylePara(i.getLastRange(),{lineHeight:y})}),this.createLink=this.wrapCommand(function(y){var S=y.url,E=y.text,$=y.isNewWindow,I=y.checkProtocol,L=y.range||i.getLastRange(),R=E.length-L.toString().length;if(!(R>0&&i.isLimited(R))){var q=L.toString()!==E;"string"==typeof S&&(S=S.trim()),i.options.onCreateLink?S=i.options.onCreateLink(S):I&&(S=/^([A-Za-z][A-Za-z0-9+-.]*\:|#|\/)/.test(S)?S:i.options.defaultProtocol+S);var K=[];if(q){var fe=(L=L.deleteContents()).insertNode(x()("<A>"+E+"</A>")[0]);K.push(fe)}else K=i.style.styleNodes(L,{nodeName:"A",expandClosestSibling:!0,onlyPartialContains:!0});x().each(K,function(pe,ie){x()(ie).attr("href",S),$?x()(ie).attr("target","_blank"):x()(ie).removeAttr("target")}),i.setLastRange(i.createRangeFromList(K).select())}}),this.color=this.wrapCommand(function(y){var S=y.foreColor,E=y.backColor;S&&document.execCommand("foreColor",!1,S),E&&document.execCommand("backColor",!1,E)}),this.foreColor=this.wrapCommand(function(y){document.execCommand("foreColor",!1,y)}),this.insertTable=this.wrapCommand(function(y){var S=y.split("x");i.getLastRange().deleteContents().insertNode(i.table.createTable(S[0],S[1],i.options))}),this.removeMedia=this.wrapCommand(function(){var y=x()(i.restoreTarget()).parent();y.closest("figure").length?y.closest("figure").remove():y=x()(i.restoreTarget()).detach(),i.context.triggerEvent("media.delete",y,i.$editable)}),this.floatMe=this.wrapCommand(function(y){var S=x()(i.restoreTarget());S.toggleClass("note-float-left","left"===y),S.toggleClass("note-float-right","right"===y),S.css("float","none"===y?"":y)}),this.resize=this.wrapCommand(function(y){var S=x()(i.restoreTarget());
vendor: 8,691 bytes, line 1
10===(y=parseFloat(y))?S.css("width",""):S.css({width:100*y+"%",height:""})})}var s;return s=[{key:"initialize",value:function(){var e=this;this.$editable.on("keydown",function(i){if(i.keyCode===Y.code.ENTER&&e.context.triggerEvent("enter",i),e.context.triggerEvent("keydown",i),e.snapshot=e.history.makeSnapshot(),e.hasKeyShortCut=!1,i.isDefaultPrevented()||(e.options.shortcuts?e.hasKeyShortCut=e.handleKeyMap(i):e.preventDefaultEditableShortCuts(i)),e.isLimited(1,i)){var c=e.getLastRange();if(c.eo-c.so==0)return!1}e.setLastRange(),e.options.recordEveryKeystroke&&!1===e.hasKeyShortCut&&e.history.recordUndo()}).on("keyup",function(i){e.setLastRange(),e.context.triggerEvent("keyup",i)}).on("focus",function(i){e.setLastRange(),e.context.triggerEvent("focus",i)}).on("blur",function(i){e.context.triggerEvent("blur",i)}).on("mousedown",function(i){e.context.triggerEvent("mousedown",i)}).on("mouseup",function(i){e.setLastRange(),e.history.recordUndo(),e.context.triggerEvent("mouseup",i)}).on("scroll",function(i){e.context.triggerEvent("scroll",i)}).on("paste",function(i){e.setLastRange(),e.context.triggerEvent("paste",i)}).on("input",function(){e.isLimited(0)&&e.snapshot&&e.history.applySnapshot(e.snapshot)}),this.$editable.attr("spellcheck",this.options.spellCheck),this.$editable.attr("autocorrect",this.options.spellCheck),this.options.disableGrammar&&this.$editable.attr("data-gramm",!1),this.$editable.html(b.html(this.$note)||b.emptyPara),this.$editable.on(O.inputEventName,Q.debounce(function(){e.context.triggerEvent("change",e.$editable.html(),e.$editable)},10)),this.$editable.on("focusin",function(i){e.context.triggerEvent("focusin",i)}).on("focusout",function(i){e.context.triggerEvent("focusout",i)}),this.options.airMode?this.options.overrideContextMenu&&this.$editor.on("contextmenu",function(i){return e.context.triggerEvent("contextmenu",i),!1}):(this.options.width&&this.$editor.outerWidth(this.options.width),this.options.height&&this.$editable.outerHeight(this.options.height),this.options.maxHeight&&this.$editable.css("max-height",this.options.maxHeight),this.options.minHeight&&this.$editable.css("min-height",this.options.minHeight)),this.history.recordUndo(),this.setLastRange()}},{key:"destroy",value:function(){this.$editable.off()}},{key:"handleKeyMap",value:function(e){var i=this.options.keyMap[O.isMac?"mac":"pc"],c=[];e.metaKey&&c.push("CMD"),e.ctrlKey&&!e.altKey&&c.push("CTRL"),e.shiftKey&&c.push("SHIFT");var h=Y.nameFromCode[e.keyCode];h&&c.push(h);var m=i[c.join("+")];if("TAB"!==h||this.options.tabDisable)if(m){if(!1!==this.context.invoke(m))return e.preventDefault(),!0}else Y.isEdit(e.keyCode)&&this.afterCommand();else this.afterCommand();return!1}},{key:"preventDefaultEditableShortCuts",value:function(e){(e.ctrlKey||e.metaKey)&&D.contains([66,73,85],e.keyCode)&&e.preventDefault()}},{key:"isLimited",value:function(e,i){return e=e||0,(void 0===i||!(Y.isMove(i.keyCode)||Y.isNavigation(i.keyCode)||i.ctrlKey||i.metaKey||D.contains([Y.code.BACKSPACE,Y.code.DELETE],i.keyCode)))&&this.options.maxTextLength>0&&this.$editable.text().length+e>this.options.maxTextLength}},{key:"createRange",value:function(){return this.focus(),this.setLastRange(),this.getLastRange()}},{key:"createRangeFromList",value:function(e){var i=te.createFromNodeBefore(D.head(e)).getStartPoint(),c=te.createFromNodeAfter(D.last(e)).getEndPoint();return te.create(i.node,i.offset,c.node,c.offset)}},{key:"setLastRange",value:function(e){e?this.lastRange=e:(this.lastRange=te.create(this.editable),0===x()(this.lastRange.sc).closest(".note-editable").length&&(this.lastRange=te.createFromBodyElement(this.editable)))}},{key:"getLastRange",value:function(){return this.lastRange||this.setLastRange(),this.lastRange}},{key:"saveRange",value:function(e){e&&this.getLastRange().collapse().select()}},{key:"restoreRange",value:function(){this.lastRange&&(this.lastRange.select(),this.focus())}},{key:"saveTarget",value:function(e){this.$editable.data("target",e)}},{key:"clearTarget",value:function(){this.$editable.removeData("target")}},{key:"restoreTarget",value:function(){return this.$editable.data("target")}},{key:"currentStyle",value:function(){var e=te.create();return e&&(e=e.normalize()),e?this.style.current(e):this.style.fromNode(this.$editable)}},{key:"styleFromNode",value:function(e){return this.style.fromNode(e)}},{key:"undo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.undo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"commit",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.commit(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"redo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.redo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"beforeCommand",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),document.execCommand("styleWithCSS",!1,this.options.styleWithCSS),this.focus()}},{key:"afterCommand",value:function(e){this.normalizeContent(),this.history.recordUndo(),e||this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"tab",value:function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e);else{if(0===this.options.tabSize)return!1;this.isLimited(this.options.tabSize)||(this.beforeCommand(),this.typing.insertTab(e,this.options.tabSize),this.afterCommand())}}},{key:"untab",value:function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e,!0);else if(0===this.options.tabSize)return!1}},{key:"wrapCommand",value:function(e){return function(){this.beforeCommand(),e.apply(this,arguments),this.afterCommand()}}},{key:"insertImage",value:function(e,i){var c,h=this;return(c=e,x().Deferred(function(m){var w=x()("<img>");w.one("load",function(){w.off("error abort"),m.resolve(w)}).one("error abort",function(){w.off("load").detach(),m.reject(w)}).css({display:"none"}).appendTo(document.body).attr("src",c)}).promise()).then(function(m){h.beforeCommand(),"function"==typeof i?i(m):("string"==typeof i&&m.attr("data-filename",i),m.css("width",Math.min(h.$editable.width(),m.width()))),m.show(),h.getLastRange().insertNode(m[0]),h.setLastRange(te.createFromNodeAfter(m[0]).select()),h.afterCommand()}).fail(function(m){h.context.triggerEvent("image.upload.error",m)})}},{key:"insertImagesAsDataURL",value:function(e){var i=this;x().each(e,function(c,h){var w,m=h.name;i.options.maximumImageFileSize&&i.options.maximumImageFileSize<h.size?i.context.triggerEvent("image.upload.error",i.lang.image.maximumFileSizeError):(w=h,x().Deferred(function(y){x().extend(new FileReader,{onload:function(S){y.resolve(S.target.result)},onerror:function(S){y.reject(S)}}).readAsDataURL(w)}).promise()).then(function(w){return i.insertImage(w,m)}).fail(function(){i.context.triggerEvent("image.upload.error")})})}},{key:"insertImagesOrCallback",value:function(e){this.options.callbacks.onImageUpload?this.context.triggerEvent("image.upload",e):this.insertImagesAsDataURL(e)}},{key:"getSelectedText",value:function(){var e=this.getLastRange();return e.isOnAnchor()&&(e=te.createFromNode(b.ancestor(e.sc,b.isAnchor))),e.toString()}},{key:"onFormatBlock",value:function(e,i){if(document.execCommand("FormatBlock",!1,O.isMSIE?"<"+e+">":e),i&&i.length&&(i[0].tagName.toUpperCase()!==e.toUpperCase()&&(i=i.find(e)),i&&i.length)){var c=this.createRange(),h=x()([c.sc,c.ec]).closest(e);h.removeClass();var m=i[0].className||"";m&&h.addClass(m)}}},{key:"formatPara",value:function(){this.formatBlock("P")}},{key:"fontStyling",value:function(e,i){var c=this.getLastRange();if(""!==c){var h=this.style.styleNodes(c);if(this.$editor.find(".note-status-output").html(""),x()(h).css(e,i),c.isCollapsed()){var m=D.head(h);m&&!b.nodeLength(m)&&(m.innerHTML=b.ZERO_WIDTH_NBSP_CHAR,te.createFromNode(m.firstChild).select(),this.setLastRange(),this.$editable.data("bogus",m))}else this.setLastRange(this.createRangeFromList(h).select())}else{var w=x().now();this.$editor.find(".note-status-output").html('<div id="note-status-output-'+w+'" class="alert alert-info">'+this.lang.output.noSelection+"</div>"),setTimeout(function(){x()("#note-status-output-"+w).remove()},5e3)}}},{key:"unlink",value:function(){var e=this.getLastRange();if(e.isOnAnchor()){var i=b.ancestor(e.sc,b.isAnchor);(e=te.createFromNode(i)).select(),this.setLastRange(),this.beforeCommand(),document.execCommand("unlink"),this.afterCommand()}}},{key:"getLinkInfo",value:function(){var e=this.getLastRange().expand(b.isAnchor),i=x()(D.head(e.n
1odes(b.isAnchor))),c={range:e,text:e.toString(),url:i.length?i.attr("href"):""};return i.length&&(c.isNewWindow="_blank"===i.attr("target")),c}},{key:"addRow",value:function(e){var i=this.getLastRange(this.$editable);i.isCollapsed()&&i.isOnCell()&&(this.beforeCommand(),this.table.addRow(i,e),this.afterCommand())}},{key:"addCol",value:function(e){var i=this.getLastRange(this.$editable);i.isCollapsed()&&i.isOnCell()&&(this.beforeCommand(),this.table.addCol(i,e),this.afterCommand())}},{key:"deleteRow",value:function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteRow(e),this.afterCommand())}},{key:"deleteCol",value:function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteCol(e),this.afterCommand())}},{key:"deleteTable",value:function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteTable(e),this.afterCommand())}},{key:"resizeTo",value:function(e,i,c){var h;if(c){var m=e.y/e.x,w=i.data("ratio");h={width:w>m?e.x:e.y/w,height:w>m?e.x*w:e.y}}else h={width:e.x,height:e.y};i.css(h)}},{key:"hasFocus",value:function(){return this.$editable.is(":focus")}},{key:"focus",value:function(){this.hasFocus()||this.$editable.focus()}},{key:"isEmpty",value:function(){return b.isEmpty(this.$editable[0])||b.emptyPara===this.$editable.html()}},{key:"empty",value:function(){this.context.invoke("code",b.emptyPara)}},{key:"normalizeContent",value:function(){this.$editable[0].normalize()}}],s&&function Bn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var po=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.$editable=e.layoutInfo.editable}var s;return(s=[{key:"initialize",value:function(){this.$editable.on("paste",this.pasteByEvent.bind(this))}},{key:"pasteByEvent",value:function(e){var i=this,c=e.originalEvent.clipboardData;if(c&&c.items&&c.items.length){var h=c.items.length>1?c.items[1]:D.head(c.items);"file"===h.kind&&-1!==h.type.indexOf("image/")?(this.context.invoke("editor.insertImagesOrCallback",[h.getAsFile()]),e.preventDefault()):"string"===h.kind&&this.context.invoke("editor.isLimited",c.getData("Text").length)&&e.preventDefault()}else if(window.clipboardData){var m=window.clipboardData.getData("text");this.context.invoke("editor.isLimited",m.length)&&e.preventDefault()}setTimeout(function(){i.context.invoke("editor.afterCommand")},10)}}])&&function Un(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var wt=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.$eventListener=x()(document),this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.documentEventHandlers={},this.$dropzone=x()(['<div class="note-dropzone">','<div class="note-dropzone-message"></div>',"</div>"].join("")).prependTo(this.$editor)}var s;return(s=[{key:"initialize",value:function(){this.options.disableDragAndDrop?(this.documentEventHandlers.onDrop=function(e){e.preventDefault()},this.$eventListener=this.$dropzone,this.$eventListener.on("drop",this.documentEventHandlers.onDrop)):this.attachDragAndDropEvent()}},{key:"attachDragAndDropEvent",value:function(){var e=this,i=x()(),c=this.$dropzone.find(".note-dropzone-message");this.documentEventHandlers.onDragenter=function(h){var m=e.context.invoke("codeview.isActivated"),w=e.$editor.width()>0&&e.$editor.height()>0;m||i.length||!w||(e.$editor.addClass("dragover"),e.$dropzone.width(e.$editor.width()),e.$dropzone.height(e.$editor.height()),c.text(e.lang.image.dragImageHere)),i=i.add(h.target)},this.documentEventHandlers.onDragleave=function(h){(i=i.not(h.target)).length&&"BODY"!==h.target.nodeName||(i=x()(),e.$editor.removeClass("dragover"))},this.documentEventHandlers.onDrop=function(){i=x()(),e.$editor.removeClass("dragover")},this.$eventListener.on("dragenter",this.documentEventHandlers.onDragenter).on("dragleave",this.documentEventHandlers.onDragleave).on("drop",this.documentEventHandlers.onDrop),this.$dropzone.on("dragenter",function(){e.$dropzone.addClass("hover"),c.text(e.lang.image.dropImage)}).on("dragleave",function(){e.$dropzone.removeClass("hover"),c.text(e.lang.image.dragImageHere)}),this.$dropzone.on("drop",function(h){var m=h.originalEvent.dataTransfer;h.preventDefault(),m&&m.files&&m.files.length?(e.$editable.focus(),e.context.
1invoke("editor.insertImagesOrCallback",m.files)):x().each(m.types,function(w,y){if(!(y.toLowerCase().indexOf("_moz_")>-1)){var S=m.getData(y);y.toLowerCase().indexOf("text")>-1?e.context.invoke("editor.pasteHTML",S):x()(S).each(function(E,$){e.context.invoke("editor.insertNode",$)})}})}).on("dragover",!1)}},{key:"destroy",value:function(){var e=this;Object.keys(this.documentEventHandlers).forEach(function(i){e.$eventListener.off(i.substr(2).toLowerCase(),e.documentEventHandlers[i])}),this.documentEventHandlers={}}}])&&function sn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();function Wt(n,r){(null==r||r>n.length)&&(r=n.length);for(var s=0,a=new Array(r);s<r;s++)a[s]=n[s];return a}var Kt=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.options=e.options,this.CodeMirrorConstructor=window.CodeMirror,this.options.codemirror.CodeMirrorConstructor&&(this.CodeMirrorConstructor=this.options.codemirror.CodeMirrorConstructor)}var s;return s=[{key:"sync",value:function(e){var i=this.isActivated(),c=this.CodeMirrorConstructor;i&&(e?c?this.$codable.data("cmEditor").getDoc().setValue(e):this.$codable.val(e):c&&this.$codable.data("cmEditor").save())}},{key:"initialize",value:function(){var e=this;this.$codable.on("keyup",function(i){i.keyCode===Y.code.ESCAPE&&e.deactivate()})}},{key:"isActivated",value:function(){return this.$editor.hasClass("codeview")}},{key:"toggle",value:function(){this.isActivated()?this.deactivate():this.activate(),this.context.triggerEvent("codeview.toggled")}},{key:"purify",value:function(e){if(this.options.codeviewFilter&&(e=e.replace(this.options.codeviewFilterRegex,""),this.options.codeviewIframeFilter)){var i=this.options.codeviewIframeWhitelistSrc.concat(this.options.codeviewIframeWhitelistSrcBase);e=e.replace(/(<iframe.*?>.*?(?:<\/iframe>)?)/gi,function(c){if(/<.+src(?==?('|"|\s)?)[\s\S]+src(?=('|"|\s)?)[^>]*?>/i.test(c))return"";var h,m=function qn(n,r){var s=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!s){if(Array.isArray(n)||(s=function(m,w){if(m){if("string"==typeof m)return Wt(m,w);var y=Object.prototype.toString.call(m).slice(8,-1);if("Object"===y&&m.constructor&&(y=m.constructor.name),"Map"===y||"Set"===y)return Array.from(m);if("Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return Wt(m,w)}}(n))||r&&n&&"number"==typeof n.length){s&&(n=s);var a=0,e=function(){};return{s:e,n:function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(m){throw m},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,h=!1;return{s:function(){s=s.call(n)},n:function(){var m=s.next();return c=m.done,m},e:function(m){h=!0,i=m},f:function(){try{c||null==s.return||s.return()}finally{if(h)throw i}}}}(i);try{for(m.s();!(h=m.n()).done;)if(new RegExp('src="(https?:)?//'+h.value.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+'/(.+)"').test(c))return c}catch(y){m.e(y)}finally{m.f()}return""})}return e}},{key:"activate",value:function(){var e=this,i=this.CodeMirrorConstructor;if(this.$codable.val(b.html(this.$editable,this.options.prettifyHtml)),this.$codable.height(this.$editable.height()),this.context.invoke("toolbar.updateCodeview",!0),this.context.invoke("airPopover.updateCodeview",!0),this.$editor.addClass("codeview"),this.$codable.focus(),i){var c=i.fromTextArea(this.$codable[0],this.options.codemirror);if(this.options.codemirror.tern){var h=new i.TernServer(this.options.codemirror.tern);c.ternServer=h,c.on("cursorActivity",function(m){h.updateArgHints(m)})}c.on("blur",function(m){e.context.triggerEvent("blur.codeview",c.getValue(),m)}),c.on("change",function(){e.context.triggerEvent("change.codeview",c.getValue(),c)}),c.setSize(null,this.$editable.outerHeight()),this.$codable.data("cmEditor",c)}else this.$codable.on("blur",function(m){e.context.triggerEvent("blur.codeview",e.$codable.val(),m)}),this.$codable.on("input",function(){e.context.triggerEvent("change.codeview",e.$codable.val(),e.$codable)})}}
1,{key:"deactivate",value:function(){if(this.CodeMirrorConstructor){var e=this.$codable.data("cmEditor");this.$codable.val(e.getValue()),e.toTextArea()}var i=this.purify(b.value(this.$codable,this.options.prettifyHtml)||b.emptyPara),c=this.$editable.html()!==i;this.$editable.html(i),this.$editable.height(this.options.height?this.$codable.height():"auto"),this.$editor.removeClass("codeview"),c&&this.context.triggerEvent("change",this.$editable.html(),this.$editable),this.$editable.focus(),this.context.invoke("toolbar.updateCodeview",!1),this.context.invoke("airPopover.updateCodeview",!1)}},{key:"destroy",value:function(){this.isActivated()&&this.deactivate()}}],s&&function _t(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var mo=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.$document=x()(document),this.$statusbar=e.layoutInfo.statusbar,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.options=e.options}var s;return(s=[{key:"initialize",value:function(){var e=this;this.options.airMode||this.options.disableResizeEditor?this.destroy():this.$statusbar.on("mousedown",function(i){i.preventDefault(),i.stopPropagation();var c=e.$editable.offset().top-e.$document.scrollTop(),h=e.$codable.offset().top-e.$document.scrollTop(),m=function(w){var y=w.clientY-(c+24),S=w.clientY-(h+24);y=e.options.minheight>0?Math.max(y,e.options.minheight):y,y=e.options.maxHeight>0?Math.min(y,e.options.maxHeight):y,S=e.options.minheight>0?Math.max(S,e.options.minheight):S,S=e.options.maxHeight>0?Math.min(S,e.options.maxHeight):S,e.$editable.height(y),e.$codable.height(S)};e.$document.on("mousemove",m).one("mouseup",function(){e.$document.off("mousemove",m)})})}},{key:"destroy",value:function(){this.$statusbar.off(),this.$statusbar.addClass("locked")}}])&&function ln(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Wn=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.$window=x()(window),this.$scrollbar=x()("html, body"),this.scrollbarClassName="note-fullscreen-body",this.onResize=function(){i.resizeTo({h:i.$window.height()-i.$toolbar.outerHeight()})}}var s;return(s=[{key:"resizeTo",value:function(e){this.$editable.css("height",e.h),this.$codable.css("height",e.h),this.$codable.data("cmeditor")&&this.$codable.data("cmeditor").setsize(null,e.h)}},{key:"toggle",value:function(){this.$editor.toggleClass("fullscreen");var e=this.isFullscreen();this.$scrollbar.toggleClass(this.scrollbarClassName,e),e?(this.$editable.data("orgHeight",this.$editable.css("height")),this.$editable.data("orgMaxHeight",this.$editable.css("maxHeight")),this.$editable.css("maxHeight",""),this.$window.on("resize",this.onResize).trigger("resize")):(this.$window.off("resize",this.onResize),this.resizeTo({h:this.$editable.data("orgHeight")}),this.$editable.css("maxHeight",this.$editable.css("orgMaxHeight"))),this.context.invoke("toolbar.updateFullscreen",e)}},{key:"isFullscreen",value:function(){return this.$editor.hasClass("fullscreen")}},{key:"destroy",value:function(){this.$scrollbar.removeClass(this.scrollbarClassName)}}])&&function xt(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var _n=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.$document=x()(document),this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,this.lang=this.options.langInfo,this.events={"summernote.mousedown":function(c,h){i.update(h.target,h)&&h.preventDefault()},"summernote.keyup summernote.scroll summernote.change summernote.dialog.shown":function(){i.update()},"summernote.disable summernote.blur":function(){i.hide()},"summernote.codeview.toggled":function(){i.update()}}}var s;return(s=[{key:"initialize",value:function(){var e=this;this.$handle=x()(['<div class="note-handle">','<div class="note-control-selection">','<div class="note-control-selection-bg"></div>','<div class="note-control-holder note-control-nw"></div>','<div class="note-control-holder note-control-ne"></div>','<div class="note-control-holder note-control-sw"></div>
1','<div class="',this.options.disableResizeImage?"note-control-holder":"note-control-sizing",' note-control-se"></div>',this.options.disableResizeImage?"":'<div class="note-control-selection-info"></div>',"</div>","</div>"].join("")).prependTo(this.$editingArea),this.$handle.on("mousedown",function(i){if(b.isControlSizing(i.target)){i.preventDefault(),i.stopPropagation();var c=e.$handle.find(".note-control-selection").data("target"),h=c.offset(),m=e.$document.scrollTop(),w=function(y){e.context.invoke("editor.resizeTo",{x:y.clientX-h.left,y:y.clientY-(h.top-m)},c,!y.shiftKey),e.update(c[0],y)};e.$document.on("mousemove",w).one("mouseup",function(y){y.preventDefault(),e.$document.off("mousemove",w),e.context.invoke("editor.afterCommand")}),c.data("ratio")||c.data("ratio",c.height()/c.width())}}),this.$handle.on("wheel",function(i){i.preventDefault(),e.update()})}},{key:"destroy",value:function(){this.$handle.remove()}},{key:"update",value:function(e,i){if(this.context.isDisabled())return!1;var c=b.isImg(e),h=this.$handle.find(".note-control-selection");if(this.context.invoke("imagePopover.update",e,i),c){var m=x()(e),w=m.position(),y={left:w.left+parseInt(m.css("marginLeft"),10),top:w.top+parseInt(m.css("marginTop"),10)},S={w:m.outerWidth(!1),h:m.outerHeight(!1)};h.css({display:"block",left:y.left,top:y.top,width:S.w,height:S.h}).data("target",m);var E=new Image;E.src=m.attr("src");var $=S.w+"x"+S.h+" ("+this.lang.image.original+": "+E.width+"x"+E.height+")";h.find(".note-control-selection-info").text($),this.context.invoke("editor.saveTarget",e)}else this.hide();return c}},{key:"hide",value:function(){this.context.invoke("editor.clearTarget"),this.$handle.children().hide()}}])&&function cn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var dn=/^([A-Za-z][A-Za-z0-9+-.]*\:[\/]{2}|tel:|mailto:[A-Z0-9._%+-]+@|xmpp:[A-Z0-9._%+-]+@)?(www\.)?(.+)$/i,vo=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.options=e.options,this.events={"summernote.keyup":function(c,h){h.isDefaultPrevented()||i.handleKeyup(h)},"summernote.keydown":function(c,h){i.handleKeydown(h)}}}var s;return(s=[{key:"initialize",value:function(){this.lastWordRange=null}},{key:"destroy",value:function(){this.lastWordRange=null}},{key:"replace",value:function(){if(this.lastWordRange){var e=this.lastWordRange.toString(),i=e.match(dn);if(i&&(i[1]||i[2])){var c=i[1]?e:"http://"+e,h=this.options.showDomainOnlyForAutolink?e.replace(/^(?:https?:\/\/)?(?:tel?:?)?(?:mailto?:?)?(?:xmpp?:?)?(?:www\.)?/i,"").split("/")[0]:e,m=x()("<a></a>").html(h).attr("href",c)[0];this.context.options.linkTargetBlank&&x()(m).attr("target","_blank"),this.lastWordRange.insertNode(m),this.lastWordRange=null,this.context.invoke("editor.focus")}}}},{key:"handleKeydown",value:function(e){if(D.contains([Y.code.ENTER,Y.code.SPACE],e.keyCode)){var i=this.context.invoke("editor.createRange").getWordRange();this.lastWordRange=i}}},{key:"handleKeyup",value:function(e){D.contains([Y.code.ENTER,Y.code.SPACE],e.keyCode)&&this.replace()}}])&&function un(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Vn=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.$note=e.layoutInfo.note,this.events={"summernote.change":function(){i.$note.val(e.invoke("code"))}}}var s;return(s=[{key:"shouldInitialize",value:function(){return b.isTextarea(this.$note[0])}}])&&function Kn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var fn=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.options=e.options.replace||{},this.keys=[Y.code.ENTER,Y.code.SPACE,Y.code.PERIOD,Y.code.COMMA,Y.code.SEMICOLON,Y.code.SLASH],this.previousKeydownCode=null,this.events={"summernote.keyup":function(c,h){h.isDefaultPrevented()||i.handleKeyup(h)},"summernote.keydown":function(c,h){i.handleKeydown(h)}}}var s;return(s=[{key:"shouldInitialize",value:function(){return!!this.options.match}},{key:"initialize",value:function(){this.lastWord=null}},{key:"destroy",value:function(){this.lastWord=null}},{key:"replace",value:function(){if(this.lastWord){var e=this,i=this.lastWord.toString();this.options.match(i,function(c){if(c){var h="";if("string"==typeof c?h=b.createText(c):c instanceof jQuery?h=c[0]:c instanceof Node&&(h=c),!h)return;
vendor: 6,143 bytes, line 1
1e.lastWord.insertNode(h),e.lastWord=null,e.context.invoke("editor.focus")}})}}},{key:"handleKeydown",value:function(e){if(this.previousKeydownCode&&D.contains(this.keys,this.previousKeydownCode))this.previousKeydownCode=e.keyCode;else{if(D.contains(this.keys,e.keyCode)){var i=this.context.invoke("editor.createRange").getWordRange();this.lastWord=i}this.previousKeydownCode=e.keyCode}}},{key:"handleKeyup",value:function(e){D.contains(this.keys,e.keyCode)&&this.replace()}}])&&function hn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Ue=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,!0===this.options.inheritPlaceholder&&(this.options.placeholder=this.context.$note.attr("placeholder")||this.options.placeholder),this.events={"summernote.init summernote.change":function(){i.update()},"summernote.codeview.toggled":function(){i.update()}}}var s;return(s=[{key:"shouldInitialize",value:function(){return!!this.options.placeholder}},{key:"initialize",value:function(){var e=this;this.$placeholder=x()('<div class="note-placeholder"></div>'),this.$placeholder.on("click",function(){e.context.invoke("focus")}).html(this.options.placeholder).prependTo(this.$editingArea),this.update()}},{key:"destroy",value:function(){this.$placeholder.remove()}},{key:"update",value:function(){var e=!this.context.invoke("codeview.isActivated")&&this.context.invoke("editor.isEmpty");this.$placeholder.toggle(e)}}])&&function pn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Vt=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.ui=x().summernote.ui,this.context=e,this.$toolbar=e.layoutInfo.toolbar,this.options=e.options,this.lang=this.options.langInfo,this.invertedKeyMap=Q.invertObject(this.options.keyMap[O.isMac?"mac":"pc"])}var s;return(s=[{key:"representShortcut",value:function(e){var i=this.invertedKeyMap[e];return this.options.shortcuts&&i?(O.isMac&&(i=i.replace("CMD","\u2318").replace("SHIFT","\u21e7"))," ("+(i=i.replace("BACKSLASH","\\").replace("SLASH","/").replace("LEFTBRACKET","[").replace("RIGHTBRACKET","]"))+")"):""}},{key:"button",value:function(e){return!this.options.tooltip&&e.tooltip&&delete e.tooltip,e.container=this.options.container,this.ui.button(e)}},{key:"initialize",value:function(){this.addToolbarButtons(),this.addImagePopoverButtons(),this.addLinkPopoverButtons(),this.addTablePopoverButtons(),this.fontInstalledMap={}}},{key:"destroy",value:function(){delete this.fontInstalledMap}},{key:"isFontInstalled",value:function(e){return Object.prototype.hasOwnProperty.call(this.fontInstalledMap,e)||(this.fontInstalledMap[e]=O.isFontInstalled(e)||D.contains(this.options.fontNamesIgnoreCheck,e)),this.fontInstalledMap[e]}},{key:"isFontDeservedToAdd",value:function(e){return""!==(e=e.toLowerCase())&&this.isFontInstalled(e)&&-1===O.genericFontFamilies.indexOf(e)}},{key:"colorPalette",value:function(e,i,c,h){var m=this;return this.ui.buttonGroup({className:"note-color "+e,children:[this.button({className:"note-current-color-button",contents:this.ui.icon(this.options.icons.font+" note-recent-color"),tooltip:i,click:function(w){var y=x()(w.currentTarget);c&&h?m.context.invoke("editor.color",{backColor:y.attr("data-backColor"),foreColor:y.attr("data-foreColor")}):c?m.context.invoke("editor.color",{backColor:y.attr("data-backColor")}):h&&m.context.invoke("editor.color",{foreColor:y.attr("data-foreColor")})},callback:function(w){var y=w.find(".note-recent-color");c&&(y.css("background-color",m.options.colorButton.backColor),w.attr("data-backColor",m.options.colorButton.backColor)),h?(y.css("color",m.options.colorButton.foreColor),w.attr("data-foreColor",m.options.colorButton.foreColor)):y.css("color","transparent")}}),this.button({className:"dropdown-toggle",contents:this.ui.dropdownButtonContents("",this.options),tooltip:this.lang.color.more,data:{toggle:"dropdown"}}),this.ui.dropdown({items:(c?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.background+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="backColor" data-value="transparent">',this.lang.color.transparent,"</button>","</div>",'<div class="note-holder" data-event="backColor">\x3c!-- back colors --\x3e</div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="backColorPicker-'+this.options.id+'">',this.lang.color.cpSelect,"</button>",'<input type="color" id="backColorPicker-'+this.options.id+'" class="note-btn note-color-select-btn" value="'+this.options.colorButton.backColor+'" data-event="backColorPalette-'+this.options.id+'">',"</div>",'<div class="note-holder-custom" id="backColorPalette-'+this.options.id+'" data-event="backColor"></div>',"</div>"].join(""):"")+(h?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.foreground+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="removeFormat" data-value="foreColor">',this.lang.color.resetToDefault,"</button>","</div>",'<div class="note-holder" data-event="foreColor">\x3c!-- fore colors --\x3e</div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="foreColorPicker-'+this.options.id+'">',this.lang.color.cpSelect,"</button>",'<input type="color" id="foreColorPicker-'+this.options.id+'" class="note-btn note-color-select-btn" value="'+this.options.colorButton.foreColor+'" data-event="foreColorPalette-'+this.options.id+'">',"</div>",'<div class="note-holder-custom" id="foreColorPalette-'+this.options.id+'" data-event="foreColor"></div>',"</div>
1"].join(""):""),callback:function(w){w.find(".note-holder").each(function(S,E){var $=x()(E);$.append(m.ui.palette({colors:m.options.colors,colorsName:m.options.colorsName,eventName:$.data("event"),container:m.options.container,tooltip:m.options.tooltip}).render())});var y=[["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF"]];w.find(".note-holder-custom").each(function(S,E){var $=x()(E);$.append(m.ui.palette({colors:y,colorsName:y,eventName:$.data("event"),container:m.options.container,tooltip:m.options.tooltip}).render())}),w.find("input[type=color]").each(function(S,E){x()(E).change(function(){var $=w.find("#"+x()(this).data("event")).find(".note-color-btn").first(),I=this.value.toUpperCase();$.css("background-color",I).attr("aria-label",I).attr("data-value",I).attr("data-original-title",I),$.click()})})},click:function(w){w.stopPropagation();var y=x()("."+e).find(".note-dropdown-menu"),S=x()(w.target),E=S.data("event"),$=S.attr("data-value");if("openPalette"===E){var I=y.find("#"+$),L=x()(y.find("#"+I.data("event")).find(".note-color-row")[0]),R=L.find(".note-color-btn").last().detach(),q=I.val();R.css("background-color",q).attr("aria-label",q).attr("data-value",q).attr("data-original-title",q),L.prepend(R),I.click()}else{if(D.contains(["backColor","foreColor"],E)){var K="backColor"===E?"background-color":"color",fe=S.closest(".note-color").find(".note-recent-color"),pe=S.closest(".note-color").find(".note-current-color-button");fe.css(K,$),pe.attr("data-"+E,$)}m.context.invoke("editor."+E,$)}}})]}).render()}},{key:"addToolbarButtons",value:function(){var e=this;this.context.memo("button.style",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.magic),e.options),tooltip:e.lang.style.style,data:{toggle:"dropdown"}}),e.ui.dropdown({className:"dropdown-style",items:e.options.styleTags,title:e.lang.style.style,template:function(I){"string"==typeof I&&(I={tag:I,title:Object.prototype.hasOwnProperty.call(e.lang.style,I)?e.lang.style[I]:I});var L=I.tag;return"<"+L+(I.style?' style="'+I.style+'" ':"")+(I.className?' class="'+I.className+'"':"")+">"+I.title+"</"+L+">"},click:e.context.createInvokeHandler("editor.formatBlock")})]).render()});for(var i=function(I,L){var R=e.options.styleTags[I];e.context.memo("button.style."+R,function(){return e.button({className:"note-btn-style-"+R,contents:'<div data-value="'+R+'">'+R.toUpperCase()+"</div>",tooltip:e.lang.style[R],click:e.context.createInvokeHandler("editor.formatBlock")}).render()})},c=0,h=this.options.styleTags.length;c<h;c++)i(c);this.context.memo("button.bold",function(){return e.button({className:"note-btn-bold",contents:e.ui.icon(e.options.icons.bold),tooltip:e.lang.font.bold+e.representShortcut("bold"),click:e.context.createInvokeHandlerAndUpdateState("editor.bold")}).render()}),this.context.memo("button.italic",function(){return e.button({className:"note-btn-italic",contents:e.ui.icon(e.options.icons.italic),tooltip:e.lang.font.italic+e.representShortcut("italic"),click:e.context.createInvokeHandlerAndUpdateState("editor.italic")}).render()}),this.context.memo("button.underline",function(){return e.button({className:"note-btn-underline",contents:e.ui.icon(e.options.icons.underline),tooltip:e.lang.font.underline+e.representShortcut("underline"),click:e.context.createInvokeHandlerAndUpdateState("editor.underline")}).render()}),this.context.memo("button.clear",function(){return e.button({contents:e.ui.icon(e.options.icons.eraser),tooltip:e.lang.font.clear+e.representShortcut("removeFormat"),click:e.context.createInvokeHandler("editor.removeFormat")}).render()}),this.context.memo("button.strikethrough",function(){return e.button({className:"note-btn-strikethrough",contents:e.ui.icon(e.options.icons.strikethrough),tooltip:e.lang.font.strikethrough+e.representShortcut("strikethrough"),click:e.context.createInvokeHandlerAndUpdateState("editor.strikethrough")}).render()}),this.context.memo("button.superscript",function(){return e.button({className:"note-btn-superscript",contents:e.ui.icon(e.options.icons.superscript),tooltip:e.lang.font.superscript,click:e.context.createInvokeHandlerAndUpdateState("editor.superscript")}).render()}),this.context.memo("button.subscript",function(){return e.button({className:"note-btn-subscript",contents:e.ui.icon(e.options.icons.subscript),tooltip:e.lang.font.subscript,click:e.context.createInvokeHandlerAndUpdateState("editor.subscript")}).render()}),this.context.memo("button.fontname",function(){var I=e.context.
vendor: 8,317 bytes, line 1
1invoke("editor.currentStyle");return e.options.addDefaultFonts&&x().each(I["font-family"].split(","),function(L,R){R=R.trim().replace(/['"]+/g,""),e.isFontDeservedToAdd(R)&&-1===e.options.fontNames.indexOf(R)&&e.options.fontNames.push(R)}),e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents('<span class="note-current-fontname"></span>',e.options),tooltip:e.lang.font.name,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({className:"dropdown-fontname",checkClassName:e.options.icons.menuCheck,items:e.options.fontNames.filter(e.isFontInstalled.bind(e)),title:e.lang.font.name,template:function(L){return'<span style="font-family: '+O.validFontName(L)+'">'+L+"</span>"},click:e.context.createInvokeHandlerAndUpdateState("editor.fontName")})]).render()}),this.context.memo("button.fontsize",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents('<span class="note-current-fontsize"></span>',e.options),tooltip:e.lang.font.size,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({className:"dropdown-fontsize",checkClassName:e.options.icons.menuCheck,items:e.options.fontSizes,title:e.lang.font.size,click:e.context.createInvokeHandlerAndUpdateState("editor.fontSize")})]).render()}),this.context.memo("button.fontsizeunit",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents('<span class="note-current-fontsizeunit"></span>',e.options),tooltip:e.lang.font.sizeunit,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({className:"dropdown-fontsizeunit",checkClassName:e.options.icons.menuCheck,items:e.options.fontSizeUnits,title:e.lang.font.sizeunit,click:e.context.createInvokeHandlerAndUpdateState("editor.fontSizeUnit")})]).render()}),this.context.memo("button.color",function(){return e.colorPalette("note-color-all",e.lang.color.recent,!0,!0)}),this.context.memo("button.forecolor",function(){return e.colorPalette("note-color-fore",e.lang.color.foreground,!1,!0)}),this.context.memo("button.backcolor",function(){return e.colorPalette("note-color-back",e.lang.color.background,!0,!1)}),this.context.memo("button.ul",function(){return e.button({contents:e.ui.icon(e.options.icons.unorderedlist),tooltip:e.lang.lists.unordered+e.representShortcut("insertUnorderedList"),click:e.context.createInvokeHandler("editor.insertUnorderedList")}).render()}),this.context.memo("button.ol",function(){return e.button({contents:e.ui.icon(e.options.icons.orderedlist),tooltip:e.lang.lists.ordered+e.representShortcut("insertOrderedList"),click:e.context.createInvokeHandler("editor.insertOrderedList")}).render()});var m=this.button({contents:this.ui.icon(this.options.icons.alignLeft),tooltip:this.lang.paragraph.left+this.representShortcut("justifyLeft"),click:this.context.createInvokeHandler("editor.justifyLeft")}),w=this.button({contents:this.ui.icon(this.options.icons.alignCenter),tooltip:this.lang.paragraph.center+this.representShortcut("justifyCenter"),click:this.context.createInvokeHandler("editor.justifyCenter")}),y=this.button({contents:this.ui.icon(this.options.icons.alignRight),tooltip:this.lang.paragraph.right+this.representShortcut("justifyRight"),click:this.context.createInvokeHandler("editor.justifyRight")}),S=this.button({contents:this.ui.icon(this.options.icons.alignJustify),tooltip:this.lang.paragraph.justify+this.representShortcut("justifyFull"),click:this.context.createInvokeHandler("editor.justifyFull")}),E=this.button({contents:this.ui.icon(this.options.icons.outdent),tooltip:this.lang.paragraph.outdent+this.representShortcut("outdent"),click:this.context.createInvokeHandler("editor.outdent")}),$=this.button({contents:this.ui.icon(this.options.icons.indent),tooltip:this.lang.paragraph.indent+this.representShortcut("indent"),click:this.context.createInvokeHandler("editor.indent")});this.context.memo("button.justifyLeft",Q.invoke(m,"render")),this.context.memo("button.justifyCenter",Q.invoke(w,"render")),this.context.memo("button.justifyRight",Q.invoke(y,"render")),this.context.memo("button.justifyFull",Q.invoke(S,"render")),this.context.memo("button.outdent",Q.invoke(E,"render")),this.context.memo("button.indent",Q.invoke($,"render")),this.context.memo("button.paragraph",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.alignLeft),e.options),tooltip:e.lang.paragraph.paragraph,data:{toggle:"dropdown"}}),e.ui.dropdown([e.ui.buttonGroup({className:"note-align",children:[m,w,y,S]}),e.ui.buttonGroup({className:"note-list",children:[E,$]})])]).render()}),this.context.memo("button.height",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.textHeight),e.options),tooltip:e.lang.font.height,data:{toggle:"dropdown"}}),e.ui.dropdownCheck({items:e.options.lineHeights,checkClassName:e.options.icons.menuCheck,className:"dropdown-line-height",title:e.lang.font.height,click:e.context.createInvokeHandler("editor.lineHeight")})]).render()}),this.context.memo("button.table",function(){return e.ui.buttonGroup([e.button({className:"dropdown-toggle",contents:e.ui.dropdownButtonContents(e.ui.icon(e.options.icons.table),e.options),tooltip:e.lang.table.table,data:{toggle:"dropdown"}}),e.ui.dropdown({title:e.lang.table.table,className:"note-table",items:['<div class="note-dimension-picker">','<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"></div>','<div class="note-dimension-picker-highlighted"></div>','<div class="note-dimension-picker-unhighlighted"></div>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(I){I.find(".note-dimension-picker-mousecatcher").css({width:e.options.insertTableMaxSize.col+"em",height:e.options.insertTableMaxSize.row+"em"}).mouseup(e.context.createInvokeHandler("editor.insertTable")).on("mousemove",e.tableMoveHandler.bind(e))}}).render()}),this.context.memo("button.link",function(){return e.button({contents:e.ui.icon(e.options.icons.link),tooltip:e.lang.link.link+e.representShortcut("linkDialog.show"),click:e.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.picture",function(){return e.button({contents:e.ui.icon(e.options.icons.picture),tooltip:e.lang.image.image,click:e.context.createInvokeHandler("imageDialog.show")}).render()}),this.context.memo("button.video",function(){return e.button({contents:e.ui.icon(e.options.icons.video),tooltip:e.lang.video.video,click:e.context.createInvokeHandler("videoDialog.show")}).render()}),this.context.memo("button.hr",function(){return e.button({contents:e.ui.icon(e.options.icons.minus),tooltip:e.lang.hr.insert+e.representShortcut("insertHorizontalRule"),click:e.context.createInvokeHandler("editor.insertHorizontalRule")}).render()}),this.context.memo("button.fullscreen",function(){return e.button({className:"btn-fullscreen note-codeview-keep",contents:e.ui.icon(e.options.icons.arrowsAlt),tooltip:e.lang.options.fullscreen,click:e.context.createInvokeHandler("fullscreen.toggle")}).render()}),this.context.memo("button.codeview",function(){return e.button({className:"btn-codeview note-codeview-keep",contents:e.ui.icon(e.options.icons.code),tooltip:e.lang.options.codeview,click:e.context.createInvokeHandler("codeview.toggle")}).render()}),this.context.memo("button.redo",function(){return e.button({contents:e.ui.icon(e.options.icons.redo),tooltip:e.lang.history.redo+e.representShortcut("redo"),click:e.context.createInvokeHandler("editor.redo")}).render()}),this.context.memo("button.undo",function(){return e.button({contents:e.ui.icon(e.options.icons.undo),tooltip:e.lang.history.undo+e.representShortcut("undo"),click:e.context.createInvokeHandler("editor.undo")}).render()}),this.context.memo("button.help",function(){return e.button({contents:e.ui.icon(e.options.icons.question),tooltip:e.lang.options.help,click:e.context.createInvokeHandler("helpDialog.show")}).render()})}},{key:"addImagePopoverButtons",value:function(){var e=this;this.context.memo("button.resizeFull",function(){return e.button({contents:'<span class="note-fontsize-10">100%</span>',tooltip:e.lang.image.resizeFull,click:e.context.createInvokeHandler("editor.resize","1")}
1).render()}),this.context.memo("button.resizeHalf",function(){return e.button({contents:'<span class="note-fontsize-10">50%</span>',tooltip:e.lang.image.resizeHalf,click:e.context.createInvokeHandler("editor.resize","0.5")}).render()}),this.context.memo("button.resizeQuarter",function(){return e.button({contents:'<span class="note-fontsize-10">25%</span>',tooltip:e.lang.image.resizeQuarter,click:e.context.createInvokeHandler("editor.resize","0.25")}).render()}),this.context.memo("button.resizeNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.resizeNone,click:e.context.createInvokeHandler("editor.resize","0")}).render()}),this.context.memo("button.floatLeft",function(){return e.button({contents:e.ui.icon(e.options.icons.floatLeft),tooltip:e.lang.image.floatLeft,click:e.context.createInvokeHandler("editor.floatMe","left")}).render()}),this.context.memo("button.floatRight",function(){return e.button({contents:e.ui.icon(e.options.icons.floatRight),tooltip:e.lang.image.floatRight,click:e.context.createInvokeHandler("editor.floatMe","right")}).render()}),this.context.memo("button.floatNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.floatNone,click:e.context.createInvokeHandler("editor.floatMe","none")}).render()}),this.context.memo("button.removeMedia",function(){return e.button({contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.image.remove,click:e.context.createInvokeHandler("editor.removeMedia")}).render()})}},{key:"addLinkPopoverButtons",value:function(){var e=this;this.context.memo("button.linkDialogShow",function(){return e.button({contents:e.ui.icon(e.options.icons.link),tooltip:e.lang.link.edit,click:e.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.unlink",function(){return e.button({contents:e.ui.icon(e.options.icons.unlink),tooltip:e.lang.link.unlink,click:e.context.createInvokeHandler("editor.unlink")}).render()})}},{key:"addTablePopoverButtons",value:function(){var e=this;this.context.memo("button.addRowUp",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowAbove),tooltip:e.lang.table.addRowAbove,click:e.context.createInvokeHandler("editor.addRow","top")}).render()}),this.context.memo("button.addRowDown",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowBelow),tooltip:e.lang.table.addRowBelow,click:e.context.createInvokeHandler("editor.addRow","bottom")}).render()}),this.context.memo("button.addColLeft",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colBefore),tooltip:e.lang.table.addColLeft,click:e.context.createInvokeHandler("editor.addCol","left")}).render()}),this.context.memo("button.addColRight",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colAfter),tooltip:e.lang.table.addColRight,click:e.context.createInvokeHandler("editor.addCol","right")}).render()}),this.context.memo("button.deleteRow",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowRemove),tooltip:e.lang.table.delRow,click:e.context.createInvokeHandler("editor.deleteRow")}).render()}),this.context.memo("button.deleteCol",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colRemove),tooltip:e.lang.table.delCol,click:e.context.createInvokeHandler("editor.deleteCol")}).render()}),this.context.memo("button.deleteTable",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.table.delTable,click:e.context.createInvokeHandler("editor.deleteTable")}).render()})}},{key:"build",value:function(e,i){for(var c=0,h=i.length;c<h;c++){for(var m=i[c],w=Array.isArray(m)?m[0]:m,y=Array.isArray(m)?1===m.length?[m[0]]:m[1]:[m],S=this.ui.buttonGroup({className:"note-"+w}).render(),E=0,$=y.length;E<$;E++){var I=this.context.memo("button."+y[E]);I&&S.append("function"==typeof I?I(this.context):I)}S.appendTo(e)}}},{key:"updateCurrentStyle",value:function(e){var i=e||this.$toolbar,c=this.context.
1invoke("editor.currentStyle");if(this.updateBtnStates(i,{".note-btn-bold":function(){return"bold"===c["font-bold"]},".note-btn-italic":function(){return"italic"===c["font-italic"]},".note-btn-underline":function(){return"underline"===c["font-underline"]},".note-btn-subscript":function(){return"subscript"===c["font-subscript"]},".note-btn-superscript":function(){return"superscript"===c["font-superscript"]},".note-btn-strikethrough":function(){return"strikethrough"===c["font-strikethrough"]}}),c["font-family"]){var h=c["font-family"].split(",").map(function(E){return E.replace(/[\'\"]/g,"").replace(/\s+$/,"").replace(/^\s+/,"")}),m=D.find(h,this.isFontInstalled.bind(this));i.find(".dropdown-fontname a").each(function(E,$){var I=x()($),L=I.data("value")+""==m+"";I.toggleClass("checked",L)}),i.find(".note-current-fontname").text(m).css("font-family",m)}if(c["font-size"]){var w=c["font-size"];i.find(".dropdown-fontsize a").each(function(E,$){var I=x()($),L=I.data("value")+""==w+"";I.toggleClass("checked",L)}),i.find(".note-current-fontsize").text(w);var y=c["font-size-unit"];i.find(".dropdown-fontsizeunit a").each(function(E,$){var I=x()($),L=I.data("value")+""==y+"";I.toggleClass("checked",L)}),i.find(".note-current-fontsizeunit").text(y)}if(c["line-height"]){var S=c["line-height"];i.find(".dropdown-line-height a").each(function(E,$){var I=x()($),L=x()($).data("value")+""==S+"";I.toggleClass("checked",L)}),i.find(".note-current-line-height").text(S)}}},{key:"updateBtnStates",value:function(e,i){var c=this;x().each(i,function(h,m){c.ui.toggleBtnActive(e.find(h),m())})}},{key:"tableMoveHandler",value:function(e){var i,c=x()(e.target.parentNode),h=c.next(),m=c.find(".note-dimension-picker-mousecatcher"),w=c.find(".note-dimension-picker-highlighted"),y=c.find(".note-dimension-picker-unhighlighted");if(void 0===e.offsetX){var S=x()(e.target).offset();i={x:e.pageX-S.left,y:e.pageY-S.top}}else i={x:e.offsetX,y:e.offsetY};var E=Math.ceil(i.x/18)||1,$=Math.ceil(i.y/18)||1;w.css({width:E+"em",height:$+"em"}),m.data("value",E+"x"+$),E>3&&E<this.options.insertTableMaxSize.col&&y.css({width:E+1+"em"}),$>3&&$<this.options.insertTableMaxSize.row&&y.css({height:$+1+"em"}),h.html(E+" x "+$)}}])&&function pt(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Gn=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.$window=x()(window),this.$document=x()(document),this.ui=x().summernote.ui,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$statusbar=e.layoutInfo.statusbar,this.options=e.options,this.isFollowing=!1,this.followScroll=this.followScroll.bind(this)}var s;return(s=[{key:"shouldInitialize",value:function(){return!this.options.airMode}},{key:"initialize",value:function(){var e=this;this.options.toolbar=this.options.toolbar||[],this.options.toolbar.length?this.context.invoke("buttons.build",this.$toolbar,this.options.toolbar):this.$toolbar.hide(),this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.changeContainer(!1),this.$note.on("summernote.keyup summernote.mouseup summernote.change",function(){e.context.invoke("buttons.updateCurrentStyle")}),this.context.invoke("buttons.updateCurrentStyle"),this.options.followingToolbar&&this.$window.on("scroll resize",this.followScroll)}},{key:"destroy",value:function(){this.$toolbar.children().remove(),this.options.followingToolbar&&this.$window.off("scroll resize",this.followScroll)}},{key:"followScroll",value:function(){if(this.$editor.hasClass("fullscreen"))return!1;var e=this.$editor.outerHeight(),i=this.$editor.width(),c=this.$toolbar.height(),h=this.$statusbar.height(),m=0;this.options.otherStaticBar&&(m=x()(this.options.otherStaticBar).outerHeight());var w=this.$document.scrollTop(),y=this.$editor.offset().top,S=y-m,E=y+e-m-c-h;!this.isFollowing&&w>S&&w<E-c?(this.isFollowing=!0,this.$editable.css({marginTop:this.$toolbar.outerHeight()}),this.$toolbar.css({position:"fixed",top:m,width:i,zIndex:1e3})):this.isFollowing&&(w<S||w>E)&&(this.isFollowing=!1,this.$toolbar.css({position:"relative",top:0,width:"100%",zIndex:"auto"}),this.$editable.css({marginTop:""}))}}
1,{key:"changeContainer",value:function(e){e?this.$toolbar.prependTo(this.$editor):this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.options.followingToolbar&&this.followScroll()}},{key:"updateFullscreen",value:function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-fullscreen"),e),this.changeContainer(e)}},{key:"updateCodeview",value:function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-codeview"),e),e?this.deactivate():this.activate()}},{key:"activate",value:function(e){var i=this.$toolbar.find("button");e||(i=i.not(".note-codeview-keep")),this.ui.toggleBtn(i,!0)}},{key:"deactivate",value:function(e){var i=this.$toolbar.find("button");e||(i=i.not(".note-codeview-keep")),this.ui.toggleBtn(i,!1)}}])&&function mt(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var go=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.$body=x()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo,e.memo("help.linkDialog.show",this.options.langInfo.help["linkDialog.show"])}var s;return(s=[{key:"initialize",value:function(){var e=this.options.dialogsInBody?this.$body:this.options.container,i=['<div class="form-group note-form-group">','<label for="note-dialog-link-txt-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.link.textToDisplay,"</label>"),'<input id="note-dialog-link-txt-'.concat(this.options.id,'" class="note-link-text form-control note-form-control note-input" type="text"/>'),"</div>",'<div class="form-group note-form-group">','<label for="note-dialog-link-url-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.link.url,"</label>"),'<input id="note-dialog-link-url-'.concat(this.options.id,'" class="note-link-url form-control note-form-control note-input" type="text" value="http://"/>'),"</div>",this.options.disableLinkTarget?"":x()("<div></div>").append(this.ui.checkbox({className:"sn-checkbox-open-in-new-window",text:this.lang.link.openInNewWindow,checked:!0}).render()).html(),x()("<div></div>").append(this.ui.checkbox({className:"sn-checkbox-use-protocol",text:this.lang.link.useProtocol,checked:!0}).render()).html()].join(""),c='<input type="button" href="#" class="'.concat("btn btn-primary note-btn note-btn-primary note-link-btn",'" value="').concat(this.lang.link.insert,'" disabled>');this.$dialog=this.ui.dialog({className:"link-dialog",title:this.lang.link.insert,fade:this.options.dialogsFade,body:i,footer:c}).render().appendTo(e)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(e,i){e.on("keypress",function(c){c.keyCode===Y.code.ENTER&&(c.preventDefault(),i.trigger("click"))})}},{key:"toggleLinkBtn",value:function(e,i,c){this.ui.toggleBtn(e,i.val()&&c.val())}},{key:"showLinkDialog",value:function(e){var i=this;return x().Deferred(function(c){var h=i.$dialog.find(".note-link-text"),m=i.$dialog.find(".note-link-url"),w=i.$dialog.find(".note-link-btn"),y=i.$dialog.find(".sn-checkbox-open-in-new-window input[type=checkbox]"),S=i.$dialog.find(".sn-checkbox-use-protocol input[type=checkbox]");i.ui.onDialogShown(i.$dialog,function(){i.context.triggerEvent("dialog.shown"),!e.url&&Q.isValidUrl(e.text)&&(e.url=e.text),h.on("input paste propertychange",function(){e.text=h.val(),i.toggleLinkBtn(w,h,m)}).val(e.text),m.on("input paste propertychange",function(){e.text||h.val(m.val()),i.toggleLinkBtn(w,h,m)}).val(e.url),O.isSupportTouch||m.trigger("focus"),i.toggleLinkBtn(w,h,m),i.bindEnterKey(m,w),i.bindEnterKey(h,w),y.prop("checked",void 0!==e.isNewWindow?e.isNewWindow:i.context.options.linkTargetBlank),S.prop("checked",!e.url&&i.context.options.useProtocol),w.one("click",function(I){I.preventDefault(),c.resolve({range:e.range,url:m.val(),text:h.val(),isNewWindow:y.is(":checked"),checkProtocol:S.is(":checked")}),i.ui.hideDialog(i.$dialog)})}),i.ui.onDialogHidden(i.$dialog,function(){h.off(),m.off(),w.off(),"pending"===c.state()&&c.reject()}),i.ui.showDialog(i.$dialog)}).promise()}}
1,{key:"show",value:function(){var e=this,i=this.context.invoke("editor.getLinkInfo");this.context.invoke("editor.saveRange"),this.showLinkDialog(i).then(function(c){e.context.invoke("editor.restoreRange"),e.context.invoke("editor.createLink",c)}).fail(function(){e.context.invoke("editor.restoreRange")})}}])&&function Xn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Yn=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.options=e.options,this.events={"summernote.keyup summernote.mouseup summernote.change summernote.scroll":function(){i.update()},"summernote.disable summernote.dialog.shown":function(){i.hide()},"summernote.blur":function(c,h){h.originalEvent&&h.originalEvent.relatedTarget&&i.$popover[0].contains(h.originalEvent.relatedTarget)||i.hide()}}}var s;return(s=[{key:"shouldInitialize",value:function(){return!D.isEmpty(this.options.popover.link)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-link-popover",callback:function(i){i.find(".popover-content,.note-popover-content").prepend('<span><a target="_blank"></a>&nbsp;</span>')}}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.link),this.$popover.on("mousedown",function(i){i.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(){if(this.context.invoke("editor.hasFocus")){var e=this.context.invoke("editor.getLastRange");if(e.isCollapsed()&&e.isOnAnchor()){var i=b.ancestor(e.sc,b.isAnchor),c=x()(i).attr("href");this.$popover.find("a").attr("href",c).text(c);var h=b.posFromPlaceholder(i),m=x()(this.options.container).offset();h.top-=m.top,h.left-=m.left,this.$popover.css({display:"block",left:h.left,top:h.top})}else this.hide()}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}])&&function Gt(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Qn=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.$body=x()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}var s;return(s=[{key:"initialize",value:function(){var e="";if(this.options.maximumImageFileSize){var i=Math.floor(Math.log(this.options.maximumImageFileSize)/Math.log(1024)),c=1*(this.options.maximumImageFileSize/Math.pow(1024,i)).toFixed(2)+" "+" KMGTP"[i]+"B";e="<small>".concat(this.lang.image.maximumFileSize+" : "+c,"</small>")}var h=this.options.dialogsInBody?this.$body:this.options.container,m=['<div class="form-group note-form-group note-group-select-from-files">','<label for="note-dialog-image-file-'+this.options.id+'" class="note-form-label">'+this.lang.image.selectFromFiles+"</label>",'<input id="note-dialog-image-file-'+this.options.id+'" class="note-image-input form-control-file note-form-control note-input" ',' type="file" name="files" accept="'+this.options.acceptImageFileTypes+'" multiple="multiple"/>',e,"</div>",'<div class="form-group note-group-image-url">','<label for="note-dialog-image-url-'+this.options.id+'" class="note-form-label">'+this.lang.image.url+"</label>",'<input id="note-dialog-image-url-'+this.options.id+'" class="note-image-url form-control note-form-control note-input" type="text"/>',"</div>"].join(""),w='<input type="button" href="#" class="'.concat("btn btn-primary note-btn note-btn-primary note-image-btn",'" value="').concat(this.lang.image.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.image.insert,fade:this.options.dialogsFade,body:m,footer:w}).render().appendTo(h)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(e,i){e.on("keypress",function(c){c.keyCode===Y.code.ENTER&&(c.preventDefault(),i.trigger("click"))})}},{key:"show",value:function(){var e=this;
1this.context.invoke("editor.saveRange"),this.showImageDialog().then(function(i){e.ui.hideDialog(e.$dialog),e.context.invoke("editor.restoreRange"),"string"==typeof i?e.options.callbacks.onImageLinkInsert?e.context.triggerEvent("image.link.insert",i):e.context.invoke("editor.insertImage",i):e.context.invoke("editor.insertImagesOrCallback",i)}).fail(function(){e.context.invoke("editor.restoreRange")})}},{key:"showImageDialog",value:function(){var e=this;return x().Deferred(function(i){var c=e.$dialog.find(".note-image-input"),h=e.$dialog.find(".note-image-url"),m=e.$dialog.find(".note-image-btn");e.ui.onDialogShown(e.$dialog,function(){e.context.triggerEvent("dialog.shown"),c.replaceWith(c.clone().on("change",function(w){i.resolve(w.target.files||w.target.value)}).val("")),h.on("input paste propertychange",function(){e.ui.toggleBtn(m,h.val())}).val(""),O.isSupportTouch||h.trigger("focus"),m.click(function(w){w.preventDefault(),i.resolve(h.val())}),e.bindEnterKey(h,m)}),e.ui.onDialogHidden(e.$dialog,function(){c.off(),h.off(),m.off(),"pending"===i.state()&&i.reject()}),e.ui.showDialog(e.$dialog)})}}])&&function It(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Zn=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.editable=e.layoutInfo.editable[0],this.options=e.options,this.events={"summernote.disable summernote.dialog.shown":function(){i.hide()},"summernote.blur":function(c,h){h.originalEvent&&h.originalEvent.relatedTarget&&i.$popover[0].contains(h.originalEvent.relatedTarget)||i.hide()}}}var s;return(s=[{key:"shouldInitialize",value:function(){return!D.isEmpty(this.options.popover.image)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-image-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.image),this.$popover.on("mousedown",function(i){i.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(e,i){if(b.isImg(e)){var c=x()(e).offset(),h=x()(this.options.container).offset(),m={};this.options.popatmouse?(m.left=i.pageX-20,m.top=i.pageY):m=c,m.top-=h.top,m.left-=h.left,this.$popover.css({display:"block",left:m.left,top:m.top})}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}])&&function Fe(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var bo=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.options=e.options,this.events={"summernote.mousedown":function(c,h){i.update(h.target)},"summernote.keyup summernote.scroll summernote.change":function(){i.update()},"summernote.disable summernote.dialog.shown":function(){i.hide()},"summernote.blur":function(c,h){h.originalEvent&&h.originalEvent.relatedTarget&&i.$popover[0].contains(h.originalEvent.relatedTarget)||i.hide()}}}var s;return(s=[{key:"shouldInitialize",value:function(){return!D.isEmpty(this.options.popover.table)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-table-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.table),O.isFF&&document.execCommand("enableInlineTableEditing",!1,!1),this.$popover.on("mousedown",function(i){i.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(e){if(this.context.isDisabled())return!1;var i=b.isCell(e)||b.isCell(e?.parentElement);if(i){var c=b.posFromPlaceholder(e),h=x()(this.options.container).offset();c.top-=h.top,c.left-=h.left,this.$popover.css({display:"block",left:c.left,top:c.top})}else this.hide();return i}},{key:"hide",value:function(){this.$popover.hide()}}])&&function Ct(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var vt=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.$body=x()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}var s;return(s=[{key:"initialize",value:function(){var e=this.options.dialogsInBody?this.$body:this.options.container,i=['<div class="form-group note-form-group row-fluid">','<label for="note-dialog-video-url-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.video.url,' <small class="text-muted">').concat(this.lang.video.providers,"</small></label>"),'<input id="note-dialog-video-url-'.concat(this.options.id,'" class="note-video-url form-control note-form-control note-input" type="text"/>'),"</div>"].join(""),c='<input type="button" href="#" class="'.concat("btn btn-primary note-btn note-btn-primary note-video-btn",'" value="').concat(this.lang.video.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.video.insert,fade:this.options.dialogsFade,body:i,footer:c}).render().appendTo(e)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(e,i){e.on("keypress",function(c){c.keyCode===Y.code.ENTER&&(c.preventDefault(),i.trigger("click"))})}},{key:"createVideoNode",value:function(e){var i,c=e.match(/\/\/(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11}
1)(?:(?:[\?&]t=)(\S+))?$/),h=e.match(/(?:\.|\/\/)drive\.google\.com\/file\/d\/(.[a-zA-Z0-9_-]*)\/view/),m=e.match(/(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/),w=e.match(/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/),y=e.match(/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/),S=e.match(/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/),E=e.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),$=e.match(/\/\/(.*)\/videos\/watch\/([^?]*)(?:\?(?:start=(\w*))?(?:&stop=(\w*))?(?:&loop=([10]))?(?:&autoplay=([10]))?(?:&muted=([10]))?)?/),I=e.match(/\/\/v\.qq\.com.*?vid=(.+)/),L=e.match(/\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/),R=e.match(/^.+.(mp4|m4v)$/),q=e.match(/^.+.(ogg|ogv)$/),K=e.match(/^.+.(webm)$/),fe=e.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/);if(c&&11===c[1].length){var pe=c[1],ie=0;if(void 0!==c[2]){var ye=c[2].match(/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/);if(ye)for(var ve=[3600,60,1],re=0,ae=ve.length;re<ae;re++)ie+=void 0!==ye[re+1]?ve[re]*parseInt(ye[re+1],10):0}i=x()("<iframe>").attr("frameborder",0).attr("src","//www.youtube.com/embed/"+pe+(ie>0?"?start="+ie:"")).attr("width","640").attr("height","360")}else if(h&&h[0].length)i=x()("<iframe>").attr("frameborder",0).attr("src","https://drive.google.com/file/d/"+h[1]+"/preview").attr("width","640").attr("height","480");else if(m&&m[0].length)i=x()("<iframe>").attr("frameborder",0).attr("src","https://instagram.com/p/"+m[1]+"/embed/").attr("width","612").attr("height","710").attr("scrolling","no").attr("allowtransparency","true");else if(w&&w[0].length)i=x()("<iframe>").attr("frameborder",0).attr("src",w[0]+"/embed/simple").attr("width","600").attr("height","600").attr("class","vine-embed");else if(y&&y[3].length)i=x()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("src","//player.vimeo.com/video/"+y[3]).attr("width","640").attr("height","360");else if(S&&S[2].length)i=x()("<iframe>").attr("frameborder",0).attr("src","//www.dailymotion.com/embed/video/"+S[2]).attr("width","640").attr("height","360");else if(E&&E[1].length)i=x()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","498").attr("width","510").attr("src","//player.youku.com/embed/"+E[1]);else if($&&$[0].length){var ge=0;"undefined"!==$[2]&&(ge=$[2]);var Je=0;"undefined"!==$[3]&&(Je=$[3]);var Se=0;"undefined"!==$[4]&&(Se=$[4]);var z=0;"undefined"!==$[5]&&(z=$[5]);var de=0;"undefined"!==$[6]&&(de=$[6]),i=x()('<iframe allowfullscreen sandbox="allow-same-origin allow-scripts allow-popups">').attr("frameborder",0).attr("src","//"+$[1]+"/videos/embed/"+$[2]+"?loop="+Se+"&autoplay="+z+"&muted="+de+(ge>0?"&start="+ge:"")+(Je>0?"&end="+ie:"")).attr("width","560").attr("height","315")}else if(I&&I[1].length||L&&L[2].length){var me=I&&I[1].length?I[1]:L[2];i=x()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","310").attr("width","500").attr("src","https://v.qq.com/txp/iframe/player.html?vid="+me+"&amp;auto=0")}else if(R||q||K)i=x()("<video controls>").attr("src",e).attr("width","640").attr("height","360");else{if(!fe||!fe[0].length)return!1;i=x()("<iframe>").attr("frameborder",0).attr("src","https://www.facebook.com/plugins/video.php?href="+encodeURIComponent(fe[0])+"&show_text=0&width=560").attr("width","560").attr("height","301").attr("scrolling","no").attr("allowtransparency","true")}return i.addClass("note-video-clip"),i[0]}},{key:"show",value:function(){var e=this,i=this.context.invoke("editor.getSelectedText");this.context.invoke("editor.saveRange"),this.showVideoDialog(i).then(function(c){e.ui.hideDialog(e.$dialog),e.context.invoke("editor.restoreRange");var h=e.createVideoNode(c);h&&e.context.invoke("editor.insertNode",h)}).fail(function(){e.context.invoke("editor.restoreRange")})}},{key:"showVideoDialog",value:function(){var e=this;return x().Deferred(function(i){var c=e.$dialog.find(".note-video-url"),h=e.$dialog.find(".note-video-btn");e.ui.onDialogShown(e.$dialog,function(){e.context.triggerEvent("dialog.shown"),c.on("input paste propertychange",function(){e.ui.toggleBtn(h,c.val())}),O.isSupportTouch||c.trigger("focus"),h.click(function(m){m.preventDefault(),i.resolve(c.val())}),e.bindEnterKey(c,h)}),e.ui.onDialogHidden(e.$dialog,function(){c.off(),h.off(),"pending"===i.state()&&i.reject()}),e.ui.showDialog(e.$dialog)})}}])&&function Jn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var mn=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.$body=x()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}var s;return(s=[{key:"initialize",value:function(){var e=this.options.dialogsInBody?this.$body:this.options.container,i=['<p class="text-center">','<a href="http://summernote.org/" target="_blank" rel="noopener noreferrer">Summernote 0.8.20</a> \xb7 ','<a href="https://github.com/summernote/summernote" target="_blank" rel="noopener noreferrer">Project</a> \xb7 ','<a href="https://github.com/summernote/summernote/issues" target="_blank" rel="noopener noreferrer">Issues</a>',"</p>"].join("");this.$dialog=this.ui.dialog({title:this.lang.options.help,fade:this.options.dialogsFade,body:this.createShortcutList(),footer:i,callback:function(c){c.find(".modal
1-body,.note-modal-body").css({"max-height":300,overflow:"scroll"})}}).render().appendTo(e)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"createShortcutList",value:function(){var e=this,i=this.options.keyMap[O.isMac?"mac":"pc"];return Object.keys(i).map(function(c){var h=i[c],m=x()('<div><div class="help-list-item"></div></div>');return m.append(x()("<label><kbd>"+c+"</kdb></label>").css({width:180,"margin-right":10})).append(x()("<span></span>").html(e.context.memo("help."+h)||h)),m.html()}).join("")}},{key:"showHelpDialog",value:function(){var e=this;return x().Deferred(function(i){e.ui.onDialogShown(e.$dialog,function(){e.context.triggerEvent("dialog.shown"),i.resolve()}),e.ui.showDialog(e.$dialog)}).promise()}},{key:"show",value:function(){var e=this;this.context.invoke("editor.saveRange"),this.showHelpDialog().then(function(){e.context.invoke("editor.restoreRange")})}}])&&function ot(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var Lt=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.options=e.options,this.hidable=!0,this.onContextmenu=!1,this.pageX=null,this.pageY=null,this.events={"summernote.contextmenu":function(c){i.options.editing&&(c.preventDefault(),c.stopPropagation(),i.onContextmenu=!0,i.update(!0))},"summernote.mousedown":function(c,h){i.pageX=h.pageX,i.pageY=h.pageY},"summernote.keyup summernote.mouseup summernote.scroll":function(c,h){i.options.editing&&!i.onContextmenu&&(i.pageX=h.pageX,i.pageY=h.pageY,i.update()),i.onContextmenu=!1},"summernote.disable summernote.change summernote.dialog.shown summernote.blur":function(){i.hide()},"summernote.focusout":function(){i.$popover.is(":active,:focus")||i.hide()}}}var s;return(s=[{key:"shouldInitialize",value:function(){return this.options.airMode&&!D.isEmpty(this.options.popover.air)}},{key:"initialize",value:function(){var e=this;this.$popover=this.ui.popover({className:"note-air-popover"}).render().appendTo(this.options.container);var i=this.$popover.find(".popover-content");this.context.invoke("buttons.build",i,this.options.popover.air),this.$popover.on("mousedown",function(){e.hidable=!1}),this.$popover.on("mouseup",function(){e.hidable=!0})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(e){var i=this.context.invoke("editor.currentStyle");if(!i.range||i.range.isCollapsed()&&!e)this.hide();else{var c={left:this.pageX,top:this.pageY},h=x()(this.options.container).offset();c.top-=h.top,c.left-=h.left,this.$popover.css({display:"block",left:Math.max(c.left,0)+-5,top:c.top+5}),this.context.invoke("buttons.updateCurrentStyle",this.$popover)}}},{key:"updateCodeview",value:function(e){this.ui.toggleBtnActive(this.$popover.find(".btn-codeview"),e),e&&this.hide()}},{key:"hide",value:function(){this.hidable&&this.$popover.hide()}}])&&function eo(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var gn=function(){function n(e){var i=this;(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.context=e,this.ui=x().summernote.ui,this.$editable=e.layoutInfo.editable,this.options=e.options,this.hint=this.options.hint||[],this.direction=this.options.hintDirection||"bottom",this.hints=Array.isArray(this.hint)?this.hint:[this.hint],this.events={"summernote.keyup":function(c,h){h.isDefaultPrevented()||i.handleKeyup(h)},"summernote.keydown":function(c,h){i.handleKeydown(h)},"summernote.disable summernote.dialog.shown summernote.blur":function(){i.hide()}}}var s;return(s=[{key:"shouldInitialize",value:function(){return this.hints.length>0}},{key:"initialize",value:function(){var e=this;this.lastWordRange=null,this.matchingWord=null,this.$popover=this.ui.popover({className:"note-hint-popover",hideArrow:!0,direction:""}).render().appendTo(this.options.container),this.$popover.hide(),this.$content=this.$popover.find(".popover-content,.note-popover-content"),this.$content.on("click",".note-hint-item",function(i){e.$content.find(".active").removeClass("active"),x()(i.currentTarget).addClass("active"),e.replace()}),this.$popover.on("mousedown",function(i){i.preventDefault()})}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"selectItem",value:function(e){this.$content.find(".active").removeClass("active"),e.addClass("active"),this.$content[0].scrollTop=e[0].offsetTop-this.$content.innerHe
1ight()/2}},{key:"moveDown",value:function(){var e=this.$content.find(".note-hint-item.active"),i=e.next();if(i.length)this.selectItem(i);else{var c=e.parent().next();c.length||(c=this.$content.find(".note-hint-group").first()),this.selectItem(c.find(".note-hint-item").first())}}},{key:"moveUp",value:function(){var e=this.$content.find(".note-hint-item.active"),i=e.prev();if(i.length)this.selectItem(i);else{var c=e.parent().prev();c.length||(c=this.$content.find(".note-hint-group").last()),this.selectItem(c.find(".note-hint-item").last())}}},{key:"replace",value:function(){var e=this.$content.find(".note-hint-item.active");if(e.length){var i=this.nodeFromItem(e);if(null!==this.matchingWord&&0===this.matchingWord.length)this.lastWordRange.so=this.lastWordRange.eo;else if(null!==this.matchingWord&&this.matchingWord.length>0&&!this.lastWordRange.isCollapsed()){var c=this.lastWordRange.eo-this.lastWordRange.so-this.matchingWord.length;c>0&&(this.lastWordRange.so+=c)}if(this.lastWordRange.insertNode(i),"next"===this.options.hintSelect){var h=document.createTextNode("");x()(i).after(h),te.createFromNodeBefore(h).select()}else te.createFromNodeAfter(i).select();this.lastWordRange=null,this.hide(),this.context.invoke("editor.focus"),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}}},{key:"nodeFromItem",value:function(e){var i=this.hints[e.data("index")],c=e.data("item"),h=i.content?i.content(c):c;return"string"==typeof h&&(h=b.createText(h)),h}},{key:"createItemTemplates",value:function(e,i){var c=this.hints[e];return i.map(function(h){var m=x()('<div class="note-hint-item"></div>');return m.append(c.template?c.template(h):h+""),m.data({index:e,item:h}),m})}},{key:"handleKeydown",value:function(e){this.$popover.is(":visible")&&(e.keyCode===Y.code.ENTER?(e.preventDefault(),this.replace()):e.keyCode===Y.code.UP?(e.preventDefault(),this.moveUp()):e.keyCode===Y.code.DOWN&&(e.preventDefault(),this.moveDown()))}},{key:"searchKeyword",value:function(e,i,c){var h=this.hints[e];if(h&&h.match.test(i)&&h.search){var m=h.match.exec(i);this.matchingWord=m[0],h.search(m[1],c)}else c()}},{key:"createGroup",value:function(e,i){var c=this,h=x()('<div class="note-hint-group note-hint-group-'+e+'"></div>');return this.searchKeyword(e,i,function(m){(m=m||[]).length&&(h.html(c.createItemTemplates(e,m)),c.show())}),h}},{key:"handleKeyup",value:function(e){var i=this;if(!D.contains([Y.code.ENTER,Y.code.UP,Y.code.DOWN],e.keyCode)){var c,h,m=this.context.invoke("editor.getLastRange");if("words"===this.options.hintMode){if(c=m.getWordsRange(m),h=c.toString(),this.hints.forEach(function(S){if(S.match.test(h))return c=m.getWordsMatchRange(S.match),!1}),!c)return void this.hide();h=c.toString()}else c=m.getWordRange(),h=c.toString();if(this.hints.length&&h){this.$content.empty();var w=Q.rect2bnd(D.last(c.getClientRects())),y=x()(this.options.container).offset();w&&(w.top-=y.top,w.left-=y.left,this.$popover.hide(),this.lastWordRange=c,this.hints.forEach(function(S,E){S.match.test(h)&&i.createGroup(E,h).appendTo(i.$content)}),this.$content.find(".note-hint-item:first").addClass("active"),this.$popover.css("top"===this.direction?{left:w.left,top:w.top-this.$popover.outerHeight()-5}:{left:w.left,top:w.top+w.height+5}))}else this.hide()}}},{key:"show",value:function(){this.$popover.show()}},{key:"hide",value:function(){this.$popover.hide()}}])&&function vn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();function Xt(n){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(n)}x().summernote=x().extend(x().summernote,{version:"0.8.20",plugins:{},dom:b,range:te,lists:D,options:{langInfo:x().summernote.lang["en-US"],editing:!0,modules:{editor:zn,clipboard:po,dropzone:wt,codeview:Kt,statusbar:mo,fullscreen:Wn,handle:_n,hintPopover:gn,autoLink:vo,autoSync:Vn,autoReplace:fn,placeholder:Ue,buttons:Vt,toolbar:Gn,linkDialog:go,linkPopover:Yn,imageDialog:Qn,imagePopover:Zn,tablePopover:bo,videoDialog:vt,helpDialog:mn,airPopover:Lt
vendor: 6,994 bytes, line 1
1},buttons:{},lang:"en-US",followingToolbar:!1,toolbarPosition:"top",otherStaticBar:"",codeviewKeepButton:!1,toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["fontname",["fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link","picture","video"]],["view",["fullscreen","codeview","help"]]],popatmouse:!0,popover:{image:[["resize",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]],["view",["fullscreen","codeview"]]]},airMode:!1,overrideContextMenu:!1,width:null,height:null,linkTargetBlank:!0,useProtocol:!0,defaultProtocol:"http://",focus:!1,tabDisabled:!1,tabSize:4,styleWithCSS:!1,shortcuts:!0,textareaAutoSync:!0,tooltip:"auto",container:null,maxTextLength:0,blockquoteBreakingLevel:2,spellCheck:!0,disableGrammar:!1,placeholder:null,inheritPlaceholder:!1,recordEveryKeystroke:!1,historyLimit:200,showDomainOnlyForAutolink:!1,hintMode:"word",hintSelect:"after",hintDirection:"bottom",styleTags:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Tahoma","Times New Roman","Verdana"],fontNamesIgnoreCheck:[],addDefaultFonts:!0,fontSizes:["8","9","10","11","12","14","18","24","36"],fontSizeUnits:["px","pt"],colors:[["#000000","#424242","#636363","#9C9C94","#CEC6CE","#EFEFEF","#F7F7F7","#FFFFFF"],["#FF0000","#FF9C00","#FFFF00","#00FF00","#00FFFF","#0000FF","#9C00FF","#FF00FF"],["#F7C6CE","#FFE7CE","#FFEFC6","#D6EFD6","#CEDEE7","#CEE7F7","#D6D6E7","#E7D6DE"],["#E79C9C","#FFC69C","#FFE79C","#B5D6A5","#A5C6CE","#9CC6EF","#B5A5D6","#D6A5BD"],["#E76363","#F7AD6B","#FFD663","#94BD7B","#73A5AD","#6BADDE","#8C7BC6","#C67BA5"],["#CE0000","#E79439","#EFC631","#6BA54A","#4A7B8C","#3984C6","#634AA5","#A54A7B"],["#9C0000","#B56308","#BD9400","#397B21","#104A5A","#085294","#311873","#731842"],["#630000","#7B3900","#846300","#295218","#083139","#003163","#21104A","#4A1031"]],colorsName:[["Black","Tundora","Dove Gray","Star Dust","Pale Slate","Gallery","Alabaster","White"],["Red","Orange Peel","Yellow","Green","Cyan","Blue","Electric Violet","Magenta"],["Azalea","Karry","Egg White","Zanah","Botticelli","Tropical Blue","Mischka","Twilight"],["Tonys Pink","Peach Orange","Cream Brulee","Sprout","Casper","Perano","Cold Purple","Careys Pink"],["Mandy","Rajah","Dandelion","Olivine","Gulf Stream","Viking","Blue Marguerite","Puce"],["Guardsman Red","Fire Bush","Golden Dream","Chelsea Cucumber","Smalt Blue","Boston Blue","Butterfly Bush","Cadillac"],["Sangria","Mai Tai","Buddha Gold","Forest Green","Eden","Venice Blue","Meteorite","Claret"],["Rosewood","Cinnamon","Olive","Parsley","Tiber","Midnight Blue","Valentino","Loulou"]],colorButton:{foreColor:"#000000",backColor:"#FFFF00"},lineHeights:["1.0","1.2","1.4","1.5","1.6","1.8","2.0","3.0"],tableClassName:"table table-bordered",insertTableMaxSize:{col:10,row:10},dialogsInBody:!1,dialogsFade:!1,maximumImageFileSize:null,acceptImageFileTypes:"image/*",callbacks:{onBeforeCommand:null,onBlur:null,onBlurCodeview:null,onChange:null,onChangeCodeview:null,onDialogShown:null,onEnter:null,onFocus:null,onImageLinkInsert:null,onImageUpload:null,onImageUploadError:null,onInit:null,onKeydown:null,onKeyup:null,onMousedown:null,onMouseup:null,onPaste:null,onScroll:null},codemirror:{mode:"text/html",htmlMode:!0,lineNumbers:!0},codeviewFilter:!0,codeviewFilterRegex:/<\/*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|ilayer|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|t(?:itle|extarea)|xml)[^>]*?>/gi,codeviewIframeFilter:!0,codeviewIframeWhitelistSrc:[],codeviewIframeWhitelistSrcBase:["www.youtube.com","www.youtube-nocookie.com","www.facebook.com","vine.co","instagram.com","player.vimeo.com","www.dailymotion.com","player.youku.com","jumpingbean.tv","v.qq.com"],keyMap:{pc:{ESC:"escape",ENTER:"insertParagraph","CTRL+Z":"undo","CTRL+Y":"redo",TAB:"tab","SHIFT+TAB":"untab","CTRL+B":"bold","CTRL+I":"italic","CTRL+U":"underline","CTRL+SHIFT+S":"strikethrough","CTRL+BACKSLASH":"removeFormat","CTRL+SHIFT+L":"justifyLeft","CTRL+SHIFT+E":"justifyCenter","CTRL+SHIFT+R":"justifyRight","CTRL+SHIFT+J":"justifyFull","CTRL+SHIFT+NUM7":"insertUnorderedList","CTRL+SHIFT+NUM8":"insertOrderedList","CTRL+LEFTBRACKET":"outdent","CTRL+RIGHTBRACKET":"indent","CTRL+NUM0":"formatPara","CTRL+NUM1":"formatH1","CTRL+NUM2":"formatH2","CTRL+NUM3":"formatH3","CTRL+NUM4":"formatH4","CTRL+NUM5":"formatH5","CTRL+NUM6":"formatH6","CTRL+ENTER":"insertHorizontalRule","CTRL+K":"linkDialog.show"},mac:{ESC:"escape",ENTER:"insertParagraph","CMD+Z":"undo","CMD+SHIFT+Z":"redo",TAB:"tab","SHIFT+TAB":"untab","CMD+B":"bold","CMD+I":"italic","CMD+U":"underline","CMD+SHIFT+S":"strikethrough","CMD+BACKSLASH":"removeFormat","CMD+SHIFT+L":"justifyLeft","CMD+SHIFT+E":"justifyCenter","CMD+SHIFT+R":"justifyRight","CMD+SHIFT+J":"justifyFull","CMD+SHIFT+NUM7":"insertUnorderedList","CMD+SHIFT+NUM8":"insertOrderedList","CMD+LEFTBRACKET":"outdent","CMD+RIGHTBRACKET":"indent","CMD+NUM0":"formatPara","CMD+NUM1":"formatH1","CMD+NUM2":"formatH2","CMD+NUM3":"formatH3","CMD+NUM4":"formatH4","CMD+NUM5":"formatH5","CMD+NUM6":"formatH6","CMD+ENTER":"insertHorizontalRule","CMD+K":"linkDialog.show"}},icons:{align:"note-icon-align",alignCenter:"note-icon-align-center",alignJustify:"note-icon-align-justify",alignLeft:"note-icon-align-left",alignRight:"note-icon-align-right",rowBelow:"note-icon-row-below",colBefore:"note-icon-col-before",colAfter:"note-icon-col-after",rowAbove:"note-icon-row-above",rowRemove:"note-icon-row-remove",colRemove:"note-icon-col-remove",indent:"note-icon-align-indent",outdent:"note-icon-align-outdent",arrowsAlt:"note-icon-arrows-alt",bold:"note-icon-bold",caret:"note-icon-caret",circle:"note-icon-circle",close:"note-icon-close",code:"note-icon-code",eraser:"note-icon-eraser",floatLeft:"note-icon-float-left",floatRight:"note-icon-float-right",font:"note-icon-font",frame:"note-icon-frame",italic:"note-icon-italic",link:"note-icon-link",unlink:"note-icon-chain-broken",magic:"note-icon-magic",menuCheck:"note-icon-menu-check",minus:"note-icon-minus",orderedlist:"note-icon-orderedlist",pencil:"note-icon-pencil",picture:"note-icon-picture",question:"note-icon-question",redo:"note-icon-redo",rollback:"note-icon-rollback",square:"note-icon-square",strikethrough:"note-icon-strikethrough",subscript:"note-icon-subscript",superscript:"note-icon-superscript",table:"note-icon-table",textHeight:"note-icon-text-height",trash:"note-icon-trash",underline:"note-icon-underline",undo:"note-icon-undo",unorderedlist:"note-icon-unorderedlist",video:"note-icon-video"}}});var 
1yo=function(){function n(e,i,c,h){(function(m,w){if(!(m instanceof w))throw new TypeError("Cannot call a class as a function")})(this,n),this.markup=e,this.children=i,this.options=c,this.callback=h}var s;return(s=[{key:"render",value:function(e){var i=x()(this.markup);if(this.options&&this.options.contents&&i.html(this.options.contents),this.options&&this.options.className&&i.addClass(this.options.className),this.options&&this.options.data&&x().each(this.options.data,function(h,m){i.attr("data-"+h,m)}),this.options&&this.options.click&&i.on("click",this.options.click),this.children){var c=i.find(".note-children-container");this.children.forEach(function(h){h.render(c.length?c:i)})}return this.callback&&this.callback(i,this.options),this.options&&this.options.callback&&this.options.callback(i),e&&e.append(i),i}}])&&function bn(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();const we=function(n,r){return function(){var s="object"===Xt(arguments[1])?arguments[1]:arguments[0],a=Array.isArray(arguments[0])?arguments[0]:[];return s&&s.children&&(a=s.children),new yo(n,a,s,r)}};const no=function(){function n(e,i){if(function(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}(this,n),this.$node=e,this.options=x().extend({},{title:"",target:i.container,trigger:"hover focus",placement:"bottom"},i),this.$tooltip=x()(['<div class="note-tooltip">','<div class="note-tooltip-arrow"></div>','<div class="note-tooltip-content"></div>',"</div>"].join("")),"manual"!==this.options.trigger){var c=this.show.bind(this),h=this.hide.bind(this),m=this.toggle.bind(this);this.options.trigger.split(" ").forEach(function(w){"hover"===w?(e.off("mouseenter mouseleave"),e.on("mouseenter",c).on("mouseleave",h)):"click"===w?e.on("click",m):"focus"===w&&e.on("focus",c).on("blur",h)})}}var s;return(s=[{key:"show",value:function(){var e=this.$node,i=e.offset(),c=x()(this.options.target).offset();i.top-=c.top,i.left-=c.left;var h=this.$tooltip,m=this.options.title||e.attr("title")||e.data("title"),w=this.options.placement||e.data("placement");h.addClass(w),h.find(".note-tooltip-content").text(m),h.appendTo(this.options.target);var y=e.outerWidth(),S=e.outerHeight(),E=h.outerWidth(),$=h.outerHeight();"bottom"===w?h.css({top:i.top+S,left:i.left+(y/2-E/2)}):"top"===w?h.css({top:i.top-$,left:i.left+(y/2-E/2)}):"left"===w?h.css({top:i.top+(S/2-$/2),left:i.left-E}):"right"===w&&h.css({top:i.top+(S/2-$/2),left:i.left+y}),h.addClass("in")}},{key:"hide",value:function(){var e=this;this.$tooltip.removeClass("in"),setTimeout(function(){e.$tooltip.remove()},200)}},{key:"toggle",value:function(){this.$tooltip.hasClass("in")?this.hide():this.show()}}])&&function to(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var ko=function(){function n(e,i){(function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this,n),this.$button=e,this.options=x().extend({},{target:i.container},i),this.setEvent()}var s;return(s=[{key:"setEvent",value:function(){var e=this;
vendor: 10,026 bytes, line 1
1this.$button.on("click",function(i){e.toggle(),i.stopImmediatePropagation()})}},{key:"clear",value:function(){var e=x()(".note-btn-group.open");e.find(".note-btn.active").removeClass("active"),e.removeClass("open")}},{key:"show",value:function(){this.$button.addClass("active"),this.$button.parent().addClass("open");var e=this.$button.next(),i=e.offset(),c=e.outerWidth(),h=x()(window).width(),m=parseFloat(x()(this.options.target).css("margin-right"));e.css("margin-left",i.left+c>h-m?h-m-(i.left+c):"")}},{key:"hide",value:function(){this.$button.removeClass("active"),this.$button.parent().removeClass("open")}},{key:"toggle",value:function(){var e=this.$button.parent().hasClass("open");this.clear(),e?this.hide():this.show()}}])&&function Yt(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();x()(document).on("click",function(n){x()(n.target).closest(".note-btn-group").length||(x()(".note-btn-group.open").removeClass("open"),x()(".note-btn-group .note-btn.active").removeClass("active"))}),x()(document).on("click.note-dropdown-menu",function(n){x()(n.target).closest(".note-dropdown-menu").parent().removeClass("open"),x()(n.target).closest(".note-dropdown-menu").parent().find(".note-btn.active").removeClass("active")});const wo=ko;const xo=function(){function n(e){(function(i,c){if(!(i instanceof c))throw new TypeError("Cannot call a class as a function")})(this,n),this.$modal=e,this.$backdrop=x()('<div class="note-modal-backdrop"></div>')}var s;return(s=[{key:"show",value:function(){var e=this;this.$backdrop.appendTo(document.body).show(),this.$modal.addClass("open").show(),this.$modal.trigger("note.modal.show"),this.$modal.off("click",".close").on("click",".close",this.hide.bind(this)),this.$modal.on("keydown",function(i){27===i.which&&(i.preventDefault(),e.hide())})}},{key:"hide",value:function(){this.$modal.removeClass("open").hide(),this.$backdrop.hide(),this.$modal.trigger("note.modal.hide"),this.$modal.off("keydown")}}])&&function oo(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}(n.prototype,s),n}();var yn=we('<div class="note-editor note-frame"></div>'),kn=we('<div class="note-toolbar" role="toolbar"></div>'),Pt=we('<div class="note-editing-area"></div>'),Tt=we('<textarea class="note-codable" aria-multiline="true"></textarea>'),Qt=we('<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>'),Dt=we(['<output class="note-status-output" role="status" aria-live="polite"></output>','<div class="note-statusbar" role="status">','<div class="note-resizebar" aria-label="resize">','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>',"</div>","</div>"].join("")),wn=we('<div class="note-editor note-airframe"></div>'),xn=we(['<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>','<output class="note-status-output" role="status" aria-live="polite"></output>'].join("")),Ve=we('<div class="note-btn-group"></div>'),gt=we('<button type="button" class="note-btn" tabindex="-1"></button>',function(n,r){r&&r.tooltip&&(n.attr({"aria-label":r.tooltip}),n.data("_lite_tooltip",new no(n,{title:r.tooltip,container:r.container})).on("click",function(s){x()(s.currentTarget).data("_lite_tooltip").hide()})),r.contents&&n.html(r.contents),r&&r.data&&"dropdown"===r.data.toggle&&n.data("_lite_dropdown",new wo(n,{container:r.container})),r&&r.codeviewKeepButton&&n.addClass("note-codeview-keep")}),Ze=we('<div class="note-dropdown-menu" role="list"></div>',function(n,r){var s=Array.isArray(r.items)?r.items.map(function(a){var e="string"==typeof a?a:a.value||"",i=r.template?r.template(a):a,c=x()('<a class="note-dropdown-item" href="#" data-value="'+e+'" role="listitem" aria-label="'+e+'"></a>');return c.html(i).data("item",a),c}):r.items;n.html(s).attr({"aria-label":r.title}),n.on("click","> .note-dropdown-item",function(a){var e=x()(this),i=e.data("item"),c=e.data("value");i.click?i.click(e):r.itemClick&&r.itemClick(a,i,c)}),r&&r.codeviewKeepButton&&n.addClass("note-codeview-keep")}),Cn=we('<div class="note-dropdown-menu note-check" role="list"></div>',function(n,r){var s=Array.isArray(r.items)?r.items.map(function(a){var e="string"==typeof a?a:a.value||"",i=r.template?r.template(a):a,c=x()('<a class="note-dropdown-item" href="#" data-value="'+e+'" role="listitem" aria-label="'+a+'"></a>');return c.html([k(r.checkClassName)," ",i]).data("item",a),c}):r.items;n.html(s).attr({"aria-label":r.title}),n.on("click","> .note-dropdown-item",function(a){var e=x()(this),i=e.data("item"),c=e.data("value");i.click?i.click(e):r.itemClick&&r.itemClick(a,i,c)}),r&&r.codeviewKeepButton&&n.addClass("note-codeview-keep")}),io=function(n,r){return n+" "+k(r.icons.caret,"span")},Tn=function(n,r){return Ve([gt({className:"dropdown-toggle",contents:n.title+" "+k("note-icon-caret"),tooltip:n.tooltip,data:{toggle:"dropdown"}}),Ze({className:n.className,items:n.items,template:n.template,itemClick:n.itemClick})],{callback:r}).render()},Co=function(n,r){return Ve([gt({className:"dropdown-toggle",contents:n.title+" "+k("note-icon-caret"),tooltip:n.tooltip,data:{toggle:"dropdown"}}),Cn({className:n.className,checkClassName:n.checkClassName,items:n.items,template:n.template,itemClick:n.itemClick})],{callback:r}).render()},To=function(n){return Ve([gt({className:"dropdown-toggle",contents:n.title+" "+k("note-icon-caret"),tooltip:n.tooltip,data:{toggle:"dropdown"}}),Ze([Ve({className:"note-align",children:n.items[0]}),Ve({className:"note-list",children:n.items[1]})])]).render()},So=function(n){return Ve([gt({className:"dropdown-toggle",contents:n.title+" "+k("note-icon-caret"),tooltip:n.tooltip,data:{toggle:"dropdown"}}),Ze({className:"note-table",items:['<div class="note-dimension-picker">','<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"></div>','<div class="note-dimension-picker-highlighted"></div>','<div class="note-dimension-picker-unhighlighted"></div>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(r){r.find(".note-dimension-picker-mousecatcher").css({width:n.col+"em",height:n.row+"em"}).mouseup(n.itemClick).mousemove(function(s){!function(a,e,i){var c,h=x()(a.target.parentNode),m=h.next(),w=h.find(".note-dimension-picker-mousecatcher"),y=h.find(".note-dimension-picker-highlighted"),S=h.find(".note-dimension-picker-unhighlighted");if(void 0===a.offsetX){var E=x()(a.target).offset();c={x:a.pageX-E.left,y:a.pageY-E.top}}else c={x:a.offsetX,y:a.offsetY};var $=Math.ceil(c.x/18)||1,I=Math.ceil(c.y/18)||1;y.css({width:$+"em",height:I+"em"}),w.data("value",$+"x"+I),$>3&&$<e&&S.css({width:$+1+"em"}),I>3&&I<i&&S.css({height:I+1+"em"}),m.html($+" x "+I)}(s,n.col,n.row)})}}).render()},t=we('<div class="note-color-palette"></div>',function(n,r){for(var s=[],a=0,e=r.colors.length;a<e;a++){for(var i=r.eventName,c=r.colors[a],h=r.colorsName[a],m=[],w=0,y=c.length;w<y;w++){var S=c[w],E=h[w];m.push(['<button type="button" class="note-btn note-color-btn"','style="background-color:',S,'" ','data-event="',i,'" ','data-value="',S,'" ','data-title="',E,'" ','aria-label="',E,'" ','data-toggle="button" tabindex="-1"></button>'].join(""))}s.push('<div class="note-color-row">'+m.join("")+"</div>")}n.html(s.join("")),n.find(".note-color-btn").each(function(){x()(this).data("_lite_tooltip",new no(x()(this),{container:r.container}))})}),o=function(n,r){return Ve({className:"note-color",children:[gt({className:"note-current-color-button",contents:n.title,tooltip:n.lang.color.recent,click:n.currentClick,callback:function(s){var a=s.find(".note-recent-color");"foreColor"!==r&&(a.css("background-color","#FFFF00"),s.attr("data-backColor","#FFFF00"))}}),gt({className:"dropdown-toggle",contents:k("note-icon-caret"),tooltip:n.lang.color.more,data:{toggle:"dropdown"}}),Ze({items:["<div>",'<div class="note-btn-group btn-background-color">','<div class="note-palette-title">'+n.lang.color.background+"</div>","<div>",'<button type="button" class="note-color-reset note-btn note-btn-block" data-event="backColor" data-value="transparent">',n.lang.color.transparent,"</button>","</div>",'<div class="note-holder" data-event="backColor"></div>','<div class="btn-sm">','<input type="color" id="html5bcp" class="note-btn btn-default" value="#21104A" style="width:100%;" data-value="cp">','<button type="button" class="note-color-reset btn" data-event="backColor" data-value="cpbackColor">',n.lang.color.cpSelect,"</button>","</div>","</div>",'<div class="note-btn-group btn-foreground-color">','<div class="note-palette-title">'+n.lang.color.foreground+"</div>","<div>",'<button type="button" class="note-color-reset note-btn note-btn-block" data-event="removeFormat" data-value="foreColor">',n.lang.color.resetToDefault,"</button>","</div>",'<div class="note-holder" data-event="foreColor"></div>','<div class="btn-sm">','<input type="color" id="html5fcp" class="note-btn btn-default" value="#21104A" style="width:100%;" data-value="cp">','<button type="button" class="note-color-reset btn" data-event="foreColor" data-value="cpforeColor">',n.lang.color.cpSelect,"</button>","</div>","</div>","</div>"].join(""),callback:function(s){s.find(".note-holder").each(function(){var a=x()(this);a.append(t({colors:n.colors,eventName:a.data("event")}).render())}),"fore"===r?(s.find(".btn-background-color").hide(),s.css({"min-width":"210px"})):"back"===r&&(s.find(".btn-foreground-color").hide(),s.css({"min-width":"210px"}))},click:function(s){var a=x()(s.target),e=a.data("event"),i=a.data("value"),c=document.getElementById("html5fcp").value,h=document.getElementById("html5bcp").value;if("cp"===i?s.stopPropagation():"cpbackColor"===i?i=h:"cpforeColor"===i&&(i=c),e&&i){var m="backColor"===e?"background-color":"color",w=a.closest(".
1note-color").find(".note-recent-color"),y=a.closest(".note-color").find(".note-current-color-button");w.css(m,i),y.attr("data-"+e,i),n.itemClick("fore"===r?"foreColor":"back"===r?"backColor":e,i)}}})]}).render()},l=we('<div class="note-modal" aria-hidden="false" tabindex="-1" role="dialog"></div>',function(n,r){r.fade&&n.addClass("fade"),n.attr({"aria-label":r.title}),n.html(['<div class="note-modal-content">',r.title?'<div class="note-modal-header"><button type="button" class="close" aria-label="Close" aria-hidden="true"><i class="note-icon-close"></i></button><h4 class="note-modal-title">'+r.title+"</h4></div>":"",'<div class="note-modal-body">'+r.body+"</div>",r.footer?'<div class="note-modal-footer">'+r.footer+"</div>":"","</div>"].join("")),n.data("modal",new xo(n,r))}),u=function(n){var r='<div class="note-form-group"><label for="note-dialog-video-url-'+n.id+'" class="note-form-label">'+n.lang.video.url+' <small class="text-muted">'+n.lang.video.providers+'</small></label><input id="note-dialog-video-url-'+n.id+'" class="note-video-url note-input" type="text"/></div>',s=['<button type="button" href="#" class="note-btn note-btn-primary note-video-btn disabled" disabled>',n.lang.video.insert,"</button>"].join("");return l({title:n.lang.video.insert,fade:n.fade,body:r,footer:s}).render()},f=function(n){var r='<div class="note-form-group note-group-select-from-files"><label for="note-dialog-image-file-'+n.id+'" class="note-form-label">'+n.lang.image.selectFromFiles+'</label><input id="note-dialog-image-file-'+n.id+'" class="note-note-image-input note-input" type="file" name="files" accept="image/*" multiple="multiple"/>'+n.imageLimitation+'</div><div class="note-form-group"><label for="note-dialog-image-url-'+n.id+'" class="note-form-label">'+n.lang.image.url+'</label><input id="note-dialog-image-url-'+n.id+'" class="note-image-url note-input" type="text"/></div>',s=['<button href="#" type="button" class="note-btn note-btn-primary note-btn-large note-image-btn disabled" disabled>',n.lang.image.insert,"</button>"].join("");return l({title:n.lang.image.insert,fade:n.fade,body:r,footer:s}).render()},p=function(n){var r='<div class="note-form-group"><label for="note-dialog-link-txt-'+n.id+'" class="note-form-label">'+n.lang.link.textToDisplay+'</label><input id="note-dialog-link-txt-'+n.id+'" class="note-link-text note-input" type="text"/></div><div class="note-form-group"><label for="note-dialog-link-url-'+n.id+'" class="note-form-label">'+n.lang.link.url+'</label><input id="note-dialog-link-url-'+n.id+'" class="note-link-url note-input" type="text" value="http://"/></div>'+(n.disableLinkTarget?"":'<div class="checkbox"><label for="note-dialog-link-nw-'+n.id+'"><input id="note-dialog-link-nw-'+n.id+'" type="checkbox" checked> '+n.lang.link.openInNewWindow+"</label></div>")+'<div class="checkbox"><label for="note-dialog-link-up-'+n.id+'"><input id="note-dialog-link-up-'+n.id+'" type="checkbox" checked> '+n.lang.link.useProtocol+"</label></div>",s=['<button href="#" type="button" class="note-btn note-btn-primary note-link-btn disabled" disabled>',n.lang.link.insert,"</button>"].join("");return l({className:"link-dialog",title:n.lang.link.insert,fade:n.fade,body:r,footer:s}).render()},v=we(['<div class="note-popover bottom">','<div class="note-popover-arrow"></div>','<div class="popover-content note-children-container"></div>',"</div>"].join(""),function(n,r){n.addClass(void 0!==r.direction?r.direction:"bottom").hide(),r.hideArrow&&n.find(".note-popover-arrow").hide()}),C=we('<div class="checkbox"></div>',function(n,r){n.html(["<label"+(r.id?' for="note-'+r.id+'"':"")+">",'<input role="checkbox" type="checkbox"'+(r.id?' id="note-'+r.id+'"':""),r.checked?" checked":"",' aria-checked="'+(r.checked?"true":"false")+'"/>',r.text?r.text:"","</label>"].join(""))}),k=function(n,r){return n.match(/^</)?n:"<"+(r=r||"i")+' class="'+n+'"></'+r+">"};x().summernote=x().extend(x().summernote,{ui_template:function(n){return{editor:yn,toolbar:kn,editingArea:Pt,codable:Tt,editable:Qt,statusbar:Dt,airEditor:wn,airEditable:xn,buttonGroup:Ve,button:gt,dropdown:Ze,dropdownCheck:Cn,dropdownButton:Tn,dropdownButtonContents:io,dropdownCheckButton:Co,paragraphDropdownButton:To,tableDropdownButton:So,colorDropdownButton:o,palette:t,dialog:l,videoDialog:u,imageDialog:f,linkDialog:p,popover:v,checkbox:C,icon:k,options:n,toggleBtn:function(r,s){r.toggleClass("disabled",!s),r.attr("disabled",!s)},toggleBtnActive:function(r,s){r.toggleClass("active",s)},check:function(r,s){r.find(".checked").removeClass("checked"),r.find('[data-value="'+s+'"]').addClass("checked")},onDialogShown:function(r,s){r.one("note.modal.show",s)},onDialogHidden:function(r,s){r.one("note.modal.hide",s)},showDialog:function(r){r.data("modal").show()},hideDialog:function(r){r.data("modal").hide()},getPopoverContent:function(r){return r.find(".note-popover-content")},getDialogBody:function(r){return r.find(".note-modal-body")},createLayout:function(r){var s=(n.airMode?wn([Pt([Tt(),xn()])]):yn("bottom"===n.toolbarPosition?[Pt([Tt(),Qt()]),kn(),Dt()]:[kn(),Pt([Tt(),Qt()]),Dt()])).render();return s.insertAfter(r),{note:r,editor:s,toolbar:s.find(".note-toolbar"),editingArea:s.find(".note-editing-area"),editable:s.find(".note-editable"),codable:s.find(".note-codable"),statusbar:s.find(".note-statusbar")}},removeLayout:function(r,s){r.html(s.editable.html()),s.editor.remove(),r.off("summernote"),r.show()}}},interface:"lite"})})(),$e})()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.