1234567891011 |
- /*!
- * build: Hopaheal
- * copyright: Mead
- * time: 2022-9-23 10:41:22
- */
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c5c9806"],{"0112":function(t,e,n){n("4117")},"03a1":function(module,exports,__webpack_require__){(function(t,e){module.exports=e()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){var r,o=n(1),i=n(3),a=n(5),u=n(20),c=n(23),s=n(25);"undefined"!==typeof window&&(r=n(27)
- /*!
- Mock - 模拟请求 & 模拟数据
- https://github.com/nuysoft/Mock
- 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
- */);var l={Handler:o,Random:a,Util:i,XHR:r,RE:u,toJSONSchema:c,valid:s,heredoc:i.heredoc,setup:function(t){return r.setup(t)},_mocked:{},version:"1.0.1-beta3"};r&&(r.Mock=l),l.mock=function(t,e,n){return 1===arguments.length?o.gen(t):(2===arguments.length&&(n=e,e=void 0),r&&(window.XMLHttpRequest=r),l._mocked[t+(e||"")]={rurl:t,rtype:e,template:n},l)},t.exports=l},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend,gen:function(t,e,n){e=void 0==e?"":e+"",n=n||{},n={path:n.path||[Constant.GUID],templatePath:n.templatePath||[Constant.GUID++],currentContext:n.currentContext,templateCurrentContext:n.templateCurrentContext||t,root:n.root||n.currentContext,templateRoot:n.templateRoot||n.templateCurrentContext||t};var r,o=Parser.parse(e),i=Util.type(t);return Handler[i]?(r=Handler[i]({type:i,template:t,name:e,parsedName:e?e.replace(Constant.RE_KEY,"$1"):e,rule:o,context:n}),n.root||(n.root=r),r):t}};Handler.extend({array:function(t){var e,n,r=[];if(0===t.template.length)return r;if(t.rule.parameters)if(1===t.rule.min&&void 0===t.rule.max)t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Random.pick(Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})),t.context.path.pop(),t.context.templatePath.pop();else if(t.rule.parameters[2])t.template.__order_index=t.template.__order_index||0,t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})[t.template.__order_index%t.template.length],t.template.__order_index+=+t.rule.parameters[2],t.context.path.pop(),t.context.templatePath.pop();else for(e=0;e<t.rule.count;e++)for(n=0;n<t.template.length;n++)t.context.path.push(r.length),t.context.templatePath.push(n),r.push(Handler.gen(t.template[n],r.length,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})),t.context.path.pop(),t.context.templatePath.pop();else for(e=0;e<t.template.length;e++)t.context.path.push(e),t.context.templatePath.push(e),r.push(Handler.gen(t.template[e],e,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})),t.context.path.pop(),t.context.templatePath.pop();return r},object:function(t){var e,n,r,o,i,a,u={};if(void 0!=t.rule.min)for(e=Util.keys(t.template),e=Random.shuffle(e),e=e.slice(0,t.rule.count),a=0;a<e.length;a++)r=e[a],o=r.replace(Constant.RE_KEY,"$1"),t.context.path.push(o),t.context.templatePath.push(r),u[o]=Handler.gen(t.template[r],r,{path:t.context.path,templatePath:t.context.templatePath,currentContext:u,templateCurrentContext:t.template,root:t.context.root||u,templateRoot:t.context.templateRoot||t.template}),t.context.path.pop(),t.context.templatePath.pop();else{for(r in e=[],n=[],t.template)("function"===typeof t.template[r]?n:e).push(r);for(e=e.concat(n),a=0;a<e.length;a++)r=e[a],o=r.replace(Constant.RE_KEY,"$1"),t.context.path.push(o),t.context.templatePath.push(r),u[o]=Handler.gen(t.template[r],r,{path:t.context.path,templatePath:t.context.templatePath,currentContext:u,templateCurrentContext:t.template,root:t.context.root||u,templateRoot:t.context.templateRoot||t.template}),t.context.path.pop(),t.context.templatePath.pop(),i=r.match(Constant.RE_KEY),i&&i[2]&&"number"===Util.type(t.template[r])&&(t.template[r]+=parseInt(i[2],10))}return u},number:function(t){var e,n;if(t.rule.decimal){t.template+="",n=t.template.split("."),n[0]=t.rule.range?t.rule.count:n[0],n[1]=(n[1]||"").slice(0,t.rule.dcount);while(n[1].length<t.rule.dcount)n[1]+=n[1].length<t.rule.dcount-1?Random.character("number"):Random.character("123456789");e=parseFloat(n.join("."),10)}else e=t.rule.range&&!t.rule.parameters[2]?t.rule.count:t.template;return e},boolean:function(t){var e;return e=t.rule.parameters?Random.bool(t.rule.min,t.rule.max,t.template):t.template,e},string:function(t){var e,n,r,o,i="";if(t.template.length){for(void 0==t.rule.count&&(i+=t.template),e=0;e<t.rule.count;e++)i+=t.template;for(n=i.match(Constant.RE_PLACEHOLDER)||[],e=0;e<n.length;e++)if(r=n[e],/^\\/.test(r))n.splice(e--,1);else{if(o=Handler.placeholder(r,t.context.currentContext,t.context.templateCurrentContext,t),1===n.length&&r===i&&typeof o!==typeof i){i=o;break}i=i.replace(r,o)}}else i=t.rule.range?Random.string(t.rule.count):t.template;return i},function:function(t){return t.template.call(t.context.currentContext,t)},regexp:function(t){var e="";void 0==t.rule.count&&(e+=t.template.source);for(var n=0;n<t.rule.count;n++)e+=t.template.source;return RE.Handler.gen(RE.Parser.parse(e))}}),Handler.extend({_all:function(){var t={};for(var e in Random)t[e.toLowerCase()]=e;return t},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch(error){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if("/"===key.charAt(0)||pathParts.length>1)return this.getValueByKeyPath(key,options);if(templateContext&&"object"===typeof templateContext&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return void 0===re&&(re=""),delete handle.options,re}},getValueByKeyPath:function(t,e){var n=t,r=this.splitPathToArray(t),o=[];"/"===t.charAt(0)?o=[e.context.path[0]].concat(this.normalizePath(r)):r.length>1&&(o=e.context.path.slice(0),o.pop(),o=this.normalizePath(o.concat(r)));try{t=r[r.length-1];for(var i=e.context.root,a=e.context.templateRoot,u=1;u<o.length-1;u++)i=i[o[u]],a=a[o[u]];if(i&&t in i)return i[t];if(a&&"object"===typeof a&&t in a&&n!==a[t])return a[t]=Handler.gen(a[t],t,{currentContext:i,templateCurrentContext:a}),a[t]}catch(c){}return"@"+r.join("/")},normalizePath:function(t){for(var e=[],n=0;n<t.length;n++)switch(t[n]){case"..":e.pop();break;case".":break;default:e.push(t[n])}return e},splitPathToArray:function(t){var e=t.split(/\/+/);return e[e.length-1]||(e=e.slice(0,-1)),e[0]||(e=e.slice(1)),e}}),module.exports=Handler},function(t,e){t.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function(t,e){var n={extend:function(){var t,e,r,o,i,a=arguments[0]||{},u=1,c=arguments.length;for(1===c&&(a=this,u=0);u<c;u++)if(t=arguments[u],t)for(e in t)r=a[e],o=t[e],a!==o&&void 0!==o&&(n.isArray(o)||n.isObject(o)?(n.isArray(o)&&(i=r&&n.isArray(r)?r:[]),n.isObject(o)&&(i=r&&n.isObject(r)?r:{}),a[e]=n.extend(i,o)):a[e]=o);return a},each:function(t,e,n){var r,o;if("number"===this.type(t))for(r=0;r<t;r++)e(r,r);else if(t.length===+t.length){for(r=0;r<t.length;r++)if(!1===e.call(n,t[r],r,t))break}else for(o in t)if(!1===e.call(n,t[o],o,t))break},type:function(t){return null===t||void 0===t?String(t):Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1].toLowerCase()}};n.each("String Object Array RegExp Function".split(" "),(function(t){n["is"+t]=function(e){return n.type(e)===t.toLowerCase()}})),n.isObjectOrArray=function(t){return n.isObject(t)||n.isArray(t)},n.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},n.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},n.values=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},n.heredoc=function(t){return t.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},n.noop=function(){},t.exports=n},function(t,e,n){var r=n(2),o=n(5);t.exports={parse:function(t){t=void 0==t?"":t+"";var e=(t||"").match(r.RE_KEY),n=e&&e[3]&&e[3].match(r.RE_RANGE),i=n&&n[1]&&parseInt(n[1],10),a=n&&n[2]&&parseInt(n[2],10),u=n?n[2]?o.integer(i,a):parseInt(n[1],10):void 0,c=e&&e[4]&&e[4].match(r.RE_RANGE),s=c&&c[1]&&parseInt(c[1],10),l=c&&c[2]&&parseInt(c[2],10),f=c?!c[2]&&parseInt(c[1],10)||o.integer(s,l):void 0,d={parameters:e,range:n,min:i,max:a,count:u,decimal:c,dmin:s,dmax:l,dcount:f};for(var m in d)if(void 0!=d[m])return d;return{}}}},function(t,e,n){var r=n(3),o={extend:r.extend};o.extend(n(6)),o.extend(n(7)),o.extend(n(8)),o.extend(n(10)),o.extend(n(13)),o.extend(n(15)),o.extend(n(16)),o.extend(n(17)),o.extend(n(14)),o.extend(n(19)),t.exports=o},function(t,e){t.exports={boolean:function(t,e,n){return void 0!==n?(t="undefined"===typeof t||isNaN(t)?1:parseInt(t,10),e="undefined"===typeof e||isNaN(e)?1:parseInt(e,10),Math.random()>1/(t+e)*t?!n:n):Math.random()>=.5},bool:function(t,e,n){return this.boolean(t,e,n)},natural:function(t,e){return t="undefined"!==typeof t?parseInt(t,10):0,e="undefined"!==typeof e?parseInt(e,10):9007199254740992,Math.round(Math.random()*(e-t))+t},integer:function(t,e){return t="undefined"!==typeof t?parseInt(t,10):-9007199254740992,e="undefined"!==typeof e?parseInt(e,10):9007199254740992,Math.round(Math.random()*(e-t))+t},int:function(t,e){return this.integer(t,e)},float:function(t,e,n,r){n=void 0===n?0:n,n=Math.max(Math.min(n,17),0),r=void 0===r?17:r,r=Math.max(Math.min(r,17),0);for(var o=this.integer(t,e)+".",i=0,a=this.natural(n,r);i<a;i++)o+=i<a-1?this.character("number"):this.character("123456789");return parseFloat(o,10)},character:function(t){var e={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return e.alpha=e.lower+e.upper,e["undefined"]=e.lower+e.upper+e.number+e.symbol,t=e[(""+t).toLowerCase()]||t,t.charAt(this.natural(0,t.length-1))},char:function(t){return this.character(t)},string:function(t,e,n){var r;switch(arguments.length){case 0:r=this.natural(3,7);break;case 1:r=t,t=void 0;break;case 2:"string"===typeof arguments[0]?r=e:(r=this.natural(t,e),t=void 0);break;case 3:r=this.natural(e,n);break}for(var o="",i=0;i<r;i++)o+=this.character(t);return o},str:function(){return this.string.apply(this,arguments)},range:function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=arguments[2]||1,t=+t,e=+e,n=+n;var r=Math.max(Math.ceil((e-t)/n),0),o=0,i=new Array(r);while(o<r)i[o++]=t,t+=n;return i}}},function(t,e){var n={yyyy:"getFullYear",yy:function(t){return(""+t.getFullYear()).slice(2)},y:"yy",MM:function(t){var e=t.getMonth()+1;return e<10?"0"+e:e},M:function(t){return t.getMonth()+1},dd:function(t){var e=t.getDate();return e<10?"0"+e:e},d:"getDate",HH:function(t){var e=t.getHours();return e<10?"0"+e:e},H:"getHours",hh:function(t){var e=t.getHours()%12;return e<10?"0"+e:e},h:function(t){return t.getHours()%12},mm:function(t){var e=t.getMinutes();return e<10?"0"+e:e},m:"getMinutes",ss:function(t){var e=t.getSeconds();return e<10?"0"+e:e},s:"getSeconds",SS:function(t){var e=t.getMilliseconds();return e<10&&"00"+e||e<100&&"0"+e||e},S:"getMilliseconds",A:function(t){return t.getHours()<12?"AM":"PM"},a:function(t){return t.getHours()<12?"am":"pm"},T:"getTime"};t.exports={_patternLetters:n,_rformat:new RegExp(function(){var t=[];for(var e in n)t.push(e);return"("+t.join("|")+")"}(),"g"),_formatDate:function(t,e){return e.replace(this._rformat,(function e(r,o){return"function"===typeof n[o]?n[o](t):n[o]in n?e(r,n[o]):t[n[o]]()}))},_randomDate:function(t,e){return t=void 0===t?new Date(0):t,e=void 0===e?new Date:e,new Date(Math.random()*(e.getTime()-t.getTime()))},date:function(t){return t=t||"yyyy-MM-dd",this._formatDate(this._randomDate(),t)},time:function(t){return t=t||"HH:mm:ss",this._formatDate(this._randomDate(),t)},datetime:function(t){return t=t||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),t)},now:function(t,e){1===arguments.length&&(/year|month|day|hour|minute|second|week/.test(t)||(e=t,t="")),t=(t||"").toLowerCase(),e=e||"yyyy-MM-dd HH:mm:ss";var n=new Date;switch(t){case"year":n.setMonth(0);case"month":n.setDate(1);case"week":case"day":n.setHours(0);case"hour":n.setMinutes(0);case"minute":n.setSeconds(0);case"second":n.setMilliseconds(0)}switch(t){case"week":n.setDate(n.getDate()-n.getDay())}return this._formatDate(n,e)}}},function(t,e,n){(function(t){t.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(t,e,n,r,o){return 4===arguments.length&&(o=r,r=void 0),3===arguments.length&&(o=n,n=void 0),t||(t=this.pick(this._adSize)),e&&~e.indexOf("#")&&(e=e.slice(1)),n&&~n.indexOf("#")&&(n=n.slice(1)),"http://dummyimage.com/"+t+(e?"/"+e:"")+(n?"/"+n:"")+(r?"."+r:"")+(o?"&text="+o:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var t=[];for(var e in this._brandColors)t.push(e);return t},dataImage:function(e,n){var r;if("undefined"!==typeof document)r=document.createElement("canvas");else{var o=t.require("canvas");r=new o}var i=r&&r.getContext&&r.getContext("2d");if(!r||!i)return"";e||(e=this.pick(this._adSize)),n=void 0!==n?n:e,e=e.split("x");var a=parseInt(e[0],10),u=parseInt(e[1],10),c=this._brandColors[this.pick(this._brandNames())],s="#FFF",l=14,f="sans-serif";return r.width=a,r.height=u,i.textAlign="center",i.textBaseline="middle",i.fillStyle=c,i.fillRect(0,0,a,u),i.fillStyle=s,i.font="bold "+l+"px "+f,i.fillText(n,a/2,u/2,a),r.toDataURL("image/png")}}}).call(e,n(9)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){var r=n(11),o=n(12);t.exports={color:function(t){return t||o[t]?o[t].nicer:this.hex()},hex:function(){var t=this._goldenRatioColor(),e=r.hsv2rgb(t),n=r.rgb2hex(e[0],e[1],e[2]);return n},rgb:function(){var t=this._goldenRatioColor(),e=r.hsv2rgb(t);return"rgb("+parseInt(e[0],10)+", "+parseInt(e[1],10)+", "+parseInt(e[2],10)+")"},rgba:function(){var t=this._goldenRatioColor(),e=r.hsv2rgb(t);return"rgba("+parseInt(e[0],10)+", "+parseInt(e[1],10)+", "+parseInt(e[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var t=this._goldenRatioColor(),e=r.hsv2hsl(t);return"hsl("+parseInt(e[0],10)+", "+parseInt(e[1],10)+", "+parseInt(e[2],10)+")"},_goldenRatioColor:function(t,e){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,"number"!==typeof t&&(t=.5),"number"!==typeof e&&(e=.95),[360*this._hue,100*t,100*e]}}},function(t,e){t.exports={rgb2hsl:function(t){var e,n,r,o=t[0]/255,i=t[1]/255,a=t[2]/255,u=Math.min(o,i,a),c=Math.max(o,i,a),s=c-u;return c==u?e=0:o==c?e=(i-a)/s:i==c?e=2+(a-o)/s:a==c&&(e=4+(o-i)/s),e=Math.min(60*e,360),e<0&&(e+=360),r=(u+c)/2,n=c==u?0:r<=.5?s/(c+u):s/(2-c-u),[e,100*n,100*r]},rgb2hsv:function(t){var e,n,r,o=t[0],i=t[1],a=t[2],u=Math.min(o,i,a),c=Math.max(o,i,a),s=c-u;return n=0===c?0:s/c*1e3/10,c==u?e=0:o==c?e=(i-a)/s:i==c?e=2+(a-o)/s:a==c&&(e=4+(o-i)/s),e=Math.min(60*e,360),e<0&&(e+=360),r=c/255*1e3/10,[e,n,r]},hsl2rgb:function(t){var e,n,r,o,i,a=t[0]/360,u=t[1]/100,c=t[2]/100;if(0===u)return i=255*c,[i,i,i];n=c<.5?c*(1+u):c+u-c*u,e=2*c-n,o=[0,0,0];for(var s=0;s<3;s++)r=a+1/3*-(s-1),r<0&&r++,r>1&&r--,i=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[s]=255*i;return o},hsl2hsv:function(t){var e,n,r=t[0],o=t[1]/100,i=t[2]/100;return i*=2,o*=i<=1?i:2-i,n=(i+o)/2,e=2*o/(i+o),[r,100*e,100*n]},hsv2rgb:function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),a=255*r*(1-n),u=255*r*(1-n*i),c=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,c,a];case 1:return[u,r,a];case 2:return[a,r,c];case 3:return[a,u,r];case 4:return[c,a,r];case 5:return[r,a,u]}},hsv2hsl:function(t){var e,n,r=t[0],o=t[1]/100,i=t[2]/100;return n=(2-o)*i,e=o*i,e/=n<=1?n:2-n,n/=2,[r,100*e,100*n]},rgb2hex:function(t,e,n){return"#"+((256+t<<8|e)<<8|n).toString(16).slice(1)},hex2rgb:function(t){return t="0x"+t.slice(1).replace(t.length>4?t:/./g,"$&$&")|0,[t>>16,t>>8&255,255&t]}}},function(t,e){t.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(t,e,n){var r=n(6),o=n(14);function i(t,e,n,o){return void 0===n?r.natural(t,e):void 0===o?n:r.natural(parseInt(n,10),parseInt(o,10))}t.exports={paragraph:function(t,e){for(var n=i(3,7,t,e),r=[],o=0;o<n;o++)r.push(this.sentence());return r.join(" ")},cparagraph:function(t,e){for(var n=i(3,7,t,e),r=[],o=0;o<n;o++)r.push(this.csentence());return r.join("")},sentence:function(t,e){for(var n=i(12,18,t,e),r=[],a=0;a<n;a++)r.push(this.word());return o.capitalize(r.join(" "))+"."},csentence:function(t,e){for(var n=i(12,18,t,e),r=[],o=0;o<n;o++)r.push(this.cword());return r.join("")+"。"},word:function(t,e){for(var n=i(3,10,t,e),o="",a=0;a<n;a++)o+=r.character("lower");return o},cword:function(t,e,n){var r,o="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞";switch(arguments.length){case 0:t=o,r=1;break;case 1:"string"===typeof arguments[0]?r=1:(r=t,t=o);break;case 2:"string"===typeof arguments[0]?r=e:(r=this.natural(t,e),t=o);break;case 3:r=this.natural(e,n);break}for(var i="",a=0;a<r;a++)i+=t.charAt(this.natural(0,t.length-1));return i},title:function(t,e){for(var n=i(3,7,t,e),r=[],o=0;o<n;o++)r.push(this.capitalize(this.word()));return r.join(" ")},ctitle:function(t,e){for(var n=i(3,7,t,e),r=[],o=0;o<n;o++)r.push(this.cword());return r.join("")}}},function(t,e,n){var r=n(3);t.exports={capitalize:function(t){return(t+"").charAt(0).toUpperCase()+(t+"").substr(1)},upper:function(t){return(t+"").toUpperCase()},lower:function(t){return(t+"").toLowerCase()},pick:function(t,e,n){return r.isArray(t)?(void 0===e&&(e=1),void 0===n&&(n=e)):(t=[].slice.call(arguments),e=1,n=1),1===e&&1===n?t[this.natural(0,t.length-1)]:this.shuffle(t,e,n)},shuffle:function(t,e,n){t=t||[];for(var r=t.slice(0),o=[],i=0,a=r.length,u=0;u<a;u++)i=this.natural(0,r.length-1),o.push(r[i]),r.splice(i,1);switch(arguments.length){case 0:case 1:return o;case 2:n=e;case 3:return e=parseInt(e,10),n=parseInt(n,10),o.slice(0,this.natural(e,n))}},order:function t(e){t.cache=t.cache||{},arguments.length>1&&(e=[].slice.call(arguments,0));var n=t.options,r=n.context.templatePath.join("."),o=t.cache[r]=t.cache[r]||{index:0,array:e};return o.array[o.index++%o.array.length]}}},function(t,e){t.exports={first:function(){var t=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(t)},last:function(){var t=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(t)},name:function(t){return this.first()+" "+(t?this.first()+" ":"")+this.last()},cfirst:function(){var t="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(t)},clast:function(){var t="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(t)},cname:function(){return this.cfirst()+this.clast()}}},function(t,e){t.exports={url:function(t,e){return(t||this.protocol())+"://"+(e||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(t){return this.word()+"."+(t||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(t){return this.character("lower")+"."+this.word()+"@"+(t||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(t,e,n){var r=n(18),o=["东北","华北","华东","华中","华南","西南","西北"];t.exports={region:function(){return this.pick(o)},province:function(){return this.pick(r).name},city:function(t){var e=this.pick(r),n=this.pick(e.children);return t?[e.name,n.name].join(" "):n.name},county:function(t){var e=this.pick(r),n=this.pick(e.children),o=this.pick(n.children)||{name:"-"};return t?[e.name,n.name,o.name].join(" "):o.name},zip:function(t){for(var e="",n=0;n<(t||6);n++)e+=this.natural(0,9);return e}}},function(t,e){var n={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function r(t){for(var e,n={},r=0;r<t.length;r++)e=t[r],e&&e.id&&(n[e.id]=e);for(var o=[],i=0;i<t.length;i++)if(e=t[i],e)if(void 0!=e.pid||void 0!=e.parentId){var a=n[e.pid]||n[e.parentId];a&&(a.children||(a.children=[]),a.children.push(e))}else o.push(e);return o}var o=function(){var t=[];for(var e in n){var o="0000"===e.slice(2,6)?void 0:"00"==e.slice(4,6)?e.slice(0,2)+"0000":e.slice(0,4)+"00";t.push({id:e,pid:o,name:n[e]})}return r(t)}();t.exports=o},function(t,e,n){var r=n(18);t.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var t="abcdefABCDEF1234567890",e=this.string(t,8)+"-"+this.string(t,4)+"-"+this.string(t,4)+"-"+this.string(t,4)+"-"+this.string(t,12);return e},uuid:function(){return this.guid()},id:function(){var t,e=0,n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],o=["1","0","X","9","8","7","6","5","4","3","2"];t=this.pick(r).id+this.date("yyyyMMdd")+this.string("number",3);for(var i=0;i<t.length;i++)e+=t[i]*n[i];return t+=o[e%11],t},increment:function(){var t=0;return function(e){return t+=+e||1}}(),inc:function(t){return this.increment(t)}}},function(t,e,n){var r=n(21),o=n(22);t.exports={Parser:r,Handler:o}},function(t,e){function n(t){this.type=t,this.offset=n.offset(),this.text=n.text()}function r(t,e){n.call(this,"alternate"),this.left=t,this.right=e}function o(t){n.call(this,"match"),this.body=t.filter(Boolean)}function i(t,e){n.call(this,t),this.body=e}function a(t){i.call(this,"capture-group"),this.index=y[this.offset]||(y[this.offset]=b++),this.body=t}function u(t,e){n.call(this,"quantified"),this.body=t,this.quantifier=e}function c(t,e){n.call(this,"quantifier"),this.min=t,this.max=e,this.greedy=!0}function s(t,e){n.call(this,"charset"),this.invert=t,this.body=e}function l(t,e){n.call(this,"range"),this.start=t,this.end=e}function f(t){n.call(this,"literal"),this.body=t,this.escaped=this.body!=this.text}function d(t){n.call(this,"unicode"),this.code=t.toUpperCase()}function m(t){n.call(this,"hex"),this.code=t.toUpperCase()}function h(t){n.call(this,"octal"),this.code=t.toUpperCase()}function g(t){n.call(this,"back-reference"),this.code=t.toUpperCase()}function p(t){n.call(this,"control-character"),this.code=t.toUpperCase()}var v=function(){function t(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function e(t,e,n,r,o){function i(t,e){function n(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(t){return"\\x0"+e(t)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(t){return"\\x"+e(t)})).replace(/[\u0180-\u0FFF]/g,(function(t){return"\\u0"+e(t)})).replace(/[\u1080-\uFFFF]/g,(function(t){return"\\u"+e(t)}))}var r,o;switch(t.length){case 0:r="end of input";break;case 1:r=t[0];break;default:r=t.slice(0,-1).join(", ")+" or "+t[t.length-1]}return o=e?'"'+n(e)+'"':"end of input","Expected "+r+" but "+o+" found."}this.expected=t,this.found=e,this.offset=n,this.line=r,this.column=o,this.name="SyntaxError",this.message=i(t,e)}function v(t){function v(){return t.substring(Qn,Zn)}function b(){return Qn}function y(e){function n(e,n,r){var o,i;for(o=n;r>o;o++)i=t.charAt(o),"\n"===i?(e.seenCR||e.line++,e.column=1,e.seenCR=!1):"\r"===i||"\u2028"===i||"\u2029"===i?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1)}return tr!==e&&(tr>e&&(tr=0,er={line:1,column:1,seenCR:!1}),n(er,tr,e),tr=e),er}function x(t){nr>Zn||(Zn>nr&&(nr=Zn,rr=[]),rr.push(t))}function w(t){var e=0;for(t.sort();e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}function C(){var e,n,r,o,i;return e=Zn,n=S(),null!==n?(r=Zn,124===t.charCodeAt(Zn)?(o=zt,Zn++):(o=null,0===or&&x(Ot)),null!==o?(i=C(),null!==i?(o=[o,i],r=o):(Zn=r,r=St)):(Zn=r,r=St),null===r&&(r=kt),null!==r?(Qn=e,n=Mt(n,r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St),e}function S(){var t,e,n,r,o;if(t=Zn,e=z(),null===e&&(e=kt),null!==e)if(n=Zn,or++,r=_(),or--,null===r?n=kt:(Zn=n,n=St),null!==n){for(r=[],o=M(),null===o&&(o=k());null!==o;)r.push(o),o=M(),null===o&&(o=k());null!==r?(o=O(),null===o&&(o=kt),null!==o?(Qn=t,e=_t(e,r,o),null===e?(Zn=t,t=e):t=e):(Zn=t,t=St)):(Zn=t,t=St)}else Zn=t,t=St;else Zn=t,t=St;return t}function k(){var t;return t=L(),null===t&&(t=U(),null===t&&(t=X())),t}function z(){var e,n;return e=Zn,94===t.charCodeAt(Zn)?(n=Tt,Zn++):(n=null,0===or&&x(Et)),null!==n&&(Qn=e,n=At()),null===n?(Zn=e,e=n):e=n,e}function O(){var e,n;return e=Zn,36===t.charCodeAt(Zn)?(n=Ht,Zn++):(n=null,0===or&&x(Dt)),null!==n&&(Qn=e,n=Vt()),null===n?(Zn=e,e=n):e=n,e}function M(){var t,e,n;return t=Zn,e=k(),null!==e?(n=_(),null!==n?(Qn=t,e=Bt(e,n),null===e?(Zn=t,t=e):t=e):(Zn=t,t=St)):(Zn=t,t=St),t}function _(){var t,e,n;return or++,t=Zn,e=T(),null!==e?(n=R(),null===n&&(n=kt),null!==n?(Qn=t,e=Pt(e,n),null===e?(Zn=t,t=e):t=e):(Zn=t,t=St)):(Zn=t,t=St),or--,null===t&&(e=null,0===or&&x(Rt)),t}function T(){var t;return t=E(),null===t&&(t=A(),null===t&&(t=H(),null===t&&(t=D(),null===t&&(t=V(),null===t&&(t=B()))))),t}function E(){var e,n,r,o,i,a;return e=Zn,123===t.charCodeAt(Zn)?(n=Lt,Zn++):(n=null,0===or&&x(It)),null!==n?(r=P(),null!==r?(44===t.charCodeAt(Zn)?(o=Ft,Zn++):(o=null,0===or&&x(Nt)),null!==o?(i=P(),null!==i?(125===t.charCodeAt(Zn)?(a=jt,Zn++):(a=null,0===or&&x(Ut)),null!==a?(Qn=e,n=Wt(r,i),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St)):(Zn=e,e=St)):(Zn=e,e=St)):(Zn=e,e=St),e}function A(){var e,n,r,o;return e=Zn,123===t.charCodeAt(Zn)?(n=Lt,Zn++):(n=null,0===or&&x(It)),null!==n?(r=P(),null!==r?(t.substr(Zn,2)===Gt?(o=Gt,Zn+=2):(o=null,0===or&&x(qt)),null!==o?(Qn=e,n=$t(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St)):(Zn=e,e=St),e}function H(){var e,n,r,o;return e=Zn,123===t.charCodeAt(Zn)?(n=Lt,Zn++):(n=null,0===or&&x(It)),null!==n?(r=P(),null!==r?(125===t.charCodeAt(Zn)?(o=jt,Zn++):(o=null,0===or&&x(Ut)),null!==o?(Qn=e,n=Xt(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St)):(Zn=e,e=St),e}function D(){var e,n;return e=Zn,43===t.charCodeAt(Zn)?(n=Kt,Zn++):(n=null,0===or&&x(Yt)),null!==n&&(Qn=e,n=Jt()),null===n?(Zn=e,e=n):e=n,e}function V(){var e,n;return e=Zn,42===t.charCodeAt(Zn)?(n=Zt,Zn++):(n=null,0===or&&x(Qt)),null!==n&&(Qn=e,n=te()),null===n?(Zn=e,e=n):e=n,e}function B(){var e,n;return e=Zn,63===t.charCodeAt(Zn)?(n=ee,Zn++):(n=null,0===or&&x(ne)),null!==n&&(Qn=e,n=re()),null===n?(Zn=e,e=n):e=n,e}function R(){var e;return 63===t.charCodeAt(Zn)?(e=ee,Zn++):(e=null,0===or&&x(ne)),e}function P(){var e,n,r;if(e=Zn,n=[],oe.test(t.charAt(Zn))?(r=t.charAt(Zn),Zn++):(r=null,0===or&&x(ie)),null!==r)for(;null!==r;)n.push(r),oe.test(t.charAt(Zn))?(r=t.charAt(Zn),Zn++):(r=null,0===or&&x(ie));else n=St;return null!==n&&(Qn=e,n=ae(n)),null===n?(Zn=e,e=n):e=n,e}function L(){var e,n,r,o;return e=Zn,40===t.charCodeAt(Zn)?(n=ue,Zn++):(n=null,0===or&&x(ce)),null!==n?(r=N(),null===r&&(r=j(),null===r&&(r=F(),null===r&&(r=I()))),null!==r?(41===t.charCodeAt(Zn)?(o=se,Zn++):(o=null,0===or&&x(le)),null!==o?(Qn=e,n=fe(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St)):(Zn=e,e=St),e}function I(){var t,e;return t=Zn,e=C(),null!==e&&(Qn=t,e=de(e)),null===e?(Zn=t,t=e):t=e,t}function F(){var e,n,r;return e=Zn,t.substr(Zn,2)===me?(n=me,Zn+=2):(n=null,0===or&&x(he)),null!==n?(r=C(),null!==r?(Qn=e,n=ge(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St),e}function N(){var e,n,r;return e=Zn,t.substr(Zn,2)===pe?(n=pe,Zn+=2):(n=null,0===or&&x(ve)),null!==n?(r=C(),null!==r?(Qn=e,n=be(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St),e}function j(){var e,n,r;return e=Zn,t.substr(Zn,2)===ye?(n=ye,Zn+=2):(n=null,0===or&&x(xe)),null!==n?(r=C(),null!==r?(Qn=e,n=we(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St),e}function U(){var e,n,r,o,i;if(or++,e=Zn,91===t.charCodeAt(Zn)?(n=Se,Zn++):(n=null,0===or&&x(ke)),null!==n)if(94===t.charCodeAt(Zn)?(r=Tt,Zn++):(r=null,0===or&&x(Et)),null===r&&(r=kt),null!==r){for(o=[],i=W(),null===i&&(i=G());null!==i;)o.push(i),i=W(),null===i&&(i=G());null!==o?(93===t.charCodeAt(Zn)?(i=ze,Zn++):(i=null,0===or&&x(Oe)),null!==i?(Qn=e,n=Me(r,o),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St)}else Zn=e,e=St;else Zn=e,e=St;return or--,null===e&&(n=null,0===or&&x(Ce)),e}function W(){var e,n,r,o;return or++,e=Zn,n=G(),null!==n?(45===t.charCodeAt(Zn)?(r=Te,Zn++):(r=null,0===or&&x(Ee)),null!==r?(o=G(),null!==o?(Qn=e,n=Ae(n,o),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St)):(Zn=e,e=St),or--,null===e&&(n=null,0===or&&x(_e)),e}function G(){var t;return or++,t=$(),null===t&&(t=q()),or--,null===t&&(null,0===or&&x(He)),t}function q(){var e,n;return e=Zn,De.test(t.charAt(Zn))?(n=t.charAt(Zn),Zn++):(n=null,0===or&&x(Ve)),null!==n&&(Qn=e,n=Be(n)),null===n?(Zn=e,e=n):e=n,e}function $(){var t;return t=Z(),null===t&&(t=dt(),null===t&&(t=et(),null===t&&(t=nt(),null===t&&(t=rt(),null===t&&(t=ot(),null===t&&(t=it(),null===t&&(t=at(),null===t&&(t=ut(),null===t&&(t=ct(),null===t&&(t=st(),null===t&&(t=lt(),null===t&&(t=ft(),null===t&&(t=ht(),null===t&&(t=gt(),null===t&&(t=pt(),null===t&&(t=vt(),null===t&&(t=bt()))))))))))))))))),t}function X(){var t;return t=K(),null===t&&(t=J(),null===t&&(t=Y())),t}function K(){var e,n;return e=Zn,46===t.charCodeAt(Zn)?(n=Re,Zn++):(n=null,0===or&&x(Pe)),null!==n&&(Qn=e,n=Le()),null===n?(Zn=e,e=n):e=n,e}function Y(){var e,n;return or++,e=Zn,Fe.test(t.charAt(Zn))?(n=t.charAt(Zn),Zn++):(n=null,0===or&&x(Ne)),null!==n&&(Qn=e,n=Be(n)),null===n?(Zn=e,e=n):e=n,or--,null===e&&(n=null,0===or&&x(Ie)),e}function J(){var t;return t=Q(),null===t&&(t=tt(),null===t&&(t=dt(),null===t&&(t=et(),null===t&&(t=nt(),null===t&&(t=rt(),null===t&&(t=ot(),null===t&&(t=it(),null===t&&(t=at(),null===t&&(t=ut(),null===t&&(t=ct(),null===t&&(t=st(),null===t&&(t=lt(),null===t&&(t=ft(),null===t&&(t=mt(),null===t&&(t=ht(),null===t&&(t=gt(),null===t&&(t=pt(),null===t&&(t=vt(),null===t&&(t=bt()))))))))))))))))))),t}function Z(){var e,n;return e=Zn,t.substr(Zn,2)===je?(n=je,Zn+=2):(n=null,0===or&&x(Ue)),null!==n&&(Qn=e,n=We()),null===n?(Zn=e,e=n):e=n,e}function Q(){var e,n;return e=Zn,t.substr(Zn,2)===je?(n=je,Zn+=2):(n=null,0===or&&x(Ue)),null!==n&&(Qn=e,n=Ge()),null===n?(Zn=e,e=n):e=n,e}function tt(){var e,n;return e=Zn,t.substr(Zn,2)===qe?(n=qe,Zn+=2):(n=null,0===or&&x($e)),null!==n&&(Qn=e,n=Xe()),null===n?(Zn=e,e=n):e=n,e}function et(){var e,n;return e=Zn,t.substr(Zn,2)===Ke?(n=Ke,Zn+=2):(n=null,0===or&&x(Ye)),null!==n&&(Qn=e,n=Je()),null===n?(Zn=e,e=n):e=n,e}function nt(){var e,n;return e=Zn,t.substr(Zn,2)===Ze?(n=Ze,Zn+=2):(n=null,0===or&&x(Qe)),null!==n&&(Qn=e,n=tn()),null===n?(Zn=e,e=n):e=n,e}function rt(){var e,n;return e=Zn,t.substr(Zn,2)===en?(n=en,Zn+=2):(n=null,0===or&&x(nn)),null!==n&&(Qn=e,n=rn()),null===n?(Zn=e,e=n):e=n,e}function ot(){var e,n;return e=Zn,t.substr(Zn,2)===on?(n=on,Zn+=2):(n=null,0===or&&x(an)),null!==n&&(Qn=e,n=un()),null===n?(Zn=e,e=n):e=n,e}function it(){var e,n;return e=Zn,t.substr(Zn,2)===cn?(n=cn,Zn+=2):(n=null,0===or&&x(sn)),null!==n&&(Qn=e,n=ln()),null===n?(Zn=e,e=n):e=n,e}function at(){var e,n;return e=Zn,t.substr(Zn,2)===fn?(n=fn,Zn+=2):(n=null,0===or&&x(dn)),null!==n&&(Qn=e,n=mn()),null===n?(Zn=e,e=n):e=n,e}function ut(){var e,n;return e=Zn,t.substr(Zn,2)===hn?(n=hn,Zn+=2):(n=null,0===or&&x(gn)),null!==n&&(Qn=e,n=pn()),null===n?(Zn=e,e=n):e=n,e}function ct(){var e,n;return e=Zn,t.substr(Zn,2)===vn?(n=vn,Zn+=2):(n=null,0===or&&x(bn)),null!==n&&(Qn=e,n=yn()),null===n?(Zn=e,e=n):e=n,e}function st(){var e,n;return e=Zn,t.substr(Zn,2)===xn?(n=xn,Zn+=2):(n=null,0===or&&x(wn)),null!==n&&(Qn=e,n=Cn()),null===n?(Zn=e,e=n):e=n,e}function lt(){var e,n;return e=Zn,t.substr(Zn,2)===Sn?(n=Sn,Zn+=2):(n=null,0===or&&x(kn)),null!==n&&(Qn=e,n=zn()),null===n?(Zn=e,e=n):e=n,e}function ft(){var e,n;return e=Zn,t.substr(Zn,2)===On?(n=On,Zn+=2):(n=null,0===or&&x(Mn)),null!==n&&(Qn=e,n=_n()),null===n?(Zn=e,e=n):e=n,e}function dt(){var e,n,r;return e=Zn,t.substr(Zn,2)===Tn?(n=Tn,Zn+=2):(n=null,0===or&&x(En)),null!==n?(t.length>Zn?(r=t.charAt(Zn),Zn++):(r=null,0===or&&x(An)),null!==r?(Qn=e,n=Hn(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St),e}function mt(){var e,n,r;return e=Zn,92===t.charCodeAt(Zn)?(n=Dn,Zn++):(n=null,0===or&&x(Vn)),null!==n?(Bn.test(t.charAt(Zn))?(r=t.charAt(Zn),Zn++):(r=null,0===or&&x(Rn)),null!==r?(Qn=e,n=Pn(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St),e}function ht(){var e,n,r,o;if(e=Zn,t.substr(Zn,2)===Ln?(n=Ln,Zn+=2):(n=null,0===or&&x(In)),null!==n){if(r=[],Fn.test(t.charAt(Zn))?(o=t.charAt(Zn),Zn++):(o=null,0===or&&x(Nn)),null!==o)for(;null!==o;)r.push(o),Fn.test(t.charAt(Zn))?(o=t.charAt(Zn),Zn++):(o=null,0===or&&x(Nn));else r=St;null!==r?(Qn=e,n=jn(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)}else Zn=e,e=St;return e}function gt(){var e,n,r,o;if(e=Zn,t.substr(Zn,2)===Un?(n=Un,Zn+=2):(n=null,0===or&&x(Wn)),null!==n){if(r=[],Gn.test(t.charAt(Zn))?(o=t.charAt(Zn),Zn++):(o=null,0===or&&x(qn)),null!==o)for(;null!==o;)r.push(o),Gn.test(t.charAt(Zn))?(o=t.charAt(Zn),Zn++):(o=null,0===or&&x(qn));else r=St;null!==r?(Qn=e,n=$n(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)}else Zn=e,e=St;return e}function pt(){var e,n,r,o;if(e=Zn,t.substr(Zn,2)===Xn?(n=Xn,Zn+=2):(n=null,0===or&&x(Kn)),null!==n){if(r=[],Gn.test(t.charAt(Zn))?(o=t.charAt(Zn),Zn++):(o=null,0===or&&x(qn)),null!==o)for(;null!==o;)r.push(o),Gn.test(t.charAt(Zn))?(o=t.charAt(Zn),Zn++):(o=null,0===or&&x(qn));else r=St;null!==r?(Qn=e,n=Yn(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)}else Zn=e,e=St;return e}function vt(){var e,n;return e=Zn,t.substr(Zn,2)===Ln?(n=Ln,Zn+=2):(n=null,0===or&&x(In)),null!==n&&(Qn=e,n=Jn()),null===n?(Zn=e,e=n):e=n,e}function bt(){var e,n,r;return e=Zn,92===t.charCodeAt(Zn)?(n=Dn,Zn++):(n=null,0===or&&x(Vn)),null!==n?(t.length>Zn?(r=t.charAt(Zn),Zn++):(r=null,0===or&&x(An)),null!==r?(Qn=e,n=Be(r),null===n?(Zn=e,e=n):e=n):(Zn=e,e=St)):(Zn=e,e=St),e}var yt,xt=arguments.length>1?arguments[1]:{},wt={regexp:C},Ct=C,St=null,kt="",zt="|",Ot='"|"',Mt=function(t,e){return e?new r(t,e[1]):t},_t=function(t,e,n){return new o([t].concat(e).concat([n]))},Tt="^",Et='"^"',At=function(){return new n("start")},Ht="$",Dt='"$"',Vt=function(){return new n("end")},Bt=function(t,e){return new u(t,e)},Rt="Quantifier",Pt=function(t,e){return e&&(t.greedy=!1),t},Lt="{",It='"{"',Ft=",",Nt='","',jt="}",Ut='"}"',Wt=function(t,e){return new c(t,e)},Gt=",}",qt='",}"',$t=function(t){return new c(t,1/0)},Xt=function(t){return new c(t,t)},Kt="+",Yt='"+"',Jt=function(){return new c(1,1/0)},Zt="*",Qt='"*"',te=function(){return new c(0,1/0)},ee="?",ne='"?"',re=function(){return new c(0,1)},oe=/^[0-9]/,ie="[0-9]",ae=function(t){return+t.join("")},ue="(",ce='"("',se=")",le='")"',fe=function(t){return t},de=function(t){return new a(t)},me="?:",he='"?:"',ge=function(t){return new i("non-capture-group",t)},pe="?=",ve='"?="',be=function(t){return new i("positive-lookahead",t)},ye="?!",xe='"?!"',we=function(t){return new i("negative-lookahead",t)},Ce="CharacterSet",Se="[",ke='"["',ze="]",Oe='"]"',Me=function(t,e){return new s(!!t,e)},_e="CharacterRange",Te="-",Ee='"-"',Ae=function(t,e){return new l(t,e)},He="Character",De=/^[^\\\]]/,Ve="[^\\\\\\]]",Be=function(t){return new f(t)},Re=".",Pe='"."',Le=function(){return new n("any-character")},Ie="Literal",Fe=/^[^|\\\/.[()?+*$\^]/,Ne="[^|\\\\\\/.[()?+*$\\^]",je="\\b",Ue='"\\\\b"',We=function(){return new n("backspace")},Ge=function(){return new n("word-boundary")},qe="\\B",$e='"\\\\B"',Xe=function(){return new n("non-word-boundary")},Ke="\\d",Ye='"\\\\d"',Je=function(){return new n("digit")},Ze="\\D",Qe='"\\\\D"',tn=function(){return new n("non-digit")},en="\\f",nn='"\\\\f"',rn=function(){return new n("form-feed")},on="\\n",an='"\\\\n"',un=function(){return new n("line-feed")},cn="\\r",sn='"\\\\r"',ln=function(){return new n("carriage-return")},fn="\\s",dn='"\\\\s"',mn=function(){return new n("white-space")},hn="\\S",gn='"\\\\S"',pn=function(){return new n("non-white-space")},vn="\\t",bn='"\\\\t"',yn=function(){return new n("tab")},xn="\\v",wn='"\\\\v"',Cn=function(){return new n("vertical-tab")},Sn="\\w",kn='"\\\\w"',zn=function(){return new n("word")},On="\\W",Mn='"\\\\W"',_n=function(){return new n("non-word")},Tn="\\c",En='"\\\\c"',An="any character",Hn=function(t){return new p(t)},Dn="\\",Vn='"\\\\"',Bn=/^[1-9]/,Rn="[1-9]",Pn=function(t){return new g(t)},Ln="\\0",In='"\\\\0"',Fn=/^[0-7]/,Nn="[0-7]",jn=function(t){return new h(t.join(""))},Un="\\x",Wn='"\\\\x"',Gn=/^[0-9a-fA-F]/,qn="[0-9a-fA-F]",$n=function(t){return new m(t.join(""))},Xn="\\u",Kn='"\\\\u"',Yn=function(t){return new d(t.join(""))},Jn=function(){return new n("null-character")},Zn=0,Qn=0,tr=0,er={line:1,column:1,seenCR:!1},nr=0,rr=[],or=0;if("startRule"in xt){if(!(xt.startRule in wt))throw new Error("Can't start parsing from rule \""+xt.startRule+'".');Ct=wt[xt.startRule]}if(n.offset=b,n.text=v,yt=Ct(),null!==yt&&Zn===t.length)return yt;throw w(rr),Qn=Math.max(Zn,nr),new e(rr,Qn<t.length?t.charAt(Qn):null,Qn,y(Qn).line,y(Qn).column)}return t(e,Error),{SyntaxError:e,parse:v}}(),b=1,y={};t.exports=v},function(t,e,n){var r=n(3),o=n(5),i={extend:r.extend},a=m(97,122),u=m(65,90),c=m(48,57),s=m(32,47)+m(58,64)+m(91,96)+m(123,126),l=m(32,126),f=" \f\n\r\t\v \u2028\u2029",d={"\\w":a+u+c+"_","\\W":s.replace("_",""),"\\s":f,"\\S":function(){for(var t=l,e=0;e<f.length;e++)t=t.replace(f[e],"");return t}(),"\\d":c,"\\D":a+u+s};function m(t,e){for(var n="",r=t;r<=e;r++)n+=String.fromCharCode(r);return n}i.gen=function(t,e,n){return n=n||{guid:1},i[t.type]?i[t.type](t,e,n):i.token(t,e,n)},i.extend({token:function(t,e,n){switch(t.type){case"start":case"end":return"";case"any-character":return o.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return o.pick(c.split(""));case"non-digit":return o.pick((a+u+s).split(""));case"form-feed":break;case"line-feed":return t.body||t.text;case"carriage-return":break;case"white-space":return o.pick(f.split(""));case"non-white-space":return o.pick((a+u+c).split(""));case"tab":break;case"vertical-tab":break;case"word":return o.pick((a+u+c).split(""));case"non-word":return o.pick(s.replace("_","").split(""));case"null-character":break}return t.body||t.text},alternate:function(t,e,n){return this.gen(o.boolean()?t.left:t.right,e,n)},match:function(t,e,n){e="";for(var r=0;r<t.body.length;r++)e+=this.gen(t.body[r],e,n);return e},"capture-group":function(t,e,n){return e=this.gen(t.body,e,n),n[n.guid++]=e,e},"non-capture-group":function(t,e,n){return this.gen(t.body,e,n)},"positive-lookahead":function(t,e,n){return this.gen(t.body,e,n)},"negative-lookahead":function(t,e,n){return""},quantified:function(t,e,n){e="";for(var r=this.quantifier(t.quantifier),o=0;o<r;o++)e+=this.gen(t.body,e,n);return e},quantifier:function(t,e,n){var r=Math.max(t.min,0),i=isFinite(t.max)?t.max:r+o.integer(3,7);return o.integer(r,i)},charset:function(t,e,n){if(t.invert)return this["invert-charset"](t,e,n);var r=o.pick(t.body);return this.gen(r,e,n)},"invert-charset":function(t,e,n){for(var r,i=l,a=0;a<t.body.length;a++)switch(r=t.body[a],r.type){case"literal":i=i.replace(r.body,"");break;case"range":for(var u=this.gen(r.start,e,n).charCodeAt(),c=this.gen(r.end,e,n).charCodeAt(),s=u;s<=c;s++)i=i.replace(String.fromCharCode(s),"");default:var f=d[r.text];if(f)for(var m=0;m<=f.length;m++)i=i.replace(f[m],"")}return o.pick(i.split(""))},range:function(t,e,n){var r=this.gen(t.start,e,n).charCodeAt(),i=this.gen(t.end,e,n).charCodeAt();return String.fromCharCode(o.integer(r,i))},literal:function(t,e,n){return t.escaped?t.body:t.text},unicode:function(t,e,n){return String.fromCharCode(parseInt(t.code,16))},hex:function(t,e,n){return String.fromCharCode(parseInt(t.code,16))},octal:function(t,e,n){return String.fromCharCode(parseInt(t.code,8))},"back-reference":function(t,e,n){return n[t.code]||""},CONTROL_CHARACTER_MAP:function(){for(var t="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),e="\0 \b \t \n \v \f \r ".split(" "),n={},r=0;r<t.length;r++)n[t[r]]=e[r];return n}(),"control-character":function(t,e,n){return this.CONTROL_CHARACTER_MAP[t.code]}}),t.exports=i},function(t,e,n){t.exports=n(24)},function(t,e,n){var r=n(2),o=n(3),i=n(4);function a(t,e,n){n=n||[];var u={name:"string"===typeof e?e.replace(r.RE_KEY,"$1"):e,template:t,type:o.type(t),rule:i.parse(e)};switch(u.path=n.slice(0),u.path.push(void 0===e?"ROOT":u.name),u.type){case"array":u.items=[],o.each(t,(function(t,e){u.items.push(a(t,e,u.path))}));break;case"object":u.properties=[],o.each(t,(function(t,e){u.properties.push(a(t,e,u.path))}));break}return u}t.exports=a},function(t,e,n){t.exports=n(26)},function(t,e,n){var r=n(2),o=n(3),i=n(23);function a(t,e){for(var n=i(t),r=u.diff(n,e),o=0;o<r.length;o++);return r}var u={diff:function(t,e,n){var r=[];return this.name(t,e,n,r)&&this.type(t,e,n,r)&&(this.value(t,e,n,r),this.properties(t,e,n,r),this.items(t,e,n,r)),r},name:function(t,e,n,r){var o=r.length;return c.equal("name",t.path,n+"",t.name+"",r),r.length===o},type:function(t,e,n,i){var a=i.length;switch(t.type){case"string":if(t.template.match(r.RE_PLACEHOLDER))return!0;break;case"array":if(t.rule.parameters){if(void 0!==t.rule.min&&void 0===t.rule.max&&1===t.rule.count)return!0;if(t.rule.parameters[2])return!0}break;case"function":return!0}return c.equal("type",t.path,o.type(e),t.type,i),i.length===a},value:function(t,e,n,o){var i,a=o.length,u=t.rule,s=t.type;if("object"===s||"array"===s||"function"===s)return!0;if(!u.parameters){switch(s){case"regexp":return c.match("value",t.path,e,t.template,o),o.length===a;case"string":if(t.template.match(r.RE_PLACEHOLDER))return o.length===a;break}return c.equal("value",t.path,e,t.template,o),o.length===a}switch(s){case"number":var l=(e+"").split(".");l[0]=+l[0],void 0!==u.min&&void 0!==u.max&&(c.greaterThanOrEqualTo("value",t.path,l[0],Math.min(u.min,u.max),o),c.lessThanOrEqualTo("value",t.path,l[0],Math.max(u.min,u.max),o)),void 0!==u.min&&void 0===u.max&&c.equal("value",t.path,l[0],u.min,o,"[value] "+n),u.decimal&&(void 0!==u.dmin&&void 0!==u.dmax&&(c.greaterThanOrEqualTo("value",t.path,l[1].length,u.dmin,o),c.lessThanOrEqualTo("value",t.path,l[1].length,u.dmax,o)),void 0!==u.dmin&&void 0===u.dmax&&c.equal("value",t.path,l[1].length,u.dmin,o));break;case"boolean":break;case"string":i=e.match(new RegExp(t.template,"g")),i=i?i.length:0,void 0!==u.min&&void 0!==u.max&&(c.greaterThanOrEqualTo("repeat count",t.path,i,u.min,o),c.lessThanOrEqualTo("repeat count",t.path,i,u.max,o)),void 0!==u.min&&void 0===u.max&&c.equal("repeat count",t.path,i,u.min,o);break;case"regexp":i=e.match(new RegExp(t.template.source.replace(/^\^|\$$/g,""),"g")),i=i?i.length:0,void 0!==u.min&&void 0!==u.max&&(c.greaterThanOrEqualTo("repeat count",t.path,i,u.min,o),c.lessThanOrEqualTo("repeat count",t.path,i,u.max,o)),void 0!==u.min&&void 0===u.max&&c.equal("repeat count",t.path,i,u.min,o);break}return o.length===a},properties:function(t,e,n,r){var i=r.length,a=t.rule,u=o.keys(e);if(t.properties){if(t.rule.parameters?(void 0!==a.min&&void 0!==a.max&&(c.greaterThanOrEqualTo("properties length",t.path,u.length,Math.min(a.min,a.max),r),c.lessThanOrEqualTo("properties length",t.path,u.length,Math.max(a.min,a.max),r)),void 0!==a.min&&void 0===a.max&&1!==a.count&&c.equal("properties length",t.path,u.length,a.min,r)):c.equal("properties length",t.path,u.length,t.properties.length,r),r.length!==i)return!1;for(var s=0;s<u.length;s++)r.push.apply(r,this.diff(function(){var e;return o.each(t.properties,(function(t){t.name===u[s]&&(e=t)})),e||t.properties[s]}(),e[u[s]],u[s]));return r.length===i}},items:function(t,e,n,r){var o=r.length;if(t.items){var i=t.rule;if(t.rule.parameters){if(void 0!==i.min&&void 0!==i.max&&(c.greaterThanOrEqualTo("items",t.path,e.length,Math.min(i.min,i.max)*t.items.length,r,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),c.lessThanOrEqualTo("items",t.path,e.length,Math.max(i.min,i.max)*t.items.length,r,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),void 0!==i.min&&void 0===i.max){if(1===i.count)return r.length===o;c.equal("items length",t.path,e.length,i.min*t.items.length,r)}if(i.parameters[2])return r.length===o}else c.equal("items length",t.path,e.length,t.items.length,r);if(r.length!==o)return!1;for(var a=0;a<e.length;a++)r.push.apply(r,this.diff(t.items[a%t.items.length],e[a],a%t.items.length));return r.length===o}}},c={message:function(t){return(t.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",t.type.toUpperCase()).replace("{ltype}",t.type.toLowerCase()).replace("{path}",o.isArray(t.path)&&t.path.join(".")||t.path).replace("{action}",t.action).replace("{expected}",t.expected).replace("{actual}",t.actual)},equal:function(t,e,n,r,o,i){if(n===r)return!0;switch(t){case"type":if("regexp"===r&&"string"===n)return!0;break}var a={path:e,type:t,actual:n,expected:r,action:"is equal to",message:i};return a.message=c.message(a),o.push(a),!1},match:function(t,e,n,r,o,i){if(r.test(n))return!0;var a={path:e,type:t,actual:n,expected:r,action:"matches",message:i};return a.message=c.message(a),o.push(a),!1},notEqual:function(t,e,n,r,o,i){if(n!==r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is not equal to",message:i};return a.message=c.message(a),o.push(a),!1},greaterThan:function(t,e,n,r,o,i){if(n>r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is greater than",message:i};return a.message=c.message(a),o.push(a),!1},lessThan:function(t,e,n,r,o,i){if(n<r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is less to",message:i};return a.message=c.message(a),o.push(a),!1},greaterThanOrEqualTo:function(t,e,n,r,o,i){if(n>=r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is greater than or equal to",message:i};return a.message=c.message(a),o.push(a),!1},lessThanOrEqualTo:function(t,e,n,r,o,i){if(n<=r)return!0;var a={path:e,type:t,actual:n,expected:r,action:"is less than or equal to",message:i};return a.message=c.message(a),o.push(a),!1}};a.Diff=u,a.Assert=c,t.exports=a},function(t,e,n){t.exports=n(28)},function(t,e,n){var r=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(m){window.Event=function(t,e,n,r){var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,e,n,r),o}}var o={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},i="readystatechange loadstart progress abort error load timeout loadend".split(" "),a="timeout withCredentials".split(" "),u="readyState responseURL status statusText responseType response responseText responseXML".split(" "),c={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function s(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}function l(){var t=function(){var t=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,e=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,n=location.href,r=e.exec(n.toLowerCase())||[];return t.test(r[1])}();return window.ActiveXObject?!t&&e()||n():e();function e(){try{return new window._XMLHttpRequest}catch(t){}}function n(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}}function f(t){for(var e in s.Mock._mocked){var n=s.Mock._mocked[e];if((!n.rurl||o(n.rurl,t.url))&&(!n.rtype||o(n.rtype,t.type.toLowerCase())))return n}function o(t,e){return"string"===r.type(t)?t===e:"regexp"===r.type(t)?t.test(e):void 0}}function d(t,e){return r.isFunction(t.template)?t.template(e):s.Mock.mock(t.template)}s._settings={timeout:"10-100"},s.setup=function(t){return r.extend(s._settings,t),s._settings},r.extend(s,o),r.extend(s.prototype,o),s.prototype.mock=!0,s.prototype.match=!1,r.extend(s.prototype,{open:function(t,e,n,o,c){var d=this;r.extend(this.custom,{method:t,url:e,async:"boolean"!==typeof n||n,username:o,password:c,options:{url:e,type:t}}),this.custom.timeout=function(t){if("number"===typeof t)return t;if("string"===typeof t&&!~t.indexOf("-"))return parseInt(t,10);if("string"===typeof t&&~t.indexOf("-")){var e=t.split("-"),n=parseInt(e[0],10),r=parseInt(e[1],10);return Math.round(Math.random()*(r-n))+n}}(s._settings.timeout);var m=f(this.custom.options);function h(t){for(var e=0;e<u.length;e++)try{d[u[e]]=g[u[e]]}catch(n){}d.dispatchEvent(new Event(t.type))}if(m)this.match=!0,this.custom.template=m,this.readyState=s.OPENED,this.dispatchEvent(new Event("readystatechange"));else{var g=l();this.custom.xhr=g;for(var p=0;p<i.length;p++)g.addEventListener(i[p],h);o?g.open(t,e,n,o,c):g.open(t,e,n);for(var v=0;v<a.length;v++)try{g[a[v]]=d[a[v]]}catch(b){}}},setRequestHeader:function(t,e){if(this.match){var n=this.custom.requestHeaders;n[t]?n[t]+=","+e:n[t]=e}else this.custom.xhr.setRequestHeader(t,e)},timeout:0,withCredentials:!1,upload:{},send:function(t){var e=this;function n(){e.readyState=s.HEADERS_RECEIVED,e.dispatchEvent(new Event("readystatechange")),e.readyState=s.LOADING,e.dispatchEvent(new Event("readystatechange")),e.status=200,e.statusText=c[200],e.response=e.responseText=JSON.stringify(d(e.custom.template,e.custom.options),null,4),e.readyState=s.DONE,e.dispatchEvent(new Event("readystatechange")),e.dispatchEvent(new Event("load")),e.dispatchEvent(new Event("loadend"))}this.custom.options.body=t,this.match?(this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(n,this.custom.timeout):n()):this.custom.xhr.send(t)},abort:function(){this.match?(this.readyState=s.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))):this.custom.xhr.abort()}}),r.extend(s.prototype,{responseURL:"",status:s.UNSENT,statusText:"",getResponseHeader:function(t){return this.match?this.custom.responseHeaders[t.toLowerCase()]:this.custom.xhr.getResponseHeader(t)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var t=this.custom.responseHeaders,e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+": "+t[n]+"\r\n");return e},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),r.extend(s.prototype,{addEventListener:function(t,e){var n=this.custom.events;n[t]||(n[t]=[]),n[t].push(e)},removeEventListener:function(t,e){for(var n=this.custom.events[t]||[],r=0;r<n.length;r++)n[r]===e&&n.splice(r--,1)},dispatchEvent:function(t){for(var e=this.custom.events[t.type]||[],n=0;n<e.length;n++)e[n].call(this,t);var r="on"+t.type;this[r]&&this[r](t)}}),t.exports=s}])}))},"1ed3":function(t,e,n){(function(t){(function(){"use strict";var e=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},n=function(t){return function(n){return e(n)===t}},r=function(t){return function(e){return typeof e===t}},o=function(t){return function(e){return t===e}},i=n("string"),a=n("object"),u=n("array"),c=o(null),s=r("boolean"),l=o(void 0),f=function(t){return null===t||void 0===t},d=function(t){return!f(t)},m=r("function"),h=r("number"),g=function(t,e){if(u(t)){for(var n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}return!1},p=function(){},v=function(t){return function(){return t()}},b=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(null,n))}},y=function(t,e){return function(n){return t(e(n))}},x=function(t){return function(){return t}},w=function(t){return t},C=function(t,e){return t===e};function S(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.concat(n);return t.apply(null,o)}}var k=function(t){return function(e){return!t(e)}},z=function(t){return function(){throw new Error(t)}},O=x(!1),M=x(!0),_=tinymce.util.Tools.resolve("tinymce.ThemeManager"),T=function(){return T=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},T.apply(this,arguments)};function E(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function A(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var H=function(){return D},D=function(){var t=function(t){return t()},e=w,n={fold:function(t,e){return t()},isSome:O,isNone:M,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:x(null),getOrUndefined:x(void 0),or:e,orThunk:t,map:H,each:p,bind:H,exists:O,forall:M,filter:function(){return H()},toArray:function(){return[]},toString:x("none()")};return n}(),V=function(t){var e=x(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:M,isNone:O,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return V(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:D},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},B=function(t){return null===t||void 0===t?D:V(t)},R={some:V,none:H,from:B},P=Array.prototype.slice,L=Array.prototype.indexOf,I=Array.prototype.push,F=function(t,e){return L.call(t,e)},N=function(t,e){var n=F(t,e);return-1===n?R.none():R.some(n)},j=function(t,e){return F(t,e)>-1},U=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return!0}return!1},W=function(t,e){for(var n=[],r=0;r<t;r++)n.push(e(r));return n},G=function(t,e){for(var n=[],r=0;r<t.length;r+=e){var o=P.call(t,r,r+e);n.push(o)}return n},q=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},$=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},X=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];e(r,n)}},K=function(t,e){for(var n=[],r=[],o=0,i=t.length;o<i;o++){var a=t[o],u=e(a,o)?n:r;u.push(a)}return{pass:n,fail:r}},Y=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},J=function(t,e,n){return X(t,(function(t,r){n=e(n,t,r)})),n},Z=function(t,e,n){return $(t,(function(t,r){n=e(n,t,r)})),n},Q=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return R.some(i);if(n(i,r))break}return R.none()},tt=function(t,e){return Q(t,e,O)},et=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return R.some(n)}return R.none()},nt=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);I.apply(e,t[n])}return e},rt=function(t,e){return nt(q(t,e))},ot=function(t,e){for(var n=0,r=t.length;n<r;++n){var o=t[n];if(!0!==e(o,n))return!1}return!0},it=function(t){var e=P.call(t,0);return e.reverse(),e},at=function(t,e){return Y(t,(function(t){return!j(e,t)}))},ut=function(t,e){for(var n={},r=0,o=t.length;r<o;r++){var i=t[r];n[String(i)]=e(i,r)}return n},ct=function(t){return[t]},st=function(t,e){var n=P.call(t,0);return n.sort(e),n},lt=function(t,e){return e>=0&&e<t.length?R.some(t[e]):R.none()},ft=function(t){return lt(t,0)},dt=function(t){return lt(t,t.length-1)},mt=m(Array.from)?Array.from:function(t){return P.call(t)},ht=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return R.none()},gt=Object.keys,pt=Object.hasOwnProperty,vt=function(t,e){for(var n=gt(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},bt=function(t,e){return yt(t,(function(t,n){return{k:n,v:e(t,n)}}))},yt=function(t,e){var n={};return vt(t,(function(t,r){var o=e(t,r);n[o.k]=o.v})),n},xt=function(t){return function(e,n){t[n]=e}},wt=function(t,e,n,r){var o={};return vt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},Ct=function(t,e){var n={};return wt(t,e,xt(n),p),n},St=function(t,e){var n=[];return vt(t,(function(t,r){n.push(e(t,r))})),n},kt=function(t,e){for(var n=gt(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];if(e(a,i,t))return R.some(a)}return R.none()},zt=function(t){return St(t,w)},Ot=function(t,e){return Mt(t,e)?R.from(t[e]):R.none()},Mt=function(t,e){return pt.call(t,e)},_t=function(t,e){return Mt(t,e)&&void 0!==t[e]&&null!==t[e]},Tt=function(t,e,n){return void 0===n&&(n=C),t.exists((function(t){return n(t,e)}))},Et=function(t,e,n){return void 0===n&&(n=C),Dt(t,e,n).getOr(t.isNone()&&e.isNone())},At=function(t){for(var e=[],n=function(t){e.push(t)},r=0;r<t.length;r++)t[r].each(n);return e},Ht=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.isSome())return R.none();e.push(r.getOrDie())}return R.some(e)},Dt=function(t,e,n){return t.isSome()&&e.isSome()?R.some(n(t.getOrDie(),e.getOrDie())):R.none()},Vt=function(t,e,n,r){return t.isSome()&&e.isSome()&&n.isSome()?R.some(r(t.getOrDie(),e.getOrDie(),n.getOrDie())):R.none()},Bt=function(t,e){return void 0!==t&&null!==t?R.some(e(t)):R.none()},Rt=function(t,e){return t?R.some(e):R.none()},Pt=function(t,e){return t+e},Lt=function(t,e){return t.substring(e)},It=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},Ft=function(t,e){return Ut(t,e)?Lt(t,e.length):t},Nt=function(t,e){return Wt(t,e)?t:Pt(t,e)},jt=function(t,e){return-1!==t.indexOf(e)},Ut=function(t,e){return It(t,e,0)},Wt=function(t,e){return It(t,e,t.length-e.length)},Gt=function(t){return function(e){return e.replace(t,"")}},qt=Gt(/^\s+|\s+$/g),$t=function(t){return t.length>0},Xt=function(t){return!$t(t)},Kt=function(t){return void 0!==t.style&&m(t.style.getPropertyValue)},Yt=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Qt(r.childNodes[0])},Jt=function(t,e){var n=e||document,r=n.createElement(t);return Qt(r)},Zt=function(t,e){var n=e||document,r=n.createTextNode(t);return Qt(r)},Qt=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},te=function(t,e,n){return R.from(t.dom.elementFromPoint(e,n)).map(Qt)},ee={fromHtml:Yt,fromTag:Jt,fromText:Zt,fromDom:Qt,fromPoint:te};"undefined"!==typeof window?window:Function("return this;")();var ne,re=9,oe=11,ie=1,ae=3,ue=function(t){var e=t.dom.nodeName;return e.toLowerCase()},ce=function(t){return t.dom.nodeType},se=function(t){return function(e){return ce(e)===t}},le=se(ie),fe=se(ae),de=se(re),me=se(oe),he=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},ge=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),f=!s&&!c&&!l;return{isiPad:x(o),isiPhone:x(i),isTablet:x(c),isPhone:x(s),isTouch:x(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:x(l),isDesktop:x(f)}},pe=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},ve=function(t,e){var n=pe(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return xe(r(1),r(2))},be=function(t,e){var n=String(e).toLowerCase();return 0===t.length?ye():ve(t,n)},ye=function(){return xe(0,0)},xe=function(t,e){return{major:t,minor:e}},we={nu:xe,detect:be,unknown:ye},Ce=function(t,e){return ht(e.brands,(function(e){var n=e.brand.toLowerCase();return tt(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:we.nu(parseInt(e.version,10),0)}}))}))},Se=function(t,e){var n=String(e).toLowerCase();return tt(t,(function(t){return t.search(n)}))},ke=function(t,e){return Se(t,e).map((function(t){var n=we.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},ze=function(t,e){return Se(t,e).map((function(t){var n=we.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},Oe=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Me=function(t){return function(e){return jt(e,t)}},_e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return jt(t,"edge/")&&jt(t,"chrome")&&jt(t,"safari")&&jt(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Oe],search:function(t){return jt(t,"chrome")&&!jt(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return jt(t,"msie")||jt(t,"trident")}},{name:"Opera",versionRegexes:[Oe,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Me("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Me("firefox")},{name:"Safari",versionRegexes:[Oe,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(jt(t,"safari")||jt(t,"mobile/"))&&jt(t,"applewebkit")}}],Te=[{name:"Windows",search:Me("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return jt(t,"iphone")||jt(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Me("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Me("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Me("linux"),versionRegexes:[]},{name:"Solaris",search:Me("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Me("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Me("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ee={browsers:x(_e),oses:x(Te)},Ae="Edge",He="Chrome",De="IE",Ve="Opera",Be="Firefox",Re="Safari",Pe=function(){return Le({current:void 0,version:we.unknown()})},Le=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(Ae),isChrome:r(He),isIE:r(De),isOpera:r(Ve),isFirefox:r(Be),isSafari:r(Re)}},Ie={unknown:Pe,nu:Le,edge:x(Ae),chrome:x(He),ie:x(De),opera:x(Ve),firefox:x(Be),safari:x(Re)},Fe="Windows",Ne="iOS",je="Android",Ue="Linux",We="OSX",Ge="Solaris",qe="FreeBSD",$e="ChromeOS",Xe=function(){return Ke({current:void 0,version:we.unknown()})},Ke=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(Fe),isiOS:r(Ne),isAndroid:r(je),isOSX:r(We),isLinux:r(Ue),isSolaris:r(Ge),isFreeBSD:r(qe),isChromeOS:r($e)}},Ye={unknown:Xe,nu:Ke,windows:x(Fe),ios:x(Ne),android:x(je),linux:x(Ue),osx:x(We),solaris:x(Ge),freebsd:x(qe),chromeos:x($e)},Je=function(t,e,n){var r=Ee.browsers(),o=Ee.oses(),i=e.bind((function(t){return Ce(r,t)})).orThunk((function(){return ke(r,t)})).fold(Ie.unknown,Ie.nu),a=ze(o,t).fold(Ye.unknown,Ye.nu),u=ge(a,i,t,n);return{browser:i,os:a,deviceType:u}},Ze={detect:Je},Qe=function(t){return window.matchMedia(t).matches},tn=he((function(){return Ze.detect(navigator.userAgent,R.from(navigator.userAgentData),Qe)})),en=function(){return tn()},nn=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},rn=function(t,e){return nn(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},on=function(t,e){var n=t.dom;if(n.nodeType!==ie)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},an=function(t){return t.nodeType!==ie&&t.nodeType!==re&&t.nodeType!==oe||0===t.childElementCount},un=function(t,e){var n=void 0===e?document:e.dom;return an(n)?[]:q(n.querySelectorAll(t),ee.fromDom)},cn=function(t,e){var n=void 0===e?document:e.dom;return an(n)?R.none():R.from(n.querySelector(t)).map(ee.fromDom)},sn=function(t,e){return t.dom===e.dom},ln=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},fn=function(t,e){return rn(t.dom,e.dom)},dn=function(t,e){return en().browser.isIE()?fn(t,e):ln(t,e)},mn=function(t){return ee.fromDom(t.dom.ownerDocument)},hn=function(t){return de(t)?t:mn(t)},gn=function(t){return ee.fromDom(hn(t).dom.documentElement)},pn=function(t){return ee.fromDom(hn(t).dom.defaultView)},vn=function(t){return R.from(t.dom.parentNode).map(ee.fromDom)},bn=function(t){return vn(t)},yn=function(t){return R.from(t.dom.offsetParent).map(ee.fromDom)},xn=function(t){return R.from(t.dom.nextSibling).map(ee.fromDom)},wn=function(t){return q(t.dom.childNodes,ee.fromDom)},Cn=function(t,e){var n=t.dom.childNodes;return R.from(n[e]).map(ee.fromDom)},Sn=function(t){return Cn(t,0)},kn=function(t,e){return{element:t,offset:e}},zn=function(t,e){var n=wn(t);return n.length>0&&e<n.length?kn(n[e],0):kn(t,e)},On=function(t){return me(t)&&d(t.dom.host)},Mn=m(Element.prototype.attachShadow)&&m(Node.prototype.getRootNode),_n=x(Mn),Tn=Mn?function(t){return ee.fromDom(t.dom.getRootNode())}:hn,En=function(t){return On(t)?t:ee.fromDom(hn(t).dom.body)},An=function(t){return Hn(t).isSome()},Hn=function(t){var e=Tn(t);return On(e)?R.some(e):R.none()},Dn=function(t){return ee.fromDom(t.dom.host)},Vn=function(t){if(_n()&&d(t.target)){var e=ee.fromDom(t.target);if(le(e)&&Bn(e)&&t.composed&&t.composedPath){var n=t.composedPath();if(n)return ft(n)}}return R.from(t.target)},Bn=function(t){return d(t.dom.shadowRoot)},Rn=function(t){var e=fe(t)?t.dom.parentNode:t.dom;if(void 0===e||null===e||null===e.ownerDocument)return!1;var n=e.ownerDocument;return Hn(ee.fromDom(e)).fold((function(){return n.body.contains(e)}),y(Rn,Dn))},Pn=function(){return Ln(ee.fromDom(document))},Ln=function(t){var e=t.dom.body;if(null===e||void 0===e)throw new Error("Body is not available yet");return ee.fromDom(e)},In=function(t,e,n){if(!(i(n)||s(n)||h(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},Fn=function(t,e,n){In(t.dom,e,n)},Nn=function(t,e){var n=t.dom;vt(e,(function(t,e){In(n,e,t)}))},jn=function(t,e){var n=t.dom.getAttribute(e);return null===n?void 0:n},Un=function(t,e){return R.from(jn(t,e))},Wn=function(t,e){var n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(e)},Gn=function(t,e){t.dom.removeAttribute(e)},qn=function(t,e,n){if(!i(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);Kt(t)&&t.style.setProperty(e,n)},$n=function(t,e){Kt(t)&&t.style.removeProperty(e)},Xn=function(t,e,n){var r=t.dom;qn(r,e,n)},Kn=function(t,e){var n=t.dom;vt(e,(function(t,e){qn(n,e,t)}))},Yn=function(t,e){var n=t.dom;vt(e,(function(t,e){t.fold((function(){$n(n,e)}),(function(t){qn(n,e,t)}))}))},Jn=function(t,e){var n=t.dom,r=window.getComputedStyle(n),o=r.getPropertyValue(e);return""!==o||Rn(t)?o:Zn(n,e)},Zn=function(t,e){return Kt(t)?t.style.getPropertyValue(e):""},Qn=function(t,e){var n=t.dom,r=Zn(n,e);return R.from(r).filter((function(t){return t.length>0}))},tr=function(t){var e={},n=t.dom;if(Kt(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);e[o]=n.style[o]}return e},er=function(t,e,n){var r=ee.fromTag(t);Xn(r,e,n);var o=Qn(r,e);return o.isSome()},nr=function(t,e){var n=t.dom;$n(n,e),Tt(Un(t,"style").map(qt),"")&&Gn(t,"style")},rr=function(t){return t.dom.offsetWidth},or=function(t,e){var n=function(e,n){if(!h(n)&&!n.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+n);var r=e.dom;Kt(r)&&(r.style[t]=n+"px")},r=function(n){var r=e(n);if(r<=0||null===r){var o=Jn(n,t);return parseFloat(o)||0}return r},o=r,i=function(t,e){return Z(e,(function(e,n){var r=Jn(t,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?e:e+o}),0)},a=function(t,e,n){var r=i(t,n),o=e>r?e-r:0;return o};return{set:n,get:r,getOuter:o,aggregate:i,max:a}},ir=or("height",(function(t){var e=t.dom;return Rn(t)?e.getBoundingClientRect().height:e.offsetHeight})),ar=function(t){return ir.get(t)},ur=function(t){return ir.getOuter(t)},cr=function(t,e){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=ir.max(t,e,n);Xn(t,"max-height",r+"px")},sr=function(t,e){var n=function(n,r){return sr(t+n,e+r)};return{left:t,top:e,translate:n}},lr=sr,fr=function(t){var e=t.getBoundingClientRect();return lr(e.left,e.top)},dr=function(t,e){return void 0!==t?t:void 0!==e?e:0},mr=function(t){var e=t.dom.ownerDocument,n=e.body,r=e.defaultView,o=e.documentElement;if(n===t.dom)return lr(n.offsetLeft,n.offsetTop);var i=dr(null===r||void 0===r?void 0:r.pageYOffset,o.scrollTop),a=dr(null===r||void 0===r?void 0:r.pageXOffset,o.scrollLeft),u=dr(o.clientTop,n.clientTop),c=dr(o.clientLeft,n.clientLeft);return hr(t).translate(a-c,i-u)},hr=function(t){var e=t.dom,n=e.ownerDocument,r=n.body;return r===e?lr(r.offsetLeft,r.offsetTop):Rn(t)?fr(e):lr(0,0)},gr=or("width",(function(t){return t.dom.offsetWidth})),pr=function(t,e){return gr.set(t,e)},vr=function(t){return gr.get(t)},br=function(t){return gr.getOuter(t)},yr=function(t,e){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=gr.max(t,e,n);Xn(t,"max-width",r+"px")},xr=function(t,e,n,r,o,i,a){return{target:t,x:e,y:n,stop:r,prevent:o,kill:i,raw:a}},wr=function(t){var e=ee.fromDom(Vn(t).getOr(t.target)),n=function(){return t.stopPropagation()},r=function(){return t.preventDefault()},o=b(r,n);return xr(e,t.clientX,t.clientY,n,r,o,t)},Cr=function(t,e){return function(n){t(n)&&e(wr(n))}},Sr=function(t,e,n,r,o){var i=Cr(n,r);return t.dom.addEventListener(e,i,o),{unbind:S(Or,t,e,i,o)}},kr=function(t,e,n,r){return Sr(t,e,n,r,!1)},zr=function(t,e,n,r){return Sr(t,e,n,r,!0)},Or=function(t,e,n,r){t.dom.removeEventListener(e,n,r)},Mr=function(t,e){var n=vn(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},_r=function(t,e){var n=xn(t);n.fold((function(){var n=vn(t);n.each((function(t){Er(t,e)}))}),(function(t){Mr(t,e)}))},Tr=function(t,e){var n=Sn(t);n.fold((function(){Er(t,e)}),(function(n){t.dom.insertBefore(e.dom,n.dom)}))},Er=function(t,e){t.dom.appendChild(e.dom)},Ar=function(t,e,n){Cn(t,n).fold((function(){Er(t,e)}),(function(t){Mr(t,e)}))},Hr=function(t,e){$(e,(function(e){Mr(t,e)}))},Dr=function(t,e){$(e,(function(e){Er(t,e)}))},Vr=function(t){t.dom.textContent="",$(wn(t),(function(t){Br(t)}))},Br=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},Rr=function(t){var e=wn(t);e.length>0&&Hr(t,e),Br(t)},Pr=function(t){var e=void 0!==t?t.dom:document,n=e.body.scrollLeft||e.documentElement.scrollLeft,r=e.body.scrollTop||e.documentElement.scrollTop;return lr(n,r)},Lr=function(t,e,n){var r=void 0!==n?n.dom:document,o=r.defaultView;o&&o.scrollTo(t,e)},Ir=function(t){var e=void 0===t?window:t;return en().browser.isFirefox()?R.none():R.from(e["visualViewport"])},Fr=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Nr=function(t){var e=void 0===t?window:t,n=e.document,r=Pr(ee.fromDom(n));return Ir(e).fold((function(){var t=e.document.documentElement,n=t.clientWidth,o=t.clientHeight;return Fr(r.left,r.top,n,o)}),(function(t){return Fr(Math.max(t.pageLeft,r.left),Math.max(t.pageTop,r.top),t.width,t.height)}))},jr=function(t,e){var n=t.view(e);return n.fold(x([]),(function(e){var n=t.owner(e),r=jr(t,n);return[e].concat(r)}))},Ur=function(t,e){var n=e.owner(t),r=jr(e,n);return R.some(r)},Wr=function(t){var e,n=t.dom===document?R.none():R.from(null===(e=t.dom.defaultView)||void 0===e?void 0:e.frameElement);return n.map(ee.fromDom)},Gr=function(t){return mn(t)},qr=Object.freeze({__proto__:null,view:Wr,owner:Gr}),$r=function(t){var e=ee.fromDom(document),n=Pr(e),r=Ur(t,qr);return r.fold(S(mr,t),(function(e){var r=hr(t),o=J(e,(function(t,e){var n=hr(e);return{left:t.left+n.left,top:t.top+n.top}}),{left:0,top:0});return lr(o.left+r.left+n.left,o.top+r.top+n.top)}))},Xr=function(t,e,n){return{point:t,width:e,height:n}},Kr=function(t,e,n,r){return{x:t,y:e,width:n,height:r}},Yr=function(t,e,n,r){return{x:t,y:e,width:n,height:r,right:t+n,bottom:e+r}},Jr=function(t){var e=mr(t),n=br(t),r=ur(t);return Yr(e.left,e.top,n,r)},Zr=function(t){var e=$r(t),n=br(t),r=ur(t);return Yr(e.left,e.top,n,r)},Qr=function(){return Nr(window)},to=function(t){var e=function(e){return to(t)},n=function(e){return to(t)},r=function(e){return to(e(t))},o=function(e){return to(t)},i=function(e){e(t)},a=function(e){return e(t)},u=function(e,n){return n(t)},c=function(e){return e(t)},s=function(e){return e(t)},l=function(){return R.some(t)};return{isValue:M,isError:O,getOr:x(t),getOrThunk:x(t),getOrDie:x(t),or:e,orThunk:n,fold:u,map:r,mapError:o,each:i,bind:a,exists:c,forall:s,toOptional:l}},eo=function(t){var e=function(t){return t()},n=function(){return z(String(t))()},r=w,o=function(t){return t()},i=function(e){return eo(t)},a=function(e){return eo(e(t))},u=function(e){return eo(t)},c=function(e,n){return e(t)};return{isValue:O,isError:M,getOr:w,getOrThunk:e,getOrDie:n,or:r,orThunk:o,fold:c,map:i,mapError:a,each:p,bind:u,exists:O,forall:M,toOptional:R.none}},no=function(t,e){return t.fold((function(){return eo(e)}),to)},ro={value:to,error:eo,fromOption:no};(function(t){t[t["Error"]=0]="Error",t[t["Value"]=1]="Value"})(ne||(ne={}));var oo=function(t,e,n){return t.stype===ne.Error?e(t.serror):n(t.svalue)},io=function(t){var e=[],n=[];return $(t,(function(t){oo(t,(function(t){return n.push(t)}),(function(t){return e.push(t)}))})),{values:e,errors:n}},ao=function(t,e){return t.stype===ne.Error?{stype:ne.Error,serror:e(t.serror)}:t},uo=function(t,e){return t.stype===ne.Value?{stype:ne.Value,svalue:e(t.svalue)}:t},co=function(t,e){return t.stype===ne.Value?e(t.svalue):t},so=function(t,e){return t.stype===ne.Error?e(t.serror):t},lo=function(t){return{stype:ne.Value,svalue:t}},fo=function(t){return{stype:ne.Error,serror:t}},mo=function(t){return oo(t,ro.error,ro.value)},ho=function(t){return t.fold(fo,lo)},go={fromResult:ho,toResult:mo,svalue:lo,partition:io,serror:fo,bind:co,bindError:so,map:uo,mapError:ao,fold:oo},po=function(t,e,n,r){return{tag:"field",key:t,newKey:e,presence:n,prop:r}},vo=function(t,e){return{tag:"custom",newKey:t,instantiator:e}},bo=function(t,e,n){switch(t.tag){case"field":return e(t.key,t.newKey,t.presence,t.prop);case"custom":return n(t.newKey,t.instantiator)}},yo=function(t,e){return e},xo=function(t,e){var n=a(t)&&a(e);return n?Co(t,e):e},wo=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<e.length;o++){var i=e[o];for(var a in i)Mt(i,a)&&(r[a]=t(r[a],i[a]))}return r}},Co=wo(xo),So=wo(yo),ko=function(){return{tag:"required",process:{}}},zo=function(t){return{tag:"defaultedThunk",process:t}},Oo=function(t){return zo(x(t))},Mo=function(){return{tag:"option",process:{}}},_o=function(t){return{tag:"mergeWithThunk",process:t}},To=function(t){return _o(x(t))},Eo=function(t,e){return t.length>0?go.svalue(Co(e,So.apply(void 0,t))):go.svalue(e)},Ao=function(t){return b(go.serror,nt)(t)},Ho=function(t,e){var n=go.partition(t);return n.errors.length>0?Ao(n.errors):Eo(n.values,e)},Do=function(t){var e=go.partition(t);return e.errors.length>0?Ao(e.errors):go.svalue(e.values)},Vo={consolidateObj:Ho,consolidateArr:Do},Bo=function(t){return a(t)&>(t).length>100?" removed due to size":JSON.stringify(t,null,2)},Ro=function(t){var e=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):t;return q(e,(function(t){return"Failed path: ("+t.path.join(" > ")+")\n"+t.getErrorInfo()}))},Po=function(t,e){return go.serror([{path:t,getErrorInfo:e}])},Lo=function(t,e,n){return Po(t,(function(){return'Could not find valid *required* value for "'+e+'" in '+Bo(n)}))},Io=function(t,e){return Po(t,(function(){return'Choice schema did not contain choice key: "'+e+'"'}))},Fo=function(t,e,n){return Po(t,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Bo(e)}))},No=function(t,e){return Po(t,(function(){return"There are unsupported fields: ["+e.join(", ")+"] specified"}))},jo=function(t,e){return Po(t,x(e))},Uo=function(t){var e=function(e,n){return go.bindError(t(n),(function(t){return jo(e,t)}))},n=x("val");return{extract:e,toString:n}},Wo=Uo(go.svalue),Go=function(t,e,n,r){return Ot(e,n).fold((function(){return Lo(t,n,e)}),r)},qo=function(t,e,n,r){var o=Ot(t,e).getOrThunk((function(){return n(t)}));return r(o)},$o=function(t,e,n){return n(Ot(t,e))},Xo=function(t,e,n,r){var o=Ot(t,e).map((function(e){return!0===e?n(t):e}));return r(o)},Ko=function(t,e,n,r,o){var i=function(t){return o.extract(e.concat([r]),t)},a=function(t){return t.fold((function(){return go.svalue(R.none())}),(function(t){var n=o.extract(e.concat([r]),t);return go.map(n,R.some)}))};switch(t.tag){case"required":return Go(e,n,r,i);case"defaultedThunk":return qo(n,r,t.process,i);case"option":return $o(n,r,a);case"defaultedOptionThunk":return Xo(n,r,t.process,a);case"mergeWithThunk":return qo(n,r,x({}),(function(e){var r=Co(t.process(n),e);return i(r)}))}},Yo=function(t,e,n){for(var r={},o=[],i=0,a=n;i<a.length;i++){var u=a[i];bo(u,(function(n,i,a,u){var c=Ko(a,t,e,n,u);go.fold(c,(function(t){o.push.apply(o,t)}),(function(t){r[i]=t}))}),(function(t,n){r[t]=n(e)}))}return o.length>0?go.serror(o):go.svalue(r)},Jo=function(t){var e=function(e,n){return t().extract(e,n)},n=function(){return t().toString()};return{extract:e,toString:n}},Zo=function(t){return gt(Ct(t,d))},Qo=function(t){var e=ti(t),n=J(t,(function(t,e){return bo(e,(function(e){var n;return Co(t,(n={},n[e]=!0,n))}),x(t))}),{}),r=function(t,r){var o=s(r)?[]:Zo(r),i=Y(o,(function(t){return!_t(n,t)}));return 0===i.length?e.extract(t,r):No(t,i)};return{extract:r,toString:e.toString}},ti=function(t){var e=function(e,n){return Yo(e,n,t)},n=function(){var e=q(t,(function(t){return bo(t,(function(t,e,n,r){return t+" -> "+r.toString()}),(function(t,e){return"state("+t+")"}))}));return"obj{\n"+e.join("\n")+"}"};return{extract:e,toString:n}},ei=function(t){var e=function(e,n){var r=q(n,(function(n,r){return t.extract(e.concat(["["+r+"]"]),n)}));return Vo.consolidateArr(r)},n=function(){return"array("+t.toString()+")"};return{extract:e,toString:n}},ni=function(t){var e=function(e,n){for(var r=[],o=0,i=t;o<i.length;o++){var a=i[o],u=a.extract(e,n);if(u.stype===ne.Value)return u;r.push(u)}return Vo.consolidateArr(r)},n=function(){return"oneOf("+q(t,(function(t){return t.toString()})).join(", ")+")"};return{extract:e,toString:n}},ri=function(t,e){var n=function(e,n){return ei(Uo(t)).extract(e,n)},r=function(t,r){var o=gt(r),i=n(t,o);return go.bind(i,(function(n){var o=q(n,(function(t){return po(t,t,ko(),e)}));return ti(o).extract(t,r)}))},o=function(){return"setOf("+e.toString()+")"};return{extract:r,toString:o}},oi=function(t,e){var n=he(e),r=function(t,e){return n().extract(t,e)},o=function(){return n().toString()};return{extract:r,toString:o}},ii=b(ei,ti),ai=x(Wo),ui=function(t,e){return Uo((function(n){var r=typeof n;return t(n)?go.svalue(n):go.serror("Expected type: "+e+" but got: "+r)}))},ci=ui(h,"number"),si=ui(i,"string"),li=ui(s,"boolean"),fi=ui(m,"function"),di=function(t){if(Object(t)!==t)return!0;switch({}.toString.call(t).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(t).every((function(e){return di(t[e])}));default:return!1}},mi=Uo((function(t){return di(t)?go.svalue(t):go.serror("Expected value to be acceptable for sending via postMessage")})),hi=function(t,e,n,r){var o=Ot(n,r);return o.fold((function(){return Fo(t,n,r)}),(function(n){return n.extract(t.concat(["branch: "+r]),e)}))},gi=function(t,e){var n=function(n,r){var o=Ot(r,t);return o.fold((function(){return Io(n,t)}),(function(t){return hi(n,r,e,t)}))},r=function(){return"chooseOn("+t+"). Possible values: "+gt(e)};return{extract:n,toString:r}},pi=function(){return ei(Wo)},vi=function(t){return Uo((function(e){return t(e).fold(go.serror,go.svalue)}))},bi=function(t,e){return ri((function(e){return go.fromResult(t(e))}),e)},yi=function(t,e,n){var r=e.extract([t],n);return go.mapError(r,(function(t){return{input:n,errors:t}}))},xi=function(t,e,n){return go.toResult(yi(t,e,n))},wi=function(t){return t.fold((function(t){throw new Error(Si(t))}),w)},Ci=function(t,e,n){return wi(xi(t,e,n))},Si=function(t){return"Errors: \n"+Ro(t.errors).join("\n")+"\n\nInput object: "+Bo(t.input)},ki=function(t,e){return gi(t,bt(e,ti))},zi=function(t,e){return oi(t,e)},Oi=po,Mi=vo,_i=function(t){return vi((function(e){return j(t,e)?ro.value(e):ro.error('Unsupported value: "'+e+'", choose one of "'+t.join(", ")+'".')}))},Ti=function(t){return Oi(t,t,ko(),ai())},Ei=function(t,e){return Oi(t,t,ko(),e)},Ai=function(t){return Ei(t,ci)},Hi=function(t){return Ei(t,si)},Di=function(t,e){return Oi(t,t,ko(),_i(e))},Vi=function(t){return Ei(t,li)},Bi=function(t){return Ei(t,fi)},Ri=function(t,e){return Oi(t,t,Mo(),Uo((function(n){return go.serror("The field: "+t+" is forbidden. "+e)})))},Pi=function(t,e){return Oi(t,t,ko(),ti(e))},Li=function(t,e){return Oi(t,t,ko(),ii(e))},Ii=function(t,e){return Oi(t,t,ko(),ei(e))},Fi=function(t){return Oi(t,t,Mo(),ai())},Ni=function(t,e){return Oi(t,t,Mo(),e)},ji=function(t){return Ni(t,ci)},Ui=function(t){return Ni(t,si)},Wi=function(t){return Ni(t,fi)},Gi=function(t,e){return Ni(t,ei(e))},qi=function(t,e){return Ni(t,ti(e))},$i=function(t,e){return Ni(t,Qo(e))},Xi=function(t,e){return Oi(t,t,Oo(e),ai())},Ki=function(t,e,n){return Oi(t,t,Oo(e),n)},Yi=function(t,e){return Ki(t,e,ci)},Ji=function(t,e){return Ki(t,e,si)},Zi=function(t,e,n){return Ki(t,e,_i(n))},Qi=function(t,e){return Ki(t,e,li)},ta=function(t,e){return Ki(t,e,fi)},ea=function(t,e){return Ki(t,e,mi)},na=function(t,e,n){return Ki(t,e,ei(n))},ra=function(t,e,n){return Ki(t,e,ti(n))},oa=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},ia=function(t){if(!u(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var e=[],n={};return $(t,(function(r,o){var i=gt(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],c=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!u(c))throw new Error("case arguments must be an array");e.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+i);var u=function(t){var r=gt(t);if(e.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+e.join(",")+"\nActual: "+r.join(","));var o=ot(e,(function(t){return j(r,t)}));if(!o)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+e.join(", "));return t[a].apply(null,n)};return{fold:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(e.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+e.length);var i=e[o];return i.apply(null,n)},match:u,log:function(t){console.log(t,{constructors:e,constructor:a,params:n})}}}})),n},aa={generate:ia};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ua,ca=function(t){var e=[],n=[];return $(t,(function(t){t.fold((function(t){e.push(t)}),(function(t){n.push(t)}))})),{errors:e,values:n}},sa=function(t,e){var n={};return vt(t,(function(t,r){j(e,r)||(n[r]=t)})),n},la=function(t,e){var n;return n={},n[t]=e,n},fa=function(t){var e={};return $(t,(function(t){e[t.key]=t.value})),e},da=function(t,e){return sa(t,e)},ma=function(t,e){return la(t,e)},ha=function(t){return fa(t)},ga=function(t,e){return 0===t.length?ro.value(e):ro.value(Co(e,So.apply(void 0,t)))},pa=function(t){return ro.error(nt(t))},va=function(t,e){var n=ca(t);return n.errors.length>0?pa(n.errors):ga(n.values,e)},ba=function(t){return m(t)?t:O},ya=function(t,e,n){var r=t.dom,o=ba(n);while(r.parentNode){r=r.parentNode;var i=ee.fromDom(r),a=e(i);if(a.isSome())return a;if(o(i))break}return R.none()},xa=function(t,e,n){var r=e(t),o=ba(n);return r.orThunk((function(){return o(t)?R.none():ya(t,e,o)}))},wa=function(t,e){return sn(t.element,e.event.target)},Ca={can:M,abort:O,run:p},Sa=function(t){if(!_t(t,"can")&&!_t(t,"abort")&&!_t(t,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(t,null,2)+" does not have can, abort, or run!");return T(T({},Ca),t)},ka=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(t,(function(t,r){return t&&e(r).apply(void 0,n)}),!0)}},za=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Z(t,(function(t,r){return t||e(r).apply(void 0,n)}),!1)}},Oa=function(t){return m(t)?{can:M,abort:O,run:t}:t},Ma=function(t){var e=ka(t,(function(t){return t.can})),n=za(t,(function(t){return t.abort})),r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];$(t,(function(t){t.run.apply(void 0,e)}))};return{can:e,abort:n,run:r}},_a=x,Ta=_a("touchstart"),Ea=_a("touchmove"),Aa=_a("touchend"),Ha=_a("touchcancel"),Da=_a("mousedown"),Va=_a("mousemove"),Ba=_a("mouseout"),Ra=_a("mouseup"),Pa=_a("mouseover"),La=_a("focusin"),Ia=_a("focusout"),Fa=_a("keydown"),Na=_a("keyup"),ja=_a("input"),Ua=_a("change"),Wa=_a("click"),Ga=_a("transitioncancel"),qa=_a("transitionend"),$a=_a("transitionstart"),Xa=_a("selectstart"),Ka=function(t){return x("alloy."+t)},Ya={tap:Ka("tap")},Ja=Ka("focus"),Za=Ka("blur.post"),Qa=Ka("paste.post"),tu=Ka("receive"),eu=Ka("execute"),nu=Ka("focus.item"),ru=Ya.tap,ou=Ka("longpress"),iu=Ka("sandbox.close"),au=Ka("typeahead.cancel"),uu=Ka("system.init"),cu=Ka("system.touchmove"),su=Ka("system.touchend"),lu=Ka("system.scroll"),fu=Ka("system.resize"),du=Ka("system.attached"),mu=Ka("system.detached"),hu=Ka("system.dismissRequested"),gu=Ka("system.repositionRequested"),pu=Ka("focusmanager.shifted"),vu=Ka("slotcontainer.visibility"),bu=Ka("change.tab"),yu=Ka("dismiss.tab"),xu=Ka("highlight"),wu=Ka("dehighlight"),Cu=function(t,e){Ou(t,t.element,e,{})},Su=function(t,e,n){Ou(t,t.element,e,n)},ku=function(t){Cu(t,eu())},zu=function(t,e,n){Ou(t,e,n,{})},Ou=function(t,e,n,r){var o=T({target:e},r);t.getSystem().triggerEvent(n,e,o)},Mu=function(t,e,n,r){t.getSystem().triggerEvent(n,e,r.event)},_u=function(t){return ha(t)},Tu=function(t,e){return{key:t,value:Sa({abort:e})}},Eu=function(t,e){return{key:t,value:Sa({can:e})}},Au=function(t){return{key:t,value:Sa({run:function(t,e){e.event.prevent()}})}},Hu=function(t,e){return{key:t,value:Sa({run:e})}},Du=function(t,e,n){return{key:t,value:Sa({run:function(t,r){e.apply(void 0,[t,r].concat(n))}})}},Vu=function(t){return function(e){return Hu(t,e)}},Bu=function(t){return function(e){return{key:t,value:Sa({run:function(t,n){wa(t,n)&&e(t,n)}})}}},Ru=function(t,e){return Hu(t,(function(n,r){n.getSystem().getByUid(e).each((function(e){Mu(e,e.element,t,r)}))}))},Pu=function(t,e,n){var r=e.partUids[n];return Ru(t,r)},Lu=function(t,e){return Hu(t,(function(t,n){var r=n.event,o=t.getSystem().getByDom(r.target).getOrThunk((function(){var e=xa(r.target,(function(e){return t.getSystem().getByDom(e).toOptional()}),O);return e.getOr(t)}));e(t,o,n)}))},Iu=function(t){return Hu(t,(function(t,e){e.cut()}))},Fu=function(t){return Hu(t,(function(t,e){e.stop()}))},Nu=function(t,e){return Bu(t)(e)},ju=Bu(du()),Uu=Bu(mu()),Wu=Bu(uu()),Gu=Vu(eu()),qu=function(t,e){var n=e||document,r=n.createElement("div");return r.innerHTML=t,wn(ee.fromDom(r))},$u=function(t){return t.dom.innerHTML},Xu=function(t,e){var n=mn(t),r=n.dom,o=ee.fromDom(r.createDocumentFragment()),i=qu(e,r);Dr(o,i),Vr(t),Er(t,o)},Ku=function(t){var e=ee.fromTag("div"),n=ee.fromDom(t.dom.cloneNode(!0));return Er(e,n),$u(e)},Yu=function(t,e){return ee.fromDom(t.dom.cloneNode(e))},Ju=function(t){return Yu(t,!1)},Zu=function(t){if(On(t))return"#shadow-root";var e=Ju(t);return Ku(e)},Qu=function(t){return Zu(t)},tc=function(t,e,n){return sn(e,t.element)&&!sn(e,n)},ec=_u([Eu(Ja(),(function(t,e){var n=e.event,r=n.originator,o=n.target;return!tc(t,r,o)||(console.warn(Ja()+" did not get interpreted by the desired target. \nOriginator: "+Qu(r)+"\nTarget: "+Qu(o)+"\nCheck the "+Ja()+" event handlers"),!1)}))]),nc=Object.freeze({__proto__:null,events:ec}),rc=0,oc=function(t){var e=new Date,n=e.getTime(),r=Math.floor(1e9*Math.random());return rc++,t+"_"+r+rc+String(n)},ic=x("alloy-id-"),ac=x("data-alloy-id"),uc=ic(),cc=ac(),sc=function(t,e){var n=oc(uc+t);return lc(e,n),n},lc=function(t,e){Object.defineProperty(t.dom,cc,{value:e,writable:!0})},fc=function(t){var e=le(t)?t.dom[cc]:null;return R.from(e)},dc=function(t){return oc(t)},mc=w,hc=function(t){var e=function(e){return"The component must be in a context to execute: "+e+(t?"\n"+Qu(t().element)+" is not in context.":"")},n=function(t){return function(){throw new Error(e(t))}},r=function(t){return function(){console.warn(e(t))}};return{debugInfo:x("fake"),triggerEvent:r("triggerEvent"),triggerFocus:r("triggerFocus"),triggerEscape:r("triggerEscape"),broadcast:r("broadcast"),broadcastOn:r("broadcastOn"),broadcastEvent:r("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:O}},gc=hc(),pc=function(t,e,n){var r=n.toString(),o=r.indexOf(")")+1,i=r.indexOf("("),a=r.substring(i+1,o-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:vc(a.slice(0,1).concat(a.slice(3)))}},t},vc=function(t){return q(t,(function(t){return Wt(t,"/*")?t.substring(0,t.length-"/*".length):t}))},bc=function(t,e){var n=t.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:e,parameters:vc(i)}},t},yc=function(t,e){var n=e.toString(),r=n.indexOf(")")+1,o=n.indexOf("("),i=n.substring(o+1,r-1).split(/,\s*/);return t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:vc(i.slice(1))}},t},xc=oc("alloy-premade"),wc=function(t){return ma(xc,t)},Cc=function(t){return Ot(t,xc)},Sc=function(t){return yc((function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.apply(void 0,A([e.getApis(),e],n,!1))}),t)},kc={init:function(){return zc({readState:x("No State required")})}},zc=function(t){return t},Oc=function(t,e){var n=q(e,(function(t){return qi(t.name(),[Ti("config"),Xi("state",kc)])})),r=xi("component.behaviours",ti(n),t.behaviours).fold((function(e){throw new Error(Si(e)+"\nComplete spec:\n"+JSON.stringify(t,null,2))}),w);return{list:e,data:bt(r,(function(t){var e=t.map((function(t){return{config:t.config,state:t.state.init(t.config)}}));return x(e)}))}},Mc=function(t){return t.list},_c=function(t){return t.data},Tc=function(t,e){var n={};return vt(t,(function(t,r){vt(t,(function(t,o){var i=Ot(n,o).getOr([]);n[o]=i.concat([e(r,t)])}))})),n},Ec=function(t){return{classes:l(t.classes)?[]:t.classes,attributes:l(t.attributes)?{}:t.attributes,styles:l(t.styles)?{}:t.styles}},Ac=function(t,e){return T(T({},t),{attributes:T(T({},t.attributes),e.attributes),styles:T(T({},t.styles),e.styles),classes:t.classes.concat(e.classes)})},Hc=function(t,e,n,r){var o=T({},e);$(n,(function(e){o[e.name()]=e.exhibit(t,r)}));var i=Tc(o,(function(t,e){return{name:t,modification:e}})),a=function(t){return J(t,(function(t,e){return T(T({},e.modification),t)}),{})},u=J(i.classes,(function(t,e){return e.modification.concat(t)}),[]),c=a(i.attributes),s=a(i.styles);return Ec({classes:u,attributes:c,styles:s})},Dc=function(t,e,n,r){try{var o=st(n,(function(n,o){var i=n[e],a=o[e],u=r.indexOf(i),c=r.indexOf(a);if(-1===u)throw new Error("The ordering for "+t+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===c)throw new Error("The ordering for "+t+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return u<c?-1:c<u?1:0}));return ro.value(o)}catch(i){return ro.error([i])}},Vc=function(t,e){return{handler:t,purpose:e}},Bc=function(t,e){return{cHandler:t,purpose:e}},Rc=function(t,e){return Bc(S.apply(void 0,[t.handler].concat(e)),t.purpose)},Pc=function(t){return t.cHandler},Lc=function(t,e){return{name:t,handler:e}},Ic=function(t,e){var n={};return $(t,(function(t){n[t.name()]=t.handlers(e)})),n},Fc=function(t,e,n){var r=T(T({},n),Ic(e,t));return Tc(r,Lc)},Nc=function(t,e,n,r){var o=Fc(t,n,r);return Gc(o,e)},jc=function(t){var e=Oa(t);return function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=[t,n].concat(r);e.abort.apply(void 0,i)?n.stop():e.can.apply(void 0,i)&&e.run.apply(void 0,i)}},Uc=function(t,e){return ro.error(["The event ("+t+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(q(e,(function(t){return t.name})),null,2)])},Wc=function(t,e,n){var r=e[n];return r?Dc("Event: "+n,"name",t,r).map((function(t){var e=q(t,(function(t){return t.handler}));return Ma(e)})):Uc(n,t)},Gc=function(t,e){var n=St(t,(function(t,n){var r=1===t.length?ro.value(t[0].handler):Wc(t,e,n);return r.map((function(r){var o=jc(r),i=t.length>1?Y(e[n],(function(e){return U(t,(function(t){return t.name===e}))})).join(" > "):t[0].name;return ma(n,Vc(o,i))}))}));return va(n,{})},qc="alloy.base.behaviour",$c=ti([Oi("dom","dom",ko(),ti([Ti("tag"),Xi("styles",{}),Xi("classes",[]),Xi("attributes",{}),Fi("value"),Fi("innerHtml")])),Ti("components"),Ti("uid"),Xi("events",{}),Xi("apis",{}),Oi("eventOrder","eventOrder",To((ua={},ua[eu()]=["disabling",qc,"toggling","typeaheadevents"],ua[Ja()]=[qc,"focusing","keying"],ua[uu()]=[qc,"disabling","toggling","representing"],ua[ja()]=[qc,"representing","streaming","invalidating"],ua[mu()]=[qc,"representing","item-events","tooltipping"],ua[Da()]=["focusing",qc,"item-type-events"],ua[Ta()]=["focusing",qc,"item-type-events"],ua[Pa()]=["item-type-events","tooltipping"],ua[tu()]=["receiving","reflecting","tooltipping"],ua)),ai()),Fi("domModification")]),Xc=function(t){return xi("custom.definition",$c,t)},Kc=function(t){return T(T({},t.dom),{uid:t.uid,domChildren:q(t.components,(function(t){return t.element}))})},Yc=function(t){return t.domModification.fold((function(){return Ec({})}),Ec)},Jc=function(t){return t.events},Zc=function(t,e){var n=jn(t,e);return void 0===n||""===n?[]:n.split(" ")},Qc=function(t,e,n){var r=Zc(t,e),o=r.concat([n]);return Fn(t,e,o.join(" ")),!0},ts=function(t,e,n){var r=Y(Zc(t,e),(function(t){return t!==n}));return r.length>0?Fn(t,e,r.join(" ")):Gn(t,e),!1},es=function(t){return void 0!==t.dom.classList},ns=function(t){return Zc(t,"class")},rs=function(t,e){return Qc(t,"class",e)},os=function(t,e){return ts(t,"class",e)},is=function(t,e){es(t)?t.dom.classList.add(e):rs(t,e)},as=function(t){var e=es(t)?t.dom.classList:ns(t);0===e.length&&Gn(t,"class")},us=function(t,e){if(es(t)){var n=t.dom.classList;n.remove(e)}else os(t,e);as(t)},cs=function(t,e){return es(t)&&t.dom.classList.contains(e)},ss=function(t,e){$(e,(function(e){is(t,e)}))},ls=function(t,e){$(e,(function(e){us(t,e)}))},fs=function(t,e){return ot(e,(function(e){return cs(t,e)}))},ds=function(t){return t.dom.value},ms=function(t,e){if(void 0===e)throw new Error("Value.set was undefined");t.dom.value=e},hs=function(t){var e=ee.fromTag(t.tag);Nn(e,t.attributes),ss(e,t.classes),Kn(e,t.styles),t.innerHtml.each((function(t){return Xu(e,t)}));var n=t.domChildren;return Dr(e,n),t.value.each((function(t){ms(e,t)})),t.uid,lc(e,t.uid),e},gs=function(t){var e=Ot(t,"behaviours").getOr({});return rt(gt(e),(function(t){var n=e[t];return d(n)?[n.me]:[]}))},ps=function(t,e){return Oc(t,e)},vs=function(t){var e=gs(t);return ps(t,e)},bs=function(t,e,n){var r=Kc(t),o=Yc(t),i={"alloy.base.modification":o},a=e.length>0?Hc(n,i,e,r):o;return Ac(r,a)},ys=function(t,e,n){var r={"alloy.base.behaviour":Jc(t)};return Nc(n,t.eventOrder,e,r).getOrDie()},xs=function(t){var e=function(){return y},n=oa(gc),r=wi(Xc(t)),o=vs(t),i=Mc(o),a=_c(o),u=bs(r,i,a),c=hs(u),s=ys(r,i,a),l=oa(r.components),f=function(t){n.set(t)},d=function(){n.set(hc(e))},h=function(){var t=wn(c),e=rt(t,(function(t){return n.get().getByDom(t).fold((function(){return[]}),ct)}));l.set(e)},g=function(e){var n=a,r=m(n[e.name()])?n[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+JSON.stringify(t,null,2))};return r()},p=function(t){return m(a[t.name()])},v=function(){return r.apis},b=function(t){return a[t]().map((function(t){return t.state.readState()})).getOr("not enabled")},y={uid:t.uid,getSystem:n.get,config:g,hasConfigured:p,spec:t,readState:b,getApis:v,connect:f,disconnect:d,element:c,syncComponents:h,components:l.get,events:s};return y},ws=function(t){var e=Ot(t,"components").getOr([]);return q(e,Ms)},Cs=function(t){var e=mc(t),n=e.events,r=E(e,["events"]),o=ws(r),i=T(T({},r),{events:T(T({},nc),n),components:o});return ro.value(xs(i))},Ss=function(t){var e=ee.fromText(t);return ks({element:e})},ks=function(t){var e=Ci("external.component",Qo([Ti("element"),Fi("uid")]),t),n=oa(hc()),r=function(t){n.set(t)},o=function(){n.set(hc((function(){return a})))},i=e.uid.getOrThunk((function(){return dc("external")}));lc(e.element,i);var a={uid:i,getSystem:n.get,config:R.none,hasConfigured:O,connect:r,disconnect:o,getApis:function(){return{}},element:e.element,spec:t,readState:x("No state"),syncComponents:p,components:x([]),events:{}};return wc(a)},zs=dc,Os=function(t){return Mt(t,"uid")},Ms=function(t){return Cc(t).getOrThunk((function(){var e=Os(t)?t:T({uid:zs("")},t);return Cs(e).getOrDie()}))},_s=wc;function Ts(t,e,n,r,o){return t(n,r)?R.some(n):m(o)&&o(n)?R.none():e(n,r,o)}var Es,As=function(t,e,n){var r=t.dom,o=m(n)?n:O;while(r.parentNode){r=r.parentNode;var i=ee.fromDom(r);if(e(i))return R.some(i);if(o(i))break}return R.none()},Hs=function(t,e,n){var r=function(t,e){return e(t)};return Ts(r,As,t,e,n)},Ds=function(t,e){var n=function(t){return e(ee.fromDom(t))},r=tt(t.dom.childNodes,n);return r.map(ee.fromDom)},Vs=function(t,e){var n=function(t){for(var r=0;r<t.childNodes.length;r++){var o=ee.fromDom(t.childNodes[r]);if(e(o))return R.some(o);var i=n(t.childNodes[r]);if(i.isSome())return i}return R.none()};return n(t.dom)},Bs=function(t,e,n){return Hs(t,e,n).isSome()},Rs=function(t,e,n){return As(t,(function(t){return on(t,e)}),n)},Ps=function(t,e){return Ds(t,(function(t){return on(t,e)}))},Ls=function(t,e){return cn(e,t)},Is=function(t,e,n){var r=function(t,e){return on(t,e)};return Ts(r,Rs,t,e,n)},Fs=function(t){var e=Hs(t,(function(t){if(!le(t))return!1;var e=jn(t,"id");return void 0!==e&&e.indexOf("aria-owns")>-1}));return e.bind((function(t){var e=jn(t,"id"),n=Tn(t);return Ls(n,'[aria-owns="'+e+'"]')}))},Ns=function(){var t=oc("aria-owns"),e=function(e){Fn(e,"aria-owns",t)},n=function(t){Gn(t,"aria-owns")};return{id:t,link:e,unlink:n}},js=function(t,e){return Fs(e).exists((function(e){return Us(t,e)}))},Us=function(t,e){return Bs(e,(function(e){return sn(e,t.element)}),O)||js(t,e)},Ws="unknown";(function(t){t[t["STOP"]=0]="STOP",t[t["NORMAL"]=1]="NORMAL",t[t["LOGGING"]=2]="LOGGING"})(Es||(Es={}));var Gs=oa({}),qs=function(t,e){var n=[],r=(new Date).getTime();return{logEventCut:function(t,e,r){n.push({outcome:"cut",target:e,purpose:r})},logEventStopped:function(t,e,r){n.push({outcome:"stopped",target:e,purpose:r})},logNoParent:function(t,e,r){n.push({outcome:"no-parent",target:e,purpose:r})},logEventNoHandlers:function(t,e){n.push({outcome:"no-handlers-left",target:e})},logEventResponse:function(t,e,r){n.push({outcome:"response",purpose:r,target:e})},write:function(){var o=(new Date).getTime();j(["mousemove","mouseover","mouseout",uu()],t)||console.log(t,{event:t,time:o-r,target:e.dom,sequence:q(n,(function(t){return j(["cut","stopped","response"],t.outcome)?"{"+t.purpose+"} "+t.outcome+" at ("+Qu(t.target)+")":t.outcome}))})}}},$s=function(t,e,n){var r=Ot(Gs.get(),t).orThunk((function(){var e=gt(Gs.get());return ht(e,(function(e){return t.indexOf(e)>-1?R.some(Gs.get()[e]):R.none()}))})).getOr(Es.NORMAL);switch(r){case Es.NORMAL:return n(Zs());case Es.LOGGING:var o=qs(t,e),i=n(o);return o.write(),i;case Es.STOP:return!0}},Xs=["alloy/data/Fields","alloy/debugging/Debugging"],Ks=function(){var t=new Error;if(void 0!==t.stack){var e=t.stack.split("\n");return tt(e,(function(t){return t.indexOf("alloy")>0&&!U(Xs,(function(e){return t.indexOf(e)>-1}))})).getOr(Ws)}return Ws},Ys={logEventCut:p,logEventStopped:p,logNoParent:p,logEventNoHandlers:p,logEventResponse:p,write:p},Js=function(t,e,n){return $s(t,e,n)},Zs=x(Ys),Qs=x([Ti("menu"),Ti("selectedMenu")]),tl=x([Ti("item"),Ti("selectedItem")]);x(ti(tl().concat(Qs())));var el=x(ti(tl())),nl=Pi("initSize",[Ti("numColumns"),Ti("numRows")]),rl=function(){return Ei("markers",el())},ol=function(){return Pi("markers",[Ti("backgroundMenu")].concat(Qs()).concat(tl()))},il=function(t){return Pi("markers",q(t,Ti))},al=function(t,e,n){return Ks(),Oi(e,e,n,vi((function(t){return ro.value((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.apply(void 0,e)}))})))},ul=function(t){return al("onHandler",t,Oo(p))},cl=function(t){return al("onKeyboardHandler",t,Oo(R.none))},sl=function(t){return al("onHandler",t,ko())},ll=function(t){return al("onKeyboardHandler",t,ko())},fl=function(t,e){return Mi(t,x(e))},dl=function(t){return Mi(t,w)},ml=x(nl),hl=function(t,e,n,r,o,i,a,u){return void 0===u&&(u=!1),{x:t,y:e,bubble:n,direction:r,placement:o,restriction:i,label:a+"-"+o,alwaysFit:u}},gl=aa.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),pl=function(t,e,n,r,o,i,a,u,c){return t.fold(e,n,r,o,i,a,u,c)},vl=function(t,e,n,r){return t.fold(e,e,r,r,e,r,n,n)},bl=function(t,e,n,r){return t.fold(e,r,e,r,n,n,e,r)},yl=gl.southeast,xl=gl.southwest,wl=gl.northeast,Cl=gl.northwest,Sl=gl.south,kl=gl.north,zl=gl.east,Ol=gl.west,Ml=function(t,e,n,r){var o=t+e;return o>r?n:o<n?r:o},_l=function(t,e,n){return Math.min(Math.max(t,e),n)},Tl=function(t,e){switch(e){case 1:return t.x;case 0:return t.x+t.width;case 2:return t.y;case 3:return t.y+t.height}},El=function(t,e){return ut(["left","right","top","bottom"],(function(n){return Ot(e,n).map((function(e){return Tl(t,e)}))}))},Al=function(t,e,n){var r=function(r,o){return e[r].map((function(e){var i="top"===r||"bottom"===r,a=i?n.top:n.left,u="left"===r||"top"===r?Math.max:Math.min,c=u(e,o)+a;return i?_l(c,t.y,t.bottom):_l(c,t.x,t.right)})).getOr(o)},o=r("left",t.x),i=r("top",t.y),a=r("right",t.right),u=r("bottom",t.bottom);return Yr(o,i,a-o,u-i)},Hl="layout",Dl=function(t){return t.x},Vl=function(t,e){return t.x+t.width/2-e.width/2},Bl=function(t,e){return t.x+t.width-e.width},Rl=function(t,e){return t.y-e.height},Pl=function(t){return t.y+t.height},Ll=function(t,e){return t.y+t.height/2-e.height/2},Il=function(t){return t.x+t.width},Fl=function(t,e){return t.x-e.width},Nl=function(t,e,n){return hl(Dl(t),Pl(t),n.southeast(),yl(),"southeast",El(t,{left:1,top:3}),Hl)},jl=function(t,e,n){return hl(Bl(t,e),Pl(t),n.southwest(),xl(),"southwest",El(t,{right:0,top:3}),Hl)},Ul=function(t,e,n){return hl(Dl(t),Rl(t,e),n.northeast(),wl(),"northeast",El(t,{left:1,bottom:2}),Hl)},Wl=function(t,e,n){return hl(Bl(t,e),Rl(t,e),n.northwest(),Cl(),"northwest",El(t,{right:0,bottom:2}),Hl)},Gl=function(t,e,n){return hl(Vl(t,e),Rl(t,e),n.north(),kl(),"north",El(t,{bottom:2}),Hl)},ql=function(t,e,n){return hl(Vl(t,e),Pl(t),n.south(),Sl(),"south",El(t,{top:3}),Hl)},$l=function(t,e,n){return hl(Il(t),Ll(t,e),n.east(),zl(),"east",El(t,{left:0}),Hl)},Xl=function(t,e,n){return hl(Fl(t,e),Ll(t,e),n.west(),Ol(),"west",El(t,{right:1}),Hl)},Kl=function(){return[Nl,jl,Ul,Wl,ql,Gl,$l,Xl]},Yl=function(){return[jl,Nl,Wl,Ul,ql,Gl,$l,Xl]},Jl=function(){return[Ul,Wl,Nl,jl,Gl,ql]},Zl=function(){return[Wl,Ul,jl,Nl,Gl,ql]},Ql=function(){return[Nl,jl,Ul,Wl,ql,Gl]},tf=function(){return[jl,Nl,Wl,Ul,ql,Gl]},ef=function(t,e){return e.universal?t:Y(t,(function(t){return j(e.channels,t)}))},nf=function(t){return _u([Hu(tu(),(function(e,n){var r=t.channels,o=gt(r),i=n,a=ef(o,i);$(a,(function(t){var n=r[t],o=n.schema,a=Ci("channel["+t+"] data\nReceiver: "+Qu(e.element),o,i.data);n.onReceive(e,a)}))}))])},rf=Object.freeze({__proto__:null,events:nf}),of=[Ei("channels",bi(ro.value,Qo([sl("onReceive"),Xi("schema",ai())])))],af=function(t,e,n){return Gu((function(r){n(r,t,e)}))},uf=function(t,e,n){return Wu((function(r,o){n(r,t,e)}))},cf=function(t,e,n,r,o,i){var a=Qo(t),u=qi(e,[$i("config",t)]);return df(a,u,e,n,r,o,i)},sf=function(t,e,n,r,o,i){var a=t,u=qi(e,[Ni("config",t)]);return df(a,u,e,n,r,o,i)},lf=function(t,e,n){var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var a=[r].concat(o);return r.config({name:x(t)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+t+". Using API: "+n)}),(function(t){var n=Array.prototype.slice.call(a,1);return e.apply(void 0,[r,t.config,t.state].concat(n))}))};return pc(r,n,e)},ff=function(t){return{key:t,value:void 0}},df=function(t,e,n,r,o,i,a){var u=function(t){return _t(t,n)?t[n]():R.none()},c=bt(o,(function(t,e){return lf(n,t,e)})),s=bt(i,(function(t,e){return bc(t,e)})),l=T(T(T({},s),c),{revoke:S(ff,n),config:function(e){var r=Ci(n+"-config",t,e);return{key:n,value:{config:r,me:l,configAsRaw:he((function(){return Ci(n+"-config",t,e)})),initialConfig:e,state:a}}},schema:x(e),exhibit:function(t,e){return Dt(u(t),Ot(r,"exhibit"),(function(t,n){return n(e,t.config,t.state)})).getOrThunk((function(){return Ec({})}))},name:x(n),handlers:function(t){return u(t).map((function(t){var e=Ot(r,"events").getOr((function(){return{}}));return e(t.config,t.state)})).getOr({})}});return l},mf=function(t){return ha(t)},hf=Qo([Ti("fields"),Ti("name"),Xi("active",{}),Xi("apis",{}),Xi("state",kc),Xi("extra",{})]),gf=function(t){var e=Ci("Creating behaviour: "+t.name,hf,t);return cf(e.fields,e.name,e.active,e.apis,e.extra,e.state)},pf=Qo([Ti("branchKey"),Ti("branches"),Ti("name"),Xi("active",{}),Xi("apis",{}),Xi("state",kc),Xi("extra",{})]),vf=function(t){var e=Ci("Creating behaviour: "+t.name,pf,t);return sf(ki(e.branchKey,e.branches),e.name,e.active,e.apis,e.extra,e.state)},bf=x(void 0),yf=gf({fields:of,name:"receiving",active:rf}),xf=function(t,e){return Ec({classes:[],styles:e.useFixed()?{}:{position:"relative"}})},wf=Object.freeze({__proto__:null,exhibit:xf}),Cf=function(){return ee.fromDom(document)},Sf=function(t){return t.dom.focus()},kf=function(t){return t.dom.blur()},zf=function(t){var e=Tn(t).dom;return t.dom===e.activeElement},Of=function(t){return void 0===t&&(t=Cf()),R.from(t.dom.activeElement).map(ee.fromDom)},Mf=function(t){return Of(Tn(t)).filter((function(e){return t.dom.contains(e.dom)}))},_f=function(t,e){var n=Tn(e),r=Of(n).bind((function(t){var n=function(e){return sn(t,e)};return n(e)?R.some(e):Vs(e,n)})),o=t(e);return r.each((function(t){Of(n).filter((function(e){return sn(e,t)})).fold((function(){Sf(t)}),p)})),o},Tf=function(t,e,n,r,o){var i=function(t){return t+"px"};return{position:t,left:e.map(i),top:n.map(i),right:r.map(i),bottom:o.map(i)}},Ef=function(t){return T(T({},t),{position:R.some(t.position)})},Af=function(t,e){Yn(t,Ef(e))},Hf=aa.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Df=function(t,e,n,r,o,i){var a=e.rect,u=a.x-n,c=a.y-r,s=a.width,l=a.height,f=o-(u+s),d=i-(c+l),m=R.some(u),h=R.some(c),g=R.some(f),p=R.some(d),v=R.none();return pl(e.direction,(function(){return Tf(t,m,h,v,v)}),(function(){return Tf(t,v,h,g,v)}),(function(){return Tf(t,m,v,v,p)}),(function(){return Tf(t,v,v,g,p)}),(function(){return Tf(t,m,h,v,v)}),(function(){return Tf(t,m,v,v,p)}),(function(){return Tf(t,m,h,v,v)}),(function(){return Tf(t,v,h,g,v)}))},Vf=function(t,e){return t.fold((function(){var t=e.rect;return Tf("absolute",R.some(t.x),R.some(t.y),R.none(),R.none())}),(function(t,n,r,o){return Df("absolute",e,t,n,r,o)}),(function(t,n,r,o){return Df("fixed",e,t,n,r,o)}))},Bf=function(t,e){var n=S($r,e),r=t.fold(n,n,(function(){var t=Pr();return $r(e).translate(-t.left,-t.top)})),o=br(e),i=ur(e);return Yr(r.left,r.top,o,i)},Rf=function(t,e){return e.fold((function(){return t.fold(Qr,Qr,Yr)}),(function(e){return t.fold(e,e,(function(){var n=e(),r=Pf(t,n.x,n.y);return Yr(r.left,r.top,n.width,n.height)}))}))},Pf=function(t,e,n){var r=lr(e,n),o=function(){var t=Pr();return r.translate(-t.left,-t.top)};return t.fold(x(r),x(r),o)},Lf=function(t,e,n,r){return t.fold(e,n,r)};Hf.none;var If,Ff=Hf.relative,Nf=Hf.fixed,jf=function(t,e){return{anchorBox:t,origin:e}},Uf=function(t,e){return jf(t,e)},Wf="data-alloy-placement",Gf=function(t,e){Fn(t,Wf,e)},qf=function(t){return Un(t,Wf)},$f=function(t){return Gn(t,Wf)},Xf=aa.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Kf=function(t,e){var n=e.x,r=e.y,o=e.right,i=e.bottom,a=t.x,u=t.y,c=t.right,s=t.bottom,l=t.width,f=t.height,d=a>=n&&a<=o,m=u>=r&&u<=i,h=d&&m,g=c<=o&&c>=n,p=s<=i&&s>=r,v=g&&p,b=Math.min(l,a>=n?o-a:c-n),y=Math.min(f,u>=r?i-u:s-r);return{originInBounds:h,sizeInBounds:v,visibleW:b,visibleH:y}},Yf=function(t,e){var n=e.x,r=e.y,o=e.right,i=e.bottom,a=t.x,u=t.y,c=t.width,s=t.height,l=Math.max(n,o-c),f=Math.max(r,i-s),d=_l(a,n,l),m=_l(u,r,f),h=Math.min(d+c,o)-d,g=Math.min(m+s,i)-m;return Yr(d,m,h,g)},Jf=function(t,e,n){var r=x(e.bottom-n.y),o=x(n.bottom-e.y),i=vl(t,o,o,r),a=x(e.right-n.x),u=x(n.right-e.x),c=bl(t,u,u,a);return{maxWidth:c,maxHeight:i}},Zf=function(t,e,n,r){var o=t.bubble,i=o.offset,a=Al(r,t.restriction,i),u=t.x+i.left,c=t.y+i.top,s=Yr(u,c,e,n),l=Kf(s,a),f=l.originInBounds,d=l.sizeInBounds,m=l.visibleW,h=l.visibleH,g=f&&d,p=g?s:Yf(s,a),v=p.width>0&&p.height>0,b=Jf(t.direction,p,r),y=b.maxWidth,x=b.maxHeight,w={rect:p,maxHeight:x,maxWidth:y,direction:t.direction,placement:t.placement,classes:{on:o.classesOn,off:o.classesOff},layout:t.label,testY:c};return g||t.alwaysFit?Xf.fit(w):Xf.nofit(w,m,h,v)},Qf=function(t,e,n,r,o,i){var a=r.width,u=r.height,c=function(e,c,s,l,f){var d=e(n,r,o,t,i),m=Zf(d,a,u,i);return m.fold(x(m),(function(t,e,n,r){var o=f===r?n>l||e>s:!f&&r;return o?m:Xf.nofit(c,s,l,f)}))},s=Z(e,(function(t,e){var n=S(c,e);return t.fold(x(t),n)}),Xf.nofit({rect:n,maxHeight:r.height,maxWidth:r.width,direction:yl(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1));return s.fold(w,w)},td=function(t){var e=oa(R.none()),n=function(){return e.get().each(t)},r=function(){n(),e.set(R.none())},o=function(){return e.get().isSome()},i=function(){return e.get()},a=function(t){n(),e.set(R.some(t))};return{clear:r,isSet:o,get:i,set:a}},ed=function(){return td((function(t){return t.destroy()}))},nd=function(){return td((function(t){return t.unbind()}))},rd=function(){var t=ed(),e=function(e){return t.get().each(e)};return T(T({},t),{run:e})},od=function(){var t=td(p),e=function(e){return t.get().each(e)};return T(T({},t),{on:e})},id=M,ad=function(t,e,n){return kr(t,e,id,n)},ud=function(t,e,n){return zr(t,e,id,n)},cd=wr,sd=["top","bottom","right","left"],ld="data-alloy-transition-timer",fd=function(t,e){return fs(t,e.classes)},dd=function(t,e,n){return n.exists((function(n){var r=t.mode;return"all"===r||n[r]!==e[r]}))},md=function(t,e){var n=function(t){return parseFloat(t).toFixed(3)};return kt(e,(function(e,r){var o=t[r].map(n),i=e.map(n);return!Et(o,i)})).isSome()},hd=function(t){var e=function(e){var n=Jn(t,e),r=i(n)?n.split(/\s*,\s*/):[];return Y(r,$t)},n=function(t){if(i(t)&&/^[\d.]+/.test(t)){var e=parseFloat(t);return Wt(t,"ms")?e:1e3*e}return 0},r=e("transition-delay"),o=e("transition-duration");return Z(o,(function(t,e,o){var i=n(r[o])+n(e);return Math.max(t,i)}),0)},gd=function(t,e){var n,r=nd(),o=nd(),i=function(e){var n,r=null!==(n=e.raw.pseudoElement)&&void 0!==n?n:"";return sn(e.target,t)&&Xt(r)&&j(sd,e.raw.propertyName)},a=function(a){if(f(a)||i(a)){r.clear(),o.clear();var u=null===a||void 0===a?void 0:a.raw.type;(f(u)||u===qa())&&(clearTimeout(n),Gn(t,ld),ls(t,e.classes))}},u=function(){r.set(ad(t,qa(),a)),o.set(ad(t,Ga(),a))};if("ontransitionstart"in t.dom)var c=ad(t,$a(),(function(t){i(t)&&(c.unbind(),u())}));else u();var s=hd(t);requestAnimationFrame((function(){n=setTimeout(a,s+17),Fn(t,ld,n)}))},pd=function(t,e){ss(t,e.classes),Un(t,ld).each((function(e){clearTimeout(parseInt(e,10)),Gn(t,ld)})),gd(t,e)},vd=function(t,e,n,r,o,i){var a=dd(r,o,i);if(a||fd(t,r)){Xn(t,"position",n.position);var u=Bf(e,t),c=Vf(e,T(T({},o),{rect:u})),s=ut(sd,(function(t){return c[t]}));md(n,s)&&(Yn(t,s),a&&pd(t,r),rr(t))}else ls(t,r.classes)},bd=function(t){return{width:br(t),height:ur(t)}},yd=function(t,e,n,r){nr(e,"max-height"),nr(e,"max-width");var o=bd(e);return Qf(e,r.preference,t,o,n,r.bounds)},xd=function(t,e){var n=e.classes;ls(t,n.off),ss(t,n.on)},wd=function(t,e,n){var r=n.maxHeightFunction;r(t,e.maxHeight)},Cd=function(t,e,n){var r=n.maxWidthFunction;r(t,e.maxWidth)},Sd=function(t,e,n){var r=Vf(n.origin,e);n.transition.each((function(o){vd(t,n.origin,r,o,e,n.lastPlacement)})),Af(t,r)},kd=function(t,e){Gf(t,e.placement)},zd=function(t,e){cr(t,Math.floor(e))},Od=x((function(t,e){zd(t,e),Kn(t,{"overflow-x":"hidden","overflow-y":"auto"})})),Md=x((function(t,e){zd(t,e)})),_d=function(t,e,n){return void 0===t[e]?n:t[e]},Td=function(t,e,n,r,o,i,a,u){var c=_d(a,"maxHeightFunction",Od()),s=_d(a,"maxWidthFunction",p),l=t.anchorBox,f=t.origin,d={bounds:Rf(f,i),origin:f,preference:r,maxHeightFunction:c,maxWidthFunction:s,lastPlacement:o,transition:u};return Ed(l,e,n,d)},Ed=function(t,e,n,r){var o=yd(t,e,n,r);return Sd(e,o,r),kd(e,o),xd(e,o),wd(e,o,r),Cd(e,o,r),{layout:o.layout,placement:o.placement}},Ad=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Hd=function(t,e,n,r){void 0===r&&(r=1);var o=t*r,i=e*r,a=function(t){return Ot(n,t).getOr([])},u=function(t,e,n){var r=at(Ad,n);return{offset:lr(t,e),classesOn:rt(n,a),classesOff:rt(r,a)}};return{southeast:function(){return u(-t,e,["top","alignLeft"])},southwest:function(){return u(t,e,["top","alignRight"])},south:function(){return u(-t/2,e,["top","alignCentre"])},northeast:function(){return u(-t,-e,["bottom","alignLeft"])},northwest:function(){return u(t,-e,["bottom","alignRight"])},north:function(){return u(-t/2,-e,["bottom","alignCentre"])},east:function(){return u(t,-e/2,["valignCentre","left"])},west:function(){return u(-t,-e/2,["valignCentre","right"])},insetNortheast:function(){return u(o,i,["top","alignLeft","inset"])},insetNorthwest:function(){return u(-o,i,["top","alignRight","inset"])},insetNorth:function(){return u(-o/2,i,["top","alignCentre","inset"])},insetSoutheast:function(){return u(o,-i,["bottom","alignLeft","inset"])},insetSouthwest:function(){return u(-o,-i,["bottom","alignRight","inset"])},insetSouth:function(){return u(-o/2,-i,["bottom","alignCentre","inset"])},insetEast:function(){return u(-o,-i/2,["valignCentre","right","inset"])},insetWest:function(){return u(o,-i/2,["valignCentre","left","inset"])}}},Dd=function(){return Hd(0,0,{})},Vd=w,Bd=function(t,e){return function(n){return"rtl"===Rd(n)?e:t}},Rd=function(t){return"rtl"===Jn(t,"direction")?"rtl":"ltr"};(function(t){t["TopToBottom"]="toptobottom",t["BottomToTop"]="bottomtotop"})(If||(If={}));var Pd="data-alloy-vertical-dir",Ld=function(t){return Bs(t,(function(t){return le(t)&&jn(t,"data-alloy-vertical-dir")===If.BottomToTop}))},Id=function(){return qi("layouts",[Ti("onLtr"),Ti("onRtl"),Fi("onBottomLtr"),Fi("onBottomRtl")])},Fd=function(t,e,n,r,o,i,a){var u=a.map(Ld).getOr(!1),c=e.layouts.map((function(e){return e.onLtr(t)})),s=e.layouts.map((function(e){return e.onRtl(t)})),l=u?e.layouts.bind((function(e){return e.onBottomLtr.map((function(e){return e(t)}))})).or(c).getOr(o):c.getOr(n),f=u?e.layouts.bind((function(e){return e.onBottomRtl.map((function(e){return e(t)}))})).or(s).getOr(i):s.getOr(r),d=Bd(l,f);return d(t)},Nd=function(t,e,n){var r=e.hotspot,o=Bf(n,r.element),i=Fd(t.element,e,Ql(),tf(),Jl(),Zl(),R.some(e.hotspot.element));return R.some(Vd({anchorBox:o,bubble:e.bubble.getOr(Dd()),overrides:e.overrides,layouts:i,placer:R.none()}))},jd=[Ti("hotspot"),Fi("bubble"),Xi("overrides",{}),Id(),fl("placement",Nd)],Ud=function(t,e,n){var r=Pf(n,e.x,e.y),o=Yr(r.left,r.top,e.width,e.height),i=Fd(t.element,e,Kl(),Yl(),Kl(),Yl(),R.none());return R.some(Vd({anchorBox:o,bubble:e.bubble,overrides:e.overrides,layouts:i,placer:R.none()}))},Wd=[Ti("x"),Ti("y"),Xi("height",0),Xi("width",0),Xi("bubble",Dd()),Xi("overrides",{}),Id(),fl("placement",Ud)],Gd=aa.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),qd=function(t){return t.fold(w,(function(t,e,n){return t.translate(-e,-n)}))},$d=function(t){return t.fold(w,w)},Xd=function(t){return Z(t,(function(t,e){return t.translate(e.left,e.top)}),lr(0,0))},Kd=function(t){var e=q(t,qd);return Xd(e)},Yd=function(t){var e=q(t,$d);return Xd(e)},Jd=Gd.screen,Zd=Gd.absolute,Qd=function(t,e,n){var r=pn(n.root).dom,o=function(e){var n=mn(e),r=mn(t.element);return sn(n,r)};return R.from(r.frameElement).map(ee.fromDom).filter(o).map(mr)},tm=function(t,e,n){var r=mn(t.element),o=Pr(r),i=Qd(t,e,n).getOr(o);return Zd(i,o.left,o.top)},em=function(t,e,n,r){var o=Jd(lr(t,e));return R.some(Xr(o,n,r))},nm=function(t,e,n,r,o){return t.map((function(t){var i=[e,t.point],a=Lf(r,(function(){return Yd(i)}),(function(){return Yd(i)}),(function(){return Kd(i)})),u=Kr(a.left,a.top,t.width,t.height),c=n.showAbove?Jl():Ql(),s=n.showAbove?Zl():tf(),l=Fd(o,n,c,s,c,s,R.none());return Vd({anchorBox:u,bubble:n.bubble.getOr(Dd()),overrides:n.overrides,layouts:l,placer:R.none()})}))},rm=function(t,e,n){var r=tm(t,n,e);return e.node.filter(Rn).bind((function(o){var i=o.dom.getBoundingClientRect(),a=em(i.left,i.top,i.width,i.height),u=e.node.getOr(t.element);return nm(a,r,e,n,u)}))},om=[Ti("node"),Ti("root"),Fi("bubble"),Id(),Xi("overrides",{}),Xi("showAbove",!1),fl("placement",rm)],im="\ufeff",am=" ",um=function(t,e,n,r){return{start:t,soffset:e,finish:n,foffset:r}},cm={create:um},sm=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),lm=function(t,e,n,r){return t.fold(e,n,r)},fm=function(t){return t.fold(w,w,w)},dm=sm.before,mm=sm.on,hm=sm.after,gm={before:dm,on:mm,after:hm,cata:lm,getStart:fm},pm=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vm=function(t){return pm.exact(t.start,t.soffset,t.finish,t.foffset)},bm=function(t){return t.match({domRange:function(t){return ee.fromDom(t.startContainer)},relative:function(t,e){return gm.getStart(t)},exact:function(t,e,n,r){return t}})},ym=pm.domRange,xm=pm.relative,wm=pm.exact,Cm=function(t){var e=bm(t);return pn(e)},Sm=cm.create,km={domRange:ym,relative:xm,exact:wm,exactFromRange:vm,getWin:Cm,range:Sm},zm=function(t,e){e.fold((function(e){t.setStartBefore(e.dom)}),(function(e,n){t.setStart(e.dom,n)}),(function(e){t.setStartAfter(e.dom)}))},Om=function(t,e){e.fold((function(e){t.setEndBefore(e.dom)}),(function(e,n){t.setEnd(e.dom,n)}),(function(e){t.setEndAfter(e.dom)}))},Mm=function(t,e,n){var r=t.document.createRange();return zm(r,e),Om(r,n),r},_m=function(t,e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},Tm=function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}},Em=function(t){var e=t.getClientRects(),n=e.length>0?e[0]:t.getBoundingClientRect();return n.width>0||n.height>0?R.some(n).map(Tm):R.none()},Am=function(t){var e=t.getBoundingClientRect();return e.width>0||e.height>0?R.some(e).map(Tm):R.none()},Hm=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Dm=function(t,e,n){return e(ee.fromDom(n.startContainer),n.startOffset,ee.fromDom(n.endContainer),n.endOffset)},Vm=function(t,e){return e.match({domRange:function(t){return{ltr:x(t),rtl:R.none}},relative:function(e,n){return{ltr:he((function(){return Mm(t,e,n)})),rtl:he((function(){return R.some(Mm(t,n,e))}))}},exact:function(e,n,r,o){return{ltr:he((function(){return _m(t,e,n,r,o)})),rtl:he((function(){return R.some(_m(t,r,o,e,n))}))}}})},Bm=function(t,e){var n=e.ltr();if(n.collapsed){var r=e.rtl().filter((function(t){return!1===t.collapsed}));return r.map((function(t){return Hm.rtl(ee.fromDom(t.endContainer),t.endOffset,ee.fromDom(t.startContainer),t.startOffset)})).getOrThunk((function(){return Dm(t,Hm.ltr,n)}))}return Dm(t,Hm.ltr,n)},Rm=function(t,e){var n=Vm(t,e);return Bm(t,n)},Pm=function(t,e){var n=Rm(t,e);return n.match({ltr:function(e,n,r,o){var i=t.document.createRange();return i.setStart(e.dom,n),i.setEnd(r.dom,o),i},rtl:function(e,n,r,o){var i=t.document.createRange();return i.setStart(r.dom,o),i.setEnd(e.dom,n),i}})};Hm.ltr,Hm.rtl;var Lm,Im=function(t,e){var n=function(n){if(!t(n))throw new Error("Can only get "+e+" value of a "+e+" node");return r(n).getOr("")},r=function(e){return t(e)?R.from(e.dom.nodeValue):R.none()},o=function(n,r){if(!t(n))throw new Error("Can only set raw "+e+" value of a "+e+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:o}},Fm=Im(fe,"text"),Nm=function(t){return Fm.get(t)},jm=function(t){return Fm.getOption(t)},Um=function(t){return"img"===ue(t)?1:jm(t).fold((function(){return wn(t).length}),(function(t){return t.length}))},Wm=function(t){return jm(t).filter((function(t){return 0!==t.trim().length||t.indexOf(am)>-1})).isSome()},Gm=["img","br"],qm=function(t){var e=Wm(t);return e||j(Gm,ue(t))},$m=function(t){return Xm(t,qm)},Xm=function(t,e){var n=function(t){for(var r=wn(t),o=r.length-1;o>=0;o--){var i=r[o];if(e(i))return R.some(i);var a=n(i);if(a.isSome())return a}return R.none()};return n(t)},Km=function(t,e){return un(e,t)},Ym=function(t,e,n,r){var o=mn(t),i=o.dom.createRange();return i.setStart(t.dom,e),i.setEnd(n.dom,r),i},Jm=function(t,e,n,r){var o=Ym(t,e,n,r),i=sn(t,n)&&e===r;return o.collapsed&&!i},Zm=function(t){return R.from(t.getSelection())},Qm=function(t){if(t.rangeCount>0){var e=t.getRangeAt(0),n=t.getRangeAt(t.rangeCount-1);return R.some(cm.create(ee.fromDom(e.startContainer),e.startOffset,ee.fromDom(n.endContainer),n.endOffset))}return R.none()},th=function(t){if(null===t.anchorNode||null===t.focusNode)return Qm(t);var e=ee.fromDom(t.anchorNode),n=ee.fromDom(t.focusNode);return Jm(e,t.anchorOffset,n,t.focusOffset)?R.some(cm.create(e,t.anchorOffset,n,t.focusOffset)):Qm(t)},eh=function(t){return Zm(t).filter((function(t){return t.rangeCount>0})).bind(th)},nh=function(t,e){var n=Pm(t,e);return Em(n)},rh=function(t,e){var n=Pm(t,e);return Am(n)},oh=function(t,e){return{element:t,offset:e}},ih=function(t,e){var n=wn(t);if(0===n.length)return oh(t,e);if(e<n.length)return oh(n[e],0);var r=n[n.length-1],o=fe(r)?Nm(r).length:wn(r).length;return oh(r,o)},ah=function(t,e){return fe(t)?oh(t,e):ih(t,e)},uh=function(t,e){var n=e.getSelection.getOrThunk((function(){return function(){return eh(t)}}));return n().map((function(t){var e=ah(t.start,t.soffset),n=ah(t.finish,t.foffset);return km.range(e.element,e.offset,n.element,n.offset)}))},ch=function(t,e,n){var r=pn(e.root).dom,o=tm(t,n,e),i=uh(r,e).bind((function(t){var e=rh(r,km.exactFromRange(t)).orThunk((function(){var e=ee.fromText(im);Mr(t.start,e);var n=nh(r,km.exact(e,0,e,1));return Br(e),n}));return e.bind((function(t){return em(t.left,t.top,t.width,t.height)}))})),a=uh(r,e).bind((function(t){return le(t.start)?R.some(t.start):bn(t.start)})),u=a.getOr(t.element);return nm(i,o,e,n,u)},sh=[Fi("getSelection"),Ti("root"),Fi("bubble"),Id(),Xi("overrides",{}),Xi("showAbove",!1),fl("placement",ch)],lh="link-layout",fh=function(t){return t.x+t.width},dh=function(t,e){return t.x-e.width},mh=function(t,e){return t.y-e.height+t.height},hh=function(t){return t.y},gh=function(t,e,n){return hl(fh(t),hh(t),n.southeast(),yl(),"southeast",El(t,{left:0,top:2}),lh)},ph=function(t,e,n){return hl(dh(t,e),hh(t),n.southwest(),xl(),"southwest",El(t,{right:1,top:2}),lh)},vh=function(t,e,n){return hl(fh(t),mh(t,e),n.northeast(),wl(),"northeast",El(t,{left:0,bottom:3}),lh)},bh=function(t,e,n){return hl(dh(t,e),mh(t,e),n.northwest(),Cl(),"northwest",El(t,{right:1,bottom:3}),lh)},yh=function(){return[gh,ph,vh,bh]},xh=function(){return[ph,gh,bh,vh]},wh=function(t,e,n){var r=Bf(n,e.item.element),o=Fd(t.element,e,yh(),xh(),yh(),xh(),R.none());return R.some(Vd({anchorBox:r,bubble:Dd(),overrides:e.overrides,layouts:o,placer:R.none()}))},Ch=[Ti("item"),Id(),Xi("overrides",{}),fl("placement",wh)],Sh=ki("type",{selection:sh,node:om,hotspot:jd,submenu:Ch,makeshift:Wd}),kh=[Ii("classes",si),Zi("mode","all",["all","layout","placement"])],zh=[Xi("useFixed",O),Fi("getBounds")],Oh=[Ei("anchor",Sh),qi("transition",kh)],Mh=function(){var t=document.documentElement;return Nf(0,0,t.clientWidth,t.clientHeight)},_h=function(t){var e=mr(t.element),n=t.element.dom.getBoundingClientRect();return Ff(e.left,e.top,n.width,n.height)},Th=function(t,e,n,r,o,i,a){var u=Uf(n.anchorBox,e);return Td(u,o.element,n.bubble,n.layouts,i,r,n.overrides,a)},Eh=function(t,e,n,r,o){Ah(t,e,n,r,o,R.none())},Ah=function(t,e,n,r,o,i){var a=i.map(Jr);return Hh(t,e,n,r,o,a)},Hh=function(t,e,n,r,o,i){var a=Ci("placement.info",ti(Oh),o),u=a.anchor,c=r.element,s=n.get(r.uid);_f((function(){Xn(c,"position","fixed");var o=Qn(c,"visibility");Xn(c,"visibility","hidden");var l=e.useFixed()?Mh():_h(t),f=u.placement,d=i.map(x).or(e.getBounds);f(t,u,l).each((function(e){var o=e.placer.getOr(Th),i=o(t,l,e,d,r,s,a.transition);n.set(r.uid,i)})),o.fold((function(){nr(c,"visibility")}),(function(t){Xn(c,"visibility",t)})),Qn(c,"left").isNone()&&Qn(c,"top").isNone()&&Qn(c,"right").isNone()&&Qn(c,"bottom").isNone()&&Tt(Qn(c,"position"),"fixed")&&nr(c,"position")}),c)},Dh=function(t,e,n){return e.useFixed()?"fixed":"absolute"},Vh=function(t,e,n,r){var o=r.element;$(["position","left","right","top","bottom"],(function(t){return nr(o,t)})),$f(o),n.clear(r.uid)},Bh=Object.freeze({__proto__:null,position:Eh,positionWithin:Ah,positionWithinBounds:Hh,getMode:Dh,reset:Vh}),Rh=function(){var t={},e=function(e,n){t[e]=n},n=function(e){return Ot(t,e)},r=function(e){d(e)?delete t[e]:t={}};return zc({readState:function(){return t},clear:r,set:e,get:n})},Ph=Object.freeze({__proto__:null,init:Rh}),Lh=gf({fields:zh,name:"positioning",active:wf,apis:Bh,state:Ph}),Ih=function(t){Cu(t,mu());var e=t.components();$(e,Ih)},Fh=function(t){var e=t.components();$(e,Fh),Cu(t,du())},Nh=function(t,e){Er(t.element,e.element)},jh=function(t){$(t.components(),(function(t){return Br(t.element)})),Vr(t.element),t.syncComponents()},Uh=function(t,e){var n=t.components();jh(t);var r=at(n,e);$(r,(function(e){Ih(e),t.getSystem().removeFromWorld(e)})),$(e,(function(e){e.getSystem().isConnected()?Nh(t,e):(t.getSystem().addToWorld(e),Nh(t,e),Rn(t.element)&&Fh(e)),t.syncComponents()}))},Wh=function(t,e){Gh(t,e,Er)},Gh=function(t,e,n){t.getSystem().addToWorld(e),n(t.element,e.element),Rn(t.element)&&Fh(e),t.syncComponents()},qh=function(t){Ih(t),Br(t.element),t.getSystem().removeFromWorld(t)},$h=function(t){var e=vn(t.element).bind((function(e){return t.getSystem().getByDom(e).toOptional()}));qh(t),e.each((function(t){t.syncComponents()}))},Xh=function(t){var e=t.components();$(e,qh),Vr(t.element),t.syncComponents()},Kh=function(t,e){Jh(t,e,Er)},Yh=function(t,e){Jh(t,e,_r)},Jh=function(t,e,n){n(t,e.element);var r=wn(e.element);$(r,(function(t){e.getByDom(t).each(Fh)}))},Zh=function(t){var e=wn(t.element);$(e,(function(e){t.getByDom(e).each(Ih)})),Br(t.element)},Qh=function(t,e,n,r){n.get().each((function(e){Xh(t)}));var o=e.getAttachPoint(t);Wh(o,t);var i=t.getSystem().build(r);return Wh(t,i),n.set(i),i},tg=function(t,e,n,r){var o=Qh(t,e,n,r);return e.onOpen(t,o),o},eg=function(t,e,n,r){return n.get().map((function(){return Qh(t,e,n,r)}))},ng=function(t,e,n,r,o){sg(t,e),tg(t,e,n,r),o(),fg(t,e)},rg=function(t,e,n){n.get().each((function(r){Xh(t),$h(t),e.onClose(t,r),n.clear()}))},og=function(t,e,n){return n.isOpen()},ig=function(t,e,n,r){return og(t,e,n)&&n.get().exists((function(n){return e.isPartOf(t,n,r)}))},ag=function(t,e,n){return n.get()},ug=function(t,e,n,r){Qn(t.element,e).fold((function(){Gn(t.element,n)}),(function(e){Fn(t.element,n,e)})),Xn(t.element,e,r)},cg=function(t,e,n){Un(t.element,n).fold((function(){return nr(t.element,e)}),(function(n){return Xn(t.element,e,n)}))},sg=function(t,e,n){var r=e.getAttachPoint(t);Xn(t.element,"position",Lh.getMode(r)),ug(t,"visibility",e.cloakVisibilityAttr,"hidden")},lg=function(t){return U(["top","left","right","bottom"],(function(e){return Qn(t,e).isSome()}))},fg=function(t,e,n){lg(t.element)||nr(t.element,"position"),cg(t,"visibility",e.cloakVisibilityAttr)},dg=Object.freeze({__proto__:null,cloak:sg,decloak:fg,open:tg,openWhileCloaked:ng,close:rg,isOpen:og,isPartOf:ig,getState:ag,setContent:eg}),mg=function(t,e){return _u([Hu(iu(),(function(n,r){rg(n,t,e)}))])},hg=Object.freeze({__proto__:null,events:mg}),gg=[ul("onOpen"),ul("onClose"),Ti("isPartOf"),Ti("getAttachPoint"),Xi("cloakVisibilityAttr","data-precloak-visibility")],pg=function(){var t=od(),e=x("not-implemented");return zc({readState:e,isOpen:t.isSet,clear:t.clear,set:t.set,get:t.get})},vg=Object.freeze({__proto__:null,init:pg}),bg=gf({fields:gg,name:"sandboxing",active:hg,apis:dg,state:vg}),yg=x("dismiss.popups"),xg=x("reposition.popups"),wg=x("mouse.released"),Cg=Qo([Xi("isExtraPart",O),qi("fireEventInstead",[Xi("event",hu())])]),Sg=function(t){var e,n=Ci("Dismissal",Cg,t);return e={},e[yg()]={schema:Qo([Ti("target")]),onReceive:function(t,e){if(bg.isOpen(t)){var r=bg.isPartOf(t,e.target)||n.isExtraPart(t,e.target);r||n.fireEventInstead.fold((function(){return bg.close(t)}),(function(e){return Cu(t,e.event)}))}}},e},kg=Qo([qi("fireEventInstead",[Xi("event",gu())]),Bi("doReposition")]),zg=function(t){var e,n=Ci("Reposition",kg,t);return e={},e[xg()]={onReceive:function(t){bg.isOpen(t)&&n.fireEventInstead.fold((function(){return n.doReposition(t)}),(function(e){return Cu(t,e.event)}))}},e},Og=function(t,e,n){e.store.manager.onLoad(t,e,n)},Mg=function(t,e,n){e.store.manager.onUnload(t,e,n)},_g=function(t,e,n,r){e.store.manager.setValue(t,e,n,r)},Tg=function(t,e,n){return e.store.manager.getValue(t,e,n)},Eg=function(t,e,n){return n},Ag=Object.freeze({__proto__:null,onLoad:Og,onUnload:Mg,setValue:_g,getValue:Tg,getState:Eg}),Hg=function(t,e){var n=t.resetOnDom?[ju((function(n,r){Og(n,t,e)})),Uu((function(n,r){Mg(n,t,e)}))]:[uf(t,e,Og)];return _u(n)},Dg=Object.freeze({__proto__:null,events:Hg}),Vg=function(){var t=oa(null),e=function(){return{mode:"memory",value:t.get()}},n=function(){return null===t.get()},r=function(){t.set(null)};return zc({set:t.set,get:t.get,isNotSet:n,clear:r,readState:e})},Bg=function(){var t=p;return zc({readState:t})},Rg=function(){var t=oa({}),e=oa({}),n=function(){return{mode:"dataset",dataByValue:t.get(),dataByText:e.get()}},r=function(){t.set({}),e.set({})},o=function(n){return Ot(t.get(),n).orThunk((function(){return Ot(e.get(),n)}))},i=function(n){var r=t.get(),o=e.get(),i={},a={};$(n,(function(t){i[t.value]=t,Ot(t,"meta").each((function(e){Ot(e,"text").each((function(e){a[e]=t}))}))})),t.set(T(T({},r),i)),e.set(T(T({},o),a))};return zc({readState:n,lookup:o,update:i,clear:r})},Pg=function(t){return t.store.manager.state(t)},Lg=Object.freeze({__proto__:null,memory:Vg,dataset:Rg,manual:Bg,init:Pg}),Ig=function(t,e,n,r){var o=e.store;n.update([r]),o.setValue(t,r),e.onSetValue(t,r)},Fg=function(t,e,n){var r=e.store,o=r.getDataKey(t);return n.lookup(o).getOrThunk((function(){return r.getFallbackEntry(o)}))},Ng=function(t,e,n){var r=e.store;r.initialValue.each((function(r){Ig(t,e,n,r)}))},jg=function(t,e,n){n.clear()},Ug=[Fi("initialValue"),Ti("getFallbackEntry"),Ti("getDataKey"),Ti("setValue"),fl("manager",{setValue:Ig,getValue:Fg,onLoad:Ng,onUnload:jg,state:Rg})],Wg=function(t,e,n){return e.store.getValue(t)},Gg=function(t,e,n,r){e.store.setValue(t,r),e.onSetValue(t,r)},qg=function(t,e,n){e.store.initialValue.each((function(n){e.store.setValue(t,n)}))},$g=[Ti("getValue"),Xi("setValue",p),Fi("initialValue"),fl("manager",{setValue:Gg,getValue:Wg,onLoad:qg,onUnload:p,state:kc.init})],Xg=function(t,e,n,r){n.set(r),e.onSetValue(t,r)},Kg=function(t,e,n){return n.get()},Yg=function(t,e,n){e.store.initialValue.each((function(t){n.isNotSet()&&n.set(t)}))},Jg=function(t,e,n){n.clear()},Zg=[Fi("initialValue"),fl("manager",{setValue:Xg,getValue:Kg,onLoad:Yg,onUnload:Jg,state:Vg})],Qg=[Ki("store",{mode:"memory"},ki("mode",{memory:Zg,manual:$g,dataset:Ug})),ul("onSetValue"),Xi("resetOnDom",!1)],tp=gf({fields:Qg,name:"representing",active:Dg,apis:Ag,extra:{setValueFrom:function(t,e){var n=tp.getValue(e);tp.setValue(t,n)}},state:Lg}),ep=function(t,e){return ra(t,{},q(e,(function(e){return Ri(e.name(),"Cannot configure "+e.name()+" for "+t)})).concat([Mi("dump",w)]))},np=function(t){return t.dump},rp=function(t,e){return T(T({},mf(e)),t.dump)},op={field:ep,augment:rp,get:np},ip="placeholder",ap=aa.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),up=function(t){return Mt(t,"uiType")},cp=function(t,e,n,r){return t.exists((function(t){return t!==n.owner}))?ap.single(!0,x(n)):Ot(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+gt(r)+"]\nNamespace: "+t.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(t){return t.replace()}))},sp=function(t,e,n,r){return up(n)&&n.uiType===ip?cp(t,e,n,r):ap.single(!1,x(n))},lp=function(t,e,n,r){var o=sp(t,e,n,r);return o.fold((function(o,i){var a=up(n)?i(e,n.config,n.validated):i(e),u=Ot(a,"components").getOr([]),c=rt(u,(function(n){return lp(t,e,n,r)}));return[T(T({},a),{components:c})]}),(function(t,r){if(up(n)){var o=r(e,n.config,n.validated),i=n.validated.preprocess.getOr(w);return i(o)}return r(e)}))},fp=function(t,e,n,r){return rt(n,(function(n){return lp(t,e,n,r)}))},dp=function(t,e){var n=!1,r=function(){return n},o=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+t);return n=!0,e},i=function(){return e.fold((function(t,e){return t}),(function(t,e){return t}))};return{name:x(t),required:i,used:r,replace:o}},mp=function(t,e,n,r){var o=bt(r,(function(t,e){return dp(e,t)})),i=fp(t,e,n,o);return vt(o,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+t.getOr("none")+"\nComponents: "+JSON.stringify(e.components,null,2))})),i},hp=ap.single,gp=ap.multiple,pp=x(ip),vp=aa.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),bp=Xi("factory",{sketch:w}),yp=Xi("schema",[]),xp=Ti("name"),wp=Oi("pname","pname",zo((function(t){return"<alloy."+oc(t.name)+">"})),ai()),Cp=Mi("schema",(function(){return[Fi("preprocess")]})),Sp=Xi("defaults",x({})),kp=Xi("overrides",x({})),zp=ti([bp,yp,xp,wp,Sp,kp]),Op=ti([bp,yp,xp,Sp,kp]),Mp=ti([bp,yp,xp,wp,Sp,kp]),_p=ti([bp,Cp,xp,Ti("unit"),wp,Sp,kp]),Tp=function(t){return t.fold(R.some,R.none,R.some,R.some)},Ep=function(t){var e=function(t){return t.name};return t.fold(e,e,e,e)},Ap=function(t){return t.fold(w,w,w,w)},Hp=function(t,e){return function(n){var r=Ci("Converting part type",e,n);return t(r)}},Dp=Hp(vp.required,zp),Vp=Hp(vp.external,Op),Bp=Hp(vp.optional,Mp),Rp=Hp(vp.group,_p),Pp=x("entirety"),Lp=Object.freeze({__proto__:null,required:Dp,external:Vp,optional:Bp,group:Rp,asNamedPart:Tp,name:Ep,asCommon:Ap,original:Pp}),Ip=function(t,e,n,r){return Co(e.defaults(t,n,r),n,{uid:t.partUids[e.name]},e.overrides(t,n,r))},Fp=function(t,e,n){var r={},o={};return $(n,(function(t){t.fold((function(t){r[t.pname]=hp(!0,(function(e,n,r){return t.factory.sketch(Ip(e,t,n,r))}))}),(function(t){var n=e.parts[t.name];o[t.name]=x(t.factory.sketch(Ip(e,t,n[Pp()]),n))}),(function(t){r[t.pname]=hp(!1,(function(e,n,r){return t.factory.sketch(Ip(e,t,n,r))}))}),(function(t){r[t.pname]=gp(!0,(function(e,n,r){var o=e[t.name];return q(o,(function(n){return t.factory.sketch(Co(t.defaults(e,n,r),n,t.overrides(e,n)))}))}))}))})),{internals:x(r),externals:x(o)}},Np=function(t,e){var n={};return $(e,(function(e){Tp(e).each((function(e){var r=jp(t,e.pname);n[e.name]=function(n){var o=Ci("Part: "+e.name+" in "+t,ti(e.schema),n);return T(T({},r),{config:n,validated:o})}}))})),n},jp=function(t,e){return{uiType:pp(),owner:t,name:e}},Up=function(t,e,n){return{uiType:pp(),owner:t,name:e,config:n,validated:{}}},Wp=function(t){return rt(t,(function(t){return t.fold(R.none,R.some,R.none,R.none).map((function(t){return Pi(t.name,t.schema.concat([dl(Pp())]))})).toArray()}))},Gp=function(t){return q(t,Ep)},qp=function(t,e,n){return Fp(t,e,n)},$p=function(t,e,n){return mp(R.some(t),e,e.components,n)},Xp=function(t,e,n){var r=e.partUids[n];return t.getSystem().getByUid(r).toOptional()},Kp=function(t,e,n){return Xp(t,e,n).getOrDie("Could not find part: "+n)},Yp=function(t,e,n){var r={},o=e.partUids,i=t.getSystem();return $(n,(function(t){r[t]=x(i.getByUid(o[t]))})),r},Jp=function(t,e){var n=t.getSystem();return bt(e.partUids,(function(t,e){return x(n.getByUid(t))}))},Zp=function(t){return gt(t.partUids)},Qp=function(t,e,n){var r={},o=e.partUids,i=t.getSystem();return $(n,(function(t){r[t]=x(i.getByUid(o[t]).getOrDie())})),r},tv=function(t,e){var n=Gp(e);return ha(q(n,(function(e){return{key:e,value:t+"-"+e}})))},ev=function(t){return Oi("partUids","partUids",_o((function(e){return tv(e.uid,t)})),ai())},nv=Object.freeze({__proto__:null,generate:Np,generateOne:Up,schemas:Wp,names:Gp,substitutes:qp,components:$p,defaultUids:tv,defaultUidsSchema:ev,getAllParts:Jp,getAllPartNames:Zp,getPart:Xp,getPartOrDie:Kp,getParts:Yp,getPartsOrDie:Qp}),rv=function(t,e){var n=t.length>0?[Pi("parts",t)]:[];return n.concat([Ti("uid"),Xi("dom",{}),Xi("components",[]),dl("originalSpec"),Xi("debug.sketcher",{})]).concat(e)},ov=function(t,e,n,r,o){var i=rv(r,o);return Ci(t+" [SpecSchema]",Qo(i.concat(e)),n)},iv=function(t,e,n,r){var o=cv(r),i=ov(t,e,o,[],[]);return n(i,o)},av=function(t,e,n,r,o){var i=cv(o),a=Wp(n),u=ev(n),c=ov(t,e,i,a,[u]),s=qp(t,c,n),l=$p(t,c,s.internals());return r(c,l,i,s.externals())},uv=function(t){return Mt(t,"uid")},cv=function(t){return uv(t)?t:T(T({},t),{uid:dc("uid")})},sv=function(t){return void 0!==t.uid},lv=Qo([Ti("name"),Ti("factory"),Ti("configFields"),Xi("apis",{}),Xi("extraApis",{})]),fv=Qo([Ti("name"),Ti("factory"),Ti("configFields"),Ti("partFields"),Xi("apis",{}),Xi("extraApis",{})]),dv=function(t){var e=Ci("Sketcher for "+t.name,lv,t),n=function(t){return iv(e.name,e.configFields,e.factory,t)},r=bt(e.apis,Sc),o=bt(e.extraApis,(function(t,e){return bc(t,e)}));return T(T({name:e.name,configFields:e.configFields,sketch:n},r),o)},mv=function(t){var e=Ci("Sketcher for "+t.name,fv,t),n=function(t){return av(e.name,e.configFields,e.partFields,e.factory,t)},r=Np(e.name,e.partFields),o=bt(e.apis,Sc),i=bt(e.extraApis,(function(t,e){return bc(t,e)}));return T(T({name:e.name,partFields:e.partFields,configFields:e.configFields,sketch:n,parts:r},o),i)},hv=function(t){return"input"===ue(t)&&"radio"!==jn(t,"type")||"textarea"===ue(t)},gv=function(t,e,n){return e.find(t)},pv=Object.freeze({__proto__:null,getCurrent:gv}),vv=[Ti("find")],bv=gf({fields:vv,name:"composing",apis:pv}),yv=["input","button","textarea","select"],xv=function(t,e,n){var r=e.disabled()?_v:Tv;r(t,e)},wv=function(t,e){return!0===e.useNative&&j(yv,ue(t.element))},Cv=function(t){return Wn(t.element,"disabled")},Sv=function(t){Fn(t.element,"disabled","disabled")},kv=function(t){Gn(t.element,"disabled")},zv=function(t){return"true"===jn(t.element,"aria-disabled")},Ov=function(t){Fn(t.element,"aria-disabled","true")},Mv=function(t){Fn(t.element,"aria-disabled","false")},_v=function(t,e,n){e.disableClass.each((function(e){is(t.element,e)}));var r=wv(t,e)?Sv:Ov;r(t),e.onDisabled(t)},Tv=function(t,e,n){e.disableClass.each((function(e){us(t.element,e)}));var r=wv(t,e)?kv:Mv;r(t),e.onEnabled(t)},Ev=function(t,e){return wv(t,e)?Cv(t):zv(t)},Av=function(t,e,n,r){var o=r?_v:Tv;o(t,e)},Hv=Object.freeze({__proto__:null,enable:Tv,disable:_v,isDisabled:Ev,onLoad:xv,set:Av}),Dv=function(t,e){return Ec({classes:e.disabled()?e.disableClass.toArray():[]})},Vv=function(t,e){return _u([Tu(eu(),(function(e,n){return Ev(e,t)})),uf(t,e,xv)])},Bv=Object.freeze({__proto__:null,exhibit:Dv,events:Vv}),Rv=[ta("disabled",O),Xi("useNative",!0),Fi("disableClass"),ul("onDisabled"),ul("onEnabled")],Pv=gf({fields:Rv,name:"disabling",active:Bv,apis:Hv}),Lv=function(t,e,n,r){var o=Km(t.element,"."+e.highlightClass);$(o,(function(n){U(r,(function(t){return t.element===n}))||(us(n,e.highlightClass),t.getSystem().getByDom(n).each((function(n){e.onDehighlight(t,n),Cu(n,wu())})))}))},Iv=function(t,e,n){return Lv(t,e,n,[])},Fv=function(t,e,n,r){qv(t,e,n,r)&&(us(r.element,e.highlightClass),e.onDehighlight(t,r),Cu(r,wu()))},Nv=function(t,e,n,r){Lv(t,e,n,[r]),qv(t,e,n,r)||(is(r.element,e.highlightClass),e.onHighlight(t,r),Cu(r,xu()))},jv=function(t,e,n){Kv(t,e).each((function(r){Nv(t,e,n,r)}))},Uv=function(t,e,n){Yv(t,e).each((function(r){Nv(t,e,n,r)}))},Wv=function(t,e,n,r){Xv(t,e,n,r).fold((function(t){throw t}),(function(r){Nv(t,e,n,r)}))},Gv=function(t,e,n,r){var o=tb(t,e),i=tt(o,r);i.each((function(r){Nv(t,e,n,r)}))},qv=function(t,e,n,r){return cs(r.element,e.highlightClass)},$v=function(t,e,n){return Ls(t.element,"."+e.highlightClass).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Xv=function(t,e,n,r){var o=Km(t.element,"."+e.itemClass);return R.from(o[r]).fold((function(){return ro.error(new Error("No element found with index "+r))}),t.getSystem().getByDom)},Kv=function(t,e,n){return Ls(t.element,"."+e.itemClass).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Yv=function(t,e,n){var r=Km(t.element,"."+e.itemClass),o=r.length>0?R.some(r[r.length-1]):R.none();return o.bind((function(e){return t.getSystem().getByDom(e).toOptional()}))},Jv=function(t,e,n,r){var o=Km(t.element,"."+e.itemClass),i=et(o,(function(t){return cs(t,e.highlightClass)}));return i.bind((function(e){var n=Ml(e,r,0,o.length-1);return t.getSystem().getByDom(o[n]).toOptional()}))},Zv=function(t,e,n){return Jv(t,e,n,-1)},Qv=function(t,e,n){return Jv(t,e,n,1)},tb=function(t,e,n){var r=Km(t.element,"."+e.itemClass);return At(q(r,(function(e){return t.getSystem().getByDom(e).toOptional()})))},eb=Object.freeze({__proto__:null,dehighlightAll:Iv,dehighlight:Fv,highlight:Nv,highlightFirst:jv,highlightLast:Uv,highlightAt:Wv,highlightBy:Gv,isHighlighted:qv,getHighlighted:$v,getFirst:Kv,getLast:Yv,getPrevious:Zv,getNext:Qv,getCandidates:tb}),nb=[Ti("highlightClass"),Ti("itemClass"),ul("onHighlight"),ul("onDehighlight")],rb=gf({fields:nb,name:"highlighting",apis:eb}),ob=[8],ib=[9],ab=[13],ub=[27],cb=[32],sb=[37],lb=[38],fb=[39],db=[40],mb=function(t,e,n){var r=it(t.slice(0,e)),o=it(t.slice(e+1));return tt(r.concat(o),n)},hb=function(t,e,n){var r=it(t.slice(0,e));return tt(r,n)},gb=function(t,e,n){var r=t.slice(0,e),o=t.slice(e+1);return tt(o.concat(r),n)},pb=function(t,e,n){var r=t.slice(e+1);return tt(r,n)},vb=function(t){return function(e){var n=e.raw;return j(t,n.which)}},bb=function(t){return function(e){return ot(t,(function(t){return t(e)}))}},yb=function(t){var e=t.raw;return!0===e.shiftKey},xb=function(t){var e=t.raw;return!0===e.ctrlKey},wb=k(yb),Cb=function(t,e){return{matches:t,classification:e}},Sb=function(t,e){var n=tt(t,(function(t){return t.matches(e)}));return n.map((function(t){return t.classification}))},kb=function(t,e,n){var r=e.exists((function(t){return n.exists((function(e){return sn(e,t)}))}));r||Su(t,pu(),{prevFocus:e,newFocus:n})},zb=function(){var t=function(t){return Mf(t.element)},e=function(e,n){var r=t(e);e.getSystem().triggerFocus(n,e.element);var o=t(e);kb(e,r,o)};return{get:t,set:e}},Ob=function(){var t=function(t){return rb.getHighlighted(t).map((function(t){return t.element}))},e=function(e,n){var r=t(e);e.getSystem().getByDom(n).fold(p,(function(t){rb.highlight(e,t)}));var o=t(e);kb(e,r,o)};return{get:t,set:e}};(function(t){t["OnFocusMode"]="onFocus",t["OnEnterOrSpaceMode"]="onEnterOrSpace",t["OnApiMode"]="onApi"})(Lm||(Lm={}));var Mb=function(t,e,n,r,o){var i=function(){return t.concat([Xi("focusManager",zb()),Ki("focusInside","onFocus",vi((function(t){return j(["onFocus","onEnterOrSpace","onApi"],t)?ro.value(t):ro.error("Invalid value for focusInside")}))),fl("handler",c),fl("state",e),fl("sendFocusIn",o)])},a=function(t,e,n,r,o){var i=n(t,e,r,o);return Sb(i,e.event).bind((function(n){return n(t,e,r,o)}))},u=function(t,e){var i=t.focusInside!==Lm.OnFocusMode?R.none():o(t).map((function(n){return Hu(Ja(),(function(r,o){n(r,t,e),o.stop()}))})),u=function(n,r){var i=vb(cb.concat(ab))(r.event);t.focusInside===Lm.OnEnterOrSpaceMode&&i&&wa(n,r)&&o(t).each((function(o){o(n,t,e),r.stop()}))},c=[Hu(Fa(),(function(r,o){a(r,o,n,t,e).fold((function(){u(r,o)}),(function(t){o.stop()}))})),Hu(Na(),(function(n,o){a(n,o,r,t,e).each((function(t){o.stop()}))}))];return _u(i.toArray().concat(c))},c={schema:i,processKey:a,toEvents:u};return c},_b=function(t){var e=[Fi("onEscape"),Fi("onEnter"),Xi("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Xi("firstTabstop",0),Xi("useTabstopAt",M),Fi("visibilitySelector")].concat([t]),n=function(t,e){var n=t.visibilitySelector.bind((function(t){return Is(e,t)})).getOr(e);return ar(n)>0},r=function(t,e){var r=Km(t.element,e.selector),o=Y(r,(function(t){return n(e,t)}));return R.from(o[e.firstTabstop])},o=function(t,e){return e.focusManager.get(t).bind((function(t){return Is(t,e.selector)}))},i=function(t,e){return n(t,e)&&t.useTabstopAt(e)},a=function(t,e,n){r(t,e).each((function(n){e.focusManager.set(t,n)}))},u=function(t,e,n,r,o){return o(e,n,(function(t){return i(r,t)})).fold((function(){return r.cyclic?R.some(!0):R.none()}),(function(e){return r.focusManager.set(t,e),R.some(!0)}))},c=function(t,e,n,r){var i=Km(t.element,n.selector);return o(t,n).bind((function(e){var o=et(i,S(sn,e));return o.bind((function(e){return u(t,i,e,n,r)}))}))},s=function(t,e,n){var r=n.cyclic?mb:hb;return c(t,e,n,r)},l=function(t,e,n){var r=n.cyclic?gb:pb;return c(t,e,n,r)},f=function(t,e,n){return n.onEnter.bind((function(n){return n(t,e)}))},d=function(t,e,n){return n.onEscape.bind((function(n){return n(t,e)}))},m=x([Cb(bb([yb,vb(ib)]),s),Cb(vb(ib),l),Cb(vb(ub),d),Cb(bb([wb,vb(ab)]),f)]),h=x([]);return Mb(e,kc.init,m,h,(function(){return R.some(a)}))},Tb=_b(Mi("cyclic",O)),Eb=_b(Mi("cyclic",M)),Ab=function(t,e,n){return zu(t,n,eu()),R.some(!0)},Hb=function(t,e,n){var r=hv(n)&&vb(cb)(e.event);return r?R.none():Ab(t,e,n)},Db=function(t,e){return R.some(!0)},Vb=[Xi("execute",Hb),Xi("useSpace",!1),Xi("useEnter",!0),Xi("useControlEnter",!1),Xi("useDown",!1)],Bb=function(t,e,n){return n.execute(t,e,t.element)},Rb=function(t,e,n,r){var o=n.useSpace&&!hv(t.element)?cb:[],i=n.useEnter?ab:[],a=n.useDown?db:[],u=o.concat(i).concat(a);return[Cb(vb(u),Bb)].concat(n.useControlEnter?[Cb(bb([xb,vb(ab)]),Bb)]:[])},Pb=function(t,e,n,r){return n.useSpace&&!hv(t.element)?[Cb(vb(cb),Db)]:[]},Lb=Mb(Vb,kc.init,Rb,Pb,(function(){return R.none()})),Ib=function(){var t=od(),e=function(e,n){t.set({numRows:e,numColumns:n})},n=function(){return t.get().map((function(t){return t.numRows}))},r=function(){return t.get().map((function(t){return t.numColumns}))};return zc({readState:function(){return t.get().map((function(t){return{numRows:String(t.numRows),numColumns:String(t.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:e,getNumRows:n,getNumColumns:r})},Fb=function(t){return t.state(t)},Nb=Object.freeze({__proto__:null,flatgrid:Ib,init:Fb}),jb=function(t){return function(e,n,r,o){var i=t(e.element);return qb(i,e,n,r,o)}},Ub=function(t,e){var n=Bd(t,e);return jb(n)},Wb=function(t,e){var n=Bd(e,t);return jb(n)},Gb=function(t){return function(e,n,r,o){return qb(t,e,n,r,o)}},qb=function(t,e,n,r,o){var i=r.focusManager.get(e).bind((function(n){return t(e.element,n,r,o)}));return i.map((function(t){return r.focusManager.set(e,t),!0}))},$b=Gb,Xb=Gb,Kb=Gb,Yb=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Jb=function(t){return!Yb(t.dom)},Zb=function(t,e){return et(t,e).map((function(e){return{index:e,candidates:t}}))},Qb=function(t,e,n){var r=function(t){return sn(t,e)},o=Km(t,n),i=Y(o,Jb);return Zb(i,r)},ty=function(t,e){return et(t,(function(t){return sn(e,t)}))},ey=function(t,e,n,r){var o=Math.floor(e/n),i=e%n;return r(o,i).bind((function(e){var r=e.row*n+e.column;return r>=0&&r<t.length?R.some(t[r]):R.none()}))},ny=function(t,e,n,r,o){return ey(t,e,r,(function(e,i){var a=e===n-1,u=a?t.length-e*r:r,c=Ml(i,o,0,u-1);return R.some({row:e,column:c})}))},ry=function(t,e,n,r,o){return ey(t,e,r,(function(e,i){var a=Ml(e,o,0,n-1),u=a===n-1,c=u?t.length-a*r:r,s=_l(i,0,c-1);return R.some({row:a,column:s})}))},oy=function(t,e,n,r){return ny(t,e,n,r,1)},iy=function(t,e,n,r){return ny(t,e,n,r,-1)},ay=function(t,e,n,r){return ry(t,e,n,r,-1)},uy=function(t,e,n,r){return ry(t,e,n,r,1)},cy=[Ti("selector"),Xi("execute",Hb),cl("onEscape"),Xi("captureTab",!1),ml()],sy=function(t,e,n){Ls(t.element,e.selector).each((function(n){e.focusManager.set(t,n)}))},ly=function(t,e){return e.focusManager.get(t).bind((function(t){return Is(t,e.selector)}))},fy=function(t,e,n,r){return ly(t,n).bind((function(r){return n.execute(t,e,r)}))},dy=function(t){return function(e,n,r,o){return Qb(e,n,r.selector).bind((function(e){return t(e.candidates,e.index,o.getNumRows().getOr(r.initSize.numRows),o.getNumColumns().getOr(r.initSize.numColumns))}))}},my=function(t,e,n){return n.captureTab?R.some(!0):R.none()},hy=function(t,e,n){return n.onEscape(t,e)},gy=dy(iy),py=dy(oy),vy=dy(ay),by=dy(uy),yy=x([Cb(vb(sb),Ub(gy,py)),Cb(vb(fb),Wb(gy,py)),Cb(vb(lb),$b(vy)),Cb(vb(db),Xb(by)),Cb(bb([yb,vb(ib)]),my),Cb(bb([wb,vb(ib)]),my),Cb(vb(ub),hy),Cb(vb(cb.concat(ab)),fy)]),xy=x([Cb(vb(cb),Db)]),wy=Mb(cy,Ib,yy,xy,(function(){return R.some(sy)})),Cy=function(t,e,n,r){var o=function(t){return"button"===ue(t)&&"disabled"===jn(t,"disabled")},i=function(t,e,n){var a=Ml(e,r,0,n.length-1);return a===t?R.none():o(n[a])?i(t,a,n):R.from(n[a])};return Qb(t,n,e).bind((function(t){var e=t.index,n=t.candidates;return i(e,e,n)}))},Sy=[Ti("selector"),Xi("getInitial",R.none),Xi("execute",Hb),cl("onEscape"),Xi("executeOnMove",!1),Xi("allowVertical",!0)],ky=function(t,e){return e.focusManager.get(t).bind((function(t){return Is(t,e.selector)}))},zy=function(t,e,n){return ky(t,n).bind((function(r){return n.execute(t,e,r)}))},Oy=function(t,e,n){e.getInitial(t).orThunk((function(){return Ls(t.element,e.selector)})).each((function(n){e.focusManager.set(t,n)}))},My=function(t,e,n){return Cy(t,n.selector,e,-1)},_y=function(t,e,n){return Cy(t,n.selector,e,1)},Ty=function(t){return function(e,n,r,o){return t(e,n,r,o).bind((function(){return r.executeOnMove?zy(e,n,r):R.some(!0)}))}},Ey=function(t,e,n){return n.onEscape(t,e)},Ay=function(t,e,n,r){var o=sb.concat(n.allowVertical?lb:[]),i=fb.concat(n.allowVertical?db:[]);return[Cb(vb(o),Ty(Ub(My,_y))),Cb(vb(i),Ty(Wb(My,_y))),Cb(vb(ab),zy),Cb(vb(cb),zy),Cb(vb(ub),Ey)]},Hy=x([Cb(vb(cb),Db)]),Dy=Mb(Sy,kc.init,Ay,Hy,(function(){return R.some(Oy)})),Vy=function(t,e,n){return R.from(t[e]).bind((function(t){return R.from(t[n]).map((function(t){return{rowIndex:e,columnIndex:n,cell:t}}))}))},By=function(t,e,n,r){var o=t[e],i=o.length,a=Ml(n,r,0,i-1);return Vy(t,e,a)},Ry=function(t,e,n,r){var o=Ml(n,r,0,t.length-1),i=t[o].length,a=_l(e,0,i-1);return Vy(t,o,a)},Py=function(t,e,n,r){var o=t[e],i=o.length,a=_l(n+r,0,i-1);return Vy(t,e,a)},Ly=function(t,e,n,r){var o=_l(n+r,0,t.length-1),i=t[o].length,a=_l(e,0,i-1);return Vy(t,o,a)},Iy=function(t,e,n){return By(t,e,n,1)},Fy=function(t,e,n){return By(t,e,n,-1)},Ny=function(t,e,n){return Ry(t,n,e,-1)},jy=function(t,e,n){return Ry(t,n,e,1)},Uy=function(t,e,n){return Py(t,e,n,-1)},Wy=function(t,e,n){return Py(t,e,n,1)},Gy=function(t,e,n){return Ly(t,n,e,-1)},qy=function(t,e,n){return Ly(t,n,e,1)},$y=[Pi("selectors",[Ti("row"),Ti("cell")]),Xi("cycles",!0),Xi("previousSelector",R.none),Xi("execute",Hb)],Xy=function(t,e,n){var r=e.previousSelector(t).orThunk((function(){var n=e.selectors;return Ls(t.element,n.cell)}));r.each((function(n){e.focusManager.set(t,n)}))},Ky=function(t,e,n){return Mf(t.element).bind((function(r){return n.execute(t,e,r)}))},Yy=function(t,e){return q(t,(function(t){return Km(t,e.selectors.cell)}))},Jy=function(t,e){return function(n,r,o){var i=o.cycles?t:e;return Is(r,o.selectors.row).bind((function(t){var e=Km(t,o.selectors.cell);return ty(e,r).bind((function(e){var r=Km(n,o.selectors.row);return ty(r,t).bind((function(t){var n=Yy(r,o);return i(n,t,e).map((function(t){return t.cell}))}))}))}))}},Zy=Jy(Fy,Uy),Qy=Jy(Iy,Wy),tx=Jy(Ny,Gy),ex=Jy(jy,qy),nx=x([Cb(vb(sb),Ub(Zy,Qy)),Cb(vb(fb),Wb(Zy,Qy)),Cb(vb(lb),$b(tx)),Cb(vb(db),Xb(ex)),Cb(vb(cb.concat(ab)),Ky)]),rx=x([Cb(vb(cb),Db)]),ox=Mb($y,kc.init,nx,rx,(function(){return R.some(Xy)})),ix=[Ti("selector"),Xi("execute",Hb),Xi("moveOnTab",!1)],ax=function(t,e,n){return n.focusManager.get(t).bind((function(r){return n.execute(t,e,r)}))},ux=function(t,e,n){Ls(t.element,e.selector).each((function(n){e.focusManager.set(t,n)}))},cx=function(t,e,n){return Cy(t,n.selector,e,-1)},sx=function(t,e,n){return Cy(t,n.selector,e,1)},lx=function(t,e,n,r){return n.moveOnTab?Kb(cx)(t,e,n,r):R.none()},fx=function(t,e,n,r){return n.moveOnTab?Kb(sx)(t,e,n,r):R.none()},dx=x([Cb(vb(lb),Kb(cx)),Cb(vb(db),Kb(sx)),Cb(bb([yb,vb(ib)]),lx),Cb(bb([wb,vb(ib)]),fx),Cb(vb(ab),ax),Cb(vb(cb),ax)]),mx=x([Cb(vb(cb),Db)]),hx=Mb(ix,kc.init,dx,mx,(function(){return R.some(ux)})),gx=[cl("onSpace"),cl("onEnter"),cl("onShiftEnter"),cl("onLeft"),cl("onRight"),cl("onTab"),cl("onShiftTab"),cl("onUp"),cl("onDown"),cl("onEscape"),Xi("stopSpaceKeyup",!1),Fi("focusIn")],px=function(t,e,n){return[Cb(vb(cb),n.onSpace),Cb(bb([wb,vb(ab)]),n.onEnter),Cb(bb([yb,vb(ab)]),n.onShiftEnter),Cb(bb([yb,vb(ib)]),n.onShiftTab),Cb(bb([wb,vb(ib)]),n.onTab),Cb(vb(lb),n.onUp),Cb(vb(db),n.onDown),Cb(vb(sb),n.onLeft),Cb(vb(fb),n.onRight),Cb(vb(cb),n.onSpace),Cb(vb(ub),n.onEscape)]},vx=function(t,e,n){return n.stopSpaceKeyup?[Cb(vb(cb),Db)]:[]},bx=Mb(gx,kc.init,px,vx,(function(t){return t.focusIn})),yx=Tb.schema(),xx=Eb.schema(),wx=Dy.schema(),Cx=wy.schema(),Sx=ox.schema(),kx=Lb.schema(),zx=hx.schema(),Ox=bx.schema(),Mx=Object.freeze({__proto__:null,acyclic:yx,cyclic:xx,flow:wx,flatgrid:Cx,matrix:Sx,execution:kx,menu:zx,special:Ox}),_x=function(t){return _t(t,"setGridSize")},Tx=vf({branchKey:"mode",branches:Mx,name:"keying",active:{events:function(t,e){var n=t.handler;return n.toEvents(t,e)}},apis:{focusIn:function(t,e,n){e.sendFocusIn(e).fold((function(){t.getSystem().triggerFocus(t.element,t.element)}),(function(r){r(t,e,n)}))},setGridSize:function(t,e,n,r,o){_x(n)?n.setGridSize(r,o):console.error("Layout does not support setGridSize")}},state:Nb}),Ex=function(t,e,n,r){_f((function(){var e=q(r,t.getSystem().build);Uh(t,e)}),t.element)},Ax=function(t,e,n,r){var o=t.getSystem().build(r);Gh(t,o,n)},Hx=function(t,e,n,r){Ax(t,e,Er,r)},Dx=function(t,e,n,r){Ax(t,e,Tr,r)},Vx=function(t,e,n,r){var o=Bx(t),i=tt(o,(function(t){return sn(r.element,t.element)}));i.each($h)},Bx=function(t,e){return t.components()},Rx=function(t,e,n,r,o){var i=Bx(t);return R.from(i[r]).map((function(i){return Vx(t,e,n,i),o.each((function(n){Ax(t,e,(function(t,e){Ar(t,e,r)}),n)})),i}))},Px=function(t,e,n,r,o){var i=Bx(t);return et(i,r).bind((function(r){return Rx(t,e,n,r,o)}))},Lx=Object.freeze({__proto__:null,append:Hx,prepend:Dx,remove:Vx,replaceAt:Rx,replaceBy:Px,set:Ex,contents:Bx}),Ix=gf({fields:[],name:"replacing",apis:Lx}),Fx=function(t,e){var n=_u(e);return gf({fields:[Ti("enabled")],name:t,active:{events:x(n)}})},Nx=function(t,e){var n=Fx(t,e);return{key:t,value:{config:{},me:n,configAsRaw:x({}),initialConfig:{},state:kc}}},jx=function(t,e){e.ignore||(Sf(t.element),e.onFocus(t))},Ux=function(t,e){e.ignore||kf(t.element)},Wx=function(t){return zf(t.element)},Gx=Object.freeze({__proto__:null,focus:jx,blur:Ux,isFocused:Wx}),qx=function(t,e){var n=e.ignore?{}:{attributes:{tabindex:"-1"}};return Ec(n)},$x=function(t){return _u([Hu(Ja(),(function(e,n){jx(e,t),n.stop()}))].concat(t.stopMousedown?[Hu(Da(),(function(t,e){e.event.prevent()}))]:[]))},Xx=Object.freeze({__proto__:null,exhibit:qx,events:$x}),Kx=[ul("onFocus"),Xi("stopMousedown",!1),Xi("ignore",!1)],Yx=gf({fields:Kx,name:"focusing",active:Xx,apis:Gx}),Jx=function(t){var e=function(){var e=oa(t),n=function(){return e.get()},r=function(t){return e.set(t)},o=function(){return e.set(t)},i=function(){return e.get()};return{get:n,set:r,clear:o,readState:i}};return{init:e}},Zx=function(t,e,n){var r=e.aria;r.update(t,r,n.get())},Qx=function(t,e,n){e.toggleClass.each((function(e){n.get()?is(t.element,e):us(t.element,e)}))},tw=function(t,e,n){rw(t,e,n,!n.get())},ew=function(t,e,n){n.set(!0),Qx(t,e,n),Zx(t,e,n)},nw=function(t,e,n){n.set(!1),Qx(t,e,n),Zx(t,e,n)},rw=function(t,e,n,r){var o=r?ew:nw;o(t,e,n)},ow=function(t,e,n){return n.get()},iw=function(t,e,n){rw(t,e,n,e.selected)},aw=Object.freeze({__proto__:null,onLoad:iw,toggle:tw,isOn:ow,on:ew,off:nw,set:rw}),uw=function(){return Ec({})},cw=function(t,e){var n=af(t,e,tw),r=uf(t,e,iw);return _u(nt([t.toggleOnExecute?[n]:[],[r]]))},sw=Object.freeze({__proto__:null,exhibit:uw,events:cw}),lw=function(t,e,n){Fn(t.element,"aria-pressed",n),e.syncWithExpanded&&mw(t,e,n)},fw=function(t,e,n){Fn(t.element,"aria-selected",n)},dw=function(t,e,n){Fn(t.element,"aria-checked",n)},mw=function(t,e,n){Fn(t.element,"aria-expanded",n)},hw=[Xi("selected",!1),Fi("toggleClass"),Xi("toggleOnExecute",!0),Ki("aria",{mode:"none"},ki("mode",{pressed:[Xi("syncWithExpanded",!1),fl("update",lw)],checked:[fl("update",dw)],expanded:[fl("update",mw)],selected:[fl("update",fw)],none:[fl("update",p)]}))],gw=gf({fields:hw,name:"toggling",active:sw,apis:aw,state:Jx(!1)}),pw=function(){var t=function(t,e){e.stop(),ku(t)};return[Hu(Wa(),t),Hu(ru(),t),Iu(Ta()),Iu(Da())]},vw=function(t){var e=function(t){return Gu((function(e,n){t(e),n.stop()}))};return _u(nt([t.map(e).toArray(),pw()]))},bw="alloy.item-hover",yw="alloy.item-focus",xw=function(t){(Mf(t.element).isNone()||Yx.isFocused(t))&&(Yx.isFocused(t)||Yx.focus(t),Su(t,bw,{item:t}))},ww=function(t){Su(t,yw,{item:t})},Cw=x(bw),Sw=x(yw),kw=function(t){return{dom:t.dom,domModification:T(T({},t.domModification),{attributes:T(T(T({role:t.toggling.isSome()?"menuitemcheckbox":"menuitem"},t.domModification.attributes),{"aria-haspopup":t.hasSubmenu}),t.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:op.augment(t.itemBehaviours,[t.toggling.fold(gw.revoke,(function(t){return gw.config(T({aria:{mode:"checked"}},t))})),Yx.config({ignore:t.ignoreFocus,stopMousedown:t.ignoreFocus,onFocus:function(t){ww(t)}}),Tx.config({mode:"execution"}),tp.config({store:{mode:"memory",initialValue:t.data}}),Nx("item-type-events",A(A([],pw(),!0),[Hu(Pa(),xw),Hu(nu(),Yx.focus)],!1))]),components:t.components,eventOrder:t.eventOrder}},zw=[Ti("data"),Ti("components"),Ti("dom"),Xi("hasSubmenu",!1),Fi("toggling"),op.field("itemBehaviours",[gw,Yx,Tx,tp]),Xi("ignoreFocus",!1),Xi("domModification",{}),fl("builder",kw),Xi("eventOrder",{})],Ow=function(t){return{dom:t.dom,components:t.components,events:_u([Fu(nu())])}},Mw=[Ti("dom"),Ti("components"),fl("builder",Ow)],_w=x("item-widget"),Tw=x([Dp({name:"widget",overrides:function(t){return{behaviours:mf([tp.config({store:{mode:"manual",getValue:function(e){return t.data},setValue:p}})])}}})]),Ew=function(t){var e=qp(_w(),t,Tw()),n=$p(_w(),t,e.internals()),r=function(e){return Xp(e,t,"widget").map((function(t){return Tx.focusIn(t),t}))},o=function(e,n){return hv(n.event.target)?R.none():function(){return t.autofocus?(n.setSource(e.element),R.none()):R.none()}()};return{dom:t.dom,components:n,domModification:t.domModification,events:_u([Gu((function(t,e){r(t).each((function(t){e.stop()}))})),Hu(Pa(),xw),Hu(nu(),(function(e,n){t.autofocus?r(e):Yx.focus(e)}))]),behaviours:op.augment(t.widgetBehaviours,[tp.config({store:{mode:"memory",initialValue:t.data}}),Yx.config({ignore:t.ignoreFocus,onFocus:function(t){ww(t)}}),Tx.config({mode:"special",focusIn:t.autofocus?function(t){r(t)}:bf(),onLeft:o,onRight:o,onEscape:function(e,n){return Yx.isFocused(e)||t.autofocus?t.autofocus?(n.setSource(e.element),R.none()):R.none():(Yx.focus(e),R.some(!0))}})])}},Aw=[Ti("uid"),Ti("data"),Ti("components"),Ti("dom"),Xi("autofocus",!1),Xi("ignoreFocus",!1),op.field("widgetBehaviours",[tp,Yx,Tx]),Xi("domModification",{}),ev(Tw()),fl("builder",Ew)],Hw=ki("type",{widget:Aw,item:zw,separator:Mw}),Dw=function(t,e){return{mode:"flatgrid",selector:"."+t.markers.item,initSize:{numColumns:e.initSize.numColumns,numRows:e.initSize.numRows},focusManager:t.focusManager}},Vw=function(t,e){return{mode:"matrix",selectors:{row:e.rowSelector,cell:"."+t.markers.item},focusManager:t.focusManager}},Bw=function(t,e){return{mode:"menu",selector:"."+t.markers.item,moveOnTab:e.moveOnTab,focusManager:t.focusManager}},Rw=x([Rp({factory:{sketch:function(t){var e=Ci("menu.spec item",Hw,t);return e.builder(e)}},name:"items",unit:"item",defaults:function(t,e){return Mt(e,"uid")?e:T(T({},e),{uid:dc("item")})},overrides:function(t,e){return{type:e.type,ignoreFocus:t.fakeFocus,domModification:{classes:[t.markers.item]}}}})]),Pw=x([Ti("value"),Ti("items"),Ti("dom"),Ti("components"),Xi("eventOrder",{}),ep("menuBehaviours",[rb,tp,bv,Tx]),Ki("movement",{mode:"menu",moveOnTab:!0},ki("mode",{grid:[ml(),fl("config",Dw)],matrix:[fl("config",Vw),Ti("rowSelector")],menu:[Xi("moveOnTab",!0),fl("config",Bw)]})),rl(),Xi("fakeFocus",!1),Xi("focusManager",zb()),ul("onHighlight")]),Lw=x("alloy.menu-focus"),Iw=function(t,e,n,r){return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:rp(t.menuBehaviours,[rb.config({highlightClass:t.markers.selectedItem,itemClass:t.markers.item,onHighlight:t.onHighlight}),tp.config({store:{mode:"memory",initialValue:t.value}}),bv.config({find:R.some}),Tx.config(t.movement.config(t,t.movement))]),events:_u([Hu(Sw(),(function(t,e){var n=e.event;t.getSystem().getByDom(n.target).each((function(n){rb.highlight(t,n),e.stop(),Su(t,Lw(),{menu:t,item:n})}))})),Hu(Cw(),(function(t,e){var n=e.event.item;rb.highlight(t,n)}))]),components:e,eventOrder:t.eventOrder,domModification:{attributes:{role:"menu"}}}},Fw=mv({name:"Menu",configFields:Pw(),partFields:Rw(),factory:Iw}),Nw=function(t){return yt(t,(function(t,e){return{k:t,v:e}}))},jw=function(t,e,n,r){return Ot(n,r).bind((function(r){return Ot(t,r).bind((function(r){var o=jw(t,e,n,r);return R.some([r].concat(o))}))})).getOr([])},Uw=function(t,e){var n={};vt(t,(function(t,e){$(t,(function(t){n[t]=e}))}));var r=e,o=Nw(e),i=bt(o,(function(t,e){return[e].concat(jw(n,r,o,e))}));return bt(n,(function(t){return Ot(i,t).getOr([t])}))},Ww=function(){var t=oa({}),e=oa({}),n=oa({}),r=od(),o=oa({}),i=function(){t.set({}),e.set({}),n.set({}),r.clear()},a=function(){return r.get().isNone()},u=function(t,n){var r;e.set(T(T({},e.get()),(r={},r[t]={type:"prepared",menu:n},r)))},c=function(i,a,u,c){r.set(i),t.set(u),e.set(a),o.set(c);var s=Uw(c,u);n.set(s)},s=function(e){return kt(t.get(),(function(t,n){return t===e}))},l=function(t,e,n){return g(t).bind((function(r){return s(t).bind((function(t){return e(t).map((function(t){return{triggeredMenu:r,triggeringItem:t,triggeringPath:n}}))}))}))},f=function(t,e){var o=Y(v(t).toArray(),(function(t){return g(t).isSome()}));return Ot(n.get(),t).bind((function(t){var n=it(o.concat(t)),i=rt(n,(function(t,o){return l(t,e,n.slice(0,o+1)).fold((function(){return Tt(r.get(),t)?[]:[R.none()]}),(function(t){return[R.some(t)]}))}));return Ht(i)}))},d=function(e){return Ot(t.get(),e).map((function(t){var r=Ot(n.get(),e).getOr([]);return[t].concat(r)}))},m=function(t){return Ot(n.get(),t).bind((function(t){return t.length>1?R.some(t.slice(1)):R.none()}))},h=function(t){return Ot(n.get(),t)},g=function(t){return p(t).bind(Gw)},p=function(t){return Ot(e.get(),t)},v=function(e){return Ot(t.get(),e)},b=function(t){var e=o.get();return at(gt(e),t)},y=function(){return r.get().bind(g)},x=function(){return e.get()};return{setMenuBuilt:u,setContents:c,expand:d,refresh:h,collapse:m,lookupMenu:p,lookupItem:v,otherMenus:b,getPrimary:y,getMenus:x,clear:i,isClear:a,getTriggeringPath:f}},Gw=function(t){return"prepared"===t.type?R.some(t.menu):R.none()},qw={init:Ww,extractPreparedMenu:Gw},$w=function(t,e){var n,r=od(),o=function(e,n,r){return bt(r,(function(r,o){var i=function(){return Fw.sketch(T(T({},r),{value:o,markers:t.markers,fakeFocus:t.fakeFocus,onHighlight:t.onHighlight,focusManager:t.fakeFocus?Ob():zb()}))};return o===n?{type:"prepared",menu:e.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}}))},i=qw.init(),a=function(e){var n=o(e,t.data.primary,t.data.menus),r=s();return i.setContents(t.data.primary,n,t.data.expansions,r),i.getPrimary()},u=function(t){return tp.getValue(t).value},c=function(t,e,n){return ht(e,(function(t){if(!t.getSystem().isConnected())return R.none();var e=rb.getCandidates(t);return tt(e,(function(t){return u(t)===n}))}))},s=function(e){return bt(t.data.menus,(function(t,e){return rt(t.items,(function(t){return"separator"===t.type?[]:[t.data.value]}))}))},l=function(t,e){rb.highlight(t,e),rb.getHighlighted(e).orThunk((function(){return rb.getFirst(e)})).each((function(e){zu(t,e.element,nu())}))},f=function(t,e){return At(q(e,(function(e){return t.lookupMenu(e).bind((function(t){return"prepared"===t.type?R.some(t.menu):R.none()}))})))},d=function(e,n,r){var o=f(n,n.otherMenus(r));$(o,(function(n){ls(n.element,[t.markers.backgroundMenu]),t.stayInDom||Ix.remove(e,n)}))},m=function(e){return r.get().getOrThunk((function(){var n={},o=Km(e.element,"."+t.markers.item),i=Y(o,(function(t){return"true"===jn(t,"aria-haspopup")}));return $(i,(function(t){e.getSystem().getByDom(t).each((function(t){var e=u(t);n[e]=t}))})),r.set(n),n}))},h=function(t,e){var n=m(t);vt(n,(function(t,n){var r=j(e,n);Fn(t.element,"aria-expanded",r)}))},g=function(e,n,r){return R.from(r[0]).bind((function(o){return n.lookupMenu(o).bind((function(o){if("notbuilt"===o.type)return R.none();var i=o.menu,a=f(n,r.slice(1));return $(a,(function(e){is(e.element,t.markers.backgroundMenu)})),Rn(i.element)||Ix.append(e,_s(i)),ls(i.element,[t.markers.backgroundMenu]),l(e,i),d(e,n,r),R.some(i)}))}))};(function(t){t[t["HighlightSubmenu"]=0]="HighlightSubmenu",t[t["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(t,e,n){if("notbuilt"===n.type){var r=t.getSystem().build(n.nbMenu());return i.setMenuBuilt(e,r),r}return n.menu},b=function(e,r,o){if(void 0===o&&(o=n.HighlightSubmenu),r.hasConfigured(Pv)&&Pv.isDisabled(r))return R.some(r);var a=u(r);return i.expand(a).bind((function(a){return h(e,a),R.from(a[0]).bind((function(u){return i.lookupMenu(u).bind((function(c){var s=v(e,u,c);return Rn(s.element)||Ix.append(e,_s(s)),t.onOpenSubmenu(e,r,s,it(a)),o===n.HighlightSubmenu?(rb.highlightFirst(s),g(e,i,a)):(rb.dehighlightAll(s),R.some(r))}))}))}))},y=function(e,n){var r=u(n);return i.collapse(r).bind((function(r){return h(e,r),g(e,i,r).map((function(r){return t.onCollapseMenu(e,n,r),r}))}))},x=function(t,e){var n=u(e);return i.refresh(n).bind((function(e){return h(t,e),g(t,i,e)}))},w=function(t,e){return hv(e.element)?R.none():b(t,e,n.HighlightSubmenu)},C=function(t,e){return hv(e.element)?R.none():y(t,e)},S=function(e,n){return y(e,n).orThunk((function(){return t.onEscape(e,n).map((function(){return e}))}))},k=function(e){return function(n,r){return Is(r.getSource(),"."+t.markers.item).bind((function(t){return n.getSystem().getByDom(t).toOptional().bind((function(t){return e(n,t).map(M)}))}))}},z=_u([Hu(Lw(),(function(t,e){var n=e.event.item;i.lookupItem(u(n)).each((function(){var n=e.event.menu;rb.highlight(t,n);var r=u(e.event.item);i.refresh(r).each((function(e){return d(t,i,e)}))}))})),Gu((function(e,r){var o=r.event.target;e.getSystem().getByDom(o).each((function(r){var o=u(r);0===o.indexOf("collapse-item")&&y(e,r),b(e,r,n.HighlightSubmenu).fold((function(){t.onExecute(e,r)}),p)}))})),ju((function(e,n){a(e).each((function(n){Ix.append(e,_s(n)),t.onOpenMenu(e,n),t.highlightImmediately&&l(e,n)}))}))].concat(t.navigateOnHover?[Hu(Cw(),(function(e,r){var o=r.event.item;x(e,o),b(e,o,n.HighlightParent),t.onHover(e,o)}))]:[])),O=function(t){return rb.getHighlighted(t).bind(rb.getHighlighted)},_=function(t){O(t).each((function(e){y(t,e)}))},E=function(t){i.getPrimary().each((function(e){l(t,e)}))},A=function(t){return R.from(t.components()[0]).filter((function(t){return"menu"===jn(t.element,"role")}))},H=function(e){var n=i.getPrimary().bind((function(t){return O(e).bind((function(t){var n=u(t),r=zt(i.getMenus()),o=At(q(r,qw.extractPreparedMenu));return i.getTriggeringPath(n,(function(t){return c(e,o,t)}))})).map((function(e){return{primary:t,triggeringPath:e}}))}));n.fold((function(){A(e).each((function(n){t.onRepositionMenu(e,n,[])}))}),(function(n){var r=n.primary,o=n.triggeringPath;t.onRepositionMenu(e,r,o)}))},D={collapseMenu:_,highlightPrimary:E,repositionMenus:H};return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:rp(t.tmenuBehaviours,[Tx.config({mode:"special",onRight:k(w),onLeft:k(C),onEscape:k(S),focusIn:function(t,e){i.getPrimary().each((function(e){zu(t,e.element,nu())}))}}),rb.config({highlightClass:t.markers.selectedMenu,itemClass:t.markers.menu}),bv.config({find:function(t){return rb.getHighlighted(t)}}),Ix.config({})]),eventOrder:t.eventOrder,apis:D,events:z}},Xw=x("collapse-item"),Kw=function(t,e,n){return{primary:t,menus:e,expansions:n}},Yw=function(t,e){return{primary:t,menus:ma(t,e),expansions:{}}},Jw=function(t){return{value:oc(Xw()),meta:{text:t}}},Zw=dv({name:"TieredMenu",configFields:[ll("onExecute"),ll("onEscape"),sl("onOpenMenu"),sl("onOpenSubmenu"),ul("onRepositionMenu"),ul("onCollapseMenu"),Xi("highlightImmediately",!0),Pi("data",[Ti("primary"),Ti("menus"),Ti("expansions")]),Xi("fakeFocus",!1),ul("onHighlight"),ul("onHover"),ol(),Ti("dom"),Xi("navigateOnHover",!0),Xi("stayInDom",!1),ep("tmenuBehaviours",[Tx,rb,bv,Ix]),Xi("eventOrder",{})],apis:{collapseMenu:function(t,e){t.collapseMenu(e)},highlightPrimary:function(t,e){t.highlightPrimary(e)},repositionMenus:function(t,e){t.repositionMenus(e)}},factory:$w,extraApis:{tieredData:Kw,singleData:Yw,collapseItem:Jw}}),Qw=function(t,e,n,r,o){var i=function(){return t.lazySink(e)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Ql()},onRtl:function(){return tf()}}}:{},u=function(t){return 2===t.length},c=function(t){return u(t)?a:{}};return Zw.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return bg.close(e),t.onEscape.map((function(t){return t(e)})),R.some(!0)},onExecute:function(){return R.some(!0)},onOpenMenu:function(t,e){Lh.positionWithinBounds(i().getOrDie(),e,n,o())},onOpenSubmenu:function(t,e,n,r){var o=i().getOrDie();Lh.position(o,n,{anchor:T({type:"submenu",item:e},c(r))})},onRepositionMenu:function(t,e,r){var a=i().getOrDie();Lh.positionWithinBounds(a,e,n,o()),$(r,(function(t){var e=c(t.triggeringPath);Lh.position(a,t.triggeredMenu,{anchor:T({type:"submenu",item:t.triggeringItem},e)})}))}})},tC=function(t,e){var n=function(e,n){var r=t.getRelated(e);return r.exists((function(t){return Us(t,n)}))},r=function(t,e){bg.setContent(t,e)},o=function(t,e,n){i(t,e,n,R.none())},i=function(t,e,n,r){a(t,e,n,(function(){return r.map((function(t){return Jr(t)}))}))},a=function(e,n,r,o){var i=t.lazySink(e).getOrDie();bg.openWhileCloaked(e,n,(function(){return Lh.positionWithinBounds(i,e,r,o())})),tp.setValue(e,R.some({mode:"position",config:r,getBounds:o}))},u=function(t,e,n){c(t,e,n,R.none)},c=function(e,n,r,o){var i=Qw(t,e,n,r,o);bg.open(e,i),tp.setValue(e,R.some({mode:"menu",menu:i}))},s=function(t){bg.isOpen(t)&&(tp.setValue(t,R.none()),bg.close(t))},l=function(t){return bg.getState(t)},f=function(e){bg.isOpen(e)&&tp.getValue(e).each((function(n){switch(n.mode){case"menu":bg.getState(e).each(Zw.repositionMenus);break;case"position":var r=t.lazySink(e).getOrDie();Lh.positionWithinBounds(r,e,n.config,n.getBounds());break}}))},d={setContent:r,showAt:o,showWithin:i,showWithinBounds:a,showMenuAt:u,showMenuWithinBounds:c,hide:s,getContent:l,reposition:f,isOpen:bg.isOpen};return{uid:t.uid,dom:t.dom,behaviours:rp(t.inlineBehaviours,[bg.config({isPartOf:function(t,e,r){return Us(e,r)||n(t,r)},getAttachPoint:function(e){return t.lazySink(e).getOrDie()},onOpen:function(e){t.onShow(e)},onClose:function(e){t.onHide(e)}}),tp.config({store:{mode:"memory",initialValue:R.none()}}),yf.config({channels:T(T({},Sg(T({isExtraPart:e.isExtraPart},t.fireDismissalEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})))),zg(T(T({},t.fireRepositionEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})),{doReposition:f})))})]),eventOrder:t.eventOrder,apis:d}},eC=dv({name:"InlineView",configFields:[Ti("lazySink"),ul("onShow"),ul("onHide"),Wi("onEscape"),ep("inlineBehaviours",[bg,tp,yf]),qi("fireDismissalEventInstead",[Xi("event",hu())]),qi("fireRepositionEventInstead",[Xi("event",gu())]),Xi("getRelated",R.none),Xi("isExtraPart",O),Xi("eventOrder",R.none)],factory:tC,apis:{showAt:function(t,e,n,r){t.showAt(e,n,r)},showWithin:function(t,e,n,r,o){t.showWithin(e,n,r,o)},showWithinBounds:function(t,e,n,r,o){t.showWithinBounds(e,n,r,o)},showMenuAt:function(t,e,n,r){t.showMenuAt(e,n,r)},showMenuWithinBounds:function(t,e,n,r,o){t.showMenuWithinBounds(e,n,r,o)},hide:function(t,e){t.hide(e)},isOpen:function(t,e){return t.isOpen(e)},getContent:function(t,e){return t.getContent(e)},setContent:function(t,e,n){t.setContent(e,n)},reposition:function(t,e){t.reposition(e)}}}),nC="layout-inset",rC=function(t){return t.x},oC=function(t,e){return t.x+t.width/2-e.width/2},iC=function(t,e){return t.x+t.width-e.width},aC=function(t){return t.y},uC=function(t,e){return t.y+t.height-e.height},cC=function(t,e){return t.y+t.height/2-e.height/2},sC=function(t,e,n){return hl(iC(t,e),uC(t,e),n.insetSouthwest(),Cl(),"southwest",El(t,{right:0,bottom:3}),nC)},lC=function(t,e,n){return hl(rC(t),uC(t,e),n.insetSoutheast(),wl(),"southeast",El(t,{left:1,bottom:3}),nC)},fC=function(t,e,n){return hl(iC(t,e),aC(t),n.insetNorthwest(),xl(),"northwest",El(t,{right:0,top:2}),nC)},dC=function(t,e,n){return hl(rC(t),aC(t),n.insetNortheast(),yl(),"northeast",El(t,{left:1,top:2}),nC)},mC=function(t,e,n){return hl(oC(t,e),aC(t),n.insetNorth(),Sl(),"north",El(t,{top:2}),nC)},hC=function(t,e,n){return hl(oC(t,e),uC(t,e),n.insetSouth(),kl(),"south",El(t,{bottom:3}),nC)},gC=function(t,e,n){return hl(iC(t,e),cC(t,e),n.insetEast(),Ol(),"east",El(t,{right:0}),nC)},pC=function(t,e,n){return hl(rC(t),cC(t,e),n.insetWest(),zl(),"west",El(t,{left:1}),nC)},vC=function(t){switch(t){case"north":return mC;case"northeast":return dC;case"northwest":return fC;case"south":return hC;case"southeast":return lC;case"southwest":return sC;case"east":return gC;case"west":return pC}},bC=function(t,e,n,r,o){var i=qf(r).map(vC).getOr(mC);return i(t,e,n,r,o)},yC=function(t){switch(t){case"north":return hC;case"northeast":return lC;case"northwest":return sC;case"south":return mC;case"southeast":return dC;case"southwest":return fC;case"east":return pC;case"west":return gC}},xC=function(t,e,n,r,o){var i=qf(r).map(yC).getOr(mC);return i(t,e,n,r,o)},wC=tinymce.util.Tools.resolve("tinymce.util.Delay"),CC=function(t){var e=vw(t.action),n=t.dom.tag,r=function(e){return Ot(t.dom,"attributes").bind((function(t){return Ot(t,e)}))},o=function(){if("button"===n){var t=r("type").getOr("button"),e=r("role").map((function(t){return{role:t}})).getOr({});return T({type:t},e)}var o=r("role").getOr("button");return{role:o}};return{uid:t.uid,dom:t.dom,components:t.components,events:e,behaviours:op.augment(t.buttonBehaviours,[Yx.config({}),Tx.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:o()},eventOrder:t.eventOrder}},SC=dv({name:"Button",factory:CC,configFields:[Xi("uid",void 0),Ti("dom"),Xi("components",[]),op.field("buttonBehaviours",[Yx,Tx]),Fi("action"),Fi("role"),Xi("eventOrder",{})]}),kC=function(t){var e=sv(t)&&_t(t,"uid")?t.uid:dc("memento"),n=function(t){return t.getSystem().getByUid(e).getOrDie()},r=function(t){return t.getSystem().getByUid(e).toOptional()},o=function(){return T(T({},t),{uid:e})};return{get:n,getOpt:r,asSpec:o}},zC=tinymce.util.Tools.resolve("tinymce.util.I18n"),OC={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},MC="temporary-placeholder",_C=function(t){return function(){return Ot(t,MC).getOr("!not found!")}},TC=function(t,e){var n=t.toLowerCase();if(zC.isRtl()){var r=Nt(n,"-rtl");return Mt(e,r)?r:n}return n},EC=function(t,e){return Ot(e,TC(t,e))},AC=function(t,e){var n=e();return EC(t,n).getOrThunk(_C(n))},HC=function(t,e,n){var r=e();return EC(t,r).or(n).getOrThunk(_C(r))},DC=function(t){return!!zC.isRtl()&&Mt(OC,t)},VC=function(){return Nx("add-focusable",[ju((function(t){Ps(t.element,"svg").each((function(t){return Fn(t,"focusable","false")}))}))])},BC=function(t,e,n,r){var o,i,a=DC(e)?["tox-icon--flip"]:[],u=Ot(n,TC(e,n)).or(r).getOrThunk(_C(n));return{dom:{tag:t.tag,attributes:null!==(o=t.attributes)&&void 0!==o?o:{},classes:t.classes.concat(a),innerHtml:u},behaviours:mf(A(A([],null!==(i=t.behaviours)&&void 0!==i?i:[],!0),[VC()],!1))}},RC=function(t,e,n,r){return void 0===r&&(r=R.none()),BC(e,t,n(),r)},PC=function(t,e,n){var r=n(),o=tt(t,(function(t){return Mt(r,TC(t,r))}));return BC(e,o.getOr(MC),r,R.none())},LC={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},IC=function(t){var e=kC({dom:{tag:"p",innerHtml:t.translationProvider(t.text)},behaviours:mf([Ix.config({})])}),n=function(t){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+t+"%"}}}},r=function(t){return{dom:{tag:"div",classes:["tox-text"],innerHtml:t+"%"}}},o=kC({dom:{tag:"div",classes:t.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:mf([Ix.config({})])}),i=function(t,e){t.getSystem().isConnected()&&o.getOpt(t).each((function(t){Ix.set(t,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(e)]},r(e)])}))},a=function(t,n){if(t.getSystem().isConnected()){var r=e.get(t);Ix.set(r,[Ss(n)])}},u={updateProgress:i,updateText:a},c=nt([t.icon.toArray(),t.level.toArray(),t.level.bind((function(t){return R.from(LC[t])})).toArray()]),s=kC(SC.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[RC("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":t.translationProvider("Close")}},t.iconProvider)],action:function(e){t.onAction(e)}})),l=PC(c,{tag:"div",classes:["tox-notification__icon"]},t.iconProvider),f={dom:{tag:"div",classes:["tox-notification__body"]},components:[e.asSpec()],behaviours:mf([Ix.config({})])},d=[l,f];return{uid:t.uid,dom:{tag:"div",attributes:{role:"alert"},classes:t.level.map((function(t){return["tox-notification","tox-notification--in","tox-notification--"+t]})).getOr(["tox-notification","tox-notification--in"])},behaviours:mf([Yx.config({}),Nx("notification-events",[Hu(La(),(function(t){s.getOpt(t).each(Yx.focus)}))])]),components:d.concat(t.progress?[o.asSpec()]:[]).concat(t.closeButton?[s.asSpec()]:[]),apis:u}},FC=dv({name:"Notification",factory:IC,configFields:[Fi("level"),Ti("progress"),Ti("icon"),Ti("onAction"),Ti("text"),Ti("iconProvider"),Ti("translationProvider"),Qi("closeButton",!0)],apis:{updateProgress:function(t,e,n){t.updateProgress(e,n)},updateText:function(t,e,n){t.updateText(e,n)}}});function NC(t,e,n){var r=e.backstage.shared,o=function(t){switch(t){case"bc-bc":return hC;case"tc-tc":return mC;case"tc-bc":return Gl;case"bc-tc":default:return ql}},i=function(t){t.length>0&&$(t,(function(e,n){0===n?e.moveRel(null,"banner"):e.moveRel(t[n-1].getEl(),"bc-tc")}))},a=function(e,i){var a=!e.closeButton&&e.timeout&&(e.timeout>0||e.timeout<0),u=function(){i(),eC.hide(s)},c=Ms(FC.sketch({text:e.text,level:j(["success","error","warning","warn","info"],e.type)?e.type:void 0,progress:!0===e.progressBar,icon:R.from(e.icon),closeButton:!a,onAction:u,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),s=Ms(eC.sketch(T({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(s),e.timeout>0&&wC.setTimeout((function(){u()}),e.timeout);var l=function(){var e=Jr(ee.fromDom(t.getContentAreaContainer())),n=Qr(),r=_l(n.x,e.x,e.right),o=_l(n.y,e.y,e.bottom),i=Math.max(e.right,n.right),a=Math.max(e.bottom,n.bottom);return R.some(Yr(r,o,i-r,a-o))};return{close:u,moveTo:function(t,e){eC.showAt(s,_s(c),{anchor:{type:"makeshift",x:t,y:e}})},moveRel:function(t,e){var n=_s(c),i={maxHeightFunction:Md()};if("banner"!==e&&d(t)){var a=o(e),u={type:"node",root:Pn(),node:R.some(ee.fromDom(t)),overrides:i,layouts:{onRtl:function(){return[a]},onLtr:function(){return[a]}}};eC.showWithinBounds(s,n,{anchor:u},l)}else{var f=T(T({},r.anchors.banner()),{overrides:i});eC.showWithinBounds(s,n,{anchor:f},l)}},text:function(t){FC.updateText(c,t)},settings:e,getEl:function(){return c.element.dom},progressBar:{value:function(t){FC.updateProgress(c,t)}}}},u=function(t){t.close()},c=function(t){return t.settings};return{open:a,close:u,reposition:i,getArgs:c}}var jC,UC=function(t,e){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},o=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];c(n)&&(n=setTimeout((function(){n=null,t.apply(null,r)}),e))};return{cancel:r,throttle:o}},WC=function(t,e){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,t.apply(null,o)}),e)};return{cancel:r,throttle:o}},GC=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),qC=function(t,e){return t.isBlock(e)||j(["BR","IMG","HR","INPUT"],e.nodeName)||"false"===t.getContentEditable(e)},$C=function(t,e,n,r,o){var i=GC(t,(function(e){return qC(t,e)}));return R.from(i.backwards(e,n,r,o))},XC="[data-mce-autocompleter]",KC=function(t,e){return YC(ee.fromDom(t.selection.getNode())).getOrThunk((function(){var n=ee.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',t.getDoc());return Er(n,ee.fromDom(e.extractContents())),e.insertNode(n.dom),vn(n).each((function(t){return t.dom.normalize()})),$m(n).map((function(e){t.selection.setCursorLocation(e.dom,Um(e))})),n}))},YC=function(t){return Is(t,XC)},JC=function(t){return t.collapsed&&3===t.startContainer.nodeType},ZC=function(t){return t.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},QC=function(t){return""!==t&&-1!==" \f\n\r\t\v".indexOf(t)},tS=function(t,e){return t.substring(e.length)},eS=function(t,e,n){var r;for(r=e-1;r>=0;r--){var o=t.charAt(r);if(QC(o))return R.none();if(o===n)break}return R.some(r)},nS=function(t,e,n,r){if(void 0===r&&(r=0),!JC(e))return R.none();var o=function(t,e,r){return eS(r,e,n).getOr(e)},i=t.getParent(e.startContainer,t.isBlock)||t.getRoot();return $C(t,e.startContainer,e.startOffset,o,i).bind((function(t){var o=e.cloneRange();if(o.setStart(t.container,t.offset),o.setEnd(e.endContainer,e.endOffset),o.collapsed)return R.none();var i=ZC(o),a=i.lastIndexOf(n);return 0!==a||tS(i,n).length<r?R.none():R.some({text:tS(i,n),range:o,triggerChar:n})}))},rS=function(t,e,n,r){return void 0===r&&(r=0),YC(ee.fromDom(e.startContainer)).fold((function(){return nS(t,e,n,r)}),(function(e){var r=t.createRng();r.selectNode(e.dom);var o=ZC(r);return R.some({range:r,text:tS(o,n),triggerChar:n})}))},oS=function(t,e){e.on("keypress compositionend",t.onKeypress.throttle),e.on("remove",t.onKeypress.cancel);var n=function(t,e){Su(t,Fa(),{raw:e})};e.on("keydown",(function(e){var r=function(){return t.getView().bind(rb.getHighlighted)};8===e.which&&t.onKeypress.throttle(e),t.isActive()&&(27===e.which&&t.cancelIfNecessary(),t.isMenuOpen()?13===e.which?(r().each(ku),e.preventDefault()):40===e.which?(r().fold((function(){t.getView().each(rb.highlightFirst)}),(function(t){n(t,e)})),e.preventDefault(),e.stopImmediatePropagation()):37!==e.which&&38!==e.which&&39!==e.which||r().each((function(t){n(t,e),e.preventDefault(),e.stopImmediatePropagation()})):13!==e.which&&38!==e.which&&40!==e.which||t.cancelIfNecessary())})),e.on("NodeChange",(function(e){t.isActive()&&!t.isProcessingAction()&&YC(ee.fromDom(e.element)).isNone()&&t.cancelIfNecessary()}))},iS={setup:oS},aS=tinymce.util.Tools.resolve("tinymce.util.Promise"),uS=function(t,e){return{container:t,offset:e}},cS=function(t){return t.nodeType===ae},sS=function(t){return t.nodeType===ie},lS=function(t){if(cS(t))return uS(t,t.data.length);var e=t.childNodes;return e.length>0?lS(e[e.length-1]):uS(t,e.length)},fS=function(t,e){var n=t.childNodes;return n.length>0&&e<n.length?fS(n[e],0):n.length>0&&sS(t)&&n.length===e?lS(n[n.length-1]):uS(t,e)},dS=function(t,e){return $C(t,e.container,e.offset,(function(t,e){return 0===e?-1:e}),t.getRoot()).filter((function(t){var e=t.container.data.charAt(t.offset-1);return!QC(e)})).isSome()},mS=function(t){return function(e){var n=fS(e.startContainer,e.startOffset);return!dS(t,n)}},hS=function(t,e,n){return ht(n.triggerChars,(function(n){return rS(t,e,n)}))},gS=function(t,e){var n=e(),r=t.selection.getRng();return hS(t.dom,r,n).bind((function(n){return pS(t,e,n)}))},pS=function(t,e,n,r){void 0===r&&(r={});var o=e(),i=t.selection.getRng(),a=i.startContainer.nodeValue,u=Y(o.lookupByChar(n.triggerChar),(function(e){return n.text.length>=e.minChars&&e.matches.getOrThunk((function(){return mS(t.dom)}))(n.range,a,n.text)}));if(0===u.length)return R.none();var c=aS.all(q(u,(function(t){var e=t.fetch(n.text,t.maxResults,r);return e.then((function(e){return{matchText:n.text,items:e,columns:t.columns,onAction:t.onAction,highlightOn:t.highlightOn}}))})));return R.some({lookupData:c,context:n})},vS=ti([Hi("type"),Ui("text")]),bS=function(t){return xi("separatormenuitem",vS,t)},yS=ti([Xi("type","autocompleteitem"),Xi("active",!1),Xi("disabled",!1),Xi("meta",{}),Hi("value"),Ui("text"),Ui("icon")]),xS=ti([Hi("type"),Hi("ch"),Yi("minChars",1),Xi("columns",1),Yi("maxResults",10),Wi("matches"),Bi("fetch"),Bi("onAction"),na("highlightOn",[],si)]),wS=function(t){return xi("Autocompleter.Separator",vS,t)},CS=function(t){return xi("Autocompleter.Item",yS,t)},SS=function(t){return xi("Autocompleter",xS,t)},kS=[Qi("disabled",!1),Ui("tooltip"),Ui("icon"),Ui("text"),ta("onSetup",(function(){return p}))],zS=ti([Hi("type"),Bi("onAction")].concat(kS)),OS=function(t){return xi("toolbarbutton",zS,t)},MS=[Qi("active",!1)].concat(kS),_S=ti(MS.concat([Hi("type"),Bi("onAction")])),TS=function(t){return xi("ToggleButton",_S,t)},ES=[ta("predicate",O),Zi("scope","node",["node","editor"]),Zi("position","selection",["node","selection","line"])],AS=kS.concat([Xi("type","contextformbutton"),Xi("primary",!1),Bi("onAction"),Mi("original",w)]),HS=MS.concat([Xi("type","contextformbutton"),Xi("primary",!1),Bi("onAction"),Mi("original",w)]),DS=kS.concat([Xi("type","contextformbutton")]),VS=MS.concat([Xi("type","contextformtogglebutton")]),BS=ki("type",{contextformbutton:AS,contextformtogglebutton:HS}),RS=ti([Xi("type","contextform"),ta("initValue",x("")),Ui("label"),Ii("commands",BS),Ni("launch",ki("type",{contextformbutton:DS,contextformtogglebutton:VS}))].concat(ES)),PS=function(t){return xi("ContextForm",RS,t)},LS=ti([Xi("type","contexttoolbar"),Hi("items")].concat(ES)),IS=function(t){return xi("ContextToolbar",LS,t)},FS=function(t){var e={};return $(t,(function(t){e[t]={}})),gt(e)},NS=function(t){var e=t.ui.registry.getAll().popups,n=bt(e,(function(t){return SS(t).fold((function(t){throw new Error(Si(t))}),w)})),r=FS(St(n,(function(t){return t.ch}))),o=zt(n),i=function(t){return Y(o,(function(e){return e.ch===t}))};return{dataset:n,triggerChars:r,lookupByChar:i}};(function(t){t[t["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",t[t["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(jC||(jC={}));var jS,US=jC,WS="tox-menu-nav__js",GS="tox-collection__item",qS="tox-swatch",$S={normal:WS,color:qS},XS="tox-collection__item--enabled",KS="tox-collection__group-heading",YS="tox-collection__item-icon",JS="tox-collection__item-label",ZS="tox-collection__item-accessory",QS="tox-collection__item-caret",tk="tox-collection__item-checkmark",ek="tox-collection__item--active",nk="tox-collection__item-container",rk="tox-collection__item-container--column",ok="tox-collection__item-container--row",ik="tox-collection__item-container--align-right",ak="tox-collection__item-container--align-left",uk="tox-collection__item-container--valign-top",ck="tox-collection__item-container--valign-middle",sk="tox-collection__item-container--valign-bottom",lk=function(t){return Ot($S,t).getOr(WS)},fk=function(t){return"color"===t?"tox-swatches":"tox-menu"},dk=function(t){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:fk(t),tieredMenu:"tox-tiered-menu"}},mk=function(t){var e=dk(t);return{backgroundMenu:e.backgroundMenu,selectedMenu:e.selectedMenu,menu:e.menu,selectedItem:e.selectedItem,item:lk(t)}},hk=function(t,e,n){var r=dk(n);return{tag:"div",classes:nt([[r.menu,"tox-menu-"+e+"-column"],t?[r.hasIcons]:[]])}},gk=[Fw.parts.items({})],pk=function(t,e,n){var r=dk(n),o={tag:"div",classes:nt([[r.tieredMenu]])};return{dom:o,markers:mk(n)}},vk=function(t,e){return function(n){var r=G(n,e);return q(r,(function(e){return{dom:t,components:e}}))}},bk=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Fw.parts.items({preprocess:"auto"!==t?vk({tag:"div",classes:["tox-swatches__row"]},t):w})]}]}},yk=function(t){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Fw.parts.items({preprocess:vk({tag:"div",classes:["tox-collection__group"]},t)})]}},xk=function(t,e){var n=[],r=[];return $(t,(function(t,o){e(t,o)?(r.length>0&&n.push(r),r=[],Mt(t.dom,"innerHtml")&&r.push(t)):r.push(t)})),r.length>0&&n.push(r),q(n,(function(t){return{dom:{tag:"div",classes:["tox-collection__group"]},components:t}}))},wk=function(t,e,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===t?["tox-collection--list"]:["tox-collection--grid"])},components:[Fw.parts.items({preprocess:function(n){return"auto"!==t&&t>1?vk({tag:"div",classes:["tox-collection__group"]},t)(n):xk(n,(function(t,n){return"separator"===e[n].type}))}})]}},Ck=function(t,e){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Fw.parts.items({preprocess:function(e){return xk(e,(function(e,n){return"separator"===t[n].type}))}})]}},Sk=function(t){return U(t,(function(t){return"icon"in t&&void 0!==t.icon}))},kk=function(t){return console.error(Si(t)),console.log(t),R.none()},zk=function(t,e,n,r,o){var i=Ck(n);return{value:t,dom:i.dom,components:i.components,items:n}},Ok=function(t,e,n,r,o){if("color"===o){var i=bk(r);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o&&"auto"===r){i=wk(r,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o&&1===r){i=wk(1,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("normal"===o){i=wk(r,n);return{value:t,dom:i.dom,components:i.components,items:n}}if("listpreview"===o&&"auto"!==r){i=yk(r);return{value:t,dom:i.dom,components:i.components,items:n}}return{value:t,dom:hk(e,r,o),components:gk,items:n}},Mk=[Hi("type"),Hi("src"),Ui("alt"),na("classes",[],si)],_k=ti(Mk),Tk=[Hi("type"),Hi("text"),Ui("name"),na("classes",["tox-collection__item-label"],si)],Ek=ti(Tk),Ak=Jo((function(){return gi("type",{cardimage:_k,cardtext:Ek,cardcontainer:Hk})})),Hk=ti([Hi("type"),Ji("direction","horizontal"),Ji("align","left"),Ji("valign","middle"),Ii("items",Ak)]),Dk=[Qi("disabled",!1),Ui("text"),Ui("shortcut"),Oi("value","value",zo((function(){return oc("menuitem-value")})),ai()),Xi("meta",{})],Vk=ti([Hi("type"),Ui("label"),Ii("items",Ak),ta("onSetup",(function(){return p})),ta("onAction",p)].concat(Dk)),Bk=function(t){return xi("cardmenuitem",Vk,t)},Rk=ti([Hi("type"),Qi("active",!1),Ui("icon")].concat(Dk)),Pk=function(t){return xi("choicemenuitem",Rk,t)},Lk=[Hi("type"),Hi("fancytype"),ta("onAction",p)],Ik=[Xi("initData",{})].concat(Lk),Fk=[ra("initData",{},[Qi("allowCustomColors",!0),Gi("colors",ai())])].concat(Lk),Nk=ki("fancytype",{inserttable:Ik,colorswatch:Fk}),jk=function(t){return xi("fancymenuitem",Nk,t)},Uk=ti([Hi("type"),ta("onSetup",(function(){return p})),ta("onAction",p),Ui("icon")].concat(Dk)),Wk=function(t){return xi("menuitem",Uk,t)},Gk=ti([Hi("type"),Bi("getSubmenuItems"),ta("onSetup",(function(){return p})),Ui("icon")].concat(Dk)),qk=function(t){return xi("nestedmenuitem",Gk,t)},$k=ti([Hi("type"),Ui("icon"),Qi("active",!1),ta("onSetup",(function(){return p})),Bi("onAction")].concat(Dk)),Xk=function(t){return xi("togglemenuitem",$k,t)},Kk=function(t,e,n){var r=Km(t.element,"."+n);if(r.length>0){var o=et(r,(function(t){var n=t.dom.getBoundingClientRect().top,o=r[0].dom.getBoundingClientRect().top;return Math.abs(n-o)>e})).getOr(r.length);return R.some({numColumns:o,numRows:Math.ceil(r.length/o)})}return R.none()},Yk=function(t,e){return mf([Nx(t,e)])},Jk=function(t){return Yk(oc("unnamed-events"),t)},Zk={namedEvents:Yk,unnamedEvents:Jk},Qk=oc("tooltip.exclusive"),tz=oc("tooltip.show"),ez=oc("tooltip.hide"),nz=function(t,e,n){t.getSystem().broadcastOn([Qk],{})},rz=function(t,e,n,r){n.getTooltip().each((function(t){t.getSystem().isConnected()&&Ix.set(t,r)}))},oz=Object.freeze({__proto__:null,hideAllExclusive:nz,setComponents:rz}),iz=function(t,e){var n=function(n){e.getTooltip().each((function(r){$h(r),t.onHide(n,r),e.clearTooltip()})),e.clearTimer()},r=function(n){if(!e.isShowing()){nz(n);var r=t.lazySink(n).getOrDie(),o=n.getSystem().build({dom:t.tooltipDom,components:t.tooltipComponents,events:_u("normal"===t.mode?[Hu(Pa(),(function(t){Cu(n,tz)})),Hu(Ba(),(function(t){Cu(n,ez)}))]:[]),behaviours:mf([Ix.config({})])});e.setTooltip(o),Wh(r,o),t.onShow(n,o),Lh.position(r,o,{anchor:t.anchor(n)})}};return _u(nt([[Hu(tz,(function(n){e.resetTimer((function(){r(n)}),t.delay)})),Hu(ez,(function(r){e.resetTimer((function(){n(r)}),t.delay)})),Hu(tu(),(function(t,e){var r=e;r.universal||j(r.channels,Qk)&&n(t)})),Uu((function(t){n(t)}))],"normal"===t.mode?[Hu(La(),(function(t){Cu(t,tz)})),Hu(Za(),(function(t){Cu(t,ez)})),Hu(Pa(),(function(t){Cu(t,tz)})),Hu(Ba(),(function(t){Cu(t,ez)}))]:[Hu(xu(),(function(t,e){Cu(t,tz)})),Hu(wu(),(function(t){Cu(t,ez)}))]]))},az=Object.freeze({__proto__:null,events:iz}),uz=[Ti("lazySink"),Ti("tooltipDom"),Xi("exclusive",!0),Xi("tooltipComponents",[]),Xi("delay",300),Zi("mode","normal",["normal","follow-highlight"]),Xi("anchor",(function(t){return{type:"hotspot",hotspot:t,layouts:{onLtr:x([ql,Gl,Nl,Ul,jl,Wl]),onRtl:x([ql,Gl,Nl,Ul,jl,Wl])}}})),ul("onHide"),ul("onShow")],cz=function(){var t=od(),e=od(),n=function(){t.on(clearTimeout)},r=function(e,r){n(),t.set(setTimeout(e,r))},o=x("not-implemented");return zc({getTooltip:e.get,isShowing:e.isSet,setTooltip:e.set,clearTooltip:e.clear,clearTimer:n,resetTimer:r,readState:o})},sz=Object.freeze({__proto__:null,init:cz}),lz=gf({fields:uz,name:"tooltipping",active:az,state:sz,apis:oz}),fz=function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},dz=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),mz=tinymce.util.Tools.resolve("tinymce.EditorManager"),hz=function(t){var e=t.getParam("skin"),n=t.getParam("skin_url");if(!1!==e){var r=e||"oxide";n=n?t.documentBaseURI.toAbsolute(n):mz.baseURL+"/skins/ui/"+r}return n},gz=function(t){return t.getParam("readonly",!1,"boolean")},pz=function(t){return!1===t.getParam("skin")},vz=function(t){return t.getParam("height",Math.max(t.getElement().offsetHeight,200))},bz=function(t){return t.getParam("width",dz.DOM.getStyle(t.getElement(),"width"))},yz=function(t){return R.from(t.getParam("min_width")).filter(h)},xz=function(t){return R.from(t.getParam("min_height")).filter(h)},wz=function(t){return R.from(t.getParam("max_width")).filter(h)},Cz=function(t){return R.from(t.getParam("max_height")).filter(h)},Sz=function(t){return R.from(t.getParam("style_formats")).filter(u)},kz=function(t){return t.getParam("style_formats_merge",!1,"boolean")},zz=function(t){return t.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},Oz=function(t){return t.getParam("content_langs",void 0,"array")},Mz=function(t){return t.getParam("removed_menuitems","")},_z=function(t){return!1!==t.getParam("menubar",!0,"boolean")},Tz=function(t){var e=t.getParam("toolbar",!0),n=!0===e,r=i(e),o=u(e)&&e.length>0;return!Az(t)&&(o||r||n)},Ez=function(t){var e=W(9,(function(e){return t.getParam("toolbar"+(e+1),!1,"string")})),n=Y(e,(function(t){return"string"===typeof t}));return n.length>0?R.some(n):R.none()},Az=function(t){return Ez(t).fold((function(){var e=t.getParam("toolbar",[],"string[]");return e.length>0}),M)};(function(t){t["default"]="wrap",t["floating"]="floating",t["sliding"]="sliding",t["scrolling"]="scrolling"})(jS||(jS={}));var Hz,Dz=function(t){return t.getParam("toolbar_mode","","string")};(function(t){t["auto"]="auto",t["top"]="top",t["bottom"]="bottom"})(Hz||(Hz={}));var Vz,Bz=function(t){return t.getParam("toolbar_groups",{},"object")},Rz=function(t){return t.getParam("toolbar_location",Hz.auto,"string")},Pz=function(t){return Rz(t)===Hz.bottom},Lz=function(t){return t.getParam("fixed_toolbar_container","","string")},Iz=function(t){return t.getParam("fixed_toolbar_container_target")},Fz=function(t){return t.getParam("toolbar_persist",!1,"boolean")},Nz=function(t){if(!t.inline)return R.none();var e=Lz(t);if(e.length>0)return Ls(Pn(),e);var n=Iz(t);return d(n)?R.some(ee.fromDom(n)):R.none()},jz=function(t){return t.inline&&Nz(t).isSome()},Uz=function(t){var e=Nz(t);return e.getOrThunk((function(){return En(Tn(ee.fromDom(t.getElement())))}))},Wz=function(t){return t.inline&&!_z(t)&&!Tz(t)&&!Az(t)},Gz=function(t){var e=t.getParam("toolbar_sticky",!1,"boolean");return(e||t.inline)&&!jz(t)&&!Wz(t)},qz=function(t){return t.getParam("toolbar_sticky_offset",0,"number")},$z=function(t){return t.getParam("draggable_modal",!1,"boolean")},Xz=function(t){var e=t.getParam("menu");return e?bt(e,(function(t){return T(T({},t),{items:t.items})})):{}},Kz=function(t){return t.getParam("menubar")},Yz=function(t){return t.getParam("toolbar",!0)},Jz=function(t){return t.getParam("file_picker_callback")},Zz=function(t){return t.getParam("file_picker_types")},Qz=function(t){return t.getParam("file_browser_callback_types")},tO=function(t){return!1===t.getParam("typeahead_urls")},eO=function(t){return t.getParam("anchor_top","#top")},nO=function(t){return t.getParam("anchor_bottom","#bottom")},rO=function(t){var e=t.getParam("file_picker_validator_handler",void 0,"function");return void 0===e?t.getParam("filepicker_validator_handler",void 0,"function"):e},oO="silver.readonly",iO=ti([Vi("readonly")]),aO=function(t,e){var n=t.outerContainer,r=n.element;e&&(t.mothership.broadcastOn([yg()],{target:r}),t.uiMothership.broadcastOn([yg()],{target:r})),t.mothership.broadcastOn([oO],{readonly:e}),t.uiMothership.broadcastOn([oO],{readonly:e})},uO=function(t,e){t.on("init",(function(){t.mode.isReadOnly()&&aO(e,!0)})),t.on("SwitchMode",(function(){return aO(e,t.mode.isReadOnly())})),gz(t)&&t.setMode("readonly")},cO=function(){var t;return yf.config({channels:(t={},t[oO]={schema:iO,onReceive:function(t,e){Pv.set(t,e.readonly)}},t)})},sO=function(t){return Pv.config({disabled:t,disableClass:"tox-collection__item--state-disabled"})},lO=function(t){return Pv.config({disabled:t})},fO=function(t){return Pv.config({disabled:t,disableClass:"tox-tbtn--disabled"})},dO=function(t){return Pv.config({disabled:t,disableClass:"tox-tbtn--disabled",useNative:!1})},mO={item:sO,button:lO,splitButton:fO,toolbarButton:dO},hO=function(t,e){var n=t.getApi(e);return function(t){t(n)}},gO=function(t,e){return ju((function(n){var r=hO(t,n);r((function(n){var r=t.onSetup(n);m(r)&&e.set(r)}))}))},pO=function(t,e){return Uu((function(n){return hO(t,n)(e.get())}))},vO=function(t,e){return Gu((function(n,r){hO(t,n)(t.onAction),t.triggersSubmenu||e!==US.CLOSE_ON_EXECUTE||(Cu(n,iu()),r.stop())}))},bO=(Vz={},Vz[eu()]=["disabling","alloy.base.behaviour","toggling","item-events"],Vz),yO=At,xO=function(t,e,n,r){var o=oa(p);return{type:"item",dom:e.dom,components:yO(e.optComponents),data:t.data,eventOrder:bO,hasSubmenu:t.triggersSubmenu,itemBehaviours:mf([Nx("item-events",[vO(t,n),gO(t,o),pO(t,o)]),mO.item((function(){return t.disabled||r.isDisabled()})),cO(),Ix.config({})].concat(t.itemBehaviours))}},wO=function(t){return{value:t.value,meta:T({text:t.text.getOr("")},t.meta)}},CO=tinymce.util.Tools.resolve("tinymce.Env"),SO=function(t){var e={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},n={meta:"Ctrl",access:"Shift+Alt"},r=CO.mac?e:n,o=t.split("+"),i=q(o,(function(t){var e=t.toLowerCase().trim();return Mt(r,e)?r[e]:t}));return CO.mac?i.join(""):i.join("+")},kO=function(t,e,n){return void 0===n&&(n=[YS]),RC(t,{tag:"div",classes:n},e)},zO=function(t){return{dom:{tag:"div",classes:[JS]},components:[Ss(zC.translate(t))]}},OO=function(t,e){return{dom:{tag:"div",classes:e,innerHtml:t}}},MO=function(t,e){return{dom:{tag:"div",classes:[JS]},components:[{dom:{tag:t.tag,styles:t.styles},components:[Ss(zC.translate(e))]}]}},_O=function(t){return{dom:{tag:"div",classes:[ZS],innerHtml:SO(t)}}},TO=function(t){return kO("checkmark",t,[tk])},EO=function(t){return kO("chevron-right",t,[QS])},AO=function(t){return kO("chevron-down",t,[QS])},HO=function(t,e){var n="vertical"===t.direction?rk:ok,r="left"===t.align?ak:ik,o=function(){switch(t.valign){case"top":return uk;case"middle":return ck;case"bottom":return sk}};return{dom:{tag:"div",classes:[nk,n,r,o()]},components:e}},DO=function(t,e,n){return{dom:{tag:"img",classes:e,attributes:{src:t,alt:n.getOr("")}}}},VO=function(t,e,n){var r="custom",o="remove",i=t.ariaLabel,a=t.value,u=t.iconContent.map((function(t){return HC(t,e.icons,n)})),c=function(){var t=qS,n=u.getOr(""),c=i.map((function(t){return{title:e.translate(t)}})).getOr({}),s={tag:"div",attributes:c,classes:[t]};return T(T({},s),a===r?{tag:"button",classes:A(A([],s.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:n}:a===o?{classes:A(A([],s.classes,!0),["tox-swatch--remove"],!1),innerHtml:n}:{attributes:T(T({},s.attributes),{"data-mce-color":a}),styles:{"background-color":a}})};return{dom:c(),optComponents:[]}},BO=function(t){var e=t.map((function(t){return{attributes:{title:zC.translate(t)}}})).getOr({});return T({tag:"div",classes:[WS,GS]},e)},RO=function(t,e,n,r){var o={tag:"div",classes:[YS]},i=function(t){return RC(t,o,e.icons,r)},a=function(){return R.some({dom:o})},u=n?t.iconContent.map(i).orThunk(a):R.none(),c=t.checkMark,s=R.from(t.meta).fold((function(){return zO}),(function(t){return Mt(t,"style")?S(MO,t.style):zO})),l=t.htmlContent.fold((function(){return t.textContent.map(s)}),(function(t){return R.some(OO(t,[JS]))})),f={dom:BO(t.ariaLabel),optComponents:[u,l,t.shortcutContent.map(_O),c,t.caret]};return f},PO=function(t,e,n,r){return void 0===r&&(r=R.none()),"color"===t.presets?VO(t,e,r):RO(t,e,n,r)},LO=function(t,e){return Ot(t,"tooltipWorker").map((function(t){return[lz.config({lazySink:e.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(t){return{type:"submenu",item:t,overrides:{maxHeightFunction:Md}}},mode:"follow-highlight",onShow:function(e,n){t((function(t){lz.setComponents(e,[ks({element:ee.fromDom(t)})])}))}})]})).getOr([])},IO=function(t){return dz.DOM.encode(t)},FO=function(t,e){var n=zC.translate(t),r=IO(n);if(e.length>0){var o=new RegExp(fz(e),"gi");return r.replace(o,(function(t){return'<span class="tox-autocompleter-highlight">'+t+"</span>"}))}return r},NO=function(t,e,n,r,o,i,a,u){void 0===u&&(u=!0);var c=PO({presets:r,textContent:R.none(),htmlContent:n?t.text.map((function(t){return FO(t,e)})):R.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:R.none(),checkMark:R.none(),caret:R.none(),value:t.value},a.providers,u,t.icon);return xO({data:wO(t),disabled:t.disabled,getApi:x({}),onAction:function(e){return o(t.value,t.meta)},onSetup:x(p),triggersSubmenu:!1,itemBehaviours:LO(t.meta,a)},c,i,a.providers)},jO=function(t,e){return q(t,(function(t){switch(t.type){case"cardcontainer":return HO(t,jO(t.items,e));case"cardimage":return DO(t.src,t.classes,t.alt);case"cardtext":var n=t.name.exists((function(t){return j(e.cardText.highlightOn,t)})),r=n?R.from(e.cardText.matchText).getOr(""):"";return OO(FO(t.text,r),t.classes)}}))},UO=function(t,e,n,r){var o=function(t){return{isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){Pv.set(t,e),$(Km(t.element,"*"),(function(n){t.getSystem().getByDom(n).each((function(t){t.hasConfigured(Pv)&&Pv.set(t,e)}))}))}}},i={dom:BO(t.label),optComponents:[R.some({dom:{tag:"div",classes:[nk,ok]},components:jO(t.items,r)})]};return xO({data:wO(T({text:R.none()},t)),disabled:t.disabled,getApi:o,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:R.from(r.itemBehaviours).getOr([])},i,e,n.providers)},WO=function(t,e,n,r,o,i,a,u){void 0===u&&(u=!0);var c=function(t){return{setActive:function(e){gw.set(t,e)},isActive:function(){return gw.isOn(t)},isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)}}},s=PO({presets:n,textContent:e?t.text:R.none(),htmlContent:R.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:e?t.shortcut:R.none(),checkMark:e?R.some(TO(a.icons)):R.none(),caret:R.none(),value:t.value},a,u);return Co(xO({data:wO(t),disabled:t.disabled,getApi:c,onAction:function(e){return r(t.value)},onSetup:function(t){return t.setActive(o),p},triggersSubmenu:!1,itemBehaviours:[]},s,i,a),{toggling:{toggleClass:XS,toggleOnExecute:!1,selected:t.active}})},GO=Np(_w(),Tw()),qO=function(t){return{value:t}},$O=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,XO=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,KO=function(t){return $O.test(t)||XO.test(t)},YO=function(t){return Ft(t,"#").toUpperCase()},JO=function(t){return KO(t)?R.some({value:YO(t)}):R.none()},ZO=function(t){var e=t.value.replace($O,(function(t,e,n,r){return e+e+n+n+r+r}));return{value:e}},QO=function(t){var e=ZO(t),n=XO.exec(e.value);return null===n?["FFFFFF","FF","FF","FF"]:n},tM=function(t){var e=t.toString(16);return(1===e.length?"0"+e:e).toUpperCase()},eM=function(t){var e=tM(t.red)+tM(t.green)+tM(t.blue);return qO(e)},nM=Math.min,rM=Math.max,oM=Math.round,iM=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,aM=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,uM=function(t,e,n,r){return{red:t,green:e,blue:n,alpha:r}},cM=function(t){var e=parseInt(t,10);return e.toString()===t&&e>=0&&e<=255},sM=function(t){var e,n,r,o=(t.hue||0)%360,i=t.saturation/100,a=t.value/100;if(i=rM(0,nM(i,1)),a=rM(0,nM(a,1)),0===i)return e=n=r=oM(255*a),uM(e,n,r,1);var u=o/60,c=a*i,s=c*(1-Math.abs(u%2-1)),l=a-c;switch(Math.floor(u)){case 0:e=c,n=s,r=0;break;case 1:e=s,n=c,r=0;break;case 2:e=0,n=c,r=s;break;case 3:e=0,n=s,r=c;break;case 4:e=s,n=0,r=c;break;case 5:e=c,n=0,r=s;break;default:e=n=r=0}return e=oM(255*(e+l)),n=oM(255*(n+l)),r=oM(255*(r+l)),uM(e,n,r,1)},lM=function(t){var e=QO(t),n=parseInt(e[1],16),r=parseInt(e[2],16),o=parseInt(e[3],16);return uM(n,r,o,1)},fM=function(t,e,n,r){var o=parseInt(t,10),i=parseInt(e,10),a=parseInt(n,10),u=parseFloat(r);return uM(o,i,a,u)},dM=function(t){if("transparent"===t)return R.some(uM(0,0,0,0));var e=iM.exec(t);if(null!==e)return R.some(fM(e[1],e[2],e[3],"1"));var n=aM.exec(t);return null!==n?R.some(fM(n[1],n[2],n[3],n[4])):R.none()},mM=function(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"},hM=uM(255,0,0,1),gM=function(t){return t.fire("SkinLoaded")},pM=function(t,e){return t.fire("SkinLoadError",e)},vM=function(t){return t.fire("ResizeEditor")},bM=function(t,e){return t.fire("ResizeContent",e)},yM=function(t,e){return t.fire("ScrollContent",e)},xM=function(t,e){return t.fire("TextColorChange",e)},wM=function(t,e,n){return{hue:t,saturation:e,value:n}},CM=function(t){var e=0,n=0,r=0,o=t.red/255,i=t.green/255,a=t.blue/255,u=Math.min(o,Math.min(i,a)),c=Math.max(o,Math.max(i,a));if(u===c)return r=u,wM(0,0,100*r);var s=o===u?i-a:a===u?o-i:a-o;return e=o===u?3:a===u?1:5,e=60*(e-s/(c-u)),n=(c-u)/c,r=c,wM(Math.round(e),Math.round(100*n),Math.round(100*r))},SM=function(t){return CM(lM(t))},kM=function(t){return eM(sM(t))},zM=function(t){return JO(t).orThunk((function(){return dM(t).map(eM)})).getOrThunk((function(){var e=document.createElement("canvas");e.height=1,e.width=1;var n=e.getContext("2d");n.clearRect(0,0,e.width,e.height),n.fillStyle="#FFFFFF",n.fillStyle=t,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,o=r[0],i=r[1],a=r[2],u=r[3];return eM(uM(o,i,a,u))}))},OM=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),MM="tinymce-custom-colors";function _M(t){void 0===t&&(t=10);var e=OM.getItem(MM),n=i(e)?JSON.parse(e):[],r=function(e){var n=t-e.length;return n<0?e.slice(0,t):e},o=r(n),a=function(e){N(o,e).each(u),o.unshift(e),o.length>t&&o.pop(),OM.setItem(MM,JSON.stringify(o))},u=function(t){o.splice(t,1)},c=function(){return o.slice(0)};return{add:a,state:c}}var TM,EM="choiceitem",AM=[{type:EM,text:"Light Green",value:"#BFEDD2"},{type:EM,text:"Light Yellow",value:"#FBEEB8"},{type:EM,text:"Light Red",value:"#F8CAC6"},{type:EM,text:"Light Purple",value:"#ECCAFA"},{type:EM,text:"Light Blue",value:"#C2E0F4"},{type:EM,text:"Green",value:"#2DC26B"},{type:EM,text:"Yellow",value:"#F1C40F"},{type:EM,text:"Red",value:"#E03E2D"},{type:EM,text:"Purple",value:"#B96AD9"},{type:EM,text:"Blue",value:"#3598DB"},{type:EM,text:"Dark Turquoise",value:"#169179"},{type:EM,text:"Orange",value:"#E67E23"},{type:EM,text:"Dark Red",value:"#BA372A"},{type:EM,text:"Dark Purple",value:"#843FA1"},{type:EM,text:"Dark Blue",value:"#236FA1"},{type:EM,text:"Light Gray",value:"#ECF0F1"},{type:EM,text:"Medium Gray",value:"#CED4D9"},{type:EM,text:"Gray",value:"#95A5A6"},{type:EM,text:"Dark Gray",value:"#7E8C8D"},{type:EM,text:"Navy Blue",value:"#34495E"},{type:EM,text:"Black",value:"#000000"},{type:EM,text:"White",value:"#ffffff"}],HM=_M(10),DM=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push({text:t[n+1],value:"#"+zM(t[n]).value,type:"choiceitem"});return e},VM=function(t,e){return t.getParam("color_cols",e,"number")},BM=function(t){return!1!==t.getParam("custom_colors")},RM=function(t){return t.getParam("color_map")},PM=function(t){var e=RM(t);return void 0!==e?DM(e):AM},LM=function(){return q(HM.state(),(function(t){return{type:EM,text:t,value:t}}))},IM=function(t){HM.add(t)},FM="#000000",NM=function(t,e){var n;return t.dom.getParents(t.selection.getStart(),(function(t){var r;(r=t.style["forecolor"===e?"color":"background-color"])&&(n=n||r)})),R.from(n)},jM=function(t,e,n){t.undoManager.transact((function(){t.focus(),t.formatter.apply(e,{value:n}),t.nodeChanged()}))},UM=function(t,e){t.undoManager.transact((function(){t.focus(),t.formatter.remove(e,{value:null},null,!0),t.nodeChanged()}))},WM=function(t){t.addCommand("mceApplyTextcolor",(function(e,n){jM(t,e,n)})),t.addCommand("mceRemoveTextcolor",(function(e){UM(t,e)}))},GM=function(t){return Math.max(5,Math.ceil(Math.sqrt(t)))},qM=function(t){var e=PM(t),n=GM(e.length);return VM(t,n)},$M=function(t){var e="choiceitem",n={type:e,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:e,text:"Custom color",icon:"color-picker",value:"custom"};return t?[n,r]:[n]},XM=function(t,e,n,r){if("custom"===n){var o=t_(t);o((function(n){n.each((function(n){IM(n),t.execCommand("mceApplyTextcolor",e,n),r(n)}))}),FM)}else"remove"===n?(r(""),t.execCommand("mceRemoveTextcolor",e)):(r(n),t.execCommand("mceApplyTextcolor",e,n))},KM=function(t,e){return t.concat(LM().concat($M(e)))},YM=function(t,e){return function(n){n(KM(t,e))}},JM=function(t,e,n){var r="forecolor"===e?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";t.setIconFill(r,n)},ZM=function(t,e,n,r,o){t.ui.registry.addSplitButton(e,{tooltip:r,presets:"color",icon:"forecolor"===e?"text-color":"highlight-bg-color",select:function(e){var r=NM(t,n);return r.bind((function(t){return dM(t).map((function(t){var n=eM(t).value;return jt(e.toLowerCase(),n)}))})).getOr(!1)},columns:qM(t),fetch:YM(PM(t),BM(t)),onAction:function(e){XM(t,n,o.get(),p)},onItemAction:function(r,i){XM(t,n,i,(function(n){o.set(n),xM(t,{name:e,color:n})}))},onSetup:function(n){JM(n,e,o.get());var r=function(t){t.name===e&&JM(n,t.name,t.color)};return t.on("TextColorChange",r),function(){t.off("TextColorChange",r)}}})},QM=function(t,e,n,r){t.ui.registry.addNestedMenuItem(e,{text:r,icon:"forecolor"===e?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(e){XM(t,n,e.value,p)}}]}})},t_=function(t){return function(e,n){var r=!1,o=function(n){var o=n.getData(),i=o.colorpicker;r?(e(R.from(i)),n.close()):t.windowManager.alert(t.translate(["Invalid hex color code: {0}",i]))},i=function(t,e){"hex-valid"===e.name&&(r=e.value)},a={colorpicker:n};t.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:a,onAction:i,onSubmit:o,onClose:p,onCancel:function(){e(R.none())}})}},e_=function(t){WM(t);var e=oa(FM),n=oa(FM);ZM(t,"forecolor","forecolor","Text color",e),ZM(t,"backcolor","hilitecolor","Background color",n),QM(t,"forecolor","forecolor","Text color"),QM(t,"backcolor","hilitecolor","Background color")},n_=function(t,e,n,r,o,i,a,u){var c=Sk(e),s="color"!==o?"normal":"color",l=r_(e,n,r,s,i,a,u);return Ok(t,c,l,r,o)},r_=function(t,e,n,r,o,i,a){return At(q(t,(function(u){return"choiceitem"===u.type?Pk(u).fold(kk,(function(c){return R.some(WO(c,1===n,r,e,i(u.value),o,a,Sk(t)))})):R.none()})))},o_=function(t,e){var n=mk(e);if(1===t)return{mode:"menu",moveOnTab:!0};if("auto"===t)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===e?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},i_=function(t,e){return 1===t?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===t?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===e?".tox-swatches__row":".tox-collection__group",cell:"color"===e?"."+qS:"."+GS}}},a_=function(t,e){var n=u_(t,e),r=e.colorinput.getColorCols(),o="color",i=n_(oc("menu-value"),n,(function(e){t.onAction({value:e})}),r,o,US.CLOSE_ON_EXECUTE,O,e.shared.providers),a=T(T({},i),{markers:mk(o),movement:o_(r,o)});return{type:"widget",data:{value:oc("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GO.widget(Fw.sketch(a))]}},u_=function(t,e){var n=t.initData.allowCustomColors&&e.colorinput.hasCustomColors();return t.initData.colors.fold((function(){return KM(e.colorinput.getColors(),n)}),(function(t){return t.concat($M(n))}))},c_=oc("cell-over"),s_=oc("cell-execute"),l_=function(t,e,n){var r,o=function(n){return Su(n,c_,{row:t,col:e})},i=function(n){return Su(n,s_,{row:t,col:e})},a=function(t,e){e.stop(),i(t)};return Ms({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:mf([Nx("insert-table-picker-cell",[Hu(Pa(),Yx.focus),Hu(eu(),i),Hu(Wa(),a),Hu(ru(),a)]),gw.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Yx.config({onFocus:o})])})},f_=function(t,e,n){for(var r=[],o=0;o<e;o++){for(var i=[],a=0;a<n;a++)i.push(l_(o,a,t));r.push(i)}return r},d_=function(t,e,n,r,o){for(var i=0;i<r;i++)for(var a=0;a<o;a++)gw.set(t[i][a],i<=e&&a<=n)},m_=function(t){return rt(t,(function(t){return q(t,_s)}))},h_=function(t,e){return Ss(e+"x"+t)},g_=function(t){var e=10,n=10,r=oc("size-label"),o=f_(r,e,n),i=h_(0,0),a=kC({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[i],behaviours:mf([Ix.config({})])});return{type:"widget",data:{value:oc("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GO.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:m_(o).concat(a.asSpec()),behaviours:mf([Nx("insert-table-picker",[ju((function(t){Ix.set(a.get(t),[i])})),Lu(c_,(function(t,r,i){var u=i.event,c=u.row,s=u.col;d_(o,c,s,e,n),Ix.set(a.get(t),[h_(c+1,s+1)])})),Lu(s_,(function(e,n,r){var o=r.event,i=o.row,a=o.col;t.onAction({numRows:i+1,numColumns:a+1}),Cu(e,iu())}))]),Tx.config({initSize:{numRows:e,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},p_={inserttable:g_,colorswatch:a_},v_=function(t,e){return Ot(p_,t.fancytype).map((function(n){return n(t,e)}))},b_=function(t,e,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1);var i=o?AO(n.icons):EO(n.icons),a=function(t){return{isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)}}},u=PO({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:R.none(),ariaLabel:t.text,caret:R.some(i),checkMark:R.none(),shortcutContent:t.shortcut},n,r);return xO({data:wO(t),getApi:a,disabled:t.disabled,onAction:p,onSetup:t.onSetup,triggersSubmenu:!0,itemBehaviours:[]},u,e,n)},y_=function(t,e,n,r){void 0===r&&(r=!0);var o=function(t){return{isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)}}},i=PO({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:R.none(),ariaLabel:t.text,caret:R.none(),checkMark:R.none(),shortcutContent:t.shortcut},n,r);return xO({data:wO(t),getApi:o,disabled:t.disabled,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,e,n)},x_=function(t){var e=t.text.fold((function(){return{}}),(function(t){return{innerHtml:t}}));return{type:"separator",dom:T({tag:"div",classes:[GS,KS]},e),components:[]}},w_=function(t,e,n,r){void 0===r&&(r=!0);var o=function(t){return{setActive:function(e){gw.set(t,e)},isActive:function(){return gw.isOn(t)},isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)}}},i=PO({iconContent:t.icon,textContent:t.text,htmlContent:R.none(),ariaLabel:t.text,checkMark:R.some(TO(n.icons)),caret:R.none(),shortcutContent:t.shortcut,presets:"normal",meta:t.meta},n,r);return Co(xO({data:wO(t),disabled:t.disabled,getApi:o,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,e,n),{toggling:{toggleClass:XS,toggleOnExecute:!1,selected:t.active}})},C_=NO,S_=x_,k_=y_,z_=b_,O_=w_,M_=v_,__=UO;(function(t){t[t["ContentFocus"]=0]="ContentFocus",t[t["UiFocus"]=1]="UiFocus"})(TM||(TM={}));var T_=function(t,e,n,r,o){var i=n.shared.providers,a=function(t){return o?T(T({},t),{shortcut:R.none(),icon:t.text.isSome()?R.none():t.icon}):t};switch(t.type){case"menuitem":return Wk(t).fold(kk,(function(t){return R.some(k_(a(t),e,i,r))}));case"nestedmenuitem":return qk(t).fold(kk,(function(t){return R.some(z_(a(t),e,i,r,o))}));case"togglemenuitem":return Xk(t).fold(kk,(function(t){return R.some(O_(a(t),e,i,r))}));case"separator":return bS(t).fold(kk,(function(t){return R.some(S_(t))}));case"fancymenuitem":return jk(t).fold(kk,(function(t){return M_(a(t),n)}));default:return console.error("Unknown item in general menu",t),R.none()}},E_=function(t,e,n,r,o,i,a){var u=1===r,c=!u||Sk(t);return At(q(t,(function(t){switch(t.type){case"separator":return wS(t).fold(kk,(function(t){return R.some(S_(t))}));case"cardmenuitem":return Bk(t).fold(kk,(function(t){return R.some(__(T(T({},t),{onAction:function(e){t.onAction(e),n(t.value,t.meta)}}),o,i,{itemBehaviours:LO(t.meta,i),cardText:{matchText:e,highlightOn:a}}))}));case"autocompleteitem":default:return CS(t).fold(kk,(function(t){return R.some(C_(t,e,u,"normal",n,o,i,c))}))}})))},A_=function(t,e,n,r,o){var i=Sk(e),a=At(q(e,(function(t){var e=function(t){return o?!Mt(t,"text"):i},a=function(t){return T_(t,n,r,e(t),o)};return"nestedmenuitem"===t.type&&t.getSubmenuItems().length<=0?a(T(T({},t),{disabled:!0})):a(t)}))),u=o?zk:Ok;return u(t,i,a,1,"normal")},H_=function(t){return Zw.singleData(t.value,t)},D_=function(t,e,n,r){var o=n===TM.ContentFocus?Ob():zb(),i=o_(e,r),a=mk(r);return{dom:t.dom,components:t.components,items:t.items,value:t.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:i,fakeFocus:n===TM.ContentFocus,focusManager:o,menuBehaviours:Zk.unnamedEvents("auto"!==e?[]:[ju((function(t,e){Kk(t,4,a.item).each((function(e){var n=e.numColumns,r=e.numRows;Tx.setGridSize(t,r,n)}))}))])}},V_=function(t,e){var n=od(),r=oa(!1),o=Ms(eC.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:mf([Nx("dismissAutocompleter",[Hu(hu(),(function(){return c()}))])]),lazySink:e.getSink})),i=function(){return eC.isOpen(o)},a=function(){return n.get().isSome()},u=function(){a()&&eC.hide(o)},c=function(){if(a()){var e=n.get().map((function(t){return t.element}));YC(e.getOr(ee.fromDom(t.selection.getNode()))).each(Rr),u(),n.clear(),r.set(!1)}},s=he((function(){return NS(t)})),l=function(n,o){var i=ht(o,(function(t){return R.from(t.columns)})).getOr(1);return rt(o,(function(o){var a=o.items;return E_(a,o.matchText,(function(e,i){var a=t.selection.getRng();rS(t.dom,a,n).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(t){var n=t.range,a={hide:function(){c()},reload:function(t){u(),h(t)}};r.set(!0),o.onAction(a,n,e,i),r.set(!1)}))}),i,US.BUBBLE_TO_SANDBOX,e,o.highlightOn)}))},f=function(e){if(!a()){var o=KC(t,e.range);n.set({triggerChar:e.triggerChar,element:o,matchLength:e.text.length}),r.set(!1)}},d=function(e,n,r,i){e.matchLength=n.text.length;var a=ht(r,(function(t){return R.from(t.columns)})).getOr(1);eC.showAt(o,Fw.sketch(D_(Ok("autocompleter-value",!0,i,a,"normal"),a,TM.ContentFocus,"normal")),{anchor:{type:"node",root:ee.fromDom(t.getBody()),node:R.from(e.element)}}),eC.getContent(o).each(rb.highlightFirst)},m=function(e){return n.get().map((function(n){return rS(t.dom,t.selection.getRng(),n.triggerChar).bind((function(n){return pS(t,s,n,e)}))})).getOrThunk((function(){return gS(t,s)}))},h=function(t){m(t).fold(c,(function(t){f(t.context),t.lookupData.then((function(e){n.get().map((function(n){var r=t.context;if(n.triggerChar===r.triggerChar){var o=l(r.triggerChar,e);o.length>0?d(n,r,e,o):r.text.length-n.matchLength>=10?c():u()}}))}))}))},g=WC((function(t){27!==t.which&&h()}),50),p={onKeypress:g,cancelIfNecessary:c,isMenuOpen:i,isActive:a,isProcessingAction:r.get,getView:function(){return eC.getContent(o)}};!1===t.hasPlugin("rtc")&&iS.setup(p,t)},B_={register:V_},R_=function(t,e,n){return Is(t,e,n).isSome()},P_=function(t,e){var n=null,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n=setTimeout((function(){t.apply(null,r),n=null}),e)},o=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:o,schedule:r}},L_=5,I_=400,F_=function(t){var e=t.raw;return void 0===e.touches||1!==e.touches.length?R.none():R.some(e.touches[0])},N_=function(t,e){var n=Math.abs(t.clientX-e.x),r=Math.abs(t.clientY-e.y);return n>L_||r>L_},j_=function(t){var e=od(),n=oa(!1),r=P_((function(e){t.triggerEvent(ou(),e),n.set(!0)}),I_),o=function(t){return F_(t).each((function(o){r.cancel();var i={x:o.clientX,y:o.clientY,target:t.target};r.schedule(t),n.set(!1),e.set(i)})),R.none()},i=function(t){return r.cancel(),F_(t).each((function(t){e.on((function(n){N_(t,n)&&e.clear()}))})),R.none()},a=function(o){r.cancel();var i=function(t){return sn(t.target,o.target)};return e.get().filter(i).map((function(e){return n.get()?(o.prevent(),!1):t.triggerEvent(ru(),o)}))},u=ha([{key:Ta(),value:o},{key:Ea(),value:i},{key:Aa(),value:a}]),c=function(t,e){return Ot(u,e).bind((function(e){return e(t)}))};return{fireIfReady:c}},U_=function(t){var e=t.raw;return e.which===ob[0]&&!j(["input","textarea"],ue(t.target))&&!R_(t.target,'[contenteditable="true"]')},W_=function(){return en().browser.isFirefox()},G_=function(t,e){return W_()?ud(t,"focus",e):ad(t,"focusin",e)},q_=function(t,e){return W_()?ud(t,"blur",e):ad(t,"focusout",e)},$_=function(t,e){var n=T({stopBackspace:!0},e),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],o=j_(n),i=q(r.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(e){return ad(t,e,(function(t){o.fireIfReady(t,e).each((function(e){e&&t.kill()}));var r=n.triggerEvent(e,t);r&&t.kill()}))})),a=od(),u=ad(t,"paste",(function(t){o.fireIfReady(t,"paste").each((function(e){e&&t.kill()}));var e=n.triggerEvent("paste",t);e&&t.kill(),a.set(setTimeout((function(){n.triggerEvent(Qa(),t)}),0))})),c=ad(t,"keydown",(function(t){var e=n.triggerEvent("keydown",t);e?t.kill():n.stopBackspace&&U_(t)&&t.prevent()})),s=G_(t,(function(t){var e=n.triggerEvent("focusin",t);e&&t.kill()})),l=od(),f=q_(t,(function(t){var e=n.triggerEvent("focusout",t);e&&t.kill(),l.set(setTimeout((function(){n.triggerEvent(Za(),t)}),0))})),d=function(){$(i,(function(t){t.unbind()})),c.unbind(),s.unbind(),f.unbind(),u.unbind(),a.on(clearTimeout),l.on(clearTimeout)};return{unbind:d}},X_=function(t,e){var n=Ot(t,"target").getOr(e);return oa(n)},K_=function(t,e){var n=oa(!1),r=oa(!1),o=function(){n.set(!0)},i=function(){r.set(!0)};return{stop:o,cut:i,isStopped:n.get,isCut:r.get,event:t,setSource:e.set,getSource:e.get}},Y_=function(t){var e=oa(!1),n=function(){e.set(!0)};return{stop:n,cut:p,isStopped:e.get,isCut:O,event:t,setSource:z("Cannot set source of a broadcasted event"),getSource:z("Cannot get source of a broadcasted event")}},J_=aa.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),Z_=function(t,e,n,r,o,i){var a=t(e,r),u=K_(n,o);return a.fold((function(){return i.logEventNoHandlers(e,r),J_.complete()}),(function(t){var n=t.descHandler,r=Pc(n);return r(u),u.isStopped()?(i.logEventStopped(e,t.element,n.purpose),J_.stopped()):u.isCut()?(i.logEventCut(e,t.element,n.purpose),J_.complete()):vn(t.element).fold((function(){return i.logNoParent(e,t.element,n.purpose),J_.complete()}),(function(r){return i.logEventResponse(e,t.element,n.purpose),J_.resume(r)}))}))},Q_=function(t,e,n,r,o,i){return Z_(t,e,n,r,o,i).fold(M,(function(r){return Q_(t,e,n,r,o,i)}),O)},tT=function(t,e,n,r,o){var i=X_(n,r);return Z_(t,e,n,r,i,o)},eT=function(t,e,n){var r=Y_(e);return $(t,(function(t){var e=t.descHandler,n=Pc(e);n(r)})),r.isStopped()},nT=function(t,e,n,r){return rT(t,e,n,n.target,r)},rT=function(t,e,n,r,o){var i=X_(n,r);return Q_(t,e,n,r,i,o)},oT=function(t,e){return{element:t,descHandler:e}},iT=function(t,e){return{id:t,descHandler:e}},aT=function(){var t={},e=function(e,n,r){vt(r,(function(r,o){var i=void 0!==t[o]?t[o]:{};i[n]=Rc(r,e),t[o]=i}))},n=function(t,e){return fc(e).bind((function(e){return Ot(t,e)})).map((function(t){return oT(e,t)}))},r=function(e){return Ot(t,e).map((function(t){return St(t,(function(t,e){return iT(e,t)}))})).getOr([])},o=function(e,r,o){return Ot(t,r).bind((function(t){return xa(o,(function(e){return n(t,e)}),e)}))},i=function(e){vt(t,(function(t,n){Mt(t,e)&&delete t[e]}))};return{registerId:e,unregisterId:i,filterByType:r,find:o}},uT=function(){var t=aT(),e={},n=function(t){var e=t.element;return fc(e).getOrThunk((function(){return sc("uid-",t.element)}))},r=function(t,n){var r=e[n];if(r!==t)throw new Error('The tagId "'+n+'" is already used by: '+Qu(r.element)+"\nCannot use it for: "+Qu(t.element)+"\nThe conflicting element is"+(Rn(r.element)?" ":" not ")+"already in the DOM");i(t)},o=function(o){var i=n(o);_t(e,i)&&r(o,i);var a=[o];t.registerId(a,i,o.events),e[i]=o},i=function(n){fc(n.element).each((function(n){delete e[n],t.unregisterId(n)}))},a=function(e){return t.filterByType(e)},u=function(e,n,r){return t.find(e,n,r)},c=function(t){return Ot(e,t)};return{find:u,filter:a,register:o,unregister:i,getById:c}},cT=function(t){var e=t.dom,n=e.attributes,r=E(e,["attributes"]);return{uid:t.uid,dom:T({tag:"div",attributes:T({role:"presentation"},n)},r),components:t.components,behaviours:np(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},sT=dv({name:"Container",factory:cT,configFields:[Xi("components",[]),ep("containerBehaviours",[]),Xi("events",{}),Xi("domModification",{}),Xi("eventOrder",{})]}),lT=function(t){var e=function(e){return vn(t.element).fold(M,(function(t){return sn(e,t)}))},n=uT(),r=function(t,r){return n.find(e,t,r)},o=$_(t.element,{triggerEvent:function(t,e){return Js(t,e.target,(function(n){return nT(r,t,e,n)}))}}),i={debugInfo:x("real"),triggerEvent:function(t,e,n){Js(t,e,(function(o){return rT(r,t,n,e,o)}))},triggerFocus:function(t,e){fc(t).fold((function(){Sf(t)}),(function(n){Js(Ja(),t,(function(n){return tT(r,Ja(),{originator:e,kill:p,prevent:p,target:t},t,n),!1}))}))},triggerEscape:function(t,e){i.triggerEvent("keydown",t.element,e.event)},getByUid:function(t){return g(t)},getByDom:function(t){return v(t)},build:Ms,addToGui:function(t){c(t)},removeFromGui:function(t){s(t)},addToWorld:function(t){a(t)},removeFromWorld:function(t){u(t)},broadcast:function(t){d(t)},broadcastOn:function(t,e){m(t,e)},broadcastEvent:function(t,e){h(t,e)},isConnected:M},a=function(t){t.connect(i),fe(t.element)||(n.register(t),$(t.components(),a),i.triggerEvent(uu(),t.element,{target:t.element}))},u=function(t){fe(t.element)||($(t.components(),u),n.unregister(t)),t.disconnect()},c=function(e){Wh(t,e)},s=function(t){$h(t)},l=function(){o.unbind(),Br(t.element)},f=function(t){var e=n.filter(tu());$(e,(function(e){var n=e.descHandler,r=Pc(n);r(t)}))},d=function(t){f({universal:!0,data:t})},m=function(t,e){f({universal:!1,channels:t,data:e})},h=function(t,e){var r=n.filter(t);return eT(r,e)},g=function(t){return n.getById(t).fold((function(){return ro.error(new Error('Could not find component with uid: "'+t+'" in system.'))}),ro.value)},v=function(t){var e=fc(t).getOr("not found");return g(e)};return a(t),{root:t,element:t.element,destroy:l,add:c,remove:s,getByUid:g,getByDom:v,addToWorld:a,removeFromWorld:u,broadcast:d,broadcastOn:m,broadcastEvent:h}},fT=function(t,e){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:q(t.items,e.interpreter)}},dT=x([Xi("prefix","form-field"),ep("fieldBehaviours",[bv,tp])]),mT=x([Bp({schema:[Ti("dom")],name:"label"}),Bp({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[Ti("text")],name:"aria-descriptor"}),Dp({factory:{sketch:function(t){var e=da(t,["factory"]);return t.factory.sketch(e)}},schema:[Ti("factory")],name:"field"})]),hT=function(t,e,n,r){var o=rp(t.fieldBehaviours,[bv.config({find:function(e){return Xp(e,t,"field")}}),tp.config({store:{mode:"manual",getValue:function(t){return bv.getCurrent(t).bind(tp.getValue)},setValue:function(t,e){bv.getCurrent(t).each((function(t){tp.setValue(t,e)}))}}})]),i=_u([ju((function(e,n){var r=Yp(e,t,["label","field","aria-descriptor"]);r.field().each((function(e){var n=oc(t.prefix);r.label().each((function(t){Fn(t.element,"for",n),Fn(e.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=oc(t.prefix);Fn(n.element,"id",r),Fn(e.element,"aria-describedby",r)}))}))}))]),a={getField:function(e){return Xp(e,t,"field")},getLabel:function(e){return Xp(e,t,"label")}};return{uid:t.uid,dom:t.dom,components:e,behaviours:o,events:i,apis:a}},gT=mv({name:"FormField",configFields:dT(),partFields:mT(),factory:hT,apis:{getField:function(t,e){return t.getField(e)},getLabel:function(t,e){return t.getLabel(e)}}}),pT=function(t,e){return Ec({attributes:ha([{key:e.tabAttr,value:"true"}])})},vT=Object.freeze({__proto__:null,exhibit:pT}),bT=[Xi("tabAttr","data-alloy-tabstop")],yT=gf({fields:bT,name:"tabstopping",active:vT}),xT=tinymce.util.Tools.resolve("tinymce.html.Entities"),wT=function(t,e,n,r){var o=ST(t,e,n,r);return gT.sketch(o)},CT=function(t,e){return wT(t,e,[],[])},ST=function(t,e,n,r){return{dom:zT(n),components:t.toArray().concat([e]),fieldBehaviours:mf(r)}},kT=function(){return zT([])},zT=function(t){return{tag:"div",classes:["tox-form__group"].concat(t)}},OT=function(t,e){return gT.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}})},MT=oc("form-component-change"),_T=oc("form-close"),TT=oc("form-cancel"),ET=oc("form-action"),AT=oc("form-submit"),HT=oc("form-block"),DT=oc("form-unblock"),VT=oc("form-tabchange"),BT=oc("form-resize"),RT=function(t,e){var n,r=t.label.map((function(t){return OT(t,e)})),o=function(t){return function(e,n){Is(n.event.target,"[data-collection-item-value]").each((function(r){t(e,n,r,jn(r,"data-collection-item-value"))}))}},i=function(n,r){var o=q(r,(function(n){var r=zC.translate(n.text),o=1===t.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",i='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},u=r.replace(/\_| \- |\-/g,(function(t){return a[t]})),c=e.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+c+'" tabindex="-1" data-collection-item-value="'+xT.encodeAllRaw(n.value)+'" title="'+u+'" aria-label="'+u+'">'+i+o+"</div>"})),i="auto"!==t.columns&&t.columns>1?G(o,t.columns):[o],a=q(i,(function(t){return'<div class="tox-collection__group">'+t.join("")+"</div>"}));Xu(n.element,a.join(""))},a=o((function(n,r,o,i){r.stop(),e.isDisabled()||Su(n,ET,{name:t.name,value:i})})),u=[Hu(Pa(),o((function(t,e,n){Sf(n)}))),Hu(Wa(),a),Hu(ru(),a),Hu(La(),o((function(t,e,n){Ls(t.element,"."+ek).each((function(t){us(t,ek)})),is(n,ek)}))),Hu(Ia(),o((function(t){Ls(t.element,"."+ek).each((function(t){us(t,ek)}))}))),Gu(o((function(e,n,r,o){Su(e,ET,{name:t.name,value:o})})))],c=function(t,e){return q(Km(t.element,".tox-collection__item"),e)},s=gT.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==t.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:w},behaviours:mf([Pv.config({disabled:e.isDisabled,onDisabled:function(t){c(t,(function(t){is(t,"tox-collection__item--state-disabled"),Fn(t,"aria-disabled",!0)}))},onEnabled:function(t){c(t,(function(t){us(t,"tox-collection__item--state-disabled"),Gn(t,"aria-disabled")}))}}),cO(),Ix.config({}),tp.config({store:{mode:"memory",initialValue:[]},onSetValue:function(e,n){i(e,n),"auto"===t.columns&&Kk(e,5,"tox-collection__item").each((function(t){var n=t.numRows,r=t.numColumns;Tx.setGridSize(e,n,r)})),Cu(e,BT)}}),yT.config({}),Tx.config(i_(t.columns,"normal")),Nx("collection-events",u)]),eventOrder:(n={},n[eu()]=["disabling","alloy.base.behaviour","collection-events"],n)}),l=["tox-form__group--collection"];return wT(r,s,l,[])},PT=x([Fi("data"),Xi("inputAttributes",{}),Xi("inputStyles",{}),Xi("tag","input"),Xi("inputClasses",[]),ul("onSetValue"),Xi("styles",{}),Xi("eventOrder",{}),ep("inputBehaviours",[tp,Yx]),Xi("selectOnFocus",!0)]),LT=function(t){return mf([Yx.config({onFocus:t.selectOnFocus?function(t){var e=t.element,n=ds(e);e.dom.setSelectionRange(0,n.length)}:p})])},IT=function(t){return T(T({},LT(t)),rp(t.inputBehaviours,[tp.config({store:T(T({mode:"manual"},t.data.map((function(t){return{initialValue:t}})).getOr({})),{getValue:function(t){return ds(t.element)},setValue:function(t,e){var n=ds(t.element);n!==e&&ms(t.element,e)}}),onSetValue:t.onSetValue})]))},FT=function(t){return{tag:t.tag,attributes:T({type:"text"},t.inputAttributes),styles:t.inputStyles,classes:t.inputClasses}},NT=function(t,e){return{uid:t.uid,dom:FT(t),components:[],behaviours:IT(t),eventOrder:t.eventOrder}},jT=dv({name:"Input",configFields:PT(),factory:NT}),UT={},WT={exports:UT};(function(e,n,r,o){(function(t,o){"object"===typeof n&&"undefined"!==typeof r?r.exports=o():"function"===typeof e&&e.amd?e(o):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=o())})(this,(function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},n={exports:{}};(function(t){(function(e){var n=setTimeout;function r(){}function o(t,e){return function(){t.apply(e,arguments)}}function i(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this)}function a(t,e){while(3===t._state)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(o){return void c(e.promise,o)}u(e.promise,r)}else(1===t._state?u:c)(e.promise,t._value)}))):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void s(t);if("function"===typeof n)return void f(o(n,e),t)}t._state=1,t._value=e,s(t)}catch(r){c(t,r)}}function c(t,e){t._state=2,t._value=e,s(t)}function s(t){2===t._state&&0===t._deferreds.length&&i._immediateFn((function(){t._handled||i._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null}function l(t,e,n){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t((function(t){n||(n=!0,u(e,t))}),(function(t){n||(n=!0,c(e,t))}))}catch(r){if(n)return;n=!0,c(e,r)}}i.prototype["catch"]=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(r);return a(this,new l(t,e,n)),n},i.all=function(t){var e=Array.prototype.slice.call(t);return new i((function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var u=a.then;if("function"===typeof u)return void u.call(a,(function(t){o(i,t)}),n)}e[i]=a,0===--r&&t(e)}catch(c){n(c)}}for(var i=0;i<e.length;i++)o(i,e[i])}))},i.resolve=function(t){return t&&"object"===typeof t&&t.constructor===i?t:new i((function(e){e(t)}))},i.reject=function(t){return new i((function(e,n){n(t)}))},i.race=function(t){return new i((function(e,n){for(var r=0,o=t.length;r<o;r++)t[r].then(e,n)}))},i._immediateFn="function"===typeof setImmediate?function(t){setImmediate(t)}:function(t){n(t,0)},i._unhandledRejectionFn=function(t){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},i._setImmediateFn=function(t){i._immediateFn=t},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t},t.exports?t.exports=i:e.Promise||(e.Promise=i)})(e)})(n);var r=n.exports,o=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),i={boltExport:o.Promise||r};return i}))})(void 0,UT,WT);var GT,qT=WT.exports.boltExport,$T=function(t){var e=R.none(),n=[],r=function(t){return $T((function(e){o((function(n){e(t(n))}))}))},o=function(t){a()?c(t):n.push(t)},i=function(t){a()||(e=R.some(t),u(n),n=[])},a=function(){return e.isSome()},u=function(t){$(t,c)},c=function(t){e.each((function(e){setTimeout((function(){t(e)}),0)}))};return t(i),{get:o,map:r,isReady:a}},XT=function(t){return $T((function(e){e(t)}))},KT={nu:$T,pure:XT},YT=function(t){setTimeout((function(){throw t}),0)},JT=function(t){var e=function(e){t().then(e,YT)},n=function(e){return JT((function(){return t().then(e)}))},r=function(e){return JT((function(){return t().then((function(t){return e(t).toPromise()}))}))},o=function(e){return JT((function(){return t().then((function(){return e.toPromise()}))}))},i=function(){return KT.nu(e)},a=function(){var e=null;return JT((function(){return null===e&&(e=t()),e}))},u=t;return{map:n,bind:r,anonBind:o,toLazy:i,toCached:a,toPromise:u,get:e}},ZT=function(t){return JT((function(){return new qT(t)}))},QT=function(t){return JT((function(){return qT.resolve(t)}))},tE={nu:ZT,pure:QT},eE=["input","textarea"],nE=function(t){var e=ue(t);return j(eE,e)},rE=function(t,e){var n=e.getRoot(t).getOr(t.element);us(n,e.invalidClass),e.notify.each((function(e){nE(t.element)&&Fn(t.element,"aria-invalid",!1),e.getContainer(t).each((function(t){Xu(t,e.validHtml)})),e.onValid(t)}))},oE=function(t,e,n,r){var o=e.getRoot(t).getOr(t.element);is(o,e.invalidClass),e.notify.each((function(e){nE(t.element)&&Fn(t.element,"aria-invalid",!0),e.getContainer(t).each((function(t){Xu(t,r)})),e.onInvalid(t,r)}))},iE=function(t,e,n){return e.validator.fold((function(){return tE.pure(ro.value(!0))}),(function(e){return e.validate(t)}))},aE=function(t,e,n){return e.notify.each((function(e){e.onValidate(t)})),iE(t,e).map((function(r){return t.getSystem().isConnected()?r.fold((function(r){return oE(t,e,n,r),ro.error(r)}),(function(n){return rE(t,e),ro.value(n)})):ro.error("No longer in system")}))},uE=function(t,e){var n=e.getRoot(t).getOr(t.element);return cs(n,e.invalidClass)},cE=Object.freeze({__proto__:null,markValid:rE,markInvalid:oE,query:iE,run:aE,isInvalid:uE}),sE=function(t,e){return t.validator.map((function(n){return _u([Hu(n.onEvent,(function(n){aE(n,t,e).get(w)}))].concat(n.validateOnLoad?[ju((function(n){aE(n,t,e).get(p)}))]:[]))})).getOr({})},lE=Object.freeze({__proto__:null,events:sE}),fE=[Ti("invalidClass"),Xi("getRoot",R.none),qi("notify",[Xi("aria","alert"),Xi("getContainer",R.none),Xi("validHtml",""),ul("onValid"),ul("onInvalid"),ul("onValidate")]),qi("validator",[Ti("validate"),Xi("onEvent","input"),Xi("validateOnLoad",!0)])],dE=gf({fields:fE,name:"invalidating",active:lE,apis:cE,extra:{validation:function(t){return function(e){var n=tp.getValue(e);return tE.pure(t(n))}}}}),mE=function(t,e,n,r){return n.getOrCreate(t,e,r)},hE=Object.freeze({__proto__:null,getCoupled:mE}),gE=[Ei("others",bi(ro.value,ai()))],pE=function(){var t={},e=function(e,n,r){var o=gt(n.others);if(o)return Ot(t,r).getOrThunk((function(){var o=Ot(n.others,r).getOrDie("No information found for coupled component: "+r),i=o(e),a=e.getSystem().build(i);return t[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(o,null,2))},n=x({});return zc({readState:n,getOrCreate:e})},vE=Object.freeze({__proto__:null,init:pE}),bE=gf({fields:gE,name:"coupling",apis:hE,state:vE}),yE=x("sink"),xE=x(Bp({name:yE(),overrides:x({dom:{tag:"div"},behaviours:mf([Lh.config({useFixed:M})]),events:_u([Iu(Fa()),Iu(Da()),Iu(Wa())])})}));(function(t){t[t["HighlightFirst"]=0]="HighlightFirst",t[t["HighlightNone"]=1]="HighlightNone"})(GT||(GT={}));var wE,CE=function(t,e){var n=t.getHotspot(e).getOr(e),r="hotspot",o=t.getAnchorOverrides();return t.layouts.fold((function(){return{type:r,hotspot:n,overrides:o}}),(function(t){return{type:r,hotspot:n,overrides:o,layouts:t}}))},SE=function(t,e,n){var r=t.fetch;return r(n).map(e)},kE=function(t,e,n,r,o,i,a){var u=SE(t,e,r),c=TE(r,t);return u.map((function(t){return t.bind((function(t){return R.from(Zw.sketch(T(T({},i.menu()),{uid:dc(""),data:t,highlightImmediately:a===GT.HighlightFirst,onOpenMenu:function(t,e){var r=c().getOrDie();Lh.position(r,e,{anchor:n}),bg.decloak(o)},onOpenSubmenu:function(t,e,n){var r=c().getOrDie();Lh.position(r,n,{anchor:{type:"submenu",item:e}}),bg.decloak(o)},onRepositionMenu:function(t,e,r){var o=c().getOrDie();Lh.position(o,e,{anchor:n}),$(r,(function(t){Lh.position(o,t.triggeredMenu,{anchor:{type:"submenu",item:t.triggeringItem}})}))},onEscape:function(){return Yx.focus(r),bg.close(o),R.some(!0)}})))}))}))},zE=function(t,e,n,r,o,i,a){var u=CE(t,n),c=kE(t,e,u,n,r,o,a);return c.map((function(t){return t.fold((function(){bg.isOpen(r)&&bg.close(r)}),(function(t){bg.cloak(r),bg.open(r,t),i(r)})),r}))},OE=function(t,e,n,r,o,i,a){return bg.close(r),tE.pure(r)},ME=function(t,e,n,r,o,i){var a=bE.getCoupled(n,"sandbox"),u=bg.isOpen(a),c=u?OE:zE;return c(t,e,n,a,r,o,i)},_E=function(t,e,n){var r=bv.getCurrent(e).getOr(e),o=vr(t.element);n?Xn(r.element,"min-width",o+"px"):pr(r.element,o)},TE=function(t,e){return t.getSystem().getByUid(e.uid+"-"+yE()).map((function(t){return function(){return ro.value(t)}})).getOrThunk((function(){return e.lazySink.fold((function(){return function(){return ro.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(e){return function(){return e(t)}}))}))},EE=function(t){bg.getState(t).each((function(t){Zw.repositionMenus(t)}))},AE=function(t,e,n){var r=Ns(),o=function(o,i){var a=CE(t,e);r.link(e.element),t.matchWidth&&_E(a.hotspot,i,t.useMinWidth),t.onOpen(a,o,i),void 0!==n&&void 0!==n.onOpen&&n.onOpen(o,i)},i=function(t,o){r.unlink(e.element),void 0!==n&&void 0!==n.onClose&&n.onClose(t,o)},a=TE(e,t);return{dom:{tag:"div",classes:t.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:op.augment(t.sandboxBehaviours,[tp.config({store:{mode:"memory",initialValue:e}}),bg.config({onOpen:o,onClose:i,isPartOf:function(t,n,r){return Us(n,r)||Us(e,r)},getAttachPoint:function(){return a().getOrDie()}}),bv.config({find:function(t){return bg.getState(t).bind((function(t){return bv.getCurrent(t)}))}}),yf.config({channels:T(T({},Sg({isExtraPart:O})),zg({doReposition:EE}))})])}},HE=function(t){var e=bE.getCoupled(t,"sandbox");EE(e)},DE=function(){return[Xi("sandboxClasses",[]),op.field("sandboxBehaviours",[bv,yf,bg,tp])]},VE=x([Ti("dom"),Ti("fetch"),ul("onOpen"),cl("onExecute"),Xi("getHotspot",R.some),Xi("getAnchorOverrides",x({})),Id(),ep("dropdownBehaviours",[gw,bE,Tx,Yx]),Ti("toggleClass"),Xi("eventOrder",{}),Fi("lazySink"),Xi("matchWidth",!1),Xi("useMinWidth",!1),Fi("role")].concat(DE())),BE=x([Vp({schema:[ol()],name:"menu",defaults:function(t){return{onExecute:t.onExecute}}}),xE()]),RE=function(t,e,n,r){var o,i=function(e){return Ot(t.dom,"attributes").bind((function(t){return Ot(t,e)}))},a=function(t){bg.getState(t).each((function(t){Zw.highlightPrimary(t)}))},u=function(e){var n=a;ME(t,w,e,r,n,GT.HighlightFirst).get(p)},c={expand:function(e){gw.isOn(e)||ME(t,w,e,r,p,GT.HighlightNone).get(p)},open:function(e){gw.isOn(e)||ME(t,w,e,r,p,GT.HighlightFirst).get(p)},isOpen:gw.isOn,close:function(e){gw.isOn(e)&&ME(t,w,e,r,p,GT.HighlightFirst).get(p)},repositionMenus:function(t){gw.isOn(t)&&HE(t)}},s=function(t,e){return ku(t),R.some(!0)};return{uid:t.uid,dom:t.dom,components:e,behaviours:rp(t.dropdownBehaviours,[gw.config({toggleClass:t.toggleClass,aria:{mode:"expanded"}}),bE.config({others:{sandbox:function(e){return AE(t,e,{onOpen:function(){return gw.on(e)},onClose:function(){return gw.off(e)}})}}}),Tx.config({mode:"special",onSpace:s,onEnter:s,onDown:function(t,e){if(PE.isOpen(t)){var n=bE.getCoupled(t,"sandbox");a(n)}else PE.open(t);return R.some(!0)},onEscape:function(t,e){return PE.isOpen(t)?(PE.close(t),R.some(!0)):R.none()}}),Yx.config({})]),events:vw(R.some(u)),eventOrder:T(T({},t.eventOrder),(o={},o[eu()]=["disabling","toggling","alloy.base.behaviour"],o)),apis:c,domModification:{attributes:T(T({"aria-haspopup":"true"},t.role.fold((function(){return{}}),(function(t){return{role:t}}))),"button"===t.dom.tag?{type:i("type").getOr("button")}:{})}}},PE=mv({name:"Dropdown",configFields:VE(),partFields:BE(),factory:RE,apis:{open:function(t,e){return t.open(e)},expand:function(t,e){return t.expand(e)},close:function(t,e){return t.close(e)},isOpen:function(t,e){return t.isOpen(e)},repositionMenus:function(t,e){return t.repositionMenus(e)}}}),LE=function(){return Ec({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},IE=function(){return _u([Tu(Xa(),M)])},FE=Object.freeze({__proto__:null,events:IE,exhibit:LE}),NE=gf({fields:[],name:"unselecting",active:FE}),jE=function(t,e){return PE.sketch({dom:t.dom,components:t.components,toggleClass:"mce-active",dropdownBehaviours:mf([mO.button(e.providers.isDisabled),cO(),NE.config({}),yT.config({})]),layouts:t.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:e.getSink,fetch:function(n){return tE.nu((function(e){return t.fetch(e)})).map((function(r){return R.from(H_(Co(n_(oc("menu-value"),r,(function(e){t.onItemAction(n,e)}),t.columns,t.presets,US.CLOSE_ON_EXECUTE,O,e.providers),{movement:o_(t.columns,t.presets)})))}))},parts:{menu:pk(!1,1,t.presets)}})},UE=oc("color-input-change"),WE=oc("color-swatch-change"),GE=oc("color-picker-cancel"),qE=function(t,e,n){var r=gT.parts.field({factory:jT,inputClasses:["tox-textfield"],onSetValue:function(t){return dE.run(t).get(p)},inputBehaviours:mf([Pv.config({disabled:e.providers.isDisabled}),cO(),yT.config({}),dE.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(t){return vn(t.element)},notify:{onValid:function(t){var e=tp.getValue(t);Su(t,UE,{color:e})}},validator:{validateOnLoad:!1,validate:function(t){var e=tp.getValue(t);if(0===e.length)return tE.pure(ro.value(!0));var n=ee.fromTag("span");Xn(n,"background-color",e);var r=Qn(n,"background-color").fold((function(){return ro.error("blah")}),(function(t){return ro.value(e)}));return tE.pure(r)}}})]),selectOnFocus:!1}),o=t.label.map((function(t){return OT(t,e.providers)})),i=function(t,e){Su(t,WE,{value:e})},a=function(t,e){u.getOpt(t).each((function(t){"custom"===e?n.colorPicker((function(e){e.fold((function(){return Cu(t,GE)}),(function(e){i(t,e),IM(e)}))}),"#ffffff"):i(t,"remove"===e?"":e)}))},u=kC(jE({dom:{tag:"span",attributes:{"aria-label":e.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[jl,Nl,ql]},onLtr:function(){return[Nl,jl,ql]}},components:[],fetch:YM(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},e));return gT.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:o.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,u.asSpec()]}]),fieldBehaviours:mf([Nx("form-field-events",[Hu(UE,(function(e,n){u.getOpt(e).each((function(t){Xn(t.element,"background-color",n.event.color)})),Su(e,MT,{name:t.name})})),Hu(WE,(function(t,e){gT.getField(t).each((function(n){tp.setValue(n,e.event.value),bv.getCurrent(t).each(Yx.focus)}))})),Hu(GE,(function(t,e){gT.getField(t).each((function(e){bv.getCurrent(t).each(Yx.focus)}))}))])])})},$E=Bp({schema:[Ti("dom")],name:"label"}),XE=function(t){return Bp({name:t+"-edge",overrides:function(e){var n=e.model.manager.edgeActions[t];return n.fold((function(){return{}}),(function(t){return{events:_u([Du(Ta(),(function(e,n,r){return t(e,r)}),[e]),Du(Da(),(function(e,n,r){return t(e,r)}),[e]),Du(Va(),(function(e,n,r){r.mouseIsDown.get()&&t(e,r)}),[e])])}}))}})},KE=XE("top-left"),YE=XE("top"),JE=XE("top-right"),ZE=XE("right"),QE=XE("bottom-right"),tA=XE("bottom"),eA=XE("bottom-left"),nA=XE("left"),rA=Dp({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:function(t){return{events:_u([Pu(Ta(),t,"spectrum"),Pu(Ea(),t,"spectrum"),Pu(Aa(),t,"spectrum"),Pu(Da(),t,"spectrum"),Pu(Va(),t,"spectrum"),Pu(Ra(),t,"spectrum")])}}}),oA=Dp({schema:[Mi("mouseIsDown",(function(){return oa(!1)}))],name:"spectrum",overrides:function(t){var e=t.model,n=e.manager,r=function(e,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(e,t,r)}))};return{behaviours:mf([Tx.config({mode:"special",onLeft:function(e){return n.onLeft(e,t)},onRight:function(e){return n.onRight(e,t)},onUp:function(e){return n.onUp(e,t)},onDown:function(e){return n.onDown(e,t)}}),Yx.config({})]),events:_u([Hu(Ta(),r),Hu(Ea(),r),Hu(Da(),r),Hu(Va(),(function(e,n){t.mouseIsDown.get()&&r(e,n)}))])}}}),iA=[$E,nA,ZE,YE,tA,KE,JE,eA,QE,rA,oA],aA="slider.change.value",uA=x(aA),cA=function(t){return-1!==t.type.indexOf("touch")},sA=function(t){var e=t.event.raw;if(cA(e)){var n=e;return void 0!==n.touches&&1===n.touches.length?R.some(n.touches[0]).map((function(t){return lr(t.clientX,t.clientY)})):R.none()}var r=e;return void 0!==r.clientX?R.some(r).map((function(t){return lr(t.clientX,t.clientY)})):R.none()},lA="top",fA="right",dA="bottom",mA="left",hA=function(t){return t.model.minX},gA=function(t){return t.model.minY},pA=function(t){return t.model.minX-1},vA=function(t){return t.model.minY-1},bA=function(t){return t.model.maxX},yA=function(t){return t.model.maxY},xA=function(t){return t.model.maxX+1},wA=function(t){return t.model.maxY+1},CA=function(t,e,n){return e(t)-n(t)},SA=function(t){return CA(t,bA,hA)},kA=function(t){return CA(t,yA,gA)},zA=function(t){return SA(t)/2},OA=function(t){return kA(t)/2},MA=function(t){return t.stepSize},_A=function(t){return t.snapToGrid},TA=function(t){return t.snapStart},EA=function(t){return t.rounded},AA=function(t,e){return void 0!==t[e+"-edge"]},HA=function(t){return AA(t,mA)},DA=function(t){return AA(t,fA)},VA=function(t){return AA(t,lA)},BA=function(t){return AA(t,dA)},RA=function(t){return t.model.value.get()},PA=function(t){return{x:t}},LA=function(t){return{y:t}},IA=function(t,e){return{x:t,y:e}},FA=function(t,e){Su(t,uA(),{value:e})},NA=function(t,e){FA(t,IA(pA(e),vA(e)))},jA=function(t,e){FA(t,LA(vA(e)))},UA=function(t,e){FA(t,IA(zA(e),vA(e)))},WA=function(t,e){FA(t,IA(xA(e),vA(e)))},GA=function(t,e){FA(t,PA(xA(e)))},qA=function(t,e){FA(t,IA(xA(e),OA(e)))},$A=function(t,e){FA(t,IA(xA(e),wA(e)))},XA=function(t,e){FA(t,LA(wA(e)))},KA=function(t,e){FA(t,IA(zA(e),wA(e)))},YA=function(t,e){FA(t,IA(pA(e),wA(e)))},JA=function(t,e){FA(t,PA(pA(e)))},ZA=function(t,e){FA(t,IA(pA(e),OA(e)))},QA=function(t,e,n,r){return t<e?t:t>n?n:t===e?e-1:Math.max(e,t-r)},tH=function(t,e,n,r){return t>n?t:t<e?e:t===n?n+1:Math.min(n,t+r)},eH=function(t,e,n){return Math.max(e,Math.min(n,t))},nH=function(t,e,n,r,o){return o.fold((function(){var o=t-e,i=Math.round(o/r)*r;return eH(e+i,e-1,n+1)}),(function(e){var o=(t-e)%r,i=Math.round(o/r),a=Math.floor((t-e)/r),u=Math.floor((n-e)/r),c=Math.min(u,a+i),s=e+c*r;return Math.max(e,s)}))},rH=function(t,e,n){return Math.min(n,Math.max(t,e))-e},oH=function(t){var e=t.min,n=t.max,r=t.range,o=t.value,i=t.step,a=t.snap,u=t.snapStart,c=t.rounded,s=t.hasMinEdge,l=t.hasMaxEdge,f=t.minBound,d=t.maxBound,m=t.screenRange,h=s?e-1:e,g=l?n+1:n;if(o<f)return h;if(o>d)return g;var p=rH(o,f,d),v=eH(p/m*r+e,h,g);return a&&v>=e&&v<=n?nH(v,e,n,i,u):c?Math.round(v):v},iH=function(t){var e=t.min,n=t.max,r=t.range,o=t.value,i=t.hasMinEdge,a=t.hasMaxEdge,u=t.maxBound,c=t.maxOffset,s=t.centerMinEdge,l=t.centerMaxEdge;return o<e?i?0:s:o>n?a?u:l:(o-e)/r*c},aH="top",uH="right",cH="bottom",sH="left",lH="width",fH="height",dH=function(t){return t.element.dom.getBoundingClientRect()},mH=function(t,e){return t[e]},hH=function(t){var e=dH(t);return mH(e,sH)},gH=function(t){var e=dH(t);return mH(e,uH)},pH=function(t){var e=dH(t);return mH(e,aH)},vH=function(t){var e=dH(t);return mH(e,cH)},bH=function(t){var e=dH(t);return mH(e,lH)},yH=function(t){var e=dH(t);return mH(e,fH)},xH=function(t,e,n){return(t+e)/2-n},wH=function(t,e){var n=dH(t),r=dH(e),o=mH(n,sH),i=mH(n,uH),a=mH(r,sH);return xH(o,i,a)},CH=function(t,e){var n=dH(t),r=dH(e),o=mH(n,aH),i=mH(n,cH),a=mH(r,aH);return xH(o,i,a)},SH=function(t,e){Su(t,uA(),{value:e})},kH=function(t){return{x:t}},zH=function(t,e,n){var r={min:hA(e),max:bA(e),range:SA(e),value:n,step:MA(e),snap:_A(e),snapStart:TA(e),rounded:EA(e),hasMinEdge:HA(e),hasMaxEdge:DA(e),minBound:hH(t),maxBound:gH(t),screenRange:bH(t)};return oH(r)},OH=function(t,e,n){var r=zH(t,e,n),o=kH(r);return SH(t,o),r},MH=function(t,e){var n=hA(e);SH(t,kH(n))},_H=function(t,e){var n=bA(e);SH(t,kH(n))},TH=function(t,e,n){var r=t>0?tH:QA,o=r(RA(n).x,hA(n),bA(n),MA(n));return SH(e,kH(o)),R.some(o)},EH=function(t){return function(e,n){return TH(t,e,n).map(M)}},AH=function(t){var e=sA(t);return e.map((function(t){return t.left}))},HH=function(t,e,n,r,o){var i=0,a=bH(t),u=r.bind((function(e){return R.some(wH(e,t))})).getOr(i),c=o.bind((function(e){return R.some(wH(e,t))})).getOr(a),s={min:hA(e),max:bA(e),range:SA(e),value:n,hasMinEdge:HA(e),hasMaxEdge:DA(e),minBound:hH(t),minOffset:i,maxBound:gH(t),maxOffset:a,centerMinEdge:u,centerMaxEdge:c};return iH(s)},DH=function(t,e,n,r,o,i){var a=HH(e,i,n,r,o);return hH(e)-hH(t)+a},VH=function(t,e,n,r){var o=RA(n),i=DH(t,r.getSpectrum(t),o.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=vr(e.element)/2;Xn(e.element,"left",i-a+"px")},BH=EH(-1),RH=EH(1),PH=R.none,LH=R.none,IH={"top-left":R.none(),top:R.none(),"top-right":R.none(),right:R.some(GA),"bottom-right":R.none(),bottom:R.none(),"bottom-left":R.none(),left:R.some(JA)},FH=Object.freeze({__proto__:null,setValueFrom:OH,setToMin:MH,setToMax:_H,findValueOfOffset:zH,getValueFromEvent:AH,findPositionOfValue:DH,setPositionFromValue:VH,onLeft:BH,onRight:RH,onUp:PH,onDown:LH,edgeActions:IH}),NH=function(t,e){Su(t,uA(),{value:e})},jH=function(t){return{y:t}},UH=function(t,e,n){var r={min:gA(e),max:yA(e),range:kA(e),value:n,step:MA(e),snap:_A(e),snapStart:TA(e),rounded:EA(e),hasMinEdge:VA(e),hasMaxEdge:BA(e),minBound:pH(t),maxBound:vH(t),screenRange:yH(t)};return oH(r)},WH=function(t,e,n){var r=UH(t,e,n),o=jH(r);return NH(t,o),r},GH=function(t,e){var n=gA(e);NH(t,jH(n))},qH=function(t,e){var n=yA(e);NH(t,jH(n))},$H=function(t,e,n){var r=t>0?tH:QA,o=r(RA(n).y,gA(n),yA(n),MA(n));return NH(e,jH(o)),R.some(o)},XH=function(t){return function(e,n){return $H(t,e,n).map(M)}},KH=function(t){var e=sA(t);return e.map((function(t){return t.top}))},YH=function(t,e,n,r,o){var i=0,a=yH(t),u=r.bind((function(e){return R.some(CH(e,t))})).getOr(i),c=o.bind((function(e){return R.some(CH(e,t))})).getOr(a),s={min:gA(e),max:yA(e),range:kA(e),value:n,hasMinEdge:VA(e),hasMaxEdge:BA(e),minBound:pH(t),minOffset:i,maxBound:vH(t),maxOffset:a,centerMinEdge:u,centerMaxEdge:c};return iH(s)},JH=function(t,e,n,r,o,i){var a=YH(e,i,n,r,o);return pH(e)-pH(t)+a},ZH=function(t,e,n,r){var o=RA(n),i=JH(t,r.getSpectrum(t),o.y,r.getTopEdge(t),r.getBottomEdge(t),n),a=ar(e.element)/2;Xn(e.element,"top",i-a+"px")},QH=R.none,tD=R.none,eD=XH(-1),nD=XH(1),rD={"top-left":R.none(),top:R.some(jA),"top-right":R.none(),right:R.none(),"bottom-right":R.none(),bottom:R.some(XA),"bottom-left":R.none(),left:R.none()},oD=Object.freeze({__proto__:null,setValueFrom:WH,setToMin:GH,setToMax:qH,findValueOfOffset:UH,getValueFromEvent:KH,findPositionOfValue:JH,setPositionFromValue:ZH,onLeft:QH,onRight:tD,onUp:eD,onDown:nD,edgeActions:rD}),iD=function(t,e){Su(t,uA(),{value:e})},aD=function(t,e){return{x:t,y:e}},uD=function(t,e,n){var r=zH(t,e,n.left),o=UH(t,e,n.top),i=aD(r,o);return iD(t,i),i},cD=function(t,e,n,r){var o=t>0?tH:QA,i=e?RA(r).x:o(RA(r).x,hA(r),bA(r),MA(r)),a=e?o(RA(r).y,gA(r),yA(r),MA(r)):RA(r).y;return iD(n,aD(i,a)),R.some(i)},sD=function(t,e){return function(n,r){return cD(t,e,n,r).map(M)}},lD=function(t,e){var n=hA(e),r=gA(e);iD(t,aD(n,r))},fD=function(t,e){var n=bA(e),r=yA(e);iD(t,aD(n,r))},dD=function(t){return sA(t)},mD=function(t,e,n,r){var o=RA(n),i=DH(t,r.getSpectrum(t),o.x,r.getLeftEdge(t),r.getRightEdge(t),n),a=JH(t,r.getSpectrum(t),o.y,r.getTopEdge(t),r.getBottomEdge(t),n),u=vr(e.element)/2,c=ar(e.element)/2;Xn(e.element,"left",i-u+"px"),Xn(e.element,"top",a-c+"px")},hD=sD(-1,!1),gD=sD(1,!1),pD=sD(-1,!0),vD=sD(1,!0),bD={"top-left":R.some(NA),top:R.some(UA),"top-right":R.some(WA),right:R.some(qA),"bottom-right":R.some($A),bottom:R.some(KA),"bottom-left":R.some(YA),left:R.some(ZA)},yD=Object.freeze({__proto__:null,setValueFrom:uD,setToMin:lD,setToMax:fD,getValueFromEvent:dD,setPositionFromValue:mD,onLeft:hD,onRight:gD,onUp:pD,onDown:vD,edgeActions:bD}),xD=[Xi("stepSize",1),Xi("onChange",p),Xi("onChoose",p),Xi("onInit",p),Xi("onDragStart",p),Xi("onDragEnd",p),Xi("snapToGrid",!1),Xi("rounded",!0),Fi("snapStart"),Ei("model",ki("mode",{x:[Xi("minX",0),Xi("maxX",100),Mi("value",(function(t){return oa(t.mode.minX)})),Ti("getInitialValue"),fl("manager",FH)],y:[Xi("minY",0),Xi("maxY",100),Mi("value",(function(t){return oa(t.mode.minY)})),Ti("getInitialValue"),fl("manager",oD)],xy:[Xi("minX",0),Xi("maxX",100),Xi("minY",0),Xi("maxY",100),Mi("value",(function(t){return oa({x:t.mode.minX,y:t.mode.minY})})),Ti("getInitialValue"),fl("manager",yD)]})),ep("sliderBehaviours",[Tx,tp]),Mi("mouseIsDown",(function(){return oa(!1)}))],wD=function(t,e,n,r){var o,i=function(e){return Kp(e,t,"thumb")},a=function(e){return Kp(e,t,"spectrum")},u=function(e){return Xp(e,t,"left-edge")},c=function(e){return Xp(e,t,"right-edge")},s=function(e){return Xp(e,t,"top-edge")},l=function(e){return Xp(e,t,"bottom-edge")},f=t.model,d=f.manager,m=function(e,n){d.setPositionFromValue(e,n,t,{getLeftEdge:u,getRightEdge:c,getTopEdge:s,getBottomEdge:l,getSpectrum:a})},h=function(t,e){f.value.set(e);var n=i(t);m(t,n)},g=function(e,n){h(e,n);var r=i(e);return t.onChange(e,r,n),R.some(!0)},p=function(e){d.setToMin(e,t)},v=function(e){d.setToMax(e,t)},b=function(e){var n=function(){Xp(e,t,"thumb").each((function(n){var r=f.value.get();t.onChoose(e,n,r)}))},r=t.mouseIsDown.get();t.mouseIsDown.set(!1),r&&n()},y=function(e,n){n.stop(),t.mouseIsDown.set(!0),t.onDragStart(e,i(e))},x=function(e,n){n.stop(),t.onDragEnd(e,i(e)),b(e)};return{uid:t.uid,dom:t.dom,components:e,behaviours:rp(t.sliderBehaviours,[Tx.config({mode:"special",focusIn:function(e){return Xp(e,t,"spectrum").map(Tx.focusIn).map(M)}}),tp.config({store:{mode:"manual",getValue:function(t){return f.value.get()}}}),yf.config({channels:(o={},o[wg()]={onReceive:b},o)})]),events:_u([Hu(uA(),(function(t,e){g(t,e.event.value)})),ju((function(e,n){var r=f.getInitialValue();f.value.set(r);var o=i(e);m(e,o);var u=a(e);t.onInit(e,o,u,f.value.get())})),Hu(Ta(),y),Hu(Aa(),x),Hu(Da(),y),Hu(Ra(),x)]),apis:{resetToMin:p,resetToMax:v,setValue:h,refresh:m},domModification:{styles:{position:"relative"}}}},CD=mv({name:"Slider",configFields:xD,partFields:iA,factory:wD,apis:{setValue:function(t,e,n){t.setValue(e,n)},resetToMin:function(t,e){t.resetToMin(e)},resetToMax:function(t,e){t.resetToMax(e)},refresh:function(t,e){t.refresh(e)}}}),SD=oc("rgb-hex-update"),kD=oc("slider-update"),zD=oc("palette-update"),OD=function(t,e){var n=CD.parts.spectrum({dom:{tag:"div",classes:[e("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=CD.parts.thumb({dom:{tag:"div",classes:[e("hue-slider-thumb")],attributes:{role:"presentation"}}});return CD.sketch({dom:{tag:"div",classes:[e("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:x({y:0})},components:[n,r],sliderBehaviours:mf([Yx.config({})]),onChange:function(t,e,n){Su(t,kD,{value:n})}})},MD="form",_D=[ep("formBehaviours",[tp])],TD=function(t){return"<alloy.field."+t+">"},ED=function(t){var e=function(){var t=[],e=function(e,n){return t.push(e),Up(MD,TD(e),n)};return{field:e,record:x(t)}}(),n=t(e),r=e.record(),o=q(r,(function(t){return Dp({name:t,pname:TD(t)})}));return av(MD,_D,o,HD,n)},AD=function(t,e){return t.fold((function(){return ro.error(e)}),ro.value)},HD=function(t,e){return{uid:t.uid,dom:t.dom,components:e,behaviours:rp(t.formBehaviours,[tp.config({store:{mode:"manual",getValue:function(e){var n=Jp(e,t);return bt(n,(function(t,e){return t().bind((function(t){var n=bv.getCurrent(t);return AD(n,new Error("Cannot find a current component to extract the value from for form part '"+e+"': "+Qu(t.element)))})).map(tp.getValue)}))},setValue:function(e,n){vt(n,(function(n,r){Xp(e,t,r).each((function(t){bv.getCurrent(t).each((function(t){tp.setValue(t,n)}))}))}))}}})]),apis:{getField:function(e,n){return Xp(e,t,n).bind(bv.getCurrent)}}}},DD={getField:Sc((function(t,e,n){return t.getField(e,n)})),sketch:ED},VD=oc("valid-input"),BD=oc("invalid-input"),RD=oc("validating-input"),PD="colorcustom.rgb.",LD=function(t,e,n,r){var o=function(n,r){return dE.config({invalidClass:e("invalid"),notify:{onValidate:function(t){Su(t,RD,{type:n})},onValid:function(t){Su(t,VD,{type:n,value:tp.getValue(t)})},onInvalid:function(t){Su(t,BD,{type:n,value:tp.getValue(t)})}},validator:{validate:function(e){var n=tp.getValue(e),o=r(n)?ro.value(!0):ro.error(t("aria.input.invalid"));return tE.pure(o)},validateOnLoad:!1}})},i=function(n,r,i,a,u){var c=t(PD+"range"),s=gT.parts.label({dom:{tag:"label",innerHtml:i,attributes:{"aria-label":a}}}),l=gT.parts.field({data:u,factory:jT,inputAttributes:T({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[e("textfield")],inputBehaviours:mf([o(r,n),yT.config({})]),onSetValue:function(t){if(dE.isInvalid(t)){var e=dE.run(t);e.get(p)}}}),f=[s,l],d="hex"!==r?[gT.parts["aria-descriptor"]({text:c})]:[],m=f.concat(d);return{dom:{tag:"div",attributes:{role:"presentation"}},components:m}},a=function(t,e){var n=eM(e);return DD.getField(t,"hex").each((function(e){Yx.isFocused(e)||tp.setValue(t,{hex:n.value})})),n},u=function(t,e){var n=e.red,r=e.green,o=e.blue;tp.setValue(t,{red:n,green:r,blue:o})},c=kC({dom:{tag:"div",classes:[e("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),s=function(t,e){c.getOpt(t).each((function(t){Xn(t.element,"background-color","#"+e.value)}))},l=function(){var o={red:oa(R.some(255)),green:oa(R.some(255)),blue:oa(R.some(255)),hex:oa(R.some("ffffff"))},l=function(t,e){var n=lM(e);u(t,n),h(n)},f=function(t){return o[t].get()},d=function(t,e){o[t].set(e)},m=function(){return f("red").bind((function(t){return f("green").bind((function(e){return f("blue").map((function(n){return uM(t,e,n,1)}))}))}))},h=function(t){var e=t.red,n=t.green,r=t.blue;d("red",R.some(e)),d("green",R.some(n)),d("blue",R.some(r))},g=function(t,e){var n=e.event;"hex"!==n.type?d(n.type,R.none()):r(t)},p=function(t,e){n(t);var r=qO(e);d("hex",R.some(e));var o=lM(r);u(t,o),h(o),Su(t,SD,{hex:r}),s(t,r)},v=function(t,e,n){var r=parseInt(n,10);d(e,R.some(r)),m().each((function(e){var n=a(t,e);Su(t,SD,{hex:n}),s(t,n)}))},b=function(t){return"hex"===t.type},y=function(t,e){var n=e.event;b(n)?p(t,n.value):v(t,n.type,n.value)},x=function(e){return{label:t(PD+e+".label"),description:t(PD+e+".description")}},w=x("red"),C=x("green"),S=x("blue"),k=x("hex");return Co(DD.sketch((function(n){return{dom:{tag:"form",classes:[e("rgb-form")],attributes:{"aria-label":t("aria.color.picker")}},components:[n.field("red",gT.sketch(i(cM,"red",w.label,w.description,255))),n.field("green",gT.sketch(i(cM,"green",C.label,C.description,255))),n.field("blue",gT.sketch(i(cM,"blue",S.label,S.description,255))),n.field("hex",gT.sketch(i(KO,"hex",k.label,k.description,"ffffff"))),c.asSpec()],formBehaviours:mf([dE.config({invalidClass:e("form-invalid")}),Nx("rgb-form-events",[Hu(VD,y),Hu(BD,g),Hu(RD,g)])])}})),{apis:{updateHex:function(t,e){tp.setValue(t,{hex:e.value}),l(t,e),s(t,e)}}})},f=dv({factory:l,name:"RgbForm",configFields:[],apis:{updateHex:function(t,e,n){t.updateHex(e,n)}},extraApis:{}});return f},ID=function(t,e){var n=CD.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[e("sv-palette-spectrum")]}}),r=CD.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette-thumb")],innerHtml:"<div class="+e("sv-palette-inner-thumb")+' role="presentation"></div>'}}),o=function(t,e){var n=t.width,r=t.height,o=t.getContext("2d");if(null!==o){o.fillStyle=e,o.fillRect(0,0,n,r);var i=o.createLinearGradient(0,0,n,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),o.fillStyle=i,o.fillRect(0,0,n,r);var a=o.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),o.fillStyle=a,o.fillRect(0,0,n,r)}},i=function(t,e){var n=t.components()[0].element.dom,r=wM(e,100,100),i=sM(r);o(n,mM(i))},a=function(t,e){var n=CM(lM(e));CD.setValue(t,{x:n.saturation,y:100-n.value})},u=function(t){var i=x({x:0,y:0}),a=function(t,e,n){Su(t,zD,{value:n})},u=function(t,e,n,r){o(n.element.dom,mM(hM))},c=mf([bv.config({find:R.some}),Yx.config({})]);return CD.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[e("sv-palette")]},model:{mode:"xy",getInitialValue:i},rounded:!1,components:[n,r],onChange:a,onInit:u,sliderBehaviours:c})},c=dv({factory:u,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(t,e,n){i(e,n)},setThumb:function(t,e,n){a(e,n)}},extraApis:{}});return c},FD=function(t,e){var n=function(n){var r=LD(t,e,n.onValidHex,n.onInvalidHex),o=ID(t,e),i=function(t){return(100-t)/100*360},a=function(t){return 100-t/360*100},u={paletteRgba:oa(hM),paletteHue:oa(0)},c=kC(OD(t,e)),s=kC(o.sketch({})),l=kC(r.sketch({})),f=function(t,e,n){s.getOpt(t).each((function(t){o.setHue(t,n)}))},d=function(t,e){l.getOpt(t).each((function(t){r.updateHex(t,e)}))},m=function(t,e,n){c.getOpt(t).each((function(t){CD.setValue(t,{y:a(n)})}))},h=function(t,e){s.getOpt(t).each((function(t){o.setThumb(t,e)}))},g=function(t,e){var n=lM(t);u.paletteRgba.set(n),u.paletteHue.set(e)},p=function(t,e,n,r){g(e,n),$(r,(function(r){r(t,e,n)}))},v=function(){var t=[d];return function(e,n){var r=n.event.value,o=u.paletteHue.get(),i=wM(o,r.x,100-r.y),a=kM(i);p(e,a,o,t)}},b=function(){var t=[f,d];return function(e,n){var r=i(n.event.value.y),o=u.paletteRgba.get(),a=CM(o),c=wM(r,a.saturation,a.value),s=kM(c);p(e,s,r,t)}},y=function(){var t=[f,m,h];return function(e,n){var r=n.event.hex,o=SM(r);p(e,r,o.hue,t)}};return{uid:n.uid,dom:n.dom,components:[s.asSpec(),c.asSpec(),l.asSpec()],behaviours:mf([Nx("colour-picker-events",[Hu(SD,y()),Hu(zD,v()),Hu(kD,b())]),bv.config({find:function(t){return l.getOpt(t)}}),Tx.config({mode:"acyclic"})])}},r=dv({name:"ColourPicker",configFields:[Ti("dom"),Xi("onValidHex",p),Xi("onInvalidHex",p)],factory:n});return r},ND=function(){return bv.config({find:R.some})},jD=function(t){return bv.config({find:t.getOpt})},UD=function(t){return bv.config({find:function(e){return Cn(e.element,t).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}})},WD={self:ND,memento:jD,childAt:UD},GD={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},qD=function(t){return GD[t]},$D=function(t){return qD(t)},XD=function(t){var e=function(t){return"tox-"+t},n=FD($D,e),r=function(t){Su(t,ET,{name:"hex-valid",value:!0})},o=function(t){Su(t,ET,{name:"hex-valid",value:!1})},i=kC(n.sketch({dom:{tag:"div",classes:[e("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:o}));return{dom:{tag:"div"},components:[i.asSpec()],behaviours:mf([tp.config({store:{mode:"manual",getValue:function(t){var e=i.get(t),n=bv.getCurrent(e),r=n.bind((function(t){var e=tp.getValue(t);return e.hex}));return r.map((function(t){return"#"+t})).getOr("")},setValue:function(t,e){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(e),o=i.get(t),a=bv.getCurrent(o);a.fold((function(){console.log("Can not find form")}),(function(t){tp.setValue(t,{hex:R.from(r[1]).getOr("")}),DD.getField(t,"hex").each((function(t){Cu(t,ja())}))}))}}}),WD.self()])}},KD=tinymce.util.Tools.resolve("tinymce.Resource"),YD=function(t){return Mt(t,"init")},JD=function(t){var e=od(),n=kC({dom:{tag:t.tag}}),r=od();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:mf([Nx("custom-editor-events",[ju((function(o){n.getOpt(o).each((function(n){(YD(t)?t.init(n.element.dom):KD.load(t.scriptId,t.scriptUrl).then((function(e){return e(n.element.dom,t.settings)}))).then((function(t){r.on((function(e){t.setValue(e)})),r.clear(),e.set(t)}))}))}))]),tp.config({store:{mode:"manual",getValue:function(){return e.get().fold((function(){return r.get().getOr("")}),(function(t){return t.getValue()}))},setValue:function(t,n){e.get().fold((function(){r.set(n)}),(function(t){return t.setValue(n)}))}}}),WD.self()]),components:[n.asSpec()]}},ZD=tinymce.util.Tools.resolve("tinymce.util.Tools"),QD=ti([Xi("preprocess",w),Xi("postprocess",w)]),tV=function(t,e){var n=Ci("RepresentingConfigs.memento processors",QD,e);return tp.config({store:{mode:"manual",getValue:function(e){var r=t.get(e),o=tp.getValue(r);return n.postprocess(o)},setValue:function(e,r){var o=n.preprocess(r),i=t.get(e);tp.setValue(i,o)}}})},eV=function(t,e,n){return tp.config(Co({store:{mode:"manual",getValue:e,setValue:n}},t.map((function(t){return{store:{initialValue:t}}})).getOr({})))},nV=function(t,e,n){return eV(t,(function(t){return e(t.element)}),(function(t,e){return n(t.element,e)}))},rV=function(t){return nV(t,ds,ms)},oV=function(t){return nV(t,$u,Xu)},iV=function(t){return tp.config({store:{mode:"memory",initialValue:t}})},aV={memento:tV,withElement:nV,withComp:eV,domValue:rV,domHtml:oV,memory:iV},uV="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",cV=function(t,e){var n=ZD.explode(e.getSetting("images_file_types",uV,"string")),r=function(t){return U(n,(function(e){return Wt(t.name.toLowerCase(),"."+e.toLowerCase())}))};return Y(mt(t),r)},sV=function(t,e){var n=function(t,e){e.stop()},r=function(t){return function(e,n){$(t,(function(t){t(e,n)}))}},o=function(t,e){if(!Pv.isDisabled(t)){var n=e.event.raw;a(t,n.dataTransfer.files)}},i=function(t,e){var n=e.event.raw.target;a(t,n.files)},a=function(n,r){tp.setValue(n,cV(r,e)),Su(n,MT,{name:t.name})},u=kC({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:mf([Nx("input-file-events",[Iu(Wa()),Iu(ru())])])}),c=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:mf([aV.memory([]),WD.self(),Pv.config({}),gw.config({toggleClass:"dragenter",toggleOnExecute:!1}),Nx("dropzone-events",[Hu("dragenter",r([n,gw.toggle])),Hu("dragleave",r([n,gw.toggle])),Hu("dragover",n),Hu("drop",r([n,o])),Hu(Ua(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:e.translate("Drop an image here")}},SC.sketch({dom:{tag:"button",innerHtml:e.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[u.asSpec()],action:function(t){var e=u.get(t);e.element.dom.click()},buttonBehaviours:mf([yT.config({}),mO.button(e.isDisabled),cO()])})]}]}},s=t.label.map((function(t){return OT(t,e)})),l=gT.parts.field({factory:{sketch:c}});return wT(s,l,["tox-form__group--stretched"],[])},lV=function(t,e){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+t.columns+"col"]},components:q(t.items,e.interpreter)}},fV=oc("alloy-fake-before-tabstop"),dV=oc("alloy-fake-after-tabstop"),mV=function(t){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:mf([Yx.config({ignore:!0}),yT.config({})])}},hV=function(t){return{dom:{tag:"div",classes:["tox-navobj"]},components:[mV([fV]),t,mV([dV])],behaviours:mf([WD.childAt(1)])}},gV=function(t,e){Su(t,Fa(),{raw:{which:9,shiftKey:e}})},pV=function(t,e){var n=e.element;cs(n,fV)?gV(t,!0):cs(n,dV)&&gV(t,!1)},vV=function(t){return R_(t,["."+fV,"."+dV].join(","),O)},bV=!(en().browser.isIE()||en().browser.isEdge()),yV=function(t){var e=oa("");return{getValue:function(t){return e.get()},setValue:function(n,r){if(t)Fn(n.element,"srcdoc",r);else{Fn(n.element,"src","javascript:''");var o=n.element.dom.contentWindow.document;o.open(),o.write(r),o.close()}e.set(r)}}},xV=function(t,e){var n=bV&&t.sandboxed,r=T(T({},t.label.map((function(t){return{title:t}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),o=yV(n),i=t.label.map((function(t){return OT(t,e)})),a=function(t){return hV({uid:t.uid,dom:{tag:"iframe",attributes:r},behaviours:mf([yT.config({}),Yx.config({}),aV.withComp(R.none(),o.getValue,o.setValue)])})},u=gT.parts.field({factory:{sketch:a}});return wT(i,u,["tox-form__group--stretched"],[])},wV=function(t,e){return kV(document.createElement("canvas"),t,e)},CV=function(t){var e=wV(t.width,t.height),n=SV(e);return n.drawImage(t,0,0),e},SV=function(t){return t.getContext("2d")},kV=function(t,e,n){return t.width=e,t.height=n,t},zV=function(t){return t.naturalWidth||t.width},OV=function(t){return t.naturalHeight||t.height},MV=function(t){return new qT((function(e,n){var r=URL.createObjectURL(t),o=new Image,i=function(){o.removeEventListener("load",a),o.removeEventListener("error",u)},a=function(){i(),e(o)},u=function(){i(),n("Unable to load data of type "+t.type+": "+r)};o.addEventListener("load",a),o.addEventListener("error",u),o.src=r,o.complete&&setTimeout(a,0)}))},_V=function(t){var e=t.split(","),n=/data:([^;]+)/.exec(e[0]);if(!n)return R.none();for(var r=n[1],o=e[1],i=1024,a=atob(o),u=a.length,c=Math.ceil(u/i),s=new Array(c),l=0;l<c;++l){for(var f=l*i,d=Math.min(f+i,u),m=new Array(d-f),h=f,g=0;h<d;++g,++h)m[g]=a[h].charCodeAt(0);s[l]=new Uint8Array(m)}return R.some(new Blob(s,{type:r}))},TV=function(t){return new qT((function(e,n){_V(t).fold((function(){n("uri is not base64: "+t)}),e)}))},EV=function(t,e,n){return e=e||"image/png",m(HTMLCanvasElement.prototype.toBlob)?new qT((function(r,o){t.toBlob((function(t){t?r(t):o()}),e,n)})):TV(t.toDataURL(e,n))},AV=function(t,e,n){return e=e||"image/png",t.toDataURL(e,n)},HV=function(t){return MV(t).then((function(t){VV(t);var e=wV(zV(t),OV(t)),n=SV(e);return n.drawImage(t,0,0),e}))},DV=function(t){return new qT((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}))},VV=function(t){URL.revokeObjectURL(t.src)},BV=function(t,e,n){var r=e.type,o=x(r),i=function(){return qT.resolve(e)},a=x(n),u=function(){return n.split(",")[1]},c=function(e,n){return t.then((function(t){return EV(t,e,n)}))},s=function(e,n){return t.then((function(t){return AV(t,e,n)}))},l=function(t,e){return s(t,e).then((function(t){return t.split(",")[1]}))},f=function(){return t.then(CV)};return{getType:o,toBlob:i,toDataURL:a,toBase64:u,toAdjustedBlob:c,toAdjustedDataURL:s,toAdjustedBase64:l,toCanvas:f}},RV=function(t){return DV(t).then((function(e){return BV(HV(t),t,e)}))},PV=function(t,e){return EV(t,e).then((function(e){return BV(qT.resolve(t),e,t.toDataURL())}))},LV=function(t){return RV(t)},IV=function(t,e,n){var r="string"===typeof t?parseFloat(t):t;return r>n?r=n:r<e&&(r=e),r},FV=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]},NV=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],jV=function(t,e){for(var n,r=[],o=new Array(25),i=0;i<5;i++){for(var a=0;a<5;a++)r[a]=e[a+5*i];for(a=0;a<5;a++){n=0;for(var u=0;u<5;u++)n+=t[a+5*u]*r[u];o[a+5*i]=n}}return o},UV=function(t,e){var n;return e=IV(e,-1,1),e*=100,e<0?n=127+e/100*127:(n=e%1,n=0===n?NV[e]:NV[Math.floor(e)]*(1-n)+NV[Math.floor(e)+1]*n,n=127*n+127),jV(t,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])},WV=function(t,e){return e=IV(255*e,-255,255),jV(t,[1,0,0,0,e,0,1,0,0,e,0,0,1,0,e,0,0,0,1,0,0,0,0,0,1])},GV=function(t,e,n,r){return e=IV(e,0,2),n=IV(n,0,2),r=IV(r,0,2),jV(t,[e,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},qV=function(t,e){return t.toCanvas().then((function(n){return $V(n,t.getType(),e)}))},$V=function(t,e,n){var r=SV(t),o=function(t,e){for(var n,r,o,i,a=t.data,u=e[0],c=e[1],s=e[2],l=e[3],f=e[4],d=e[5],m=e[6],h=e[7],g=e[8],p=e[9],v=e[10],b=e[11],y=e[12],x=e[13],w=e[14],C=e[15],S=e[16],k=e[17],z=e[18],O=e[19],M=0;M<a.length;M+=4)n=a[M],r=a[M+1],o=a[M+2],i=a[M+3],a[M]=n*u+r*c+o*s+i*l+f,a[M+1]=n*d+r*m+o*h+i*g+p,a[M+2]=n*v+r*b+o*y+i*x+w,a[M+3]=n*C+r*S+o*k+i*z+O;return t},i=o(r.getImageData(0,0,t.width,t.height),n);return r.putImageData(i,0,0),PV(t,e)},XV=function(t,e){return t.toCanvas().then((function(n){return KV(n,t.getType(),e)}))},KV=function(t,e,n){var r=SV(t),o=function(t,e,n){for(var r=function(t,e,n){return t>n?t=n:t<e&&(t=e),t},o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=t.data,u=e.data,c=t.width,s=t.height,l=0;l<s;l++)for(var f=0;f<c;f++){for(var d=0,m=0,h=0,g=0;g<o;g++)for(var p=0;p<o;p++){var v=r(f+p-i,0,c-1),b=r(l+g-i,0,s-1),y=4*(b*c+v),x=n[g*o+p];d+=a[y]*x,m+=a[y+1]*x,h+=a[y+2]*x}var w=4*(l*c+f);u[w]=r(d,0,255),u[w+1]=r(m,0,255),u[w+2]=r(h,0,255)}return e},i=r.getImageData(0,0,t.width,t.height),a=r.getImageData(0,0,t.width,t.height);return a=o(i,a,n),r.putImageData(a,0,0),PV(t,e)},YV=function(t){var e=function(e,n,r){for(var o=SV(e),i=new Array(256),a=function(t,e){for(var n=t.data,r=0;r<n.length;r+=4)n[r]=e[n[r]],n[r+1]=e[n[r+1]],n[r+2]=e[n[r+2]];return t},u=0;u<i.length;u++)i[u]=t(u,r);var c=a(o.getImageData(0,0,e.width,e.height),i);return o.putImageData(c,0,0),PV(e,n)};return function(t,n){return t.toCanvas().then((function(r){return e(r,t.getType(),n)}))}},JV=function(t){return function(e,n){return qV(e,t(FV(),n))}},ZV=function(t){return function(e){return qV(e,t)}},QV=function(t){return function(e){return XV(e,t)}},tB=ZV([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),eB=JV(WV),nB=JV(UV),rB=function(t,e,n,r){return qV(t,GV(FV(),e,n,r))},oB=QV([0,-1,0,-1,5,-1,0,-1,0]),iB=YV((function(t,e){return 255*Math.pow(t/255,1-e)})),aB=function(t,e,n){var r=zV(t),o=OV(t),i=e/r,a=n/o,u=!1;(i<.5||i>2)&&(i=i<.5?.5:2,u=!0),(a<.5||a>2)&&(a=a<.5?.5:2,u=!0);var c=uB(t,i,a);return u?c.then((function(t){return aB(t,e,n)})):c},uB=function(t,e,n){return new qT((function(r){var o=zV(t),i=OV(t),a=Math.floor(o*e),u=Math.floor(i*n),c=wV(a,u),s=SV(c);s.drawImage(t,0,0,o,i,0,0,a,u),r(c)}))},cB=function(t,e){void 0===e&&(e=2);var n=Math.pow(10,e),r=Math.round(t*n);return Math.ceil(r/n)},sB=function(t,e){return t.toCanvas().then((function(n){return lB(n,t.getType(),e)}))},lB=function(t,e,n){var r=n<0?360+n:n,o=r*Math.PI/180,i=t.width,a=t.height,u=Math.sin(o),c=Math.cos(o),s=cB(Math.abs(i*c)+Math.abs(a*u)),l=cB(Math.abs(i*u)+Math.abs(a*c)),f=wV(s,l),d=SV(f);return d.translate(s/2,l/2),d.rotate(o),d.drawImage(t,-i/2,-a/2),PV(f,e)},fB=function(t,e){return t.toCanvas().then((function(n){return dB(n,t.getType(),e)}))},dB=function(t,e,n){var r=wV(t.width,t.height),o=SV(r);return"v"===n?(o.scale(1,-1),o.drawImage(t,0,-r.height)):(o.scale(-1,1),o.drawImage(t,-r.width,0)),PV(r,e)},mB=function(t,e,n,r,o){return t.toCanvas().then((function(i){return hB(i,t.getType(),e,n,r,o)}))},hB=function(t,e,n,r,o,i){var a=wV(o,i),u=SV(a);return u.drawImage(t,-n,-r),PV(a,e)},gB=function(t,e,n){return t.toCanvas().then((function(r){return aB(r,e,n).then((function(e){return PV(e,t.getType())}))}))},pB=function(t){return tB(t)},vB=function(t){return oB(t)},bB=function(t,e){return iB(t,e)},yB=function(t,e,n,r){return rB(t,e,n,r)},xB=function(t,e){return eB(t,e)},wB=function(t,e){return nB(t,e)},CB=function(t,e){return fB(t,e)},SB=function(t,e,n,r,o){return mB(t,e,n,r,o)},kB=function(t,e,n){return gB(t,e,n)},zB=function(t,e){return sB(t,e)},OB=function(t,e,n){return RC(t,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},e)},MB=function(t,e){return OB(t,e,[])},_B=function(t,e){return OB(t,e,[Ix.config({})])},TB=function(t,e,n){return{dom:{tag:"span",innerHtml:n.translate(t),classes:[e+"__select-label"]},behaviours:mf([Ix.config({})])}},EB=oc("toolbar.button.execute"),AB=function(t){return Gu((function(e,n){hO(t,e)((function(n){Su(e,EB,{buttonApi:n}),t.onAction(n)}))}))},HB=(wE={},wE[eu()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],wE),DB=oc("update-menu-text"),VB=oc("update-menu-icon"),BB=function(t,e,n){var r=oa(p),o=t.text.map((function(t){return kC(TB(t,e,n.providers))})),i=t.icon.map((function(t){return kC(_B(t,n.providers.icons))})),a=function(t,e){var n=tp.getValue(t);return Yx.focus(n),Su(n,"keydown",{raw:e.event.raw}),PE.close(n),R.some(!0)},u=t.role.fold((function(){return{}}),(function(t){return{role:t}})),c=t.tooltip.fold((function(){return{}}),(function(t){var e=n.providers.translate(t);return{title:e,"aria-label":e}})),s=RC("chevron-down",{tag:"div",classes:[e+"__select-chevron"]},n.providers.icons),l=kC(PE.sketch(T(T(T({},t.uid?{uid:t.uid}:{}),u),{dom:{tag:"button",classes:[e,e+"--select"].concat(q(t.classes,(function(t){return e+"--"+t}))),attributes:T({},c)},components:yO([i.map((function(t){return t.asSpec()})),o.map((function(t){return t.asSpec()})),R.some(s)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:mf(A(A([],t.dropdownBehaviours,!0),[mO.button((function(){return t.disabled||n.providers.isDisabled()})),cO(),NE.config({}),Ix.config({}),Nx("dropdown-events",[gO(t,r),pO(t,r)]),Nx("menubutton-update-display-text",[Hu(DB,(function(t,e){o.bind((function(e){return e.getOpt(t)})).each((function(t){Ix.set(t,[Ss(n.providers.translate(e.event.text))])}))})),Hu(VB,(function(t,e){i.bind((function(e){return e.getOpt(t)})).each((function(t){Ix.set(t,[_B(e.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:Co(HB,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:mf([Tx.config({mode:"special",onLeft:a,onRight:a})]),lazySink:n.getSink,toggleClass:e+"--active",parts:{menu:pk(!1,t.columns,t.presets)},fetch:function(e){return tE.nu(S(t.fetch,e))}})));return l.asSpec()},RB=function(t){return i(t)},PB=function(t){return"separator"===t.type},LB=function(t){return Mt(t,"getSubmenuItems")},IB={type:"separator"},FB=function(t,e){var n=Z(t,(function(t,n){return RB(n)?""===n?t:"|"===n?t.length>0&&!PB(t[t.length-1])?t.concat([IB]):t:Mt(e,n.toLowerCase())?t.concat([e[n.toLowerCase()]]):t:t.concat([n])}),[]);return n.length>0&&PB(n[n.length-1])&&n.pop(),n},NB=function(t,e){var n=t.getSubmenuItems(),r=WB(n,e),o=Co(r.menus,ma(t.value,r.items)),i=Co(r.expansions,ma(t.value,t.value));return{item:t,menus:o,expansions:i}},jB=function(t,e){return LB(t)?NB(t,e):{item:t,menus:{},expansions:{}}},UB=function(t){if(PB(t))return t;var e=Ot(t,"value").getOrThunk((function(){return oc("generated-menu-item")}));return Co({value:e},t)},WB=function(t,e){var n=FB(i(t)?t.split(" "):t,e);return J(n,(function(t,n){var r=UB(n),o=jB(r,e);return{menus:Co(t.menus,o.menus),items:[o.item].concat(t.items),expansions:Co(t.expansions,o.expansions)}}),{menus:{},expansions:{},items:[]})},GB=function(t,e,n,r){var o=oc("primary-menu"),i=WB(t,n.shared.providers.menuItems());if(0===i.items.length)return R.none();var a=A_(o,i.items,e,n,r),u=bt(i.menus,(function(t,r){return A_(r,t,e,n,!1)})),c=Co(u,ma(o,a));return R.from(Zw.tieredData(o,c,i.expansions))},qB=function(t){return{isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)},setActive:function(e){var n=t.element;e?(is(n,"tox-tbtn--enabled"),Fn(n,"aria-pressed",!0)):(us(n,"tox-tbtn--enabled"),Gn(n,"aria-pressed"))},isActive:function(){return cs(t.element,"tox-tbtn--enabled")}}},$B=function(t,e,n,r){return BB({text:t.text,icon:t.icon,tooltip:t.tooltip,role:r,fetch:function(e,r){t.fetch((function(t){r(GB(t,US.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:t.onSetup,getApi:qB,columns:1,presets:"normal",classes:[],dropdownBehaviours:[yT.config({})]},e,n.shared)},XB=function(t,e,n){var r=function(t){return function(r){var o=!r.isActive();r.setActive(o),t.storage.set(o),n.shared.getSink().each((function(n){e().getOpt(n).each((function(e){Sf(e.element),Su(e,ET,{name:t.name,value:t.storage.get()})}))}))}},o=function(t){return function(e){e.setActive(t.storage.get())}};return function(e){e(q(t,(function(t){var e=t.text.fold((function(){return{}}),(function(t){return{text:t}}));return T(T({type:t.type,active:!1},e),{onAction:r(t),onSetup:o(t)})})))}},KB=function(t,e,n,r,o,i){void 0===n&&(n=[]);var a=e.fold((function(){return{}}),(function(t){return{action:t}})),u=T({buttonBehaviours:mf([mO.button((function(){return t.disabled||i.isDisabled()})),cO(),yT.config({}),Nx("button press",[Au("click"),Au("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),c=Co(u,{dom:r});return Co(c,{components:o})},YB=function(t,e,n,r){void 0===r&&(r=[]);var o=t.tooltip.map((function(t){return{"aria-label":n.translate(t),title:n.translate(t)}})).getOr({}),i={tag:"button",classes:["tox-tbtn"],attributes:o},a=t.icon.map((function(t){return MB(t,n.icons)})),u=yO([a]);return KB(t,e,r,i,u,n)},JB=function(t,e,n,r){void 0===r&&(r=[]);var o=YB(t,R.some(e),n,r);return SC.sketch(o)},ZB=function(t,e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=n.translate(t.text),a=t.icon?t.icon.map((function(t){return MB(t,n.icons)})):R.none(),u=a.isSome()?yO([a]):[],c=a.isSome()?{}:{innerHtml:i},s=A(A(A(A([],t.primary||t.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),t.borderless?["tox-button--naked"]:[],!0),o,!0),l=T(T({tag:"button",classes:s},c),{attributes:{title:i}});return KB(t,e,r,l,u,n)},QB=function(t,e,n,r,o){void 0===r&&(r=[]),void 0===o&&(o=[]);var i=ZB(t,R.some(e),n,r,o);return SC.sketch(i)},tR=function(t,e){return function(n){"custom"===e?Su(n,ET,{name:t,value:{}}):"submit"===e?Cu(n,AT):"cancel"===e?Cu(n,TT):console.error("Unknown button type: ",e)}},eR=function(t,e){return"menu"===e},nR=function(t,e){return"custom"===e||"cancel"===e||"submit"===e},rR=function(t,e,n){if(eR(t,e)){var r=function(){return a},o=t,i=T(T({},t),{onSetup:function(e){return e.setDisabled(t.disabled),p},fetch:XB(o.items,r,n)}),a=kC($B(i,"tox-tbtn",n,R.none()));return a.asSpec()}if(nR(t,e)){var u=tR(t.name,e),c=T(T({},t),{borderless:!1});return QB(c,u,n.shared.providers,[])}console.error("Unknown footer button type: ",e)},oR=function(t,e){var n=tR(t.name,"custom");return CT(R.none(),gT.parts.field(T({factory:SC},ZB(t,R.some(n),e,[aV.memory(""),WD.self()]))))},iR=x([Xi("field1Name","field1"),Xi("field2Name","field2"),sl("onLockedChange"),il(["lockClass"]),Xi("locked",!1),op.field("coupledFieldBehaviours",[bv,tp])]),aR=function(t,e,n){return Xp(t,e,n).bind(bv.getCurrent)},uR=function(t,e){return Dp({factory:gT,name:t,overrides:function(t){return{fieldBehaviours:mf([Nx("coupled-input-behaviour",[Hu(ja(),(function(n){aR(n,t,e).each((function(e){Xp(n,t,"lock").each((function(r){gw.isOn(r)&&t.onLockedChange(n,e,r)}))}))}))])])}}})},cR=x([uR("field1","field2"),uR("field2","field1"),Dp({factory:SC,schema:[Ti("dom")],name:"lock",overrides:function(t){return{buttonBehaviours:mf([gw.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])}}})]),sR=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:op.augment(t.coupledFieldBehaviours,[bv.config({find:R.some}),tp.config({store:{mode:"manual",getValue:function(e){var n,r=Qp(e,t,["field1","field2"]);return n={},n[t.field1Name]=tp.getValue(r.field1()),n[t.field2Name]=tp.getValue(r.field2()),n},setValue:function(e,n){var r=Qp(e,t,["field1","field2"]);_t(n,t.field1Name)&&tp.setValue(r.field1(),n[t.field1Name]),_t(n,t.field2Name)&&tp.setValue(r.field2(),n[t.field2Name])}}})]),apis:{getField1:function(e){return Xp(e,t,"field1")},getField2:function(e){return Xp(e,t,"field2")},getLock:function(e){return Xp(e,t,"lock")}}}},lR=mv({name:"FormCoupledInputs",configFields:iR(),partFields:cR(),factory:sR,apis:{getField1:function(t,e){return t.getField1(e)},getField2:function(t,e){return t.getField2(e)},getLock:function(t,e){return t.getLock(e)}}}),fR=function(t){var e={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(t){return t in e?e[t]:1},r=t.value.toFixed(n(t.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+t.unit},dR=function(t){var e=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=e.exec(t);if(null!==n){var r=parseFloat(n[1]),o=n[2];return ro.value({value:r,unit:o})}return ro.error(t)},mR=function(t,e){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(t){return Mt(n,t)};return t.unit===e?R.some(t.value):r(t.unit)&&r(e)?n[t.unit]===n[e]?R.some(t.value):R.some(t.value/n[t.unit]*n[e]):R.none()},hR=function(t){return R.none()},gR=function(t,e){return function(n){return mR(n,e).map((function(n){return{value:n*t,unit:e}}))}},pR=function(t,e){var n=dR(t).toOptional(),r=dR(e).toOptional();return Dt(n,r,(function(t,e){return mR(t,e.unit).map((function(t){return e.value/t})).map((function(t){return gR(t,e.unit)})).getOr(hR)})).getOr(hR)},vR=function(t,e){var n=hR,r=oc("ratio-event"),o=function(t){return RC(t,{tag:"span",classes:["tox-icon","tox-lock-icon__"+t]},e.icons)},i=lR.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:e.translate(t.label.getOr("Constrain proportions"))}},components:[o("lock"),o("unlock")],buttonBehaviours:mf([Pv.config({disabled:function(){return t.disabled||e.isDisabled()}}),cO(),yT.config({})])}),a=function(t){return{dom:{tag:"div",classes:["tox-form__group"]},components:t}},u=function(n){return gT.parts.field({factory:jT,inputClasses:["tox-textfield"],inputBehaviours:mf([Pv.config({disabled:function(){return t.disabled||e.isDisabled()}}),cO(),yT.config({}),Nx("size-input-events",[Hu(La(),(function(t,e){Su(t,r,{isField1:n})})),Hu(Ua(),(function(e,n){Su(e,MT,{name:t.name})}))])]),selectOnFocus:!1})},c=function(t){return{dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}}},s=lR.parts.field1(a([gT.parts.label(c("Width")),u(!0)])),l=lR.parts.field2(a([gT.parts.label(c("Height")),u(!1)]));return lR.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[s,l,a([c(" "),i])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(t,e,r){dR(tp.getValue(t)).each((function(t){n(t).each((function(t){tp.setValue(e,fR(t))}))}))},coupledFieldBehaviours:mf([Pv.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){lR.getField1(t).bind(gT.getField).each(Pv.disable),lR.getField2(t).bind(gT.getField).each(Pv.disable),lR.getLock(t).each(Pv.disable)},onEnabled:function(t){lR.getField1(t).bind(gT.getField).each(Pv.enable),lR.getField2(t).bind(gT.getField).each(Pv.enable),lR.getLock(t).each(Pv.enable)}}),cO(),Nx("size-input-events2",[Hu(r,(function(t,e){var r=e.event.isField1,o=r?lR.getField1(t):lR.getField2(t),i=r?lR.getField2(t):lR.getField1(t),a=o.map(tp.getValue).getOr(""),u=i.map(tp.getValue).getOr("");n=pR(a,u)}))])])})},bR=x(oc("undo")),yR=x(oc("redo")),xR=x(oc("zoom")),wR=x(oc("back")),CR=x(oc("apply")),SR=x(oc("swap")),kR=x(oc("transform")),zR=x(oc("temp-transform")),OR=x(oc("transform-apply")),MR={undo:bR,redo:yR,zoom:xR,back:wR,apply:CR,swap:SR,transform:kR,tempTransform:zR,transformApply:OR},_R=x("save-state"),TR=x("disable"),ER=x("enable"),AR={formActionEvent:ET,saveState:_R,disable:TR,enable:ER},HR=function(t,e){var n=function(t,n,r,o){return kC(QB({name:t,text:t,disabled:r,primary:o,icon:R.none(),borderless:!1},n,e))},r=function(t,n,r,o){return kC(JB({name:t,icon:R.some(t),tooltip:R.some(n),disabled:o,primary:!1,borderless:!1},r,e))},o=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(Pv)&&Pv.disable(n)}))},i=function(t,e){t.map((function(t){var n=t.get(e);n.hasConfigured(Pv)&&Pv.enable(n)}))},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},u=p,c=function(t,e,n){Su(t,e,n)},s=function(t){return Cu(t,AR.disable())},l=function(t){return Cu(t,AR.enable())},f=function(t,e){s(t),c(t,MR.transform(),{transform:e}),l(t)},d=function(t,e){s(t),c(t,MR.tempTransform(),{transform:e}),l(t)},m=function(t){return function(){at.getOpt(t).each((function(t){Ix.set(t,[ot])}))}},h=function(t,e){s(t),c(t,MR.transformApply(),{transform:e,swap:m(t)}),l(t)},g=function(){return n("Back",(function(t){return c(t,MR.back(),{swap:m(t)})}),!1,!1)},v=function(){return kC({dom:{tag:"div",classes:["tox-spacer"]},behaviours:mf([Pv.config({})])})},b=function(){return n("Apply",(function(t){return c(t,MR.apply(),{swap:m(t)})}),!0,!0)},y=function(){return function(e){var n=t.getRect();return SB(e,n.x,n.y,n.w,n.h)}},w=[g(),v(),n("Apply",(function(e){var n=y();h(e,n),t.hideCrop()}),!1,!0)],C=sT.sketch({dom:a,components:w.map((function(t){return t.asSpec()})),containerBehaviours:mf([Nx("image-tools-crop-buttons-events",[Hu(AR.disable(),(function(t,e){o(w,t)})),Hu(AR.enable(),(function(t,e){i(w,t)}))])])}),S=kC(vR({name:"size",label:R.none(),constrain:!0,disabled:!1},e)),k=function(t,e){return function(n){return kB(n,t,e)}},z=[g(),v(),S,v(),n("Apply",(function(t){S.getOpt(t).each((function(e){var n=tp.getValue(e),r=parseInt(n.width,10),o=parseInt(n.height,10),i=k(r,o);h(t,i)}))}),!1,!0)],O=sT.sketch({dom:a,components:z.map((function(t){return t.asSpec()})),containerBehaviours:mf([Nx("image-tools-resize-buttons-events",[Hu(AR.disable(),(function(t,e){o(z,t)})),Hu(AR.enable(),(function(t,e){i(z,t)}))])])}),M=function(t,e){return function(n){return t(n,e)}},_=M(CB,"h"),T=M(CB,"v"),E=M(zB,-90),A=M(zB,90),H=function(t,e){d(t,e)},D=[g(),v(),r("flip-horizontally","Flip horizontally",(function(t){H(t,_)}),!1),r("flip-vertically","Flip vertically",(function(t){H(t,T)}),!1),r("rotate-left","Rotate counterclockwise",(function(t){H(t,E)}),!1),r("rotate-right","Rotate clockwise",(function(t){H(t,A)}),!1),v(),b()],V=sT.sketch({dom:a,components:D.map((function(t){return t.asSpec()})),containerBehaviours:mf([Nx("image-tools-fliprotate-buttons-events",[Hu(AR.disable(),(function(t,e){o(D,t)})),Hu(AR.enable(),(function(t,e){i(D,t)}))])])}),B=function(t,n,r,o,i){var a=CD.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:e.translate(t)}}),u=CD.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=CD.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return kC(CD.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:i,getInitialValue:x({x:o})},components:[a,u,c],sliderBehaviours:mf([Yx.config({})]),onChoose:n}))},P=function(t,e,n,r,o){var i=function(t,n,r){var o=M(e,r.x/100);f(t,o)};return B(t,i,n,r,o)},L=function(t,e,n,r,o){return[g(),P(t,e,n,r,o),b()]},I=function(t,e,n,r,u){var c=L(t,e,n,r,u);return sT.sketch({dom:a,components:c.map((function(t){return t.asSpec()})),containerBehaviours:mf([Nx("image-tools-filter-panel-buttons-events",[Hu(AR.disable(),(function(t,e){o(c,t)})),Hu(AR.enable(),(function(t,e){i(c,t)}))])])})},F=[g(),v(),b()],N=sT.sketch({dom:a,components:F.map((function(t){return t.asSpec()}))}),j=I("Brightness",xB,-100,0,100),U=I("Contrast",wB,-100,0,100),W=I("Gamma",bB,-100,0,100),G=function(t,e,n){return function(r){return yB(r,t,e,n)}},q=function(t){var e=function(t,e,n){var r=$.getOpt(t),o=K.getOpt(t),i=X.getOpt(t);r.each((function(e){o.each((function(n){i.each((function(r){var o=tp.getValue(e).x/100,i=tp.getValue(r).x/100,a=tp.getValue(n).x/100,u=G(o,i,a);f(t,u)}))}))}))};return B(t,e,0,100,200)},$=q("R"),X=q("G"),K=q("B"),Y=[g(),$,X,K,b()],J=sT.sketch({dom:a,components:Y.map((function(t){return t.asSpec()}))}),Z=function(t,e,n){return function(r){var o=function(){at.getOpt(r).each((function(e){Ix.set(e,[t]),n(e)}))};c(r,MR.swap(),{transform:e,swap:o})}},Q=function(e){t.showCrop()},tt=function(e){S.getOpt(e).each((function(e){var n=t.getMeasurements(),r=n.width,o=n.height;tp.setValue(e,{width:r,height:o})}))},et=R.some(vB),nt=R.some(pB),rt=[r("crop","Crop",Z(C,R.none(),Q),!1),r("resize","Resize",Z(O,R.none(),tt),!1),r("orientation","Orientation",Z(V,R.none(),u),!1),r("brightness","Brightness",Z(j,R.none(),u),!1),r("sharpen","Sharpen",Z(N,et,u),!1),r("contrast","Contrast",Z(U,R.none(),u),!1),r("color-levels","Color levels",Z(J,R.none(),u),!1),r("gamma","Gamma",Z(W,R.none(),u),!1),r("invert","Invert",Z(N,nt,u),!1)],ot=sT.sketch({dom:a,components:rt.map((function(t){return t.asSpec()}))}),it=sT.sketch({dom:{tag:"div"},components:[ot],containerBehaviours:mf([Ix.config({})])}),at=kC(it),ut=function(t){return at.getOpt(t).map((function(t){var e=t.components()[0];return e.components()[e.components().length-1]}))};return{memContainer:at,getApplyButton:ut}},DR=tinymce.util.Tools.resolve("tinymce.geom.Rect"),VR=tinymce.util.Tools.resolve("tinymce.util.Observable"),BR=tinymce.util.Tools.resolve("tinymce.util.VK"),RR=function(t){var e=Math.max,n=t.documentElement,r=t.body,o=e(n.scrollWidth,r.scrollWidth),i=e(n.clientWidth,r.clientWidth),a=e(n.offsetWidth,r.offsetWidth),u=e(n.scrollHeight,r.scrollHeight),c=e(n.clientHeight,r.clientHeight),s=e(n.offsetHeight,r.offsetHeight);return{width:o<a?i:o,height:u<s?c:u}},PR=function(t){return d(t.changedTouches)},LR=function(t){if(PR(t))for(var e="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<e.length;n++)t[e[n]]=t.changedTouches[0][e[n]]};function IR(t,e){var n,r,o,i,a,u,c,s=[],l=[],f=null!==(n=e.document)&&void 0!==n?n:document,m=null!==(r=e.root)&&void 0!==r?r:f,h=ee.fromDom(f),g=ee.fromDom(m.getElementById(null!==(o=e.handle)&&void 0!==o?o:t)),p=function(t){var n=t.raw,r=RR(f);LR(n),t.prevent(),a=n.button,u=n.screenX,c=n.screenY;var o=Jn(g,"cursor");i=ee.fromTag("div",f),Kn(i,{position:"absolute",top:"0",left:"0",width:r.width+"px",height:r.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:o}),Er(Ln(h),i),l.push(ad(h,"mousemove",v),ad(h,"touchmove",v),ad(h,"mouseup",b),ad(h,"touchend",b)),e.start(n)},v=function(t){var n=t.raw;if(LR(n),n.button!==a)return b(t);n.deltaX=n.screenX-u,n.deltaY=n.screenY-c,t.prevent(),e.drag(n)},b=function(t){LR(t.raw),$(l,(function(t){return t.unbind()})),l=[],Br(i),e.stop&&e.stop(t.raw)},y=function(){$(l.concat(s),(function(t){return t.unbind()})),l=[],s=[],d(i)&&Br(i)};return s.push(ad(g,"mousedown",p),ad(g,"touchstart",p)),{destroy:y}}var FR=0,NR=function(t,e,n,r,o){var i,a=[],u="tox-",c=u+"crid-"+FR++,s=ee.fromDom(r),l=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],f=["top","right","bottom","left"],d=function(t,e){return{x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},m=function(t,e){return{x:e.x-t.x,y:e.y-t.y,w:e.w,h:e.h}},h=function(){return m(n,t)},g=function(e,r,o,i){var a=r.x+o*e.deltaX,u=r.y+i*e.deltaY,c=Math.max(20,r.w+o*e.deltaW),s=Math.max(20,r.h+i*e.deltaH),l=t=DR.clamp({x:a,y:u,w:c,h:s},n,"move"===e.name);l=m(n,l),k.fire("updateRect",{rect:l}),w(l)},p=function(){var e=function(e){var n;return IR(c,{document:r.ownerDocument,root:Tn(s).dom,handle:c+"-"+e.name,start:function(){n=t},drag:function(t){g(e,n,t.deltaX,t.deltaY)}})},n=ee.fromTag("div");Nn(n,{id:c,class:u+"croprect-container",role:"grid","aria-dropeffect":"execute"}),Er(s,n),$(f,(function(t){Ls(s,"#"+c).each((function(e){var n=ee.fromTag("div");Nn(n,{id:c+"-"+t,class:u+"croprect-block","data-mce-bogus":"all"}),Xn(n,"display","none"),Er(e,n)}))})),$(l,(function(t){Ls(s,"#"+c).each((function(e){var n=ee.fromTag("div");Nn(n,{id:c+"-"+t.name,"aria-label":t.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:t.label}),ss(n,[u+"croprect-handle",u+"croprect-handle-"+t.name]),Xn(n,"display","none"),Er(e,n)}))})),i=q(l,e),b(t);var d=function(t){Fn(t.target,"aria-grabbed","focus"===t.raw.type?"true":"false")},m=function(e){var n;$(l,(function(t){if(jn(e.target,"id")===c+"-"+t.name)return n=t,!1}));var r=function(t,e,r,o,i){t.stopPropagation(),t.preventDefault(),g(n,r,o,i)};switch(e.raw.keyCode){case BR.LEFT:r(e,n,t,-10,0);break;case BR.RIGHT:r(e,n,t,10,0);break;case BR.UP:r(e,n,t,0,-10);break;case BR.DOWN:r(e,n,t,0,10);break;case BR.ENTER:case BR.SPACEBAR:e.prevent(),o();break}};a.push(ad(s,"focusin",d),ad(s,"focusout",d),ad(s,"keydown",m))},v=function(t){var e=A(A([],q(l,(function(t){return"#"+c+"-"+t.name})),!0),q(f,(function(t){return"#"+c+"-"+t})),!0).join(","),n=Km(s,e);$(n,t?function(t){return nr(t,"display")}:function(t){return Xn(t,"display","none")})},b=function(t){var n=function(t,e){Ls(s,"#"+c+"-"+t).each((function(t){Kn(t,{left:e.x+"px",top:e.y+"px",width:Math.max(0,e.w)+"px",height:Math.max(0,e.h)+"px"})}))};$(l,(function(e){Ls(s,"#"+c+"-"+e.name).each((function(n){Kn(n,{left:t.w*e.xMul+t.x+"px",top:t.h*e.yMul+t.y+"px"})}))})),n("top",{x:e.x,y:e.y,w:e.w,h:t.y-e.y}),n("right",{x:t.x+t.w,y:t.y,w:e.w-t.x-t.w+e.x,h:t.h}),n("bottom",{x:e.x,y:t.y+t.h,w:e.w,h:e.h-t.y-t.h+e.y}),n("left",{x:e.x,y:t.y,w:t.x-e.x,h:t.h}),n("move",t)},y=function(e){t=e,b(t)},x=function(n){e=n,b(t)},w=function(t){y(d(n,t))},C=function(e){n=e,b(t)},S=function(){$(i,(function(t){return t.destroy()})),i=[],$(a,(function(t){return t.unbind()})),a=[]};p();var k=T(T({},VR),{toggleVisibility:v,setClampRect:C,setRect:y,getInnerRect:h,setInnerRect:w,setViewPortRect:x,destroy:S});return k},jR={create:NR},UR=function(t){return new aS((function(e){var n=function(){t.removeEventListener("load",n),e(t)};t.complete?e(t):t.addEventListener("load",n)}))},WR=function(t){var e=kC({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=oa(1),r=rd(),o=oa({x:0,y:0,w:1,h:1}),i=oa({x:0,y:0,w:1,h:1}),a=function(t,i){h.getOpt(t).each((function(t){var a=n.get(),u=vr(t.element),c=ar(t.element),s=i.dom.naturalWidth*a,l=i.dom.naturalHeight*a,f=Math.max(0,u/2-s/2),d=Math.max(0,c/2-l/2),m={left:f.toString()+"px",top:d.toString()+"px",width:s.toString()+"px",height:l.toString()+"px",position:"absolute"};Kn(i,m),e.getOpt(t).each((function(t){Kn(t.element,m)})),r.run((function(t){var e=o.get();t.setRect({x:e.x*a+f,y:e.y*a+d,w:e.w*a,h:e.h*a}),t.setClampRect({x:f,y:d,w:s,h:l}),t.setViewPortRect({x:0,y:0,w:u,h:c})}))}))},u=function(t,e){h.getOpt(t).each((function(t){var r=vr(t.element),o=ar(t.element),i=e.dom.naturalWidth,a=e.dom.naturalHeight,u=Math.min(r/i,o/a);u>=1?n.set(1):n.set(u)}))},c=function(t,e){var n=ee.fromTag("img");return Fn(n,"src",e),UR(n.dom).then((function(){t.getSystem().isConnected()&&h.getOpt(t).map((function(t){var e=ks({element:n});Ix.replaceAt(t,1,R.some(e));var r=i.get(),c={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};i.set(c);var s=DR.inflate(c,-20,-20);o.set(s),r.w===c.w&&r.h===c.h||u(t,n),a(t,n)}))}))},s=function(t,e){var r=n.get(),o=e>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(o),h.getOpt(t).each((function(t){var e=t.components()[1].element;a(t,e)}))},l=function(){r.run((function(t){t.toggleVisibility(!0)}))},f=function(){r.run((function(t){t.toggleVisibility(!1)}))},d=function(){return o.get()},m=sT.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[e.asSpec(),{dom:{tag:"img",attributes:{src:t}}},{dom:{tag:"div"},behaviours:mf([Nx("image-panel-crop-events",[ju((function(t){h.getOpt(t).each((function(t){var e=t.element.dom,i=jR.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},e,p);i.toggleVisibility(!1),i.on("updateRect",(function(t){var e=t.rect,r=n.get(),i={x:Math.round(e.x/r),y:Math.round(e.y/r),w:Math.round(e.w/r),h:Math.round(e.h/r)};o.set(i)})),r.set(i)}))})),Uu((function(){r.clear()}))])])}],containerBehaviours:mf([Ix.config({}),Nx("image-panel-events",[ju((function(e){c(e,t)}))])])}),h=kC(m),g=function(){var t=i.get();return{width:t.w,height:t.h}};return{memContainer:h,updateSrc:c,zoom:s,showCrop:l,hideCrop:f,getRect:d,getMeasurements:g}},GR=function(t,e,n,r,o){return JB({name:t,icon:R.some(e),disabled:n,tooltip:R.some(t),primary:!1,borderless:!1},r,o)},qR=function(t,e){e?Pv.enable(t):Pv.disable(t)},$R=function(t){var e=function(t,e,o){n.getOpt(t).each((function(t){qR(t,e)})),r.getOpt(t).each((function(t){qR(t,o)}))},n=kC(GR("Undo","undo",!0,(function(t){Su(t,MR.undo(),{direction:1})}),t)),r=kC(GR("Redo","redo",!0,(function(t){Su(t,MR.redo(),{direction:1})}),t)),o=sT.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),GR("Zoom in","zoom-in",!1,(function(t){Su(t,MR.zoom(),{direction:1})}),t),GR("Zoom out","zoom-out",!1,(function(t){Su(t,MR.zoom(),{direction:-1})}),t)]});return{container:o,updateButtonUndoStates:e}};function XR(){var t=[],e=-1,n=function(n){var r=t.splice(++e);return t.push(n),{state:n,removed:r}},r=function(){if(i())return t[--e]},o=function(){if(a())return t[++e]},i=function(){return e>0},a=function(){return-1!==e&&e<t.length-1};return{data:t,add:n,undo:r,redo:o,canUndo:i,canRedo:a}}var KR,YR=function(t){var e=oa(t),n=od(),r=XR();r.add(t);var o=function(){return e.get()},i=function(t){e.set(t)},a=function(){return n.get().getOrThunk(e.get)},u=function(t){var e=c(t);return f(),n.set(e),e.url},c=function(t){return{blob:t,url:URL.createObjectURL(t)}},s=function(t){URL.revokeObjectURL(t.url)},l=function(t){ZD.each(t,s)},f=function(){n.on(s),n.clear()},d=function(t){var e=c(t);i(e);var n=r.add(e).removed;return l(n),e.url},m=function(t){var e=c(t);return n.set(e),e.url},h=function(t){return n.get().fold(p,(function(e){d(e.blob),t()}))},g=function(){var t=r.undo();return i(t),t.url},v=function(){var t=r.redo();return i(t),t.url},b=function(){var t=r.canUndo(),e=r.canRedo();return{undoEnabled:t,redoEnabled:e}};return{getBlobState:o,setBlobState:i,addBlobState:d,getTempState:a,updateTempState:u,addTempState:m,applyTempState:h,destroyTempState:f,undo:g,redo:v,getHistoryStates:b}},JR=function(t,e){var n=YR(t.currentState),r=function(t,e){var n=e.event.direction;k.zoom(t,n)},o=function(t){var e=n.getHistoryStates();z.updateButtonUndoStates(t,e.undoEnabled,e.redoEnabled),Su(t,AR.formActionEvent,{name:AR.saveState(),value:e.undoEnabled})},i=function(t){z.updateButtonUndoStates(t,!1,!1)},a=function(t,e){var r=n.undo();f(t,r).then((function(e){l(t),o(t)}))},u=function(t,e){var r=n.redo();f(t,r).then((function(e){l(t),o(t)}))},c=function(t){return t.toBlob()},s=function(t){Su(t,AR.formActionEvent,{name:AR.disable(),value:{}})},l=function(t){O.getApplyButton(t).each((function(t){Pv.enable(t)})),Su(t,AR.formActionEvent,{name:AR.enable(),value:{}})},f=function(t,e){return s(t),k.updateSrc(t,e)},d=function(t,e,n,r,i){s(t),LV(e).then(n).then(c).then(r).then((function(e){return f(t,e)})).then((function(){o(t),i(),l(t)})).catch((function(e){console.log(e),t.getSystem().isConnected()&&l(t)}))},m=function(t,e,r){var o=n.getBlobState().blob,i=function(t){return n.updateTempState(t)};d(t,o,e,i,r)},h=function(t,e){var r=n.getTempState().blob,o=function(t){return n.addTempState(t)};d(t,r,e,o,p)},g=function(t,e,r){var o=n.getBlobState().blob,i=function(e){var r=n.addBlobState(e);return b(t),r};d(t,o,e,i,r)},v=function(t,e){var r=function(){b(t);var n=e.event.swap;n()};n.applyTempState(r)},b=function(t){var e=n.getBlobState().url;return n.destroyTempState(),o(t),e},y=function(t){var e=b(t);f(t,e).then((function(e){l(t)}))},x=function(t,e){y(t);var n=e.event.swap;n(),k.hideCrop()},w=function(t,e){return m(t,e.event.transform,p)},C=function(t,e){return h(t,e.event.transform)},S=function(t,e){return g(t,e.event.transform,e.event.swap)},k=WR(t.currentState.url),z=$R(e),O=HR(k,e),M=function(t,e){i(t);var n=e.event.transform,r=e.event.swap;n.fold((function(){r()}),(function(e){m(t,e,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[O.memContainer.asSpec(),k.memContainer.asSpec(),z.container],behaviours:mf([tp.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),Nx("image-tools-events",[Hu(MR.undo(),a),Hu(MR.redo(),u),Hu(MR.zoom(),r),Hu(MR.back(),x),Hu(MR.apply(),v),Hu(MR.transform(),w),Hu(MR.tempTransform(),C),Hu(MR.transformApply(),S),Hu(MR.swap(),M)]),WD.self()])}},ZR=function(t,e){var n={dom:{tag:"label",innerHtml:e.providers.translate(t.label),classes:["tox-label"]}},r=q(t.items,e.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:mf([WD.self(),Ix.config({}),aV.domHtml(R.none()),Tx.config({mode:"acyclic"})])}},QR=function(t){return!Mt(t,"items")},tP="data-value",eP=function(t,e,n,r){return q(n,(function(n){return QR(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){tp.setValue(t,n.value),Su(t,MT,{name:e}),Yx.focus(t)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return eP(t,e,n.items,r)}}}))},nP=function(t,e){return ht(t,(function(t){return QR(t)?Rt(t.value===e,t):nP(t.items,e)}))},rP=function(t,e){var n=e.shared.providers,r=ft(t.items).filter(QR),o=t.label.map((function(t){return OT(t,n)})),i=gT.parts.field({dom:{},factory:{sketch:function(n){return BB({uid:n.uid,text:r.map((function(t){return t.text})),icon:R.none(),tooltip:t.label,role:R.none(),fetch:function(n,r){var o=eP(n,t.name,t.items,tp.getValue(n));r(GB(o,US.CLOSE_ON_EXECUTE,e,!1))},onSetup:x(p),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[yT.config({}),tp.config({store:{mode:"manual",initialValue:r.map((function(t){return t.value})).getOr(""),getValue:function(t){return jn(t.element,tP)},setValue:function(e,n){nP(t.items,n).each((function(t){Fn(e.element,tP,t.value),Su(e,DB,{text:t.text})}))}}})]},"tox-listbox",e.shared)}}}),a={dom:{tag:"div",classes:["tox-listboxfield"]},components:[i]};return gT.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:nt([o.toArray(),[a]]),fieldBehaviours:mf([Pv.config({disabled:x(t.disabled),onDisabled:function(t){gT.getField(t).each(Pv.disable)},onEnabled:function(t){gT.getField(t).each(Pv.enable)}})])})},oP=function(t,e){return{dom:{tag:"div",classes:t.classes},components:q(t.items,e.shared.interpreter)}},iP=function(t,e){var n=q(t.options,(function(t){return{dom:{tag:"option",value:t.value,innerHtml:t.text}}})),r=t.data.map((function(t){return ma("initialValue",t)})).getOr({});return{uid:t.uid,dom:{tag:"select",classes:t.selectClasses,attributes:t.selectAttributes},components:n,behaviours:rp(t.selectBehaviours,[Yx.config({}),tp.config({store:T({mode:"manual",getValue:function(t){return ds(t.element)},setValue:function(e,n){var r=tt(t.options,(function(t){return t.value===n}));r.isSome()&&ms(e.element,n)}},r)})])}},aP=dv({name:"HtmlSelect",configFields:[Ti("options"),ep("selectBehaviours",[Yx,tp]),Xi("selectClasses",[]),Xi("selectAttributes",{}),Fi("data")],factory:iP}),uP=function(t,e){var n=q(t.items,(function(t){return{text:e.translate(t.text),value:t.value}})),r=t.label.map((function(t){return OT(t,e)})),o=gT.parts.field({dom:{},selectAttributes:{size:t.size},options:n,factory:aP,selectBehaviours:mf([Pv.config({disabled:function(){return t.disabled||e.isDisabled()}}),yT.config({}),Nx("selectbox-change",[Hu(Ua(),(function(e,n){Su(e,MT,{name:t.name})}))])])}),i=t.size>1?R.none():R.some(RC("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},e.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:nt([[o],i.toArray()])};return gT.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:nt([r.toArray(),[a]]),fieldBehaviours:mf([Pv.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){gT.getField(t).each(Pv.disable)},onEnabled:function(t){gT.getField(t).each(Pv.enable)}}),cO()])})},cP=function(t,e){var n=function(t){return{dom:{tag:"th",innerHtml:e.translate(t)}}},r=function(t){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:q(t,n)}]}},o=function(t){return{dom:{tag:"td",innerHtml:e.translate(t)}}},i=function(t){return{dom:{tag:"tr"},components:q(t,o)}},a=function(t){return{dom:{tag:"tbody"},components:q(t,i)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(t.header),a(t.cells)],behaviours:mf([yT.config({}),Yx.config({})])}},sP=function(t,e){var n=t.label.map((function(t){return OT(t,e)})),r=[Pv.config({disabled:function(){return t.disabled||e.isDisabled()}}),cO(),Tx.config({mode:"execution",useEnter:!0!==t.multiline,useControlEnter:!0===t.multiline,execute:function(t){return Cu(t,AT),R.some(!0)}}),Nx("textfield-change",[Hu(ja(),(function(e,n){Su(e,MT,{name:t.name})})),Hu(Qa(),(function(e,n){Su(e,MT,{name:t.name})}))]),yT.config({})],o=t.validation.map((function(t){return dE.config({getRoot:function(t){return vn(t.element)},invalidClass:"tox-invalid",validator:{validate:function(e){var n=tp.getValue(e),r=t.validator(n);return tE.pure(!0===r?ro.value(n):ro.error(r))},validateOnLoad:t.validateOnLoad}})})).toArray(),i=t.placeholder.fold(x({}),(function(t){return{placeholder:e.translate(t)}})),a=t.inputMode.fold(x({}),(function(t){return{inputmode:t}})),u=T(T({},i),a),c=gT.parts.field({tag:!0===t.multiline?"textarea":"input",inputAttributes:u,inputClasses:[t.classname],inputBehaviours:mf(nt([r,o])),selectOnFocus:!1,factory:jT}),s=t.flex?["tox-form__group--stretched"]:[],l=s.concat(t.maximized?["tox-form-group--maximize"]:[]),f=[Pv.config({disabled:function(){return t.disabled||e.isDisabled()},onDisabled:function(t){gT.getField(t).each(Pv.disable)},onEnabled:function(t){gT.getField(t).each(Pv.enable)}}),cO()];return wT(n,c,l,f)},lP=function(t,e){return sP({name:t.name,multiline:!1,label:t.label,inputMode:t.inputMode,placeholder:t.placeholder,flex:!1,disabled:t.disabled,classname:"tox-textfield",validation:R.none(),maximized:t.maximized},e)},fP=function(t,e){return sP({name:t.name,multiline:!0,label:t.label,inputMode:R.none(),placeholder:t.placeholder,flex:!0,disabled:t.disabled,classname:"tox-textarea",validation:R.none(),maximized:t.maximized},e)},dP=function(t,e){var n=t.stream.streams,r=n.setup(t,e);return _u([Hu(t.event,r),Uu((function(){return e.cancel()}))].concat(t.cancelEvent.map((function(t){return[Hu(t,(function(){return e.cancel()}))]})).getOr([])))},mP=Object.freeze({__proto__:null,events:dP}),hP=function(t){var e=oa(null),n=function(){return{timer:null!==e.get()?"set":"unset"}},r=function(t){e.set(t)},o=function(){var t=e.get();null!==t&&t.cancel()};return zc({readState:n,setTimer:r,cancel:o})},gP=function(t){return t.stream.streams.state(t)},pP=Object.freeze({__proto__:null,throttle:hP,init:gP}),vP=function(t,e){var n=t.stream,r=WC(t.onStream,n.delay);return e.setTimer(r),function(t,e){r.throttle(t,e),n.stopEvent&&e.stop()}},bP=[Ei("stream",ki("mode",{throttle:[Ti("delay"),Xi("stopEvent",!0),fl("streams",{setup:vP,state:hP})]})),Xi("event","input"),Fi("cancelEvent"),sl("onStream")],yP=gf({fields:bP,name:"streaming",active:mP,state:pP}),xP=function(t,e,n){var r=tp.getValue(n);tp.setValue(e,r),CP(e)},wP=function(t,e){var n=t.element,r=ds(n),o=n.dom;"number"!==jn(n,"type")&&e(o,r)},CP=function(t){wP(t,(function(t,e){return t.setSelectionRange(e.length,e.length)}))},SP=function(t,e){wP(t,(function(t,n){return t.setSelectionRange(e,n.length)}))},kP=function(t,e,n){if(t.selectsOver){var r=tp.getValue(e),o=t.getDisplayText(r),i=tp.getValue(n),a=t.getDisplayText(i);return 0===a.indexOf(o)?R.some((function(){xP(t,e,n),SP(e,o.length)})):R.none()}return R.none()},zP=x("alloy.typeahead.itemexecute"),OP=function(t,e,n,r){var o=function(e,n,o){t.previewing.set(!1);var i=bE.getCoupled(e,"sandbox");if(bg.isOpen(i))bv.getCurrent(i).each((function(t){rb.getHighlighted(t).fold((function(){o(t)}),(function(){Mu(i,t.element,"keydown",n)}))}));else{var u=function(t){bv.getCurrent(t).each(o)};zE(t,a(e),e,i,r,u,GT.HighlightFirst).get(p)}},i=LT(t),a=function(t){return function(e){return e.map((function(e){var n=zt(e.menus),r=rt(n,(function(t){return Y(t.items,(function(t){return"item"===t.type}))})),o=tp.getState(t);return o.update(q(r,(function(t){return t.data}))),e}))}},u=[Yx.config({}),tp.config({onSetValue:t.onSetValue,store:T({mode:"dataset",getDataKey:function(t){return ds(t.element)},getFallbackEntry:function(t){return{value:t,meta:{}}},setValue:function(e,n){ms(e.element,t.model.getDisplayText(n))}},t.initialData.map((function(t){return ma("initialValue",t)})).getOr({}))}),yP.config({stream:{mode:"throttle",delay:t.responseTime,stopEvent:!1},onStream:function(e,n){var o=bE.getCoupled(e,"sandbox"),i=Yx.isFocused(e);if(i&&ds(e.element).length>=t.minChars){var u=bv.getCurrent(o).bind((function(t){return rb.getHighlighted(t).map(tp.getValue)}));t.previewing.set(!0);var c=function(e){bv.getCurrent(o).each((function(e){u.fold((function(){t.model.selectsOver&&rb.highlightFirst(e)}),(function(t){rb.highlightBy(e,(function(e){var n=tp.getValue(e);return n.value===t.value})),rb.getHighlighted(e).orThunk((function(){return rb.highlightFirst(e),R.none()}))}))}))};zE(t,a(e),e,o,r,c,GT.HighlightFirst).get(p)}},cancelEvent:au()}),Tx.config({mode:"special",onDown:function(t,e){return o(t,e,rb.highlightFirst),R.some(!0)},onEscape:function(t){var e=bE.getCoupled(t,"sandbox");return bg.isOpen(e)?(bg.close(e),R.some(!0)):R.none()},onUp:function(t,e){return o(t,e,rb.highlightLast),R.some(!0)},onEnter:function(e){var n=bE.getCoupled(e,"sandbox"),r=bg.isOpen(n);if(r&&!t.previewing.get())return bv.getCurrent(n).bind((function(t){return rb.getHighlighted(t)})).map((function(t){return Su(e,zP(),{item:t}),!0}));var o=tp.getValue(e);return Cu(e,au()),t.onExecute(n,e,o),r&&bg.close(n),R.some(!0)}}),gw.config({toggleClass:t.markers.openClass,aria:{mode:"expanded"}}),bE.config({others:{sandbox:function(e){return AE(t,e,{onOpen:function(){return gw.on(e)},onClose:function(){return gw.off(e)}})}}}),Nx("typeaheadevents",[Gu((function(e){var n=p;ME(t,a(e),e,r,n,GT.HighlightFirst).get(p)})),Hu(zP(),(function(e,n){var r=bE.getCoupled(e,"sandbox");xP(t.model,e,n.event.item),Cu(e,au()),t.onItemExecute(e,r,n.event.item,tp.getValue(e)),bg.close(r),CP(e)}))].concat(t.dismissOnBlur?[Hu(Za(),(function(t){var e=bE.getCoupled(t,"sandbox");Mf(e.element).isNone()&&bg.close(e)}))]:[]))];return{uid:t.uid,dom:FT(Co(t,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:T(T({},i),rp(t.typeaheadBehaviours,u)),eventOrder:t.eventOrder}},MP=x([Fi("lazySink"),Ti("fetch"),Xi("minChars",5),Xi("responseTime",1e3),ul("onOpen"),Xi("getHotspot",R.some),Xi("getAnchorOverrides",x({})),Xi("layouts",R.none()),Xi("eventOrder",{}),ra("model",{},[Xi("getDisplayText",(function(t){return void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.value})),Xi("selectsOver",!0),Xi("populateFromBrowse",!0)]),ul("onSetValue"),cl("onExecute"),ul("onItemExecute"),Xi("inputClasses",[]),Xi("inputAttributes",{}),Xi("inputStyles",{}),Xi("matchWidth",!0),Xi("useMinWidth",!1),Xi("dismissOnBlur",!0),il(["openClass"]),Fi("initialData"),ep("typeaheadBehaviours",[Yx,tp,yP,Tx,gw,bE]),Mi("previewing",(function(){return oa(!0)}))].concat(PT()).concat(DE())),_P=x([Vp({schema:[ol()],name:"menu",overrides:function(t){return{fakeFocus:!0,onHighlight:function(e,n){t.previewing.get()?e.getSystem().getByUid(t.uid).each((function(r){kP(t.model,r,n).fold((function(){return rb.dehighlight(e,n)}),(function(t){return t()}))})):e.getSystem().getByUid(t.uid).each((function(e){t.model.populateFromBrowse&&xP(t.model,e,n)})),t.previewing.set(!1)},onExecute:function(e,n){return e.getSystem().getByUid(t.uid).toOptional().map((function(t){return Su(t,zP(),{item:n}),!0}))},onHover:function(e,n){t.previewing.set(!1),e.getSystem().getByUid(t.uid).each((function(e){t.model.populateFromBrowse&&xP(t.model,e,n)}))}}}})]),TP=mv({name:"Typeahead",configFields:MP(),partFields:_P(),factory:OP}),EP=function(t){var e=function(){return EP(t.toCached())},n=function(e){return EP(t.bind((function(t){return t.fold((function(t){return tE.pure(ro.error(t))}),(function(t){return e(t)}))})))},r=function(e){return EP(t.map((function(t){return t.bind(e)})))},o=function(e){return EP(t.map((function(t){return t.map(e)})))},i=function(e){return EP(t.map((function(t){return t.mapError(e)})))},a=function(e,n){return t.map((function(t){return t.fold(e,n)}))},u=function(e,n){return EP(tE.nu((function(r){var o=!1,i=setTimeout((function(){o=!0,r(ro.error(n()))}),e);t.get((function(t){o||(clearTimeout(i),r(t))}))})))};return T(T({},t),{toCached:e,bindFuture:n,bindResult:r,mapResult:o,mapError:i,foldResult:a,withTimeout:u})},AP=function(t){return EP(tE.nu(t))},HP=function(t){return EP(tE.pure(ro.value(t)))},DP=function(t){return EP(tE.pure(ro.error(t)))},VP=function(t){return EP(tE.pure(t))},BP=function(t){return EP(t.map(ro.value))},RP=function(t){return AP((function(e){t.then((function(t){e(ro.value(t))}),(function(t){e(ro.error(t))}))}))},PP={nu:AP,wrap:EP,pure:HP,value:HP,error:DP,fromResult:VP,fromFuture:BP,fromPromise:RP},LP={type:"separator"},IP=function(t){return{type:"menuitem",value:t.url,text:t.title,meta:{attach:t.attach},onAction:p}},FP=function(t,e){return{type:"menuitem",value:e,text:t,meta:{attach:void 0},onAction:p}},NP=function(t){return q(t,IP)},jP=function(t,e){return Y(e,(function(e){return e.type===t}))},UP=function(t,e){return NP(jP(t,e))},WP=function(t){return UP("header",t.targets)},GP=function(t){return UP("anchor",t.targets)},qP=function(t){return R.from(t.anchorTop).map((function(t){return FP("<top>",t)})).toArray()},$P=function(t){return R.from(t.anchorBottom).map((function(t){return FP("<bottom>",t)})).toArray()},XP=function(t){return q(t,(function(t){return FP(t,t)}))},KP=function(t){return Z(t,(function(t,e){var n=0===t.length||0===e.length;return n?t.concat(e):t.concat(LP,e)}),[])},YP=function(t,e){var n=t.toLowerCase();return Y(e,(function(t){var e=void 0!==t.meta&&void 0!==t.meta.text?t.meta.text:t.text;return jt(e.toLowerCase(),n)||jt(t.value.toLowerCase(),n)}))},JP=function(t,e,n){var r=tp.getValue(e),o=void 0!==r.meta.text?r.meta.text:r.value,i=n.getLinkInformation();return i.fold((function(){return[]}),(function(e){var r=YP(o,XP(n.getHistory(t)));return"file"===t?KP([r,YP(o,WP(e)),YP(o,nt([qP(e),GP(e),$P(e)]))]):r}))},ZP=oc("aria-invalid"),QP=function(t,e,n){var r,o=e.shared.providers,i=function(e){var r=tp.getValue(e);n.addToHistory(r.value,t.filetype)},a=gT.parts.field({factory:TP,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":ZP,type:"url"},minChars:0,responseTime:0,fetch:function(r){var o=JP(t.filetype,r,n),i=GB(o,US.BUBBLE_TO_SANDBOX,e,!1);return tE.pure(i)},getHotspot:function(t){return m.getOpt(t)},onSetValue:function(t,e){t.hasConfigured(dE)&&dE.run(t).get(p)},typeaheadBehaviours:mf(nt([n.getValidationHandler().map((function(e){return dE.config({getRoot:function(t){return vn(t.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(t,e){s.getOpt(t).each((function(t){Fn(t.element,"title",o.translate(e))}))}},validator:{validate:function(n){var r=tp.getValue(n);return PP.nu((function(n){e({type:t.filetype,url:r.value},(function(t){if("invalid"===t.status){var e=ro.error(t.message);n(e)}else{var r=ro.value(t.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[Pv.config({disabled:function(){return t.disabled||o.isDisabled()}}),yT.config({}),Nx("urlinput-events",nt(["file"===t.filetype?[Hu(ja(),(function(e){Su(e,MT,{name:t.name})}))]:[],[Hu(Ua(),(function(e){Su(e,MT,{name:t.name}),i(e)})),Hu(Qa(),(function(e){Su(e,MT,{name:t.name}),i(e)}))]]))]])),eventOrder:(r={},r[ja()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(t){return t.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:e.shared.getSink,parts:{menu:pk(!1,1,"normal")},onExecute:function(t,e,n){Su(e,AT,{})},onItemExecute:function(e,n,r,o){i(e),Su(e,MT,{name:t.name})}}),u=t.label.map((function(t){return OT(t,o)})),c=function(t,e,n,r){return void 0===n&&(n=t),void 0===r&&(r=t),RC(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+t],attributes:T({title:o.translate(r),"aria-live":"polite"},e.fold((function(){return{}}),(function(t){return{id:t}})))},o.icons)},s=kC(c("invalid",R.some(ZP),"warning")),l=kC({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[s.asSpec()]}),f=n.getUrlPicker(t.filetype),d=oc("browser.url.event"),m=kC({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,l.asSpec()],behaviours:mf([Pv.config({disabled:function(){return t.disabled||o.isDisabled()}})])}),h=kC(QB({name:t.name,icon:R.some("browse"),text:t.label.getOr(""),disabled:t.disabled,primary:!1,borderless:!0},(function(t){return Cu(t,d)}),o,[],["tox-browse-url"])),g=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:nt([[m.asSpec()],f.map((function(){return h.asSpec()})).toArray()])}},v=function(e){bv.getCurrent(e).each((function(n){var r=tp.getValue(n),o=T({fieldname:t.name},r);f.each((function(r){r(o).get((function(r){tp.setValue(n,r),Su(e,MT,{name:t.name})}))}))}))};return gT.sketch({dom:kT(),components:u.toArray().concat([g()]),fieldBehaviours:mf([Pv.config({disabled:function(){return t.disabled||o.isDisabled()},onDisabled:function(t){gT.getField(t).each(Pv.disable),h.getOpt(t).each(Pv.disable)},onEnabled:function(t){gT.getField(t).each(Pv.enable),h.getOpt(t).each(Pv.enable)}}),cO(),Nx("url-input-events",[Hu(d,v)])])})},tL=function(t,e){return sT.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+t.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[SC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:AC(t.icon,e.icons),attributes:{title:e.translate(t.iconTooltip)}},action:function(e){Su(e,ET,{name:"alert-banner",value:t.url})},buttonBehaviours:mf([VC()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:e.translate(t.text)}}]})},eL=function(t,e){var n=tp.config({store:{mode:"manual",getValue:function(t){var e=t.element.dom;return e.checked},setValue:function(t,e){var n=t.element.dom;n.checked=e}}}),r=function(t){return t.element.dom.click(),R.some(!0)},o=gT.parts.field({factory:{sketch:w},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:mf([WD.self(),Pv.config({disabled:function(){return t.disabled||e.isDisabled()}}),yT.config({}),Yx.config({}),n,Tx.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),Nx("checkbox-events",[Hu(Ua(),(function(e,n){Su(e,MT,{name:t.name})}))])])}),i=gT.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:e.translate(t.label)},behaviours:mf([NE.config({})])}),a=function(t){var n="checked"===t?"selected":"unselected";return RC(n,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+t]},e.icons)},u=kC({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return gT.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[o,u.asSpec(),i],fieldBehaviours:mf([Pv.config({disabled:function(){return t.disabled||e.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(t){gT.getField(t).each(Pv.disable)},onEnabled:function(t){gT.getField(t).each(Pv.enable)}}),cO()])})},nL=function(t){return"presentation"===t.presets?sT.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html}}):sT.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html,attributes:{role:"document"}},containerBehaviours:mf([yT.config({}),Yx.config({})])})},rL=function(t){return function(e,n,r){return Ot(n,"name").fold((function(){return t(n,r)}),(function(o){return e.field(o,t(n,r))}))}},oL=function(t){return function(e,n,r){var o=Co(n,{source:"dynamic"});return rL(t)(e,o,r)}},iL={bar:rL((function(t,e){return fT(t,e.shared)})),collection:rL((function(t,e){return RT(t,e.shared.providers)})),alertbanner:rL((function(t,e){return tL(t,e.shared.providers)})),input:rL((function(t,e){return lP(t,e.shared.providers)})),textarea:rL((function(t,e){return fP(t,e.shared.providers)})),label:rL((function(t,e){return ZR(t,e.shared)})),iframe:oL((function(t,e){return xV(t,e.shared.providers)})),button:rL((function(t,e){return oR(t,e.shared.providers)})),checkbox:rL((function(t,e){return eL(t,e.shared.providers)})),colorinput:rL((function(t,e){return qE(t,e.shared,e.colorinput)})),colorpicker:rL(XD),dropzone:rL((function(t,e){return sV(t,e.shared.providers)})),grid:rL((function(t,e){return lV(t,e.shared)})),listbox:rL((function(t,e){return rP(t,e)})),selectbox:rL((function(t,e){return uP(t,e.shared.providers)})),sizeinput:rL((function(t,e){return vR(t,e.shared.providers)})),urlinput:rL((function(t,e){return QP(t,e,e.urlinput)})),customeditor:rL(JD),htmlpanel:rL(nL),imagetools:rL((function(t,e){return JR(t,e.shared.providers)})),table:rL((function(t,e){return cP(t,e.shared.providers)})),panel:rL((function(t,e){return oP(t,e)}))},aL={field:function(t,e){return e}},uL=function(t,e,n){var r=Co(n,{shared:{interpreter:function(e){return cL(t,e,r)}}});return cL(t,e,r)},cL=function(t,e,n){return Ot(iL,e.type).fold((function(){return console.error('Unknown factory type "'+e.type+'", defaulting to container: ',e),e}),(function(r){return r(t,e,n)}))},sL=function(t,e){var n=aL;return cL(n,t,e)},lL={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},fL=function(t,e,n){var r=12,o={maxHeightFunction:Md()},i=function(){return{type:"node",root:En(t()),node:R.from(t()),bubble:Hd(r,r,lL),layouts:{onRtl:function(){return[dC]},onLtr:function(){return[fC]}},overrides:o}},a=function(){return{type:"hotspot",hotspot:e(),bubble:Hd(-r,r,lL),layouts:{onRtl:function(){return[Nl]},onLtr:function(){return[jl]}},overrides:o}};return function(){return n()?i():a()}},dL=function(t,e,n){var r=function(){return{type:"node",root:En(t()),node:R.from(t()),layouts:{onRtl:function(){return[mC]},onLtr:function(){return[mC]}}}},o=function(){return{type:"hotspot",hotspot:e(),layouts:{onRtl:function(){return[ql]},onLtr:function(){return[ql]}}}};return function(){return n()?r():o()}},mL=function(t,e){return function(){return{type:"selection",root:e(),getSelection:function(){var e=t.selection.getRng();return R.some(km.range(ee.fromDom(e.startContainer),e.startOffset,ee.fromDom(e.endContainer),e.endOffset))}}}},hL=function(t){return function(e){return{type:"node",root:t(),node:e}}},gL=function(t,e,n){var r=jz(t),o=function(){return ee.fromDom(t.getBody())},i=function(){return ee.fromDom(t.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:fL(i,e,a),banner:dL(i,e,a),cursor:mL(t,o),node:hL(o)}},pL=function(t){return function(e,n){var r=t_(t);r(e,n)}},vL=function(t){return function(){return BM(t)}},bL=function(t){return function(){return PM(t)}},yL=function(t){return function(){return qM(t)}},xL=function(t){return{colorPicker:pL(t),hasCustomColors:vL(t),getColors:bL(t),getColorCols:yL(t)}},wL=function(t){return function(){return $z(t)}},CL=function(t){return{isDraggableModal:wL(t)}},SL=function(t){var e=oa(Pz(t)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===e.get()},getDockingMode:e.get,setDockingMode:e.set}},kL=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],zL=function(t){return Mt(t,"items")},OL=function(t){return Mt(t,"block")},ML=function(t){return Mt(t,"inline")},_L=function(t){return Mt(t,"selector")},TL=function(t){return Z(t,(function(t,e){if(zL(e)){var n=TL(e.items);return{customFormats:t.customFormats.concat(n.customFormats),formats:t.formats.concat([{title:e.title,items:n.formats}])}}if(ML(e)||OL(e)||_L(e)){var r=i(e.name)?e.name:e.title.toLowerCase(),o="custom-"+r;return{customFormats:t.customFormats.concat([{name:o,format:e}]),formats:t.formats.concat([{title:e.title,format:o,icon:e.icon}])}}return T(T({},t),{formats:t.formats.concat(e)})}),{customFormats:[],formats:[]})},EL=function(t,e){var n=TL(e),r=function(e){$(e,(function(e){t.formatter.has(e.name)||t.formatter.register(e.name,e.format)}))};return t.formatter?r(n.customFormats):t.on("init",(function(){r(n.customFormats)})),n.formats},AL=function(t){return Sz(t).map((function(e){var n=EL(t,e);return kz(t)?kL.concat(n):n})).getOr(kL)},HL=function(t,e,n){var r={type:"formatter",isSelected:e(t.format),getStylePreview:n(t.format)};return Co(t,r)},DL=function(t,e,n,r){var o=function(t){return HL(t,n,r)},a=function(t){var e={type:"submenu"};return Co(t,e)},u=function(e){var o=i(e.name)?e.name:oc(e.title),a="custom-"+o,u={type:"formatter",format:a,isSelected:n(a),getStylePreview:r(a)},c=Co(e,u);return t.formatter.register(o,c),c},c=function(t){return q(t,(function(t){var e=gt(t);if(_t(t,"items")){var n=c(t.items);return Co(a(t),{getStyleItems:x(n)})}return _t(t,"format")?o(t):1===e.length&&j(e,"title")?Co(t,{type:"separator"}):u(t)}))};return c(e)},VL=function(t){var e=function(e){return function(){return t.formatter.match(e)}},n=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?R.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):R.none()}},r=function(t){var e=t.items;return void 0!==e&&e.length>0?rt(e,r):[t.format]},o=oa([]),i=oa([]),a=oa([]),u=oa([]),c=oa(!1);t.on("PreInit",(function(a){var u=AL(t),c=DL(t,u,e,n);o.set(c),i.set(rt(c,r))})),t.on("addStyleModifications",(function(o){var i=DL(t,o.items,e,n);a.set(i),c.set(o.replace),u.set(rt(i,r))}));var s=function(){var t=c.get()?[]:o.get(),e=a.get();return t.concat(e)},l=function(){var t=c.get()?[]:i.get(),e=u.get();return t.concat(e)};return{getData:s,getFlattenedKeys:l}},BL=function(t){return d(t)&&1===t.nodeType},RL=ZD.trim,PL=function(t){return function(e){if(BL(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},LL=PL("true"),IL=PL("false"),FL=function(t,e,n,r,o){return{type:t,title:e,url:n,level:r,attach:o}},NL=function(t){while(t=t.parentNode){var e=t.contentEditable;if(e&&"inherit"!==e)return LL(t)}return!1},jL=function(t,e){return q(Km(ee.fromDom(e),t),(function(t){return t.dom}))},UL=function(t){return t.innerText||t.textContent},WL=function(t){return t.id?t.id:oc("h")},GL=function(t){return t&&"A"===t.nodeName&&void 0!==(t.id||t.name)},qL=function(t){return GL(t)&&XL(t)},$L=function(t){return t&&/^(H[1-6])$/.test(t.nodeName)},XL=function(t){return NL(t)&&!IL(t)},KL=function(t){return $L(t)&&XL(t)},YL=function(t){return $L(t)?parseInt(t.nodeName.substr(1),10):0},JL=function(t){var e=WL(t),n=function(){t.id=e};return FL("header",UL(t),"#"+e,YL(t),n)},ZL=function(t){var e=t.id||t.name,n=UL(t);return FL("anchor",n||"#"+e,"#"+e,0,p)},QL=function(t){return q(Y(t,KL),JL)},tI=function(t){return q(Y(t,qL),ZL)},eI=function(t){var e=jL("h1,h2,h3,h4,h5,h6,a:not([href])",t);return e},nI=function(t){return RL(t.title).length>0},rI=function(t){var e=eI(t);return Y(QL(e).concat(tI(e)),nI)},oI={find:rI},iI="tinymce-url-history",aI=5,uI=function(t){return i(t)&&/^https?/.test(t)},cI=function(t){return u(t)&&t.length<=aI&&ot(t,uI)},sI=function(t){return a(t)&&kt(t,(function(t){return!cI(t)})).isNone()},lI=function(){var t,e=OM.getItem(iI);if(null===e)return{};try{t=JSON.parse(e)}catch(n){if(n instanceof SyntaxError)return console.log("Local storage "+iI+" was not valid JSON",n),{};throw n}return sI(t)?t:(console.log("Local storage "+iI+" was not valid format",t),{})},fI=function(t){if(!sI(t))throw new Error("Bad format for history:\n"+JSON.stringify(t));OM.setItem(iI,JSON.stringify(t))},dI=function(t){var e=lI();return Ot(e,t).getOr([])},mI=function(t,e){if(uI(t)){var n=lI(),r=Ot(n,e).getOr([]),o=Y(r,(function(e){return e!==t}));n[e]=[t].concat(o).slice(0,aI),fI(n)}},hI=function(t){return!!t},gI=function(t){return bt(ZD.makeMap(t,/[, ]/),hI)},pI=function(t){return R.from(Jz(t)).filter(m)},vI=function(t){var e=R.some(Zz(t)).filter(hI),n=R.some(Qz(t)).filter(hI),r=e.or(n).map(gI);return pI(t).fold(O,(function(t){return r.fold(M,(function(t){return gt(t).length>0&&t}))}))},bI=function(t,e){var n=vI(t);return s(n)?n?pI(t):R.none():n[e]?pI(t):R.none()},yI=function(t,e){return bI(t,e).map((function(n){return function(r){return tE.nu((function(o){var u=function(t,e){if(!i(t))throw new Error("Expected value to be string");if(void 0!==e&&!a(e))throw new Error("Expected meta to be a object");var n={value:t,meta:e};o(n)},c=T({filetype:e,fieldname:r.fieldname},R.from(r.meta).getOr({}));n.call(t,u,r.value,c)}))}}))},xI=function(t){return R.from(t).filter(i).getOrUndefined()},wI=function(t){return tO(t)?R.none():R.some({targets:oI.find(t.getBody()),anchorTop:xI(eO(t)),anchorBottom:xI(nO(t))})},CI=function(t){return R.from(rO(t))},SI=function(t){return{getHistory:dI,addToHistory:mI,getLinkInformation:function(){return wI(t)},getValidationHandler:function(){return CI(t)},getUrlPicker:function(e){return yI(t,e)}}},kI=function(t,e,n){var r=oa(!1),o=SL(e),i={shared:{providers:{icons:function(){return e.ui.registry.getAll().icons},menuItems:function(){return e.ui.registry.getAll().menuItems},translate:zC.translate,isDisabled:function(){return e.mode.isReadOnly()||e.ui.isDisabled()},getSetting:e.getParam.bind(e)},interpreter:function(t){return sL(t,i)},anchors:gL(e,n,o.isPositionedAtTop),header:o,getSink:function(){return ro.value(t)}},urlinput:SI(e),styleselect:VL(e),colorinput:xL(e),dialog:CL(e),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(t){return r.set(t)}};return i},zI=function(t,e,n){var r=function(t,r){$([e,n],(function(e){e.broadcastEvent(t,r)}))},o=function(t,r){$([e,n],(function(e){e.broadcastOn([t],r)}))},i=function(t){return o(yg(),{target:t.target})},a=Cf(),u=ad(a,"touchstart",i),c=ad(a,"touchmove",(function(t){return r(cu(),t)})),s=ad(a,"touchend",(function(t){return r(su(),t)})),l=ad(a,"mousedown",i),f=ad(a,"mouseup",(function(t){0===t.raw.button&&o(wg(),{target:t.target})})),d=function(t){return o(yg(),{target:ee.fromDom(t.target)})},m=function(t){0===t.button&&o(wg(),{target:ee.fromDom(t.target)})},h=function(){$(t.editorManager.get(),(function(e){t!==e&&e.fire("DismissPopups",{relatedTarget:t})}))},g=function(t){return r(lu(),cd(t))},p=function(t){o(xg(),{}),r(fu(),cd(t))},v=function(){return o(xg(),{})},b=function(e){e.state&&o(yg(),{target:ee.fromDom(t.getContainer())})},y=function(t){o(yg(),{target:ee.fromDom(t.relatedTarget.getContainer())})};t.on("PostRender",(function(){t.on("click",d),t.on("tap",d),t.on("mouseup",m),t.on("mousedown",h),t.on("ScrollWindow",g),t.on("ResizeWindow",p),t.on("ResizeEditor",v),t.on("AfterProgressState",b),t.on("DismissPopups",y)})),t.on("remove",(function(){t.off("click",d),t.off("tap",d),t.off("mouseup",m),t.off("mousedown",h),t.off("ScrollWindow",g),t.off("ResizeWindow",p),t.off("ResizeEditor",v),t.off("AfterProgressState",b),t.off("DismissPopups",y),l.unbind(),u.unbind(),c.unbind(),s.unbind(),f.unbind()})),t.on("detach",(function(){Zh(e),Zh(n),e.destroy(),n.destroy()}))},OI=nv,MI=Lp,_I=x([Xi("shell",!1),Ti("makeItem"),Xi("setupItem",p),op.field("listBehaviours",[Ix])]),TI=function(){return{behaviours:mf([Ix.config({})])}},EI=Bp({name:"items",overrides:TI}),AI=x([EI]),HI=x("CustomList"),DI=function(t,e,n,r){var o=function(e,n){a(e).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var o=Ix.contents(r),i=n.length,a=i-o.length,u=a>0?W(a,(function(){return t.makeItem()})):[],c=o.slice(i);$(c,(function(t){return Ix.remove(r,t)})),$(u,(function(t){return Ix.append(r,t)}));var s=Ix.contents(r);$(s,(function(r,o){t.setupItem(e,r,n[o],o)}))}))},i=t.shell?{behaviours:[Ix.config({})],components:[]}:{behaviours:[],components:e},a=function(e){return t.shell?R.some(e):Xp(e,t,"items")};return{uid:t.uid,dom:t.dom,components:i.components,behaviours:rp(t.listBehaviours,i.behaviours),apis:{setItems:o}}},VI=mv({name:HI(),configFields:_I(),partFields:AI(),factory:DI,apis:{setItems:function(t,e,n){t.setItems(e,n)}}}),BI=x([Ti("dom"),Xi("shell",!0),ep("toolbarBehaviours",[Ix])]),RI=function(){return{behaviours:mf([Ix.config({})])}},PI=x([Bp({name:"groups",overrides:RI})]),LI=function(t,e,n,r){var o=function(t,e){i(t).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(t){Ix.set(t,e)}))},i=function(e){return t.shell?R.some(e):Xp(e,t,"groups")},a=t.shell?{behaviours:[Ix.config({})],components:[]}:{behaviours:[],components:e};return{uid:t.uid,dom:t.dom,components:a.components,behaviours:rp(t.toolbarBehaviours,a.behaviours),apis:{setGroups:o},domModification:{attributes:{role:"group"}}}},II=mv({name:"Toolbar",configFields:BI(),partFields:PI(),factory:LI,apis:{setGroups:function(t,e,n){t.setGroups(e,n)}}}),FI=p,NI=O,jI=x([]),UI=Object.freeze({__proto__:null,setup:FI,isDocked:NI,getBehaviours:jI}),WI=function(t){var e=Tt(Qn(t,"position"),"fixed"),n=e?R.none():yn(t);return n.orThunk((function(){var e=ee.fromTag("span");return vn(t).bind((function(t){Er(t,e);var n=yn(e);return Br(e),n}))}))},GI=function(t){return WI(t).map(mr).getOrThunk((function(){return lr(0,0)}))},qI=aa.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),$I=function(t,e){var n=t.element;is(n,e.transitionClass),us(n,e.fadeOutClass),is(n,e.fadeInClass),e.onShow(t)},XI=function(t,e){var n=t.element;is(n,e.transitionClass),us(n,e.fadeInClass),is(n,e.fadeOutClass),e.onHide(t)},KI=function(t,e){return t.y<e.bottom&&t.bottom>e.y},YI=function(t,e){return t.y>=e.y},JI=function(t,e){return t.bottom<=e.bottom},ZI=function(t,e,n){return ot(t,(function(t){switch(t){case"bottom":return JI(e,n);case"top":return YI(e,n)}}))},QI=function(t,e){return e.getInitialPos().map((function(e){return Yr(e.bounds.x,e.bounds.y,vr(t),ar(t))}))},tF=function(t,e,n){n.setInitialPos({style:tr(t),position:Jn(t,"position")||"static",bounds:e})},eF=function(t,e,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return R.some(qI.static());case"absolute":var o=WI(t).map(Jr).getOrThunk((function(){return Jr(Pn())}));return R.some(qI.absolute(Tf("absolute",Ot(r.style,"left").map((function(t){return e.x-o.x})),Ot(r.style,"top").map((function(t){return e.y-o.y})),Ot(r.style,"right").map((function(t){return o.right-e.right})),Ot(r.style,"bottom").map((function(t){return o.bottom-e.bottom})))));default:return R.none()}}))},nF=function(t,e,n){return QI(t,n).filter((function(t){return ZI(n.getModes(),t,e)})).bind((function(e){return eF(t,e,n)}))},rF=function(t,e,n){var r=Jr(t);if(ZI(n.getModes(),r,e))return R.none();tF(t,r,n);var o=Qr(),i=r.x-o.x,a=e.y-o.y,u=o.bottom-e.bottom,c=r.y<=e.y;return R.some(qI.fixed(Tf("fixed",R.some(i),c?R.some(a):R.none(),R.none(),c?R.none():R.some(u))))},oF=function(t,e,n){var r=t.element,o=Tt(Qn(r,"position"),"fixed");return o?nF(r,e,n):rF(r,e,n)},iF=function(t,e){var n=t.element;return QI(n,e).bind((function(t){return eF(n,t,e)}))},aF=function(t,e,n){n.setDocked(!1),$(["left","right","top","bottom","position"],(function(e){return nr(t.element,e)})),e.onUndocked(t)},uF=function(t,e,n,r){var o="fixed"===r.position;n.setDocked(o),Af(t.element,r);var i=o?e.onDocked:e.onUndocked;i(t)},cF=function(t,e,n,r,o){void 0===o&&(o=!1),e.contextual.each((function(e){e.lazyContext(t).each((function(i){var a=KI(i,r);if(a!==n.isVisible())if(n.setVisible(a),o&&!a)ss(t.element,[e.fadeOutClass]),e.onHide(t);else{var u=a?$I:XI;u(t,e)}}))}))},sF=function(t,e,n){var r=e.lazyViewport(t),o=n.isDocked();o&&cF(t,e,n,r),oF(t,r,n).each((function(o){o.fold((function(){return aF(t,e,n)}),(function(r){return uF(t,e,n,r)}),(function(o){cF(t,e,n,r,!0),uF(t,e,n,o)}))}))},lF=function(t,e,n){var r=t.element;n.setDocked(!1),iF(t,n).each((function(r){r.fold((function(){return aF(t,e,n)}),(function(r){return uF(t,e,n,r)}),p)})),n.setVisible(!0),e.contextual.each((function(e){ls(r,[e.fadeInClass,e.fadeOutClass,e.transitionClass]),e.onShow(t)})),fF(t,e,n)},fF=function(t,e,n){t.getSystem().isConnected()&&sF(t,e,n)},dF=function(t,e,n){n.isDocked()&&lF(t,e,n)},mF=function(t,e,n){return n.isDocked()},hF=function(t,e,n,r){return n.setModes(r)},gF=function(t,e,n){return n.getModes()},pF=Object.freeze({__proto__:null,refresh:fF,reset:dF,isDocked:mF,getModes:gF,setModes:hF}),vF=function(t,e){return _u([Nu(qa(),(function(n,r){t.contextual.each((function(t){if(cs(n.element,t.transitionClass)){ls(n.element,[t.transitionClass,t.fadeInClass]);var o=e.isVisible()?t.onShown:t.onHidden;o(n)}r.stop()}))})),Hu(lu(),(function(n,r){fF(n,t,e)})),Hu(fu(),(function(n,r){dF(n,t,e)}))])},bF=Object.freeze({__proto__:null,events:vF}),yF=[qi("contextual",[Hi("fadeInClass"),Hi("fadeOutClass"),Hi("transitionClass"),Bi("lazyContext"),ul("onShow"),ul("onShown"),ul("onHide"),ul("onHidden")]),ta("lazyViewport",Qr),na("modes",["top","bottom"],si),ul("onDocked"),ul("onUndocked")],xF=function(t){var e=oa(!1),n=oa(!0),r=od(),o=oa(t.modes),i=function(){return"docked: "+e.get()+", visible: "+n.get()+", modes: "+o.get().join(",")};return zc({isDocked:e.get,setDocked:e.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:o.get,setModes:o.set,readState:i})},wF=Object.freeze({__proto__:null,init:xF}),CF=gf({fields:yF,name:"docking",active:bF,apis:pF,state:wF}),SF=x(oc("toolbar-height-change")),kF={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},zF="tox-tinymce--toolbar-sticky-on",OF="tox-tinymce--toolbar-sticky-off",MF=function(t,e){var n=mn(e),r=n.dom.defaultView.innerHeight,o=Pr(n),i=ee.fromDom(t.elm),a=Zr(i),u=ar(i),c=a.y,s=c+u,l=mr(e),f=ar(e),d=l.top,m=d+f,h=Math.abs(d-o.top)<2,g=Math.abs(m-(o.top+r))<2;if(h&&c<m)Lr(o.left,c-f,n);else if(g&&s>d){var p=c-r+u+f;Lr(o.left,p,n)}},_F=function(t,e){return j(CF.getModes(t),e)},TF=function(t){var e=function(t){return ur(t)+(parseInt(Jn(t,"margin-top"),10)||0)+(parseInt(Jn(t,"margin-bottom"),10)||0)},n=t.element;vn(n).each((function(r){var o="padding-"+CF.getModes(t)[0];if(CF.isDocked(t)){var i=vr(r);Xn(n,"width",i+"px"),Xn(r,o,e(n)+"px")}else nr(n,"width"),nr(r,o)}))},EF=function(t,e){e?(us(t,kF.fadeOutClass),ss(t,[kF.transitionClass,kF.fadeInClass])):(us(t,kF.fadeInClass),ss(t,[kF.fadeOutClass,kF.transitionClass]))},AF=function(t,e){var n=ee.fromDom(t.getContainer());e?(is(n,zF),us(n,OF)):(is(n,OF),us(n,zF))},HF=function(t,e){var n=mn(e);Of(n).filter((function(t){return!sn(e,t)})).filter((function(e){return sn(e,ee.fromDom(n.dom.body))||dn(t,e)})).each((function(){return Sf(e)}))},DF=function(t,e){return Mf(t).orThunk((function(){return e().toOptional().bind((function(t){return Mf(t.element)}))}))},VF=function(t,e,n){t.inline||(e.header.isPositionedAtTop()||t.on("ResizeEditor",(function(){n().each(CF.reset)})),t.on("ResizeWindow ResizeEditor",(function(){n().each(TF)})),t.on("SkinLoaded",(function(){n().each((function(t){CF.isDocked(t)?CF.reset(t):CF.refresh(t)}))})),t.on("FullscreenStateChanged",(function(){n().each(CF.reset)}))),t.on("AfterScrollIntoView",(function(t){n().each((function(e){CF.refresh(e);var n=e.element;Jb(n)&&MF(t,n)}))})),t.on("PostRender",(function(){AF(t,!1)}))},BF=function(t){return t().map(CF.isDocked).getOr(!1)},RF=function(){var t;return[yf.config({channels:(t={},t[SF()]={onReceive:TF},t)})]},PF=function(t,e){var n=od(),r=e.getSink,o=function(t){r().each((function(e){return t(e.element)}))},i=function(e){t.inline||TF(e),AF(t,CF.isDocked(e)),e.getSystem().broadcastOn([xg()],{}),r().each((function(t){return t.getSystem().broadcastOn([xg()],{})}))},a=t.inline?[]:RF();return A([Yx.config({}),CF.config({contextual:T({lazyContext:function(e){var n=ur(e.element),r=t.inline?t.getContentAreaContainer():t.getContainer(),o=Jr(ee.fromDom(r)),i=o.height-n,a=o.y+(_F(e,"top")?0:n);return R.some(Yr(o.x,a,o.width,i))},onShow:function(){o((function(t){return EF(t,!0)}))},onShown:function(t){o((function(t){return ls(t,[kF.transitionClass,kF.fadeInClass])})),n.get().each((function(e){HF(t.element,e),n.clear()}))},onHide:function(t){DF(t.element,r).fold(n.clear,n.set),o((function(t){return EF(t,!1)}))},onHidden:function(){o((function(t){return ls(t,[kF.transitionClass])}))}},kF),lazyViewport:function(e){var n=Qr(),r=qz(t),o=n.y+(_F(e,"top")?r:0),i=n.height-(_F(e,"bottom")?r:0);return Yr(n.x,o,n.width,i)},modes:[e.header.getDockingMode()],onDocked:i,onUndocked:i})],a,!0)},LF=Object.freeze({__proto__:null,setup:VF,isDocked:BF,getBehaviours:PF}),IF=function(t){var e=t.editor,n=t.sticky?PF:jI;return{uid:t.uid,dom:t.dom,components:t.components,behaviours:mf(n(e,t.sharedBackstage))}},FF=ti([Hi("type"),Ei("items",ni([ii([Hi("name"),Ii("items",si)]),si]))].concat(kS)),NF=function(t){return xi("GroupToolbarButton",FF,t)},jF=[Ui("text"),Ui("tooltip"),Ui("icon"),Bi("fetch"),ta("onSetup",(function(){return p}))],UF=ti(A([Hi("type")],jF,!0)),WF=function(t){return xi("menubutton",UF,t)},GF=ti([Hi("type"),Ui("tooltip"),Ui("icon"),Ui("text"),Wi("select"),Bi("fetch"),ta("onSetup",(function(){return p})),Zi("presets","normal",["normal","color","listpreview"]),Xi("columns",1),Bi("onAction"),Bi("onItemAction")]),qF=function(t){return xi("SplitButton",GF,t)},$F=function(t,e){var n=function(t,n){var r=q(n,(function(t){var n={type:"menubutton",text:t.text,fetch:function(e){e(t.getItems())}},r=WF(n).mapError((function(t){return Si(t)})).getOrDie();return $B(r,"tox-mbtn",e.backstage,R.some("menuitem"))}));Ix.set(t,r)},r={focus:Tx.focusIn,setMenus:n};return{uid:t.uid,dom:t.dom,components:[],behaviours:mf([Ix.config({}),Nx("menubar-events",[ju((function(e){t.onSetup(e)})),Hu(Pa(),(function(t,e){Ls(t.element,".tox-mbtn--active").each((function(n){Is(e.event.target,".tox-mbtn").each((function(e){sn(n,e)||t.getSystem().getByDom(n).each((function(n){t.getSystem().getByDom(e).each((function(t){PE.expand(t),PE.close(n),Yx.focus(t)}))}))}))}))})),Hu(pu(),(function(t,e){e.event.prevFocus.bind((function(e){return t.getSystem().getByDom(e).toOptional()})).each((function(n){e.event.newFocus.bind((function(e){return t.getSystem().getByDom(e).toOptional()})).each((function(t){PE.isOpen(n)&&(PE.expand(t),PE.close(n))}))}))}))]),Tx.config({mode:"flow",selector:".tox-mbtn",onEscape:function(e){return t.onEscape(e),R.some(!0)}}),yT.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},XF=dv({factory:$F,name:"silver.Menubar",configFields:[Ti("dom"),Ti("uid"),Ti("onEscape"),Ti("backstage"),Xi("onSetup",p)],apis:{focus:function(t,e){t.focus(e)},setMenus:function(t,e,n){t.setMenus(e,n)}}}),KF=function(t,e){return e.getAnimationRoot.fold((function(){return t.element}),(function(e){return e(t)}))},YF=function(t){return t.dimension.property},JF=function(t,e){return t.dimension.getDimension(e)},ZF=function(t,e){var n=KF(t,e);ls(n,[e.shrinkingClass,e.growingClass])},QF=function(t,e){us(t.element,e.openClass),is(t.element,e.closedClass),Xn(t.element,YF(e),"0px"),rr(t.element)},tN=function(t,e){us(t.element,e.closedClass),is(t.element,e.openClass),nr(t.element,YF(e))},eN=function(t,e,n,r){n.setCollapsed(),Xn(t.element,YF(e),JF(e,t.element)),rr(t.element),ZF(t,e),QF(t,e),e.onStartShrink(t),e.onShrunk(t)},nN=function(t,e,n,r){var o=r.getOrThunk((function(){return JF(e,t.element)}));n.setCollapsed(),Xn(t.element,YF(e),o),rr(t.element);var i=KF(t,e);us(i,e.growingClass),is(i,e.shrinkingClass),QF(t,e),e.onStartShrink(t)},rN=function(t,e,n){var r=JF(e,t.element),o="0px"===r?eN:nN;o(t,e,n,R.some(r))},oN=function(t,e,n){var r=KF(t,e),o=cs(r,e.shrinkingClass),i=JF(e,t.element);tN(t,e);var a=JF(e,t.element),u=function(){Xn(t.element,YF(e),i),rr(t.element)},c=function(){QF(t,e)},s=o?u:c;s(),us(r,e.shrinkingClass),is(r,e.growingClass),tN(t,e),Xn(t.element,YF(e),a),n.setExpanded(),e.onStartGrow(t)},iN=function(t,e,n){if(n.isExpanded()){nr(t.element,YF(e));var r=JF(e,t.element);Xn(t.element,YF(e),r)}},aN=function(t,e,n){n.isExpanded()||oN(t,e,n)},uN=function(t,e,n){n.isExpanded()&&rN(t,e,n)},cN=function(t,e,n){n.isExpanded()&&eN(t,e,n)},sN=function(t,e,n){return n.isExpanded()},lN=function(t,e,n){return n.isCollapsed()},fN=function(t,e,n){var r=KF(t,e);return!0===cs(r,e.growingClass)},dN=function(t,e,n){var r=KF(t,e);return!0===cs(r,e.shrinkingClass)},mN=function(t,e,n){return fN(t,e)||dN(t,e)},hN=function(t,e,n){var r=n.isExpanded()?rN:oN;r(t,e,n)},gN=Object.freeze({__proto__:null,refresh:iN,grow:aN,shrink:uN,immediateShrink:cN,hasGrown:sN,hasShrunk:lN,isGrowing:fN,isShrinking:dN,isTransitioning:mN,toggleGrow:hN,disableTransitions:ZF}),pN=function(t,e,n){var r=e.expanded;return Ec(r?{classes:[e.openClass],styles:{}}:{classes:[e.closedClass],styles:ma(e.dimension.property,"0px")})},vN=function(t,e){return _u([Nu(qa(),(function(n,r){var o=r.event.raw;if(o.propertyName===t.dimension.property){ZF(n,t),e.isExpanded()&&nr(n.element,t.dimension.property);var i=e.isExpanded()?t.onGrown:t.onShrunk;i(n)}}))])},bN=Object.freeze({__proto__:null,exhibit:pN,events:vN}),yN=[Ti("closedClass"),Ti("openClass"),Ti("shrinkingClass"),Ti("growingClass"),Fi("getAnimationRoot"),ul("onShrunk"),ul("onStartShrink"),ul("onGrown"),ul("onStartGrow"),Xi("expanded",!1),Ei("dimension",ki("property",{width:[fl("property","width"),fl("getDimension",(function(t){return vr(t)+"px"}))],height:[fl("property","height"),fl("getDimension",(function(t){return ar(t)+"px"}))]}))],xN=function(t){var e=oa(t.expanded),n=function(){return"expanded: "+e.get()};return zc({isExpanded:function(){return!0===e.get()},isCollapsed:function(){return!1===e.get()},setCollapsed:S(e.set,!1),setExpanded:S(e.set,!0),readState:n})},wN=Object.freeze({__proto__:null,init:xN}),CN=gf({fields:yN,name:"sliding",active:bN,apis:gN,state:wN}),SN="container",kN=[ep("slotBehaviours",[])],zN=function(t){return"<alloy.field."+t+">"},ON=function(t){var e=function(){var t=[],e=function(e,n){return t.push(e),Up(SN,zN(e),n)};return{slot:e,record:x(t)}}(),n=t(e),r=e.record(),o=q(r,(function(t){return Dp({name:t,pname:zN(t)})}));return av(SN,kN,o,MN,n)},MN=function(t,e){var n=function(e){return Zp(t)},r=function(e,n){return Xp(e,t,n)},o=function(e,n){return function(r,o){return Xp(r,t,o).map((function(t){return e(t,o)})).getOr(n)}},i=function(t){return function(e,n){$(n,(function(n){return t(e,n)}))}},a=function(t,e){return"true"!==jn(t.element,"aria-hidden")},u=function(t,e){if(!a(t)){var n=t.element;nr(n,"display"),Gn(n,"aria-hidden"),Su(t,vu(),{name:e,visible:!0})}},c=function(t,e){if(a(t)){var n=t.element;Xn(n,"display","none"),Fn(n,"aria-hidden","true"),Su(t,vu(),{name:e,visible:!1})}},s=o(a,!1),l=o(c),f=i(l),d=function(t){return f(t,n())},m=o(u),h={getSlotNames:n,getSlot:r,isShowing:s,hideSlot:l,hideAllSlots:d,showSlot:m};return{uid:t.uid,dom:t.dom,components:e,behaviours:np(t.slotBehaviours),apis:h}},_N=bt({getSlotNames:function(t,e){return t.getSlotNames(e)},getSlot:function(t,e,n){return t.getSlot(e,n)},isShowing:function(t,e,n){return t.isShowing(e,n)},hideSlot:function(t,e,n){return t.hideSlot(e,n)},hideAllSlots:function(t,e){return t.hideAllSlots(e)},showSlot:function(t,e,n){return t.showSlot(e,n)}},(function(t){return Sc(t)})),TN=T(T({},_N),{sketch:ON}),EN=ti([Ui("icon"),Ui("tooltip"),ta("onShow",p),ta("onHide",p),ta("onSetup",(function(){return p}))]),AN=function(t){return xi("sidebar",EN,t)},HN=function(t){var e=t.ui.registry.getAll().sidebars;$(gt(e),(function(n){var r=e[n],o=function(){return Tt(R.from(t.queryCommandValue("ToggleSidebar")),n)};t.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(e){t.execCommand("ToggleSidebar",!1,n),e.setActive(o())},onSetup:function(e){var n=function(){return e.setActive(o())};return t.on("ToggleSidebar",n),function(){t.off("ToggleSidebar",n)}}})}))},DN=function(t){return{element:function(){return t.element.dom}}},VN=function(t,e){var n=q(gt(e),(function(t){var n=e[t],r=wi(AN(n));return{name:t,getApi:DN,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return q(n,(function(e){var r=oa(p);return t.slot(e.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:Zk.unnamedEvents([gO(e,r),pO(e,r),Hu(vu(),(function(t,e){var r=e.event,o=tt(n,(function(t){return t.name===r.name}));o.each((function(e){var n=r.visible?e.onShow:e.onHide;n(e.getApi(t))}))}))])})}))},BN=function(t){return TN.sketch((function(e){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:VN(e,t),slotBehaviours:Zk.unnamedEvents([ju((function(t){return TN.hideAllSlots(t)}))])}}))},RN=function(t,e){var n=bv.getCurrent(t);n.each((function(t){return Ix.set(t,[BN(e)])}))},PN=function(t,e){var n=bv.getCurrent(t);n.each((function(t){var n=bv.getCurrent(t);n.each((function(n){CN.hasGrown(t)?TN.isShowing(n,e)?CN.shrink(t):(TN.hideAllSlots(n),TN.showSlot(n,e)):(TN.hideAllSlots(n),TN.showSlot(n,e),CN.grow(t))}))}))},LN=function(t){var e=bv.getCurrent(t);return e.bind((function(t){var e=CN.isGrowing(t)||CN.hasGrown(t);if(e){var n=bv.getCurrent(t);return n.bind((function(t){return tt(TN.getSlotNames(t),(function(e){return TN.isShowing(t,e)}))}))}return R.none()}))},IN=oc("FixSizeEvent"),FN=oc("AutoSizeEvent"),NN=function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:mf([yT.config({}),Yx.config({}),CN.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(t){var e=bv.getCurrent(t);e.each(TN.hideAllSlots),Cu(t,FN)},onGrown:function(t){Cu(t,FN)},onStartGrow:function(t){Su(t,IN,{width:Qn(t.element,"width").getOr("")})},onStartShrink:function(t){Su(t,IN,{width:vr(t.element)+"px"})}}),Ix.config({}),bv.config({find:function(t){var e=Ix.contents(t);return ft(e)}})])}],behaviours:mf([WD.childAt(0),Nx("sidebar-sliding-events",[Hu(IN,(function(t,e){Xn(t.element,"width",e.event.width)})),Hu(FN,(function(t,e){nr(t.element,"width")}))])])}},jN=function(t,e,n,r){Fn(t.element,"aria-busy",!0);var o=e.getRoot(t).getOr(t),i=mf([Tx.config({mode:"special",onTab:function(){return R.some(!0)},onShiftTab:function(){return R.some(!0)}}),Yx.config({})]),a=r(o,i),u=o.getSystem().build(a);Ix.append(o,_s(u)),u.hasConfigured(Tx)&&e.focus&&Tx.focusIn(u),n.isBlocked()||e.onBlock(t),n.blockWith((function(){return Ix.remove(o,u)}))},UN=function(t,e,n){Gn(t.element,"aria-busy"),n.isBlocked()&&e.onUnblock(t),n.clear()},WN=Object.freeze({__proto__:null,block:jN,unblock:UN}),GN=[ta("getRoot",R.none),Qi("focus",!0),ul("onBlock"),ul("onUnblock")],qN=function(){var t=ed(),e=function(e){t.set({destroy:e})};return zc({readState:t.isSet,blockWith:e,clear:t.clear,isBlocked:t.isSet})},$N=Object.freeze({__proto__:null,init:qN}),XN=gf({fields:GN,name:"blocking",apis:WN,state:$N}),KN=function(t){var e=void 0!==t.dom.attributes?t.dom.attributes:[];return Z(e,(function(t,e){var n;return"class"===e.name?t:T(T({},t),(n={},n[e.name]=e.value,n))}),{})},YN=function(t){return Array.prototype.slice.call(t.dom.classList,0)},JN=function(t){var e=ee.fromHtml(t),n=wn(e),r=KN(e),o=YN(e),i=0===n.length?{}:{innerHtml:$u(e)};return T({tag:ue(e),classes:o,attributes:r},i)},ZN=function(t){return function(e,n){return{dom:{tag:"div",attributes:{"aria-label":t.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:JN('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},QN=function(t){return bv.getCurrent(t).each((function(t){return Sf(t.element)}))},tj=function(t,e){var n="tabindex",r="data-mce-"+n;R.from(t.iframeElement).map(ee.fromDom).each((function(t){e?(Un(t,n).each((function(e){return Fn(t,r,e)})),Fn(t,n,-1)):(Gn(t,n),Un(t,r).each((function(e){Fn(t,n,e),Gn(t,r)})))}))},ej=function(t,e,n,r){var o=e.element;if(tj(t,n),n)XN.block(e,ZN(r)),nr(o,"display"),Gn(o,"aria-hidden"),t.hasFocus()&&QN(e);else{var i=bv.getCurrent(e).exists((function(t){return zf(t.element)}));XN.unblock(e),Xn(o,"display","none"),Fn(o,"aria-hidden","true"),i&&t.focus()}},nj=function(t){return{uid:t.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:mf([Ix.config({}),XN.config({focus:!1}),bv.config({find:function(t){return ft(t.components())}})]),components:[]}},rj=function(t){return"focusin"===t.type},oj=function(t){if(rj(t)){var e=t.composed?ft(t.composedPath()):R.from(t.target);return e.map(ee.fromDom).filter(le).exists((function(t){return cs(t,"mce-pastebin")}))}return!1},ij=function(t,e,n){var r=oa(!1),o=od(),i=function(n){r.get()&&!oj(n)&&(n.preventDefault(),QN(e()),t.editorManager.setActive(t))};t.inline||t.on("PreInit",(function(){t.dom.bind(t.getWin(),"focusin",i),t.on("BeforeExecCommand",(function(t){"mcefocus"===t.command.toLowerCase()&&!0!==t.value&&i(t)}))}));var a=function(o){o!==r.get()&&(r.set(o),ej(t,e(),o,n.providers),t.fire("AfterProgressState",{state:o}))};t.on("ProgressState",(function(e){if(o.on(wC.clearTimeout),h(e.time)){var n=wC.setEditorTimeout(t,(function(){return a(e.state)}),e.time);o.set(n)}else a(e.state),o.clear()}))},aj=function(t,e){var n={len:0,list:[]},r=Z(t,(function(t,n){var r=e(n,t.len);return r.fold(x(t),(function(e){return{len:e.finish,list:t.list.concat([e])}}))}),n);return r.list},uj=function(t,e,n){return{within:t,extra:e,withinWidth:n}},cj=function(t,e,n){var r=aj(t,(function(t,e){var r=n(t);return R.some({element:t,start:e,finish:e+r,width:r})})),o=Y(r,(function(t){return t.finish<=e})),i=J(o,(function(t,e){return t+e.width}),0),a=r.slice(o.length);return{within:o,extra:a,withinWidth:i}},sj=function(t){return q(t,(function(t){return t.element}))},lj=function(t,e,n){var r=sj(t.concat(e));return uj(r,[],n)},fj=function(t,e,n,r){var o=sj(t).concat([n]);return uj(o,sj(e),r)},dj=function(t,e,n){return uj(sj(t),[],n)},mj=function(t,e,n){var r=cj(e,t,n);return 0===r.extra.length?R.some(r):R.none()},hj=function(t,e,n,r){var o=mj(t,e,n).getOrThunk((function(){return cj(e,t-n(r),n)})),i=o.within,a=o.extra,u=o.withinWidth;return 1===a.length&&a[0].width<=n(r)?lj(i,a,u):a.length>=1?fj(i,a,r,u):dj(i,a,u)},gj=function(t,e){var n=q(e,(function(t){return _s(t)}));II.setGroups(t,n)},pj=function(t){return ht(t,(function(t){return Mf(t.element).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}))},vj=function(t,e,n){var r=e.builtGroups.get();if(0!==r.length){var o=Kp(t,e,"primary"),i=bE.getCoupled(t,"overflowGroup");Xn(o.element,"visibility","hidden");var a=r.concat([i]),u=pj(a);n([]),gj(o,a);var c=vr(o.element),s=hj(c,e.builtGroups.get(),(function(t){return vr(t.element)}),i);0===s.extra.length?(Ix.remove(o,i),n([])):(gj(o,s.within),n(s.extra)),nr(o.element,"visibility"),rr(o.element),u.each(Yx.focus)}},bj=x([ep("splitToolbarBehaviours",[bE]),Mi("builtGroups",(function(){return oa([])}))]),yj=x([il(["overflowToggledClass"]),Wi("getOverflowBounds"),Ti("lazySink"),Mi("overflowGroups",(function(){return oa([])}))].concat(bj())),xj=x([Dp({factory:II,schema:BI(),name:"primary"}),Vp({schema:BI(),name:"overflow"}),Vp({name:"overflow-button"}),Vp({name:"overflow-group"})]),wj=x((function(t,e){yr(t,Math.floor(e))})),Cj=x([il(["toggledClass"]),Ti("lazySink"),Bi("fetch"),Wi("getBounds"),qi("fireDismissalEventInstead",[Xi("event",hu())]),Id()]),Sj=x([Vp({name:"button",overrides:function(t){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:mf([gw.config({toggleClass:t.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Vp({factory:II,schema:BI(),name:"toolbar",overrides:function(t){return{toolbarBehaviours:mf([Tx.config({mode:"cyclic",onEscape:function(e){return Xp(e,t,"button").each(Yx.focus),R.none()}})])}}})]),kj=function(t,e){var n=bE.getCoupled(t,"toolbarSandbox");bg.isOpen(n)?bg.close(n):bg.open(n,e.toolbar())},zj=function(t,e,n,r){var o=n.getBounds.map((function(t){return t()})),i=n.lazySink(t).getOrDie();Lh.positionWithinBounds(i,e,{anchor:{type:"hotspot",hotspot:t,layouts:r,overrides:{maxWidthFunction:wj()}}},o)},Oj=function(t,e,n,r,o){II.setGroups(e,o),zj(t,e,n,r),gw.on(t)},Mj=function(t,e,n){var r=Ns(),o=function(o,i){n.fetch().get((function(o){Oj(t,i,n,e.layouts,o),r.link(t.element),Tx.focusIn(i)}))},i=function(){gw.off(t),Yx.focus(t),r.unlink(t.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:mf([Tx.config({mode:"special",onEscape:function(t){return bg.close(t),R.some(!0)}}),bg.config({onOpen:o,onClose:i,isPartOf:function(e,n,r){return Us(n,r)||Us(t,r)},getAttachPoint:function(){return n.lazySink(t).getOrDie()}}),yf.config({channels:T(T({},Sg(T({isExtraPart:O},n.fireDismissalEventInstead.map((function(t){return{fireEventInstead:{event:t.event}}})).getOr({})))),zg({doReposition:function(){bg.getState(bE.getCoupled(t,"toolbarSandbox")).each((function(r){zj(t,r,n,e.layouts)}))}}))})])}},_j=function(t,e,n,r){return T(T({},SC.sketch(T(T({},r.button()),{action:function(t){kj(t,r)},buttonBehaviours:op.augment({dump:r.button().buttonBehaviours},[bE.config({others:{toolbarSandbox:function(e){return Mj(e,n,t)}}})])}))),{apis:{setGroups:function(e,r){bg.getState(bE.getCoupled(e,"toolbarSandbox")).each((function(o){Oj(e,o,t,n.layouts,r)}))},reposition:function(e){bg.getState(bE.getCoupled(e,"toolbarSandbox")).each((function(r){zj(e,r,t,n.layouts)}))},toggle:function(t){kj(t,r)},getToolbar:function(t){return bg.getState(bE.getCoupled(t,"toolbarSandbox"))},isOpen:function(t){return bg.isOpen(bE.getCoupled(t,"toolbarSandbox"))}}})},Tj=mv({name:"FloatingToolbarButton",factory:_j,configFields:Cj(),partFields:Sj(),apis:{setGroups:function(t,e,n){t.setGroups(e,n)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},getToolbar:function(t,e){return t.getToolbar(e)},isOpen:function(t,e){return t.isOpen(e)}}}),Ej=x([Ti("items"),il(["itemSelector"]),ep("tgroupBehaviours",[Tx])]),Aj=x([Rp({name:"items",unit:"item"})]),Hj=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,behaviours:rp(t.tgroupBehaviours,[Tx.config({mode:"flow",selector:t.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},Dj=mv({name:"ToolbarGroup",configFields:Ej(),partFields:Aj(),factory:Hj}),Vj=function(t){return q(t,(function(t){return _s(t)}))},Bj=function(t,e,n){vj(t,n,(function(r){n.overflowGroups.set(r),e.getOpt(t).each((function(t){Tj.setGroups(t,Vj(r))}))}))},Rj=function(t,e,n,r){var o=kC(Tj.sketch({fetch:function(){return tE.nu((function(e){e(Vj(t.overflowGroups.get()))}))},layouts:{onLtr:function(){return[jl,Nl]},onRtl:function(){return[Nl,jl]},onBottomLtr:function(){return[Wl,Ul]},onBottomRtl:function(){return[Ul,Wl]}},getBounds:n.getOverflowBounds,lazySink:t.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:t.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:t.uid,dom:t.dom,components:e,behaviours:rp(t.splitToolbarBehaviours,[bE.config({others:{overflowGroup:function(){return Dj.sketch(T(T({},r["overflow-group"]()),{items:[o.asSpec()]}))}}})]),apis:{setGroups:function(e,n){t.builtGroups.set(q(n,e.getSystem().build)),Bj(e,o,t)},refresh:function(e){return Bj(e,o,t)},toggle:function(t){o.getOpt(t).each((function(t){Tj.toggle(t)}))},isOpen:function(t){return o.getOpt(t).map(Tj.isOpen).getOr(!1)},reposition:function(t){o.getOpt(t).each((function(t){Tj.reposition(t)}))},getOverflow:function(t){return o.getOpt(t).bind(Tj.getToolbar)}},domModification:{attributes:{role:"group"}}}},Pj=mv({name:"SplitFloatingToolbar",configFields:yj(),partFields:xj(),factory:Rj,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},reposition:function(t,e){t.reposition(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)},getOverflow:function(t,e){return t.getOverflow(e)}}}),Lj=x([il(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),ul("onOpened"),ul("onClosed")].concat(bj())),Ij=x([Dp({factory:II,schema:BI(),name:"primary"}),Dp({factory:II,schema:BI(),name:"overflow",overrides:function(t){return{toolbarBehaviours:mf([CN.config({dimension:{property:"height"},closedClass:t.markers.closedClass,openClass:t.markers.openClass,shrinkingClass:t.markers.shrinkingClass,growingClass:t.markers.growingClass,onShrunk:function(e){Xp(e,t,"overflow-button").each((function(t){gw.off(t),Yx.focus(t)})),t.onClosed(e)},onGrown:function(e){Tx.focusIn(e),t.onOpened(e)},onStartGrow:function(e){Xp(e,t,"overflow-button").each(gw.on)}}),Tx.config({mode:"acyclic",onEscape:function(e){return Xp(e,t,"overflow-button").each(Yx.focus),R.some(!0)}})])}}}),Vp({name:"overflow-button",overrides:function(t){return{buttonBehaviours:mf([gw.config({toggleClass:t.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Vp({name:"overflow-group"})]),Fj=function(t,e){return Xp(t,e,"overflow").map(CN.hasGrown).getOr(!1)},Nj=function(t,e){Xp(t,e,"overflow-button").bind((function(){return Xp(t,e,"overflow")})).each((function(n){jj(t,e),CN.toggleGrow(n)}))},jj=function(t,e){Xp(t,e,"overflow").each((function(n){vj(t,e,(function(t){var e=q(t,(function(t){return _s(t)}));II.setGroups(n,e)})),Xp(t,e,"overflow-button").each((function(t){CN.hasGrown(n)&&gw.on(t)})),CN.refresh(n)}))},Uj=function(t,e,n,r){var o="alloy.toolbar.toggle",i=function(e,n){var r=q(n,e.getSystem().build);t.builtGroups.set(r)};return{uid:t.uid,dom:t.dom,components:e,behaviours:rp(t.splitToolbarBehaviours,[bE.config({others:{overflowGroup:function(t){return Dj.sketch(T(T({},r["overflow-group"]()),{items:[SC.sketch(T(T({},r["overflow-button"]()),{action:function(e){Cu(t,o)}}))]}))}}}),Nx("toolbar-toggle-events",[Hu(o,(function(e){Nj(e,t)}))])]),apis:{setGroups:function(e,n){i(e,n),jj(e,t)},refresh:function(e){return jj(e,t)},toggle:function(e){return Nj(e,t)},isOpen:function(e){return Fj(e,t)}},domModification:{attributes:{role:"group"}}}},Wj=mv({name:"SplitSlidingToolbar",configFields:Lj(),partFields:Ij(),factory:Uj,apis:{setGroups:function(t,e,n){t.setGroups(e,n)},refresh:function(t,e){t.refresh(e)},toggle:function(t,e){t.toggle(e)},isOpen:function(t,e){return t.isOpen(e)}}}),Gj=function(t){var e=t.title.fold((function(){return{}}),(function(t){return{attributes:{title:t}}}));return{dom:T({tag:"div",classes:["tox-toolbar__group"]},e),components:[Dj.parts.items({})],items:t.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:mf([yT.config({}),Yx.config({})])}},qj=function(t){return Dj.sketch(Gj(t))},$j=function(t,e){var n=ju((function(e){var n=q(t.initGroups,qj);II.setGroups(e,n)}));return mf([mO.toolbarButton(t.providers.isDisabled),cO(),Tx.config({mode:e,onEscape:t.onEscape,selector:".tox-toolbar__group"}),Nx("toolbar-events",[n])])},Xj=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return{uid:t.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":Gj({title:R.none(),items:[]}),"overflow-button":YB({name:"more",icon:R.some("more-drawer"),disabled:!1,tooltip:R.some("More..."),primary:!1,borderless:!1},R.none(),t.providers)},splitToolbarBehaviours:$j(t,e)}},Kj=function(t){var e=Xj(t),n=4,r=Pj.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return Pj.sketch(T(T({},e),{lazySink:t.getSink,getOverflowBounds:function(){var e=t.moreDrawerData.lazyHeader().element,r=Zr(e),o=gn(e),i=Zr(o),a=Math.max(o.dom.scrollHeight,i.height);return Yr(r.x+n,i.y,r.width-2*n,a)},parts:T(T({},e.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:t.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},Yj=function(t){var e=Wj.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=Wj.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=Xj(t);return Wj.sketch(T(T({},r),{components:[e,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(t){t.getSystem().broadcastOn([SF()],{type:"opened"})},onClosed:function(t){t.getSystem().broadcastOn([SF()],{type:"closed"})}}))},Jj=function(t){var e=t.cyclicKeying?"cyclic":"acyclic";return II.sketch({uid:t.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(t.type===jS.scrolling?["tox-toolbar--scrolling"]:[])},components:[II.parts.groups({})],toolbarBehaviours:$j(t,e)})},Zj=function(t,e,n){var r={getSocket:function(e){return OI.getPart(e,t,"socket")},setSidebar:function(e,n){OI.getPart(e,t,"sidebar").each((function(t){return RN(t,n)}))},toggleSidebar:function(e,n){OI.getPart(e,t,"sidebar").each((function(t){return PN(t,n)}))},whichSidebar:function(e){return OI.getPart(e,t,"sidebar").bind(LN).getOrNull()},getHeader:function(e){return OI.getPart(e,t,"header")},getToolbar:function(e){return OI.getPart(e,t,"toolbar")},setToolbar:function(e,n){OI.getPart(e,t,"toolbar").each((function(t){t.getApis().setGroups(t,n)}))},setToolbars:function(e,n){OI.getPart(e,t,"multiple-toolbar").each((function(t){VI.setItems(t,n)}))},refreshToolbar:function(e){var n=OI.getPart(e,t,"toolbar");n.each((function(t){return t.getApis().refresh(t)}))},toggleToolbarDrawer:function(e){OI.getPart(e,t,"toolbar").each((function(t){Bt(t.getApis().toggle,(function(e){return e(t)}))}))},isToolbarDrawerToggled:function(e){return OI.getPart(e,t,"toolbar").bind((function(t){return R.from(t.getApis().isOpen).map((function(e){return e(t)}))})).getOr(!1)},getThrobber:function(e){return OI.getPart(e,t,"throbber")},focusToolbar:function(e){var n=OI.getPart(e,t,"toolbar").orThunk((function(){return OI.getPart(e,t,"multiple-toolbar")}));n.each((function(t){Tx.focusIn(t)}))},setMenubar:function(e,n){OI.getPart(e,t,"menubar").each((function(t){XF.setMenus(t,n)}))},focusMenubar:function(e){OI.getPart(e,t,"menubar").each((function(t){XF.focus(t)}))}};return{uid:t.uid,dom:t.dom,components:e,apis:r,behaviours:t.behaviours}},Qj=MI.optional({factory:XF,name:"menubar",schema:[Ti("backstage")]}),tU=function(t){return t.type===jS.sliding?Yj:t.type===jS.floating?Kj:Jj},eU=MI.optional({factory:{sketch:function(t){return VI.sketch({uid:t.uid,dom:t.dom,listBehaviours:mf([Tx.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return Jj({type:t.type,uid:oc("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:t.providers,onEscape:function(){return t.onEscape(),R.some(!0)}})},setupItem:function(t,e,n,r){II.setGroups(e,n)},shell:!0})}},name:"multiple-toolbar",schema:[Ti("dom"),Ti("onEscape")]}),nU=MI.optional({factory:{sketch:function(t){var e=tU(t),n={type:t.type,uid:t.uid,onEscape:function(){return t.onEscape(),R.some(!0)},cyclicKeying:!1,initGroups:[],getSink:t.getSink,providers:t.providers,moreDrawerData:{lazyToolbar:t.lazyToolbar,lazyMoreButton:t.lazyMoreButton,lazyHeader:t.lazyHeader},attributes:t.attributes};return e(n)}},name:"toolbar",schema:[Ti("dom"),Ti("onEscape"),Ti("getSink")]}),rU=MI.optional({factory:{sketch:IF},name:"header",schema:[Ti("dom")]}),oU=MI.optional({name:"socket",schema:[Ti("dom")]}),iU=MI.optional({factory:{sketch:NN},name:"sidebar",schema:[Ti("dom")]}),aU=MI.optional({factory:{sketch:nj},name:"throbber",schema:[Ti("dom")]}),uU=mv({name:"OuterContainer",factory:Zj,configFields:[Ti("dom"),Ti("behaviours")],partFields:[rU,Qj,nU,eU,oU,iU,aU],apis:{getSocket:function(t,e){return t.getSocket(e)},setSidebar:function(t,e,n){t.setSidebar(e,n)},toggleSidebar:function(t,e,n){t.toggleSidebar(e,n)},whichSidebar:function(t,e){return t.whichSidebar(e)},getHeader:function(t,e){return t.getHeader(e)},getToolbar:function(t,e){return t.getToolbar(e)},setToolbar:function(t,e,n){var r=q(n,(function(t){return qj(t)}));t.setToolbar(e,r)},setToolbars:function(t,e,n){var r=q(n,(function(t){return q(t,qj)}));t.setToolbars(e,r)},refreshToolbar:function(t,e){return t.refreshToolbar(e)},toggleToolbarDrawer:function(t,e){t.toggleToolbarDrawer(e)},isToolbarDrawerToggled:function(t,e){return t.isToolbarDrawerToggled(e)},getThrobber:function(t,e){return t.getThrobber(e)},setMenubar:function(t,e,n){t.setMenubar(e,n)},focusMenubar:function(t,e){t.focusMenubar(e)},focusToolbar:function(t,e){t.focusToolbar(e)}}}),cU="file edit view insert format tools table help",sU={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},lU=function(t,e,n){var r=Mz(n).split(/[ ,]/);return{text:t.title,getItems:function(){return rt(t.items,(function(t){var n=t.toLowerCase();return 0===n.trim().length||U(r,(function(t){return t===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:e.menuItems[n]?[e.menuItems[n]]:[]}))}}},fU=function(t){return"string"===typeof t?t.split(" "):t},dU=function(t,e){var n=T(T({},sU),e.menus),r=gt(e.menus).length>0,o=void 0===e.menubar||!0===e.menubar?fU(cU):fU(!1===e.menubar?"":e.menubar),i=Y(o,(function(t){var n=Mt(sU,t);return r?n||Ot(e.menus,t).exists((function(t){return Mt(t,"items")})):n})),a=q(i,(function(r){var o=n[r];return lU({title:o.title,items:fU(o.items)},e,t)}));return Y(a,(function(t){var e=function(t){return"separator"!==t.type};return t.getItems().length>0&&U(t.getItems(),e)}))},mU=function(t){var e=function(){t._skinLoaded=!0,gM(t)};return function(){t.initialized?e():t.on("init",e)}},hU=function(t,e){return function(){return pM(t,{message:e})}},gU=function(t,e,n){return new aS((function(r,o){n.load(e,r,o),t.on("remove",(function(){return n.unload(e)}))}))},pU=function(t,e){var n=e+"/skin.min.css";return gU(t,n,t.ui.styleSheetLoader)},vU=function(t,e){var n=An(ee.fromDom(t.getElement()));if(n){var r=e+"/skin.shadowdom.min.css";return gU(t,r,dz.DOM.styleSheetLoader)}return aS.resolve()},bU=function(t,e){var n=hz(e);n&&e.contentCSS.push(n+(t?"/content.inline":"/content")+".min.css"),!1===pz(e)&&i(n)?aS.all([pU(e,n),vU(e,n)]).then(mU(e),hU(e,"Skin could not be loaded")):mU(e)()},yU=S(bU,!1),xU=S(bU,!0),wU=function(t,e){return function(n){var r=nd(),o=function(){n.setActive(t.formatter.match(e));var o=t.formatter.formatChanged(e,n.setActive);r.set(o)};return t.initialized?o():t.once("init",o),function(){t.off("init",o),r.clear()}}},CU=function(t,e,n){return function(r){var o=function(){return n(r)},i=function(){n(r),t.on(e,o)};return t.initialized?i():t.once("init",i),function(){t.off("init",i),t.off(e,o)}}},SU=function(t){return function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("mceToggleFormat",!1,e.format)}))}}},kU=function(t,e){return function(){return t.execCommand(e)}},zU=function(t,e,n){var r=function(t,r,i,a){var u=e.shared.providers.translate(t.title);if("separator"===t.type)return R.some({type:"separator",text:u});if("submenu"===t.type){var c=rt(t.getStyleItems(),(function(t){return o(t,r,a)}));return 0===r&&c.length<=0?R.none():R.some({type:"nestedmenuitem",text:u,disabled:c.length<=0,getSubmenuItems:function(){return rt(t.getStyleItems(),(function(t){return o(t,r,a)}))}})}return R.some(T({type:"togglemenuitem",text:u,icon:t.icon,active:t.isSelected(a),disabled:i,onAction:n.onAction(t)},t.getStylePreview().fold((function(){return{}}),(function(t){return{meta:{style:t}}}))))},o=function(t,e,o){var i="formatter"===t.type&&n.isInvalid(t);return 0===e?i?[]:r(t,e,!1,o).toArray():r(t,e,i,o).toArray()},i=function(t){var e=n.getCurrentValue(),r=n.shouldHide?0:1;return rt(t,(function(t){return o(t,r,e)}))},a=function(t,e){return function(n,r){var o=e(),a=i(o),u=GB(a,US.CLOSE_ON_EXECUTE,t,!1);r(u)}};return{validateItems:i,getFetch:a}},OU=function(t,e,n){var r=n.dataset,o="basic"===r.type?function(){return q(r.data,(function(t){return HL(t,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:zU(t,e,n),getStyleItems:o}},MU=function(t,e,n){var r=OU(t,e,n),o=r.items,i=r.getStyleItems,a=function(t){return{getComponent:x(t)}},u=CU(t,"NodeChange",(function(t){var e=t.getComponent();n.updateText(e)}));return BB({text:n.icon.isSome()?R.none():n.text,icon:n.icon,tooltip:R.from(n.tooltip),role:R.none(),fetch:o.getFetch(e,i),onSetup:u,getApi:a,columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",e.shared)},_U=function(t){return q(t,(function(t){var e=t,n=t,r=t.split("=");return r.length>1&&(e=r[0],n=r[1]),{title:e,format:n}}))},TU=function(t){return{type:"basic",data:t}};(function(t){t[t["SemiColon"]=0]="SemiColon",t[t["Space"]=1]="Space"})(KR||(KR={}));var EU,AU=function(t,e){return e===KR.SemiColon?t.replace(/;$/,"").split(";"):t.split(" ")},HU=function(t,e,n,r){var o=t.getParam(e,n,"string"),i=_U(AU(o,r));return{type:"basic",data:i}},DU=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],VU=function(t){var e=function(){return tt(DU,(function(e){return t.formatter.match(e.format)}))},n=function(e){return function(){return t.formatter.match(e)}},r=function(t){return R.none},o=function(t){var n=e(),r=n.fold(x("left"),(function(t){return t.title.toLowerCase()}));Su(t,VB,{icon:"align-"+r})},i=TU(DU),a=function(e){return function(){return tt(DU,(function(t){return t.format===e.format})).each((function(e){return t.execCommand(e.command)}))}};return{tooltip:"Align",text:R.none(),icon:R.some("align-left"),isSelectedFor:n,getCurrentValue:R.none,getPreviewFor:r,onAction:a,updateText:o,dataset:i,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},BU=function(t,e){return MU(t,e,VU(t))},RU=function(t,e){var n=OU(t,e,VU(t));t.ui.registry.addNestedMenuItem("align",{text:e.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},PU="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",LU=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],IU=function(t){var e=t.split(/\s*,\s*/);return q(e,(function(t){return t.replace(/^['"]+|['"]+$/g,"")}))},FU=function(t){var e=function(){var e=IU(t.toLowerCase());return ot(LU,(function(t){return e.indexOf(t.toLowerCase())>-1}))};return 0===t.indexOf("-apple-system")&&e()},NU=function(t){var e="System Font",n=function(){var n=function(t){return t?IU(t)[0]:""},r=t.queryCommandValue("FontName"),o=c.data,i=r?r.toLowerCase():"",a=tt(o,(function(t){var e=t.format;return e.toLowerCase()===i||n(e).toLowerCase()===n(i).toLowerCase()})).orThunk((function(){return Rt(FU(i),{title:e,format:i})}));return{matchOpt:a,font:r}},r=function(t){return function(e){return e.exists((function(e){return e.format===t}))}},o=function(){var t=n().matchOpt;return t},i=function(t){return function(){return R.some({tag:"div",styles:-1===t.indexOf("dings")?{"font-family":t}:{}})}},a=function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("FontName",!1,e.format)}))}},u=function(t){var e=n(),r=e.matchOpt,o=e.font,i=r.fold(x(o),(function(t){return t.title}));Su(t,DB,{text:i})},c=HU(t,"font_formats",PU,KR.SemiColon);return{tooltip:"Fonts",text:R.some(e),icon:R.none(),isSelectedFor:r,getCurrentValue:o,getPreviewFor:i,onAction:a,updateText:u,dataset:c,shouldHide:!1,isInvalid:O}},jU=function(t,e){return MU(t,e,NU(t))},UU=function(t,e){var n=OU(t,e,NU(t));t.ui.registry.addNestedMenuItem("fontformats",{text:e.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},WU="8pt 10pt 12pt 14pt 18pt 24pt 36pt",GU={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},qU={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},$U=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n},XU=function(t,e){return/[0-9.]+px$/.test(t)?$U(72*parseInt(t,10)/96,e||0)+"pt":Ot(qU,t).getOr(t)},KU=function(t){return Ot(GU,t).getOr("")},YU=function(t){var e=function(){var e=R.none(),n=u.data,r=t.queryCommandValue("FontSize");if(r)for(var o=function(t){var o=XU(r,t),i=KU(o);e=tt(n,(function(t){return t.format===r||t.format===o||t.format===i}))},i=3;e.isNone()&&i>=0;i--)o(i);return{matchOpt:e,size:r}},n=function(t){return function(e){return e.exists((function(e){return e.format===t}))}},r=function(){var t=e().matchOpt;return t},o=x(R.none),i=function(e){return function(){t.undoManager.transact((function(){t.focus(),t.execCommand("FontSize",!1,e.format)}))}},a=function(t){var n=e(),r=n.matchOpt,o=n.size,i=r.fold(x(o),(function(t){return t.title}));Su(t,DB,{text:i})},u=HU(t,"fontsize_formats",WU,KR.Space);return{tooltip:"Font sizes",text:R.some("12pt"),icon:R.none(),isSelectedFor:n,getPreviewFor:o,getCurrentValue:r,onAction:i,updateText:a,dataset:u,shouldHide:!1,isInvalid:O}},JU=function(t,e){return MU(t,e,YU(t))},ZU=function(t,e){var n=OU(t,e,YU(t));t.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},QU=function(t,e){var n=e(),r=q(n,(function(t){return t.format}));return R.from(t.formatter.closest(r)).bind((function(t){return tt(n,(function(e){return e.format===t}))})).orThunk((function(){return Rt(t.formatter.match("p"),{title:"Paragraph",format:"p"})}))},tW="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",eW=function(t){var e="Paragraph",n=function(e){return function(){return t.formatter.match(e)}},r=function(e){return function(){var n=t.formatter.get(e);return R.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))})}},o=function(n){var r=QU(t,(function(){return i.data})),o=r.fold(x(e),(function(t){return t.title}));Su(n,DB,{text:o})},i=HU(t,"block_formats",tW,KR.SemiColon);return{tooltip:"Blocks",text:R.some(e),icon:R.none(),isSelectedFor:n,getCurrentValue:R.none,getPreviewFor:r,onAction:SU(t),updateText:o,dataset:i,shouldHide:!1,isInvalid:function(e){return!t.formatter.canApply(e.format)}}},nW=function(t,e){return MU(t,e,eW(t))},rW=function(t,e){var n=OU(t,e,eW(t));t.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},oW=function(t,e){var n="Paragraph",r=function(e){return function(){return t.formatter.match(e)}},o=function(e){return function(){var n=t.formatter.get(e);return void 0!==n?R.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(e))}):R.none()}},i=function(e){var r=function(t){var e=t.items;return void 0!==e&&e.length>0?rt(e,r):[{title:t.title,format:t.format}]},o=rt(AL(t),r),i=QU(t,x(o)),a=i.fold(x(n),(function(t){return t.title}));Su(e,DB,{text:a})};return{tooltip:"Formats",text:R.some(n),icon:R.none(),isSelectedFor:r,getCurrentValue:R.none,getPreviewFor:o,onAction:SU(t),updateText:i,shouldHide:t.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(e){return!t.formatter.canApply(e.format)},dataset:e}},iW=function(t,e){var n=T({type:"advanced"},e.styleselect);return MU(t,e,oW(t,n))},aW=function(t,e){var n=T({type:"advanced"},e.styleselect),r=OU(t,e,oW(t,n));t.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},uW=function(t,e){var n=function(n,r){t.updateState.each((function(t){var o=t(n,r);e.set(o)})),t.renderComponents.each((function(t){var o=t(r,e.get()),i=q(o,n.getSystem().build);Uh(n,i)}))};return _u([Hu(tu(),(function(e,r){var o=r;if(!o.universal){var i=t.channel;j(o.channels,i)&&n(e,o.data)}})),ju((function(e,r){t.initialData.each((function(t){n(e,t)}))}))])},cW=Object.freeze({__proto__:null,events:uW}),sW=function(t,e,n){return n},lW=Object.freeze({__proto__:null,getState:sW}),fW=[Ti("channel"),Fi("renderComponents"),Fi("updateState"),Fi("initialData")],dW=function(){var t=oa(R.none()),e=function(){return t.set(R.none())},n=function(){return t.get().getOr("none")};return{readState:n,get:t.get,set:t.set,clear:e}},mW=Object.freeze({__proto__:null,init:dW}),hW=gf({fields:fW,name:"reflecting",active:cW,apis:lW,state:mW}),gW=x([Ti("toggleClass"),Ti("fetch"),sl("onExecute"),Xi("getHotspot",R.some),Xi("getAnchorOverrides",x({})),Id(),sl("onItemExecute"),Fi("lazySink"),Ti("dom"),ul("onOpen"),ep("splitDropdownBehaviours",[bE,Tx,Yx]),Xi("matchWidth",!1),Xi("useMinWidth",!1),Xi("eventOrder",{}),Fi("role")].concat(DE())),pW=Dp({factory:SC,schema:[Ti("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:mf([Yx.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each(ku)},buttonBehaviours:mf([gw.config({toggleOnExecute:!1,toggleClass:t.toggleClass})])}}}),vW=Dp({factory:SC,schema:[Ti("dom")],name:"button",defaults:function(){return{buttonBehaviours:mf([Yx.revoke()])}},overrides:function(t){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(e){e.getSystem().getByUid(t.uid).each((function(n){t.onExecute(n,e)}))}}}}),bW=x([pW,vW,Bp({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}}}},schema:[Ti("text")],name:"aria-descriptor"}),Vp({schema:[ol()],name:"menu",defaults:function(t){return{onExecute:function(e,n){e.getSystem().getByUid(t.uid).each((function(r){t.onItemExecute(r,e,n)}))}}}}),xE()]),yW=function(t,e,n,r){var o,i=function(t){bv.getCurrent(t).each((function(t){rb.highlightFirst(t),Tx.focusIn(t)}))},a=function(e){var n=i;ME(t,w,e,r,n,GT.HighlightFirst).get(p)},u=function(t){return a(t),R.some(!0)},c=function(e){var n=Kp(e,t,"button");return ku(n),R.some(!0)},s=T(T({},_u([ju((function(e,n){var r=Xp(e,t,"aria-descriptor");r.each((function(t){var n=oc("aria");Fn(t.element,"id",n),Fn(e.element,"aria-describedby",n)}))}))])),vw(R.some(a))),l={repositionMenus:function(t){gw.isOn(t)&&HE(t)}};return{uid:t.uid,dom:t.dom,components:e,apis:l,eventOrder:T(T({},t.eventOrder),(o={},o[eu()]=["disabling","toggling","alloy.base.behaviour"],o)),events:s,behaviours:rp(t.splitDropdownBehaviours,[bE.config({others:{sandbox:function(e){var n=Kp(e,t,"arrow"),r={onOpen:function(){gw.on(n),gw.on(e)},onClose:function(){gw.off(n),gw.off(e)}};return AE(t,e,r)}}}),Tx.config({mode:"special",onSpace:c,onEnter:c,onDown:u}),Yx.config({}),gw.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:t.role.getOr("button"),"aria-haspopup":!0}}}},xW=mv({name:"SplitDropdown",configFields:gW(),partFields:bW(),factory:yW,apis:{repositionMenus:function(t,e){return t.repositionMenus(e)}}}),wW=function(t){return{isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)}}},CW=function(t){return{setActive:function(e){gw.set(t,e)},isActive:function(){return gw.isOn(t)},isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)}}},SW=function(t,e){return t.map((function(t){return{"aria-label":e.translate(t),title:e.translate(t)}})).getOr({})},kW=oc("focus-button"),zW=function(t,e,n,r,o,i){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(e.isSome()?["tox-tbtn--select"]:[]),attributes:SW(n,i)},components:yO([t.map((function(t){return MB(t,i.icons)})),e.map((function(t){return TB(t,"tox-tbtn",i)}))]),eventOrder:(a={},a[Da()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:mf([mO.toolbarButton(i.isDisabled),cO(),Nx("common-button-display-events",[Hu(Da(),(function(t,e){e.event.prevent(),Cu(t,kW)}))])].concat(r.map((function(n){return hW.config({channel:n,initialData:{icon:t,text:e},renderComponents:function(t,e){return yO([t.icon.map((function(t){return MB(t,i.icons)})),t.text.map((function(t){return TB(t,"tox-tbtn",i)}))])}})})).toArray()).concat(o.getOr([])))}},OW=function(t,e,n,r){var o=e.shared;return Tj.sketch({lazySink:o.getSink,fetch:function(){return tE.nu((function(e){e(q(n(t.items),qj))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:zW(t.icon,t.text,t.tooltip,R.none(),R.none(),o.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},MW=function(t,e,n){var r=oa(p),o=zW(t.icon,t.text,t.tooltip,R.none(),R.none(),n);return SC.sketch({dom:o.dom,components:o.components,eventOrder:HB,buttonBehaviours:mf([Nx("toolbar-button-events",[AB({onAction:t.onAction,getApi:e.getApi}),gO(e,r),pO(e,r)]),mO.toolbarButton((function(){return t.disabled||n.isDisabled()})),cO()].concat(e.toolbarButtonBehaviours))})},_W=function(t,e){return TW(t,e,[])},TW=function(t,e,n){return MW(t,{toolbarButtonBehaviours:[].concat(n.length>0?[Nx("toolbarButtonWith",n)]:[]),getApi:wW,onSetup:t.onSetup},e)},EW=function(t,e){return AW(t,e,[])},AW=function(t,e,n){return Co(MW(t,{toolbarButtonBehaviours:[Ix.config({}),gw.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[Nx("toolbarToggleButtonWith",n)]:[]),getApi:CW,onSetup:t.onSetup},e))},HW=function(t,e,n){return function(r){return tE.nu((function(t){return e.fetch(t)})).map((function(o){return R.from(H_(Co(n_(oc("menu-value"),o,(function(n){e.onItemAction(t(r),n)}),e.columns,e.presets,US.CLOSE_ON_EXECUTE,e.select.getOr(O),n),{movement:o_(e.columns,e.presets),menuBehaviours:Zk.unnamedEvents("auto"!==e.columns?[]:[ju((function(t,n){Kk(t,4,lk(e.presets)).each((function(e){var n=e.numRows,r=e.numColumns;Tx.setGridSize(t,n,r)}))}))])})))}))}},DW=function(t,e){var n,r=oc("channel-update-split-dropdown-display"),o=function(t){return{isDisabled:function(){return Pv.isDisabled(t)},setDisabled:function(e){return Pv.set(t,e)},setIconFill:function(e,n){Ls(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each((function(t){Fn(t,"fill",n)}))},setIconStroke:function(e,n){Ls(t.element,'svg path[id="'+e+'"], rect[id="'+e+'"]').each((function(t){Fn(t,"stroke",n)}))},setActive:function(e){Fn(t.element,"aria-pressed",e),Ls(t.element,"span").each((function(n){t.getSystem().getByDom(n).each((function(t){return gw.set(t,e)}))}))},isActive:function(){return Ls(t.element,"span").exists((function(e){return t.getSystem().getByDom(e).exists(gw.isOn)}))}}},i=oa(p),a={getApi:o,onSetup:t.onSetup};return xW.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:T({"aria-pressed":!1},SW(t.tooltip,e.providers))},onExecute:function(e){t.onAction(o(e))},onItemExecute:function(t,e,n){},splitDropdownBehaviours:mf([mO.splitButton(e.providers.isDisabled),cO(),Nx("split-dropdown-events",[Hu(kW,Yx.focus),gO(a,i),pO(a,i)]),NE.config({})]),eventOrder:(n={},n[du()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:e.getSink,fetch:HW(o,t,e.providers),parts:{menu:pk(!1,t.columns,t.presets)},components:[xW.parts.button(zW(t.icon,t.text,R.none(),R.some(r),R.some([gw.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),e.providers)),xW.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:AC("chevron-down",e.providers.icons)},buttonBehaviours:mf([mO.splitButton(e.providers.isDisabled),cO(),VC()])}),xW.parts["aria-descriptor"]({text:e.providers.translate("To open the popup, press Shift+Enter")})]})},VW=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],BW=function(t,e){return function(n,r,o){var i=t(n).mapError((function(t){return Si(t)})).getOrDie();return e(i,r,o)}},RW={button:BW(OS,(function(t,e){return _W(t,e.backstage.shared.providers)})),togglebutton:BW(TS,(function(t,e){return EW(t,e.backstage.shared.providers)})),menubutton:BW(WF,(function(t,e){return $B(t,"tox-tbtn",e.backstage,R.none())})),splitbutton:BW(qF,(function(t,e){return DW(t,e.backstage.shared)})),grouptoolbarbutton:BW(NF,(function(t,e,n){var r,o=n.ui.registry.getAll().buttons,i=function(t){return WW(n,{buttons:o,toolbar:t,allowToolbarGroups:!1},e,R.none())},a=(r={},r[Pd]=e.backstage.shared.header.isPositionedAtTop()?If.TopToBottom:If.BottomToTop,r);switch(Dz(n)){case jS.floating:return OW(t,e.backstage,i,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(t,e){return iW(t,e.backstage)},fontsizeSelectButton:function(t,e){return JU(t,e.backstage)},fontSelectButton:function(t,e){return jU(t,e.backstage)},formatButton:function(t,e){return nW(t,e.backstage)},alignMenuButton:function(t,e){return BU(t,e.backstage)}},PW=function(t,e,n){return Ot(RW,t.type).fold((function(){return console.error("skipping button defined by",t),R.none()}),(function(r){return R.some(r(t,e,n))}))},LW={styleselect:RW.styleSelectButton,fontsizeselect:RW.fontsizeSelectButton,fontselect:RW.fontSelectButton,formatselect:RW.formatButton,align:RW.alignMenuButton},IW=function(t){var e=q(VW,(function(e){var n=Y(e.items,(function(e){return Mt(t,e)||Mt(LW,e)}));return{name:e.name,items:n}}));return Y(e,(function(t){return t.items.length>0}))},FW=function(t){var e=t.split("|");return q(e,(function(t){return{items:t.trim().split(" ")}}))},NW=function(t){return g(t,(function(t){return Mt(t,"name")&&Mt(t,"items")}))},jW=function(t){var e=t.toolbar,n=t.buttons;return!1===e?[]:void 0===e||!0===e?IW(n):i(e)?FW(e):NW(e)?e:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},UW=function(t,e,n,r,o,i){return Ot(e,n.toLowerCase()).orThunk((function(){return i.bind((function(t){return ht(t,(function(t){return Ot(e,t+n.toLowerCase())}))}))})).fold((function(){return Ot(LW,n.toLowerCase()).map((function(e){return e(t,o)})).orThunk((function(){return R.none()}))}),(function(e){return"grouptoolbarbutton"!==e.type||r?PW(e,o,t):(console.warn("Ignoring the '"+n+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),R.none())}))},WW=function(t,e,n,r){var o=jW(e),i=q(o,(function(o){var i=rt(o.items,(function(o){return 0===o.trim().length?[]:UW(t,e.buttons,o,e.allowToolbarGroups,n,r).toArray()}));return{title:R.from(t.translate(o.name)),items:i}}));return Y(i,(function(t){return t.items.length>0}))},GW=function(t,e,n,r){var o=e.outerContainer,a=n.toolbar,u=n.buttons;if(g(a,i)){var c=a.map((function(e){var o={toolbar:e,buttons:u,allowToolbarGroups:n.allowToolbarGroups};return WW(t,o,{backstage:r},R.none())}));uU.setToolbars(o,c)}else uU.setToolbar(o,WW(t,n,{backstage:r},R.none()))},qW=en(),$W=qW.os.isiOS()&&qW.os.version.major<=12,XW=function(t,e){var n=t.dom,r=t.getWin(),o=t.getDoc().documentElement,i=oa(lr(r.innerWidth,r.innerHeight)),a=oa(lr(o.offsetWidth,o.offsetHeight)),u=function(){var e=i.get();e.left===r.innerWidth&&e.top===r.innerHeight||(i.set(lr(r.innerWidth,r.innerHeight)),bM(t))},c=function(){var e=t.getDoc().documentElement,n=a.get();n.left===e.offsetWidth&&n.top===e.offsetHeight||(a.set(lr(e.offsetWidth,e.offsetHeight)),bM(t))},s=function(e){return yM(t,e)};n.bind(r,"resize",u),n.bind(r,"scroll",s);var l=ud(ee.fromDom(t.getBody()),"load",c),f=e.uiMothership.element;t.on("hide",(function(){Xn(f,"display","none")})),t.on("show",(function(){nr(f,"display")})),t.on("NodeChange",c),t.on("remove",(function(){l.unbind(),n.unbind(r,"resize",u),n.unbind(r,"scroll",s),r=null}))},KW=function(t,e,n,r,o){var i=oa(0),a=e.outerContainer;yU(t);var u=ee.fromDom(o.targetNode),c=En(Tn(u));Yh(u,e.mothership),Kh(c,e.uiMothership),t.on("PostRender",(function(){GW(t,e,n,r),i.set(t.getWin().innerWidth),uU.setMenubar(a,dU(t,n)),uU.setSidebar(a,n.sidebar),XW(t,e)}));var s=uU.getSocket(a).getOrDie("Could not find expected socket element");if($W){Kn(s.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var l=UC((function(){t.fire("ScrollContent")}),20),f=ad(s.element,"scroll",l.throttle);t.on("remove",f.unbind)}uO(t,e),t.addCommand("ToggleSidebar",(function(e,n){uU.toggleSidebar(a,n),t.fire("ToggleSidebar")})),t.addQueryValueHandler("ToggleSidebar",(function(){return uU.whichSidebar(a)}));var d=Dz(t),m=function(){uU.refreshToolbar(e.outerContainer)};d!==jS.sliding&&d!==jS.floating||t.on("ResizeWindow ResizeEditor ResizeContent",(function(){var e=t.getWin().innerWidth;e!==i.get()&&(m(),i.set(e))}));var h={enable:function(){aO(e,!1)},disable:function(){aO(e,!0)},isDisabled:function(){return Pv.isDisabled(a)}};return{iframeContainer:s.element.dom,editorContainer:a.element.dom,api:h}},YW=Object.freeze({__proto__:null,render:KW}),JW=function(t){var e=/^[0-9\.]+(|px)$/i;return e.test(""+t)?R.some(parseInt(""+t,10)):R.none()},ZW=function(t){return h(t)?t+"px":t},QW=function(t,e,n){var r=e.filter((function(e){return t<e})),o=n.filter((function(e){return t>e}));return r.or(o).getOr(t)},tG=function(t){var e=vz(t),n=xz(t),r=Cz(t);return JW(e).map((function(t){return QW(t,n,r)}))},eG=function(t){var e=tG(t);return e.getOr(vz(t))},nG=function(t){var e=bz(t),n=yz(t),r=wz(t);return JW(e).map((function(t){return QW(t,n,r)}))},rG=function(t){var e=nG(t);return e.getOr(bz(t))},oG=function(t,e,n,r,o){var i=n.uiMothership,a=n.outerContainer,u=dz.DOM,c=jz(t),s=Gz(t),l=wz(t).or(nG(t)),f=r.shared.header,d=f.isPositionedAtTop,m=Dz(t),h=m===jS.sliding||m===jS.floating,g=oa(!1),p=function(){return g.get()&&!t.removed},v=function(t){return h?t.fold(x(0),(function(t){return t.components().length>1?ar(t.components()[1].element):0})):0},b=function(n){switch(Rz(t)){case Hz.auto:var r=uU.getToolbar(a),o=v(r),i=ar(n.element)-o,u=Jr(e),c=u.y>i;if(c)return"top";var s=gn(e),l=Math.max(s.dom.scrollHeight,ar(s)),f=u.bottom<l-i;if(f)return"bottom";var d=Qr(),m=d.bottom<u.bottom-i;return m?"bottom":"top";case Hz.bottom:return"bottom";case Hz.top:default:return"top"}},y=function(t){var e=o.get();CF.setModes(e,[t]),f.setDockingMode(t);var n=d()?If.TopToBottom:If.BottomToTop;Fn(e.element,Pd,n)},w=function(){var t=l.getOrThunk((function(){var t=JW(Jn(Pn(),"margin-left")).getOr(0);return vr(Pn())-mr(e).left+t}));Xn(o.get().element,"max-width",t+"px")},C=function(){var t=uU.getToolbar(a),n=v(t),r=Jr(e),i=d()?Math.max(r.y-ar(o.get().element)+n,0):r.bottom;Kn(a.element,{position:"absolute",top:Math.round(i)+"px",left:Math.round(r.x)+"px"})},S=function(){i.broadcastOn([xg()],{})},k=function(t){if(void 0===t&&(t=!1),p()){if(c||w(),h&&uU.refreshToolbar(a),c||C(),s){var e=o.get();t?CF.reset(e):CF.refresh(e)}S()}},z=function(t){if(void 0===t&&(t=!0),!c&&s&&p()){var e=f.getDockingMode(),n=b(o.get());n!==e&&(y(n),t&&k(!0))}},O=function(){g.set(!0),Xn(a.element,"display","flex"),u.addClass(t.getBody(),"mce-edit-focus"),nr(i.element,"display"),z(!1),k()},M=function(){g.set(!1),n.outerContainer&&(Xn(a.element,"display","none"),u.removeClass(t.getBody(),"mce-edit-focus")),Xn(i.element,"display","none")};return{isVisible:p,isPositionedAtTop:d,show:O,hide:M,update:k,updateMode:z,repositionPopups:S}},iG=function(t,e){var n=Jr(t);return{pos:e?n.y:n.bottom,bounds:n}},aG=function(t,e,n,r){var o=oa(iG(e,n.isPositionedAtTop())),i=function(r){var i=iG(e,n.isPositionedAtTop()),a=i.pos,u=i.bounds,c=o.get(),s=c.pos,l=c.bounds,f=u.height!==l.height||u.width!==l.width;o.set({pos:a,bounds:u}),f&&bM(t,r),n.isVisible()&&(s!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))};r||(t.on("activate",n.show),t.on("deactivate",n.hide)),t.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),t.on("NodeChange keydown",(function(t){wC.requestAnimationFrame((function(){return i(t)}))})),t.on("ScrollWindow",(function(){return n.updateMode()}));var a=nd();a.set(ud(ee.fromDom(t.getBody()),"load",i)),t.on("remove",(function(){a.clear()}))},uG=function(t,e,n,r,o){var i=e.mothership,a=e.uiMothership,u=e.outerContainer,c=oa(null),s=ee.fromDom(o.targetNode),l=oG(t,s,e,r,c),f=Fz(t);xU(t);var d=function(){if(c.get())l.show();else{c.set(uU.getHeader(u).getOrDie());var o=Uz(t);Kh(o,i),Kh(o,a),GW(t,e,n,r),uU.setMenubar(u,dU(t,n)),l.show(),aG(t,s,l,f),t.nodeChanged()}};t.on("show",d),t.on("hide",l.hide),f||(t.on("focus",d),t.on("blur",l.hide)),t.on("init",(function(){(t.hasFocus()||f)&&d()})),uO(t,e);var m={show:function(){l.show()},hide:function(){l.hide()},enable:function(){aO(e,!1)},disable:function(){aO(e,!0)},isDisabled:function(){return Pv.isDisabled(u)}};return{editorContainer:u.element.dom,api:m}},cG=Object.freeze({__proto__:null,render:uG}),sG="contexttoolbar-show",lG="contexttoolbar-hide",fG=function(t){return{hide:function(){return Cu(t,iu())},getValue:function(){return tp.getValue(t)}}},dG=function(t,e){return Hu(EB,(function(n,r){var o=t.get(n),i=fG(o);e.onAction(i,r.event.buttonApi)}))},mG=function(t,e,n){var r=e.original;r.primary;var o=E(r,["primary"]),i=wi(OS(T(T({},o),{type:"button",onAction:p})));return TW(i,n.backstage.shared.providers,[dG(t,e)])},hG=function(t,e,n){var r=e.original;r.primary;var o=E(r,["primary"]),i=wi(TS(T(T({},o),{type:"togglebutton",onAction:p})));return AW(i,n.backstage.shared.providers,[dG(t,e)])},gG=function(t,e,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===e.type?hG(t,e,r):mG(t,e,r)},pG=function(t,e,n){var r=q(e,(function(e){return kC(gG(t,e,n))})),o=function(){return q(r,(function(t){return t.asSpec()}))},i=function(t){return ht(e,(function(e,n){return e.primary?R.from(r[n]).bind((function(e){return e.getOpt(t)})).filter(k(Pv.isDisabled)):R.none()}))};return{asSpecs:o,findPrimary:i}},vG=function(t,e){var n=t.label.fold((function(){return{}}),(function(t){return{"aria-label":t}})),r=kC(jT.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:mf([Tx.config({mode:"special",onEnter:function(t){return o.findPrimary(t).map((function(t){return ku(t),!0}))},onLeft:function(t,e){return e.cut(),R.none()},onRight:function(t,e){return e.cut(),R.none()}})])})),o=pG(r,t.commands,e);return[{title:R.none(),items:[r.asSpec()]},{title:R.none(),items:o.asSpecs()}]},bG=function(t,e,n){return Jj({type:t,uid:oc("context-toolbar"),initGroups:vG(e,n),onEscape:R.none,cyclicKeying:!0,providers:n})},yG={renderContextForm:bG,buildInitGroups:vG},xG=function(t,e,n){return void 0===n&&(n=.01),e.bottom-t.y>=n&&t.bottom-e.y>=n},wG=function(t){var e=t.getBoundingClientRect();if(e.height<=0&&e.width<=0){var n=zn(ee.fromDom(t.startContainer),t.startOffset).element,r=fe(n)?vn(n):R.some(n);return r.filter(le).map((function(t){return t.dom.getBoundingClientRect()})).getOr(e)}return e},CG=function(t){var e=t.selection.getRng(),n=wG(e);if(t.inline){var r=Pr();return Yr(r.left+n.left,r.top+n.top,n.width,n.height)}var o=Zr(ee.fromDom(t.getBody()));return Yr(o.x+n.left,o.y+n.top,n.width,n.height)},SG=function(t,e){return e.filter(Rn).map(Zr).getOrThunk((function(){return CG(t)}))},kG=function(t,e,n){var r=Math.max(t.x+n,e.x),o=Math.min(t.right-n,e.right);return{x:r,width:o-r}},zG=function(t,e,n,r,o,i){var a=ee.fromDom(t.getContainer()),u=Ls(a,".tox-editor-header").getOr(a),c=Jr(u),s=c.y>=e.bottom,l=r&&!s;if(t.inline&&l)return{y:Math.max(c.bottom+i,n.y),bottom:n.bottom};if(t.inline&&!l)return{y:n.y,bottom:Math.min(c.y-i,n.bottom)};var f="line"===o?Jr(a):e;return l?{y:Math.max(c.bottom+i,n.y),bottom:Math.min(f.bottom-i,n.bottom)}:{y:Math.max(f.y+i,n.y),bottom:Math.min(c.y-i,n.bottom)}},OG=function(t,e,n,r){void 0===r&&(r=0);var o=Nr(window),i=Jr(ee.fromDom(t.getContentAreaContainer())),a=_z(t)||Tz(t)||Az(t),u=kG(i,o,r),c=u.x,s=u.width;if(t.inline&&!a)return Yr(c,o.y,s,o.height);var l=e.header.isPositionedAtTop(),f=zG(t,i,o,l,n,r),d=f.y,m=f.bottom;return Yr(c,d,s,m-d)},MG=12,_G={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},TG={maxHeightFunction:Md(),maxWidthFunction:wj()},EG=function(t,e){var n=t.selection.getRng(),r=zn(ee.fromDom(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&sn(r.element,e)},AG=function(t,e,n){var r=Qn(t,"position");Xn(t,"position",e);var o=n(t);return r.each((function(e){return Xn(t,"position",e)})),o},HG=function(t){return"node"===t},DG=function(t,e,n,r,o){var i=CG(t),a=r.lastElement().exists((function(t){return sn(n,t)}));if(EG(t,n))return a?bC:mC;if(a)return AG(e,r.getMode(),(function(){var t=xG(i,Jr(e));return t&&!r.isReposition()?xC:bC}));var u="fixed"===r.getMode()?o.y+Pr().top:o.y,c=ar(e)+MG;return u+c<=i.y?mC:hC},VG=function(t,e,n,r){var o=function(e){return function(r,o,i,a,u){var c=DG(t,a,e,n,u),s=T(T({},r),{y:u.y,height:u.height});return T(T({},c(s,o,i,a,u)),{alwaysFit:!0})}},i=function(t){return HG(r)?[o(t)]:[]},a={onLtr:function(t){return[Gl,ql,Ul,Nl,Wl,jl].concat(i(t))},onRtl:function(t){return[Gl,ql,Wl,jl,Ul,Nl].concat(i(t))}},u={onLtr:function(t){return[ql,Nl,jl,Ul,Wl,Gl].concat(i(t))},onRtl:function(t){return[ql,jl,Nl,Wl,Ul,Gl].concat(i(t))}};return e?u:a},BG=function(t,e,n,r){return"line"===e?{bubble:Hd(MG,0,_G),layouts:{onLtr:function(){return[$l]},onRtl:function(){return[Xl]}},overrides:TG}:{bubble:Hd(0,MG,_G,1/MG),layouts:VG(t,n,r,e),overrides:TG}},RG=function(t,e){var n=Y(e,(function(e){return e.predicate(t.dom)})),r=K(n,(function(t){return"contexttoolbar"===t.type})),o=r.pass,i=r.fail;return{contextToolbars:o,contextForms:i}},PG=function(t){if(t.length<=1)return t;var e=function(e){return U(t,(function(t){return t.position===e}))},n=function(e){return Y(t,(function(t){return t.position===e}))},r=e("selection"),o=e("node");if(r||o){if(o&&r){var i=n("node"),a=q(n("selection"),(function(t){return T(T({},t),{position:"node"})}));return i.concat(a)}return n(r?"selection":"node")}return n("line")},LG=function(t){if(t.length<=1)return t;var e=function(e){return tt(t,(function(t){return t.position===e}))},n=e("selection").orThunk((function(){return e("node")})).orThunk((function(){return e("line")})).map((function(t){return t.position}));return n.fold((function(){return[]}),(function(e){return Y(t,(function(t){return t.position===e}))}))},IG=function(t,e,n){var r=RG(t,e);if(r.contextForms.length>0)return R.some({elem:t,toolbars:[r.contextForms[0]]});var o=RG(t,n);if(o.contextForms.length>0)return R.some({elem:t,toolbars:[o.contextForms[0]]});if(r.contextToolbars.length>0||o.contextToolbars.length>0){var i=PG(r.contextToolbars.concat(o.contextToolbars));return R.some({elem:t,toolbars:i})}return R.none()},FG=function(t,e,n){return t(e)?R.none():ya(e,(function(t){if(le(t)){var e=RG(t,n.inNodeScope),r=e.contextToolbars,o=e.contextForms,i=o.length>0?o:LG(r);return i.length>0?R.some({elem:t,toolbars:i}):R.none()}return R.none()}),t)},NG=function(t,e){var n=ee.fromDom(e.getBody()),r=function(t){return sn(t,n)},o=function(t){return!r(t)&&!dn(n,t)},i=ee.fromDom(e.selection.getNode());return o(i)?R.none():IG(i,t.inNodeScope,t.inEditorScope).orThunk((function(){return FG(r,i,t)}))},jG=function(t,e){var n={},r=[],o=[],i={},a={},u=function(t,u){var c=wi(PS(u));n[t]=c,c.launch.map((function(n){i["form:"+t]=T(T({},u.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){e(c)}})})),"editor"===c.scope?o.push(c):r.push(c),a[t]=c},c=function(t,e){IS(e).each((function(n){"editor"===e.scope?o.push(n):r.push(n),a[t]=n}))},s=gt(t);return $(s,(function(e){var n=t[e];"contextform"===n.type?u(e,n):"contexttoolbar"===n.type&&c(e,n)})),{forms:n,inNodeScope:r,inEditorScope:o,lookupTable:a,formNavigators:i}},UG=oc("forward-slide"),WG=oc("backward-slide"),GG=oc("change-slide-event"),qG="tox-pop--resizing",$G=function(t){var e=oa([]);return eC.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(t){e.set([]),eC.getContent(t).each((function(t){nr(t.element,"visibility")})),us(t.element,qG),nr(t.element,"width")},inlineBehaviours:mf([Nx("context-toolbar-events",[Nu(qa(),(function(t,e){"width"===e.event.raw.propertyName&&(us(t.element,qG),nr(t.element,"width"))})),Hu(GG,(function(t,e){var n=t.element;nr(n,"width");var r=vr(n);eC.setContent(t,e.event.contents),is(n,qG);var o=vr(n);Xn(n,"width",r+"px"),eC.getContent(t).each((function(t){e.event.focus.bind((function(t){return Sf(t),Mf(n)})).orThunk((function(){return Tx.focusIn(t),Of(Tn(n))}))})),wC.setTimeout((function(){Xn(t.element,"width",o+"px")}),0)})),Hu(UG,(function(t,n){eC.getContent(t).each((function(n){e.set(e.get().concat([{bar:n,focus:Of(Tn(t.element))}]))})),Su(t,GG,{contents:n.event.forwardContents,focus:R.none()})})),Hu(WG,(function(t,n){dt(e.get()).each((function(n){e.set(e.get().slice(0,e.get().length-1)),Su(t,GG,{contents:_s(n.bar),focus:n.focus})}))}))]),Tx.config({mode:"special",onEscape:function(n){return dt(e.get()).fold((function(){return t.onEscape()}),(function(t){return Cu(n,WG),R.some(!0)}))}})]),lazySink:function(){return ro.value(t.sink)}})},XG="tox-pop--transition",KG=function(t,e,n,r){var o=r.backstage,i=o.shared,a=en().deviceType.isTouch,u=od(),c=od(),s=od(),l=Ms($G({sink:n,onEscape:function(){return t.focus(),R.some(!0)}})),f=function(){var e=s.get().getOr("node"),n=HG(e)?1:0;return OG(t,i,e,n)},d=function(){return!t.removed&&!(a()&&o.isContextMenuOpen())},m=function(t){return Tt(Dt(t,u.get(),sn),!0)},h=function(){if(d()){var e=f(),n=Tt(s.get(),"node")?SG(t,u.get()):CG(t);return e.height<=0||!xG(n,e)}return!0},g=function(){u.clear(),c.clear(),s.clear(),eC.hide(l)},v=function(){if(eC.isOpen(l)){var t=l.element;nr(t,"display"),h()?Xn(t,"display","none"):(c.set(0),eC.reposition(l))}},b=function(e){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[e],behaviours:mf([Tx.config({mode:"acyclic"}),Nx("pop-dialog-wrap-events",[ju((function(e){t.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Tx.focusIn(e)}))})),Uu((function(e){t.shortcuts.remove("ctrl+F9")}))])])}},y=he((function(){return jG(e,(function(t){var e=C([t]);Su(l,UG,{forwardContents:b(e)})}))})),x=function(e,n){return WW(t,{buttons:e,toolbar:n.items,allowToolbarGroups:!1},r,R.some(["form:"]))},w=function(t,e){return yG.buildInitGroups(t,e)},C=function(e){var n=t.ui.registry.getAll().buttons,r=y(),o=T(T({},n),r.formNavigators),a=Dz(t)===jS.scrolling?jS.scrolling:jS.default,u=nt(q(e,(function(t){return"contexttoolbar"===t.type?x(o,t):w(t,i.providers)})));return Jj({type:a,uid:oc("context-toolbar"),initGroups:u,onEscape:R.none,cyclicKeying:!0,providers:i.providers})},S=function(e,r){var o="node"===e?i.anchors.node(r):i.anchors.cursor(),s=BG(t,e,a(),{lastElement:u.get,isReposition:function(){return Tt(c.get(),0)},getMode:function(){return Lh.getMode(n)}});return Co(o,s)},k=function(t,e){if(z.cancel(),d()){var r=C(t),o=t[0].position,i=S(o,e);s.set(o),c.set(1);var a=l.element;nr(a,"display"),m(e)||(us(a,XG),Lh.reset(n,l)),eC.showWithinBounds(l,b(r),{anchor:i,transition:{classes:[XG],mode:"placement"}},(function(){return R.some(f())})),e.fold(u.clear,u.set),h()&&Xn(a,"display","none")}},z=WC((function(){if(t.hasFocus()&&!t.removed)if(cs(l.element,XG))z.throttle();else{var e=y();NG(e,t).fold(g,(function(t){k(t.toolbars,R.some(t.elem))}))}}),17);t.on("init",(function(){t.on("remove",g),t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",v),t.on("click keyup focus SetContent",z.throttle),t.on(lG,g),t.on(sG,(function(e){var n=y();Ot(n.lookupTable,e.toolbarKey).each((function(n){k([n],Rt(e.target!==t,e.target)),eC.getContent(l).each(Tx.focusIn)}))})),t.on("focusout",(function(e){wC.setEditorTimeout(t,(function(){Mf(n.element).isNone()&&Mf(l.element).isNone()&&g()}),0)})),t.on("SwitchMode",(function(){t.mode.isReadOnly()&&g()})),t.on("AfterProgressState",(function(e){e.state?g():t.hasFocus()&&z.throttle()})),t.on("NodeChange",(function(t){Mf(l.element).fold(z.throttle,p)}))}))},YG=function(t){var e=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];$(e,(function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:kU(t,e.cmd),onSetup:wU(t,e.name)})})),t.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:kU(t,"JustifyNone")})},JG={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},ZG=function(){var t="[0-9]+",e="[+-]?"+t,n="[eE]"+e,r="\\.",o=function(t){return"(?:"+t+")?"},i=["Infinity",t+r+o(t)+o(n),r+t+o(n),t+o(n)].join("|"),a="[+-]?(?:"+i+")";return new RegExp("^("+a+")(.*)$")}(),QG=function(t,e){return U(e,(function(e){return U(JG[e],(function(e){return t===e}))}))},tq=function(t,e){var n=R.from(ZG.exec(t));return n.bind((function(t){var n=Number(t[1]),r=t[2];return QG(r,e)?R.some({value:n,unit:r}):R.none()}))},eq=function(t,e){return tq(t,e).map((function(t){var e=t.value,n=t.unit;return e+n}))},nq=function(t,e){var n=function(){var n=e.getOptions(t),r=e.getCurrent(t).map(e.hash),o=od();return q(n,(function(n){return{type:"togglemenuitem",text:e.display(n),onSetup:function(i){var a=function(t){t&&(o.on((function(t){return t.setActive(!1)})),o.set(i)),i.setActive(t)};a(Tt(r,e.hash(n)));var u=e.watcher(t,n,a);return function(){o.clear(),u()}},onAction:function(){return e.setCurrent(t,n)}}}))};t.ui.registry.addMenuButton(e.name,{tooltip:e.text,icon:e.icon,fetch:function(t){return t(n())},onSetup:e.onToolbarSetup}),t.ui.registry.addNestedMenuItem(e.name,{type:"nestedmenuitem",text:e.text,getSubmenuItems:n,onSetup:e.onMenuSetup})},rq={name:"lineheight",text:"Line height",icon:"line-height",getOptions:zz,hash:function(t){return eq(t,["fixed","relative","empty"]).getOr(t)},display:w,watcher:function(t,e,n){return t.formatter.formatChanged("lineheight",n,!1,{value:e}).unbind},getCurrent:function(t){return R.from(t.queryCommandValue("LineHeight"))},setCurrent:function(t,e){return t.execCommand("LineHeight",!1,e)}},oq=function(t){var e=R.from(Oz(t));return e.map((function(e){return{name:"language",text:"Language",icon:"language",getOptions:x(e),hash:function(t){return l(t.customCode)?t.code:t.code+"/"+t.customCode},display:function(t){return t.title},watcher:function(t,e,n){return t.formatter.formatChanged("lang",n,!1,{value:e.code,customValue:e.customCode}).unbind},getCurrent:function(t){var e=ee.fromDom(t.selection.getNode());return xa(e,(function(t){return R.some(t).filter(le).bind((function(t){var e=Un(t,"lang");return e.map((function(e){var n=Un(t,"data-mce-lang").getOrUndefined();return{code:e,customCode:n,title:""}}))}))}))},setCurrent:function(t,e){return t.execCommand("Lang",!1,e)},onToolbarSetup:function(e){var n=nd();return e.setActive(t.formatter.match("lang",{},void 0,!0)),n.set(t.formatter.formatChanged("lang",e.setActive,!0)),n.clear}}}))},iq=function(t){nq(t,rq),oq(t).each((function(e){return nq(t,e)}))},aq=function(t,e){RU(t,e),UU(t,e),aW(t,e),rW(t,e),ZU(t,e)},uq=function(t){return CU(t,"NodeChange",(function(e){e.setDisabled(!t.queryCommandState("outdent"))}))},cq=function(t){t.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:uq(t),onAction:kU(t,"outdent")}),t.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:kU(t,"indent")})},sq=function(t){cq(t)},lq=function(t,e){return function(){t.execCommand("mceToggleFormat",!1,e)}},fq=function(t){ZD.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(e,n){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onSetup:wU(t,e.name),onAction:lq(t,e.name)})}));for(var e=1;e<=6;e++){var n="h"+e;t.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+e,onSetup:wU(t,n),onAction:lq(t,n)})}},dq=function(t){ZD.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(e){t.ui.registry.addButton(e.name,{tooltip:e.text,icon:e.icon,onAction:kU(t,e.action)})}))},mq=function(t){ZD.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(e){t.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:kU(t,e.action),onSetup:wU(t,e.name)})}))},hq=function(t){fq(t),dq(t),mq(t)},gq=function(t){ZD.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(e){t.ui.registry.addMenuItem(e.name,{text:e.text,icon:e.icon,shortcut:e.shortcut,onAction:kU(t,e.action)})})),t.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:lq(t,"code")})},pq=function(t){hq(t),gq(t)},vq=function(t,e){return CU(t,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(t.mode.isReadOnly()||!t.undoManager[e]())}))},bq=function(t){t.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:vq(t,"hasUndo"),onAction:kU(t,"undo")}),t.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:vq(t,"hasRedo"),onAction:kU(t,"redo")})},yq=function(t){t.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:vq(t,"hasUndo"),onAction:kU(t,"undo")}),t.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:vq(t,"hasRedo"),onAction:kU(t,"redo")})},xq=function(t){bq(t),yq(t)},wq=function(t){return CU(t,"VisualAid",(function(e){e.setActive(t.hasVisual)}))},Cq=function(t){t.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:wq(t),onAction:kU(t,"mceToggleVisualAid")})},Sq=function(t){t.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:kU(t,"mceToggleVisualAid")})},kq=function(t){Sq(t),Cq(t)},zq=function(t,e){YG(t),pq(t),aq(t,e),xq(t),e_(t),kq(t),sq(t),iq(t)},Oq=function(t,e){return{type:"makeshift",x:t,y:e}},Mq=function(t,e,n){return Oq(t.x+e,t.y+n)},_q=function(t){return"longpress"===t.type||0===t.type.indexOf("touch")},Tq=function(t){if(_q(t)){var e=t.touches[0];return Oq(e.pageX,e.pageY)}return Oq(t.pageX,t.pageY)},Eq=function(t){if(_q(t)){var e=t.touches[0];return Oq(e.clientX,e.clientY)}return Oq(t.clientX,t.clientY)},Aq=function(t,e){var n=dz.DOM.getPos(t);return Mq(e,n.x,n.y)},Hq=function(t,e){return"contextmenu"===e.type||"longpress"===e.type?t.inline?Tq(e):Aq(t.getContentAreaContainer(),Eq(e)):Dq(t)},Dq=function(t){return{type:"selection",root:ee.fromDom(t.selection.getNode())}},Vq=function(t){return{type:"node",node:R.some(ee.fromDom(t.selection.getNode())),root:ee.fromDom(t.getBody())}},Bq=function(t,e,n){switch(n){case"node":return Vq(t);case"point":return Hq(t,e);case"selection":return Dq(t)}},Rq=function(t,e,n,r,o,i){var a=n(),u=Bq(t,e,i);GB(a,US.CLOSE_ON_EXECUTE,r,!1).map((function(t){e.preventDefault(),eC.showMenuAt(o,{anchor:u},{menu:{markers:mk("normal")},data:t})}))},Pq={onLtr:function(){return[ql,Nl,jl,Ul,Wl,Gl,mC,hC,dC,lC,fC,sC]},onRtl:function(){return[ql,jl,Nl,Wl,Ul,Gl,mC,hC,fC,sC,dC,lC]}},Lq=12,Iq={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},Fq=function(t,e){var n=t.selection;if(n.isCollapsed()||e.touches.length<1)return!1;var r=e.touches[0],o=n.getRng(),i=nh(t.getWin(),km.domRange(o));return i.exists((function(t){return t.left<=r.clientX&&t.right>=r.clientX&&t.top<=r.clientY&&t.bottom>=r.clientY}))},Nq=function(t){var e=t.selection.getRng(),n=function(){wC.setEditorTimeout(t,(function(){t.selection.setRng(e)}),10),i()};t.once("touchend",n);var r=function(t){t.preventDefault(),t.stopImmediatePropagation()};t.on("mousedown",r,!0);var o=function(){return i()};t.once("longpresscancel",o);var i=function(){t.off("touchend",n),t.off("longpresscancel",o),t.off("mousedown",r)}},jq=function(t,e,n){var r=Bq(t,e,n),o="point"===n?Lq:0;return T({bubble:Hd(0,o,Iq),layouts:Pq,overrides:{maxWidthFunction:wj(),maxHeightFunction:Md()}},r)},Uq=function(t,e,n,r,o,i,a){var u=jq(t,e,i);GB(n,US.CLOSE_ON_EXECUTE,r,!0).map((function(n){e.preventDefault(),eC.showMenuWithinBounds(o,{anchor:u},{menu:{markers:mk("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return R.some(OG(t,r.shared,"node"===i?"node":"selection"))})),t.fire(lG)}))},Wq=function(t,e,n,r,o,i){var a=en(),u=a.os.isiOS(),c=a.os.isOSX(),s=a.os.isAndroid(),l=a.deviceType.isTouch(),f=function(){return!(s||u||c&&l)},d=function(){var a=n();Uq(t,e,a,r,o,i,f())};if((c||u)&&"node"!==i){var m=function(){Nq(t),d()};Fq(t,e)?m():(t.once("selectionchange",m),t.once("touchend",(function(){return t.off("selectionchange",m)})))}else d()},Gq=function(t){return"string"===typeof t?t.split(/[ ,]/):t},qq=function(t){return t.getParam("contextmenu_never_use_native",!1,"boolean")},$q=function(t,e,n){var r=t.ui.registry.getAll().contextMenus;return R.from(t.getParam(e)).map(Gq).getOrThunk((function(){return Y(Gq(n),(function(t){return Mt(r,t)}))}))},Xq=function(t){return!1===t.getParam("contextmenu")},Kq=function(t){return $q(t,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},Yq=function(t){return t.getParam("contextmenu_avoid_overlap","","string")},Jq=function(t){return i(t)?"|"===t:"separator"===t.type},Zq={type:"separator"},Qq=function(t){var e=function(t){return{text:t.text,icon:t.icon,disabled:t.disabled,shortcut:t.shortcut}};if(i(t))return t;switch(t.type){case"separator":return Zq;case"submenu":return T(T({type:"nestedmenuitem"},e(t)),{getSubmenuItems:function(){var e=t.getSubmenuItems();return i(e)?e:q(e,Qq)}});default:return T(T({type:"menuitem"},e(t)),{onAction:v(t.onAction)})}},t$=function(t,e){if(0===e.length)return t;var n=dt(t).filter((function(t){return!Jq(t)})),r=n.fold((function(){return[]}),(function(t){return[Zq]}));return t.concat(r).concat(e).concat([Zq])},e$=function(t,e,n){var r=Z(e,(function(e,r){return Ot(t,r.toLowerCase()).map((function(t){var r=t.update(n);if(i(r))return t$(e,r.split(" "));if(r.length>0){var o=q(r,Qq);return t$(e,o)}return e})).getOrThunk((function(){return e.concat([r])}))}),[]);return r.length>0&&Jq(r[r.length-1])&&r.pop(),r},n$=function(t,e){return e.ctrlKey&&!qq(t)},r$=function(t,e){return"longpress"!==e.type&&(2!==e.button||e.target===t.getBody()&&""===e.pointerType)},o$=function(t,e){return r$(t,e)?t.selection.getStart(!0):e.target},i$=function(t,e){var n=Yq(t),r=r$(t,e)?"selection":"point";if($t(n)){var o=o$(t,e),i=R_(ee.fromDom(o),n);return i?"node":r}return r},a$=function(t,e,n){var r=en(),o=r.deviceType.isTouch,i=Ms(eC.sketch({dom:{tag:"div"},lazySink:e,onEscape:function(){return t.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:mf([Nx("dismissContextMenu",[Hu(hu(),(function(e,n){bg.close(e),t.focus()}))])])})),a=function(t){return eC.hide(i)},u=function(e){if(qq(t)&&e.preventDefault(),!n$(t,e)&&!Xq(t)){var r=i$(t,e),a=function(){var n=o$(t,e),r=t.ui.registry.getAll(),o=Kq(t);return e$(r.contextMenus,o,n)},u=o()?Wq:Rq;u(t,e,a,n,i,r)}};t.on("init",(function(){var e="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(o()?"":" ResizeWindow");t.on(e,a),t.on("longpress contextmenu",u)}))},u$=aa.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),c$=function(t){return function(e){return e.translate(-t.left,-t.top)}},s$=function(t){return function(e){return e.translate(t.left,t.top)}},l$=function(t){return function(e,n){return Z(t,(function(t,e){return e(t)}),lr(e,n))}},f$=function(t,e,n){return t.fold(l$([s$(n),c$(e)]),l$([c$(e)]),l$([]))},d$=function(t,e,n){return t.fold(l$([s$(n)]),l$([]),l$([s$(e)]))},m$=function(t,e,n){return t.fold(l$([]),l$([c$(n)]),l$([s$(e),c$(n)]))},h$=function(t,e,n,r,o,i){var a=d$(t,o,i),u=d$(e,o,i);return Math.abs(a.left-u.left)<=n&&Math.abs(a.top-u.top)<=r},g$=function(t,e,n,r,o,i){var a=d$(t,o,i),u=d$(e,o,i),c=Math.abs(a.left-u.left),s=Math.abs(a.top-u.top);return lr(c,s)},p$=function(t,e,n){var r=t.fold((function(t,e){return{position:R.some("absolute"),left:R.some(t+"px"),top:R.some(e+"px")}}),(function(t,e){return{position:R.some("absolute"),left:R.some(t-n.left+"px"),top:R.some(e-n.top+"px")}}),(function(t,e){return{position:R.some("fixed"),left:R.some(t+"px"),top:R.some(e+"px")}}));return T({right:R.none(),bottom:R.none()},r)},v$=function(t,e,n){return t.fold((function(t,r){return y$(t+e,r+n)}),(function(t,r){return x$(t+e,r+n)}),(function(t,r){return w$(t+e,r+n)}))},b$=function(t,e,n,r){var o=function(t,o){return function(i,a){var u=t(e,n,r);return o(i.getOr(u.left),a.getOr(u.top))}};return t.fold(o(m$,y$),o(d$,x$),o(f$,w$))},y$=u$.offset,x$=u$.absolute,w$=u$.fixed,C$=function(t,e){var n=jn(t,e);return l(n)?NaN:parseInt(n,10)},S$=function(t,e){var n=t.element,r=C$(n,e.leftAttr),o=C$(n,e.topAttr);return isNaN(r)||isNaN(o)?R.none():R.some(lr(r,o))},k$=function(t,e,n){var r=t.element;Fn(r,e.leftAttr,n.left+"px"),Fn(r,e.topAttr,n.top+"px")},z$=function(t,e){var n=t.element;Gn(n,e.leftAttr),Gn(n,e.topAttr)},O$=function(t,e,n,r){return S$(t,e).fold((function(){return n}),(function(t){return w$(t.left+r.left,t.top+r.top)}))},M$=function(t,e,n,r,o,i){var a=O$(t,e,n,r),u=e.mustSnap?E$(t,e,a,o,i):A$(t,e,a,o,i),c=f$(a,o,i);return k$(t,e,c),u.fold((function(){return{coord:w$(c.left,c.top),extra:R.none()}}),(function(t){return{coord:t.output,extra:t.extra}}))},_$=function(t,e){z$(t,e)},T$=function(t,e,n,r){return ht(t,(function(t){var o=t.sensor,i=h$(e,o,t.range.left,t.range.top,n,r);return i?R.some({output:b$(t.output,e,n,r),extra:t.extra}):R.none()}))},E$=function(t,e,n,r,o){var i=e.getSnapPoints(t),a=T$(i,n,r,o);return a.orThunk((function(){var t=Z(i,(function(t,e){var i=e.sensor,a=g$(n,i,e.range.left,e.range.top,r,o);return t.deltas.fold((function(){return{deltas:R.some(a),snap:R.some(e)}}),(function(n){var r=(a.left+a.top)/2,o=(n.left+n.top)/2;return r<=o?{deltas:R.some(a),snap:R.some(e)}:t}))}),{deltas:R.none(),snap:R.none()});return t.snap.map((function(t){return{output:b$(t.output,n,r,o),extra:t.extra}}))}))},A$=function(t,e,n,r,o){var i=e.getSnapPoints(t);return T$(i,n,r,o)},H$=function(t,e,n){return{coord:b$(t.output,t.output,e,n),extra:t.extra}},D$=function(t,e,n,r){var o=e.getTarget(t.element);if(e.repositionTarget){var i=mn(t.element),a=Pr(i),u=GI(o),c=H$(r,a,u),s=p$(c.coord,a,u);Yn(o,s)}},V$=Object.freeze({__proto__:null,snapTo:D$}),B$="data-initial-z-index",R$=function(t){vn(t.element).filter(le).each((function(t){Un(t,B$).fold((function(){return nr(t,"z-index")}),(function(e){return Xn(t,"z-index",e)})),Gn(t,B$)}))},P$=function(t){vn(t.element).filter(le).each((function(e){Qn(e,"z-index").each((function(t){Fn(e,B$,t)})),Xn(e,"z-index",Jn(t.element,"z-index"))}))},L$=function(t,e){t.getSystem().addToGui(e),P$(e)},I$=function(t){R$(t),t.getSystem().removeFromGui(t)},F$=function(t,e,n){return t.getSystem().build(sT.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[e]},events:n}))},N$=qi("snaps",[Ti("getSnapPoints"),ul("onSensor"),Ti("leftAttr"),Ti("topAttr"),Xi("lazyViewport",Qr),Xi("mustSnap",!1)]),j$=[Xi("useFixed",O),Ti("blockerClass"),Xi("getTarget",w),Xi("onDrag",p),Xi("repositionTarget",!0),Xi("onDrop",p),ta("getBounds",Qr),N$],U$=function(t){return Vt(Qn(t,"left"),Qn(t,"top"),Qn(t,"position"),(function(t,e,n){var r="fixed"===n?w$:y$;return r(parseInt(t,10),parseInt(e,10))})).getOrThunk((function(){var e=mr(t);return x$(e.left,e.top)}))},W$=function(t,e,n,r,o){var i=o.bounds,a=d$(e,n,r),u=_l(a.left,i.x,i.x+i.width-o.width),c=_l(a.top,i.y,i.y+i.height-o.height),s=x$(u,c);return e.fold((function(){var t=m$(s,n,r);return y$(t.left,t.top)}),x(s),(function(){var t=f$(s,n,r);return w$(t.left,t.top)}))},G$=function(t,e,n,r,o,i,a){var u=e.fold((function(){var t=v$(n,i.left,i.top),e=f$(t,r,o);return w$(e.left,e.top)}),(function(e){var a=M$(t,e,n,i,r,o);return a.extra.each((function(n){e.onSensor(t,n)})),a.coord}));return W$(t,u,r,o,a)},q$=function(t,e,n,r){var o=e.getTarget(t.element);if(e.repositionTarget){var i=mn(t.element),a=Pr(i),u=GI(o),c=U$(o),s=G$(t,e.snaps,c,a,u,r,n),l=p$(s,a,u);Yn(o,l)}e.onDrag(t,o,r)},$$=function(t,e){return{bounds:t.getBounds(),height:ur(e.element),width:br(e.element)}},X$=function(t,e,n,r,o){var i=n.update(r,o),a=n.getStartData().getOrThunk((function(){return $$(e,t)}));i.each((function(n){q$(t,e,a,n)}))},K$=function(t,e,n,r){e.each(I$),n.snaps.each((function(e){_$(t,e)}));var o=n.getTarget(t.element);r.reset(),n.onDrop(t,o)},Y$=function(t){return function(e,n){var r=function(t){n.setStartData($$(e,t))};return _u(A([Hu(lu(),(function(t){n.getStartData().each((function(){return r(t)}))}))],t(e,n,r),!0))}},J$=function(t){return _u([Hu(Da(),t.forceDrop),Hu(Ra(),t.drop),Hu(Va(),(function(e,n){t.move(n.event)})),Hu(Ba(),t.delayDrop)])},Z$=function(t){return R.from(lr(t.x,t.y))},Q$=function(t,e){return lr(e.left-t.left,e.top-t.top)},tX=Object.freeze({__proto__:null,getData:Z$,getDelta:Q$}),eX=function(t,e,n){return[Hu(Da(),(function(r,o){var i=o.event.raw;if(0===i.button){o.stop();var a=function(){return K$(r,R.some(s),t,e)},u=P_(a,200),c={drop:a,delayDrop:u.schedule,forceDrop:a,move:function(n){u.cancel(),X$(r,t,e,tX,n)}},s=F$(r,t.blockerClass,J$(c)),l=function(){n(r),L$(r,s)};l()}}))]},nX=A(A([],j$,!0),[fl("dragger",{handlers:Y$(eX)})],!1),rX=function(t){return _u([Hu(Ta(),t.forceDrop),Hu(Aa(),t.drop),Hu(Ha(),t.drop),Hu(Ea(),(function(e,n){t.move(n.event)}))])},oX=function(t){var e=t[0];return R.some(lr(e.clientX,e.clientY))},iX=function(t){var e=t.raw,n=e.touches;return 1===n.length?oX(n):R.none()},aX=function(t,e){return lr(e.left-t.left,e.top-t.top)},uX=Object.freeze({__proto__:null,getData:iX,getDelta:aX}),cX=function(t,e,n){var r=od(),o=function(n){K$(n,r.get(),t,e),r.clear()};return[Hu(Ta(),(function(i,a){a.stop();var u=function(){return o(i)},c={drop:u,delayDrop:p,forceDrop:u,move:function(n){X$(i,t,e,uX,n)}},s=F$(i,t.blockerClass,rX(c));r.set(s);var l=function(){n(i),L$(i,s)};l()})),Hu(Ea(),(function(n,r){r.stop(),X$(n,t,e,uX,r.event)})),Hu(Aa(),(function(t,e){e.stop(),o(t)})),Hu(Ha(),o)]},sX=A(A([],j$,!0),[fl("dragger",{handlers:Y$(cX)})],!1),lX=function(t,e,n){return A(A([],eX(t,e,n),!0),cX(t,e,n),!0)},fX=A(A([],j$,!0),[fl("dragger",{handlers:Y$(lX)})],!1),dX=nX,mX=sX,hX=fX,gX=Object.freeze({__proto__:null,mouse:dX,touch:mX,mouseOrTouch:hX}),pX=function(){var t=R.none(),e=R.none(),n=function(){t=R.none(),e=R.none()},r=function(e,n){var r=t.map((function(t){return e.getDelta(t,n)}));return t=R.some(n),r},o=function(t,e){return t.getData(e).bind((function(e){return r(t,e)}))},i=function(t){e=R.some(t)},a=function(){return e},u=x({});return zc({readState:u,reset:n,update:o,getStartData:a,setStartData:i})},vX=Object.freeze({__proto__:null,init:pX}),bX=vf({branchKey:"mode",branches:gX,name:"dragging",active:{events:function(t,e){var n=t.dragger;return n.handlers(t,e)}},extra:{snap:function(t){return{sensor:t.sensor,range:t.range,output:t.output,extra:R.from(t.extra)}}},state:vX,apis:V$}),yX=40,xX=yX/2,wX=function(t,e,n,r,o,i){return t.fold((function(){return bX.snap({sensor:x$(n-xX,r-xX),range:lr(o,i),output:x$(R.some(n),R.some(r)),extra:{td:e}})}),(function(t){var o=n-xX,i=r-xX,a=yX,u=yX,c=t.element.dom.getBoundingClientRect();return bX.snap({sensor:x$(o,i),range:lr(a,u),output:x$(R.some(n-c.width/2),R.some(r-c.height/2)),extra:{td:e}})}))},CX=function(t,e,n){var r=function(t,e){return t.exists((function(t){return sn(t,e)}))};return{getSnapPoints:t,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(t,o){var i=o.td;r(e.get(),i)||(e.set(i),n(i))},mustSnap:!0}},SX=function(t){return kC(SC.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:mf([bX.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:t}),NE.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},kX=function(t,e){var n=oa([]),r=oa([]),o=oa(!1),i=od(),a=od(),u=function(t){var n=Zr(t);return wX(m.getOpt(e),t,n.x,n.y,n.width,n.height)},c=function(){return q(n.get(),(function(t){return u(t)}))},s=function(t){var n=Zr(t);return wX(h.getOpt(e),t,n.right,n.bottom,n.width,n.height)},l=function(){return q(r.get(),(function(t){return s(t)}))},f=CX(c,i,(function(e){a.get().each((function(n){t.fire("TableSelectorChange",{start:e,finish:n})}))})),d=CX(l,a,(function(e){i.get().each((function(n){t.fire("TableSelectorChange",{start:n,finish:e})}))})),m=SX(f),h=SX(d),g=Ms(m.asSpec()),p=Ms(h.asSpec()),v=function(e,n,r,o){var i=n.dom.getBoundingClientRect();nr(e.element,"display");var a=pn(ee.fromDom(t.getBody())).dom.innerHeight,u=r(i),c=o(i,a);(u||c)&&Xn(e.element,"display","none")},b=function(t,e,n,r){var o=n(e);bX.snapTo(t,o);var i=function(t){return t[r]<0},a=function(t,e){return t[r]>e};v(t,e,i,a)},y=function(t){return b(g,t,u,"top")},x=function(){return i.get().each(y)},w=function(t){return b(p,t,s,"bottom")},C=function(){return a.get().each(w)};en().deviceType.isTouch()&&(t.on("TableSelectionChange",(function(t){o.get()||(Wh(e,g),Wh(e,p),o.set(!0)),i.set(t.start),a.set(t.finish),t.otherCells.each((function(e){n.set(e.upOrLeftCells),r.set(e.downOrRightCells),y(t.start),w(t.finish)}))})),t.on("ResizeEditor ResizeWindow ScrollContent",(function(){x(),C()})),t.on("TableSelectionClear",(function(){o.get()&&($h(g),$h(p),o.set(!1)),i.clear(),a.clear()})))},zX=function(t){if(1===t.nodeType){if("BR"===t.nodeName||t.getAttribute("data-mce-bogus"))return!0;if("bookmark"===t.getAttribute("data-mce-type"))return!0}return!1},OX=function(t,e,n){e.delimiter||(e.delimiter="»");var r=function(r){var o=r||[],i=q(o,(function(e,r){return SC.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:e.name},action:function(n){t.focus(),t.selection.select(e.element),t.nodeChanged()},buttonBehaviours:mf([mO.button(n.isDisabled),cO()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+e.delimiter+" "}};return Z(i.slice(1),(function(t,e){var n=t;return n.push(a),n.push(e),n}),[i[0]])},o=function(e){var n=[],r=e.length;while(r-- >0){var o=e[r];if(1===o.nodeType&&!zX(o)){var i=t.fire("ResolveName",{name:o.nodeName.toLowerCase(),target:o});if(i.isDefaultPrevented()||n.push({name:i.name,element:o}),i.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:mf([Tx.config({mode:"flow",selector:"div[role=button]"}),Pv.config({disabled:n.isDisabled}),cO(),yT.config({}),Ix.config({}),Nx("elementPathEvents",[ju((function(e,n){t.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Tx.focusIn(e)})),t.on("NodeChange",(function(t){var n=o(t.parents);n.length>0?Ix.set(e,r(n)):Ix.set(e,[])}))}))])]),components:[]}};(function(t){t[t["None"]=0]="None",t[t["Both"]=1]="Both",t[t["Vertical"]=2]="Vertical"})(EU||(EU={}));var MX=function(t,e,n,r,o){var i={};return i.height=QW(r+e.top,xz(t),Cz(t)),n===EU.Both&&(i.width=QW(o+e.left,yz(t),wz(t))),i},_X=function(t,e,n){var r=ee.fromDom(t.getContainer()),o=MX(t,e,n,ar(r),vr(r));vt(o,(function(t,e){return Xn(r,e,ZW(t))})),vM(t)},TX=function(t){var e=!t.hasPlugin("autoresize"),n=t.getParam("resize",e);return!1===n?EU.None:"both"===n?EU.Both:EU.Vertical},EX=function(t,e,n,r){var o=20,i=lr(n*o,r*o);return _X(t,i,e),R.some(!0)},AX=function(t,e){var n=TX(t);return n===EU.None?R.none():R.some(RC("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:e.translate("Resize")},behaviours:[bX.config({mode:"mouse",repositionTarget:!1,onDrag:function(e,r,o){return _X(t,o,n)},blockerClass:"tox-blocker"}),Tx.config({mode:"special",onLeft:function(){return EX(t,n,-1,0)},onRight:function(){return EX(t,n,1,0)},onUp:function(){return EX(t,n,0,-1)},onDown:function(){return EX(t,n,0,1)}}),yT.config({}),Yx.config({})]},e.icons))},HX=function(t,e){var n,r=function(t,n,r){return Ix.set(t,[Ss(e.translate(["{0} "+r,n[r]]))])};return SC.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:mf([mO.button(e.isDisabled),cO(),yT.config({}),Ix.config({}),tp.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Nx("wordcount-events",[Gu((function(t){var e=tp.getValue(t),n="words"===e.mode?"characters":"words";tp.setValue(t,{mode:n,count:e.count}),r(t,e.count,n)})),ju((function(e){t.on("wordCountUpdate",(function(t){var n=tp.getValue(e).mode;tp.setValue(e,{mode:n,count:t.wordCount}),r(e,t.wordCount,n)}))}))])]),eventOrder:(n={},n[eu()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},DX=function(t,e){var n=function(){var t=zC.translate(["Powered by {0}","Tiny"]),e='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+t+'">'+t+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:e}}},r=function(){var r=[];return t.getParam("elementpath",!0,"boolean")&&r.push(OX(t,{},e)),t.hasPlugin("wordcount")&&r.push(HX(t,e)),t.getParam("branding",!0,"boolean")&&r.push(n()),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]},o=function(){var n=r(),o=AX(t,e);return n.concat(o.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:o()}},VX=function(t){var e,n=t.inline,r=n?cG:YW,o=Gz(t)?LF:UI,i=R.none(),a=en(),u=a.browser.isIE(),c=u?["tox-platform-ie"]:[],s=a.deviceType.isTouch(),l="tox-platform-touch",f=s?[l]:[],d=Pz(t),m=Uz(t),h=zC.isRtl()?{attributes:{dir:"rtl"}}:{},g={attributes:(e={},e[Pd]=d?If.BottomToTop:If.TopToBottom,e)},v=function(){return i.bind(uU.getHeader)},b=function(){return o.isDocked(v)},y=function(){Xn(Z.element,"width",document.body.clientWidth+"px")},x=function(){var t=sn(Pn(),m)&&"grid"===Jn(m,"display"),e={dom:T({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(c).concat(f)},h),behaviours:mf([Lh.config({useFixed:function(){return b()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:_u([Hu(fu(),y)])};return Co(e,t?n:{})},w=Ms(x()),C=function(){return ro.value(w)},S=kC({dom:{tag:"div",classes:["tox-anchorbar"]}}),k=function(){return i.bind((function(t){return S.getOpt(t)})).getOrDie("Could not find a anchor bar element")},z=function(){return i.bind((function(t){return uU.getToolbar(t)})).getOrDie("Could not find more toolbar element")},O=function(){return i.bind((function(t){return uU.getThrobber(t)})).getOrDie("Could not find throbber element")},M=kI(w,t,k),_=uU.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:M,onEscape:function(){t.focus()}}),E=Dz(t),A=uU.parts.toolbar(T({dom:{tag:"div",classes:["tox-toolbar"]},getSink:C,providers:M.shared.providers,onEscape:function(){t.focus()},type:E,lazyToolbar:z,lazyHeader:function(){return v().getOrDie("Could not find header element")}},g)),H=uU.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:M.shared.providers,onEscape:function(){t.focus()},type:E}),D=uU.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),V=uU.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),B=uU.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:M}),P=t.getParam("statusbar",!0,"boolean"),L=P&&!n?R.some(DX(t,M.shared.providers)):R.none(),I={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[D,V]},F=Az(t),N=Tz(t),j=_z(t),U=function(){return F?[H]:N?[A]:[]},W=uU.parts.header({dom:T({tag:"div",classes:["tox-editor-header"]},g),components:nt([j?[_]:[],U(),jz(t)?[]:[S.asSpec()]]),sticky:Gz(t),editor:t,sharedBackstage:M.shared}),G=nt([d?[]:[W],n?[]:[I],d?[W]:[]]),q={dom:{tag:"div",classes:["tox-editor-container"]},components:G},$=nt([[q],n?[]:L.toArray(),[B]]),X=Wz(t),K=T(T({role:"application"},zC.isRtl()?{dir:"rtl"}:{}),X?{"aria-hidden":"true"}:{}),Y=Ms(uU.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(d?["tox-tinymce--toolbar-bottom"]:[]).concat(f).concat(c),styles:T({visibility:"hidden"},X?{opacity:"0",border:"0"}:{}),attributes:K},components:$,behaviours:mf([cO(),Pv.config({disableClass:"tox-tinymce--disabled"}),Tx.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));i=R.some(Y),t.shortcuts.add("alt+F9","focus menubar",(function(){uU.focusMenubar(Y)})),t.shortcuts.add("alt+F10","focus toolbar",(function(){uU.focusToolbar(Y)})),t.addCommand("ToggleToolbarDrawer",(function(){uU.toggleToolbarDrawer(Y)})),t.addQueryStateHandler("ToggleToolbarDrawer",(function(){return uU.isToolbarDrawerToggled(Y)}));var J=lT(Y),Z=lT(w);zI(t,J,Z);var Q=function(){var t={broadcastAll:Z.broadcast,broadcastOn:Z.broadcastOn,register:p};return{channels:t}},tt=function(){var e=ZW(eG(t)),n=ZW(rG(t));return t.inline||(er("div","width",n)&&Xn(Y.element,"width",n),er("div","height",e)?Xn(Y.element,"height",e):Xn(Y.element,"height","200px")),e},et=function(){o.setup(t,M.shared,v),zq(t,M),a$(t,C,M),HN(t),ij(t,O,M.shared),bt(Bz(t),(function(e,n){t.ui.registry.addGroupToolbarButton(n,e)}));var e=t.ui.registry.getAll(),n=e.buttons,i=e.menuItems,a=e.contextToolbars,u=e.sidebars,c=Ez(t),s={menuItems:i,menus:Xz(t),menubar:Kz(t),toolbar:c.getOrThunk((function(){return Yz(t)})),allowToolbarGroups:E===jS.floating,buttons:n,sidebar:u};KG(t,a,w,{backstage:M}),kX(t,w);var l=t.getElement(),f=tt(),d={mothership:J,uiMothership:Z,outerContainer:Y},m={targetNode:l,height:f};return r.render(t,d,s,M,m)};return{mothership:J,uiMothership:Z,backstage:M,renderUI:et,getUi:Q}},BX=function(t,e){var n=R.from(jn(t,"id")).fold((function(){var t=oc("dialog-describe");return Fn(e,"id",t),t}),w);Fn(t,"aria-describedby",n)},RX=function(t,e){var n=Un(t,"id").fold((function(){var t=oc("dialog-label");return Fn(e,"id",t),t}),w);Fn(t,"aria-labelledby",n)},PX=x([Ti("lazySink"),Fi("dragBlockClass"),ta("getBounds",Qr),Xi("useTabstopAt",M),Xi("eventOrder",{}),ep("modalBehaviours",[Tx]),cl("onExecute"),ll("onEscape")]),LX={sketch:w},IX=x([Bp({name:"draghandle",overrides:function(t,e){return{behaviours:mf([bX.config({mode:"mouse",getTarget:function(t){return Rs(t,'[role="dialog"]').getOr(t)},blockerClass:t.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(e,null,2)).message),getBounds:t.getDragBounds})])}}}),Dp({schema:[Ti("dom")],name:"title"}),Dp({factory:LX,schema:[Ti("dom")],name:"close"}),Dp({factory:LX,schema:[Ti("dom")],name:"body"}),Bp({factory:LX,schema:[Ti("dom")],name:"footer"}),Vp({factory:{sketch:function(t,e){return T(T({},t),{dom:e.dom,components:e.components})}},schema:[Xi("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Xi("components",[])],name:"blocker"})]),FX=function(t,e,n,r){var o,i=od(),a=function(e){i.set(e);var n=t.lazySink(e).getOrDie(),o=r.blocker(),a=n.getSystem().build(T(T({},o),{components:o.components.concat([_s(e)]),behaviours:mf([Yx.config({}),Nx("dialog-blocker-events",[Nu(La(),(function(){Tx.focusIn(e)}))])])}));Wh(n,a),Tx.focusIn(e)},u=function(t){i.clear(),vn(t.element).each((function(e){t.getSystem().getByDom(e).each((function(t){$h(t)}))}))},c=function(e){return Kp(e,t,"body")},s=function(e){return Kp(e,t,"footer")},l=function(t,e){XN.block(t,e)},f=function(t){XN.unblock(t)},d=oc("modal-events"),m=T(T({},t.eventOrder),(o={},o[du()]=[d].concat(t.eventOrder["alloy.system.attached"]||[]),o));return{uid:t.uid,dom:t.dom,components:e,apis:{show:a,hide:u,getBody:c,getFooter:s,setIdle:f,setBusy:l},eventOrder:m,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:rp(t.modalBehaviours,[Ix.config({}),Tx.config({mode:"cyclic",onEnter:t.onExecute,onEscape:t.onEscape,useTabstopAt:t.useTabstopAt}),XN.config({getRoot:i.get}),Nx(d,[ju((function(e){RX(e.element,Kp(e,t,"title").element),BX(e.element,Kp(e,t,"body").element)}))])])}},NX=mv({name:"ModalDialog",configFields:PX(),partFields:IX(),factory:FX,apis:{show:function(t,e){t.show(e)},hide:function(t,e){t.hide(e)},getBody:function(t,e){return t.getBody(e)},getFooter:function(t,e){return t.getFooter(e)},setBusy:function(t,e,n){t.setBusy(e,n)},setIdle:function(t,e){t.setIdle(e)}}}),jX=ti([Hi("type"),Hi("name")].concat(Dk)),UX=li,WX=[Oi("name","name",zo((function(){return oc("button-name")})),si),Ui("icon"),Zi("align","end",["start","end"]),Qi("primary",!1),Qi("disabled",!1)],GX=A(A([],WX,!0),[Hi("text")],!1),qX=A([Di("type",["submit","cancel","custom"])],GX,!0),$X=A([Di("type",["menu"]),Ui("text"),Ui("tooltip"),Ui("icon"),Ii("items",jX)],WX,!0),XX=ki("type",{submit:qX,cancel:qX,custom:qX,menu:$X}),KX=[Hi("type"),Hi("text"),Di("level",["info","warn","error","success"]),Hi("icon"),Xi("url","")],YX=ti(KX),JX=function(t){return[Hi("type"),t]},ZX=[Hi("type"),Hi("text"),Qi("disabled",!1),Qi("primary",!1),Oi("name","name",zo((function(){return oc("button-name")})),si),Ui("icon"),Qi("borderless",!1)],QX=ti(ZX),tK=[Hi("type"),Hi("name"),Hi("label"),Qi("disabled",!1)],eK=ti(tK),nK=li,rK=[Hi("type"),Hi("name")],oK=rK.concat([Ui("label")]),iK=oK.concat([Xi("columns","auto")]),aK=ti(iK),uK=ii([Hi("value"),Hi("text"),Hi("icon")]),cK=oK,sK=ti(cK),lK=si,fK=oK,dK=ti(fK),mK=si,hK=rK.concat([Ji("tag","textarea"),Hi("scriptId"),Hi("scriptUrl"),ea("settings",void 0)]),gK=rK.concat([Ji("tag","textarea"),Bi("init")]),pK=vi((function(t){return xi("customeditor.old",Qo(gK),t).orThunk((function(){return xi("customeditor.new",Qo(hK),t)}))})),vK=si,bK=oK,yK=ti(bK),xK=pi(),wK=function(t){return[Hi("type"),Ai("columns"),t]},CK=[Hi("type"),Hi("html"),Zi("presets","presentation",["presentation","document"])],SK=ti(CK),kK=oK.concat([Qi("sandboxed",!0)]),zK=ti(kK),OK=si,MK=oK.concat([Ei("currentState",ti([Ti("blob"),Hi("url")]))]),_K=ti(MK),TK=oK.concat([Ui("inputMode"),Ui("placeholder"),Qi("maximized",!1),Qi("disabled",!1)]),EK=ti(TK),AK=si,HK=function(t){return[Hi("type"),Hi("label"),t]},DK=[Hi("text"),Hi("value")],VK=[Hi("text"),Ii("items",zi("items",(function(){return BK})))],BK=ni([ti(DK),ti(VK)]),RK=oK.concat([Ii("items",BK),Qi("disabled",!1)]),PK=ti(RK),LK=si,IK=oK.concat([Li("items",[Hi("text"),Hi("value")]),Yi("size",1),Qi("disabled",!1)]),FK=ti(IK),NK=si,jK=oK.concat([Qi("constrain",!0),Qi("disabled",!1)]),UK=ti(jK),WK=ti([Hi("width"),Hi("height")]),GK=[Hi("type"),Ii("header",si),Ii("cells",ei(si))],qK=ti(GK),$K=oK.concat([Ui("placeholder"),Qi("maximized",!1),Qi("disabled",!1)]),XK=ti($K),KK=si,YK=oK.concat([Zi("filetype","file",["image","media","file"]),Xi("disabled",!1)]),JK=ti(YK),ZK=ti([Hi("value"),Xi("meta",{})]),QK=function(t){return Oi("items","items",ko(),ei(vi((function(e){return xi("Checking item of "+t,tY,e).fold((function(t){return ro.error(Si(t))}),(function(t){return ro.value(t)}))}))))},tY=Jo((function(){return gi("type",{alertbanner:YX,bar:ti(JX(QK("bar"))),button:QX,checkbox:eK,colorinput:sK,colorpicker:dK,dropzone:yK,grid:ti(wK(QK("grid"))),iframe:zK,input:EK,listbox:PK,selectbox:FK,sizeinput:UK,textarea:XK,urlinput:JK,customeditor:pK,htmlpanel:SK,imagetools:_K,collection:aK,label:ti(HK(QK("label"))),table:qK,panel:nY})})),eY=[Hi("type"),Xi("classes",[]),Ii("items",tY)],nY=ti(eY),rY=[Oi("name","name",zo((function(){return oc("tab-name")})),si),Hi("title"),Ii("items",tY)],oY=[Hi("type"),Li("tabs",rY)],iY=ti(oY),aY=GX,uY=XX,cY=ti([Hi("title"),Ei("body",gi("type",{panel:nY,tabpanel:iY})),Ji("size","normal"),Ii("buttons",uY),Xi("initialData",{}),ta("onAction",p),ta("onChange",p),ta("onSubmit",p),ta("onClose",p),ta("onCancel",p),Xi("onTabChange",p)]),sY=function(t){return xi("dialog",cY,t)},lY=ti(A([Di("type",["cancel","custom"])],aY,!0)),fY=ti([Hi("title"),Hi("url"),ji("height"),ji("width"),Gi("buttons",lY),ta("onAction",p),ta("onCancel",p),ta("onClose",p),ta("onMessage",p)]),dY=function(t){return xi("dialog",fY,t)},mY=function(t){return a(t)?[t].concat(rt(zt(t),mY)):u(t)?rt(t,mY):[]},hY=function(t){return i(t.type)&&i(t.name)},gY={checkbox:nK,colorinput:lK,colorpicker:mK,dropzone:xK,input:AK,iframe:OK,sizeinput:WK,selectbox:NK,listbox:LK,size:WK,textarea:KK,urlinput:ZK,customeditor:vK,collection:uK,togglemenuitem:UX},pY=function(t){return R.from(gY[t.type])},vY=function(t){return Y(mY(t),hY)},bY=function(t){var e=vY(t),n=rt(e,(function(t){return pY(t).fold((function(){return[]}),(function(e){return[Ei(t.name,e)]}))}));return ti(n)},yY=function(t){var e=wi(sY(t)),n=bY(t),r=t.initialData;return{internalDialog:e,dataValidator:n,initialData:r}},xY={open:function(t,e){var n=yY(e);return t(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(t,e){var n=wi(dY(e));return t(n)},redial:function(t){return yY(t)}},wY=function(t){var e=[],n={};return vt(t,(function(t,r){t.fold((function(){e.push(r)}),(function(t){n[r]=t}))})),e.length>0?ro.error(e):ro.value(n)},CY=function(t,e){var n=kC(DD.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:q(t.items,(function(t){return uL(n,t,e)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:mf([Tx.config({mode:"acyclic",useTabstopAt:k(vV)}),WD.memento(n),aV.memento(n,{postprocess:function(t){return wY(t).fold((function(t){return console.error(t),{}}),w)}})])}},SY=function(t,e){return{uid:t.uid,dom:t.dom,components:t.components,events:vw(t.action),behaviours:rp(t.tabButtonBehaviours,[Yx.config({}),Tx.config({mode:"execution",useSpace:!0,useEnter:!0}),tp.config({store:{mode:"memory",initialValue:t.value}})]),domModification:t.domModification}},kY=dv({name:"TabButton",configFields:[Xi("uid",void 0),Ti("value"),Oi("dom","dom",_o((function(){return{attributes:{role:"tab",id:oc("aria"),"aria-selected":"false"}}})),ai()),Fi("action"),Xi("domModification",{}),ep("tabButtonBehaviours",[Yx,Tx,tp]),Ti("view")],factory:SY}),zY=x([Ti("tabs"),Ti("dom"),Xi("clickToDismiss",!1),ep("tabbarBehaviours",[rb,Tx]),il(["tabClass","selectedClass"])]),OY=Rp({factory:kY,name:"tabs",unit:"tab",overrides:function(t){var e=function(t,e){rb.dehighlight(t,e),Su(t,yu(),{tabbar:t,button:e})},n=function(t,e){rb.highlight(t,e),Su(t,bu(),{tabbar:t,button:e})};return{action:function(r){var o=r.getSystem().getByUid(t.uid).getOrDie(),i=rb.isHighlighted(o,r),a=function(){return i&&t.clickToDismiss?e:i?p:n}();a(o,r)},domModification:{classes:[t.markers.tabClass]}}}}),MY=x([OY]),_Y=function(t,e,n,r){return{uid:t.uid,dom:t.dom,components:e,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:rp(t.tabbarBehaviours,[rb.config({highlightClass:t.markers.selectedClass,itemClass:t.markers.tabClass,onHighlight:function(t,e){Fn(e.element,"aria-selected","true")},onDehighlight:function(t,e){Fn(e.element,"aria-selected","false")}}),Tx.config({mode:"flow",getInitial:function(t){return rb.getHighlighted(t).map((function(t){return t.element}))},selector:"."+t.markers.tabClass,executeOnMove:!0})])}},TY=mv({name:"Tabbar",configFields:zY(),partFields:MY(),factory:_Y}),EY=function(t,e){return{uid:t.uid,dom:t.dom,behaviours:rp(t.tabviewBehaviours,[Ix.config({})]),domModification:{attributes:{role:"tabpanel"}}}},AY=dv({name:"Tabview",configFields:[ep("tabviewBehaviours",[Ix])],factory:EY}),HY=x([Xi("selectFirst",!0),ul("onChangeTab"),ul("onDismissTab"),Xi("tabs",[]),ep("tabSectionBehaviours",[])]),DY=Dp({factory:TY,schema:[Ti("dom"),Pi("markers",[Ti("tabClass"),Ti("selectedClass")])],name:"tabbar",defaults:function(t){return{tabs:t.tabs}}}),VY=Dp({factory:AY,name:"tabview"}),BY=x([DY,VY]),RY=function(t,e,n,r){var o=function(e){var n=tp.getValue(e);Xp(e,t,"tabview").each((function(r){var o=tt(t.tabs,(function(t){return t.value===n}));o.each((function(n){var o=n.view();Un(e.element,"id").each((function(t){Fn(r.element,"aria-labelledby",t)})),Ix.set(r,o),t.onChangeTab(r,e,o)}))}))},i=function(e,n){Xp(e,t,"tabbar").each((function(t){n(t).each(ku)}))};return{uid:t.uid,dom:t.dom,components:e,behaviours:np(t.tabSectionBehaviours),events:_u(nt([t.selectFirst?[ju((function(t,e){i(t,rb.getFirst)}))]:[],[Hu(bu(),(function(t,e){var n=e.event.button;o(n)})),Hu(yu(),(function(e,n){var r=n.event.button;t.onDismissTab(e,r)}))]])),apis:{getViewItems:function(e){return Xp(e,t,"tabview").map((function(t){return Ix.contents(t)})).getOr([])},showTab:function(t,e){var n=function(t){var n=rb.getCandidates(t),r=tt(n,(function(t){return tp.getValue(t)===e}));return r.filter((function(e){return!rb.isHighlighted(t,e)}))};i(t,n)}}}},PY=mv({name:"TabSection",configFields:HY(),partFields:BY(),factory:RY,apis:{getViewItems:function(t,e){return t.getViewItems(e)},showTab:function(t,e,n){t.showTab(e,n)}}}),LY=function(t,e,n){return q(t,(function(r,o){Ix.set(n,t[o].view());var i=e.dom.getBoundingClientRect();return Ix.set(n,[]),i.height}))},IY=function(t){return ft(st(t,(function(t,e){return t>e?-1:t<e?1:0})))},FY=function(t,e,n){var r,o=gn(t).dom,i=Rs(t,".tox-dialog-wrap").getOr(t),a="fixed"===Jn(i,"position");r=a?Math.max(o.clientHeight,window.innerHeight):Math.max(o.offsetHeight,o.scrollHeight);var u=ar(e),c=e.dom.offsetLeft>=n.dom.offsetLeft+vr(n),s=c?Math.max(ar(n),u):u,l=parseInt(Jn(t,"margin-top"),10)||0,f=parseInt(Jn(t,"margin-bottom"),10)||0,d=ar(t)+l+f,m=d-s;return r-m},NY=function(t,e){ft(t).each((function(t){return PY.showTab(e,t.value)}))},jY=function(t,e){Xn(t,"height",e+"px"),en().browser.isIE()?nr(t,"flex-basis"):Xn(t,"flex-basis",e+"px")},UY=function(t,e,n){Rs(t,'[role="dialog"]').each((function(t){Ls(t,'[role="tablist"]').each((function(r){n.get().map((function(n){return Xn(e,"height","0"),Xn(e,"flex-basis","0"),Math.min(n,FY(t,e,r))})).each((function(t){jY(e,t)}))}))}))},WY=function(t){return Ls(t,'[role="tabpanel"]')},GY=function(t){var e=function(){var e=od(),n=[ju((function(n){var r=n.element;WY(r).each((function(o){Xn(o,"visibility","hidden"),n.getSystem().getByDom(o).toOptional().each((function(n){var r=LY(t,o,n),i=IY(r);i.fold(e.clear,e.set)})),UY(r,o,e),nr(o,"visibility"),NY(t,n),wC.requestAnimationFrame((function(){UY(r,o,e)}))}))})),Hu(fu(),(function(t){var n=t.element;WY(n).each((function(t){UY(n,t,e)}))})),Hu(BT,(function(t,n){var r=t.element;WY(r).each((function(t){var n=Of(Tn(t));Xn(t,"visibility","hidden");var o=Qn(t,"height").map((function(t){return parseInt(t,10)}));nr(t,"height"),nr(t,"flex-basis");var i=t.dom.getBoundingClientRect().height,a=o.forall((function(t){return i>t}));a?(e.set(i),UY(r,t,e)):o.each((function(e){jY(t,e)})),nr(t,"visibility"),n.each(Sf)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var t=[],e=!0;return{extraEvents:t,selectFirst:e}}();return{smartTabHeight:e,naiveTabHeight:n}},qY="send-data-to-section",$Y="send-data-to-view",XY=function(t,e){var n=oa({}),r=function(t){var e=tp.getValue(t),r=wY(e).getOr({}),o=n.get(),i=Co(o,r);n.set(i)},o=function(t){var e=n.get();tp.setValue(t,e)},i=oa(null),a=q(t.tabs,(function(t){return{value:t.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:e.shared.providers.translate(t.title)},view:function(){return[DD.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:q(t.items,(function(t){return uL(n,t,e)})),formBehaviours:mf([Tx.config({mode:"acyclic",useTabstopAt:k(vV)}),Nx("TabView.form.events",[ju(o),Uu(r)]),yf.config({channels:ha([{key:qY,value:{onReceive:r}},{key:$Y,value:{onReceive:o}}])})])}}))]}}})),u=GY(a).smartTabHeight;return PY.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(t,e,n){var r=tp.getValue(e);Su(t,VT,{name:r,oldName:i.get()}),i.set(r)},tabs:a,components:[PY.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[TY.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:mf([yT.config({})])}),PY.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:u.selectFirst,tabSectionBehaviours:mf([Nx("tabpanel",u.extraEvents),Tx.config({mode:"acyclic"}),bv.config({find:function(t){return ft(PY.getViewItems(t))}}),tp.config({store:{mode:"manual",getValue:function(t){return t.getSystem().broadcastOn([qY],{}),n.get()},setValue:function(t,e){n.set(e),t.getSystem().broadcastOn([$Y],{})}}})])})},KY=oc("update-dialog"),YY=oc("update-title"),JY=oc("update-body"),ZY=oc("update-footer"),QY=oc("body-send-message"),tJ=function(t,e,n,r){var o=function(t){switch(t.body.type){case"tabpanel":return[XY(t.body,n)];default:return[CY(t.body,n)]}},i=function(t,e){return R.some({isTabPanel:function(){return"tabpanel"===e.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:T(T({},e.map((function(t){return{id:t}})).getOr({})),r?a:{})},components:[],behaviours:mf([WD.childAt(0),hW.config({channel:JY,updateState:i,renderComponents:o,initialData:t})])}},eJ=function(t,e,n,r){return tJ(t,R.some(e),n,r)},nJ=function(t,e){var n=tJ(t,R.none(),e,!1);return NX.parts.body(n)},rJ=function(t){var e={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[hV({dom:{tag:"iframe",attributes:{src:t.url}},behaviours:mf([yT.config({}),Yx.config({})])})]}],behaviours:mf([Tx.config({mode:"acyclic",useTabstopAt:k(vV)})])};return NX.parts.body(e)},oJ=CO.deviceType.isTouch(),iJ=function(t,e){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[t,e]}},aJ=function(t,e){return NX.parts.close(SC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close")}},action:t,buttonBehaviours:mf([yT.config({})])}))},uJ=function(){return NX.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},cJ=function(t,e){return NX.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:JN("<p>"+e.translate(t)+"</p>")}]}]})},sJ=function(t){return NX.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t})},lJ=function(t,e){return[sT.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),sT.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:e})]},fJ=function(t){var e,n="tox-dialog",r=n+"-wrap",o=r+"__backdrop",i=n+"__disable-scroll";return NX.sketch({lazySink:t.lazySink,onEscape:function(e){return t.onEscape(e),R.some(!0)},useTabstopAt:function(t){return!vV(t)},dom:{tag:"div",classes:[n].concat(t.extraClasses),styles:T({position:"relative"},t.extraStyles)},components:A([t.header,t.body],t.footer.toArray(),!0),parts:{blocker:{dom:JN('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:oJ?[o,o+"--opaque"]:[o]}}]}},dragBlockClass:r,modalBehaviours:mf(A([Yx.config({}),Nx("dialog-events",t.dialogEvents.concat([Nu(La(),(function(t,e){Tx.focusIn(t)}))])),Nx("scroll-lock",[ju((function(){is(Pn(),i)})),Uu((function(){us(Pn(),i)}))])],t.extraBehaviours,!0)),eventOrder:T((e={},e[eu()]=["dialog-events"],e[du()]=["scroll-lock","dialog-events","alloy.base.behaviour"],e[mu()]=["alloy.base.behaviour","dialog-events","scroll-lock"],e),t.eventOrder)})},dJ=function(t){return SC.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},components:[RC("close",{tag:"div",classes:["tox-icon"]},t.icons)],action:function(t){Cu(t,TT)}})},mJ=function(t,e,n){var r=function(t){return[Ss(n.translate(t.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:T({},e.map((function(t){return{id:t}})).getOr({}))},components:r(t),behaviours:mf([hW.config({channel:YY,renderComponents:r})])}},hJ=function(){return{dom:JN('<div class="tox-dialog__draghandle"></div>')}},gJ=function(t,e,n){return sT.sketch({dom:JN('<div class="tox-dialog__header"></div>'),components:[mJ(t,R.some(e),n),hJ(),dJ(n)],containerBehaviours:mf([bX.config({mode:"mouse",blockerClass:"blocker",getTarget:function(t){return Is(t,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},pJ=function(t,e){var n=NX.parts.title(mJ(t,R.none(),e)),r=NX.parts.draghandle(hJ()),o=NX.parts.close(dJ(e)),i=[n].concat(t.draggable?[r]:[]).concat([o]);return sT.sketch({dom:JN('<div class="tox-dialog__header"></div>'),components:i})},vJ=function(t,e){return pJ({title:e.shared.providers.translate(t),draggable:e.dialog.isDraggableModal()},e.shared.providers)},bJ=function(t,e,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(t)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:e,components:[{dom:JN('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},yJ=function(t,e,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){NX.setBusy(t(),(function(t,r){return bJ(n.message,r,e)}))},onUnblock:function(){NX.setIdle(t())}}},xJ=function(t,e,n,r){var o,i=function(t,e){return R.some(e)};return Ms(fJ(T(T({},t),{lazySink:r.shared.getSink,extraBehaviours:A([hW.config({channel:KY,updateState:i,initialData:e}),aV.memory({})],t.extraBehaviours,!0),onEscape:function(t){Cu(t,TT)},dialogEvents:n,eventOrder:(o={},o[tu()]=[hW.name(),yf.name()],o[du()]=["scroll-lock",hW.name(),"messages","dialog-events","alloy.base.behaviour"],o[mu()]=["alloy.base.behaviour","dialog-events","messages",hW.name(),"scroll-lock"],o)})))},wJ=function(t){var e=function(t){var e=q(t.items,(function(t){var e=oa(!1);return T(T({},t),{storage:e})}));return T(T({},t),{items:e})};return q(t,(function(t){return"menu"===t.type?e(t):t}))},CJ=function(t){return Z(t,(function(t,e){if("menu"===e.type){var n=e;return Z(n.items,(function(t,e){return t[e.name]=e.storage,t}),t)}return t}),{})},SJ=function(t,e){return[Lu(La(),pV),t(_T,(function(t,n){e.onClose(),n.onClose()})),t(TT,(function(t,e,n,r){e.onCancel(t),Cu(r,_T)})),Hu(DT,(function(t,n){return e.onUnblock()})),Hu(HT,(function(t,n){return e.onBlock(n.event)}))]},kJ=function(t,e){var n=function(e,n){return Hu(e,(function(e,o){r(e,(function(r,i){n(t(),r,o.event,e)}))}))},r=function(t,e){hW.getState(t).get().each((function(n){e(n,t)}))};return A(A([],SJ(n,e),!0),[n(ET,(function(t,e,n){e.onAction(t,{name:n.name})}))],!1)},zJ=function(t,e,n){var r=function(e,n){return Hu(e,(function(e,r){o(e,(function(o,i){n(t(),o,r.event,e)}))}))},o=function(t,e){hW.getState(t).get().each((function(n){e(n.internalDialog,t)}))};return A(A([],SJ(r,e),!0),[r(AT,(function(t,e){return e.onSubmit(t)})),r(MT,(function(t,e,n){e.onChange(t,{name:n.name})})),r(ET,(function(t,e,r,o){var i=function(){return Tx.focusIn(o)},a=function(t){return Wn(t,"disabled")||Un(t,"aria-disabled").exists((function(t){return"true"===t}))},u=Tn(o.element),c=Of(u);e.onAction(t,{name:r.name,value:r.value}),Of(u).fold(i,(function(t){a(t)||c.exists((function(e){return dn(t,e)&&a(e)}))?i():n().toOptional().filter((function(e){return!dn(e.element,t)})).each(i)}))})),r(VT,(function(t,e,n){e.onTabChange(t,{newTabName:n.name,oldTabName:n.oldName})})),Uu((function(e){var n=t();tp.setValue(e,n.getData())}))],!1)},OJ={initUrlDialog:kJ,initDialog:zJ},MJ=function(t,e){return rR(t,t.type,e)},_J=function(t,e,n){return tt(e,(function(t){return t.name===n})).bind((function(e){return e.memento.getOpt(t)}))},TJ=function(t,e){var n=e.map((function(t){return t.footerButtons})).getOr([]),r=K(n,(function(t){return"start"===t.align})),o=function(t,e){return sT.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+t]},components:q(e,(function(t){return t.memento.asSpec()}))})},i=o("start",r.pass),a=o("end",r.fail);return[i,a]},EJ=function(t,e){var n=function(t,n){var r=q(n.buttons,(function(t){var n=kC(MJ(t,e));return{name:t.name,align:t.align,memento:n}})),o=function(t,e){return _J(t,r,e)};return R.some({lookupByName:o,footerButtons:r})};return{dom:JN('<div class="tox-dialog__footer"></div>'),components:[],behaviours:mf([hW.config({channel:ZY,initialData:t,updateState:n,renderComponents:TJ})])}},AJ=function(t,e){return EJ(t,e)},HJ=function(t,e){return NX.parts.footer(EJ(t,e))},DJ=function(t,e){var n=t.getRoot();if(n.getSystem().isConnected()){var r=bv.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());return DD.getField(r,e).fold((function(){var n=t.getFooter(),o=hW.getState(n);return o.get().bind((function(t){return t.lookupByName(r,e)}))}),(function(t){return R.some(t)}))}return R.none()},VJ=function(t,e){var n=t.getRoot();return hW.getState(n).get().map((function(t){return wi(xi("data",t.dataValidator,e))})).getOr(e)},BJ=function(t,e,n){var r=function(e){var n=t.getRoot();n.getSystem().isConnected()&&e(n)},o=function(){var e=t.getRoot(),r=e.getSystem().isConnected()?t.getFormWrapper():e,o=tp.getValue(r),i=bt(n,(function(t){return t.get()}));return T(T({},o),i)},a=function(e){r((function(r){var o=g.getData(),i=T(T({},o),e),a=VJ(t,i),u=t.getFormWrapper();tp.setValue(u,a),vt(n,(function(t,e){Mt(i,e)&&t.set(i[e])}))}))},u=function(e){DJ(t,e).each(Pv.disable)},c=function(e){DJ(t,e).each(Pv.enable)},s=function(e){DJ(t,e).each(Yx.focus)},l=function(t){if(!i(t))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(e){Su(e,HT,{message:t})}))},f=function(){r((function(t){Cu(t,DT)}))},d=function(e){r((function(n){var r=t.getBody(),o=hW.getState(r);o.get().exists((function(t){return t.isTabPanel()}))&&bv.getCurrent(r).each((function(t){PY.showTab(t,e)}))}))},m=function(t){r((function(n){var r=e(t);n.getSystem().broadcastOn([KY],r),n.getSystem().broadcastOn([YY],r.internalDialog),n.getSystem().broadcastOn([JY],r.internalDialog),n.getSystem().broadcastOn([ZY],r.internalDialog),g.setData(r.initialData)}))},h=function(){r((function(t){Cu(t,_T)}))},g={getData:o,setData:a,disable:u,enable:c,focus:s,block:l,unblock:f,showTab:d,redial:m,close:h};return g},RJ=function(t){switch(t){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},PJ=function(t,e,n){var r=vJ(t.internalDialog.title,n),o=nJ({body:t.internalDialog.body},n),i=wJ(t.internalDialog.buttons),a=CJ(i),u=HJ({buttons:i},n),c=OJ.initDialog((function(){return m}),yJ((function(){return f}),n.shared.providers,e),n.shared.getSink),s=RJ(t.internalDialog.size),l={header:r,body:o,footer:R.some(u),extraClasses:s,extraBehaviours:[],extraStyles:{}},f=xJ(l,t,c,n),d=function(){var t=function(){var t=NX.getBody(f);return bv.getCurrent(t).getOr(t)};return{getRoot:x(f),getBody:function(){return NX.getBody(f)},getFooter:function(){return NX.getFooter(f)},getFormWrapper:t}}(),m=BJ(d,e.redial,a);return{dialog:f,instanceApi:m}},LJ=function(t,e,n,r){var o,i,a=oc("dialog-label"),u=oc("dialog-content"),c=function(t,e){return R.some(e)},s=kC(gJ({title:t.internalDialog.title,draggable:!0},a,n.shared.providers)),l=kC(eJ({body:t.internalDialog.body},u,n,r)),f=wJ(t.internalDialog.buttons),d=CJ(f),m=kC(AJ({buttons:f},n)),h=OJ.initDialog((function(){return p}),{onBlock:function(t){XN.block(g,(function(e,r){return bJ(t.message,r,n.shared.providers)}))},onUnblock:function(){XN.unblock(g)},onClose:function(){return e.closeWindow()}},n.shared.getSink),g=Ms({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(o={role:"dialog"},o["aria-labelledby"]=a,o["aria-describedby"]=u,o)},eventOrder:(i={},i[tu()]=[hW.name(),yf.name()],i[eu()]=["execute-on-form"],i[du()]=["reflecting","execute-on-form"],i),behaviours:mf([Tx.config({mode:"cyclic",onEscape:function(t){return Cu(t,_T),R.some(!0)},useTabstopAt:function(t){return!vV(t)&&("button"!==ue(t)||"disabled"!==jn(t,"disabled"))}}),hW.config({channel:KY,updateState:c,initialData:t}),Yx.config({}),Nx("execute-on-form",h.concat([Nu(La(),(function(t,e){Tx.focusIn(t)}))])),XN.config({getRoot:function(){return R.some(g)}}),Ix.config({}),aV.memory({})]),components:[s.asSpec(),l.asSpec(),m.asSpec()]}),p=BJ({getRoot:x(g),getFooter:function(){return m.get(g)},getBody:function(){return l.get(g)},getFormWrapper:function(){var t=l.get(g);return bv.getCurrent(t).getOr(t)}},e.redial,d);return{dialog:g,instanceApi:p}},IJ=tinymce.util.Tools.resolve("tinymce.util.URI"),FJ=function(t){var e=function(e){t.getSystem().isConnected()&&e(t)},n=function(t){if(!i(t))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");e((function(e){Su(e,HT,{message:t})}))},r=function(){e((function(t){Cu(t,DT)}))},o=function(){e((function(t){Cu(t,_T)}))},a=function(t){e((function(e){e.getSystem().broadcastOn([QY],t)}))};return{block:n,unblock:r,close:o,sendMessage:a}},NJ=["insertContent","setContent","execCommand","close","block","unblock"],jJ=function(t){return a(t)&&-1!==NJ.indexOf(t.mceAction)},UJ=function(t){return!jJ(t)&&a(t)&&Mt(t,"mceAction")},WJ=function(t,e,n){switch(n.mceAction){case"insertContent":t.insertContent(n.content);break;case"setContent":t.setContent(n.content);break;case"execCommand":var r=!!s(n.ui)&&n.ui;t.execCommand(n.cmd,r,n.value);break;case"close":e.close();break;case"block":e.block(n.message);break;case"unblock":e.unblock();break}},GJ=function(t,e,n,r){var o,i=vJ(t.title,r),a=rJ(t),u=t.buttons.bind((function(t){return 0===t.length?R.none():R.some(HJ({buttons:t},r))})),c=OJ.initUrlDialog((function(){return v}),yJ((function(){return p}),r.shared.providers,e)),s=T(T({},t.height.fold((function(){return{}}),(function(t){return{height:t+"px","max-height":t+"px"}}))),t.width.fold((function(){return{}}),(function(t){return{width:t+"px","max-width":t+"px"}}))),l=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],f=new IJ(t.url,{base_uri:new IJ(window.location.href)}),d=f.protocol+"://"+f.host+(f.port?":"+f.port:""),m=nd(),h=[Nx("messages",[ju((function(){var e=ad(ee.fromDom(window),"message",(function(e){if(f.isSameOrigin(new IJ(e.raw.origin))){var r=e.raw.data;jJ(r)?WJ(n,v,r):UJ(r)&&t.onMessage(v,r)}}));m.set(e)})),Uu(m.clear)]),yf.config({channels:(o={},o[QY]={onReceive:function(t,e){Ls(t.element,"iframe").each((function(t){var n=t.dom.contentWindow;n.postMessage(e,d)}))}},o)})],g={header:i,body:a,footer:u,extraClasses:l,extraBehaviours:h,extraStyles:s},p=xJ(g,t,c,r),v=FJ(p);return{dialog:p,instanceApi:v}},qJ=function(t){var e=t.backstage.shared,n=function(n,r){var o=function(){NX.hide(c),r()},i=kC(rR({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:R.none()},"cancel",t.backstage)),a=uJ(),u=aJ(o,e.providers),c=Ms(fJ({lazySink:function(){return e.getSink()},header:iJ(a,u),body:cJ(n,e.providers),footer:R.some(sJ(lJ([],[i.asSpec()]))),onEscape:o,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Hu(TT,o)],eventOrder:{}}));NX.show(c);var s=i.get(c);Yx.focus(s)};return{open:n}},$J=function(t){var e=t.backstage.shared,n=function(n,r){var o=function(t){NX.hide(s),r(t)},i=kC(rR({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:R.none()},"submit",t.backstage)),a=rR({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:R.none()},"cancel",t.backstage),u=uJ(),c=aJ((function(){return o(!1)}),e.providers),s=Ms(fJ({lazySink:function(){return e.getSink()},header:iJ(u,c),body:cJ(n,e.providers),footer:R.some(sJ(lJ([],[a,i.asSpec()]))),onEscape:function(){return o(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Hu(TT,(function(){return o(!1)})),Hu(AT,(function(){return o(!0)}))],eventOrder:{}}));NX.show(s);var l=i.get(s);Yx.focus(l)};return{open:n}},XJ=function(t,e){return wi(xi("data",e,t))},KJ=function(t){return R_(t,".tox-alert-dialog")||R_(t,".tox-confirm-dialog")},YJ=function(t,e,n){return e&&n?[]:[CF.config({contextual:{lazyContext:function(){return R.some(Jr(ee.fromDom(t.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},JJ=function(t){var e=t.backstage,n=t.editor,r=Gz(n),o=qJ(t),i=$J(t),a=function(t,n,r){return void 0!==n&&"toolbar"===n.inline?l(t,e.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?l(t,e.shared.anchors.cursor(),r,n.ariaAttrs):s(t,r)},u=function(t,e){return c(t,e)},c=function(t,r){var o=function(t){var o=GJ(t,{closeWindow:function(){NX.hide(o.dialog),r(o.instanceApi)}},n,e);return NX.show(o.dialog),o.instanceApi};return xY.openUrl(o,t)},s=function(t,n){var r=function(t,r,o){var i=r,a={dataValidator:o,initialData:i,internalDialog:t},u=PJ(a,{redial:xY.redial,closeWindow:function(){NX.hide(u.dialog),n(u.instanceApi)}},e);return NX.show(u.dialog),u.instanceApi.setData(i),u.instanceApi};return xY.open(r,t)},l=function(t,o,i,a){var u=function(t,u,c){var s=XJ(u,c),l=od(),f=e.shared.header.isPositionedAtTop(),d={dataValidator:c,initialData:s,internalDialog:t},m=function(){return l.on((function(t){eC.reposition(t),CF.refresh(t)}))},h=LJ(d,{redial:xY.redial,closeWindow:function(){l.on(eC.hide),n.off("ResizeEditor",m),l.clear(),i(h.instanceApi)}},e,a),g=Ms(eC.sketch(T(T({lazySink:e.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},f?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:mf(A([Nx("window-manager-inline-events",[Hu(hu(),(function(t,e){Cu(h.dialog,TT)}))])],YJ(n,r,f),!0)),isExtraPart:function(t,e){return KJ(e)}})));return l.set(g),eC.showWithin(g,_s(h.dialog),{anchor:o},R.some(Pn())),r&&f||(CF.refresh(g),n.on("ResizeEditor",m)),h.instanceApi.setData(s),Tx.focusIn(h.dialog),h.instanceApi};return xY.open(u,t)},f=function(t,e){i.open(t,(function(t){e(t)}))},d=function(t,e){o.open(t,(function(){e()}))},m=function(t){t.close()};return{open:a,openUrl:u,alert:d,close:m,confirm:f}};function ZJ(){_.add("silver",(function(t){var e=VX(t),n=e.uiMothership,r=e.backstage,o=e.renderUI,i=e.getUi;B_.register(t,r.shared);var a=JJ({editor:t,backstage:r});return{renderUI:o,getWindowManagerImpl:x(a),getNotificationManagerImpl:function(){return NC(t,{backstage:r},n)},ui:i()}}))}ZJ()})()}).call(this,n("2409"))},4117:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)},n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},o=function(t){return function(e){return typeof e===t}},i=function(t){return function(e){return t===e}},a=r("string"),u=r("object"),c=r("array"),s=i(null),l=o("boolean"),f=function(t){return null===t||void 0===t},d=function(t){return!f(t)},m=o("function"),h=o("number"),g=function(){},p=function(t){return function(){return t}},v=function(t){return t},b=p(!1),y=p(!0),x=function(){return w},w=function(){var t=function(t){return t()},e=v,n={fold:function(t,e){return t()},isSome:b,isNone:y,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:p(null),getOrUndefined:p(void 0),or:e,orThunk:t,map:x,each:g,bind:x,exists:b,forall:y,filter:function(){return x()},toArray:function(){return[]},toString:p("none()")};return n}(),C=function(t){var e=p(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:y,isNone:b,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return C(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:w},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},S=function(t){return null===t||void 0===t?w:C(t)},k={some:C,none:x,from:S},z=Object.keys,O=Object.hasOwnProperty,M=function(t,e){for(var n=z(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},_=function(t){return function(e,n){t[n]=e}},T=function(t,e,n,r){var o={};return M(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},E=function(t,e){var n={};return T(t,e,_(n),g),n},A=function(t,e){return O.call(t,e)},H=function(t,e){return A(t,e)&&void 0!==t[e]&&null!==t[e]},D=Array.prototype.push,V=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!c(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);D.apply(e,t[n])}return e},B=function(t,e){return e>=0&&e<t.length?k.some(t[e]):k.none()},R=function(t){return B(t,0)},P=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return k.none()};"undefined"!==typeof window?window:Function("return this;")();var L=function(t,e,n){if(!(a(n)||l(n)||h(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},I=function(t,e,n){L(t.dom,e,n)},F=function(t,e){t.dom.removeAttribute(e)},N=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return W(r.childNodes[0])},j=function(t,e){var n=e||document,r=n.createElement(t);return W(r)},U=function(t,e){var n=e||document,r=n.createTextNode(t);return W(r)},W=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},G=function(t,e,n){return k.from(t.dom.elementFromPoint(e,n)).map(W)},q={fromHtml:N,fromTag:j,fromText:U,fromDom:W,fromPoint:G},$=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),X=tinymce.util.Tools.resolve("tinymce.util.Promise"),K=tinymce.util.Tools.resolve("tinymce.util.URI"),Y=tinymce.util.Tools.resolve("tinymce.util.XHR"),J=function(t){return t.getParam("image_dimensions",!0,"boolean")},Z=function(t){return t.getParam("image_advtab",!1,"boolean")},Q=function(t){return t.getParam("image_uploadtab",!0,"boolean")},tt=function(t){return t.getParam("image_prepend_url","","string")},et=function(t){return t.getParam("image_class_list")},nt=function(t){return t.getParam("image_description",!0,"boolean")},rt=function(t){return t.getParam("image_title",!1,"boolean")},ot=function(t){return t.getParam("image_caption",!1,"boolean")},it=function(t){return t.getParam("image_list",!1)},at=function(t){return d(t.getParam("images_upload_url"))},ut=function(t){return d(t.getParam("images_upload_handler"))},ct=function(t){return t.getParam("a11y_advanced_options",!1,"boolean")},st=function(t){return t.getParam("automatic_uploads",!0,"boolean")},lt=function(t,e){return Math.max(parseInt(t,10),parseInt(e,10))},ft=function(t){return new X((function(e){var n=document.createElement("img"),r=function(t){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),e(t)};n.onload=function(){var t=lt(n.width,n.clientWidth),e=lt(n.height,n.clientHeight),o={width:t,height:e};r(X.resolve(o))},n.onerror=function(){r(X.reject("Failed to get image dimensions for: "+t))};var o=n.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",document.body.appendChild(n),n.src=t}))},dt=function(t){return t&&(t=t.replace(/px$/,"")),t},mt=function(t){return t.length>0&&/^[0-9]+$/.test(t)&&(t+="px"),t},ht=function(t){if(t.margin){var e=String(t.margin).split(" ");switch(e.length){case 1:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[0],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[0];break;case 2:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[0],t["margin-left"]=t["margin-left"]||e[1];break;case 3:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[1];break;case 4:t["margin-top"]=t["margin-top"]||e[0],t["margin-right"]=t["margin-right"]||e[1],t["margin-bottom"]=t["margin-bottom"]||e[2],t["margin-left"]=t["margin-left"]||e[3]}delete t.margin}return t},gt=function(t,e){var n=it(t);a(n)?Y.send({url:n,success:function(t){e(JSON.parse(t))}}):m(n)?n(e):e(n)},pt=function(t,e,n){var r=function(){n.onload=n.onerror=null,t.selection&&(t.selection.select(n),t.nodeChanged())};n.onload=function(){e.width||e.height||!J(t)||t.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},vt=function(t){return new X((function(e,n){var r=new FileReader;r.onload=function(){e(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(t)}))},bt=function(t){return"IMG"===t.nodeName&&(t.hasAttribute("data-mce-object")||t.hasAttribute("data-mce-placeholder"))},yt=function(t,e){return K.isDomSafe(e,"img",t.settings)},xt=$.DOM,wt=function(t){return t.style.marginLeft&&t.style.marginRight&&t.style.marginLeft===t.style.marginRight?dt(t.style.marginLeft):""},Ct=function(t){return t.style.marginTop&&t.style.marginBottom&&t.style.marginTop===t.style.marginBottom?dt(t.style.marginTop):""},St=function(t){return t.style.borderWidth?dt(t.style.borderWidth):""},kt=function(t,e){return t.hasAttribute(e)?t.getAttribute(e):""},zt=function(t,e){return t.style[e]?t.style[e]:""},Ot=function(t){return null!==t.parentNode&&"FIGURE"===t.parentNode.nodeName},Mt=function(t,e,n){""===n?t.removeAttribute(e):t.setAttribute(e,n)},_t=function(t){var e=xt.create("figure",{class:"image"});xt.insertAfter(e,t),e.appendChild(t),e.appendChild(xt.create("figcaption",{contentEditable:"true"},"Caption")),e.contentEditable="false"},Tt=function(t){var e=t.parentNode;xt.insertAfter(t,e),xt.remove(e)},Et=function(t){Ot(t)?Tt(t):_t(t)},At=function(t,e){var n=t.getAttribute("style"),r=e(null!==n?n:"");r.length>0?(t.setAttribute("style",r),t.setAttribute("data-mce-style",r)):t.removeAttribute("style")},Ht=function(t,e){return function(t,n,r){t.style[n]?(t.style[n]=mt(r),At(t,e)):Mt(t,n,r)}},Dt=function(t,e){return t.style[e]?dt(t.style[e]):kt(t,e)},Vt=function(t,e){var n=mt(e);t.style.marginLeft=n,t.style.marginRight=n},Bt=function(t,e){var n=mt(e);t.style.marginTop=n,t.style.marginBottom=n},Rt=function(t,e){var n=mt(e);t.style.borderWidth=n},Pt=function(t,e){t.style.borderStyle=e},Lt=function(t){return zt(t,"borderStyle")},It=function(t){return"FIGURE"===t.nodeName},Ft=function(t){return"IMG"===t.nodeName},Nt=function(t){return 0===xt.getAttrib(t,"alt").length&&"presentation"===xt.getAttrib(t,"role")},jt=function(t){return Nt(t)?"":kt(t,"alt")},Ut=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Wt=function(t,e){var n=document.createElement("img");return Mt(n,"style",e.style),(wt(n)||""!==e.hspace)&&Vt(n,e.hspace),(Ct(n)||""!==e.vspace)&&Bt(n,e.vspace),(St(n)||""!==e.border)&&Rt(n,e.border),(Lt(n)||""!==e.borderStyle)&&Pt(n,e.borderStyle),t(n.getAttribute("style"))},Gt=function(t,n){var r=document.createElement("img");if(Jt(t,e(e({},n),{caption:!1}),r),Xt(r,n.alt,n.isDecorative),n.caption){var o=xt.create("figure",{class:"image"});return o.appendChild(r),o.appendChild(xt.create("figcaption",{contentEditable:"true"},"Caption")),o.contentEditable="false",o}return r},qt=function(t,e){return{src:kt(e,"src"),alt:jt(e),title:kt(e,"title"),width:Dt(e,"width"),height:Dt(e,"height"),class:kt(e,"class"),style:t(kt(e,"style")),caption:Ot(e),hspace:wt(e),vspace:Ct(e),border:St(e),borderStyle:zt(e,"borderStyle"),isDecorative:Nt(e)}},$t=function(t,e,n,r,o){n[r]!==e[r]&&o(t,r,n[r])},Xt=function(t,e,n){if(n){xt.setAttrib(t,"role","presentation");var r=q.fromDom(t);I(r,"alt","")}else{if(s(e)){r=q.fromDom(t);F(r,"alt")}else{r=q.fromDom(t);I(r,"alt",e)}"presentation"===xt.getAttrib(t,"role")&&xt.setAttrib(t,"role","")}},Kt=function(t,e,n){n.alt===e.alt&&n.isDecorative===e.isDecorative||Xt(t,n.alt,n.isDecorative)},Yt=function(t,e){return function(n,r,o){t(n,o),At(n,e)}},Jt=function(t,e,n){var r=qt(t,n);$t(n,r,e,"caption",(function(t,e,n){return Et(t)})),$t(n,r,e,"src",Mt),$t(n,r,e,"title",Mt),$t(n,r,e,"width",Ht("width",t)),$t(n,r,e,"height",Ht("height",t)),$t(n,r,e,"class",Mt),$t(n,r,e,"style",Yt((function(t,e){return Mt(t,"style",e)}),t)),$t(n,r,e,"hspace",Yt(Vt,t)),$t(n,r,e,"vspace",Yt(Bt,t)),$t(n,r,e,"border",Yt(Rt,t)),$t(n,r,e,"borderStyle",Yt(Pt,t)),Kt(n,r,e)},Zt=function(t,e){var n=t.dom.styles.parse(e),r=ht(n),o=t.dom.styles.parse(t.dom.styles.serialize(r));return t.dom.styles.serialize(o)},Qt=function(t){var e=t.selection.getNode(),n=t.dom.getParent(e,"figure.image");return n?t.dom.select("img",n)[0]:e&&("IMG"!==e.nodeName||bt(e))?null:e},te=function(t,e){var n=t.dom,r=E(t.schema.getTextBlockElements(),(function(e,n){return!t.schema.isValidChild(n,"figure")})),o=n.getParent(e.parentNode,(function(t){return H(r,t.nodeName)}),t.getBody());return o?n.split(o,e):e},ee=function(t){var e=Qt(t);return e?qt((function(e){return Zt(t,e)}),e):Ut()},ne=function(t,e){var n=Gt((function(e){return Zt(t,e)}),e);t.dom.setAttrib(n,"data-mce-id","__mcenew"),t.focus(),t.selection.setContent(n.outerHTML);var r=t.dom.select('*[data-mce-id="__mcenew"]')[0];if(t.dom.setAttrib(r,"data-mce-id",null),It(r)){var o=te(t,r);t.selection.select(o)}else t.selection.select(r)},re=function(t,e){t.dom.setAttrib(e,"src",e.getAttribute("src"))},oe=function(t,e){if(e){var n=t.dom.is(e.parentNode,"figure.image")?e.parentNode:e;t.dom.remove(n),t.focus(),t.nodeChanged(),t.dom.isEmpty(t.getBody())&&(t.setContent(""),t.selection.setCursorLocation())}},ie=function(t,e){var n=Qt(t);if(Jt((function(e){return Zt(t,e)}),e,n),re(t,n),It(n.parentNode)){var r=n.parentNode;te(t,r),t.selection.select(n.parentNode)}else t.selection.select(n),pt(t,e,n)},ae=function(t,n){var r=n.src;return e(e({},n),{src:yt(t,r)?r:""})},ue=function(t,n){var r=Qt(t);if(r){var o=qt((function(e){return Zt(t,e)}),r),i=e(e({},o),n),a=ae(t,i);i.src?ie(t,a):oe(t,r)}else n.src&&ne(t,e(e({},Ut()),n))},ce=function(t,e){var n=u(t)&&u(e);return n?le(t,e):e},se=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)throw new Error("Can't merge zero objects");for(var r={},o=0;o<e.length;o++){var i=e[o];for(var a in i)A(i,a)&&(r[a]=t(r[a],i[a]))}return r}},le=se(ce),fe=function(t){return t.length>0},de=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),me=tinymce.util.Tools.resolve("tinymce.util.Tools"),he=function(t){return a(t.value)?t.value:""},ge=function(t){return a(t.text)?t.text:a(t.title)?t.title:""},pe=function(t,e){var n=[];return me.each(t,(function(t){var r=ge(t);if(void 0!==t.menu){var o=pe(t.menu,e);n.push({text:r,items:o})}else{var i=e(t);n.push({text:r,value:i})}})),n},ve=function(t){return void 0===t&&(t=he),function(e){return e?k.from(e).map((function(e){return pe(e,t)})):k.none()}},be=function(t){return ve(he)(t)},ye=function(t){return A(t,"items")},xe=function(t,e){return P(t,(function(t){return ye(t)?xe(t.items,e):t.value===e?k.some(t):k.none()}))},we=function(t,e){return t.bind((function(t){return xe(t,e)}))},Ce={sanitizer:ve,sanitize:be,findEntry:we},Se=function(t){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},ke={makeTab:Se},ze=function(t){var e=Ce.sanitizer((function(e){return t.convertURL(e.value||e.url,"src")})),n=new X((function(n){gt(t,(function(t){n(e(t).map((function(t){return V([[{text:"None",value:""}],t])})))}))})),r=Ce.sanitize(et(t)),o=Z(t),i=Q(t),u=at(t),c=ut(t),s=ee(t),l=nt(t),f=rt(t),d=J(t),m=ot(t),h=ct(t),g=st(t),p=k.some(tt(t)).filter((function(t){return a(t)&&t.length>0}));return n.then((function(t){return{image:s,imageList:t,classList:r,hasAdvTab:o,hasUploadTab:i,hasUploadUrl:u,hasUploadHandler:c,hasDescription:l,hasImageTitle:f,hasDimensions:d,hasImageCaption:m,prependURL:p,hasAccessibilityOptions:h,automaticUploads:g}}))},Oe=function(t){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=t.imageList.map((function(t){return{name:"images",type:"listbox",label:"Image list",items:t}})),o={name:"alt",type:"input",label:"Alternative description",disabled:t.hasAccessibilityOptions&&t.image.isDecorative},i={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},u={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},c=t.classList.map((function(t){return{name:"classes",type:"listbox",label:"Class",items:t}})),s={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},l=function(t){return t?{type:"grid",columns:2}:{type:"panel"}};return V([[n],r.toArray(),t.hasAccessibilityOptions&&t.hasDescription?[u]:[],t.hasDescription?[o]:[],t.hasImageTitle?[i]:[],t.hasDimensions?[a]:[],[e(e({},l(t.classList.isSome()&&t.hasImageCaption)),{items:V([c.toArray(),t.hasImageCaption?[s]:[]])})]])},Me=function(t){return{title:"General",name:"general",items:Oe(t)}},_e={makeTab:Me,makeItems:Oe},Te=function(t){var e=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:e}},Ee={makeTab:Te},Ae=function(t){return{prevImage:Ce.findEntry(t.imageList,t.image.src),prevAlt:t.image.alt,open:!0}},He=function(t){return{src:{value:t.src,meta:{}},images:t.src,alt:t.alt,title:t.title,dimensions:{width:t.width,height:t.height},classes:t.class,caption:t.caption,style:t.style,vspace:t.vspace,border:t.border,hspace:t.hspace,borderstyle:t.borderStyle,fileinput:[],isDecorative:t.isDecorative}},De=function(t,e){return{src:t.src.value,alt:0===t.alt.length&&e?null:t.alt,title:t.title,width:t.dimensions.width,height:t.dimensions.height,class:t.classes,style:t.style,caption:t.caption,hspace:t.hspace,vspace:t.vspace,border:t.border,borderStyle:t.borderstyle,isDecorative:t.isDecorative}},Ve=function(t,e){return/^(?:[a-zA-Z]+:)?\/\//.test(e)?k.none():t.prependURL.bind((function(t){return e.substring(0,t.length)!==t?k.some(t+e):k.none()}))},Be=function(t,e){var n=e.getData();Ve(t,n.src.value).each((function(t){e.setData({src:{value:t,meta:n.src.meta}})}))},Re=function(t,e,n){t.hasDescription&&a(n.alt)&&(e.alt=n.alt),t.hasAccessibilityOptions&&(e.isDecorative=n.isDecorative||e.isDecorative||!1),t.hasImageTitle&&a(n.title)&&(e.title=n.title),t.hasDimensions&&(a(n.width)&&(e.dimensions.width=n.width),a(n.height)&&(e.dimensions.height=n.height)),a(n.class)&&Ce.findEntry(t.classList,n.class).each((function(t){e.classes=t.value})),t.hasImageCaption&&l(n.caption)&&(e.caption=n.caption),t.hasAdvTab&&(a(n.style)&&(e.style=n.style),a(n.vspace)&&(e.vspace=n.vspace),a(n.border)&&(e.border=n.border),a(n.hspace)&&(e.hspace=n.hspace),a(n.borderstyle)&&(e.borderstyle=n.borderstyle))},Pe=function(t,e){var n=e.getData(),r=n.src.meta;if(void 0!==r){var o=le({},n);Re(t,o,r),e.setData(o)}},Le=function(t,e,n,r){var o=r.getData(),i=o.src.value,a=o.src.meta||{};a.width||a.height||!e.hasDimensions||(fe(i)?t.imageSize(i).then((function(t){n.open&&r.setData({dimensions:t})})).catch((function(t){return console.error(t)})):r.setData({dimensions:{width:"",height:""}}))},Ie=function(t,e,n){var r=n.getData(),o=Ce.findEntry(t.imageList,r.src.value);e.prevImage=o,n.setData({images:o.map((function(t){return t.value})).getOr("")})},Fe=function(t,e,n,r){Be(e,r),Pe(e,r),Le(t,e,n,r),Ie(e,n,r)},Ne=function(t,e,n,r){var o=r.getData(),i=Ce.findEntry(e.imageList,o.images);i.each((function(t){var e=""===o.alt||n.prevImage.map((function(t){return t.text===o.alt})).getOr(!1);e?""===t.value?r.setData({src:t,alt:n.prevAlt}):r.setData({src:t,alt:t.text}):r.setData({src:t})})),n.prevImage=i,Fe(t,e,n,r)},je=function(t){var e=t["margin-top"]&&t["margin-bottom"]&&t["margin-top"]===t["margin-bottom"];return e?dt(String(t["margin-top"])):""},Ue=function(t){var e=t["margin-right"]&&t["margin-left"]&&t["margin-right"]===t["margin-left"];return e?dt(String(t["margin-right"])):""},We=function(t){return t["border-width"]?dt(String(t["border-width"])):""},Ge=function(t){return t["border-style"]?String(t["border-style"]):""},qe=function(t,e,n){return e(t(e(n)))},$e=function(t,e,n){var r=ht(t(n.style)),o=le({},n);return o.vspace=je(r),o.hspace=Ue(r),o.border=We(r),o.borderstyle=Ge(r),o.style=qe(t,e,r),o},Xe=function(t,e){var n=e.getData(),r=$e(t.parseStyle,t.serializeStyle,n);e.setData(r)},Ke=function(t,e,n){var r=le(He(e.image),n.getData()),o=Wt(t.normalizeCss,De(r,!1));n.setData({style:o})},Ye=function(t,e,n,r){var o=r.getData();r.block("Uploading image"),R(o.fileinput).fold((function(){r.unblock()}),(function(o){var i=URL.createObjectURL(o),a=function(){r.unblock(),URL.revokeObjectURL(i)},u=function(o){r.setData({src:{value:o,meta:{}}}),r.showTab("general"),Fe(t,e,n,r)};vt(o).then((function(n){var c=t.createBlobCache(o,i,n);e.automaticUploads?t.uploadImage(c).then((function(t){u(t.url),a()})).catch((function(e){a(),t.alertErr(e)})):(t.addToBlobCache(c),u(c.blobUri()),r.unblock())}))}))},Je=function(t,e,n){return function(r,o){"src"===o.name?Fe(t,e,n,r):"images"===o.name?Ne(t,e,n,r):"alt"===o.name?n.prevAlt=r.getData().alt:"style"===o.name?Xe(t,r):"vspace"===o.name||"hspace"===o.name||"border"===o.name||"borderstyle"===o.name?Ke(t,e,r):"fileinput"===o.name?Ye(t,e,n,r):"isDecorative"===o.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Ze=function(t){return function(){t.open=!1}},Qe=function(t){if(t.hasAdvTab||t.hasUploadUrl||t.hasUploadHandler){var e={type:"tabpanel",tabs:V([[_e.makeTab(t)],t.hasAdvTab?[ke.makeTab(t)]:[],t.hasUploadTab&&(t.hasUploadUrl||t.hasUploadHandler)?[Ee.makeTab(t)]:[]])};return e}var n={type:"panel",items:_e.makeItems(t)};return n},tn=function(t){return function(e){var n=Ae(e);return{title:"Insert/Edit Image",size:"normal",body:Qe(e),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:He(e.image),onSubmit:t.onSubmit(e),onChange:Je(t,e,n),onClose:Ze(n)}}},en=function(t){return function(e){return function(n){var r=le(He(e.image),n.getData());t.execCommand("mceUpdateImage",!1,De(r,e.hasAccessibilityOptions)),t.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(t){return function(e){return yt(t,e)?ft(t.documentBaseURI.toAbsolute(e)).then((function(t){return{width:String(t.width),height:String(t.height)}})):X.resolve({width:"",height:""})}},rn=function(t){return function(e,n,r){return t.editorUpload.blobCache.create({blob:e,blobUri:n,name:e.name?e.name.replace(/\.[^\.]+$/,""):null,filename:e.name,base64:r.split(",")[1]})}},on=function(t){return function(e){t.editorUpload.blobCache.add(e)}},an=function(t){return function(e){t.windowManager.alert(e)}},un=function(t){return function(e){return Zt(t,e)}},cn=function(t){return function(e){return t.dom.parseStyle(e)}},sn=function(t){return function(e,n){return t.dom.serializeStyle(e,n)}},ln=function(t){return function(e){return de(t).upload([e],!1).then((function(t){return 0===t.length?X.reject("Failed to upload image"):!1===t[0].status?X.reject(t[0].error.message):t[0]}))}},fn=function(t){var e={onSubmit:en(t),imageSize:nn(t),addToBlobCache:on(t),createBlobCache:rn(t),alertErr:an(t),normalizeCss:un(t),parseStyle:cn(t),serializeStyle:sn(t),uploadImage:ln(t)},n=function(){ze(t).then(tn(e)).then(t.windowManager.open)};return{open:n}},dn=function(t){t.addCommand("mceImage",fn(t).open),t.addCommand("mceUpdateImage",(function(e,n){t.undoManager.transact((function(){return ue(t,n)}))}))},mn=function(t){var e=t.attr("class");return e&&/\bimage\b/.test(e)},hn=function(t){return function(e){var n=e.length,r=function(e){e.attr("contenteditable",t?"true":null)};while(n--){var o=e[n];mn(o)&&(o.attr("contenteditable",t?"false":null),me.each(o.getAll("figcaption"),r))}}},gn=function(t){t.on("PreInit",(function(){t.parser.addNodeFilter("figure",hn(!0)),t.serializer.addNodeFilter("figure",hn(!1))}))},pn=function(t){t.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:fn(t).open,onSetup:function(e){return e.setActive(d(Qt(t))),t.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",e.setActive).unbind}}),t.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:fn(t).open}),t.ui.registry.addContextMenu("image",{update:function(t){return It(t)||Ft(t)&&!bt(t)?["image"]:[]}})};function vn(){t.add("image",(function(t){gn(t),pn(t),dn(t)}))}vn()})()},"4b7e":function(t,e,n){n("934a")},"521b":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=function(){return"undefined"!==typeof window?window:t},o=function(){var t=r();return t&&t.tinymce?t.tinymce:null}}).call(this,n("2409"))},"5c38":function(t,e){tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}})},"5d95":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},n=function(t,e){return-1!==t.indexOf(e)},r=function(t,n){return e(t,n,0)},o=tinymce.util.Tools.resolve("tinymce.Env"),i=function(){return/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-+~=.,%()\/\w]*[-+~=%()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g},a=new RegExp("^"+i().source+"$","i"),u=function(t){return t.getParam("autolink_pattern",a)},c=function(t){return t.getParam("default_link_target",!1)},s=function(t){return t.getParam("link_default_protocol","http","string")},l=function(t){return/^[(\[{ \u00a0]$/.test(t)},f=function(t){return 3===t.nodeType},d=function(t){return 1===t.nodeType},m=function(t){return w(t,-1)},h=function(t){return w(t,0)},g=function(t){return w(t,-1)},p=function(t,e){if(e<0&&(e=0),f(t)){var n=t.data.length;e>n&&(e=n)}return e},v=function(t,e,n){!d(e)||e.hasChildNodes()?t.setStart(e,p(e,n)):t.setStartBefore(e)},b=function(t,e,n){!d(e)||e.hasChildNodes()?t.setEnd(e,p(e,n)):t.setEndAfter(e)},y=function(t){return/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(t)},x=function(t){return/[?!,.;:]/.test(t)},w=function(t,e){var o,i,a,d,m,h,g,p=u(t),w=c(t);if(null===t.dom.getParent(t.selection.getNode(),"a[href]")){var C=t.selection.getRng().cloneRange();if(C.startOffset<5){if(m=C.endContainer.previousSibling,!m){if(!C.endContainer.firstChild||!C.endContainer.firstChild.nextSibling)return;m=C.endContainer.firstChild.nextSibling}if(h=m.length,v(C,m,h),b(C,m,h),C.endOffset<5)return;o=C.endOffset,i=m}else{if(i=C.endContainer,!f(i)&&i.firstChild){while(!f(i)&&i.firstChild)i=i.firstChild;f(i)&&(v(C,i,0),b(C,i,i.nodeValue.length))}o=1===C.endOffset?2:C.endOffset-1-e}var S=o;do{v(C,i,o>=2?o-2:0),b(C,i,o>=1?o-1:0),o-=1,g=C.toString()}while(!l(g)&&o-2>=0);l(C.toString())?(v(C,i,o),b(C,i,S),o+=1):0===C.startOffset?(v(C,i,0),b(C,i,S)):(v(C,i,o),b(C,i,S)),d=C.toString(),x(d.charAt(d.length-1))&&b(C,i,S-1),d=C.toString().trim();var k=d.match(p),z=s(t);if(k){var O=k[0];r(O,"www.")?O=z+"://"+O:n(O,"@")&&!y(O)&&(O="mailto:"+O),a=t.selection.getBookmark(),t.selection.setRng(C),t.execCommand("createlink",!1,O),!1!==w&&t.dom.setAttrib(t.selection.getNode(),"target",w),t.selection.moveToBookmark(a),t.nodeChanged()}}},C=function(t){var e;t.on("keydown",(function(e){if(13===e.keyCode)return g(t)})),o.browser.isIE()?t.on("focus",(function(){if(!e){e=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(n){}}})):(t.on("keypress",(function(e){if(41===e.keyCode||93===e.keyCode||125===e.keyCode)return m(t)})),t.on("keyup",(function(e){if(32===e.keyCode)return h(t)})))};function S(){t.add("autolink",(function(t){C(t)}))}S()})()},6037:function(t,e,n){n("1ed3")},6872:function(t,e,n){!function(e,n){t.exports=n()}("undefined"!=typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(28)("wks"),o=n(29),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(0),o=n(2),i=n(11),a=n(5),u=n(9),c=function(t,e,n){var s,l,f,d=t&c.F,m=t&c.G,h=t&c.S,g=t&c.P,p=t&c.B,v=t&c.W,b=m?o:o[e]||(o[e]={}),y=b.prototype,x=m?r:h?r[e]:(r[e]||{}).prototype;for(s in m&&(n=e),n)(l=!d&&x&&void 0!==x[s])&&u(b,s)||(f=l?x[s]:n[s],b[s]=m&&"function"!=typeof x[s]?n[s]:p&&l?i(f,r):v&&x[s]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):g&&"function"==typeof f?i(Function.call,f):f,g&&((b.virtual||(b.virtual={}))[s]=f,t&c.R&&y&&!y[s]&&a(y,s,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(13),o=n(31);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(3),o=n(50),i=n(51),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(46),o=n(30);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(26),o=n(16);t.exports=function(t){return r(o(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(28)("keys"),o=n(29);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports=!0},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(13).f,o=n(9),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(12);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(43)),o=l(n(32)),i=l(n(79)),a=l(n(86)),u=l(n(87)),c=l(n(88)),s=l(n(89));function l(t){return t&&t.__esModule?t:{default:t}}var f="UN_READY",d="PENDING",m="READY";e.default={name:"VueUeditorWrap",data:function(){return{status:f,defaultConfig:{UEDITOR_HOME_URL:void 0!==t&&t.env.BASE_URL?t.env.BASE_URL+"UEditor/":"/static/UEditor/"}}},props:{mode:{type:String,default:"observer",validator:function(t){return-1!==["observer","listener"].indexOf(t)}},value:{type:String,default:""},config:{type:Object,default:function(){return{}}},init:{type:Function,default:function(){}},destroy:{type:Boolean,default:!0},name:{type:String,default:""},observerDebounceTime:{type:Number,default:50,validator:function(t){return t>=20}},observerOptions:{type:Object,default:function(){return{attributes:!0,attributeFilter:["src","style","type","name"],characterData:!0,childList:!0,subtree:!0}}},forceInit:{type:Boolean,default:!1},editorId:{type:String},editorDependencies:Array,editorDependenciesChecker:Function},computed:{mixedConfig:function(){return(0,i.default)({},this.defaultConfig,this.config)}},methods:{registerButton:function(t){var e=t.name,n=t.icon,r=t.tip,o=t.handler,i=t.index,a=t.UE,u=void 0===a?window.UE:a;u.registerUI(e,(function(t,e){t.registerCommand(e,{execCommand:function(){o(t,e)}});var i=new u.ui.Button({name:e,title:r,cssRules:"background-image: url("+n+") !important;background-size: cover;",onclick:function(){t.execCommand(e)}});return t.addListener("selectionchange",(function(){var n=t.queryCommandState(e);-1===n?(i.setDisabled(!0),i.setChecked(!1)):(i.setDisabled(!1),i.setChecked(n))})),i}),i,this.id)},_initEditor:function(){var t=this;this.$refs.container.id=this.id=this.editorId||"editor_"+(0,s.default)(8),this.init(),this.$emit("before-init",this.id,this.mixedConfig),this.$emit("beforeInit",this.id,this.mixedConfig),this.editor=window.UE.getEditor(this.id,this.mixedConfig),this.editor.addListener("ready",(function(){t.status===m?t.editor.setContent(t.value):(t.status=m,t.$emit("ready",t.editor),t.value&&t.editor.setContent(t.value)),"observer"===t.mode&&window.MutationObserver?t._observerChangeListener():t._normalChangeListener()}))},_loadScript:function(t){return new o.default((function(e,n){if(window.$loadEventBus.on(t,e),!1===window.$loadEventBus.listeners[t].requested){window.$loadEventBus.listeners[t].requested=!0;var r=document.createElement("script");r.src=t,r.onload=function(){window.$loadEventBus.emit(t)},r.onerror=n,document.getElementsByTagName("head")[0].appendChild(r)}}))},_loadCss:function(t){return new o.default((function(e,n){if(window.$loadEventBus.on(t,e),!1===window.$loadEventBus.listeners[t].requested){window.$loadEventBus.listeners[t].requested=!0;var r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=t,r.onload=function(){window.$loadEventBus.emit(t)},r.onerror=n,document.getElementsByTagName("head")[0].appendChild(r)}}))},_loadEditorDependencies:function(){var t=this;window.$loadEventBus||(window.$loadEventBus=new a.default);var e=["ueditor.config.js","ueditor.all.min.js"];return new o.default((function(n,i){if(t.editorDependencies&&t.editorDependenciesChecker&&t.editorDependenciesChecker())n();else if(!t.editorDependencies&&window.UE&&window.UE.getEditor&&window.UEDITOR_CONFIG&&0!==(0,r.default)(window.UEDITOR_CONFIG).length)n();else{var a=(t.editorDependencies||e).reduce((function(e,n){return/^((https?:)?\/\/)?[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)+\//.test(n)||(n=(t.mixedConfig.UEDITOR_HOME_URL||"")+n),".js"===n.slice(-3)?e.jsLinks.push(n):".css"===n.slice(-4)&&e.cssLinks.push(n),e}),{jsLinks:[],cssLinks:[]}),u=a.jsLinks,s=a.cssLinks;o.default.all([o.default.all(s.map((function(e){return t._loadCss(e)}))),(0,c.default)(u.map((function(e){return function(){return t._loadScript(e)}})))]).then((function(){return n()})).catch(i)}}))},_contentChangeHandler:function(){this.innerValue=this.editor.getContent(),this.$emit("input",this.innerValue)},_normalChangeListener:function(){this.editor.addListener("contentChange",this._contentChangeHandler)},_observerChangeListener:function(){var t=this;this.observer=new MutationObserver((0,u.default)((function(){t.editor.document.getElementById("baidu_pastebin")||(t.innerValue=t.editor.getContent(),t.$emit("input",t.innerValue))}),this.observerDebounceTime)),this.observer.observe(this.editor.body,this.observerOptions)}},deactivated:function(){this.editor&&this.editor.removeListener("contentChange",this._contentChangeHandler),this.observer&&this.observer.disconnect()},beforeDestroy:function(){this.destroy&&this.editor&&this.editor.destroy&&this.editor.destroy(),this.observer&&this.observer.disconnect&&this.observer.disconnect()},watch:{value:{handler:function(t){var e=this;this.status===f?(this.status=d,(this.forceInit||"undefined"!=typeof window)&&this._loadEditorDependencies().then((function(){e.$refs.container?e._initEditor():e.$nextTick((function(){return e._initEditor()}))})).catch((function(){throw new Error("[vue-ueditor-wrap] UEditor 资源加载失败!请检查资源是否存在,UEDITOR_HOME_URL 是否配置正确!")}))):this.status===m&&(t===this.innerValue||this.editor.setContent(t||""))},immediate:!0}}}}).call(e,n(42))},function(t,e,n){var r=n(10);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(2),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(21)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){t.exports={default:n(52),__esModule:!0}},function(t,e,n){"use strict";var r=n(21),o=n(4),i=n(56),a=n(5),u=n(8),c=n(57),s=n(23),l=n(60),f=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),m=function(){return this};t.exports=function(t,e,n,h,g,p,v){c(n,e,h);var b,y,x,w=function(t){if(!d&&t in z)return z[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",S="values"==g,k=!1,z=t.prototype,O=z[f]||z["@@iterator"]||g&&z[g],M=O||w(g),_=g?S?w("entries"):M:void 0,T="Array"==e&&z.entries||O;if(T&&(x=l(T.call(new t)))!==Object.prototype&&x.next&&(s(x,C,!0),r||"function"==typeof x[f]||a(x,f,m)),S&&O&&"values"!==O.name&&(k=!0,M=function(){return O.call(this)}),r&&!v||!d&&!k&&z[f]||a(z,f,M),u[e]=M,u[C]=m,g)if(b={values:S?M:w("values"),keys:p?M:w("keys"),entries:_},v)for(y in b)y in z||i(z,y,b[y]);else o(o.P+o.F*(d||k),e,b);return b}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(10),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(3),o=n(12),i=n(1)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(11),u=n(71),c=n(34),s=n(22),l=n(0),f=l.process,d=l.setImmediate,m=l.clearImmediate,h=l.MessageChannel,g=l.Dispatch,p=0,v={},b=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){b.call(t.data)};d&&m||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++p]=function(){u("function"==typeof t?t:Function(t),e)},r(p),p},m=function(t){delete v[t]},"process"==n(10)(f)?r=function(t){f.nextTick(a(b,t,1))}:g&&g.now?r=function(t){g.now(a(b,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=y,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:d,clear:m}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(3),o=n(7),i=n(24);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(25),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);var a=n(90),u=n(41)(o.a,a.a,!1,null,null,null);u.options.__file="src/components/vue-ueditor-wrap.vue",e.default=u.exports},function(t,e){t.exports=function(t,e,n,r,o,i){var a,u=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,u=t.default);var s,l="function"==typeof u?u.options:u;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId=o),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):r&&(s=r),s){var f=l.functional,d=f?l.render:l.beforeCreate;f?(l._injectStyles=s,l.render=function(t,e){return s.call(e),d(t,e)}):l.beforeCreate=d?[].concat(d,s):[s]}return{esModule:a,exports:u,options:l}}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,s=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&m())}function m(){if(!l){var t=u(d);l=!0;for(var e=s.length;e;){for(c=s,s=[];++f<e;)c&&c[f].run();f=-1,e=s.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function g(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new h(t,e)),1!==s.length||l||u(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){t.exports={default:n(44),__esModule:!0}},function(t,e,n){n(45),t.exports=n(2).Object.keys},function(t,e,n){var r=n(15),o=n(17);n(49)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(9),o=n(18),i=n(47)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(18),o=n(27),i=n(48);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),l=i(a,s);if(t&&n!=n){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(19),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(4),o=n(2),i=n(14);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(t,e,n){t.exports=!n(6)&&!n(14)((function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){n(53),n(54),n(61),n(65),n(77),n(78),t.exports=n(2).Promise},function(t,e){},function(t,e,n){"use strict";var r=n(55)(!0);n(33)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(19),o=n(16);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){t.exports=n(5)},function(t,e,n){"use strict";var r=n(58),o=n(31),i=n(23),a={};n(5)(a,n(1)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(59),i=n(30),a=n(20)("IE_PROTO"),u=function(){},c=function(){var t,e=n(22)("iframe"),r=i.length;for(e.style.display="none",n(34).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(13),o=n(3),i=n(17);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(9),o=n(15),i=n(20)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){n(62);for(var r=n(0),o=n(5),i=n(8),a=n(1)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],l=r[s],f=l&&l.prototype;f&&!f[a]&&o(f,a,s),i[s]=i.Array}},function(t,e,n){"use strict";var r=n(63),o=n(64),i=n(8),a=n(18);t.exports=n(33)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,o,i,a,u=n(21),c=n(0),s=n(11),l=n(35),f=n(4),d=n(7),m=n(12),h=n(66),g=n(67),p=n(36),v=n(37).set,b=n(72)(),y=n(24),x=n(38),w=n(73),C=n(39),S=c.TypeError,k=c.process,z=k&&k.versions,O=z&&z.v8||"",M=c.Promise,_="process"==l(k),T=function(){},E=o=y.f,A=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(T,T)};return(_||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),H=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var n=t._c;b((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,l=e.domain;try{u?(o||(2==t._h&&R(t),t._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?s(S("Promise-chain cycle")):(i=H(n))?i.call(n,c,s):c(n)):s(r)}catch(t){l&&!a&&l.exit(),s(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&V(t)}))}},V=function(t){v.call(c,(function(){var e,n,r,o=t._v,i=B(t);if(i&&(e=x((function(){_?k.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=_||B(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){v.call(c,(function(){var e;_?k.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},P=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=H(t))?b((function(){var r={_w:n,_d:!1};try{e.call(t,s(L,r,1),s(P,r,1))}catch(t){P.call(r,t)}})):(n._v=t,n._s=1,D(n,!1))}catch(t){P.call({_w:n,_d:!1},t)}}};A||(M=function(t){h(this,M,"Promise","_h"),m(t),r.call(this);try{t(s(L,this,1),s(P,this,1))}catch(t){P.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(74)(M.prototype,{then:function(t,e){var n=E(p(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=_?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(L,t,1),this.reject=s(P,t,1)},y.f=E=function(t){return t===M||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!A,{Promise:M}),n(23)(M,"Promise"),n(75)("Promise"),a=n(2).Promise,f(f.S+f.F*!A,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(u||!A),"Promise",{resolve:function(t){return C(u&&this===a?M:this,t)}}),f(f.S+f.F*!(A&&n(76)((function(t){M.all(t).catch(T)}))),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,o=n.reject,i=x((function(){var n=[],i=0,a=1;g(t,!1,(function(t){var u=i++,c=!1;n.push(void 0),a++,e.resolve(t).then((function(t){c||(c=!0,n[u]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,o=x((function(){g(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11),o=n(68),i=n(69),a=n(3),u=n(27),c=n(70),s={},l={};(e=t.exports=function(t,e,n,f,d){var m,h,g,p,v=d?function(){return t}:c(t),b=r(n,f,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(i(v)){for(m=u(t.length);m>y;y++)if((p=e?b(a(h=t[y])[0],h[1]):b(t[y]))===s||p===l)return p}else for(g=v.call(t);!(h=g.next()).done;)if((p=o(g,b,h.value,e))===s||p===l)return p}).BREAK=s,e.RETURN=l},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(8),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(35),o=n(1)("iterator"),i=n(8);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(0),o=n(37).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(10)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(s)}}else n=function(){o.call(r,s)};else{var f=!0,d=document.createTextNode("");new i(s).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){var r=n(0).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(5);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(13),a=n(6),u=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(0),a=n(36),u=n(39);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var r=n(4),o=n(24),i=n(38);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(80),i=(r=o)&&r.__esModule?r:{default:r};e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(81),__esModule:!0}},function(t,e,n){n(82),t.exports=n(2).Object.assign},function(t,e,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(83)})},function(t,e,n){"use strict";var r=n(6),o=n(17),i=n(84),a=n(85),u=n(15),c=n(26),s=Object.assign;t.exports=!s||n(14)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=u(t),s=arguments.length,l=1,f=i.f,d=a.f;s>l;)for(var m,h=c(arguments[l++]),g=f?o(h).concat(f(h)):o(h),p=g.length,v=0;p>v;)m=g[v++],r&&!d.call(h,m)||(n[m]=h[m]);return n}:s},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){this.listeners={},this.on=function(t,e){void 0===this.listeners[t]&&(this.listeners[t]={triggered:!1,requested:!1,cbs:[]}),this.listeners[t].triggered&&e(),this.listeners[t].cbs.push(e)},this.emit=function(t){this.listeners[t]&&(this.listeners[t].triggered=!0,this.listeners[t].cbs.forEach((function(t){return t()})))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=null;return function(){var r=this,o=arguments;n&&clearTimeout(n),n=setTimeout((function(){t.apply(r,o)}),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(32),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){return t.reduce((function(t,e){return t.then(e)}),i.default.resolve())}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e="abcdefghijklmnopqrstuvwxyz",n="",r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}},function(t,e,n){"use strict";var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{ref:"container",attrs:{name:this.name}})])};r._withStripped=!0;var o={render:r,staticRenderFns:[]};e.a=o}]).default}))},8155:function(t,e){(function(){"use strict";var t=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(t){return!!t.hasPlugin("powerpaste",!0)&&("undefined"!==typeof window.console&&window.console.log&&window.console.log("PowerPaste is incompatible with Paste plugin! Remove 'paste' from the 'plugins' option."),!0)},r=function(t){return{clipboard:t}},o=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},i=function(t){return function(e){return o(e)===t}},a=function(t){return function(e){return typeof e===t}},u=i("array"),c=function(t){return null===t||void 0===t},s=function(t){return!c(t)},l=a("function"),f=function(){},d=function(t){return function(){return t}},m=function(t){return t},h=d(!1),g=d(!0),p=function(){return v},v=function(){var t=function(t){return t()},e=m,n={fold:function(t,e){return t()},isSome:h,isNone:g,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:e,orThunk:t,map:p,each:f,bind:p,exists:h,forall:g,filter:function(){return p()},toArray:function(){return[]},toString:d("none()")};return n}(),b=function(t){var e=d(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:g,isNone:h,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return b(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:v},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},y=function(t){return null===t||void 0===t?v:b(t)},x={some:b,none:p,from:y},w=Array.prototype.slice,C=Array.prototype.push,S=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n))return!0}return!1},k=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},z=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},O=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},M=function(t,e,n){return z(t,(function(t,r){n=e(n,t,r)})),n},_=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!u(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);C.apply(e,t[n])}return e},T=function(t,e){return _(k(t,e))},E=l(Array.from)?Array.from:function(t){return w.call(t)},A=function(){return A=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},A.apply(this,arguments)},H=function(e){var n=t(x.none()),r=function(){return n.get().each(e)},o=function(){r(),n.set(x.none())},i=function(){return n.get().isSome()},a=function(){return n.get()},u=function(t){r(),n.set(x.some(t))};return{clear:o,isSet:i,get:a,set:u}},D=function(){var t=H(f),e=function(e){return t.get().each(e)};return A(A({},t),{on:e})},V=function(t,e,n){return""===e||t.length>=e.length&&t.substr(n,n+e.length)===e},B=function(t,e){return V(t,e,0)},R=function(t,e){return V(t,e,t.length-e.length)},P=function(t,e){return e<=0?"":new Array(e+1).join(t)},L=tinymce.util.Tools.resolve("tinymce.Env"),I=tinymce.util.Tools.resolve("tinymce.util.Delay"),F=tinymce.util.Tools.resolve("tinymce.util.Promise"),N=tinymce.util.Tools.resolve("tinymce.util.VK"),j=function(t,e,n,r){return t.fire("PastePreProcess",{content:e,internal:n,wordContent:r})},U=function(t,e,n,r){return t.fire("PastePostProcess",{node:e,internal:n,wordContent:r})},W=function(t,e){return t.fire("PastePlainTextToggle",{state:e})},G=function(t,e){return t.fire("paste",{ieFake:e})},q=tinymce.util.Tools.resolve("tinymce.util.Tools"),$=function(t){return t.getParam("paste_block_drop",!1)},X=function(t){return t.getParam("paste_data_images",!1)},K=function(t){return t.getParam("paste_filter_drop",!0)},Y=function(t){return t.getParam("paste_preprocess")},J=function(t){return t.getParam("paste_postprocess")},Z=function(t){return t.getParam("paste_webkit_styles")},Q=function(t){return t.getParam("paste_remove_styles_if_webkit",!0)},tt=function(t){return t.getParam("paste_merge_formats",!0)},et=function(t){return t.getParam("smart_paste",!0)},nt=function(t){return t.getParam("paste_as_text",!1)},rt=function(t){return t.getParam("paste_retain_style_properties")},ot=function(t){var e="-strong/b,-em/i,-u,-span,-p,-ol,-ul,-li,-h1,-h2,-h3,-h4,-h5,-h6,-p/div,-a[href|name],sub,sup,strike,br,del,table[width],tr,td[colspan|rowspan|width],th[colspan|rowspan|width],thead,tfoot,tbody";return t.getParam("paste_word_valid_elements",e)},it=function(t){return t.getParam("paste_convert_word_fake_lists",!0)},at=function(t){return t.getParam("paste_enable_default_filters",!0)},ut=function(t){return t.getParam("validate")},ct=function(t){return t.getParam("allow_html_data_urls",!1,"boolean")},st=function(t){return t.getParam("paste_data_images",!1,"boolean")},lt=function(t){return t.getParam("images_dataimg_filter")},ft=function(t){return t.getParam("images_reuse_filename")},dt=function(t){return t.getParam("forced_root_block")},mt=function(t){return t.getParam("forced_root_block_attrs")},ht=function(t){return t.getParam("paste_tab_spaces",4,"number")},gt=function(t){var e="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp";return q.explode(t.getParam("images_file_types",e,"string"))},pt="x-tinymce/html",vt="\x3c!-- "+pt+" --\x3e",bt=function(t){return vt+t},yt=function(t){return t.replace(vt,"")},xt=function(t){return-1!==t.indexOf(vt)},wt=d(pt),Ct=Object.hasOwnProperty,St=function(t,e){return Ct.call(t,e)},kt=tinymce.util.Tools.resolve("tinymce.html.Entities"),zt=function(t){return!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(t)},Ot=function(t){return t.replace(/\r?\n/g,"<br>")},Mt=function(t,e){var n=[],r="<"+t;if("object"===typeof e){for(var o in e)St(e,o)&&n.push(o+'="'+kt.encodeAllRaw(e[o])+'"');n.length&&(r+=" "+n.join(" "))}return r+">"},_t=function(t,e,n){var r=t.split(/\n\n/),o=Mt(e,n),i="</"+e+">",a=q.map(r,(function(t){return t.split(/\n/).join("<br />")})),u=function(t){return o+t+i};return 1===a.length?a[0]:q.map(a,u).join("")},Tt=function(t,e,n){return e?_t(t,!0===e?"p":e,n):Ot(t)},Et=tinymce.util.Tools.resolve("tinymce.html.DomParser"),At=tinymce.util.Tools.resolve("tinymce.html.Serializer"),Ht=" ",Dt=tinymce.util.Tools.resolve("tinymce.html.Node"),Vt=tinymce.util.Tools.resolve("tinymce.html.Schema"),Bt=function(t){return t.constructor===RegExp},Rt=function(t,e){return q.each(e,(function(e){t=Bt(e)?t.replace(e,""):t.replace(e[0],e[1])})),t},Pt=function(t){var e=Vt(),n=Et({},e),r="",o=e.getShortEndedElements(),i=q.makeMap("script noscript style textarea video audio iframe object"," "),a=e.getBlockElements(),u=function(t){var e=t.name,n=t;if("br"!==e){if("wbr"!==e)if(o[e]&&(r+=" "),i[e])r+=" ";else{if(3===t.type&&(r+=t.value),!t.shortEnded&&(t=t.firstChild))do{u(t)}while(t=t.next);a[e]&&n.next&&(r+="\n","p"===e&&(r+="\n"))}}else r+="\n"};return t=Rt(t,[/<!\[[^\]]+\]>/g]),u(n.parse(t)),r},Lt=function(t){var e=function(t,e,n){return e||n?Ht:" "};return t=Rt(t,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,e],/<br class="Apple-interchange-newline">/g,/<br>$/i]),t},It=function(t){var e=0;return function(){return t+e++}},Ft=function(t){var e=t.toLowerCase(),n={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return q.hasOwn(n,e)?"image/"+n[e]:"image/"+e},Nt=function(t){return/<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(t)||/class="OutlineElement/.test(t)||/id="?docs\-internal\-guid\-/.test(t)},jt=function(t){var e=!1,n=[/^[IVXLMCD]+\.[ \u00a0]/,/^[ivxlmcd]+\.[ \u00a0]/,/^[a-z]{1,2}[\.\)][ \u00a0]/,/^[A-Z]{1,2}[\.\)][ \u00a0]/,/^[0-9]+\.[ \u00a0]/,/^[\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]+\.[ \u00a0]/,/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/];return t=t.replace(/^[\u00a0 ]+/,""),q.each(n,(function(n){if(n.test(t))return e=!0,!1})),e},Ut=function(t){return/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25CF]\s*/.test(t)},Wt=function(t){var e,n,r=1,o=function(t){var e="";if(3===t.type)return t.value;if(t=t.firstChild)do{e+=o(t)}while(t=t.next);return e},i=function(t,e){if(3===t.type&&e.test(t.value))return t.value=t.value.replace(e,""),!1;if(t=t.firstChild)do{if(!i(t,e))return!1}while(t=t.next);return!0},a=function(t){if(t._listIgnore)t.remove();else if(t=t.firstChild)do{a(t)}while(t=t.next)},u=function(t,o,u){var c=t._listLevel||r;c!==r&&(c<r?e&&(e=e.parent.parent):(n=e,e=null)),e&&e.name===o?e.append(t):(n=n||e,e=new Dt(o,1),u>1&&e.attr("start",""+u),t.wrap(e)),t.name="li",c>r&&n&&n.lastChild.append(e),r=c,a(t),i(t,/^\u00a0+/),i(t,/^\s*([\u2022\u00b7\u00a7\u25CF]|\w+\.)/),i(t,/^\u00a0+/)},c=[],s=t.firstChild;while("undefined"!==typeof s&&null!==s)if(c.push(s),s=s.walk(),null!==s)while("undefined"!==typeof s&&s.parent!==t)s=s.walk();for(var l=0;l<c.length;l++)if(t=c[l],"p"===t.name&&t.firstChild){var f=o(t);if(Ut(f)){u(t,"ul");continue}if(jt(f)){var d=/([0-9]+)\./.exec(f),m=1;d&&(m=parseInt(d[1],10)),u(t,"ol",m);continue}if(t._listLevel){u(t,"ul",1);continue}e=null}else n=e,e=null},Gt=function(t,e,n,r){var o={},i=t.dom.parseStyle(r);q.each(i,(function(i,a){switch(a){case"mso-list":var u=/\w+ \w+([0-9]+)/i.exec(r);u&&(n._listLevel=parseInt(u[1],10)),/Ignore/i.test(i)&&n.firstChild&&(n._listIgnore=!0,n.firstChild._listIgnore=!0);break;case"horiz-align":a="text-align";break;case"vert-align":a="vertical-align";break;case"font-color":case"mso-foreground":a="color";break;case"mso-background":case"mso-highlight":a="background";break;case"font-weight":case"font-style":return void("normal"!==i&&(o[a]=i));case"mso-element":if(/^(comment|comment-list)$/i.test(i))return void n.remove();break}0!==a.indexOf("mso-comment")?0!==a.indexOf("mso-")&&("all"===rt(t)||e&&e[a])&&(o[a]=i):n.remove()})),/(bold)/i.test(o["font-weight"])&&(delete o["font-weight"],n.wrap(new Dt("b",1))),/(italic)/i.test(o["font-style"])&&(delete o["font-style"],n.wrap(new Dt("i",1)));var a=t.dom.serializeStyle(o,n.name);return a||null},qt=function(t,e){var n,r=rt(t);r&&(n=q.makeMap(r.split(/[, ]/))),e=Rt(e,[/<br class="?Apple-interchange-newline"?>/gi,/<b[^>]+id="?docs-internal-[^>]*>/gi,/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,Ht],[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(t,e){return e.length>0?e.replace(/./," ").slice(Math.floor(e.length/2)).split("").join(Ht):""}]]);var o=ot(t),i=Vt({valid_elements:o,valid_children:"-li[p]"});q.each(i.elements,(function(t){t.attributes.class||(t.attributes.class={},t.attributesOrder.push("class")),t.attributes.style||(t.attributes.style={},t.attributesOrder.push("style"))}));var a=Et({},i);a.addAttributeFilter("style",(function(e){var r,o=e.length;while(o--)r=e[o],r.attr("style",Gt(t,n,r,r.attr("style"))),"span"===r.name&&r.parent&&!r.attributes.length&&r.unwrap()})),a.addAttributeFilter("class",(function(t){var e,n,r=t.length;while(r--)e=t[r],n=e.attr("class"),/^(MsoCommentReference|MsoCommentText|msoDel)$/i.test(n)&&e.remove(),e.attr("class",null)})),a.addNodeFilter("del",(function(t){var e=t.length;while(e--)t[e].remove()})),a.addNodeFilter("a",(function(t){var e,n,r,o=t.length;while(o--)if(e=t[o],n=e.attr("href"),r=e.attr("name"),n&&-1!==n.indexOf("#_msocom_"))e.remove();else if(n&&0===n.indexOf("file://")&&(n=n.split("#")[1],n&&(n="#"+n)),n||r){if(r&&!/^_?(?:toc|edn|ftn)/i.test(r)){e.unwrap();continue}e.attr({href:n,name:r})}else e.unwrap()}));var u=a.parse(e);return it(t)&&Wt(u),e=At({validate:ut(t)},i).serialize(u),e},$t=function(t,e){return at(t)?qt(t,e):e},Xt=function(t,e){var n=Et({},t.schema);n.addNodeFilter("meta",(function(t){q.each(t,(function(t){t.remove()}))}));var r=n.parse(e,{forced_root_block:!1,isRootContent:!0});return At({validate:ut(t)},t.schema).serialize(r)},Kt=function(t,e){return{content:t,cancelled:e}},Yt=function(t,e,n,r){var o=t.dom.create("div",{style:"display:none"},e),i=U(t,o,n,r);return Kt(i.node.innerHTML,i.isDefaultPrevented())},Jt=function(t,e,n,r){var o=j(t,e,n,r),i=Xt(t,o.content);return t.hasEventListeners("PastePostProcess")&&!o.isDefaultPrevented()?Yt(t,i,n,r):Kt(i,o.isDefaultPrevented())},Zt=function(t,e,n){var r=Nt(e),o=r?$t(t,e):e;return Jt(t,o,n,r)},Qt=function(t,e){return t.insertContent(e,{merge:tt(t),paste:!0}),!0},te=function(t){return/^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(t)},ee=function(t,e){return te(e)&&S(gt(t),(function(t){return R(e.toLowerCase(),"."+t.toLowerCase())}))},ne=function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.insertContent('<img src="'+e+'">')})),!0},re=function(t,e,n){return t.undoManager.extra((function(){n(t,e)}),(function(){t.execCommand("mceInsertLink",!1,e)})),!0},oe=function(t,e,n){return!(!1!==t.selection.isCollapsed()||!te(e))&&re(t,e,n)},ie=function(t,e,n){return!!ee(t,e)&&ne(t,e,n)},ae=function(t,e){q.each([oe,ie,Qt],(function(n){return!0!==n(t,e,Qt)}))},ue=function(t,e,n){n||!1===et(t)?Qt(t,e):ae(t,e)},ce=function(t){return-1!==" \f\t\v".indexOf(t)},se=function(t){return"\n"===t||"\r"===t},le=function(t,e){return e<t.length&&e>=0&&se(t[e])},fe=function(t,e){var n=P(" ",ht(t)),r=e.replace(/\t/g,n),o=M(r,(function(t,e){return ce(e)||e===Ht?t.pcIsSpace||""===t.str||t.str.length===r.length-1||le(r,t.str.length+1)?{pcIsSpace:!1,str:t.str+Ht}:{pcIsSpace:!0,str:t.str+" "}:{pcIsSpace:se(e),str:t.str+e}}),{pcIsSpace:!1,str:""});return o.str},de=function(t,e,n,r){var o=Zt(t,e,n);!1===o.cancelled&&ue(t,o.content,r)},me=function(t,e,n){var r=n||xt(e);de(t,yt(e),r,!1)},he=function(t,e){var n=t.dom.encode(e).replace(/\r\n/g,"\n"),r=fe(t,n),o=Tt(r,dt(t),mt(t));de(t,o,!1,!0)},ge=function(t){var e={},n="data:text/mce-internal,";if(t){if(t.getData){var r=t.getData("Text");r&&r.length>0&&-1===r.indexOf(n)&&(e["text/plain"]=r)}if(t.types)for(var o=0;o<t.types.length;o++){var i=t.types[o];try{e[i]=t.getData(i)}catch(a){e[i]=""}}}return e},pe=function(t,e){return ge(e.clipboardData||t.getDoc().dataTransfer)},ve=function(t,e){return e in t&&t[e].length>0},be=function(t){return ve(t,"text/html")||ve(t,"text/plain")},ye=function(t){var e=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(t);return e?{type:e[1],data:decodeURIComponent(e[2])}:{type:null,data:null}},xe=function(t,e){var n=lt(t);return!n||n(e)},we=function(t,e){var n=e.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return s(n)?t.dom.encode(n[1]):null},Ce=It("mceclip"),Se=function(t,e){var n=ye(e.uri),r=n.data,o=n.type,i=Ce(),a=e.blob,u=new Image;if(u.src=e.uri,xe(t,u)){var c=t.editorUpload.blobCache,l=void 0,f=c.getByData(r,o);if(f)l=f;else{var d=ft(t)&&s(a.name),m=d?we(t,a.name):i,h=d?a.name:void 0;l=c.create(i,a,r,m,h),c.add(l)}me(t,'<img src="'+l.blobUri()+'">',!1)}else me(t,'<img src="'+e.uri+'">',!1)},ke=function(t){return"paste"===t.type},ze=function(t){return s(t.getAsFile)},Oe=function(t){return F.all(k(t,(function(t){return new F((function(e){var n=ze(t)?t.getAsFile():t,r=new window.FileReader;r.onload=function(){e({blob:n,uri:r.result})},r.readAsDataURL(n)}))})))},Me=function(t){var e=gt(t);return function(t){return B(t.type,"image/")&&S(e,(function(e){return Ft(e)===t.type}))}},_e=function(t,e){var n=e.items?T(E(e.items),(function(t){return"file"===t.kind?[t.getAsFile()]:[]})):[],r=e.files?E(e.files):[];return O(n.length>0?n:r,Me(t))},Te=function(t,e,n){var r=ke(e)?e.clipboardData:e.dataTransfer;if(st(t)&&r){var o=_e(t,r);if(o.length>0)return e.preventDefault(),Oe(o).then((function(e){n&&t.selection.setRng(n),z(e,(function(e){Se(t,e)}))})),!0}return!1},Ee=function(t){var e=t.clipboardData;return-1!==navigator.userAgent.indexOf("Android")&&e&&e.items&&0===e.items.length},Ae=function(t){return N.metaKeyPressed(t)&&86===t.keyCode||t.shiftKey&&45===t.keyCode},He=function(t,e,n){var r,o=D(),i=D();t.on("keyup",i.clear),t.on("keydown",(function(n){var a=function(t){Ae(t)&&!t.isDefaultPrevented()&&e.remove()};if(Ae(n)&&!n.isDefaultPrevented()){if(r=n.shiftKey&&86===n.keyCode,r&&L.webkit&&-1!==navigator.userAgent.indexOf("Version/"))return;if(n.stopImmediatePropagation(),o.set(n),i.set(!0),L.ie&&r)return n.preventDefault(),void G(t,!0);e.remove(),e.create(),t.once("keyup",a),t.once("paste",(function(){t.off("keyup",a)}))}}));var a=function(t,n,r,o,i){var a;ve(n,"text/html")?a=n["text/html"]:(a=e.getHtml(),i=i||xt(a),e.isDefaultContent(a)&&(o=!0)),a=Lt(a),e.remove();var u=!1===i&&zt(a),c=te(a);(!a.length||u&&!c)&&(o=!0),(o||c)&&(a=ve(n,"text/plain")&&u?n["text/plain"]:Pt(a)),e.isDefaultContent(a)?r||t.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents."):o?he(t,a):me(t,a,i)},u=function(){return e.getLastRng()||t.selection.getRng()};t.on("paste",(function(c){var s=o.isSet()||i.isSet();s&&o.clear();var l=pe(t,c),f="text"===n.get()||r,d=ve(l,wt());r=!1,c.isDefaultPrevented()||Ee(c)?e.remove():be(l)||!Te(t,c,u())?(s||c.preventDefault(),!L.ie||s&&!c.ieFake||ve(l,"text/html")||(e.create(),t.dom.bind(e.getEl(),"paste",(function(t){t.stopPropagation()})),t.getDoc().execCommand("Paste",!1,null),l["text/html"]=e.getHtml()),ve(l,"text/html")?(c.preventDefault(),d||(d=xt(l["text/html"])),a(t,l,s,f,d)):I.setEditorTimeout(t,(function(){a(t,l,s,f,d)}),0)):e.remove()}))},De=function(t,e,n){var r;He(t,e,n),t.parser.addNodeFilter("img",(function(e,n,o){var i=function(t){return t.data&&!0===t.data.paste},a=function(t){t.attr("data-mce-object")||r===L.transparentSrc||t.remove()},u=function(t){return 0===t.indexOf("webkit-fake-url")},c=function(t){return 0===t.indexOf("data:")};if(!st(t)&&i(o)){var s=e.length;while(s--)r=e[s].attr("src"),r&&(u(r)||!ct(t)&&c(r))&&a(e[s])}}))},Ve=function(t){return L.ie&&t.inline?document.body:t.getBody()},Be=function(t){return Ve(t)!==t.getBody()},Re=function(t,e,n){Be(t)&&t.dom.bind(e,"paste keyup",(function(e){Ue(t,n)||t.fire("paste")}))},Pe=function(t,e,n){var r=t.dom,o=t.getBody();e.set(t.selection.getRng());var i=t.dom.add(Ve(t),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},n);(L.ie||L.gecko)&&r.setStyle(i,"left","rtl"===r.getStyle(o,"direction",!0)?65535:-65535),r.bind(i,"beforedeactivate focusin focusout",(function(t){t.stopPropagation()})),Re(t,i,n),i.focus(),t.selection.select(i,!0)},Le=function(t,e){if(Ie(t)){var n=void 0,r=e.get();while(n=t.dom.get("mcepastebin"))t.dom.remove(n),t.dom.unbind(n);r&&t.selection.setRng(r)}e.set(null)},Ie=function(t){return t.dom.get("mcepastebin")},Fe=function(t){var e=function(e,n){e.appendChild(n),t.dom.remove(n,!0)},n=q.grep(Ve(t).childNodes,(function(t){return"mcepastebin"===t.id})),r=n.shift();q.each(n,(function(t){e(r,t)}));for(var o=t.dom.select("div[id=mcepastebin]",r),i=o.length-1;i>=0;i--){var a=t.dom.create("div");r.insertBefore(a,o[i]),e(a,o[i])}return r?r.innerHTML:""},Ne=function(t,e){return e===t},je=function(t){return t&&"mcepastebin"===t.id},Ue=function(t,e){var n=Ie(t);return je(n)&&Ne(e,n.innerHTML)},We=function(e){var n=t(null),r="%MCEPASTEBIN%";return{create:function(){return Pe(e,n,r)},remove:function(){return Le(e,n)},getEl:function(){return Ie(e)},getHtml:function(){return Fe(e)},getLastRng:n.get,isDefault:function(){return Ue(e,r)},isDefaultContent:function(t){return Ne(r,t)}}},Ge=function(t,e){var n=We(t);return t.on("PreInit",(function(){return De(t,n,e)})),{pasteFormat:e,pasteHtml:function(e,n){return me(t,e,n)},pasteText:function(e){return he(t,e)},pasteImageData:function(e,n){return Te(t,e,n)},getDataTransferItems:ge,hasHtmlOrText:be,hasContentType:ve}},qe=function(t,e){"text"===e.pasteFormat.get()?(e.pasteFormat.set("html"),W(t,!1)):(e.pasteFormat.set("text"),W(t,!0)),t.focus()},$e=function(t,e){t.addCommand("mceTogglePlainTextPaste",(function(){qe(t,e)})),t.addCommand("mceInsertClipboardContent",(function(t,n){n.content&&e.pasteHtml(n.content,n.internal),n.text&&e.pasteText(n.text)}))},Xe=function(t){return!1===L.iOS&&"function"===typeof(null===t||void 0===t?void 0:t.setData)},Ke=function(t,e,n){if(!Xe(t))return!1;try{return t.clearData(),t.setData("text/html",e),t.setData("text/plain",n),t.setData(wt(),e),!0}catch(r){return!1}},Ye=function(t,e,n,r){Ke(t.clipboardData,e.html,e.text)?(t.preventDefault(),r()):n(e.html,r)},Je=function(t){return function(e,n){var r=bt(e),o=t.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=t.dom.create("div",{contenteditable:"true"},r);t.dom.setStyles(o,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),o.appendChild(i),t.dom.add(t.getBody(),o);var a=t.selection.getRng();i.focus();var u=t.dom.createRng();u.selectNodeContents(i),t.selection.setRng(u),I.setTimeout((function(){t.selection.setRng(a),o.parentNode.removeChild(o),n()}),0)}},Ze=function(t){return{html:t.selection.getContent({contextual:!0}),text:t.selection.getContent({format:"text"})}},Qe=function(t){return!!t.dom.getParent(t.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",t.getBody())},tn=function(t){return!t.selection.isCollapsed()||Qe(t)},en=function(t){return function(e){tn(t)&&Ye(e,Ze(t),Je(t),(function(){if(L.browser.isChrome()||L.browser.isFirefox()){var e=t.selection.getRng();I.setEditorTimeout(t,(function(){t.selection.setRng(e),t.execCommand("Delete")}),0)}else t.execCommand("Delete")}))}},nn=function(t){return function(e){tn(t)&&Ye(e,Ze(t),Je(t),f)}},rn=function(t){t.on("cut",en(t)),t.on("copy",nn(t))},on=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),an=function(t,e){return on.getCaretRangeFromPoint(e.clientX,e.clientY,t.getDoc())},un=function(t){var e=t["text/plain"];return!!e&&0===e.indexOf("file://")},cn=function(t,e){t.focus(),t.selection.setRng(e)},sn=function(t,e,n){$(t)&&t.on("dragend dragover draggesture dragdrop drop drag",(function(t){t.preventDefault(),t.stopPropagation()})),X(t)||t.on("drop",(function(t){var e=t.dataTransfer;e&&e.files&&e.files.length>0&&t.preventDefault()})),t.on("drop",(function(r){var o=an(t,r);if(!r.isDefaultPrevented()&&!n.get()){var i=e.getDataTransferItems(r.dataTransfer),a=e.hasContentType(i,wt());if((e.hasHtmlOrText(i)&&!un(i)||!e.pasteImageData(r,o))&&o&&K(t)){var u=i["mce-internal"]||i["text/html"]||i["text/plain"];u&&(r.preventDefault(),I.setEditorTimeout(t,(function(){t.undoManager.transact((function(){i["mce-internal"]&&t.execCommand("Delete"),cn(t,o),u=Lt(u),i["text/html"]?e.pasteHtml(u,a):e.pasteText(u)}))})))}}})),t.on("dragstart",(function(t){n.set(!0)})),t.on("dragover dragend",(function(e){X(t)&&!1===n.get()&&(e.preventDefault(),cn(t,an(t,e))),"dragend"===e.type&&n.set(!1)}))},ln=function(t){var e=t.plugins.paste,n=Y(t);n&&t.on("PastePreProcess",(function(t){n.call(e,e,t)}));var r=J(t);r&&t.on("PastePostProcess",(function(t){r.call(e,e,t)}))},fn=function(t,e){t.on("PastePreProcess",(function(n){n.content=e(t,n.content,n.internal,n.wordContent)}))},dn=function(t,e){t.on("PastePostProcess",(function(n){e(t,n.node)}))},mn=function(t,e){if(!Nt(e))return e;var n=[];q.each(t.schema.getBlockElements(),(function(t,e){n.push(e)}));var r=new RegExp("(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?("+n.join("|")+")[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*","g");return e=Rt(e,[[r,"$1"]]),e=Rt(e,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),e},hn=function(t,e,n,r){if(r||n)return e;var o,i=Z(t);if(!1===Q(t)||"all"===i)return e;if(i&&(o=i.split(/[, ]/)),o){var a=t.dom,u=t.selection.getNode();e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(function(t,e,n,r){var i=a.parseStyle(a.decode(n)),c={};if("none"===o)return e+r;for(var s=0;s<o.length;s++){var l=i[o[s]],f=a.getStyle(u,o[s],!0);/color/.test(o[s])&&(l=a.toHex(l),f=a.toHex(f)),f!==l&&(c[o[s]]=l)}var d=a.serializeStyle(c,"span");return d?e+' style="'+d+'"'+r:e+r}))}else e=e.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return e=e.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(function(t,e,n,r){return e+' style="'+n+'"'+r})),e},gn=function(t,e){t.$("a",e).find("font,u").each((function(e,n){t.dom.remove(n,!0)}))},pn=function(t){L.webkit&&fn(t,hn),L.ie&&(fn(t,mn),dn(t,gn))},vn=function(t,e){return function(n){n.setActive("text"===e.pasteFormat.get());var r=function(t){return n.setActive(t.state)};return t.on("PastePlainTextToggle",r),function(){return t.off("PastePlainTextToggle",r)}}},bn=function(t,e){var n=function(){return t.execCommand("mceTogglePlainTextPaste")};t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:n,onSetup:vn(t,e)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:n,onSetup:vn(t,e)})};function yn(){e.add("paste",(function(e){if(!1===n(e)){var o=t(!1),i=t(nt(e)?"text":"html"),a=Ge(e,i);return pn(e),bn(e,a),$e(e,a),ln(e),rn(e),sn(e,a,o),r(a)}}))}yn()})()},"934a":function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},n=function(t){return function(n){return e(n)===t}},r=function(t){return function(e){return typeof e===t}},o=n("string"),i=n("object"),a=n("array"),u=r("boolean"),c=r("function"),s=r("number"),l=function(){},f=function(t){return function(){return t}},d=function(t){return t},m=function(t,e){return t===e},h=function(t){return function(e){return!t(e)}},g=f(!1),p=f(!0),v=function(){return b},b=function(){var t=function(t){return t()},e=d,n={fold:function(t,e){return t()},isSome:g,isNone:p,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:e,orThunk:t,map:v,each:l,bind:v,exists:g,forall:p,filter:function(){return v()},toArray:function(){return[]},toString:f("none()")};return n}(),y=function(t){var e=f(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:p,isNone:g,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return y(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:b},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},x=function(t){return null===t||void 0===t?b:y(t)},w={some:y,none:v,from:x},C=Array.prototype.slice,S=Array.prototype.push,k=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},z=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},O=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var i=t[r];e(i,r)&&n.push(i)}return n},M=function(t,e){if(0===t.length)return[];for(var n=e(t[0]),r=[],o=[],i=0,a=t.length;i<a;i++){var u=t[i],c=e(u);c!==n&&(r.push(o),o=[]),n=c,o.push(u)}return 0!==o.length&&r.push(o),r},_=function(t,e,n){return z(t,(function(t,r){n=e(n,t,r)})),n},T=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return w.some(i);if(n(i,r))break}return w.none()},E=function(t,e){return T(t,e,g)},A=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!a(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);S.apply(e,t[n])}return e},H=function(t,e){return A(k(t,e))},D=function(t){var e=C.call(t,0);return e.reverse(),e},V=function(t,e){return e>=0&&e<t.length?w.some(t[e]):w.none()},B=function(t){return V(t,0)},R=function(t){return V(t,t.length-1)},P=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n],n);if(r.isSome())return r}return w.none()},L=function(){return L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},L.apply(this,arguments)};function I(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var F=function(t){var e,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,e=t.apply(null,r)),e}},N=function(t,e,n,r){var o=t.isiOS()&&!0===/ipad/i.test(n),i=t.isiOS()&&!o,a=t.isiOS()||t.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,l=e.isSafari()&&t.isiOS()&&!1===/safari/i.test(n),d=!s&&!c&&!l;return{isiPad:f(o),isiPhone:f(i),isTablet:f(c),isPhone:f(s),isTouch:f(u),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:f(l),isDesktop:f(d)}},j=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.test(e))return r}},U=function(t,e){var n=j(t,e);if(!n)return{major:0,minor:0};var r=function(t){return Number(e.replace(n,"$"+t))};return q(r(1),r(2))},W=function(t,e){var n=String(e).toLowerCase();return 0===t.length?G():U(t,n)},G=function(){return q(0,0)},q=function(t,e){return{major:t,minor:e}},$={nu:q,detect:W,unknown:G},X=function(t,e){return P(e.brands,(function(e){var n=e.brand.toLowerCase();return E(t,(function(t){var e;return n===(null===(e=t.brand)||void 0===e?void 0:e.toLowerCase())})).map((function(t){return{current:t.name,version:$.nu(parseInt(e.version,10),0)}}))}))},K=function(t,e){var n=String(e).toLowerCase();return E(t,(function(t){return t.search(n)}))},Y=function(t,e){return K(t,e).map((function(t){var n=$.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},J=function(t,e){return K(t,e).map((function(t){var n=$.detect(t.versionRegexes,e);return{current:t.name,version:n}}))},Z=function(t,e){return-1!==t.indexOf(e)},Q=function(t){return function(e){return e.replace(t,"")}},tt=Q(/^\s+|\s+$/g),et=function(t){return t.length>0},nt=function(t){return!et(t)},rt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ot=function(t){return function(e){return Z(e,t)}},it=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(t){return Z(t,"edge/")&&Z(t,"chrome")&&Z(t,"safari")&&Z(t,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rt],search:function(t){return Z(t,"chrome")&&!Z(t,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(t){return Z(t,"msie")||Z(t,"trident")}},{name:"Opera",versionRegexes:[rt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ot("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ot("firefox")},{name:"Safari",versionRegexes:[rt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(t){return(Z(t,"safari")||Z(t,"mobile/"))&&Z(t,"applewebkit")}}],at=[{name:"Windows",search:ot("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(t){return Z(t,"iphone")||Z(t,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ot("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ot("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ot("linux"),versionRegexes:[]},{name:"Solaris",search:ot("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ot("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ot("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ut={browsers:f(it),oses:f(at)},ct="Edge",st="Chrome",lt="IE",ft="Opera",dt="Firefox",mt="Safari",ht=function(){return gt({current:void 0,version:$.unknown()})},gt=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isEdge:r(ct),isChrome:r(st),isIE:r(lt),isOpera:r(ft),isFirefox:r(dt),isSafari:r(mt)}},pt={unknown:ht,nu:gt,edge:f(ct),chrome:f(st),ie:f(lt),opera:f(ft),firefox:f(dt),safari:f(mt)},vt="Windows",bt="iOS",yt="Android",xt="Linux",wt="OSX",Ct="Solaris",St="FreeBSD",kt="ChromeOS",zt=function(){return Ot({current:void 0,version:$.unknown()})},Ot=function(t){var e=t.current,n=t.version,r=function(t){return function(){return e===t}};return{current:e,version:n,isWindows:r(vt),isiOS:r(bt),isAndroid:r(yt),isOSX:r(wt),isLinux:r(xt),isSolaris:r(Ct),isFreeBSD:r(St),isChromeOS:r(kt)}},Mt={unknown:zt,nu:Ot,windows:f(vt),ios:f(bt),android:f(yt),linux:f(xt),osx:f(wt),solaris:f(Ct),freebsd:f(St),chromeos:f(kt)},_t=function(t,e,n){var r=ut.browsers(),o=ut.oses(),i=e.bind((function(t){return X(r,t)})).orThunk((function(){return Y(r,t)})).fold(pt.unknown,pt.nu),a=J(o,t).fold(Mt.unknown,Mt.nu),u=N(a,i,t,n);return{browser:i,os:a,deviceType:u}},Tt={detect:_t},Et=function(t){return window.matchMedia(t).matches},At=F((function(){return Tt.detect(navigator.userAgent,w.from(navigator.userAgentData),Et)})),Ht=function(){return At()},Dt=function(t,e,n){return 0!==(t.compareDocumentPosition(e)&n)},Vt=function(t,e){return Dt(t,e,Node.DOCUMENT_POSITION_CONTAINED_BY)},Bt=1,Rt=function(t,e){var n=e||document,r=n.createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||r.childNodes.length>1)throw console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return It(r.childNodes[0])},Pt=function(t,e){var n=e||document,r=n.createElement(t);return It(r)},Lt=function(t,e){var n=e||document,r=n.createTextNode(t);return It(r)},It=function(t){if(null===t||void 0===t)throw new Error("Node cannot be null or undefined");return{dom:t}},Ft=function(t,e,n){return w.from(t.dom.elementFromPoint(e,n)).map(It)},Nt={fromHtml:Rt,fromTag:Pt,fromText:Lt,fromDom:It,fromPoint:Ft},jt=function(t,e){var n=t.dom;if(n.nodeType!==Bt)return!1;var r=n;if(void 0!==r.matches)return r.matches(e);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(e);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")},Ut=function(t,e){return t.dom===e.dom},Wt=function(t,e){var n=t.dom,r=e.dom;return n!==r&&n.contains(r)},Gt=function(t,e){return Vt(t.dom,e.dom)},qt=function(t,e){return Ht().browser.isIE()?Gt(t,e):Wt(t,e)},$t=jt,Xt=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Kt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Yt=tinymce.util.Tools.resolve("tinymce.util.VK"),Jt=Object.keys,Zt=function(t,e){for(var n=Jt(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},Qt=function(t){return function(e,n){t[n]=e}},te=function(t,e,n,r){var o={};return Zt(t,(function(t,o){(e(t,o)?n:r)(t,o)})),o},ee=function(t,e){var n={};return te(t,e,Qt(n),l),n};"undefined"!==typeof window?window:Function("return this;")();var ne=function(t){var e=t.dom.nodeName;return e.toLowerCase()},re=function(t){return t.dom.nodeType},oe=function(t){return function(e){return re(e)===t}},ie=oe(Bt),ae=function(t){return function(e){return ie(e)&&ne(e)===t}},ue=function(t,e,n){if(!(o(n)||u(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")},ce=function(t,e){var n=t.dom;Zt(e,(function(t,e){ue(n,e,t)}))},se=function(t){return _(t.dom.attributes,(function(t,e){return t[e.name]=e.value,t}),{})},le=function(t){return w.from(t.dom.parentNode).map(Nt.fromDom)},fe=function(t){return k(t.dom.childNodes,Nt.fromDom)},de=function(t,e){var n=t.dom.childNodes;return w.from(n[e]).map(Nt.fromDom)},me=function(t){return de(t,0)},he=function(t){return de(t,t.dom.childNodes.length-1)},ge=function(t,e){var n=le(t);n.each((function(n){n.dom.insertBefore(e.dom,t.dom)}))},pe=function(t,e){t.dom.appendChild(e.dom)},ve=function(t,e){z(e,(function(e){ge(t,e)}))},be=function(t,e){z(e,(function(e){pe(t,e)}))},ye=function(t){var e=t.dom;null!==e.parentNode&&e.parentNode.removeChild(e)},xe=function(t,e){return Nt.fromDom(t.dom.cloneNode(e))},we=function(t){return xe(t,!0)},Ce=function(t,e){var n=Nt.fromTag(e),r=se(t);return ce(n,r),n},Se=function(t,e){var n=Ce(t,e);ge(t,n);var r=fe(t);return be(n,r),ye(t),n},ke=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),ze=tinymce.util.Tools.resolve("tinymce.util.Tools"),Oe=function(t){return function(e){return e&&e.nodeName.toLowerCase()===t}},Me=function(t){return function(e){return e&&t.test(e.nodeName)}},_e=function(t){return t&&3===t.nodeType},Te=Me(/^(OL|UL|DL)$/),Ee=Me(/^(OL|UL)$/),Ae=Oe("ol"),He=Me(/^(LI|DT|DD)$/),De=Me(/^(DT|DD)$/),Ve=Me(/^(TH|TD)$/),Be=Oe("br"),Re=function(t){return t.parentNode.firstChild===t},Pe=function(t,e){return e&&!!t.schema.getTextBlockElements()[e.nodeName]},Le=function(t,e){return t&&t.nodeName in e},Ie=function(t,e){return!!Be(e)&&(t.isBlock(e.nextSibling)&&!Be(e.previousSibling))},Fe=function(t,e,n){var r=t.isEmpty(e);return!(n&&t.select("span[data-mce-type=bookmark]",e).length>0)&&r},Ne=function(t,e){return t.isChildOf(e,t.getRoot())},je=function(t){return t.getParam("lists_indent_on_tab",!0)},Ue=function(t){var e=t.getParam("forced_root_block","p");return!1===e?"":!0===e?"p":e},We=function(t){return t.getParam("forced_root_block_attrs",{})},Ge=function(t,e){var n,r,o,i=t.dom,a=t.schema.getBlockElements(),u=i.createFragment(),c=Ue(t);if(c&&(r=i.create(c),r.tagName===c.toUpperCase()&&i.setAttribs(r,We(t)),Le(e.firstChild,a)||u.appendChild(r)),e)while(n=e.firstChild){var s=n.nodeName;o||"SPAN"===s&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Le(n,a)?(u.appendChild(n),r=null):c?(r||(r=i.create(c),u.appendChild(r)),r.appendChild(n)):u.appendChild(n)}return c?o||r.appendChild(i.create("br",{"data-mce-bogus":"1"})):u.appendChild(i.create("br")),u},qe=ke.DOM,$e=function(t,e,n){var r=function(t){ze.each(o,(function(e){t.parentNode.insertBefore(e,n.parentNode)})),qe.remove(t)},o=qe.select('span[data-mce-type="bookmark"]',e),i=Ge(t,n),a=qe.createRng();a.setStartAfter(n),a.setEndAfter(e);for(var u=a.extractContents(),c=u.firstChild;c;c=c.firstChild)if("LI"===c.nodeName&&t.dom.isEmpty(c)){qe.remove(c);break}t.dom.isEmpty(u)||qe.insertAfter(u,e),qe.insertAfter(i,e),Fe(t.dom,n.parentNode)&&r(n.parentNode),qe.remove(n),Fe(t.dom,e)&&qe.remove(e)},Xe=ae("dd"),Ke=ae("dt"),Ye=function(t,e){Xe(e)?Se(e,"dt"):Ke(e)&&le(e).each((function(n){return $e(t,n.dom,e.dom)}))},Je=function(t){Ke(t)&&Se(t,"dd")},Ze=function(t,e,n){z(n,"Indent"===e?Je:function(e){return Ye(t,e)})},Qe=function(t,e){if(_e(t))return{container:t,offset:e};var n=Xt.getNode(t,e);return _e(n)?{container:n,offset:e>=t.childNodes.length?n.data.length:0}:n.previousSibling&&_e(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&_e(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:t,offset:e}},tn=function(t){var e=t.cloneRange(),n=Qe(t.startContainer,t.startOffset);e.setStart(n.container,n.offset);var r=Qe(t.endContainer,t.endOffset);return e.setEnd(r.container,r.offset),e},en=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(t,e){var n=e||t.selection.getStart(!0);return t.dom.getParent(n,"OL,UL,DL",ln(t,n))},rn=function(t,e){return t&&1===e.length&&e[0]===t},on=function(t){return O(t.querySelectorAll("ol,ul,dl"),Te)},an=function(t){var e=nn(t),n=t.selection.getSelectedBlocks();return rn(e,n)?on(e):O(n,(function(t){return Te(t)&&e!==t}))},un=function(t,e){var n=ze.map(e,(function(e){var n=t.dom.getParent(e,"li,dd,dt",ln(t,e));return n||e}));return en.unique(n)},cn=function(t){var e=t.selection.getSelectedBlocks();return O(un(t,e),He)},sn=function(t){return O(cn(t),De)},ln=function(t,e){var n=t.dom.getParents(e,"TD,TH");return n.length>0?n[0]:t.getBody()},fn=function(t,e){var n=t.dom.getParents(e,"ol,ul",ln(t,e));return R(n)},dn=function(t){var e=fn(t,t.selection.getStart()),n=O(t.selection.getSelectedBlocks(),Ee);return e.toArray().concat(n)},mn=function(t){var e=dn(t);return hn(t,e)},hn=function(t,e){var n=k(e,(function(e){return fn(t,e).getOr(e)}));return en.unique(n)},gn=function(t,e,n){return void 0===n&&(n=m),t.exists((function(t){return n(t,e)}))},pn=function(t,e,n){return t.isSome()&&e.isSome()?w.some(n(t.getOrDie(),e.getOrDie())):w.none()},vn=function(t,e){var n=e||document,r=n.createDocumentFragment();return z(t,(function(t){r.appendChild(t.dom)})),Nt.fromDom(r)},bn=function(t,e,n){return t.fire("ListMutation",{action:e,element:n})},yn=function(t){return void 0!==t.style&&c(t.style.getPropertyValue)},xn=function(t,e,n){if(!o(n))throw console.error("Invalid call to CSS.set. Property ",e,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);yn(t)&&t.style.setProperty(e,n)},wn=function(t,e,n){var r=t.dom;xn(r,e,n)},Cn=function(t,e){pe(t.item,e.list)},Sn=function(t){for(var e=1;e<t.length;e++)Cn(t[e-1],t[e])},kn=function(t,e){pn(R(t),B(e),Cn)},zn=function(t,e){var n={list:Nt.fromTag(e,t),item:Nt.fromTag("li",t)};return pe(n.list,n.item),n},On=function(t,e,n){for(var r=[],o=0;o<n;o++)r.push(zn(t,e.listType));return r},Mn=function(t,e){for(var n=0;n<t.length-1;n++)wn(t[n].item,"list-style-type","none");R(t).each((function(t){ce(t.list,e.listAttributes),ce(t.item,e.itemAttributes),be(t.item,e.content)}))},_n=function(t,e){ne(t.list)!==e.listType&&(t.list=Se(t.list,e.listType)),ce(t.list,e.listAttributes)},Tn=function(t,e,n){var r=Nt.fromTag("li",t);return ce(r,e),be(r,n),r},En=function(t,e){pe(t.list,e),t.item=e},An=function(t,e,n){var r=e.slice(0,n.depth);return R(r).each((function(e){var r=Tn(t,n.itemAttributes,n.content);En(e,r),_n(e,n)})),r},Hn=function(t,e,n){var r=On(t,n,n.depth-e.length);return Sn(r),Mn(r,n),kn(e,r),e.concat(r)},Dn=function(t,e){var n=_(e,(function(e,n){return n.depth>e.length?Hn(t,e,n):An(t,e,n)}),[]);return B(n).map((function(t){return t.list}))},Vn=function(t){return $t(t,"OL,UL")},Bn=function(t){return me(t).exists(Vn)},Rn=function(t){return he(t).exists(Vn)},Pn=function(t){return t.depth>0},Ln=function(t){return t.isSelected},In=function(t){var e=fe(t),n=Rn(t)?e.slice(0,-1):e;return k(n,we)},Fn=function(t,e,n){return le(t).filter(ie).map((function(r){return{depth:e,dirty:!1,isSelected:n,content:In(t),itemAttributes:se(t),listAttributes:se(r),listType:ne(r)}}))},Nn=function(t,e){switch(t){case"Indent":e.depth++;break;case"Outdent":e.depth--;break;case"Flatten":e.depth=0}e.dirty=!0},jn=function(t,e){t.listType=e.listType,t.listAttributes=L({},e.listAttributes)},Un=function(t){t.listAttributes=ee(t.listAttributes,(function(t,e){return"start"!==e}))},Wn=function(t,e){var n=t[e].depth,r=function(t){return t.depth===n&&!t.dirty},o=function(t){return t.depth<n};return T(D(t.slice(0,e)),r,o).orThunk((function(){return T(t.slice(e+1),r,o)}))},Gn=function(t){return z(t,(function(e,n){Wn(t,n).fold((function(){e.dirty&&Un(e)}),(function(t){return jn(e,t)}))})),t},qn=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},$n=function(t,e,n,r){return me(r).filter(Vn).fold((function(){e.each((function(t){Ut(t.start,r)&&n.set(!0)}));var o=Fn(r,t,n.get());e.each((function(t){Ut(t.end,r)&&n.set(!1)}));var i=he(r).filter(Vn).map((function(r){return Xn(t,e,n,r)})).getOr([]);return o.toArray().concat(i)}),(function(r){return Xn(t,e,n,r)}))},Xn=function(t,e,n,r){return H(fe(r),(function(r){var o=Vn(r)?Xn:$n,i=t+1;return o(i,e,n,r)}))},Kn=function(t,e){var n=qn(!1),r=0;return k(t,(function(t){return{sourceList:t,entries:Xn(r,e,n,t)}}))},Yn=function(t,e){var n=Gn(e);return k(n,(function(e){var n=vn(e.content);return Nt.fromDom(Ge(t,n.dom))}))},Jn=function(t,e){var n=Gn(e);return Dn(t.contentDocument,n).toArray()},Zn=function(t,e){return H(M(e,Pn),(function(e){var n=B(e).exists(Pn);return n?Jn(t,e):Yn(t,e)}))},Qn=function(t,e){z(O(t,Ln),(function(t){return Nn(e,t)}))},tr=function(t){var e=k(cn(t),Nt.fromDom);return pn(E(e,h(Bn)),E(D(e),h(Bn)),(function(t,e){return{start:t,end:e}}))},er=function(t,e,n){var r=Kn(e,tr(t));z(r,(function(e){Qn(e.entries,n);var r=Zn(t,e.entries);z(r,(function(e){bn(t,"Indent"===n?"IndentList":"OutdentList",e.dom)})),ve(e.sourceList,r),ye(e.sourceList)}))},nr=function(t,e){var n=k(mn(t),Nt.fromDom),r=k(sn(t),Nt.fromDom),o=!1;if(n.length||r.length){var i=t.selection.getBookmark();er(t,n,e),Ze(t,e,r),t.selection.moveToBookmark(i),t.selection.setRng(tn(t.selection.getRng())),t.nodeChanged(),o=!0}return o},rr=function(t){return nr(t,"Indent")},or=function(t){return nr(t,"Outdent")},ir=function(t){return nr(t,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),ur=ke.DOM,cr=function(t){var e={},n=function(n){var r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];if(1===r.nodeType){var i=ur.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(o=Math.min(o,r.childNodes.length-1),n?r.insertBefore(i,r.childNodes[o]):ur.insertAfter(i,r.childNodes[o])):r.appendChild(i),r=i,o=0}e[n?"startContainer":"endContainer"]=r,e[n?"startOffset":"endOffset"]=o};return n(!0),t.collapsed||n(),e},sr=function(t){var e=function(e){var n,r=function(t){var e=t.parentNode.firstChild,n=0;while(e){if(e===t)return n;1===e.nodeType&&"bookmark"===e.getAttribute("data-mce-type")||n++,e=e.nextSibling}return-1},o=n=t[e?"startContainer":"endContainer"],i=t[e?"startOffset":"endOffset"];o&&(1===o.nodeType&&(i=r(o),o=o.parentNode,ur.remove(n),!o.hasChildNodes()&&ur.isBlock(o)&&o.appendChild(ur.create("br"))),t[e?"startContainer":"endContainer"]=o,t[e?"startOffset":"endOffset"]=i)};e(!0),e();var n=ur.createRng();return n.setStart(t.startContainer,t.startOffset),t.endContainer&&n.setEnd(t.endContainer,t.endOffset),tn(n)},lr=function(t){switch(t){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},fr=function(t){return/\btox\-/.test(t.className)},dr=function(t,e,n){var r=function(t){var r=T(t.parents,Te,Ve).filter((function(t){return t.nodeName===e&&!fr(t)})).isSome();n(r)},o=t.dom.getParents(t.selection.getNode());return r({parents:o}),t.on("NodeChange",r),function(){return t.off("NodeChange",r)}},mr=function(t,e,n){var r=n["list-style-type"]?n["list-style-type"]:null;t.setStyle(e,"list-style-type",r)},hr=function(t,e){ze.each(e,(function(e,n){t.setAttribute(n,e)}))},gr=function(t,e,n){hr(e,n["list-attributes"]),ze.each(t.select("li",e),(function(t){hr(t,n["list-item-attributes"])}))},pr=function(t,e,n){mr(t,e,n),gr(t,e,n)},vr=function(t,e,n){ze.each(n,(function(n){var r;return t.setStyle(e,(r={},r[n]="",r))}))},br=function(t,e,n,r){var o=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!n&&Be(o.nextSibling)&&(o=o.nextSibling);while(o.parentNode!==r){if(Pe(t,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o},yr=function(t,e,n){for(var r,o=[],i=t.dom,a=br(t,e,!0,n),u=br(t,e,!1,n),c=[],s=a;s;s=s.nextSibling)if(c.push(s),s===u)break;return ze.each(c,(function(e){if(Pe(t,e))return o.push(e),void(r=null);if(i.isBlock(e)||Be(e))return Be(e)&&i.remove(e),void(r=null);var a=e.nextSibling;ar.isBookmarkNode(e)&&(Te(a)||Pe(t,a)||!a&&e.parentNode===n)?r=null:(r||(r=i.create("p"),e.parentNode.insertBefore(r,e),o.push(r)),r.appendChild(e))})),o},xr=function(t,e,n){var r=t.getStyle(e,"list-style-type"),o=n?n["list-style-type"]:"";return o=null===o?"":o,r===o},wr=function(t,e,n){var r=t.selection.getRng(),o="LI",i=ln(t,t.selection.getStart(!0)),a=t.dom;if("false"!==a.getContentEditable(t.selection.getNode())){e=e.toUpperCase(),"DL"===e&&(o="DT");var u=cr(r),c=yr(t,r,i);ze.each(c,(function(r){var i,u=r.previousSibling,c=r.parentNode;He(c)||(u&&Te(u)&&u.nodeName===e&&xr(a,u,n)?(i=u,r=a.rename(r,o),u.appendChild(r)):(i=a.create(e),r.parentNode.insertBefore(i,r),i.appendChild(r),r=a.rename(r,o)),vr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),pr(a,i,n),Or(t.dom,i))})),t.selection.setRng(sr(u))}},Cr=function(t,e){return t&&e&&Te(t)&&t.nodeName===e.nodeName},Sr=function(t,e,n){var r=t.getStyle(e,"list-style-type",!0),o=t.getStyle(n,"list-style-type",!0);return r===o},kr=function(t,e){return t.className===e.className},zr=function(t,e,n){return Cr(e,n)&&Sr(t,e,n)&&kr(e,n)},Or=function(t,e){var n,r;if(n=e.nextSibling,zr(t,e,n)){while(r=n.firstChild)e.appendChild(r);t.remove(n)}if(n=e.previousSibling,zr(t,e,n)){while(r=n.lastChild)e.insertBefore(r,e.firstChild);t.remove(n)}},Mr=function(t,e,n,r){if(e.nodeName!==n){var o=t.dom.rename(e,n);pr(t.dom,o,r),bn(t,lr(n),o)}else pr(t.dom,e,r),bn(t,lr(n),e)},_r=function(t,e,n,r,o){var i=Te(e);if(i&&e.nodeName===r&&!Tr(o))ir(t);else{wr(t,r,o);var a=cr(t.selection.getRng()),u=i?I([e],n,!0):n;ze.each(u,(function(e){Mr(t,e,r,o)})),t.selection.setRng(sr(a))}},Tr=function(t){return"list-style-type"in t},Er=function(t,e,n,r){if(e!==t.getBody())if(e)if(e.nodeName!==n||Tr(r)||fr(e)){var o=cr(t.selection.getRng());pr(t.dom,e,r);var i=t.dom.rename(e,n);Or(t.dom,i),t.selection.setRng(sr(o)),wr(t,n,r),bn(t,lr(n),i)}else ir(t);else wr(t,n,r),bn(t,lr(n),e)},Ar=function(t,e,n){var r=nn(t),o=an(t),a=i(n)?n:{};o.length>0?_r(t,r,o,e,a):Er(t,r,e,a)},Hr=ke.DOM,Dr=function(t,e){var n=e.parentNode;if("LI"===n.nodeName&&n.firstChild===e){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(e),Fe(t,n)&&Hr.remove(n)):Hr.setStyle(n,"listStyleType","none")}if(Te(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(e)}},Vr=function(t,e){var n=ze.grep(t.select("ol,ul",e));ze.each(n,(function(e){Dr(t,e)}))},Br=function(t,e,n,r){var o=e.startContainer,i=e.startOffset;if(_e(o)&&(n?i<o.data.length:i>0))return o;var a=t.schema.getNonEmptyElements();1===o.nodeType&&(o=Xt.getNode(o,i));var u=new Kt(o,r);n&&Ie(t.dom,o)&&u.next();while(o=u[n?"next":"prev2"]()){if("LI"===o.nodeName&&!o.hasChildNodes())return o;if(a[o.nodeName])return o;if(_e(o)&&o.data.length>0)return o}},Rr=function(t,e){var n=e.childNodes;return 1===n.length&&!Te(n[0])&&t.isBlock(n[0])},Pr=function(t,e){Rr(t,e)&&t.remove(e.firstChild,!0)},Lr=function(t,e,n){var r,o=Rr(t,n)?n.firstChild:n;if(Pr(t,e),!Fe(t,e,!0))while(r=e.firstChild)o.appendChild(r)},Ir=function(t,e,n){var r,o=e.parentNode;if(Ne(t,e)&&Ne(t,n)){Te(n.lastChild)&&(r=n.lastChild),o===n.lastChild&&Be(o.previousSibling)&&t.remove(o.previousSibling);var i=n.lastChild;i&&Be(i)&&e.hasChildNodes()&&t.remove(i),Fe(t,n,!0)&&t.$(n).empty(),Lr(t,e,n),r&&n.appendChild(r);var a=qt(Nt.fromDom(n),Nt.fromDom(e)),u=a?t.getParents(e,Te,n):[];t.remove(e),z(u,(function(e){Fe(t,e)&&e!==t.getRoot()&&t.remove(e)}))}},Fr=function(t,e,n){t.dom.$(n).empty(),Ir(t.dom,e,n),t.selection.setCursorLocation(n,0)},Nr=function(t,e,n,r){var o=t.dom;if(o.isEmpty(r))Fr(t,n,r);else{var i=cr(e);Ir(o,n,r),t.selection.setRng(sr(i))}},jr=function(t,e,n,r){var o=cr(e);Ir(t.dom,n,r);var i=sr(o);t.selection.setRng(i)},Ur=function(t,e){var n=t.dom,r=t.selection,o=r.getStart(),i=ln(t,o),a=n.getParent(r.getStart(),"LI",i);if(a){var u=a.parentNode;if(u===t.getBody()&&Fe(n,u))return!0;var c=tn(r.getRng()),s=n.getParent(Br(t,c,e,i),"LI",i);if(s&&s!==a)return t.undoManager.transact((function(){e?Nr(t,c,s,a):Re(a)?or(t):jr(t,c,a,s)})),!0;if(!s&&!e&&0===c.startOffset&&0===c.endOffset)return t.undoManager.transact((function(){ir(t)})),!0}return!1},Wr=function(t,e,n){var r=t.getParent(e.parentNode,t.isBlock,n);t.remove(e),r&&t.isEmpty(r)&&t.remove(r)},Gr=function(t,e){var n=t.dom,r=t.selection.getStart(),o=ln(t,r),i=n.getParent(r,n.isBlock,o);if(i&&n.isEmpty(i)){var a=tn(t.selection.getRng()),u=n.getParent(Br(t,a,e,o),"LI",o);if(u)return t.undoManager.transact((function(){Wr(n,i,o),Or(n,u.parentNode),t.selection.select(u,!0),t.selection.collapse(e)})),!0}return!1},qr=function(t,e){return Ur(t,e)||Gr(t,e)},$r=function(t){var e=t.selection.getStart(),n=ln(t,e),r=t.dom.getParent(e,"LI,DT,DD",n);return!!(r||cn(t).length>0)&&(t.undoManager.transact((function(){t.execCommand("Delete"),Vr(t.dom,t.getBody())})),!0)},Xr=function(t,e){return t.selection.isCollapsed()?qr(t,e):$r(t)},Kr=function(t){t.on("keydown",(function(e){e.keyCode===Yt.BACKSPACE?Xr(t,!1)&&e.preventDefault():e.keyCode===Yt.DELETE&&Xr(t,!0)&&e.preventDefault()}))},Yr=function(t){return{backspaceDelete:function(e){Xr(t,e)}}},Jr=function(t,e){var n=nn(t);t.undoManager.transact((function(){i(e.styles)&&t.dom.setStyles(n,e.styles),i(e.attrs)&&Zt(e.attrs,(function(e,r){return t.dom.setAttrib(n,r,e)}))}))},Zr=function(t){var e=D(tt(t).split("")),n=k(e,(function(t,e){var n=t.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,e)*n}));return _(n,(function(t,e){return t+e}),0)},Qr=function(t){if(t--,t<0)return"";var e=t%26,n=Math.floor(t/26),r=Qr(n),o=String.fromCharCode("A".charCodeAt(0)+e);return r+o},to=function(t){return/^[A-Z]+$/.test(t)},eo=function(t){return/^[a-z]+$/.test(t)},no=function(t){return/^[0-9]+$/.test(t)},ro=function(t){return no(t)?2:to(t)?0:eo(t)?1:nt(t)?3:4},oo=function(t){switch(ro(t)){case 2:return w.some({listStyleType:w.none(),start:t});case 0:return w.some({listStyleType:w.some("upper-alpha"),start:Zr(t).toString()});case 1:return w.some({listStyleType:w.some("lower-alpha"),start:Zr(t).toString()});case 3:return w.some({listStyleType:w.none(),start:""});case 4:return w.none()}},io=function(t){var e=parseInt(t.start,10);return gn(t.listStyleType,"upper-alpha")?Qr(e):gn(t.listStyleType,"lower-alpha")?Qr(e).toLowerCase():t.start},ao=function(t){var e=nn(t);Ae(e)&&t.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:io({start:t.dom.getAttrib(e,"start","1"),listStyleType:w.some(t.dom.getStyle(e,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(e){var n=e.getData();oo(n.start).each((function(e){t.execCommand("mceListUpdate",!1,{attrs:{start:"1"===e.start?"":e.start},styles:{"list-style-type":e.listStyleType.getOr("")}})})),e.close()}})},uo=function(t,e){return function(){var n=nn(t);return n&&n.nodeName===e}},co=function(t){t.addCommand("mceListProps",(function(){ao(t)}))},so=function(t){t.on("BeforeExecCommand",(function(e){var n=e.command.toLowerCase();"indent"===n?rr(t):"outdent"===n&&or(t)})),t.addCommand("InsertUnorderedList",(function(e,n){Ar(t,"UL",n)})),t.addCommand("InsertOrderedList",(function(e,n){Ar(t,"OL",n)})),t.addCommand("InsertDefinitionList",(function(e,n){Ar(t,"DL",n)})),t.addCommand("RemoveList",(function(){ir(t)})),co(t),t.addCommand("mceListUpdate",(function(e,n){i(n)&&Jr(t,n)})),t.addQueryStateHandler("InsertUnorderedList",uo(t,"UL")),t.addQueryStateHandler("InsertOrderedList",uo(t,"OL")),t.addQueryStateHandler("InsertDefinitionList",uo(t,"DL"))},lo=function(t){t.on("keydown",(function(e){e.keyCode!==Yt.TAB||Yt.metaKeyPressed(e)||t.undoManager.transact((function(){(e.shiftKey?or(t):rr(t))&&e.preventDefault()}))}))},fo=function(t){je(t)&&lo(t),Kr(t)},mo=function(t){var e=function(e){return function(){return t.execCommand(e)}};t.hasPlugin("advlist")||(t.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:e("InsertOrderedList"),onSetup:function(e){return dr(t,"OL",e.setActive)}}),t.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:e("InsertUnorderedList"),onSetup:function(e){return dr(t,"UL",e.setActive)}}))},ho=function(t){var e={text:"List properties...",icon:"ordered-list",onAction:function(){return t.execCommand("mceListProps")},onSetup:function(e){return dr(t,"OL",(function(t){return e.setDisabled(!t)}))}};t.ui.registry.addMenuItem("listprops",e),t.ui.registry.addContextMenu("lists",{update:function(e){var n=nn(t,e);return Ae(n)?["listprops"]:[]}})};function go(){t.add("lists",(function(t){return!1===t.hasPlugin("rtc",!0)?(fo(t),so(t)):co(t),mo(t),ho(t),Yr(t)}))}go()})()},ae79:function(t,e,n){"use strict";var r=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],o=function(t){return-1!==r.map((function(t){return t.toLowerCase()})).indexOf(t.toLowerCase())},i=function(t,e,n){Object.keys(e).filter(o).forEach((function(r){var o=e[r];"function"===typeof o&&("onInit"===r?o(t,n):n.on(r.substring(2),(function(t){return o(t,n)})))}))},a=function(t,e){var n=t.$props.modelEvents?t.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;e.on(r||"change input undo redo",(function(){t.$emit("input",e.getContent({format:t.$props.outputFormat}))}))},u=function(t,e,n){var r=e.$props.value?e.$props.value:"",o=e.$props.initialValue?e.$props.initialValue:"";n.setContent(r||(e.initialized?e.cache:o)),e.$watch("value",(function(t,r){n&&"string"===typeof t&&t!==r&&t!==n.getContent({format:e.$props.outputFormat})&&n.setContent(t)})),e.$listeners.input&&a(e,n),i(t,e.$listeners,n),e.initialized=!0},c=0,s=function(t){var e=Date.now(),n=Math.floor(1e9*Math.random());return c++,t+"_"+n+c+String(e)},l=function(t){return null!==t&&"textarea"===t.tagName.toLowerCase()},f=function(t){return"undefined"===typeof t||""===t?[]:Array.isArray(t)?t:t.split(" ")},d=function(t,e){return f(t).concat(f(e))},m=function(t){return null===t||void 0===t},h=function(){return{listeners:[],scriptId:s("tiny-script"),scriptLoaded:!1}},g=function(){var t=h(),e=function(t,e,n,r){var o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t,o.src=n;var i=function(){o.removeEventListener("load",i),r()};o.addEventListener("load",i),e.head&&e.head.appendChild(o)},n=function(n,r,o){t.scriptLoaded?o():(t.listeners.push(o),n.getElementById(t.scriptId)||e(t.scriptId,n,r,(function(){t.listeners.forEach((function(t){return t()})),t.scriptLoaded=!0})))},r=function(){t=h()};return{load:n,reinitialize:r}},p=g(),v=n("521b"),b={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return"html"===t||"text"===t}}},y=function(){return y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},y.apply(this,arguments)},x=function(t,e,n){return t(n||"div",{attrs:{id:e}})},w=function(t,e){return t("textarea",{attrs:{id:e},style:{visibility:"hidden"}})},C=function(t){return function(){var e=y(y({},t.$props.init),{readonly:t.$props.disabled,selector:"#"+t.elementId,plugins:d(t.$props.init&&t.$props.init.plugins,t.$props.plugins),toolbar:t.$props.toolbar||t.$props.init&&t.$props.init.toolbar,inline:t.inlineEditor,setup:function(e){t.editor=e,e.on("init",(function(n){return u(n,t,e)})),t.$props.init&&"function"===typeof t.$props.init.setup&&t.$props.init.setup(e)}});l(t.element)&&(t.element.style.visibility="",t.element.style.display=""),Object(v["a"])().init(e)}},S={props:b,created:function(){this.elementId=this.$props.id||s("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(v["a"])())C(this)();else if(this.element&&this.element.ownerDocument){var t=this.$props.cloudChannel?this.$props.cloudChannel:"5",e=this.$props.apiKey?this.$props.apiKey:"no-api-key",n=m(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+e+"/tinymce/"+t+"/tinymce.min.js":this.$props.tinymceScriptSrc;p.load(this.element.ownerDocument,n,C(this))}},beforeDestroy:function(){null!==Object(v["a"])()&&Object(v["a"])().remove(this.editor)},deactivated:function(){var t;this.inlineEditor||(this.cache=this.editor.getContent(),null===(t=Object(v["a"])())||void 0===t||t.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&C(this)()},render:function(t){return this.inlineEditor?x(t,this.elementId,this.$props.tagName):w(t,this.elementId)}};e["a"]=S},bdd0:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(t,e){return t.fire("insertCustomChar",{chr:e})},n=function(t,n){var r=e(t,n).chr;t.execCommand("mceInsertContent",!1,r)},r=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},o=function(t){return function(e){return r(e)===t}},i=function(t){return function(e){return t===e}},a=o("array"),u=i(null),c=function(){},s=function(t){return function(){return t}},l=function(t){return t},f=s(!1),d=s(!0),m=function(){return h},h=function(){var t=function(t){return t()},e=l,n={fold:function(t,e){return t()},isSome:f,isNone:d,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:s(null),getOrUndefined:s(void 0),or:e,orThunk:t,map:m,each:c,bind:m,exists:f,forall:d,filter:function(){return m()},toArray:function(){return[]},toString:s("none()")};return n}(),g=function(t){var e=s(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:d,isNone:f,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return g(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:h},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},p=function(t){return null===t||void 0===t?h:g(t)},v={some:g,none:m,from:p},b=Array.prototype.push,y=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var i=t[o];r[o]=e(i,o)}return r},x=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},w=function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];if(e(i,r))return v.some(i);if(n(i,r))break}return v.none()},C=function(t,e){return w(t,e,f)},S=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!a(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);b.apply(e,t[n])}return e},k=function(t,e){return S(y(t,e))},z=tinymce.util.Tools.resolve("tinymce.util.Tools"),O=function(t){return t.getParam("charmap")},M=function(t){return t.getParam("charmap_append")},_=z.isArray,T="User Defined",E=function(){return[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[402,"function / florin"],[8747,"integral"],[8721,"n-ary sumation"],[8734,"infinity"],[8730,"square root"],[8764,"similar to"],[8773,"approximately equal to"],[8776,"almost equal to"],[8800,"not equal to"],[8801,"identical to"],[8712,"element of"],[8713,"not an element of"],[8715,"contains as member"],[8719,"n-ary product"],[8743,"logical and"],[8744,"logical or"],[172,"not sign"],[8745,"intersection"],[8746,"union"],[8706,"partial differential"],[8704,"for all"],[8707,"there exists"],[8709,"diameter"],[8711,"backward difference"],[8727,"asterisk operator"],[8733,"proportional to"],[8736,"angle"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Symbols",characters:[[8501,"alef symbol"],[982,"pi symbol"],[8476,"real part symbol"],[978,"upsilon - hook symbol"],[8472,"Weierstrass p"],[8465,"imaginary part"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8629,"carriage return"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8756,"therefore"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8853,"circled plus"],[8855,"circled times"],[8869,"perpendicular"],[8901,"dot operator"],[8968,"left ceiling"],[8969,"right ceiling"],[8970,"left floor"],[8971,"right floor"],[9001,"left-pointing angle bracket"],[9002,"right-pointing angle bracket"],[9674,"lozenge"],[9824,"black spade suit"],[9827,"black club suit"],[9829,"black heart suit"],[9830,"black diamond suit"],[8194,"en space"],[8195,"em space"],[8201,"thin space"],[8204,"zero width non-joiner"],[8205,"zero width joiner"],[8206,"left-to-right mark"],[8207,"right-to-left mark"]]}]},A=function(t){return z.grep(t,(function(t){return _(t)&&2===t.length}))},H=function(t){return _(t)?A(t):"function"===typeof t?t():[]},D=function(t,e){var n=O(t);n&&(e=[{name:T,characters:H(n)}]);var r=M(t);if(r){var o=z.grep(e,(function(t){return t.name===T}));return o.length?(o[0].characters=[].concat(o[0].characters).concat(H(r)),e):e.concat({name:T,characters:H(r)})}return e},V=function(t){var e=D(t,E());return e.length>1?[{name:"All",characters:k(e,(function(t){return t.characters}))}].concat(e):e},B=function(t){var e=function(){return V(t)},r=function(e){n(t,e)};return{getCharMap:e,insertChar:r}},R=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},P=function(t,e){var n=null,r=function(){u(n)||(clearTimeout(n),n=null)},o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r(),n=setTimeout((function(){n=null,t.apply(null,o)}),e)};return{cancel:r,throttle:o}},L=String.fromCodePoint,I=function(t,e){return-1!==t.indexOf(e)},F=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(L)return L.apply(void 0,t);for(var n=[],r=0,o="",i=0,a=t.length;i!==a;++i){var u=+t[i];if(!(u<1114111&&u>>>0===u))throw RangeError("Invalid code point: "+u);u<=65535?r=n.push(u):(u-=65536,r=n.push(55296+(u>>10),u%1024+56320)),r>=16383&&(o+=String.fromCharCode.apply(null,n),n.length=0)}return o+String.fromCharCode.apply(null,n)},N=function(t,e,n){return!!I(F(t).toLowerCase(),n)||(I(e.toLowerCase(),n)||I(e.toLowerCase().replace(/\s+/g,""),n))},j=function(t,e){var n=[],r=e.toLowerCase();return x(t.characters,(function(t){N(t[0],t[1],r)&&n.push(t)})),y(n,(function(t){return{text:t[1],value:F(t[0]),icon:F(t[0])}}))},U="pattern",W=function(t,e){var r=function(){return[{label:"Search",type:"input",name:U},{type:"collection",name:"results"}]},o=function(){return y(e,(function(t){return{title:t.name,name:t.name,items:r()}}))},i=function(){return{type:"panel",items:r()}},a=function(){return{type:"tabpanel",tabs:o()}},u=1===e.length?R(T):R("All"),c=function(t,n){C(e,(function(t){return t.name===u.get()})).each((function(e){var r=j(e,n);t.setData({results:r})}))},s=40,l=P((function(t){var e=t.getData().pattern;c(t,e)}),s),f=1===e.length?i():a(),d={pattern:"",results:j(e[0],"")},m={title:"Special Character",size:"normal",body:f,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:d,onAction:function(e,r){"results"===r.name&&(n(t,r.value),e.close())},onTabChange:function(t,e){u.set(e.newTabName),l.throttle(t)},onChange:function(t,e){e.name===U&&l.throttle(t)}},h=t.windowManager.open(m);h.focus(U)},G=function(t,e){t.addCommand("mceShowCharmap",(function(){W(t,e)}))},q=tinymce.util.Tools.resolve("tinymce.util.Promise"),$=function(t,e){t.ui.registry.addAutocompleter("charmap",{ch:":",columns:"auto",minChars:2,fetch:function(t,n){return new q((function(n,r){n(j(e,t))}))},onAction:function(e,n,r){t.selection.setRng(n),t.insertContent(r),e.hide()}})},X=function(t){t.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:function(){return t.execCommand("mceShowCharmap")}}),t.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:function(){return t.execCommand("mceShowCharmap")}})};function K(){t.add("charmap",(function(t){var e=V(t);return G(t,e),X(t),$(t,e[0]),B(t)}))}K()})()},cbb9:function(t,e,n){n("8155")},da1e:function(t,e){(function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)},n=function(t){var e=typeof t;return null===t?"null":"object"===e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"===e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e},r=function(t){return function(e){return n(e)===t}},o=r("string"),i=r("object"),a=r("array"),u=function(t){return null===t||void 0===t},c=function(t){return!u(t)},s=function(){},l=function(t){return function(){return t}},f=function(t){return t},d=l(!1),m=l(!0),h=function(){return g},g=function(){var t=function(t){return t()},e=f,n={fold:function(t,e){return t()},isSome:d,isNone:m,getOr:e,getOrThunk:t,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:l(null),getOrUndefined:l(void 0),or:e,orThunk:t,map:h,each:s,bind:h,exists:d,forall:m,filter:function(){return h()},toArray:function(){return[]},toString:l("none()")};return n}(),p=function(t){var e=l(t),n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},isSome:m,isNone:d,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:n,orThunk:n,map:function(e){return p(e(t))},each:function(e){e(t)},bind:r,exists:r,forall:r,filter:function(e){return e(t)?o:g},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},v=function(t){return null===t||void 0===t?g:p(t)},b={some:p,none:h,from:v},y=Array.prototype.push,x=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];e(o,n)}},w=function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!a(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);y.apply(e,t[n])}return e},C=function(t){var e=t,n=function(){return e},r=function(t){e=t};return{get:n,set:r}},S=Object.keys,k=Object.hasOwnProperty,z=function(t,e){for(var n=S(t),r=0,o=n.length;r<o;r++){var i=n[r],a=t[i];e(a,i)}},O=function(t,e){return M(t,e)?b.from(t[e]):b.none()},M=function(t,e){return k.call(t,e)},_=function(t){return t.getParam("media_scripts")},T=function(t){return t.getParam("audio_template_callback")},E=function(t){return t.getParam("video_template_callback")},A=function(t){return t.getParam("media_live_embeds",!0)},H=function(t){return t.getParam("media_filter_html",!0)},D=function(t){return t.getParam("media_url_resolver")},V=function(t){return t.getParam("media_alt_source",!0)},B=function(t){return t.getParam("media_poster",!0)},R=function(t){return t.getParam("media_dimensions",!0)},P=tinymce.util.Tools.resolve("tinymce.util.Tools"),L=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),I=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),F=function(t,e){if(t)for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n].filter))return t[n]},N=L.DOM,j=function(t){return t.replace(/px$/,"")},U=function(t){var e=t.map.style,n=e?N.parseStyle(e):{};return{type:"ephox-embed-iri",source:t.map["data-ephox-embed-iri"],altsource:"",poster:"",width:O(n,"max-width").map(j).getOr(""),height:O(n,"max-height").map(j).getOr("")}},W=function(t,e){var n=C(!1),r={};return I({validate:!1,allow_conditional_comments:!0,start:function(e,o){if(n.get());else if(M(o.map,"data-ephox-embed-iri"))n.set(!0),r=U(o);else{if(r.source||"param"!==e||(r.source=o.map.movie),"iframe"!==e&&"object"!==e&&"embed"!==e&&"video"!==e&&"audio"!==e||(r.type||(r.type=e),r=P.extend(o.map,r)),"script"===e){var i=F(t,o.map.src);if(!i)return;r={type:"script",source:o.map.src,width:String(i.width),height:String(i.height)}}"source"===e&&(r.source?r.altsource||(r.altsource=o.map.src):r.source=o.map.src),"img"!==e||r.poster||(r.poster=o.map.src)}}}).parse(e),r.source=r.source||r.src||r.data,r.altsource=r.altsource||"",r.poster=r.poster||"",r},G=function(t){var e={mp3:"audio/mpeg",m4a:"audio/x-m4a",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},n=t.toLowerCase().split(".").pop(),r=e[n];return r||""},q=tinymce.util.Tools.resolve("tinymce.html.Schema"),$=tinymce.util.Tools.resolve("tinymce.html.Writer"),X=L.DOM,K=function(t){return/^[0-9.]+$/.test(t)?t+"px":t},Y=function(t,e){z(e,(function(e,n){var r=""+e;if(t.map[n]){var o=t.length;while(o--){var i=t[o];i.name===n&&(r?(t.map[n]=r,i.value=r):(delete t.map[n],t.splice(o,1)))}}else r&&(t.push({name:n,value:r}),t.map[n]=r)}))},J=function(t,e){var n=e.map.style,r=n?X.parseStyle(n):{};r["max-width"]=K(t.width),r["max-height"]=K(t.height),Y(e,{style:X.serializeStyle(r)})},Z=["source","altsource"],Q=function(t,e,n){var r,o=$(),i=C(!1),a=0;return I({validate:!1,allow_conditional_comments:!0,comment:function(t){o.comment(t)},cdata:function(t){o.cdata(t)},text:function(t,e){o.text(t,e)},start:function(t,u,c){if(i.get());else if(M(u.map,"data-ephox-embed-iri"))i.set(!0),J(e,u);else{switch(t){case"video":case"object":case"embed":case"img":case"iframe":void 0!==e.height&&void 0!==e.width&&Y(u,{width:e.width,height:e.height});break}if(n)switch(t){case"video":Y(u,{poster:e.poster,src:""}),e.altsource&&Y(u,{src:""});break;case"iframe":Y(u,{src:e.source});break;case"source":if(a<2&&(Y(u,{src:e[Z[a]],type:e[Z[a]+"mime"]}),!e[Z[a]]))return;a++;break;case"img":if(!e.poster)return;r=!0;break}}o.start(t,u,c)},end:function(t){if(!i.get()){if("video"===t&&n)for(var u=0;u<2;u++)if(e[Z[u]]){var c=[];c.map={},a<=u&&(Y(c,{src:e[Z[u]],type:e[Z[u]+"mime"]}),o.start("source",c,!0))}if(e.poster&&"object"===t&&n&&!r){var s=[];s.map={},Y(s,{src:e.poster,width:e.width,height:e.height}),o.start("img",s,!0)}}o.end(t)}},q({})).parse(t),o.getContent()},tt=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],et=function(t){var e=t.match(/^(https?:\/\/|www\.)(.+)$/i);return e&&e.length>1?"www."===e[1]?"https://":e[1]:"https://"},nt=function(t,e){for(var n=et(e),r=t.regex.exec(e),o=n+t.url,i=function(t){o=o.replace("$"+t,(function(){return r[t]?r[t]:""}))},a=0;a<r.length;a++)i(a);return o.replace(/\?$/,"")},rt=function(t){var e=tt.filter((function(e){return e.regex.test(t)}));return e.length>0?P.extend({},e[0],{url:nt(e[0],t)}):null},ot=function(t){var e=t.allowfullscreen?' allowFullscreen="1"':"";return'<iframe src="'+t.source+'" width="'+t.width+'" height="'+t.height+'"'+e+"></iframe>"},it=function(t){var e='<object data="'+t.source+'" width="'+t.width+'" height="'+t.height+'" type="application/x-shockwave-flash">';return t.poster&&(e+='<img src="'+t.poster+'" width="'+t.width+'" height="'+t.height+'" />'),e+="</object>",e},at=function(t,e){return e?e(t):'<audio controls="controls" src="'+t.source+'">'+(t.altsource?'\n<source src="'+t.altsource+'"'+(t.altsourcemime?' type="'+t.altsourcemime+'"':"")+" />\n":"")+"</audio>"},ut=function(t,e){return e?e(t):'<video width="'+t.width+'" height="'+t.height+'"'+(t.poster?' poster="'+t.poster+'"':"")+' controls="controls">\n<source src="'+t.source+'"'+(t.sourcemime?' type="'+t.sourcemime+'"':"")+" />\n"+(t.altsource?'<source src="'+t.altsource+'"'+(t.altsourcemime?' type="'+t.altsourcemime+'"':"")+" />\n":"")+"</video>"},ct=function(t){return'<script src="'+t.source+'"><\/script>'},st=function(t,e){var n=P.extend({},e);if(!n.source&&(P.extend(n,W(_(t),n.embed)),!n.source))return"";n.altsource||(n.altsource=""),n.poster||(n.poster=""),n.source=t.convertURL(n.source,"source"),n.altsource=t.convertURL(n.altsource,"source"),n.sourcemime=G(n.source),n.altsourcemime=G(n.altsource),n.poster=t.convertURL(n.poster,"poster");var r=rt(n.source);if(r&&(n.source=r.url,n.type=r.type,n.allowfullscreen=r.allowFullscreen,n.width=n.width||String(r.w),n.height=n.height||String(r.h)),n.embed)return Q(n.embed,n,!0);var o=F(_(t),n.source);o&&(n.type="script",n.width=String(o.width),n.height=String(o.height));var i=T(t),a=E(t);return n.width=n.width||"300",n.height=n.height||"150",P.each(n,(function(e,r){n[r]=t.dom.encode(""+e)})),"iframe"===n.type?ot(n):"application/x-shockwave-flash"===n.sourcemime?it(n):-1!==n.sourcemime.indexOf("audio")?at(n,i):"script"===n.type?ct(n):ut(n,a)},lt=function(t){return t.hasAttribute("data-mce-object")||t.hasAttribute("data-ephox-embed-iri")},ft=function(t){t.on("click keyup touchend",(function(){var e=t.selection.getNode();e&&t.dom.hasClass(e,"mce-preview-object")&&t.dom.getAttrib(e,"data-mce-selected")&&e.setAttribute("data-mce-selected","2")})),t.on("ObjectSelected",(function(t){var e=t.target.getAttribute("data-mce-object");"script"===e&&t.preventDefault()})),t.on("ObjectResized",(function(t){var e=t.target;if(e.getAttribute("data-mce-object")){var n=e.getAttribute("data-mce-html");n&&(n=unescape(n),e.setAttribute("data-mce-html",escape(Q(n,{width:String(t.width),height:String(t.height)}))))}}))},dt=tinymce.util.Tools.resolve("tinymce.util.Promise"),mt={},ht=function(t,e,n){return new dt((function(r,o){var i=function(n){return n.html&&(mt[t.source]=n),r({url:t.source,html:n.html?n.html:e(t)})};mt[t.source]?i(mt[t.source]):n({url:t.source},i,o)}))},gt=function(t,e){return dt.resolve({html:e(t),url:t.source})},pt=function(t){return function(e){return st(t,e)}},vt=function(t,e){var n=D(t);return n?ht(e,pt(t),n):gt(e,pt(t))},bt=function(t){return M(mt,t)},yt=function(t,e){return O(e,t).bind((function(t){return O(t,"meta")}))},xt=function(t,e,n){return function(r){var o,a=function(){return O(t,r)},u=function(){return O(e,r)},c=function(t){return O(t,"value").bind((function(t){return t.length>0?b.some(t):b.none()}))},s=function(){return a().bind((function(t){return i(t)?c(t).orThunk(u):u().orThunk((function(){return b.from(t)}))}))},l=function(){return u().orThunk((function(){return a().bind((function(t){return i(t)?c(t):b.from(t)}))}))};return o={},o[r]=(r===n?s():l()).getOr(""),o}},wt=function(t,e){var n={};return O(t,"dimensions").each((function(t){x(["width","height"],(function(r){O(e,r).orThunk((function(){return O(t,r)})).each((function(t){return n[r]=t}))}))})),n},Ct=function(t,n){var r=n?yt(n,t).getOr({}):{},o=xt(t,r,n);return e(e(e(e(e({},o("source")),o("altsource")),o("poster")),o("embed")),wt(t,r))},St=function(t){var n=e(e({},t),{source:{value:O(t,"source").getOr("")},altsource:{value:O(t,"altsource").getOr("")},poster:{value:O(t,"poster").getOr("")}});return x(["width","height"],(function(e){O(t,e).each((function(t){var r=n.dimensions||{};r[e]=t,n.dimensions=r}))})),n},kt=function(t){return function(e){var n=e&&e.msg?"Media embed handler error: "+e.msg:"Media embed handler threw unknown error.";t.notificationManager.open({type:"error",text:n})}},zt=function(t,e){return W(_(t),e)},Ot=function(t){var n=t.selection.getNode(),r=lt(n)?t.serializer.serialize(n,{selection:!0}):"";return e({embed:r},W(_(t),r))},Mt=function(t,n){return function(r){if(o(r.url)&&r.url.trim().length>0){var i=r.html,a=zt(n,i),u=e(e({},a),{source:r.url,embed:i});t.setData(St(u))}}},_t=function(t,e){for(var n=t.dom.select("*[data-mce-object]"),r=0;r<e.length;r++)for(var o=n.length-1;o>=0;o--)e[r]===n[o]&&n.splice(o,1);t.selection.select(n[0])},Tt=function(t,e){var n=t.dom.select("*[data-mce-object]");t.insertContent(e),_t(t,n),t.nodeChanged()},Et=function(t,e,n){e.embed=Q(e.embed,e),e.embed&&(t.source===e.source||bt(e.source))?Tt(n,e.embed):vt(n,e).then((function(t){Tt(n,t.html)})).catch(kt(n))},At=function(t){var n=Ot(t),r=C(n),o=St(n),i=function(e,n){var r=Ct(n.getData(),"source");e.source!==r.source&&(Mt(v,t)({url:r.source,html:""}),vt(t,r).then(Mt(v,t)).catch(kt(t)))},a=function(e){var n=Ct(e.getData()),r=zt(t,n.embed);e.setData(St(r))},u=function(n,r){var o=Ct(n.getData(),r),i=st(t,o);n.setData(St(e(e({},o),{embed:i})))},c=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],s=R(t)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],l={title:"General",name:"general",items:w([c,s])},f={type:"textarea",name:"embed",label:"Paste your embed code below:"},d={title:"Embed",items:[f]},m=[];V(t)&&m.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),B(t)&&m.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var h={title:"Advanced",name:"advanced",items:m},g=[l,d];m.length>0&&g.push(h);var p={type:"tabpanel",tabs:g},v=t.windowManager.open({title:"Insert/Edit Media",size:"normal",body:p,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(e){var n=Ct(e.getData());Et(r.get(),n,t),e.close()},onChange:function(t,e){switch(e.name){case"source":i(r.get(),t);break;case"embed":a(t);break;case"dimensions":case"altsource":case"poster":u(t,e.name);break}r.set(Ct(t.getData()))},initialData:o})},Ht=function(t){var e=function(){At(t)};return{showDialog:e}},Dt=function(t){var e=function(){At(t)};t.addCommand("mceMedia",e)},Vt=tinymce.util.Tools.resolve("tinymce.html.Node"),Bt=tinymce.util.Tools.resolve("tinymce.Env"),Rt=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Pt=function(t,e){if(!1===H(t))return e;var n,r=$();return I({validate:!1,allow_conditional_comments:!1,comment:function(t){n||r.comment(t)},cdata:function(t){n||r.cdata(t)},text:function(t,e){n||r.text(t,e)},start:function(e,o,i){if(n=!0,"script"!==e&&"noscript"!==e&&"svg"!==e){for(var a=o.length-1;a>=0;a--){var u=o[a].name;0===u.indexOf("on")&&(delete o.map[u],o.splice(a,1)),"style"===u&&(o[a].value=t.dom.serializeStyle(t.dom.parseStyle(o[a].value),e))}r.start(e,o,i),n=!1}},end:function(t){n||r.end(t)}},q({})).parse(e),r.getContent()},Lt=function(t){var e=t.name;return"iframe"===e||"video"===e||"audio"===e},It=function(t,e,n,r){void 0===r&&(r=null);var o=t.attr(n);return c(o)?o:M(e,n)?null:r},Ft=function(t,e,n){var r="img"===e.name||"video"===t.name,o=r?"300":null,i="audio"===t.name?"30":"150",a=r?i:null;e.attr({width:It(t,n,"width",o),height:It(t,n,"height",a)})},Nt=function(t,e,n,r){var o=Rt({forced_root_block:!1,validate:!1},t.schema).parse(r,{context:e});while(o.firstChild)n.append(o.firstChild)},jt=function(t,e){var n=e.name,r=new Vt("img",1);return r.shortEnded=!0,Wt(t,e,r),Ft(e,r,{}),r.attr({style:e.attr("style"),src:Bt.transparentSrc,"data-mce-object":n,class:"mce-object mce-object-"+n}),r},Ut=function(t,e){var n=e.name,r=new Vt("span",1);r.attr({contentEditable:"false",style:e.attr("style"),"data-mce-object":n,class:"mce-preview-object mce-object-"+n}),Wt(t,e,r);var o=t.dom.parseStyle(e.attr("style")),i=new Vt(n,1);if(Ft(e,i,o),i.attr({src:e.attr("src"),style:e.attr("style"),class:e.attr("class")}),"iframe"===n)i.attr({allowfullscreen:e.attr("allowfullscreen"),frameborder:"0"});else{var a=["controls","crossorigin","currentTime","loop","muted","poster","preload"];x(a,(function(t){i.attr(t,e.attr(t))}));var u=r.attr("data-mce-html");c(u)&&Nt(t,n,i,unescape(u))}var s=new Vt("span",1);return s.attr("class","mce-shim"),r.append(i),r.append(s),r},Wt=function(t,e,n){var r=e.attributes,o=r.length;while(o--){var i=r[o].name,a=r[o].value;"width"!==i&&"height"!==i&&"style"!==i&&("data"!==i&&"src"!==i||(a=t.convertURL(a,i)),n.attr("data-mce-p-"+i,a))}var u=e.firstChild&&e.firstChild.value;u&&(n.attr("data-mce-html",escape(Pt(t,u))),n.firstChild=null)},Gt=function(t){var e=t.attr("class");return e&&/\btiny-pageembed\b/.test(e)},qt=function(t){while(t=t.parent)if(t.attr("data-ephox-embed-iri")||Gt(t))return!0;return!1},$t=function(t){return function(e){var n,r,o=e.length;while(o--)n=e[o],n.parent&&(n.parent.attr("data-mce-object")||("script"!==n.name||(r=F(_(t),n.attr("src")),r))&&(r&&(r.width&&n.attr("width",r.width.toString()),r.height&&n.attr("height",r.height.toString())),Lt(n)&&A(t)&&Bt.ceFalse?qt(n)||n.replace(Ut(t,n)):qt(n)||n.replace(jt(t,n))))}},Xt=function(t){t.on("preInit",(function(){var e=t.schema.getSpecialElements();P.each("video audio iframe object".split(" "),(function(t){e[t]=new RegExp("</"+t+"[^>]*>","gi")}));var n=t.schema.getBoolAttrs();P.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),(function(t){n[t]={}})),t.parser.addNodeFilter("iframe,video,audio,object,embed,script",$t(t)),t.serializer.addAttributeFilter("data-mce-object",(function(e,n){var r,o,i,a,u,c,s,l,f=e.length;while(f--)if(r=e[f],r.parent){s=r.attr(n),o=new Vt(s,1),"audio"!==s&&"script"!==s&&(l=r.attr("class"),l&&-1!==l.indexOf("mce-preview-object")?o.attr({width:r.firstChild.attr("width"),height:r.firstChild.attr("height")}):o.attr({width:r.attr("width"),height:r.attr("height")})),o.attr({style:r.attr("style")}),a=r.attributes,i=a.length;while(i--){var d=a[i].name;0===d.indexOf("data-mce-p-")&&o.attr(d.substr(11),a[i].value)}"script"===s&&o.attr("type","text/javascript"),u=r.attr("data-mce-html"),u&&(c=new Vt("#text",3),c.raw=!0,c.value=Pt(t,unescape(u)),o.append(c)),r.replace(o)}}))})),t.on("SetContent",(function(){t.$("span.mce-preview-object").each((function(e,n){var r=t.$(n);0===r.find("span.mce-shim").length&&r.append('<span class="mce-shim"></span>')}))}))},Kt=function(t){t.on("ResolveName",(function(t){var e;1===t.target.nodeType&&(e=t.target.getAttribute("data-mce-object"))&&(t.name=e)}))},Yt=function(t){var e=function(){return t.execCommand("mceMedia")};t.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:e,onSetup:function(e){var n=t.selection;return e.setActive(lt(n.getNode())),n.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",e.setActive).unbind}}),t.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:e})};function Jt(){t.add("media",(function(t){return Dt(t),Yt(t),Kt(t),Xt(t),ft(t),Ht(t)}))}Jt()})()},e202:function(t,e,n){n("da1e")},f016:function(t,e,n){n("5d95")},f59e:function(t,e,n){n("bdd0")}}]);
|