1)for(var t=1;t0){var i=e[n-1];r[i]&&(t=-t)}return t}}},function(e,n,t){(function(n){var r=t(15),i=t(14),a=function(e){this.options=e};a.prototype.registerLanguage=function(e,n){i.addLanguage(e,n)},a.prototype.analyze=function(e,t,a){void 0===e&&(e=""),"function"==typeof t&&(a=t,t={}),t=t||{};var o=t.language||"en",s=i.getLabels(o);"object"==typeof t.extras&&(s=Object.assign(s,t.extras));for(var u=r(e),l=0,c=[],f=[],d=[],p=u.length;p--;){var g=u[p];if(s.hasOwnProperty(g)){c.push(g);var h=s[g];h=i.applyScoringStrategy(o,u,p,h),h>0&&f.push(g),h<0&&d.push(g),l+=h}}var v={score:l,comparative:u.length>0?l/u.length:0,tokens:u,words:c,positive:f,negative:d};if("function"!=typeof a)return v;n.nextTick(function(){a(null,v)})},e.exports=a}).call(n,t(7))},function(e,n,t){var r=t(8),i=t(1);Object.assign(i.labels,r);var a={en:i};e.exports={addLanguage:function(e,n){if(!n.labels)throw new Error("language.labels must be defined!");Object.assign(n.labels,r),a[e]=n},getLanguage:function(e){if(!e)return a.en;if(!a[e])try{var n=t(9)("./"+e+"/index");this.addLanguage(e,n)}catch(n){throw new Error("No language found: "+e)}return a[e]},getLabels:function(e){return this.getLanguage(e).labels},applyScoringStrategy:function(e,n,t,r){return(this.getLanguage(e).scoringStrategy||o).apply(n,t,r)}};var o={apply:function(e,n,t){return t}}},function(e,n){e.exports=function(e){return e.toLowerCase().replace(/\n/g," ").replace(/[.,\/#!$%\^&\*;:{}=_`\"~()]/g,"").split(" ")}},function(e,n){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}]);
\ No newline at end of file
+!function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t={};n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=4)}([function(e,n,t){"use strict";var r=t(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),a=function(e){this.options=e};a.prototype.strings={en:{title:function(){return"Sentimony"},buttonOk:function(){return"OK"},sentimentPositive:"positive",sentimentPegative:"negative",labelSelectCategory:function(){return"Select a category"},labelOverview:function(){return"Sentiment Overview"},labelDetail:function(){return"Sentiment Details"},containerDetail:function(e){return''+JSON.stringify(e,null,2)+"
"},containerOverview:function(e){var n="neutral",t="neutral";e.comparative>0&&(n="positive",t="joy"),e.comparative<0&&(n="negative",t="sadness");var r=a.prototype.comparativeToScale(e,t);return 0==e.comparative?"Overall, readers might have a hard time understanding your\n sentiment because none of your words seem to have a feeling or\n emotion associated wiith them":'
'+r.html+'
\n Overall, readers might see your sentiment as\n '+r.scale+'\n '+n+'\n because you used words like '+e[n][0]+"\n "+(e[n][1]?'and '+e[n][1]+"":"")+".\n
"}}},a.prototype.t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",n=arguments[1],t=arguments[2];return void 0===this.strings[e]&&(e="en"),this.strings[e][n](t)},a.prototype.comparativeToScale=function(e,n){e.comparative>0&&(n="joy"),e.comparative<0&&(n="sadness");var t=e.score/e.words.length;return t<0&&(t*=-1),t=Math.ceil(t),t=Object.keys(i.default[n])[t],i.default[n][t]},e.exports=a},function(e,n,t){e.exports={labels:t(10),scoringStrategy:t(12)}},function(e,n){e.exports={neutral:{slightly:{scale:"",name:"Face without Mouth",html:"😶",emoji:"๐ถ",expression:"neutral"},somewhat:{scale:"",name:"Face without Mouth",html:"😶",emoji:"๐ถ",expression:"neutral"},moderately:{scale:"",name:"Face without Mouth",html:"😶",emoji:"๐ถ",expression:"neutral"},very:{scale:"",name:"Face without Mouth",html:"😶",emoji:"๐ถ",expression:"neutral"},extremely:{scale:"",name:"Face without Mouth",html:"😶",emoji:"๐ถ",expression:"neutral"}},joy:{slightly:{scale:"slightly",name:"Slightly Smiling Face",html:"🙂",emoji:"๐",expression:"joyful"},somewhat:{scale:"somewhat",name:"Smiling Face with Smiling Eyes",html:"😊",emoji:"๐",expression:"joyful"},moderately:{scale:"moderately",name:"Grinning Face",html:"😀",emoji:"๐",expression:"joyful"},very:{scale:"very",name:"Grinning Face with Big Eyes",html:"😃",emoji:"๐",expression:"joyful"},extremely:{scale:"extremely",name:"Grinning Face with Smiling Eyes",html:"😁",emoji:"๐",expression:"joyful"}},sadness:{slightly:{scale:"slightly",name:"Slightly Frowning Face",html:"🙁",emoji:"๐",expression:"sad"},somewhat:{scale:"somewhat",name:"Disappointed Face",html:"😞",emoji:"๐",expression:"sad"},moderately:{scale:"moderately",name:"Frowning Face with Open Mouth",html:"😦",emoji:"๐ฆ",expression:"sad"},very:{scale:"very",name:"Crying Face",html:"😢",emoji:"๐ข",expression:"sad"},extremely:{scale:"extremely",name:"Loudly Crying Face",html:"😭",emoji:"๐ญ",expression:"sad"}},anger:{slightly:{scale:"slightly",name:"Grimacing Face",html:"😬",emoji:"๐ฌ",expression:"angry"},somewhat:{scale:"somewhat",name:"Angry Face",html:"😠",emoji:"๐ ",expression:"angry"},moderately:{scale:"moderately",name:"Pouting Face",html:"😡",emoji:"๐ก",expression:"angry"},very:{scale:"very",name:"Face with Steam from Nose",html:"😤",emoji:"๐ค",expression:"angry"},extremely:{scale:"extremely",name:"Serious Face with Symbols on Mouth",html:"🤬",emoji:"๐คฌ",expression:"angry"}},fear:{slightly:{scale:"slightly",name:"Worried Face",html:"😟",emoji:"๐",expression:"fearful"},somewhat:{scale:"somewhat",name:"Anguished Face",html:"😧",emoji:"๐ง",expression:"fearful"},moderately:{scale:"moderately",name:"Fearful Face",html:"😨",emoji:"๐จ",expression:"fearful"},very:{scale:"very",name:"Anxious Face with Sweat",html:"😅",emoji:"๐ฐ",expression:"fearful"},extremely:{scale:"extremely",name:"Face Screaming in Fear",html:"😱",emoji:"๐ฑ",expression:"fearful"}}}},function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=t(6),a=(r(i),t(13)),o=r(a),s=t(2),u=r(s),l=t(5),c=r(l),f=t(0),d=r(f),p=new o.default,g=new c.default,h=new d.default,v=tinymce.util.I18n.getCode(),m={},y=function(e){return tinymce.DOM.loadCSS("./src/plugin.css"),e.on("init",function(){var n=e.theme.panel&&e.theme.panel.find("#statusbar")[0];n&&n.insert({type:"label",name:"sentimony",html:'',classes:"sentimony",disabled:e.settings.readonly,onclick:function(){e.windowManager.open({title:h.t(v,"title"),buttons:[{text:h.t(v,"buttonOk"),onClick:"close"}],width:425,height:250,layout:"flex",body:[{type:"listbox",name:"categories",label:h.t(v,"labelSelectCategory"),onselect:function(e){var n=this.$el[0].innerText;g.showReport(n,m)},values:[{text:h.t(v,"labelOverview"),value:h.t(v,"labelOverview"),selected:!0},{text:h.t(v,"labelDetail"),value:h.t(v,"labelDetail")}]},{type:"container",html:'
'},{type:"container",id:"sentimony-report",role:"region",html:g.showReport(h.t(v,"labelOverview"),m),onPostRender:function(){this.getEl().setAttribute("aria-live","polite")}}]})}},0)}),e.on("Change",function(n){p.analyze(e.getContent({format:"text"}),{},function(e,n){m=n,m.tokens=m.tokens.filter(function(e){return e}),g.setComparativeSentiment(m,u.default)})}),{getMetadata:function(){return{name:h.t(v,"title"),url:"https://github.com/thedannywahl/sentimony/",author:"Danny Wahl",version:"1.1.0"}}}};n.default=y},function(e,n,t){"use strict";var r=t(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r);tinymce.PluginManager.add("sentimony",i.default)},function(e,n,t){"use strict";var r=t(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),a=new i.default,o=tinymce.util.I18n.getCode(),s=function(e){this.options=e};s.prototype.setComparativeSentiment=function(e,n){var t=document.getElementById("sentimony-emotion");e.comparative>0?(t.setAttribute("aria-label",n.joy.slightly.name),t.innerHTML=n.joy.slightly.html,t.hidden=!1):e.comparative<0?(t.setAttribute("aria-label",n.sadness.slightly.name),t.innerHTML=n.sadness.slightly.html,t.hidden=!1):0==e.comparative&&e.tokens.length>0?(t.setAttribute("aria-label",n.neutral.slightly.name),t.innerHTML=n.neutral.slightly.html,t.hidden=!1):(t.setAttribute("aria-label",""),t.innerHTML="",t.hidden=!0)},s.prototype.showReport=function(e,n){var t=a.t(o,"containerOverview",n),r=a.t(o,"containerDetail",n),i=document.getElementById("sentimony-report-body"),s=t;if(!i)return s;e==a.t(o,"labelDetail")&&(s=r),i.innerHTML=s},e.exports=s},function(e,n,t){(function(e,r){var i;(function(){function a(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function o(e,n,t,r){for(var i=-1,a=null==e?0:e.length;++i-1}function d(e,n,t){for(var r=-1,i=null==e?0:e.length;++r-1;);return t}function M(e,n){for(var t=e.length;t--&&x(n,e[t],0)>-1;);return t}function W(e,n){for(var t=e.length,r=0;t--;)e[t]===n&&++r;return r}function D(e){return"\\"+zt[e]}function B(e,n){return null==e?te:e[n]}function U(e){return vt.test(e)}function P(e){return mt.test(e)}function $(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}function N(e){var n=-1,t=Array(e.size);return e.forEach(function(e,r){t[++n]=[r,e]}),t}function Z(e,n){return function(t){return e(n(t))}}function G(e,n){for(var t=-1,r=e.length,i=0,a=[];++t>>1,Me=[["ary",we],["bind",ge],["bindKey",he],["curry",me],["curryRight",ye],["flip",ke],["partial",be],["partialRight",_e],["rearg",xe]],We="[object Arguments]",De="[object Array]",Be="[object AsyncFunction]",Ue="[object Boolean]",Pe="[object Date]",$e="[object DOMException]",Ne="[object Error]",Ze="[object Function]",Ge="[object GeneratorFunction]",He="[object Map]",Ke="[object Number]",Ve="[object Null]",Je="[object Object]",Ye="[object Proxy]",Qe="[object RegExp]",Xe="[object Set]",en="[object String]",nn="[object Symbol]",tn="[object Undefined]",rn="[object WeakMap]",an="[object WeakSet]",on="[object ArrayBuffer]",sn="[object DataView]",un="[object Float32Array]",ln="[object Float64Array]",cn="[object Int8Array]",fn="[object Int16Array]",dn="[object Int32Array]",pn="[object Uint8Array]",gn="[object Uint8ClampedArray]",hn="[object Uint16Array]",vn="[object Uint32Array]",mn=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,bn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_n=/&(?:amp|lt|gt|quot|#39);/g,wn=/[&<>"']/g,xn=RegExp(_n.source),kn=RegExp(wn.source),jn=/<%-([\s\S]+?)%>/g,zn=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,On=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/,En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fn=/[\\^$.*+?()[\]{}|]/g,Ln=RegExp(Fn.source),In=/^\s+|\s+$/g,Rn=/^\s+/,Tn=/\s+$/,Cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qn=/\{\n\/\* \[wrapped with (.+)\] \*/,Mn=/,? & /,Wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dn=/\\(\\)?/g,Bn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Un=/\w*$/,Pn=/^[-+]0x[0-9a-f]+$/i,$n=/^0b[01]+$/i,Nn=/^\[object .+?Constructor\]$/,Zn=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Hn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Vn=/['\n\r\u2028\u2029\\]/g,Jn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Yn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qn="["+Yn+"]",Xn="["+Jn+"]",et="[a-z\\xdf-\\xf6\\xf8-\\xff]",nt="[^\\ud800-\\udfff"+Yn+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",tt="\\ud83c[\\udffb-\\udfff]",rt="(?:\\ud83c[\\udde6-\\uddff]){2}",it="[\\ud800-\\udbff][\\udc00-\\udfff]",at="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ot="(?:"+et+"|"+nt+")",st="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",ut="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rt,it].join("|")+")[\\ufe0e\\ufe0f]?"+st+")*",lt="[\\ufe0e\\ufe0f]?"+st+ut,ct="(?:"+["[\\u2700-\\u27bf]",rt,it].join("|")+")"+lt,ft="(?:"+["[^\\ud800-\\udfff]"+Xn+"?",Xn,rt,it,"[\\ud800-\\udfff]"].join("|")+")",dt=RegExp("['โ]","g"),pt=RegExp(Xn,"g"),gt=RegExp(tt+"(?="+tt+")|"+ft+lt,"g"),ht=RegExp([at+"?"+et+"+(?:['โ](?:d|ll|m|re|s|t|ve))?(?="+[Qn,at,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['โ](?:D|LL|M|RE|S|T|VE))?(?="+[Qn,at+ot,"$"].join("|")+")",at+"?"+ot+"+(?:['โ](?:d|ll|m|re|s|t|ve))?",at+"+(?:['โ](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",ct].join("|"),"g"),vt=RegExp("[\\u200d\\ud800-\\udfff"+Jn+"\\ufe0e\\ufe0f]"),mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bt=-1,_t={};_t[un]=_t[ln]=_t[cn]=_t[fn]=_t[dn]=_t[pn]=_t[gn]=_t[hn]=_t[vn]=!0,_t[We]=_t[De]=_t[on]=_t[Ue]=_t[sn]=_t[Pe]=_t[Ne]=_t[Ze]=_t[He]=_t[Ke]=_t[Je]=_t[Qe]=_t[Xe]=_t[en]=_t[rn]=!1;var wt={};wt[We]=wt[De]=wt[on]=wt[sn]=wt[Ue]=wt[Pe]=wt[un]=wt[ln]=wt[cn]=wt[fn]=wt[dn]=wt[He]=wt[Ke]=wt[Je]=wt[Qe]=wt[Xe]=wt[en]=wt[nn]=wt[pn]=wt[gn]=wt[hn]=wt[vn]=!0,wt[Ne]=wt[Ze]=wt[rn]=!1;var xt={"ร":"A","ร":"A","ร":"A","ร":"A","ร":"A","ร
":"A","ร ":"a","รก":"a","รข":"a","รฃ":"a","รค":"a","รฅ":"a","ร":"C","รง":"c","ร":"D","รฐ":"d","ร":"E","ร":"E","ร":"E","ร":"E","รจ":"e","รฉ":"e","รช":"e","รซ":"e","ร":"I","ร":"I","ร":"I","ร":"I","รฌ":"i","รญ":"i","รฎ":"i","รฏ":"i","ร":"N","รฑ":"n","ร":"O","ร":"O","ร":"O","ร":"O","ร":"O","ร":"O","รฒ":"o","รณ":"o","รด":"o","รต":"o","รถ":"o","รธ":"o","ร":"U","ร":"U","ร":"U","ร":"U","รน":"u","รบ":"u","รป":"u","รผ":"u","ร":"Y","รฝ":"y","รฟ":"y","ร":"Ae","รฆ":"ae","ร":"Th","รพ":"th","ร":"ss","ฤ":"A","ฤ":"A","ฤ":"A","ฤ":"a","ฤ":"a","ฤ
":"a","ฤ":"C","ฤ":"C","ฤ":"C","ฤ":"C","ฤ":"c","ฤ":"c","ฤ":"c","ฤ":"c","ฤ":"D","ฤ":"D","ฤ":"d","ฤ":"d","ฤ":"E","ฤ":"E","ฤ":"E","ฤ":"E","ฤ":"E","ฤ":"e","ฤ":"e","ฤ":"e","ฤ":"e","ฤ":"e","ฤ":"G","ฤ":"G","ฤ ":"G","ฤข":"G","ฤ":"g","ฤ":"g","ฤก":"g","ฤฃ":"g","ฤค":"H","ฤฆ":"H","ฤฅ":"h","ฤง":"h","ฤจ":"I","ฤช":"I","ฤฌ":"I","ฤฎ":"I","ฤฐ":"I","ฤฉ":"i","ฤซ":"i","ฤญ":"i","ฤฏ":"i","ฤฑ":"i","ฤด":"J","ฤต":"j","ฤถ":"K","ฤท":"k","ฤธ":"k","ฤน":"L","ฤป":"L","ฤฝ":"L","ฤฟ":"L","ล":"L","ฤบ":"l","ฤผ":"l","ฤพ":"l","ล":"l","ล":"l","ล":"N","ล
":"N","ล":"N","ล":"N","ล":"n","ล":"n","ล":"n","ล":"n","ล":"O","ล":"O","ล":"O","ล":"o","ล":"o","ล":"o","ล":"R","ล":"R","ล":"R","ล":"r","ล":"r","ล":"r","ล":"S","ล":"S","ล":"S","ล ":"S","ล":"s","ล":"s","ล":"s","ลก":"s","ลข":"T","ลค":"T","ลฆ":"T","ลฃ":"t","ลฅ":"t","ลง":"t","ลจ":"U","ลช":"U","ลฌ":"U","ลฎ":"U","ลฐ":"U","ลฒ":"U","ลฉ":"u","ลซ":"u","ลญ":"u","ลฏ":"u","ลฑ":"u","ลณ":"u","ลด":"W","ลต":"w","ลถ":"Y","ลท":"y","ลธ":"Y","ลน":"Z","ลป":"Z","ลฝ":"Z","ลบ":"z","ลผ":"z","ลพ":"z","ฤฒ":"IJ","ฤณ":"ij","ล":"Oe","ล":"oe","ล":"'n","ลฟ":"s"},kt={"&":"&","<":"<",">":">",'"':""","'":"'"},jt={"&":"&","<":"<",">":">",""":'"',"'":"'"},zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Ot=parseInt,St="object"==typeof e&&e&&e.Object===Object&&e,Et="object"==typeof self&&self&&self.Object===Object&&self,Ft=St||Et||Function("return this")(),Lt="object"==typeof n&&n&&!n.nodeType&&n,It=Lt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=It&&It.exports===Lt,Tt=Rt&&St.process,Ct=function(){try{var e=It&&It.require&&It.require("util").types;return e||Tt&&Tt.binding&&Tt.binding("util")}catch(e){}}(),qt=Ct&&Ct.isArrayBuffer,Mt=Ct&&Ct.isDate,Wt=Ct&&Ct.isMap,Dt=Ct&&Ct.isRegExp,Bt=Ct&&Ct.isSet,Ut=Ct&&Ct.isTypedArray,Pt=A("length"),$t=O(xt),Nt=O(kt),Zt=O(jt),Gt=function e(n){function t(e){if(nu(e)&&!pd(e)&&!(e instanceof y)){if(e instanceof i)return e;if(dc.call(e,"__wrapped__"))return Ya(e)}return new i(e)}function r(){}function i(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=te}function y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Te,this.__views__=[]}function O(){var e=new y(this.__wrapped__);return e.__actions__=Ii(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ii(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ii(this.__views__),e}function V(){if(this.__filtered__){var e=new y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function X(){var e=this.__wrapped__.value(),n=this.__dir__,t=pd(e),r=n<0,i=t?e.length:0,a=wa(0,i,this.__views__),o=a.start,s=a.end,u=s-o,l=r?s:o-1,c=this.__iteratees__,f=c.length,d=0,p=Pc(u,this.__takeCount__);if(!t||!r&&i==u&&p==u)return hi(e,this.__actions__);var g=[];e:for(;u--&&d-1}function at(e,n){var t=this.__data__,r=Ht(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}function ot(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n=n?e:n)),e}function er(e,n,t,r,i,a){var o,u=n&le,l=n&ce,c=n&fe;if(t&&(o=i?t(e,r,i,a):t(e)),o!==te)return o;if(!eu(e))return e;var f=pd(e);if(f){if(o=ja(e),!u)return Ii(e,o)}else{var d=kf(e),p=d==Ze||d==Ge;if(hd(e))return xi(e,u);if(d==Je||d==We||p&&!i){if(o=l||p?{}:za(e),!u)return l?Ci(e,Jt(o,e)):Ti(e,Vt(o,e))}else{if(!wt[d])return i?e:{};o=Aa(e,d,u)}}a||(a=new mt);var g=a.get(e);if(g)return g;if(a.set(e,o),bd(e))return e.forEach(function(r){o.add(er(r,n,t,r,e,a))}),o;if(md(e))return e.forEach(function(r,i){o.set(i,er(r,n,t,i,e,a))}),o;var h=c?l?pa:da:l?Mu:qu,v=f?te:h(e);return s(v||e,function(r,i){v&&(i=r,r=e[i]),Pt(o,i,er(r,n,t,i,e,a))}),o}function nr(e){var n=qu(e);return function(t){return tr(t,e,n)}}function tr(e,n,t){var r=t.length;if(null==e)return!r;for(e=rc(e);r--;){var i=t[r],a=n[i],o=e[i];if(o===te&&!(i in e)||!a(o))return!1}return!0}function rr(e,n,t){if("function"!=typeof e)throw new oc(ae);return Af(function(){e.apply(te,t)},n)}function ir(e,n,t,r){var i=-1,a=f,o=!0,s=e.length,u=[],l=n.length;if(!s)return u;t&&(n=p(n,R(t))),r?(a=d,o=!1):n.length>=re&&(a=C,o=!1,n=new gt(n));e:for(;++ii?0:i+t),r=r===te||r>i?i:yu(r),r<0&&(r+=i),r=t>r?0:bu(r);t0&&t(s)?n>1?lr(s,n-1,t,r,i):g(i,s):r||(i[i.length]=s)}return i}function cr(e,n){return e&&pf(e,n,qu)}function fr(e,n){return e&&gf(e,n,qu)}function dr(e,n){return c(n,function(n){return Ys(e[n])})}function pr(e,n){n=_i(n,e);for(var t=0,r=n.length;null!=e&&tn}function mr(e,n){return null!=e&&dc.call(e,n)}function yr(e,n){return null!=e&&n in rc(e)}function br(e,n,t){return e>=Pc(n,t)&&e=120&&c.length>=120)?new gt(o&&c):te}c=e[0];var g=-1,h=s[0];e:for(;++g-1;)s!==e&&Ac.call(s,u,1),Ac.call(e,u,1);return e}function Vr(e,n){for(var t=e?n.length:0,r=t-1;t--;){var i=n[t];if(t==r||i!==a){var a=i;Ea(i)?Ac.call(e,i,1):di(e,i)}}return e}function Jr(e,n){return e+Cc(Zc()*(n-e+1))}function Yr(e,n,t,r){for(var i=-1,a=Uc(Tc((n-e)/(t||1)),0),o=Ql(a);a--;)o[r?a:++i]=e,e+=t;return o}function Qr(e,n){var t="";if(!e||n<1||n>Le)return t;do{n%2&&(t+=e),(n=Cc(n/2))&&(e+=e)}while(n);return t}function Xr(e,n){return Of(Ua(e,n,Al),e+"")}function ei(e){return Lt(Vu(e))}function ni(e,n){var t=Vu(e);return Ha(t,Xt(n,0,t.length))}function ti(e,n,t,r){if(!eu(e))return e;n=_i(n,e);for(var i=-1,a=n.length,o=a-1,s=e;null!=s&&++ii?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var a=Ql(i);++r>>1,o=e[a];null!==o&&!du(o)&&(t?o<=n:o=re){var l=n?null:bf(e);if(l)return H(l);o=!1,i=C,u=new gt}else u=n?[]:s;e:for(;++r=r?e:ii(e,n,t)}function xi(e,n){if(n)return e.slice();var t=e.length,r=xc?xc(t):new e.constructor(t);return e.copy(r),r}function ki(e){var n=new e.constructor(e.byteLength);return new wc(n).set(new wc(e)),n}function ji(e,n){var t=n?ki(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function zi(e){var n=new e.constructor(e.source,Un.exec(e));return n.lastIndex=e.lastIndex,n}function Ai(e){return uf?rc(uf.call(e)):{}}function Oi(e,n){var t=n?ki(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Si(e,n){if(e!==n){var t=e!==te,r=null===e,i=e===e,a=du(e),o=n!==te,s=null===n,u=n===n,l=du(n);if(!s&&!l&&!a&&e>n||a&&o&&u&&!s&&!l||r&&o&&u||!t&&u||!i)return 1;if(!r&&!a&&!l&&e=s)return u;return u*("desc"==t[r]?-1:1)}}return e.index-n.index}function Fi(e,n,t,r){for(var i=-1,a=e.length,o=t.length,s=-1,u=n.length,l=Uc(a-o,0),c=Ql(u+l),f=!r;++s1?t[i-1]:te,o=i>2?t[2]:te;for(a=e.length>3&&"function"==typeof a?(i--,a):te,o&&Fa(t[0],t[1],o)&&(a=i<3?te:a,i=1),n=rc(n);++r-1?i[a?n[o]:o]:te}}function Gi(e){return fa(function(n){var t=n.length,r=t,a=i.prototype.thru;for(e&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new oc(ae);if(a&&!s&&"wrapper"==ga(o))var s=new i([],!0)}for(r=s?r:t;++r1&&y.reverse(),f&&us))return!1;var l=a.get(e);if(l&&a.get(n))return l==n;var c=-1,f=!0,d=t&pe?new gt:te;for(a.set(e,n),a.set(n,e);++c1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(Cn,"{\n/* [wrapped with "+n+"] */\n")}function Sa(e){return pd(e)||dd(e)||!!(Oc&&e&&e[Oc])}function Ea(e,n){var t=typeof e;return!!(n=null==n?Le:n)&&("number"==t||"symbol"!=t&&Gn.test(e))&&e>-1&&e%1==0&&e0){if(++n>=Ae)return arguments[0]}else n=0;return e.apply(te,arguments)}}function Ha(e,n){var t=-1,r=e.length,i=r-1;for(n=n===te?r:n;++t=this.__values__.length;return{done:e,value:e?te:this.__values__[this.__index__++]}}function Qo(){return this}function Xo(e){for(var n,t=this;t instanceof r;){var i=Ya(t);i.__index__=0,i.__values__=te,n?a.__wrapped__=i:n=i;var a=i;t=t.__wrapped__}return a.__wrapped__=e,n}function es(){var e=this.__wrapped__;if(e instanceof y){var n=e;return this.__actions__.length&&(n=new y(this)),n=n.reverse(),n.__actions__.push({func:Ko,args:[jo],thisArg:te}),new i(n,this.__chain__)}return this.thru(jo)}function ns(){return hi(this.__wrapped__,this.__actions__)}function ts(e,n,t){var r=pd(e)?l:ar;return t&&Fa(e,n,t)&&(n=te),r(e,va(n,3))}function rs(e,n){return(pd(e)?c:ur)(e,va(n,3))}function is(e,n){return lr(cs(e,n),1)}function as(e,n){return lr(cs(e,n),Fe)}function os(e,n,t){return t=t===te?1:yu(t),lr(cs(e,n),t)}function ss(e,n){return(pd(e)?s:ff)(e,va(n,3))}function us(e,n){return(pd(e)?u:df)(e,va(n,3))}function ls(e,n,t,r){e=Ps(e)?e:Vu(e),t=t&&!r?yu(t):0;var i=e.length;return t<0&&(t=Uc(i+t,0)),fu(e)?t<=i&&e.indexOf(n,t)>-1:!!i&&x(e,n,t)>-1}function cs(e,n){return(pd(e)?p:Wr)(e,va(n,3))}function fs(e,n,t,r){return null==e?[]:(pd(n)||(n=null==n?[]:[n]),t=r?te:t,pd(t)||(t=null==t?[]:[t]),Nr(e,n,t))}function ds(e,n,t){var r=pd(e)?h:S,i=arguments.length<3;return r(e,va(n,4),t,i,ff)}function ps(e,n,t){var r=pd(e)?v:S,i=arguments.length<3;return r(e,va(n,4),t,i,df)}function gs(e,n){return(pd(e)?c:ur)(e,Ss(va(n,3)))}function hs(e){return(pd(e)?Lt:ei)(e)}function vs(e,n,t){return n=(t?Fa(e,n,t):n===te)?1:yu(n),(pd(e)?It:ni)(e,n)}function ms(e){return(pd(e)?Tt:ri)(e)}function ys(e){if(null==e)return 0;if(Ps(e))return fu(e)?Y(e):e.length;var n=kf(e);return n==He||n==Xe?e.size:Cr(e).length}function bs(e,n,t){var r=pd(e)?m:ai;return t&&Fa(e,n,t)&&(n=te),r(e,va(n,3))}function _s(e,n){if("function"!=typeof n)throw new oc(ae);return e=yu(e),function(){if(--e<1)return n.apply(this,arguments)}}function ws(e,n,t){return n=t?te:n,n=e&&null==n?e.length:n,ia(e,we,te,te,te,te,n)}function xs(e,n){var t;if("function"!=typeof n)throw new oc(ae);return e=yu(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=te),t}}function ks(e,n,t){n=t?te:n;var r=ia(e,me,te,te,te,te,te,n);return r.placeholder=ks.placeholder,r}function js(e,n,t){n=t?te:n;var r=ia(e,ye,te,te,te,te,te,n);return r.placeholder=js.placeholder,r}function zs(e,n,t){function r(n){var t=d,r=p;return d=p=te,y=n,h=e.apply(r,t)}function i(e){return y=e,v=Af(s,n),b?r(e):h}function a(e){var t=e-m,r=e-y,i=n-t;return _?Pc(i,g-r):i}function o(e){var t=e-m,r=e-y;return m===te||t>=n||t<0||_&&r>=g}function s(){var e=nd();if(o(e))return u(e);v=Af(s,a(e))}function u(e){return v=te,w&&d?r(e):(d=p=te,h)}function l(){v!==te&&yf(v),y=0,d=m=p=v=te}function c(){return v===te?h:u(nd())}function f(){var e=nd(),t=o(e);if(d=arguments,p=this,m=e,t){if(v===te)return i(m);if(_)return v=Af(s,n),r(m)}return v===te&&(v=Af(s,n)),h}var d,p,g,h,v,m,y=0,b=!1,_=!1,w=!0;if("function"!=typeof e)throw new oc(ae);return n=_u(n)||0,eu(t)&&(b=!!t.leading,_="maxWait"in t,g=_?Uc(_u(t.maxWait)||0,n):g,w="trailing"in t?!!t.trailing:w),f.cancel=l,f.flush=c,f}function As(e){return ia(e,ke)}function Os(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new oc(ae);var t=function(){var r=arguments,i=n?n.apply(this,r):r[0],a=t.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return t.cache=a.set(i,o)||a,o};return t.cache=new(Os.Cache||ot),t}function Ss(e){if("function"!=typeof e)throw new oc(ae);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Es(e){return xs(2,e)}function Fs(e,n){if("function"!=typeof e)throw new oc(ae);return n=n===te?n:yu(n),Xr(e,n)}function Ls(e,n){if("function"!=typeof e)throw new oc(ae);return n=null==n?0:Uc(yu(n),0),Xr(function(t){var r=t[n],i=wi(t,0,n);return r&&g(i,r),a(e,this,i)})}function Is(e,n,t){var r=!0,i=!0;if("function"!=typeof e)throw new oc(ae);return eu(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),zs(e,n,{leading:r,maxWait:n,trailing:i})}function Rs(e){return ws(e,1)}function Ts(e,n){return sd(bi(n),e)}function Cs(){if(!arguments.length)return[];var e=arguments[0];return pd(e)?e:[e]}function qs(e){return er(e,fe)}function Ms(e,n){return n="function"==typeof n?n:te,er(e,fe,n)}function Ws(e){return er(e,le|fe)}function Ds(e,n){return n="function"==typeof n?n:te,er(e,le|fe,n)}function Bs(e,n){return null==n||tr(e,n,qu(n))}function Us(e,n){return e===n||e!==e&&n!==n}function Ps(e){return null!=e&&Xs(e.length)&&!Ys(e)}function $s(e){return nu(e)&&Ps(e)}function Ns(e){return!0===e||!1===e||nu(e)&&hr(e)==Ue}function Zs(e){return nu(e)&&1===e.nodeType&&!lu(e)}function Gs(e){if(null==e)return!0;if(Ps(e)&&(pd(e)||"string"==typeof e||"function"==typeof e.splice||hd(e)||_d(e)||dd(e)))return!e.length;var n=kf(e);if(n==He||n==Xe)return!e.size;if(Ca(e))return!Cr(e).length;for(var t in e)if(dc.call(e,t))return!1;return!0}function Hs(e,n){return Ar(e,n)}function Ks(e,n,t){t="function"==typeof t?t:te;var r=t?t(e,n):te;return r===te?Ar(e,n,te,t):!!r}function Vs(e){if(!nu(e))return!1;var n=hr(e);return n==Ne||n==$e||"string"==typeof e.message&&"string"==typeof e.name&&!lu(e)}function Js(e){return"number"==typeof e&&Wc(e)}function Ys(e){if(!eu(e))return!1;var n=hr(e);return n==Ze||n==Ge||n==Be||n==Ye}function Qs(e){return"number"==typeof e&&e==yu(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Le}function eu(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function nu(e){return null!=e&&"object"==typeof e}function tu(e,n){return e===n||Er(e,n,ya(n))}function ru(e,n,t){return t="function"==typeof t?t:te,Er(e,n,ya(n),t)}function iu(e){return uu(e)&&e!=+e}function au(e){if(jf(e))throw new ec(ie);return Fr(e)}function ou(e){return null===e}function su(e){return null==e}function uu(e){return"number"==typeof e||nu(e)&&hr(e)==Ke}function lu(e){if(!nu(e)||hr(e)!=Je)return!1;var n=kc(e);if(null===n)return!0;var t=dc.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&fc.call(t)==vc}function cu(e){return Qs(e)&&e>=-Le&&e<=Le}function fu(e){return"string"==typeof e||!pd(e)&&nu(e)&&hr(e)==en}function du(e){return"symbol"==typeof e||nu(e)&&hr(e)==nn}function pu(e){return e===te}function gu(e){return nu(e)&&kf(e)==rn}function hu(e){return nu(e)&&hr(e)==an}function vu(e){if(!e)return[];if(Ps(e))return fu(e)?Q(e):Ii(e);if(Sc&&e[Sc])return $(e[Sc]());var n=kf(e);return(n==He?N:n==Xe?H:Vu)(e)}function mu(e){if(!e)return 0===e?e:0;if((e=_u(e))===Fe||e===-Fe){return(e<0?-1:1)*Ie}return e===e?e:0}function yu(e){var n=mu(e),t=n%1;return n===n?t?n-t:n:0}function bu(e){return e?Xt(yu(e),0,Te):0}function _u(e){if("number"==typeof e)return e;if(du(e))return Re;if(eu(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=eu(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(In,"");var t=$n.test(e);return t||Zn.test(e)?Ot(e.slice(2),t?2:8):Pn.test(e)?Re:+e}function wu(e){return Ri(e,Mu(e))}function xu(e){return e?Xt(yu(e),-Le,Le):0===e?e:0}function ku(e){return null==e?"":ci(e)}function ju(e,n){var t=cf(e);return null==n?t:Vt(t,n)}function zu(e,n){return _(e,va(n,3),cr)}function Au(e,n){return _(e,va(n,3),fr)}function Ou(e,n){return null==e?e:pf(e,va(n,3),Mu)}function Su(e,n){return null==e?e:gf(e,va(n,3),Mu)}function Eu(e,n){return e&&cr(e,va(n,3))}function Fu(e,n){return e&&fr(e,va(n,3))}function Lu(e){return null==e?[]:dr(e,qu(e))}function Iu(e){return null==e?[]:dr(e,Mu(e))}function Ru(e,n,t){var r=null==e?te:pr(e,n);return r===te?t:r}function Tu(e,n){return null!=e&&ka(e,n,mr)}function Cu(e,n){return null!=e&&ka(e,n,yr)}function qu(e){return Ps(e)?Et(e):Cr(e)}function Mu(e){return Ps(e)?Et(e,!0):qr(e)}function Wu(e,n){var t={};return n=va(n,3),cr(e,function(e,r,i){Yt(t,n(e,r,i),e)}),t}function Du(e,n){var t={};return n=va(n,3),cr(e,function(e,r,i){Yt(t,r,n(e,r,i))}),t}function Bu(e,n){return Uu(e,Ss(va(n)))}function Uu(e,n){if(null==e)return{};var t=p(pa(e),function(e){return[e]});return n=va(n),Gr(e,t,function(e,t){return n(e,t[0])})}function Pu(e,n,t){n=_i(n,e);var r=-1,i=n.length;for(i||(i=1,e=te);++rn){var r=e;e=n,n=r}if(t||e%1||n%1){var i=Zc();return Pc(e+i*(n-e+At("1e-"+((i+"").length-1))),n)}return Jr(e,n)}function el(e){return Gd(ku(e).toLowerCase())}function nl(e){return(e=ku(e))&&e.replace(Hn,$t).replace(pt,"")}function tl(e,n,t){e=ku(e),n=ci(n);var r=e.length;t=t===te?r:Xt(yu(t),0,r);var i=t;return(t-=n.length)>=0&&e.slice(t,i)==n}function rl(e){return e=ku(e),e&&kn.test(e)?e.replace(wn,Nt):e}function il(e){return e=ku(e),e&&Ln.test(e)?e.replace(Fn,"\\$&"):e}function al(e,n,t){e=ku(e),n=yu(n);var r=n?Y(e):0;if(!n||r>=n)return e;var i=(n-r)/2;return Yi(Cc(i),t)+e+Yi(Tc(i),t)}function ol(e,n,t){e=ku(e),n=yu(n);var r=n?Y(e):0;return n&&r>>0)?(e=ku(e),e&&("string"==typeof n||null!=n&&!yd(n))&&!(n=ci(n))&&U(e)?wi(Q(e),0,t):e.split(n,t)):[]}function dl(e,n,t){return e=ku(e),t=null==t?0:Xt(yu(t),0,e.length),n=ci(n),e.slice(t,t+n.length)==n}function pl(e,n,r){var i=t.templateSettings;r&&Fa(e,n,r)&&(n=te),e=ku(e),n=zd({},n,i,aa);var a,o,s=zd({},n.imports,i.imports,aa),u=qu(s),l=T(s,u),c=0,f=n.interpolate||Kn,d="__p += '",p=ic((n.escape||Kn).source+"|"+f.source+"|"+(f===An?Bn:Kn).source+"|"+(n.evaluate||Kn).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++bt+"]")+"\n";e.replace(p,function(n,t,r,i,s,u){return r||(r=i),d+=e.slice(c,u).replace(Vn,D),t&&(a=!0,d+="' +\n__e("+t+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+n.length,n}),d+="';\n";var h=n.variable;h||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(mn,""):d).replace(yn,"$1").replace(bn,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Hd(function(){return nc(u,g+"return "+d).apply(te,l)});if(v.source=d,Vs(v))throw v;return v}function gl(e){return ku(e).toLowerCase()}function hl(e){return ku(e).toUpperCase()}function vl(e,n,t){if((e=ku(e))&&(t||n===te))return e.replace(In,"");if(!e||!(n=ci(n)))return e;var r=Q(e),i=Q(n);return wi(r,q(r,i),M(r,i)+1).join("")}function ml(e,n,t){if((e=ku(e))&&(t||n===te))return e.replace(Tn,"");if(!e||!(n=ci(n)))return e;var r=Q(e);return wi(r,0,M(r,Q(n))+1).join("")}function yl(e,n,t){if((e=ku(e))&&(t||n===te))return e.replace(Rn,"");if(!e||!(n=ci(n)))return e;var r=Q(e);return wi(r,q(r,Q(n))).join("")}function bl(e,n){var t=je,r=ze;if(eu(n)){var i="separator"in n?n.separator:i;t="length"in n?yu(n.length):t,r="omission"in n?ci(n.omission):r}e=ku(e);var a=e.length;if(U(e)){var o=Q(e);a=o.length}if(t>=a)return e;var s=t-Y(r);if(s<1)return r;var u=o?wi(o,0,s).join(""):e.slice(0,s);if(i===te)return u+r;if(o&&(s+=u.length-s),yd(i)){if(e.slice(s).search(i)){var l,c=u;for(i.global||(i=ic(i.source,ku(Un.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===te?s:f)}}else if(e.indexOf(ci(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r}function _l(e){return e=ku(e),e&&xn.test(e)?e.replace(_n,Zt):e}function wl(e,n,t){return e=ku(e),n=t?te:n,n===te?P(e)?ne(e):b(e):e.match(n)||[]}function xl(e){var n=null==e?0:e.length,t=va();return e=n?p(e,function(e){if("function"!=typeof e[1])throw new oc(ae);return[t(e[0]),e[1]]}):[],Xr(function(t){for(var r=-1;++rLe)return[];var t=Te,r=Pc(e,Te);n=va(n),e-=Te;for(var i=L(r,n);++t1?e[n-1]:te;return t="function"==typeof t?(e.pop(),t):te,$o(e,t)}),Gf=fa(function(e){var n=e.length,t=n?e[0]:0,r=this.__wrapped__,a=function(n){return Qt(n,e)};return!(n>1||this.__actions__.length)&&r instanceof y&&Ea(t)?(r=r.slice(t,+t+(n?1:0)),r.__actions__.push({func:Ko,args:[a],thisArg:te}),new i(r,this.__chain__).thru(function(e){return n&&!e.length&&e.push(te),e})):this.thru(a)}),Hf=qi(function(e,n,t){dc.call(e,t)?++e[t]:Yt(e,t,1)}),Kf=Zi(oo),Vf=Zi(so),Jf=qi(function(e,n,t){dc.call(e,t)?e[t].push(n):Yt(e,t,[n])}),Yf=Xr(function(e,n,t){var r=-1,i="function"==typeof n,o=Ps(e)?Ql(e.length):[];return ff(e,function(e){o[++r]=i?a(n,e,t):xr(e,n,t)}),o}),Qf=qi(function(e,n,t){Yt(e,t,n)}),Xf=qi(function(e,n,t){e[t?0:1].push(n)},function(){return[[],[]]}),ed=Xr(function(e,n){if(null==e)return[];var t=n.length;return t>1&&Fa(e,n[0],n[1])?n=[]:t>2&&Fa(n[0],n[1],n[2])&&(n=[n[0]]),Nr(e,lr(n,1),[])}),nd=Ic||function(){return Ft.Date.now()},td=Xr(function(e,n,t){var r=ge;if(t.length){var i=G(t,ha(td));r|=be}return ia(e,r,n,t,i)}),rd=Xr(function(e,n,t){var r=ge|he;if(t.length){var i=G(t,ha(rd));r|=be}return ia(n,r,e,t,i)}),id=Xr(function(e,n){return rr(e,1,n)}),ad=Xr(function(e,n,t){return rr(e,_u(n)||0,t)});Os.Cache=ot;var od=mf(function(e,n){n=1==n.length&&pd(n[0])?p(n[0],R(va())):p(lr(n,1),R(va()));var t=n.length;return Xr(function(r){for(var i=-1,o=Pc(r.length,t);++i=n}),dd=kr(function(){return arguments}())?kr:function(e){return nu(e)&&dc.call(e,"callee")&&!zc.call(e,"callee")},pd=Ql.isArray,gd=qt?R(qt):jr,hd=Mc||Ml,vd=Mt?R(Mt):zr,md=Wt?R(Wt):Sr,yd=Dt?R(Dt):Lr,bd=Bt?R(Bt):Ir,_d=Ut?R(Ut):Rr,wd=ea(Mr),xd=ea(function(e,n){return e<=n}),kd=Mi(function(e,n){if(Ca(n)||Ps(n))return void Ri(n,qu(n),e);for(var t in n)dc.call(n,t)&&Pt(e,t,n[t])}),jd=Mi(function(e,n){Ri(n,Mu(n),e)}),zd=Mi(function(e,n,t,r){Ri(n,Mu(n),e,r)}),Ad=Mi(function(e,n,t,r){Ri(n,qu(n),e,r)}),Od=fa(Qt),Sd=Xr(function(e,n){e=rc(e);var t=-1,r=n.length,i=r>2?n[2]:te;for(i&&Fa(n[0],n[1],i)&&(r=1);++t1),n}),Ri(e,pa(e),t),r&&(t=er(t,le|ce|fe,sa));for(var i=n.length;i--;)di(t,n[i]);return t}),qd=fa(function(e,n){return null==e?{}:Zr(e,n)}),Md=ra(qu),Wd=ra(Mu),Dd=Pi(function(e,n,t){return n=n.toLowerCase(),e+(t?el(n):n)}),Bd=Pi(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),Ud=Pi(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),Pd=Ui("toLowerCase"),$d=Pi(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}),Nd=Pi(function(e,n,t){return e+(t?" ":"")+Gd(n)}),Zd=Pi(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),Gd=Ui("toUpperCase"),Hd=Xr(function(e,n){try{return a(e,te,n)}catch(e){return Vs(e)?e:new ec(e)}}),Kd=fa(function(e,n){return s(n,function(n){n=Ka(n),Yt(e,n,td(e[n],e))}),e}),Vd=Gi(),Jd=Gi(!0),Yd=Xr(function(e,n){return function(t){return xr(t,e,n)}}),Qd=Xr(function(e,n){return function(t){return xr(e,t,n)}}),Xd=Ji(p),ep=Ji(l),np=Ji(m),tp=Xi(),rp=Xi(!0),ip=Vi(function(e,n){return e+n},0),ap=ta("ceil"),op=Vi(function(e,n){return e/n},1),sp=ta("floor"),up=Vi(function(e,n){return e*n},1),lp=ta("round"),cp=Vi(function(e,n){return e-n},0);return t.after=_s,t.ary=ws,t.assign=kd,t.assignIn=jd,t.assignInWith=zd,t.assignWith=Ad,t.at=Od,t.before=xs,t.bind=td,t.bindAll=Kd,t.bindKey=rd,t.castArray=Cs,t.chain=Go,t.chunk=Qa,t.compact=Xa,t.concat=eo,t.cond=xl,t.conforms=kl,t.constant=jl,t.countBy=Hf,t.create=ju,t.curry=ks,t.curryRight=js,t.debounce=zs,t.defaults=Sd,t.defaultsDeep=Ed,t.defer=id,t.delay=ad,t.difference=Ef,t.differenceBy=Ff,t.differenceWith=Lf,t.drop=no,t.dropRight=to,t.dropRightWhile=ro,t.dropWhile=io,t.fill=ao,t.filter=rs,t.flatMap=is,t.flatMapDeep=as,t.flatMapDepth=os,t.flatten=uo,t.flattenDeep=lo,t.flattenDepth=co,t.flip=As,t.flow=Vd,t.flowRight=Jd,t.fromPairs=fo,t.functions=Lu,t.functionsIn=Iu,t.groupBy=Jf,t.initial=ho,t.intersection=If,t.intersectionBy=Rf,t.intersectionWith=Tf,t.invert=Fd,t.invertBy=Ld,t.invokeMap=Yf,t.iteratee=Ol,t.keyBy=Qf,t.keys=qu,t.keysIn=Mu,t.map=cs,t.mapKeys=Wu,t.mapValues=Du,t.matches=Sl,t.matchesProperty=El,t.memoize=Os,t.merge=Rd,t.mergeWith=Td,t.method=Yd,t.methodOf=Qd,t.mixin=Fl,t.negate=Ss,t.nthArg=Rl,t.omit=Cd,t.omitBy=Bu,t.once=Es,t.orderBy=fs,t.over=Xd,t.overArgs=od,t.overEvery=ep,t.overSome=np,t.partial=sd,t.partialRight=ud,t.partition=Xf,t.pick=qd,t.pickBy=Uu,t.property=Tl,t.propertyOf=Cl,t.pull=Cf,t.pullAll=_o,t.pullAllBy=wo,t.pullAllWith=xo,t.pullAt=qf,t.range=tp,t.rangeRight=rp,t.rearg=ld,t.reject=gs,t.remove=ko,t.rest=Fs,t.reverse=jo,t.sampleSize=vs,t.set=$u,t.setWith=Nu,t.shuffle=ms,t.slice=zo,t.sortBy=ed,t.sortedUniq=Io,t.sortedUniqBy=Ro,t.split=fl,t.spread=Ls,t.tail=To,t.take=Co,t.takeRight=qo,t.takeRightWhile=Mo,t.takeWhile=Wo,t.tap=Ho,t.throttle=Is,t.thru=Ko,t.toArray=vu,t.toPairs=Md,t.toPairsIn=Wd,t.toPath=Pl,t.toPlainObject=wu,t.transform=Zu,t.unary=Rs,t.union=Mf,t.unionBy=Wf,t.unionWith=Df,t.uniq=Do,t.uniqBy=Bo,t.uniqWith=Uo,t.unset=Gu,t.unzip=Po,t.unzipWith=$o,t.update=Hu,t.updateWith=Ku,t.values=Vu,t.valuesIn=Ju,t.without=Bf,t.words=wl,t.wrap=Ts,t.xor=Uf,t.xorBy=Pf,t.xorWith=$f,t.zip=Nf,t.zipObject=No,t.zipObjectDeep=Zo,t.zipWith=Zf,t.entries=Md,t.entriesIn=Wd,t.extend=jd,t.extendWith=zd,Fl(t,t),t.add=ip,t.attempt=Hd,t.camelCase=Dd,t.capitalize=el,t.ceil=ap,t.clamp=Yu,t.clone=qs,t.cloneDeep=Ws,t.cloneDeepWith=Ds,t.cloneWith=Ms,t.conformsTo=Bs,t.deburr=nl,t.defaultTo=zl,t.divide=op,t.endsWith=tl,t.eq=Us,t.escape=rl,t.escapeRegExp=il,t.every=ts,t.find=Kf,t.findIndex=oo,t.findKey=zu,t.findLast=Vf,t.findLastIndex=so,t.findLastKey=Au,t.floor=sp,t.forEach=ss,t.forEachRight=us,t.forIn=Ou,t.forInRight=Su,t.forOwn=Eu,t.forOwnRight=Fu,t.get=Ru,t.gt=cd,t.gte=fd,t.has=Tu,t.hasIn=Cu,t.head=po,t.identity=Al,t.includes=ls,t.indexOf=go,t.inRange=Qu,t.invoke=Id,t.isArguments=dd,t.isArray=pd,t.isArrayBuffer=gd,t.isArrayLike=Ps,t.isArrayLikeObject=$s,t.isBoolean=Ns,t.isBuffer=hd,t.isDate=vd,t.isElement=Zs,t.isEmpty=Gs,t.isEqual=Hs,t.isEqualWith=Ks,t.isError=Vs,t.isFinite=Js,t.isFunction=Ys,t.isInteger=Qs,t.isLength=Xs,t.isMap=md,t.isMatch=tu,t.isMatchWith=ru,t.isNaN=iu,t.isNative=au,t.isNil=su,t.isNull=ou,t.isNumber=uu,t.isObject=eu,t.isObjectLike=nu,t.isPlainObject=lu,t.isRegExp=yd,t.isSafeInteger=cu,t.isSet=bd,t.isString=fu,t.isSymbol=du,t.isTypedArray=_d,t.isUndefined=pu,t.isWeakMap=gu,t.isWeakSet=hu,t.join=vo,t.kebabCase=Bd,t.last=mo,t.lastIndexOf=yo,t.lowerCase=Ud,t.lowerFirst=Pd,t.lt=wd,t.lte=xd,t.max=Nl,t.maxBy=Zl,t.mean=Gl,t.meanBy=Hl,t.min=Kl,t.minBy=Vl,t.stubArray=ql,t.stubFalse=Ml,t.stubObject=Wl,t.stubString=Dl,t.stubTrue=Bl,t.multiply=up,t.nth=bo,t.noConflict=Ll,t.noop=Il,t.now=nd,t.pad=al,t.padEnd=ol,t.padStart=sl,t.parseInt=ul,t.random=Xu,t.reduce=ds,t.reduceRight=ps,t.repeat=ll,t.replace=cl,t.result=Pu,t.round=lp,t.runInContext=e,t.sample=hs,t.size=ys,t.snakeCase=$d,t.some=bs,t.sortedIndex=Ao,t.sortedIndexBy=Oo,t.sortedIndexOf=So,t.sortedLastIndex=Eo,t.sortedLastIndexBy=Fo,t.sortedLastIndexOf=Lo,t.startCase=Nd,t.startsWith=dl,t.subtract=cp,t.sum=Jl,t.sumBy=Yl,t.template=pl,t.times=Ul,t.toFinite=mu,t.toInteger=yu,t.toLength=bu,t.toLower=gl,t.toNumber=_u,t.toSafeInteger=xu,t.toString=ku,t.toUpper=hl,t.trim=vl,t.trimEnd=ml,t.trimStart=yl,t.truncate=bl,t.unescape=_l,t.uniqueId=$l,t.upperCase=Zd,t.upperFirst=Gd,t.each=ss,t.eachRight=us,t.first=po,Fl(t,function(){var e={};return cr(t,function(n,r){dc.call(t.prototype,r)||(e[r]=n)}),e}(),{chain:!1}),t.VERSION="4.17.11",s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),s(["drop","take"],function(e,n){y.prototype[e]=function(t){t=t===te?1:Uc(yu(t),0);var r=this.__filtered__&&!n?new y(this):this.clone();return r.__filtered__?r.__takeCount__=Pc(t,r.__takeCount__):r.__views__.push({size:Pc(t,Te),type:e+(r.__dir__<0?"Right":"")}),r},y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),s(["filter","map","takeWhile"],function(e,n){var t=n+1,r=t==Se||3==t;y.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:va(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}}),s(["head","last"],function(e,n){var t="take"+(n?"Right":"");y.prototype[e]=function(){return this[t](1).value()[0]}}),s(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");y.prototype[e]=function(){return this.__filtered__?new y(this):this[t](1)}}),y.prototype.compact=function(){return this.filter(Al)},y.prototype.find=function(e){return this.filter(e).head()},y.prototype.findLast=function(e){return this.reverse().find(e)},y.prototype.invokeMap=Xr(function(e,n){return"function"==typeof e?new y(this):this.map(function(t){return xr(t,e,n)})}),y.prototype.reject=function(e){return this.filter(Ss(va(e)))},y.prototype.slice=function(e,n){e=yu(e);var t=this;return t.__filtered__&&(e>0||n<0)?new y(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==te&&(n=yu(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},y.prototype.toArray=function(){return this.take(Te)},cr(y.prototype,function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),o=t[a?"take"+("last"==n?"Right":""):n],s=a||/^find/.test(n);o&&(t.prototype[n]=function(){var n=this.__wrapped__,u=a?[1]:arguments,l=n instanceof y,c=u[0],f=l||pd(n),d=function(e){var n=o.apply(t,g([e],u));return a&&p?n[0]:n};f&&r&&"function"==typeof c&&1!=c.length&&(l=f=!1);var p=this.__chain__,h=!!this.__actions__.length,v=s&&!p,m=l&&!h;if(!s&&f){n=m?n:new y(this);var b=e.apply(n,u);return b.__actions__.push({func:Ko,args:[d],thisArg:te}),new i(b,p)}return v&&m?e.apply(this,u):(b=this.thru(d),v?a?b.value()[0]:b.value():b)})}),s(["pop","push","shift","sort","splice","unshift"],function(e){var n=sc[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var t=this.value();return n.apply(pd(t)?t:[],e)}return this[r](function(t){return n.apply(pd(t)?t:[],e)})}}),cr(y.prototype,function(e,n){var r=t[n];if(r){var i=r.name+"";(ef[i]||(ef[i]=[])).push({name:n,func:r})}}),ef[Hi(te,he).name]=[{name:"wrapper",func:te}],y.prototype.clone=O,y.prototype.reverse=V,y.prototype.value=X,t.prototype.at=Gf,t.prototype.chain=Vo,t.prototype.commit=Jo,t.prototype.next=Yo,t.prototype.plant=Xo,t.prototype.reverse=es,t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=ns,t.prototype.first=t.prototype.head,Sc&&(t.prototype[Sc]=Qo),t}();Ft._=Gt,(i=function(){return Gt}.call(n,t,n,r))!==te&&(r.exports=i)}).call(this)}).call(n,t(16),t(17)(e))},function(e,n){function t(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===t||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(n){try{return c.call(null,e,0)}catch(n){return c.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(n){try{return f.call(null,e)}catch(n){return f.call(this,e)}}}function o(){h&&p&&(h=!1,p.length?g=p.concat(g):v=-1,g.length&&s())}function s(){if(!h){var e=i(o);h=!0;for(var n=g.length;n;){for(p=g,g=[];++v1)for(var t=1;t0){var i=e[n-1];r[i]&&(t=-t)}return t}}},function(e,n,t){(function(n){var r=t(15),i=t(14),a=function(e){this.options=e};a.prototype.registerLanguage=function(e,n){i.addLanguage(e,n)},a.prototype.analyze=function(e,t,a){void 0===e&&(e=""),"function"==typeof t&&(a=t,t={}),t=t||{};var o=t.language||"en",s=i.getLabels(o);"object"==typeof t.extras&&(s=Object.assign(s,t.extras));for(var u=r(e),l=0,c=[],f=[],d=[],p=u.length;p--;){var g=u[p];if(s.hasOwnProperty(g)){c.push(g);var h=s[g];h=i.applyScoringStrategy(o,u,p,h),h>0&&f.push(g),h<0&&d.push(g),l+=h}}var v={score:l,comparative:u.length>0?l/u.length:0,tokens:u,words:c,positive:f,negative:d};if("function"!=typeof a)return v;n.nextTick(function(){a(null,v)})},e.exports=a}).call(n,t(7))},function(e,n,t){var r=t(8),i=t(1);Object.assign(i.labels,r);var a={en:i};e.exports={addLanguage:function(e,n){if(!n.labels)throw new Error("language.labels must be defined!");Object.assign(n.labels,r),a[e]=n},getLanguage:function(e){if(!e)return a.en;if(!a[e])try{var n=t(9)("./"+e+"/index");this.addLanguage(e,n)}catch(n){throw new Error("No language found: "+e)}return a[e]},getLabels:function(e){return this.getLanguage(e).labels},applyScoringStrategy:function(e,n,t,r){return(this.getLanguage(e).scoringStrategy||o).apply(n,t,r)}};var o={apply:function(e,n,t){return t}}},function(e,n){e.exports=function(e){return e.toLowerCase().replace(/\n/g," ").replace(/[.,\/#!$%\^&\*;:{}=_`\"~()]/g,"").split(" ")}},function(e,n){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}]);
\ No newline at end of file
diff --git a/package.json b/package.json
index 836b2d6..30a7554 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sentimony",
- "version": "1.0.0",
+ "version": "1.1.0",
"description": "sentimony TinyMCE plugin repo",
"scripts": {
"start": "webpack-dev-server --config config/webpack.config.dev.js --progress --open --inline",
diff --git a/src/plugin.js b/src/plugin.js
index f09856b..3208d65 100755
--- a/src/plugin.js
+++ b/src/plugin.js
@@ -73,7 +73,7 @@ const plugin = editor => {
name: s.t(l, "title"),
url: "https://github.com/thedannywahl/sentimony/",
author: "Danny Wahl",
- version: "1.0.0"
+ version: "1.1.0"
}
}
}